RAK7204 stops sending data

Hello, RAK team,

I’m testing RAK7204 for few months now. I had one time device stopped sending data. After restart device started to send data again. Now i have again same situation device stopped sending data. I do not want to restart it. I need to debug that is the problem because if test will be successful we will start it using in our company for agriculture fields monitoring this means driving few a few hundred kilometers to restart one node.

I need to debug this sensor how can i do that? Do you have any tools? What steps to do next after i see device do not send any data.

Device: RAK7204
FW version: V3.0.0.12
Bootloader: 3.0.2
Server: Chirpstack/loraserver

Gateway ~5 meters from the sensor. Gateway works fine other nodes sends data using this gateway.

Hi. You can monitor the node with RAK Serial tool, but have to be connected to it. To try to help you we have to see some outputs.

Hello Velev,

Bellow some output from Serial tool. As there is no timestamp it is not so useful i guess.

I have tried to send command at+join. Device replies OTAA Join Start… OK but never joins. And only after command at+set_config=device:restart device joined and sent data instantly.

I guess in the future it would be perfect if to add some watchdog to restart device in case not able to join.

at+version
OK3.0.0.9.H

at+get_config=device:status
OK.


===============Device Status List================
Board Core: RAK811
MCU: STM32L151CB_A
LoRa chip: SX1276

===================List End======================


at+get_config=lora:status
OK.


==============LoRaWAN Status List================
Work Mode: LoRaWAN
Region: EU868
Send_interval: 600s
Auto send status: true.
Send_interval work at sleep
Join_mode: OTAA
DevEui: 60C5A8FFFE7634CD
AppEui: 60C5A8FFFE7634CD
AppKey: E1BCDE4DA6AA3B3DAD04EEDBE383B172
Class: A
Joined Network:true
IsConfirm: false
AdrEnable: true
EnableRepeaterSupport: false
RX2_CHANNEL_FREQUENCY: 869525000, RX2_CHANNEL_DR:0
RX_WINDOW_DURATION: 3000ms
RECEIVE_DELAY_1: 1000ms
RECEIVE_DELAY_2: 2000ms
JOIN_ACCEPT_DELAY_1: 5000ms
JOIN_ACCEPT_DELAY_2: 6000ms
Current Datarate: 0
Primeval Datarate: 2
ChannelsTxPower: 0
UpLinkCounter: 1802
DownLinkCounter: 1498
===================List End======================


at+set_config=lora:send_interval:1,30
Start auto send data with sleep.
OK

at+get_config=device:status
OK.


===============Device Status List================
Board Core: RAK811
MCU: STM32L151CB_A
LoRa chip: SX1276

===================List End======================


at+join
OTAA:
DevEui:60C5A8FFFE7634CD
AppEui:60C5A8FFFE7634CD
AppKey:E1BCDE4DA6AA3B3DAD04EEDBE383B172
OTAA Join Start…
OK

at+set_config=device:restart
OK,restart …

========================================================


| ___ / _ \ | | / / | | | () | |
| |
/ / /\ | |/ / | | | | _ __ | | ___ ___ ___
| /| _ || \ | |/| | | '
/ _ \ |/ _ / __/ __|
| |\ | | | || |\ \ \ /\ / | | | __/ | /_ _
_| __| |
/_| _/ / /||| _|_|_||//


RAK7204 Version:3.0.0.9.H


========================================================

Selected LoRaWAN 1.0.2 Region: EU868
BME680 init success.
autosend_interval: 30s
Current work_mode:LoRaWAN, join_mode:OTAA, Class: A
OTAA:
DevEui:60C5A8FFFE7634CD
AppEui:60C5A8FFFE7634CD
AppKey:E1BCDE4DA6AA3B3DAD04EEDBE383B172
OTAA Join Start…
[LoRa]:Joined Successed!
Battery Voltage = 3.558 V
Humidity:52.113 %RH
Temperature:22.67 degree
Pressure:988.55 hPa
Gas_resistance: 8844 ohms
[LoRa]: send out
[LoRa]: Unconfirm data send OK
Go to Sleep.
Wake up.
Battery Voltage = 3.575 V
Humidity:51.606 %RH
Temperature:22.70 degree
Pressure:988.55 hPa
Gas_resistance: 13491 ohms
[LoRa]: send out
[LoRa]: Unconfirm data send OK
Go to Sleep.
Wake up.
Battery Voltage = 3.580 V
Humidity:50.918 %RH
Temperature:22.77 degree
Pressure:988.61 hPa
Gas_resistance: 19034 ohms
[LoRa]: send out
[LoRa]: Unconfirm data send OK
Go to Sleep.
Wake up.
Battery Voltage = 3.581 V
Humidity:50.269 %RH
Temperature:22.86 degree
Pressure:988.59 hPa
Gas_resistance: 24906 ohms
[LoRa]: send out
[LoRa]: Unconfirm data send OK
Go to Sleep.

Hi @Ernestas,

It is a good idea about watchdog, but i think it can be used for some issue, not join, because if there isn’t a valid gateway, RAK7204 will join—failed—restart—join—failed—restart…, then the battery will be used up soom.

Actually, we’ve released the latest firmware V3.0.0.12.H.T, which you can find here:
https://downloads.rakwireless.com/en/LoRa/RAK7204/Firmware/
In this firmware, if RAK7204 join failed, after some time, RAK7204 will try to join again. You can use “at+set_config=lora:send_interval:X:Y” to set the join interval too.

Thank you perfect, i will try it.

Hi Ernestas, I have the same problem. Did you get it fixed? If so, how?

1 Like