Ethernet Gateway problem
-
My Ethernet gateway (UNO board with wiznet shield) works fine for a couple of hours, then the light level updates from my test light sensor stop. It will start up again (for a couple of hours) if I unplug the gateway, plug it back in and reload Vera. Any suggestions?
Also, I am new to Ethernet connecting with Arduino. Why doesn't the gateway show up in my Netgear router's list of attached devices, even though it is working?
-
May be answering my own question--at least the first one. Since the gateway starts up again after it is unplugged and then plugged back in, I'm thinking it's a power supply problem. I think the usb wall wart is not capable of powering the uno, the wiznet shield and the radio with external antenna, Will try with a more capable wall wart.
-
Thanks for the input! m26872's web reference was particularly informative. Apparently since the gateway is not a DHCP client (it doesn't ask the router for a IP address) it does not show up in the router's list which is a list of DHCP clients. The gateway and Vera have the same static IP address as specified in the Vera's advanced tab for the plugin and in the Ethernet gateway arduino sketch which they use to communicate with each other.
-
Back to my first question. Ethernet gateway works for a while and stops updating sensor data till I unplug and plug back in. Wonder if this is related to the wisnet/radio use of SPI problem I saw posted elsewhere.
-
It is interesting that you get the W5100 to work with the RF module at all. I cannot have them coexist on the same SPI bus at all, but moving the RF module to a software implemented SPI bus seem to resolve that problem (it introduces other problems but they are believed to be related in other changes in the RF library that were piggy-backed with the introduction of the SW SPI support).
Here is a thread on the topic: http://forum.mysensors.org/topic/467/ethernet-gateway-troubleshooting-advice -
My Arduino Uno is a genuine board from Italy. I got the Ethernet board from amazon: http://www.amazon.com/gp/product/B00CRX7BI2/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1 "ZITRADES Ethernet Shield W5100 Development board For Arduino "
I wouldn't exactly call it working. It works for a short time. From the symptoms, it appears that both the Ethernet and radio work for a time and then the radio eventually stops working. I no longer receive sensor updates but it appears that Vera keeps communicating with the gateway as indicated by commo lights on the Ethernet board and no Vera error messages.
-
I have the MQTT sketch (basically the same right?), a clone uno r3 and a clone w5100 shield with a three test sensors reporting data every 10min. Even had a motion sensor sketch completely pummel the gateway with a few hundred messages in a very short time. Does seem to work as intended for me at least. Doesn't show up under device list in the router either though. Same thing with my other Uno+W5100 that I also have connected for my old custom (no mysensors) mailbox alarm, despite it having routines to specifically request and re-request an ip using dhcp, it also usually doesn't show in the list (also running Tomato).
I can also ping the IP for the MQTT gateway and get a response. Surely there must be a lot of people on the forum that have the ethernet shield working with the vanilla nrf24? This is the first I've heard of this.
-
I plugged the sensor into the computer to monitor it. Start the serial gateway and the sensor shows proper commo with the gateway and Vera registers the light value. After a time the gateway stops commo the sensor. Restart the gateway and it starts communicating again. Right now the Ethernet gateway and the sensor have been reliably communicating for about an hour. Am guessing if I had the SPI bus problem it wouldn't work at all or is it that it causes the gateway to randomly lock up like I am experiencing?
-
The shield maybe has a HW workaround to handle the SPI issue. I have gotten my GW to work using Ethernet as well, but have not investigated stability. My primary concern for the moment is to make sure the SPI problem is resolved in a good way. Using a soft SPI solution at least works, but I think of it is a last resort.
-
Well, the gateway worked fine for an hour and a half, and then it stopped communicating with the sensor. Once that happens, it never recovers by itself. Have to unplug it , plug it back in and reload vera and everything starts working again.
-
Yes Have a cap on the radio and even have the radio receiving its 3.3 power from AMS1117 with everything connected to a 1 amp wall wart. It does seem to be a heat/power related problem. I noted that it stays online longer if I give it time to cool down before restarting. I am going to try a different, more capable wall wart.
-
Tried new 2 amp 5v dc power supply. Same thing--after about an hour of receiving and acknowledging sensor messages, stopped responding to the messages. Plugin still appears to be connected to and communicating with Vera via the Ethernet, but no responding to (and probably not hearing) the sensor. My inclination is to blame the sharing of the SPI bus but I have no direct evidence and doubt that it is causing my problem. Need suggestions for further debugging. The only clue is that unplugging and plugging in the gateway results in it reestablishing commo with the sensor. It never appears to lose Ethernet commo with Vera.
-
sensor sends light level once per minute (if it changes during that time). Only one sense reporting
-
I now have the gateway plugged into the computer to read the serial moniter. Had the sensor hooked up before and the gateway was plugged into the vera. Per the Serial.print line in the gateway sketch it showing the messages it is sending to the sensor. Will see if it hangs up after a while when it is not plugged into the internet. Given that it seems to be executing the main loop properly, would think it is a hardware problem that causes it to eventually stop.
-
With the Ethernet gateway hooked to the pc and on the serial monitor, it just keeps humming along with no hang ups. So my gateway hangups are Ethernet related.