MikeyDK
February 25, 2015, 7:21pm
1
I got an Imp001 a the PCB I made, it works fine for days, weeks, months, but suddenly it just drops offline and never comes back online again.
Only way I have found to get it back online again is to cycle power to it, and when I do that, it starts blinking like this
https://www.youtube.com/watch?v=tr19uB3lCO0
Doing a blink-up on it brings it back again. Any idea why this could happen?
takissd
February 25, 2015, 9:43pm
2
maybe you have a while loop in your code that it hits at some point and is then lost?
MikeyDK
February 26, 2015, 4:44pm
3
No loops in the code that would make it lock up, and it would not explain why it need to have a blink-up before it connects again.
Only thing I can think of is the code that makes it jump to another SSID when one goes down, but it has done that multiple times before without problems.
It looks like it’s trying to connect to a network and failing - I’m guessing it is in your reconnect code/SSID switching code.
The most recent blog post on the community blog is about debugging disconnected code - may help you better understand what’s going on
MikeyDK
February 26, 2015, 7:09pm
5
I tried to entirely remove the stuff where it tries to connect to another ssid when one fails.
This was the code I used for it, just with the led switching removed from it
cycleConnections.example.nut
// Set the timeout policy to RETURN_ON_ERROR, ie. to continue running at disconnect
server.setsendtimeoutpolicy(RETURN_ON_ERROR, WAIT_TIL_SENT, 10);
// Configure Pin 1 to drive the connection status LED
hardware.pin1.configure(DIGITAL_OUT);
hardware.pin1.write(0);
// Create an array of WiFi networks, each defined by a table
connections <- [
{ ssid = "SSID1", pw = "SSID1PW" },
This file has been truncated. show original
Does the Router you’re using have a syslog? I sometimes get valuable info from the router itself.