jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.84k stars 723 forks source link

Reboot ESP-01 chip if Arduino detects WiFi failure #342

Closed swilson86 closed 6 years ago

swilson86 commented 7 years ago

I have perhaps 18 ESP-01 chips with Arduinos running esp-client and esp-link. About once per week or so the esp-link/esp-client software will disconnect from WiFi (and it still sometimes responds to pings). I know the Arduino is still doing its' tasks due to LED responses to events, etc. If the Arduino could reset the ESP-01 chip when it detects it has gone crazy would solve a lot of problems. This is true in version 2.x and also 3.x of esp-link.

Anybody have experience in this area? Rebooting a crazy Arduino I can do, but the other way around? An Arduino sketch that checks to see if the esp-link has gone crazy would be ideal. I am thinking of the Reset pin on the ESP-01 chip and seeing if Arduino can force a reset. Ideas anyone?

VigibotDev commented 7 years ago

For me ESP-Link never worked reliably on any hardware platform. There is slow-down like memory leak or any other not optimized trick

uzi18 commented 7 years ago

Turn on debug on uart in esp-link, and try to log it to file, paste it here we will try to investigate something

05.10.2017 9:00 AM "Pascal" notifications@github.com napisał(a):

For me ESP-Link never worked reliably on any hardware platform. There is slow-down like memory leak or any other not optimized trick

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jeelabs/esp-link/issues/342#issuecomment-334376463, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHOU5BhUO3J8W8T7vNOAjOwvAm_StSUks5spH51gaJpZM4PtL34 .

rjblake commented 6 years ago

For me ESP-Link never worked reliably on any hardware platform. There is slow-down like memory leak or any other not optimized trick

I have ESP-Link 3.0.14 running on my ESP connected to central heating system and it has worked without a problem for close to a year. The only time it has been restarted is when maintenance work was carried out on the boiler, so hardly ever restarted

VigibotDev commented 6 years ago

For telemetry I think it work, but for STK500 flash over TCP there is a bad think.

uzi18 commented 6 years ago

But stk500 implementation is poor, and could be improved.

19.10.2017 8:49 PM "Pascal" notifications@github.com napisał(a):

For telemetry I think it work, but for STK500 flash over TCP there is a bad think.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jeelabs/esp-link/issues/342#issuecomment-338002146, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHOU7JSkiPckjxcqHQESkhawva276yKks5st5nKgaJpZM4PtL34 .

VigibotDev commented 6 years ago

STK500v2 is good and easy, and a transparent serial must be transparent - even a crappy protocol must not kill the radio firmware

swilson86 commented 6 years ago

I have not had a single need to reboot a crazy esp-link since I upgraded all my chips to 3.0.14 about 3 months ago. It's the Arduino that needs a reboot after running out of memory etc. Recommend this issue be closed.