RAK5205 premature wake-up from sleep FW3.0.0.8.H

RAK5205 has premature wake-up from sleep, tested with firmware 3.0.0.8.H with USB power and external battery.

Interval is set to 300 seconds, sleep consumes around 14uA but wakes up prematurely after 20 to 30 seconds and consumes 6 mA until next interval (see trace below).

[2019/10/11 17:35:37]SecureCRT - Version 8.0.1 (x64 build 1082)
[2019/10/11 17:35:42]
[2019/10/11 17:35:42]
[2019/10/11 17:35:42]========================================================
[2019/10/11 17:35:42]______ ___ _ __ _ _ _ _
[2019/10/11 17:35:42]| ___ / _ \ | | / / | | | () | |
[2019/10/11 17:35:42]| |
/ / /\ | |/ / | | | | _ __ | | ___ ___ ___
[2019/10/11 17:35:42]| /| _ || \ | |/| | | '
/ _ \ |/ _ / __/ __|
[2019/10/11 17:35:42]| |\ | | | || |\ \ \ /\ / | | | __/ | /_ _
[2019/10/11 17:35:42]_| __| |
/_| _/ / /||| _|_|_||___/___/
[2019/10/11 17:35:42]========================================================
[2019/10/11 17:35:42]********************************************************
[2019/10/11 17:35:42]RAK5205 Version:3.0.0.8.H
[2019/10/11 17:35:42]********************************************************
[2019/10/11 17:35:42]========================================================
[2019/10/11 17:35:42]
[2019/10/11 17:35:42]Selected LoRaWAN 1.0.2 Region: EU868
[2019/10/11 17:35:42] BME680 init success.
[2019/10/11 17:35:42]LIS3DH init OK.
[2019/10/11 17:35:42]GPS Init OK.
[2019/10/11 17:35:42] autosend_interval: 300s
[2019/10/11 17:35:43]Initialization OK,AT Uart work mode:normal mode, Current work_mode:LoRaWAN, join_mode:OTAA, Class: A
[2019/10/11 17:35:43]OTAA:
[2019/10/11 17:35:43]DevEui:
[2019/10/11 17:35:43]AppEui:
[2019/10/11 17:35:43]AppKey:
[2019/10/11 17:35:43]OTAA Join Start…
[2019/10/11 17:35:50][LoRa]:Join retry Cnt:1
[2019/10/11 17:35:50] OTAA:
[2019/10/11 17:35:50]DevEui:
[2019/10/11 17:35:50]AppEui:
[2019/10/11 17:35:50]AppKey:
[2019/10/11 17:35:50]OTAA Join Start…
[2019/10/11 17:35:55][LoRa]:Joined Successed!
[2019/10/11 17:35:55]Start Search Satellite(about 100 seconds) …
[2019/10/11 17:36:05]Gps normal.
[2019/10/11 17:36:05]latitude: 49.xxxx, longitude: 6.xxxx , altitude: 171.7m
[2019/10/11 17:36:05]Battery Voltage = 4.195 V
[2019/10/11 17:36:05]Humidity:51.772 %RH
[2019/10/11 17:36:05]Temperature:22.98 degree
[2019/10/11 17:36:05]Pressure:994.84 hPa
[2019/10/11 17:36:05]Gas_resistance: 47017 ohms
[2019/10/11 17:36:05]
[2019/10/11 17:36:06]LSI3DH X,Y,Z: 607mg, 94mg, -791mg
[2019/10/11 17:36:06][LoRa]: send out
[2019/10/11 17:36:09][LoRa]: Unconfirm data send OK
[2019/10/11 17:36:09]Go to Sleep. <<<<<<- 14uA
[2019/10/11 17:37:36]Wake up. <<<<<<- 6 mA
[2019/10/11 17:41:09]Start Search Satellite(about 100 seconds) … <<<<<<- 40 mA
[2019/10/11 17:41:35]Gps normal.
[2019/10/11 17:41:35]latitude: 49.xxxx, longitude: 6.xxxx , altitude: 169.3m
[2019/10/11 17:41:35]Battery Voltage = 4.195 V
[2019/10/11 17:41:35]Humidity:49.518 %RH
[2019/10/11 17:41:35]Temperature:23.31 degree
[2019/10/11 17:41:35]Pressure:994.86 hPa
[2019/10/11 17:41:35]Gas_resistance: 37426 ohms
[2019/10/11 17:41:35]
[2019/10/11 17:41:35]LSI3DH X,Y,Z: 611mg, 90mg, -787mg
[2019/10/11 17:41:35][LoRa]: send out
[2019/10/11 17:41:38][LoRa]: Unconfirm data send OK
[2019/10/11 17:41:39]Go to Sleep. <<<<<<- 14uA
[2019/10/11 17:42:49]Wake up. <<<<<<- 6mA
[2019/10/11 17:46:33][SERIAL-TRACE] : Waiting 10 seconds for I/O thread 6856 to exit.
[2019/10/11 17:46:33][SERIAL-TRACE] : I/O thread 6856 has exited cleanly.
[2019/10/11 17:46:33][SERIAL-TRACE] : Close Handle[2832]

You try to send commands

at+get_config=lora:status

Check to see if you have set the interval successfully.

Interval appears to be set correctly, tried with 600 seconds and same issue occurs.

OK.


==============LoRaWAN Status List================
Region: EU868
Send_interval: 300s
Auto send status: true.
Join_mode: OTAA
DevEui:
AppEui:
AppKey:
Class: A
Joined Network:true
IsConfirm: false
Work Mode: LoRaWAN
AdrEnable: true
EnableRepeaterSupport: false
RX2_CHANNEL_FREQUENCY: 869525000, RX2_CHANNEL_DR:3
RX_WINDOW_DURATION: 3000ms
RECEIVE_DELAY_1: 1000ms
RECEIVE_DELAY_2: 2000ms
JOIN_ACCEPT_DELAY_1: 5000ms
JOIN_ACCEPT_DELAY_2: 6000ms
Current Datarate: 5
Primeval Datarate: 5
ChannelsTxPower: 5
UpLinkCounter: 181
DownLinkCounter: 1
===================List End======================

I use your same method to verify that everything is normal, you try to send these commands, screenshot to me.thanks.
image

Hi Nicholas,

at+version
OK3.0.0.8.H

at+set_config=device:boot
Work in Boot mode now…

at+version
AT cmd error. <<<- strange

Erased chip and burned boot loader again

at+version
OK3.0.0.8.H
Work in Boot mode now…

at+version
RUI Bootloader Version:3.0.1 <<<- all good now

Problem is still there but premature wake-up is around 1 minute now (see below):

[2019/10/12 12:28:27]
[2019/10/12 12:28:27]
[2019/10/12 12:28:27]========================================================
[2019/10/12 12:28:27]______ ___ _ __ _ _ _ _
[2019/10/12 12:28:27]| ___ / _ \ | | / / | | | () | |
[2019/10/12 12:28:27]| |
/ / /\ | |/ / | | | | _ __ | | ___ ___ ___
[2019/10/12 12:28:27]| /| _ || \ | |/| | | '
/ _ \ |/ _ / __/ __|
[2019/10/12 12:28:27]| |\ | | | || |\ \ \ /\ / | | | __/ | /_ _
[2019/10/12 12:28:27]_| __| |
/_| _/ / /||| _|_|_||___/___/
[2019/10/12 12:28:27]========================================================
[2019/10/12 12:28:27]********************************************************
[2019/10/12 12:28:27]RAK5205 Version:3.0.0.8.H
[2019/10/12 12:28:27]********************************************************
[2019/10/12 12:28:27]========================================================
[2019/10/12 12:28:27]
[2019/10/12 12:28:27]Selected LoRaWAN 1.0.2 Region: EU868
[2019/10/12 12:28:28] BME680 init success.
[2019/10/12 12:28:28]LIS3DH init OK.
[2019/10/12 12:28:28]GPS Init OK.
[2019/10/12 12:28:28] autosend_interval: 300s
[2019/10/12 12:28:28]Initialization OK,AT Uart work mode:normal mode, Current work_mode:LoRaWAN, join_mode:OTAA, Class: A
[2019/10/12 12:28:28]OTAA:
[2019/10/12 12:28:28]DevEui:
[2019/10/12 12:28:28]AppEui:
[2019/10/12 12:28:28]AppKey:
[2019/10/12 12:28:28]OTAA Join Start…
[2019/10/12 12:28:33][LoRa]:Joined Successed!
[2019/10/12 12:28:33]Start Search Satellite(about 100 seconds) …
[2019/10/12 12:29:05]Gps normal.
[2019/10/12 12:29:05]latitude: 49.xxxx, longitude: 6.xxxx , altitude: 163.0m
[2019/10/12 12:29:05]Battery Voltage = 3.795 V
[2019/10/12 12:29:05]Humidity:49.253 %RH
[2019/10/12 12:29:05]Temperature:24.1 degree
[2019/10/12 12:29:05]Pressure:994.78 hPa
[2019/10/12 12:29:05]Gas_resistance: 48097 ohms
[2019/10/12 12:29:05]
[2019/10/12 12:29:05]LSI3DH X,Y,Z: 323mg, 157mg, -925mg
[2019/10/12 12:29:05][LoRa]: send out
[2019/10/12 12:29:08][LoRa]: Unconfirm data send OK
[2019/10/12 12:29:08]Go to Sleep.
[2019/10/12 12:30:14]Wake up.
[2019/10/12 12:34:08]Start Search Satellite(about 100 seconds) …
[2019/10/12 12:34:35]Gps normal.
[2019/10/12 12:34:35]latitude: 49.xxxx, longitude: 6.xxxx , altitude: 174.0m
[2019/10/12 12:34:35]Battery Voltage = 3.795 V
[2019/10/12 12:34:35]Humidity:49.770 %RH
[2019/10/12 12:34:35]Temperature:24.6 degree
[2019/10/12 12:34:35]Pressure:994.80 hPa
[2019/10/12 12:34:35]Gas_resistance: 39359 ohms
[2019/10/12 12:34:35]
[2019/10/12 12:34:35]LSI3DH X,Y,Z: 290mg, 152mg, -930mg
[2019/10/12 12:34:35][LoRa]: send out
[2019/10/12 12:34:38][LoRa]: Unconfirm data send OK
[2019/10/12 12:34:38]Go to Sleep.
[2019/10/12 12:35:49]Wake up.

I have used the same configuration to send the data, but the corresponding time is always normal. It is strange that you ask this question, do you have any other operations while waiting for the wake up? As you can see from your log, it did wait 300 seconds for the data to be sent, but the wake-up time was earlier, but the sensor didn’t start working.
6101-5DA3D000-3-159B06E0.png
On 星期六, 十月 12, 2019 18:47 HKT, lx3kr via RAKwireless Forum [email protected] 撰寫:


lx3kr
October 12
Hi Nicholas,

at+version
OK3.0.0.8.H

at+set_config=device:boot
Work in Boot mode now…

at+version
AT cmd error. <<<- strange

Erased chip and burned boot loader again

at+version
OK3.0.0.8.H
Work in Boot mode now…

at+version
RUI Bootloader Version:3.0.1 <<<- all good now

Problem is still there but premature wake-up is around 1 minute now (see below):

[2019/10/12 12:28:27]
[2019/10/12 12:28:27]
[2019/10/12 12:28:27]========================================================
[2019/10/12 12:28:27]______ ___ _ __ _ _ _ _
[2019/10/12 12:28:27]| ___ / _ \ | | / / | | | () | |
[2019/10/12 12:28:27]| |
/ / /\ | |/ / | | | | _ __ | | ___ ___ ___
[2019/10/12 12:28:27]| /| _ || \ | |/| | | '
/ _ \ |/ _ / __/ __|
[2019/10/12 12:28:27]| |\ | | | || |\ \ \ /\ / | | | __/ | /_ _
[2019/10/12 12:28:27]_| __| |
/| / / /||| **||||__/___/
[2019/10/12 12:28:27]========================================================
[2019/10/12 12:28:27]******************************************************
[2019/10/12 12:28:27]RAK5205 Version:3.0.0.8.H
[2019/10/12 12:28:27]********************************************************
[2019/10/12 12:28:27]========================================================
[2019/10/12 12:28:27]
[2019/10/12 12:28:27]Selected LoRaWAN 1.0.2 Region: EU868
[2019/10/12 12:28:28] BME680 init success.
[2019/10/12 12:28:28]LIS3DH init OK.
[2019/10/12 12:28:28]GPS Init OK.
[2019/10/12 12:28:28] autosend_interval: 300s
[2019/10/12 12:28:28]Initialization OK,AT Uart work mode:normal mode, Current work_mode:LoRaWAN, join_mode:OTAA, Class: A
[2019/10/12 12:28:28]OTAA:
[2019/10/12 12:28:28]DevEui:
[2019/10/12 12:28:28]AppEui:
[2019/10/12 12:28:28]AppKey:
[2019/10/12 12:28:28]OTAA Join Start…
[2019/10/12 12:28:33][LoRa]:Joined Successed!
[2019/10/12 12:28:33]Start Search Satellite(about 100 seconds) …
[2019/10/12 12:29:05]Gps normal.
[2019/10/12 12:29:05]latitude: 49.xxxx, longitude: 6.xxxx , altitude: 163.0m
[2019/10/12 12:29:05]Battery Voltage = 3.795 V
[2019/10/12 12:29:05]Humidity:49.253 %RH
[2019/10/12 12:29:05]Temperature:24.1 degree
[2019/10/12 12:29:05]Pressure:994.78 hPa
[2019/10/12 12:29:05]Gas_resistance: 48097 ohms
[2019/10/12 12:29:05]
[2019/10/12 12:29:05]LSI3DH X,Y,Z: 323mg, 157mg, -925mg
[2019/10/12 12:29:05][LoRa]: send out
[2019/10/12 12:29:08][LoRa]: Unconfirm data send OK
[2019/10/12 12:29:08]Go to Sleep.
[2019/10/12 12:30:14]Wake up.
[2019/10/12 12:34:08]Start Search Satellite(about 100 seconds) …
[2019/10/12 12:34:35]Gps normal.
[2019/10/12 12:34:35]latitude: 49.xxxx, longitude: 6.xxxx , altitude: 174.0m
[2019/10/12 12:34:35]Battery Voltage = 3.795 V
[2019/10/12 12:34:35]Humidity:49.770 %RH
[2019/10/12 12:34:35]Temperature:24.6 degree
[2019/10/12 12:34:35]Pressure:994.80 hPa
[2019/10/12 12:34:35]Gas_resistance: 39359 ohms
[2019/10/12 12:34:35]
[2019/10/12 12:34:35]LSI3DH X,Y,Z: 290mg, 152mg, -930mg
[2019/10/12 12:34:35][LoRa]: send out
[2019/10/12 12:34:38][LoRa]: Unconfirm data send OK
[2019/10/12 12:34:38]Go to Sleep.
[2019/10/12 12:35:49]Wake up.

Hi Nicholas,

Thanks for the response, I am not doing any further operations while I wait for wake-up, the main reason why I am pursuing this issue is power management and battery drain, with an early wake-up the board consumes 6 mA for 4 minutes when it should be 17 uA in sleep mode.

I’ll conduct some further tests on a second board next weekend, I noticed that in your test the GPS receiver was not locked but in my test case it was, will test again and let you know.

Best regards,

Karl

I’m really sorry for my mistake. We are fixing this problem and will reply to you later.

Hi Nicholas,

I have confirmed that sleep works correctly with GPS receiver unlocked, premature wake-up happens when GPS receiver is locked, the wake-up trigger must be coming from a locked GPS module.

[2019/10/20 09:51:27]
[2019/10/20 09:51:27]
[2019/10/20 09:51:27]========================================================
[2019/10/20 09:51:27]______ ___ _ __ _ _ _ _
[2019/10/20 09:51:27]| ___ / _ \ | | / / | | | () | |
[2019/10/20 09:51:27]| |
/ / /\ | |/ / | | | | _ __ | | ___ ___ ___
[2019/10/20 09:51:27]| /| _ || \ | |/| | | '
/ _ \ |/ _ / __/ __|
[2019/10/20 09:51:27]| |\ | | | || |\ \ \ /\ / | | | __/ | /_ _
[2019/10/20 09:51:27]_| __| |
/_| _/ / /||| _|_|_||___/___/
[2019/10/20 09:51:27]========================================================
[2019/10/20 09:51:27]********************************************************
[2019/10/20 09:51:27]RAK5205 Version:3.0.0.8.H
[2019/10/20 09:51:27]********************************************************
[2019/10/20 09:51:27]========================================================
[2019/10/20 09:51:27]
[2019/10/20 09:51:27]Selected LoRaWAN 1.0.2 Region: EU868
[2019/10/20 09:51:27] BME680 init success.
[2019/10/20 09:51:27]LIS3DH init OK.
[2019/10/20 09:51:27]GPS Init OK.
[2019/10/20 09:51:27] autosend_interval: 300s
[2019/10/20 09:51:27]Initialization OK,AT Uart work mode:normal mode, Current work_mode:LoRaWAN, join_mode:OTAA, Class: A
[2019/10/20 09:51:27]OTAA:
[2019/10/20 09:51:27]DevEui:
[2019/10/20 09:51:27]AppEui:
[2019/10/20 09:51:27]AppKey:
[2019/10/20 09:51:27]OTAA Join Start…
[2019/10/20 09:51:32][LoRa]:Joined Successed!
[2019/10/20 09:51:33]Start Search Satellite(about 100 seconds) …
[2019/10/20 09:53:13]FAIL.The Satellite signal not found!
[2019/10/20 09:53:13]Battery Voltage = 3.798 V
[2019/10/20 09:53:13]Humidity:59.810 %RH
[2019/10/20 09:53:13]Temperature:20.44 degree
[2019/10/20 09:53:13]Pressure:987.89 hPa
[2019/10/20 09:53:13]Gas_resistance: 7053 ohms
[2019/10/20 09:53:13]
[2019/10/20 09:53:13]LSI3DH X,Y,Z: 93mg, -60mg, -981mg
[2019/10/20 09:53:13][LoRa]: send out
[2019/10/20 09:53:16][LoRa]: Unconfirm data send OK
[2019/10/20 09:53:16]Go to Sleep.
[2019/10/20 09:58:16]Wake up.
[2019/10/20 09:58:17]Start Search Satellite(about 100 seconds) …
[2019/10/20 09:59:57]FAIL.The Satellite signal not found!
[2019/10/20 09:59:57]Battery Voltage = 3.798 V
[2019/10/20 09:59:57]Humidity:55.742 %RH
[2019/10/20 09:59:57]Temperature:21.17 degree
[2019/10/20 09:59:57]Pressure:987.93 hPa
[2019/10/20 09:59:57]Gas_resistance: 9083 ohms
[2019/10/20 09:59:57]
[2019/10/20 09:59:57]LSI3DH X,Y,Z: 91mg, -57mg, -985mg
[2019/10/20 09:59:57][LoRa]: send out
[2019/10/20 10:00:00][LoRa]: Unconfirm data send OK
[2019/10/20 10:00:00]Go to Sleep.
[2019/10/20 10:05:00]Wake up.
[2019/10/20 10:05:00]Start Search Satellite(about 100 seconds) …
[2019/10/20 10:06:40]FAIL.The Satellite signal not found!
[2019/10/20 10:06:40]Battery Voltage = 4.190 V
[2019/10/20 10:06:41]Humidity:53.781 %RH
[2019/10/20 10:06:41]Temperature:21.87 degree
[2019/10/20 10:06:41]Pressure:987.93 hPa
[2019/10/20 10:06:41]Gas_resistance: 10823 ohms
[2019/10/20 10:06:41]
[2019/10/20 10:06:41]LSI3DH X,Y,Z: 96mg, -56mg, -981mg
[2019/10/20 10:06:41][LoRa]: send out
[2019/10/20 10:06:44][LoRa]: Unconfirm data send OK
[2019/10/20 10:06:44]Go to Sleep.

Best regards,

Karl

Thank you for your test.We are working on this bug and the next release will fix it. Please wait.

V 3.0.0.10H has fixed this problem, you can download it from the official website and verify it.:upside_down_face::upside_down_face::upside_down_face::upside_down_face:
https://downloads.rakwireless.com/en/LoRa/RAK7205-Tracker/Firmware/

Hi Nicholas,

The new firmware works perfectly, sleep current is 15 uA for the entire period which is great! thanks for fixing this for us.

[2019/10/22 20:30:25]********************************************************
[2019/10/22 20:30:25]RAK5205 Version:3.0.0.10.H
[2019/10/22 20:30:25]********************************************************
[2019/10/22 20:30:26]========================================================
[2019/10/22 20:30:26]
[2019/10/22 20:30:26]Selected LoRaWAN 1.0.2 Region: EU868
[2019/10/22 20:30:26] BME680 init success.
[2019/10/22 20:30:26]LIS3DH init OK.
[2019/10/22 20:30:26]GPS Init OK.GPS timeout:100s
[2019/10/22 20:30:26]autosend_interval: 300s
[2019/10/22 20:30:26]Current work_mode:LoRaWAN, join_mode:OTAA, Class: A
[2019/10/22 20:30:26]OTAA:
[2019/10/22 20:30:26]DevEui:
[2019/10/22 20:30:26]AppEui:
[2019/10/22 20:30:26]AppKey:
[2019/10/22 20:30:26]OTAA Join Start…
[2019/10/22 20:30:35][LoRa]:Joined Successed!
[2019/10/22 20:30:35]Start Search Satellite(about 100 seconds) …
[2019/10/22 20:31:06]Gps normal.
[2019/10/22 20:31:06]latitude: 49.xxxx, longitude: 6.xxxx , altitude: 175.5m
[2019/10/22 20:31:06]Battery Voltage = 3.790 V
[2019/10/22 20:31:06]Humidity:50.304 %RH
[2019/10/22 20:31:06]Temperature:23.92 degree
[2019/10/22 20:31:06]Pressure:1003.64 hPa
[2019/10/22 20:31:06]Gas_resistance: 23953 ohms
[2019/10/22 20:31:06]
[2019/10/22 20:31:06]LIS3DH X,Y,Z: 83mg, -51mg, -984mg
[2019/10/22 20:31:06][LoRa]: send out
[2019/10/22 20:31:11][LoRa]: Unconfirm data send OK
[2019/10/22 20:31:12]Go to Sleep.
[2019/10/22 20:36:12]Wake up.
[2019/10/22 20:36:12]Start Search Satellite(about 100 seconds) …
[2019/10/22 20:36:55]Gps normal.
[2019/10/22 20:36:55]latitude: 49.xxxx, longitude: 6.xxxx , altitude: 181.8m
[2019/10/22 20:36:55]Battery Voltage = 4.193 V
[2019/10/22 20:36:55]Humidity:50.497 %RH
[2019/10/22 20:36:55]Temperature:23.91 degree
[2019/10/22 20:36:55]Pressure:1003.58 hPa
[2019/10/22 20:36:55]Gas_resistance: 21192 ohms
[2019/10/22 20:36:55]
[2019/10/22 20:36:55]LIS3DH X,Y,Z: 545mg, -83mg, -833mg
[2019/10/22 20:36:55][LoRa]: send out
[2019/10/22 20:37:00][LoRa]: Unconfirm data send OK
[2019/10/22 20:37:00]Go to Sleep.

Best regards,

Karl

Thank you very much for your test. It is good.