GrumpyOldPizza / ArduinoCore-stm32l0

Arduino Core for STM32L0
125 stars 67 forks source link

Connecting LoraWAN to TTNv3 error MIC mismatch #200

Closed rojikada closed 2 years ago

rojikada commented 2 years ago

Hello, does anybody have this working with the TTNv3? I am trying to use the lorawan module with TTNv3, however in the TTN console I get MIC mismatch. The appEui = appEUI, DevEUI=devEui, JoinEUI=appKey and the specifiation is LoRaWAN 1.0.2 ?

rojikada commented 2 years ago

Aha! The problem was in having all zeroes in appEUI, after recreating the app with non-zero appEUI it started to work!

salmanfarisvp commented 1 year ago

Hi @rojikada , where did you get the the appEUI , devEUI and JoinEUI -> Did you generate from your own? Thanks.

rojikada commented 1 year ago

I just changed it within my code and the TTN web

salmanfarisvp commented 1 year ago

I see the JOINEUI is not available from the TTN, but another key can be generated. So can we use a random for that and match the same with the node firmware?

rojikada commented 1 year ago

I don’t understand what are you trying to do.

And as stated previously JoinEUI=appKey, which worked for me.

salmanfarisvp commented 1 year ago

Sorry for the confusion, I mean: When we register a new node in TTN, we need to provide the JoinEUI, so for a DIY project where do we get the JoinEUI if the manufacture did provide it with all? Thanks.

image

rojikada commented 1 year ago

You just generate one and put it to your code setup. If the device is not programmable, you might be on the wrong page.

salmanfarisvp commented 1 year ago

Got it, Thanks for your time. 🙂

I use the http://descartes.co.uk/CreateEUIKey.html to generate the EUI key.