I’d like to test-install my first electron project:
A ultrasonic distance sensor mounted on a waterproof case containing the electron and the battery. The battery will be recharged by an small solar panel. The device should monitor and report the level of a river.
To keep the device as long as possible online I turn the cellular off send the device to deep sleep mode (currently every 5 minutes). Instead of particle cloud I choose thinkspeak.
The device itself works quite well (as expected), but after approx 3-4 hours the device stops reporting data, the RGB LED is flashing blue like the “LISTENING MODE” (not breathing).
Did anyone else had the same symptoms?
If so, any ideas how to this issue might be solved?
Cellular.off(), // before going to sleep turn off Cellular.
deep sleep code.
My advice is to just use the deep sleep code without calling Cellular.off(); since it just works and the battery discharge current is still low which is what you want.
I need the sensor to sleep a long time, if the river level doesn’t change too much the device shouldn’t go online for several hours and spare the battery for situations when the level is raising and send updates much more frequent.
Turning off anything not needed is essential for this application,…
I’ll post particle.io support team a mail and keep you posted.
I already sent a mail to support, but neither there nor here I got a satisfying solution. My first prototype is ready to be installed - but it cant without this issue beeing solved,…
Can you share the key parts of your code that are working with the cellular connection?
There is a known issue where the modem sometimes incorrectly reports that there is no sim card.
There is an option that’s carried over from the photon that allows you to connect without entering listening mode if there are no credentials (SIM card.)
Cellular.connect(WIFI_CONNECT_SKIP_LISTEN);
(We will change the name to NETWORK_CONNECT_SKIP_LISTEN in a future release to make it network neutral.)
I’m not sure why the modem stops thinking there is no sim card inserted, and I can’t say if it’s a transient condition that will subsequently fix itself.
Do you want the Modem OFF for the lowest power consumption while sleeping? If so then you need to call Cellular.off() to turn the cellular modem OFF which will basically give you the lowest power consumption.
Hi,
the electron runs now since 4 days without any issue so far.
Thanks to the minimal power consumption a small 160x160mm solar panel it charges the battery even without direct sun
In spite of using Cellular.disconnect(), Cellular.off() (and vice-versa on setup()) as shown above, I notice an Electron (G350) with firmware 0.5.0-rc.2 going into listening mode. Over the period of 76 hours, this has happened twice. It is very unfortunate that listening mode waits for hours (the second time, I noticed after 3 hours before pressing reset).
Is there any known solution, or is there some kind of watchdog I can enable / use to overcome this? Listening mode for a few minutes wouldn’t bother me, but the fact that the Electron is then factually “offline” certainly does.
@jpmens In the latest firmware you do not need to call Cellular.off() because its done automatically in the latest firmware based on what I have read.
Could calling Cellular.off() in the new firmware be causing this issue.
I remember reading that upon waking from deep sleep the Electon will go back to what ever cellular state it was in before calling Deep Sleep.
That’s correct if my memory is correct after reading the latest firmware update fix list.
What is Listening mode?
I’ve been using System.Sleep for weeks now with network standby and its working perfectly so far when publishing to Ubidots every 30 mins and every 1 hour on 2 different Electrons.
Sorry to bring this back to life after a couple months but I’m encountering the same issue. I just returned from the 30 minute drive required to reset my electron once it goes into “listening mode”. I sleep mind (w/o turning off cellular) for 15 minutes. It transmits every hour, so every 4th time it wakes up. I did it this way because if I sleep for more than 23 minutes, the connection goes stale and it has to re-handshake burning up data. I didn’t want that, and waking every 15 just to let the Electron ping the tower still gives me enough power savings.
This time it was a bit different though. I arrived to find it in listening mode as expected. I hit the reset button (a momentary switch that drops the reset pin to low) and it went right back into listening mode. I tried that a couple times, each time it dropped into listening mode from its initial breathing white. So I opened the enclosure and disconnected it completely from all power. Let it sit for a few seconds. Power back up via battery, and it breathed white for at least a minute. I hard set my mode to AUTOMATIC as the very first line in my setup(). So this time I push both the reset and mode buttons to manually put it into listening mode. Once it gets there, I reset it with the button, and now it finally, after all that, connects.
It seems to me that even if I’d have a nice external watchdog on the thing that it wouldn’t have helped, since just resetting with the pin/button didn’t help get it out of listening mode, although I do plan to add one (a hardware watchdog that is).
Does anyone have any advice on this? I don’t want to manage the cell connection to the particle cloud if I can help it, I just want it to work and be done for me. I can though I guess if I have to. I also don’t want to ever disconnect intentionally once booted. I want to maintain that connection (by allowing it to ping inside of 23 minutes) once I have it.
I just encountered the same issue.
After reset the device came up immediately breathing white, no reconnection attempt at all.
Only after unplugging and replugging the LiPo revived the device.
@BDub, any thoughts. The last Particle post was March 11th where @mdma pinged already.