sorry for not responding earlier. Unfortunately it was not because the issue(s) disappeared but because I had many more issues getting electron REAL stable. Somehow they work, but I cannot leave them alone some miles away,..
What is working right now:
- Connecting to network with 3rd party SIM (emnify)
- Connecting to Particle Cloud (most of the time)
What does not work:
- Firmware upgrade thru the cloud (almost 99% fail)
- Stable particle.connect - still I get some occasional Red SOS
The issue is not limited to one device and not limited to one SIM provider. Right now I have 3 devices with emnify, 2 more with an local provider, one more with another one.
These are the startup settings I use:
In the void loop() I shut down the system completely to save power, except if my own server tells not to do, eg to connect to particle cloud.
For that I had also a Particle.process() in the loop. The loop itself was slowed down using delay(200);
The ApplicationWatchdog is right now set to 120s, as sometimes the modem takes very long to connect. If a reset occurs, a counter is beeing increased by one, if this counter is odd during loop, the device resets the modem and goes into deep_sleep for 10 seconds.
The rest is just a arduino sketch that runs nice. Usually I have around 100 kbytes free.