@no1089, I’m seeing very different results using the code you provided.
I’m testing with a µCurrent GOLD inline with a Li-Po @ 4.03V resting, Boron LTE on 1.5.1.
The Sleep Current actually ramps up to 10 mA for me with your code.
As a sanity and equipment check, I reflashed the basic code and confirmed 660 µA in Hibernate Sleep.
SYSTEM_MODE(MANUAL);
SYSTEM_THREAD(ENABLED);
inline void softDelay(uint32_t t) {
for (uint32_t ms = millis(); millis() - ms < t; Particle.process()); // safer than a delay()
}
SystemSleepConfiguration config;
void setup() {
config.mode(SystemSleepMode::HIBERNATE).gpio(D0, RISING).gpio(WKP, RISING);
}
void loop() {
Cellular.off(); // just for fun
softDelay(15000);
System.sleep(config);
}
I noticed from your screenshot that you are using a 10A range.
Do you have a lower option ?
Ah, yes, I just tested this on my LTE unit - 10mA.
With the 2G/3G unit, I have consistently been able to get sub 1mA readings with 600uA last night. The correct draw for STOP, don’t ask me how I got 130uA (I’ve seen this multiple times) yesterday - I messed with the PMIC quite a bit and the Boron kept trying to charge to unconnected battery
On the Mooshimeter 10A is the only range - I’ll try with a 1ohm shunt today. @jack4566 - You are correct, I should be using HIBERNATE.
I’ll have a chat with engineering to see what is going on.
None yet, but sleep is being refined by engineering and we’ll soon have a much more robust implementation - until that is released, the code above is the best I have.
@ric_hard
I just tested with the DeviceOS 2.0 RC and this example: https://go.particle.io/shared_apps/5f203bb0e83d020008459159
160uA during STOP sleep. (Notice I’m testing with the Otii, a dedicated IoT testing device capable of accurately measuring these low currents, and I will expand on measurements and PMIC guides as soon as I have the time - it’s been a busy couple of weeks)
Yes, the RC was released yesterday, and I’ve been swamped, but I’ll be testing and the engineering team will also do tests over the next couple of days. There are example apps for each mode, so you’ll be able to verify yourself as well.
The datasheets will all be updated with the new values once we have all the data.