MIC of join-request is invalid (code:"UPLINK_MIC")

Viewed 10

I have onboarded two nodes. One is connected successfully, while the other is showing a key error. I have checked multiple times, its correct, but here it is showing this issue.

level:"ERROR"
code:"UPLINK_MIC"
description:"MIC of join-request is invalid, make sure keys are correct"

1 Answers

I have checked multiple times, its correct, but here it is showing this issue.

With the keys you have entered in Chirpstack, ChirpStack will re-calculate the MIC over the received payload. If it is different from the MIC of the received payload you will get this error. This only happens when the key used as input to this function is incorrect:

  • Re-check your keys
  • Make sure you have configured the correct LoRaWAN mac-version in the device-profile

This is were ChirpStack performs the join-request mic check / calculation:
https://github.com/chirpstack/chirpstack/blob/master/lrwn/src/phy_payload.rs#L668