Unable to join device

Hi,

i am unable to join a device using OTAA. I always get this error: MIC of join-request is invalid, make sure keys are correct

I was able to join the device once, then I deleted it from the console. Now when I try to join the device I get the error. One thing that seems strange to me is that i can see old events in the console every time when I recreate the device. Did I miss something when deleting devices or how is it possible to rejoin a device?

MIC error is about wrong appkey.
Please show the GUI of Event Frame and LoRaWAN event in ChirpStack.

The appkey is the same as before. Attached are the screenshots. I hope this is helpful


Maybe this could be useful, try to get the PhyPayload of your JoinRequest (I think you can get it from the gateway tab)
use this website to input your payload, and your appKey (in the website goes in the appSkey section)
Check for the MIC there, if there’s a MIC, then you are probably your APPKey is wrong
Alternative, if that’s a custom device and you are programming the LoRaWAN protocol from scratch, then that could be the source of the error[quote=“maxno, post:1, topic:21163, full:true”]
I was able to join the device once, then I deleted it from the console. Now when I try to join the device I get the error. One thing that seems strange to me is that i can see old events in the console every time when I recreate the device. Did I miss something when deleting devices or how is it possible to rejoin a device?
[/quote]

I’m pretty sure that’s happening because when you delete a device you don’t delete all the data, anyway, that shouldn’t be important (I think)

Thank you for your answer.
I reset the device, deleted it in chirpstack and added it another time and now it is receiving data :grinning:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.