Inspecting LoRa Memory



  • is there any way to extract LoRaWAN join states from memory. I'm particularly interested in looking at NwkSKey.

    This is to debug an issue I have when a join request reaches two gateways. My lorawan-server then seems to get confused and every subsequent message has bad_mic.

    I think what is happening is the LoPy is using the NwkSKey from the first successful join and the lorawan-server is trying to use the one from the second join attempt. But really to prove it I would like to see what NwkSKey the lopy thinks it is using.

    Is this possible.



  • @wstallwood As far as I know you can’t do it directly from micropython, but you could easily build a custom image from source adding a few logs where appropriate.


 

Pycom on Twitter