Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    wiznet 6100 (WZ610MJ Rev1.0) with arduino ethernet libraries

    Spresense
    2
    27
    29347
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AndyAdams @KamilTomaszewski last edited by

      @kamiltomaszewski yes. i went back and redownloaded the library and made changes mentioned in your first post just to be safe and its still giving me the same issue. Would it be easier if I uploaded my modified library files somewhere?

      0fde1940-2e65-436d-9704-bfbe82f0e382-image.png

      K 1 Reply Last reply Reply Quote
      • K
        KamilTomaszewski DeveloperWorld @AndyAdams last edited by

        @andycadams2011 Yes, it will be easier when you upload it somewhere.

        A 1 Reply Last reply Reply Quote
        • A
          AndyAdams @KamilTomaszewski last edited by

          @kamiltomaszewski https://github.com/Bearham/EthernetLibrary

          A 1 Reply Last reply Reply Quote
          • A
            AndyAdams @AndyAdams last edited by AndyAdams

            @andycadams2011 I've narrowed the problem down to the softReset() function call. it appears to return 0 when chip = 61.

            9e8323be-ebb1-4dc6-831f-9e8bbe79f063-image.png
            console print:
            3e7855ad-ef09-42c4-8ece-48493db667b2-image.png

            update: I've further narrowed the problem down to this "ReadSYSR_W6100()" function call which evaluated to 255. It would need to be a value between 0-127 in order to break this do-while loop.
            675f74f7-ba97-4358-ac7e-94c81a2bcead-image.png

            K 1 Reply Last reply Reply Quote
            • K
              KamilTomaszewski DeveloperWorld @AndyAdams last edited by

              @andycadams2011 Please try this: https://github.com/Bearham/EthernetLibrary/pull/1. Remember that SPI CS should be connected to pin 9.

              Best Regards,
              Kamil Tomaszewski

              A 1 Reply Last reply Reply Quote
              • A
                AndyAdams @KamilTomaszewski last edited by

                @kamiltomaszewski That change did not solve the issue, I still get an error that the ethernet shield was not found. I've been calling Ethernet.init(9) in my program, which sets should set "uint8_t W5100Class::ss_pin" variable to 9 if im understanding the library correctly? (which is entirely possible that i'm not)

                what else would be useful for me to provide?

                K 1 Reply Last reply Reply Quote
                • K
                  KamilTomaszewski DeveloperWorld @AndyAdams last edited by

                  @andycadams2011 What operating voltage of the GPIO pin sockets are you using: https://developer.sony.com/develop/spresense/docs/hw_docs_en.html#_setting_operating_voltage?

                  A 1 Reply Last reply Reply Quote
                  • A
                    AndyAdams @KamilTomaszewski last edited by

                    @kamiltomaszewski operating voltage is 3v3

                    after restarting it 3 times, it seems to have started working. The library recognizes the board, however It says that an ethernet cable is not connected?

                    89d91104-e309-43ab-bde5-ce0aca7290fa-image.png

                    f23fab7f-53c6-40d3-9e54-539bc13c74f1-image.png

                    A 1 Reply Last reply Reply Quote
                    • A
                      AndyAdams @AndyAdams last edited by

                      @andycadams2011 it seems like the issue is with the Ethernet.linkStatus() call. should i be expecting these calls to work with the 6100?

                      I've tracked the issue down to this section of code, which evaluated to 6, which then returns LINK_OFF:
                      00a1c52d-8277-42d3-85fa-d39186be2d5c-image.png

                      K 1 Reply Last reply Reply Quote
                      • K
                        KamilTomaszewski DeveloperWorld @AndyAdams last edited by

                        @andycadams2011 According to chapter 4.1.18 this is the correct link status checking: http://wizwiki.net/wiki/lib/exe/fetch.php/products:w6100:w6100_ds_v104e.pdf

                        Could you please try unplugging the cable and see what the return value will be? Also 6?

                        A 1 Reply Last reply Reply Quote
                        • A
                          AndyAdams @KamilTomaszewski last edited by AndyAdams

                          @kamiltomaszewski 6 was the value for 1 test. However after unplugging/plugging in power to the setup and reloading the code, it no longer recognizing the board anymore? it seems to be having intermittent issues so i'm going to go over my wiring and see if that's maybe an issue? would lowering the SPI speed help here? is it possible that the SPI speed of 14mhz is too fast for a setup wired up on a breadboard?

                          edit: 6 is consistently the value of the PHYSR register with and without a cable connected. which concerns me because according to the data sheet, bit 7 should be asserted with the cable unplugged?

                          A 1 Reply Last reply Reply Quote
                          • A
                            AndyAdams @AndyAdams last edited by

                            @KamilTomaszewski it seems despite the issues with the misreported hardware status, i'm able to run the arduino chat server sketch successfully. do you foresee the misreported hardware status leading to any issues in the future with the ethernet library? if not, then this is probably working well enough for my project! Thank you so much for all of your help, i really appreciate it!

                            d111b025-88ae-4484-9abe-cbf068670533-image.png

                            K 1 Reply Last reply Reply Quote
                            • K
                              KamilTomaszewski DeveloperWorld @AndyAdams last edited by

                              @andycadams2011 Could you please try to check the status link at the end of the application? After the connection is established.

                              A 1 Reply Last reply Reply Quote
                              • A
                                AndyAdams @KamilTomaszewski last edited by

                                @kamiltomaszewski it appears that after a client connects to the device that the linkstatus stops reporting that the ethernet cable is disconnected

                                f85b7653-486a-4609-8547-7439341c30d3-image.png

                                1 Reply Last reply Reply Quote
                                • First post
                                  Last post
                                Developer World
                                Copyright © 2021 Sony Group Corporation. All rights reserved.
                                • Contact us
                                • Legal