LoRaWAN FUOTA ISSUE

0

Hi, I am using a custom board using nRF52840 and sx1262, I am trying to do FUOTA using AWS IoT core for LoRaWAN. I am new to AWS and require your support, I have created the multicast group and FUOTA task and scheduled it 30 mins in future. Followed the steps provided in this video "https://www.youtube.com/watch?v=GKSzBCn-HsI".

I am also sharing the Gateway log Thu May 9 06:18:02 2024 user.warn basicstation[3481]: [S2E:WARN] Unknown field in dnmsg - ignored: regionid Thu May 9 06:18:55 2024 user.info mwan3track[1870]: Check (ping) failed for target "8.8.8.8" on interface wan0 (apcli0). Current score: 11

  1. I don't see the multicast setup ready message in my multicast group instead I see package attempting.
  2. Even after scheduling the FUOTA task after 30 mins in future. FUOTA task is not executed but the uplink from my end device is sent at regular intervals
  3. The device status is "NotEnoughMemory" in the FUOTA task ? How do I debug the above issues ?

Thanks.

asked 19 days ago194 views
3 Answers
1
Accepted Answer

Hi. If your device firmware is using LoRaMac-node, the NotEnoughMemory error is coming from here: https://github.com/Lora-net/LoRaMac-node/blob/dcbcfb329b4a343ab007bc19ac43a8dc952b3354/src/apps/LoRaMac/common/LmHandler/packages/LmhpFragmentation.c#L367. You will need to adjust your fragment settings (in your device firmware) so that the device can accept the new firmware.

profile pictureAWS
EXPERT
Greg_B
answered 19 days ago
  • Hi, I also tried FUOTA with nrf52840dk and semtech shield, here I don't face any NotEnoughMemory error. Listed the errors faced, Multicast group: The status of my device is always "package attempting" in the created multicast group, it is not changing to "multicast setup ready" as shown in the video. FUOTA tasks: I see the status of my FUOTA task is "FUOTA done" but the device status is still "Initial" not changed to "successful" How do I make this successful ? what are the possible reasons for this issue ? Thanks

  • Are you able to get a log of all messages, including MAC commands? Like what I show in the video. So you can see where in the sequence it breaks down.

  • My device is able to change to class C but not receiving the fragments from AWS, instead starts to send uplinks continuously. I also observed the messages in port 200 in the network analyzer when device switched to class C. I don't know how to debug this issue further ? At some instances its even difficult to debug as the device is not receiving the multicast setup request from AWS and not switching to class C. I observed the network analyzer log, my device is switching to class c and receiving the FragSessionSetupReq & FragSessionSetupAns after which the fuota fragments are not received by the device from AWS as per the scheduled time. Instead I see fuota task status as FUOTA DONE but device status as NotEnoughMemory not changed to SUCCESSFUL.

  • If your device returns NotEnoughMemory in FragSessionSetupAns, that's the end of the FUOTA attempt. There is nothing more that can be done, because your device has said it's not capable of accepting the FUOTA. As I explained in my answer, you need to change your device firmware.

0

Hi, I also tried to schedule downlink from AWS manually to my device. I am able to receive that downlink but my device status in the multicast setup group is always package attempting not changing to multicast setup ready. How to rectify this issue ? Thanks

answered 13 days ago
0

I met the same issue with Nucleo-WL55JC1 devkit, when following the video https://www.youtube.com/watch?v=LcCR-1eKX1w after my device "Switch to Class C", AWS doesn't send the TX message according to Network Analyzer. I tried many settings, none of them works. I use RfRegion AS923-1, @Greg_B, can you try it ? thanks

answered 4 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions