WifiGateway crashes after 1 or 2 days
-
Any ideas how o solve that problem ?
I built a WifiGateway, after 1 - 2 days, it crashes, i can´t reach it through telnet
But a ping is still working.As it tkaes that long, it´s not that easy to find the problem
Is there any debug feature ?
-
@kr0815 best debug option is to connect something to the serial port (before the crash) and watch the logs.
I've seen similar behavior on a regular Ethernet getaway, so not sure if it's really WiFi gateway related.
-
Hello Yveaux,
i tried to debug with serial connected, but
for hours only that:
0;255;3;0;9;read: 102-102-0 s=1,c=1,t=0,pt=7,l=5,sg=0:19.0 0;255;3;0;9;read: 102-102-0 s=0,c=1,t=1,pt=7,l=5,sg=0:43.9 0;255;3;0;9;read: 102-102-0 s=255,c=3,t=0,pt=1,l=1,sg=0:95 0;255;3;0;9;read: 112-112-0 s=0,c=1,t=0,pt=7,l=5,sg=0:24.0 0;255;3;0;9;read: 112-112-0 s=1,c=1,t=0,pt=7,l=5,sg=0:23.9 0;255;3;0;9;read: 112-112-0 s=1,c=1,t=0,pt=7,l=5,sg=0:23.9
then not responsible, no fault message
after waiting for a while i get
LmacRxBlk:1 LmacRxBlk:1 LmacRxBlk:1 LmacRxBlk:1 LmacRxBlk:1 LmacRxBlk:1 LmacRxBlk:1 LmacRxBlk:1
After a reboot:
0;255;3;0;9;Starting gateway (RNNGE-, 2.0.0-beta) 0;255;3;0;9;Radio init successful. ....scandone state: 0 -> 2 (b0) .state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 3 pm open phy_2,type:2 0 0 cnt chg_B:-60 connected with Power-LAN, channel 6 dhcp client start... ...ip:192.168.178.84,mask:255.255.255.0,gw:192.168.178.1 .IP: 192.168.178.84 0;255;3;0;9;Init complete, id=0, parent=0, distance=0 0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1 0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0 0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
-
@kr0815 said:
LmacRxBlk
Googled, this came up.
Here they say it's related to the maximum simultaneous socket connections to the ESP, which is set to 5 in hardware.
Could it be that you open more than 5 sockets simultaneously?
-
Thanks a lot for your help, it´s really frustrating
unfortunately, there are notr more than 5 connections, only my FHEM - installation and me playing around with one, max 2 instances of putty
but as i´m experimenting with it right now it looks like there is a problem with the radio
I tried re-pluging power many times, sometimes i get in in a state where it says "radio init ok", but doesn´t receive messages
I re-checked all the wires (only 10K Pull-Down at GPIO15 , the other lines to Radio are in Mega-Ohm Areas, so no wrong resistors on my ESP-Board)
I tried to add small / large capacitors to the Vcc Line
I swapped the NRF2401 - 3 different batches now, which even look different.
I swapped the wall-wart to a regulated laboratory power supply
--> all the same resultI have about 5 of these ESP-Boards running with ESP-Easy since weeks, so i can´t imagine it´s a fake ESP-Unit ?
Any further ideas what to try ?
-
@kr0815 said:
my FHEM - installation and me playing around with one, max 2 instances of putty
It could still be that 5 or more connections are open simultaneously, when e.g. a connection is dropped and not nicely shut down before a new one is opened.
-
Maybe you are right
I set up two gateways, only one is connected to FHEM, now i swapped them in FHEM, the connected one crashed
I´ll ask the FHEM guys for help, but as long as i´m playing with putty, is there any command to check / close connections ?
Is it ok just to close putty, or should i send something to close the connection ?
-
@kr0815 Could also be caused by the ESP side, keep that in mind. Maybe search around for 'closed connections' w.r.t. ESP.
-
Sorry, this i don´t understand ? What do you mean wth by the ESP side ? Changes in the ESP Code needed ?
The more i think about it, the less i know...
WHat causes the Wifi Gateway sometines after replugging power to say radio init ok, but not receiving messages ?
-
@kr0815 said:
the ESP side
I mean that when a connection is disconnected abruptly, the socket connection might also not be closed correctly on the ESP side.
It can go wrong on either the server or the client side; I don't know.
-
I still have the same problem, it worked now for about 5 days on the workbench, brought it to the final desination, crashes after some hours
But i always could still ping the ESP
What i wonder most about is, that sometimes when i replug the power it says radio init ok, but it doesn´t receive messages
( i see on other gateway that messages are definetly sent)Is there any possibility to restart the gateway remotely ? Or only chance to replug power ?
Could it be it´s a problem with the initialization of the radio ?Is it maybe because in my set-up, the gateway is only receiving, never sending anything ?
The gateway lays avbout one meter away from a raspberry (no wifi) , but i can´t imagine that causes the problems ?
Any help / ideas welcome.
-
i investigated further:
i have 2 gateways, both dev version, one from today, the other one about 2 weeks oldI tried the relay sketch (newest dev version) - gave it an ID trough my ethernet gateway
--> directly after connecting the relay sensor both ESP gateway crash - no fault messages in serial monitorDId anybody try the wifi gateway together with a repeater ?