Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. UNO W5100 Shield not pinging.

UNO W5100 Shield not pinging.

Scheduled Pinned Locked Moved Controllers
11 Posts 7 Posters 8.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MatrixIII
    wrote on last edited by
    #1

    I have my gateway working with UNO R3 and controlling one relay switch with ENC28J60 Ethernet. I got a W5100 Ethernet shield that sits/fits on top of the UNO for a cleaner install. I reflashed the UNO with the modified gateway code as per instructions and I get a "Gateway Startup Complete" but I can't ping the W5000 shield. All the lights on the shield are lit and the light on the router port is lit showing an active link. I used the arduino stock Ethernet Webserver example sketch and can ping the shield fine and the test page showing the analog input comes up which makes me think this is not a hardware problem. I did not connect any wires for the pins to the shield since the shield directly plugs on top of UNO so does any PIN numbers need to changed in the sketch?

    Anything that I have missed or I can try to troubleshoot this further?

    thanks!!

    VeraLite UI5
    Arduino UNO as Gateway (ENC28J60 Ethernet)
    Arduino Mini Pro as sensors

    1 Reply Last reply
    0
    • D Offline
      D Offline
      doctor64
      wrote on last edited by
      #2

      Are you update IP and MAC addresses in sketch? I use W5100 (with little modifications for DHCP support) in MQTT gateway without any problems.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MatrixIII
        wrote on last edited by
        #3

        Yes, the IP address is changed in both mysensors sketch and example webserver sketch. I have not changed the MAC address. I can ping the ip on the example webserver sketch but not in the mysensors Ethernet sketch.

        VeraLite UI5
        Arduino UNO as Gateway (ENC28J60 Ethernet)
        Arduino Mini Pro as sensors

        D 1 Reply Last reply
        0
        • M MatrixIII

          Yes, the IP address is changed in both mysensors sketch and example webserver sketch. I have not changed the MAC address. I can ping the ip on the example webserver sketch but not in the mysensors Ethernet sketch.

          D Offline
          D Offline
          doctor64
          wrote on last edited by
          #4

          @MatrixIII Do you set #define SOFTSPI in libraries\MySensors\utility\RF24_config.h ? It's only thing what i can think about.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MatrixIII
            wrote on last edited by
            #5

            Yup, that and the Ethernet.h uncommenting change in the main sketch. Unfortunately, I have read the documentation 10 times in hopes to catch something that I may have missed but can't figure this one out.

            VeraLite UI5
            Arduino UNO as Gateway (ENC28J60 Ethernet)
            Arduino Mini Pro as sensors

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MatrixIII
              wrote on last edited by MatrixIII
              #6

              I figured this out. In the sketch it was getting stuck on the following line since writeEthernet is a callback and was getting called but is not initialized yet.

              gw.begin(RF24_PA_LEVEL_GW, RF24_CHANNEL, RF24_DATARATE, writeEthernet);
              

              I switched the order to initialize the Ethernet shield first and it works like a charm now

              Ethernet.begin(mac, myIp);
              
              // give the Ethernet interface a second to initialize
              delay(1000);
              
              // Initialize gateway at maximum PA level, channel 70 and callback for write operations 
              gw.begin(RF24_PA_LEVEL_GW, RF24_CHANNEL, RF24_DATARATE, writeEthernet);
              

              VeraLite UI5
              Arduino UNO as Gateway (ENC28J60 Ethernet)
              Arduino Mini Pro as sensors

              1 Reply Last reply
              1
              • O Offline
                O Offline
                oded00
                wrote on last edited by
                #7

                Thank you for your update
                I have exactly the same proble with nano
                will try it tommorow and update

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  Dean
                  wrote on last edited by
                  #8

                  @MatrixIII thank you so much for sharing this solution!!! You may have seen my posts a couple months or so ago, and I just couldn't get this to work, but after making the change that you did, it seems to be working. thanks!

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    samppa
                    wrote on last edited by
                    #9

                    This saved my day too! Thanks!
                    I wonder why this is not already changed in the example EthernetGateway.ino..

                    1 Reply Last reply
                    0
                    • hekH Offline
                      hekH Offline
                      hek
                      Admin
                      wrote on last edited by
                      #10

                      Missed this one. The change has been pushed to github now.

                      It's easer if you provide a github pull request when you find this type of problems.

                      Instructions here:
                      http://forum.mysensors.org/topic/330/how-to-contribute-code-to-the-mysensors-project

                      1 Reply Last reply
                      0
                      • snuppesnoS Offline
                        snuppesnoS Offline
                        snuppesno
                        wrote on last edited by
                        #11

                        Thanks MatrixIII, I was just about to give up on my Ethernet-gateway when I found this thread, you saved my day too! :satisfied:
                        I just downloaded the Ethernet-gatewaysketch from mysensors, isn't this problem supposed to be solved or did I download from wrong place?

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        12

                        Online

                        11.7k

                        Users

                        11.2k

                        Topics

                        113.1k

                        Posts


                        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • MySensors
                        • OpenHardware.io
                        • Categories
                        • Recent
                        • Tags
                        • Popular