slrrfnc
September 11, 2019, 7:00pm
1
Really quick some details
My question is the following:
Is there a way that using SLEEP_NETWORK_STANDBY I could be able to wake up my electron by calling an Event or Function using the particle API with a phone app ?
Thanks for your help!
Yes. Calling a function from the app on your phone will have the same effect as calling a function from the CLI or the console.
Have you seen this thread? I think @rickkas7 describes exactly what you're looking for.
Here’s a more elaborate example. It allows:
Wake by cellular
Wake by another pin (RISING only)
Wake by sleep time expired
It requires 0.8.0 (tested with 0.8.0-rc.8) because it require multi-pin wake support and SleepResult. (The example above works with 0.7.0.)
It also has a function, variable, and event subscription, and those work too on wake from cellular.
To run the test:
To go to sleep, pull D2 to GND
To wake by pin, pull D3 to 3V3
You can wake by ping, function (“testFn”), variable…
1 Like
Rftop
September 11, 2019, 7:39pm
3
I don’t believe Wake on RI works for the E-series
Rftop
September 11, 2019, 7:41pm
5
Well, it does for 2G/3G, but not LTE:
Per later down the thread:
That is correct.
Device
Modem
WakeOnRI
Electron 2G
SARA-G350
Electron 2G/3G Global
SARA-U201
✓
Electron 2G/3G Americas
SARA-U260
✓
Electron 2G/3G Europe/Asia/Africa
SARA-U270
✓
E Series E310 Global 2G/3G
SARA-U201
✓
E Series E402 LTE
SARA-R410M-02-B
slrrfnc
September 11, 2019, 7:47pm
6
Thanks for the information guys.
The E-series I have is the LTE one so that fix is not going to work, but I’m going to read that thread anyway.
Thanks again @nrobinson2000 @Rftop
1 Like