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 9.7k 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.
  • 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
                  • H Offline
                    H 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

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      17

                      Online

                      12.0k

                      Users

                      11.2k

                      Topics

                      113.4k

                      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