- Newest
- Most votes
- Most comments
The issue you're experiencing with FUOTA (Firmware Update Over-The-Air) in AWS IoT Core for LoRaWAN seems to be related to a mismatch in specifications or configuration between your device and AWS.
First, it's important to note that AWS IoT Core for LoRaWAN's support for FUOTA and multicast groups is based on specific LoRa Alliance specifications. These include:
- LoRaWAN Remote Multicast Setup Specification, TS005-2.0.0
- LoRaWAN Fragmented Data Block Transportation Specification, TS004-1.0.0 (or 2.0.0 in some cases)
- LoRaWAN Application Layer Clock Synchronization Specification, TS003-1.0.0 (or 2.0.0 in some cases)
You mentioned you're using Multicast Setup v2, which aligns with AWS's specification. However, for Fragmented Data Block Transportation and Application Layer Clock Synch, AWS might be expecting v2.0.0 instead of v1.0.0 that you're using. This version mismatch could be causing the lack of fragmentation setup messages.
Another potential issue could be related to the fragment size. AWS IoT Core for LoRaWAN has a feature called "Advanced Transmission Parameters" when creating a FUOTA task. This allows you to set a custom fragment size. If your device expects a fragment size smaller than the default (which is typically 50 bytes), you might need to adjust this in the AWS FUOTA task settings.
To troubleshoot this issue:
-
Check if your device firmware (LoRa Basics Modem) supports the same versions of the specifications as AWS IoT Core for LoRaWAN.
-
Verify the fragment size settings both on your device and in the AWS FUOTA task configuration. Ensure they are compatible.
-
Use the Network Analyzer feature in AWS IoT Core for LoRaWAN to monitor the FUOTA process. Activate frame info for your devices and add them to the Network Analyzer configuration. This will allow you to see detailed messages, including those related to fragmentation setup.
-
Check if there are any "NotEnoughMemory" errors in the FUOTA task status. This could indicate that your device doesn't have enough memory to handle the firmware update, even with the smaller binary.
-
Ensure that your device is correctly set up to receive multicast messages and is in the right class (typically Class C) during the FUOTA process.
If the issue persists after checking these points, you may need to review your device's FUOTA implementation or consult with AWS support for more specific troubleshooting steps.
Sources
Firmware update over-the-air (FUOTA) for AWS IoT Core for LoRaWAN - AWS IoT Wireless
LoRaWAN FUOTA ISSUE | AWS re:Post
Debug and troubleshoot your multicast groups and FUOTA tasks using network analyzer - AWS IoT Wireless
Relevant content
asked 2 years ago
asked 2 years ago
asked 2 years ago
asked 3 years ago

Thanks for your reply Oleksii. I'll try some different combinations of standards on my end, as this was a point of confusion for me. On one page (https://docs.aws.amazon.com/iot-wireless/latest/developerguide/lorawan-multicast-fuota.html), AWS lists all v2 specs, but on another page (https://docs.aws.amazon.com/iot-wireless/latest/developerguide/lorawan-mc-fuota-overview.html) AWS lists the ones I cited. It does seem like Clock Synch v1 is being used, as the command packet lengths were rejected on my device as being of the wrong size. Is there a way to confirm what exactly is being used on the AWS side?
I can confirm that the fragment sizes I'm setting in AWS are in range of what my device accepts, I'm setting the device to class C (which it supports), and the Multicast group looks to get setup correctly and results in a status of "ready" (with green check) in the AWS multicast group. When I use a binary that is too large (my first attempt), I did get the "NotEnoughMemory" error, which is good. However, subsequent attempts using a smaller binary that "should" fit resulted in no fragmentation setup occurring. I see McClassCSessionReq & Ans messages (with no error bits set) go across, then nothing else.
Hi there, just following up on this. I played around with it more, and found that there is some dependency involving the binary name. I had a small patch file (9kB) that I was trying to send over FUOTA, but it was never setting up or starting the fragmentation session. The file had been renamed to "patch.bin". I renamed it to an original name (e.g. project_v1.bin) and it seems to setup the fragmentation session and send down fragments now. Anyway I can make sense of that?