W5100 Gateway hangs /freezes after some time.
-
This is probably not the issue but I found it strange that you would need to connect 20 clients:
#define MY_GATEWAY_MAX_CLIENTS 20How many controllers do you have? Maybe you could try with 2 just to rule out this as your issue.
I don't know if there is any limit to what you can use but 20 sound like allot.
Please also check the version of Arduino AVR Boards you are using from your Boards Manager. I think there is some issue if you use anything newer than version 1.6.11.
-
Yes there is a limit, if i remember well it's 4 connections.
-
yes, w5100 should have 4connec max, and maybe the latest w5200/5500 have more (maybe 8?).
Plus, i think ethernet lib is not async which does not help for handling more connec at same time.. -
Thanx for your answer.
That means, if I would use an raspberrypi as a gateway that could support devices?
I would like to have only 1 gateway for each floor and I plan to have about 20 sensors connected to each gateway .Thanx.
@webstor said in W5100 Gateway hangs /freezes after some time.:
Thanx for your answer.
That means, if I would use an raspberrypi as a gateway that could support devices?
I would like to have only 1 gateway for each floor and I plan to have about 20 sensors connected to each gateway .Thanx.
Is there any benefit in using one GW for each floor? Imo it s best, to just have one MySensors network covering the entire building. To avoid problems wrt. to RF-coverage it is better to use some of the nodes also as repeater.
As far as I understood, there is no limitation below 254 about the number of Nodes connected to one GW. Isn't the MAX_CLIENTS-definition targeting towards the maximum number of controllers to make use of the GW?
Kind regards
-
Thanx for your answer.
That means, if I would use an raspberrypi as a gateway that could support devices?
I would like to have only 1 gateway for each floor and I plan to have about 20 sensors connected to each gateway .Thanx.
-
It stopped crashing.
But the problems just switched.
Only one device is communicating with the Gateway. The other devices aren't working anymore. My Relays and one temp and hum sensor are not communicating any more.And they are 5 meters away from the Gw.
-
It stopped crashing.
But the problems just switched.
Only one device is communicating with the Gateway. The other devices aren't working anymore. My Relays and one temp and hum sensor are not communicating any more.And they are 5 meters away from the Gw.
@webstor I am pretty sure that will be some other problem.
as far as i am aware #define MY_GATEWAY_MAX_CLIENTS is not a setting for the number of nodes connected and is not needed in a standard Ethernet gateway with one controller, the default setting of 1 is all you need. I am running a w5100 gateway and am able to connect to multiple nodes without that line.
If you un-comment it do your nodes then connect as per normal again?
Maybe you could make a new post about #define MY_GATEWAY_MAX_CLIENTS and see if one of the MySensors devs can give a definite answer.
Have you tried fitting a larger capacitor to the nrf power connections. When I updated to v2.1.1 I had two nodes that were usually very stable start to loose connection now and then. I replaced the 4.7uf with a 47uf and now they are working well again.
-
Hi,
ok, starts to crash again. I replaced the whole hardware aswell.
Yes if I uncomment them, the nodes connect normal.I'm not using v.2.1.1, my nodes and gateways are on v.2.0.0
The next step will be to use an esp8266 as gateway instead of the arduino uno.
Thanx.
-
Hi,
I have the same issue, W5100 gateway freeze, seen my update to MySensor 2.1.1.
I use a static IP otherway it's the same code as @webstor I did removed both line and still gateway freeze (one day max ). Unlike @websor if I reset, gateway doesn't come back. I have to unplug the usb power.I only have five sensor, with only one battery powered. I used IDE 1.8.2 and AVR 1.6.18. Everything was working well with MySensor 2.0.0, IDE 1.6.9 , AVR 1.6.15. Any idea what could I look at ?