Skip to main content
Visitor II
September 22, 2023
Question

STM32WL LoRaWAN send data error after restore the context data from NVM

  • September 22, 2023
  • 1 reply
  • 1796 views

Hi, I am using the NUCLEO-WL55JC1 to send/recv the data via LoRaWAN.
The sample code AT_Slave in SDK 1.3.0 worked well when I tested at region AS923. 
However, I started to test at the region EU868, the device worked until I reset the device.

The device restore lora parameters from NVM but it return error when I send data.

My flow is:

  1. Factory reset to clear data in NVM (AT+RFS)
  2. Set region EU868 (AT+BAND=5)
  3. Join with OTAA (AT+JOIN=1), I can get the join request on the TTI backend
  4. Send data (AT+SEND=5:0:11223344) , I can see the data on TTI backend.
  5. Store context data to NVM (AT+CS)
  6. System reset or reboot (ATZ), the device shows NVM DATA RESTORED.
  7. Join fail (it blocks without any notification like TX on freq 868100000 Hz at DR 0)

I tried to disable the force_join, the join returned OK but the AT+SEND return ERROR immediately.

Then I changed to the region AS923, my flow worked weill.

I traced into the driver LmHandler/LoRaMAC layer, the LoRaMacMcpsRequest returned error status LORAMAC_STATUS_NO_CHANNEL_FOUND.

---

The stack version

 

APPLICATION_VERSION: V1.3.0
MW_LORAWAN_VERSION: V2.5.0
MW_RADIO_VERSION: V1.3.0
L2_SPEC_VERSION: V1.0.4
RP_SPEC_VERSION: V2-1.0.1

 

Is there any function I missed in my flow? or missing something when the device stores data to NVM? 

This topic has been closed for replies.

1 reply

Issamos
Lead III
September 22, 2023

Hello @gavin-chien 

I suggest you to take a look at this video. It may help you solving your problem. 

Best regards.

II