UNO W5100 Shield not pinging.
-
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.
@MatrixIII Do you set #define SOFTSPI in libraries\MySensors\utility\RF24_config.h ? It's only thing what i can think about.
-
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); -
@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!
-
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 -
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?