Skip to content

LoRaWAN FUOTA - MIC fail

0

Hi, During the fuota process as soon as the fuota session starts i.e. when the firmware fragments are sent from AWS to the end node, I face MIC fail error "lorawan: McpsIndication failed : MIC fail" at the end node. I checked the deveui, appkey, joineui are same as in end node and AWS console.I have done successful fuota updates already using AWS but suddenly this error pops out ?

What could be the possible reasons for this error ?

Thanks.

asked 2 years ago312 views
1 Answer
0

Hi. MIC = Message Integrity Code. It's essentially a checksum performed over the MAC header and MAC payload of your message, and then compared with the MIC In the message. Given that AWS IoT Core LoRaWAN works with lots of devices, it's improbable that it's sending an incorrect MIC. It's more likely that your device has some problem with the MIC calculation.

Have you changed your fragment size? What region are you operating in? It's likely that the FUOTA fragments are the largest payload your device has to deal with, so I would suspect that the MIC failure is related to the large payload size.

AWS
EXPERT
answered 2 years ago
AWS
EXPERT
reviewed a year ago
  • Hi, Operating region - US915, Max frag size = 232, Min frag size = 224. No, I haven't changed the frag size.

  • I meant what fragment size are you setting in the AWS console when creating the FUOTA task? Can you please add logging in your device firmware to get details about why your device determines there's a MIC failure?

  • fragment size in aws - 232 bytes fragment interval - 3s redundancy - 5

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.