-
Notifications
You must be signed in to change notification settings - Fork 532
Description
Hi JanGromes, Thanks for making LoRaWAN work, cool.
I have a few questions.
- Write in the example
LoRaWAN_End_Device
// prior to LoRaWAN 1.1.0, only a single "nwkKey" is used
// when connecting to LoRaWAN 1.0 network, "appKey" will be disregarded
// and can be set to NULL
In TTN if LoRaWAN Version is selected below 1.1.0, then the valid one will be
Appkey is not NetKey as mentioned in the example
In actual use, if appKey is filled in with the AppKey generated in TTN, then a MIC Mismatch error will occur when joining the LoRo gateway.
If I fill in nwkKey as the AppKey generated by TTN, appKey = NULL, then I can see in the TTN terminal that it is allowed to be joined, but state = node.beginOTAA(joinEUI, devEUI, nwkKey, appKey);
The error code returned is -6 or -1112
I try to select 1.1.0 for LoRaWAN Version in TTN, and fill in the joinEUI, devEUI, nwkKey, appKey generated by TTN accordingly. It can be added to TTN normally for the first time, but if the device is restarted and the TTN is used for the second time, The terminal will prompt DevNonce, the solution is to lower the LoRaWAN version, which can be found here
