Closed hallard closed 6 years ago
It looks like a valid response since you now got a nwskey and appskey together with a devaddr. With this you can start sending messages in ABP mode.
You can try removing the device in TTN and recreate it and make sure you change the DEVNONCE value on everytime you do an otaa request.
Anyway I'm still refactoring the code so it will become more readable and usable. A small hack to solve the devnonce randomness is:
from random import randrange
devnonce = [randrange(256), randrange(256)]
Hi there, I'm trying this lib in Python, seems to works but can't find any trace on activation or device on TTN console So I tried my board on RPI 3 with my custom LMIC port for RPI and its working fine and I can see activation and data into TTN console so it's not hardware related Of course I copied deveui/appeui/appkey from my working LMICexample to Python ttn_otaa.py, I also adjusted pin definition and device is detected in python
here the result of
otaa_tty.py
, I set verbose to true, there is a receive done, all seems fine but I see nothing on ttn, did I missed something ? Is there any way to have (for debug) a join request/accept callback ?Thanks for any help
root@pi03(rw):~/LoRaWAN#