I am testing the cellular connection of devices and am having devices freeze the MCU which forces a watchdog system.reset when the LTE coverage is spotty and there are many disconnects.
I have the following output. Does anyone know how to interpret these errors?
/**
* This is the internal function called by the background loop to pump cloud events.
*/
void Spark_Process_Events()
{
if (SPARK_CLOUD_SOCKETED && !Spark_Communication_Loop())
{
WARN("Communication loop error, closing cloud socket");
cloud_disconnect(false, false, CLOUD_DISCONNECT_REASON_ERROR);
}
else
{
lastCloudEvent = millis();
}
}
At the ERROR: Event loop error 3 was where it lost connection and then froze
Then the device proceeded to flicker from freezing to having a second of control and then froze again
that is when the ERROR: Unable to create socket was printed
At each unable to create socket, I had control for a moment and then it froze again.
@wesner0019 This seems likely to be one of the LTE bugs we are currently working on resolving. A bug fix patch to 1.0.0 will be coming within the next week (hopefully Monday).
If you want to send in more detailed logs so we can confirm that would be helpful. Make sure you have applied the system firmware from the github release page or via particle update on the CLI to ensure DEBUG_BUILD=y is enabled.
Then add SerialLogHandler logHandler(115200, LOG_LEVEL_ALL); globally at the top of your app, or Serial1LogHandler logHandler(115200, LOG_LEVEL_ALL); if you want to capture from the TX output. Please provide as large of a file as you can, and if you can point out when things are happening at various timestamps in the logs that would also be helpful. Please PM/DM me the logs.
Thanks for the logs! This issue should be resolved in the next prerelease, coming soon. It manifests when sending data while there is no signal, but the system should come back on it’s own in about 10 minutes… so it’s not actually locked up, but it does appear that way for far too long.
v1.0.1-rc.1 addresses these issues and is out now. @wesner0019 already knows about this, but if anyone else hits this thread using <= v1.0.0 please give v1.0.1-rc.1 a test:
The code works most of the time, but sometimes it gets stuck with constantly repeating this error and not connecting. This is the only thread I found this error popping up, so I was wondering if it was the same issue.