Just received my Lostik node and now that I’m in lockdown I’m setting it up. My (linux) laptop recognises the device and I can run the examples provided. There’s no example config file though so is it just a question of running commands via the supplied miniterm.py or what? I’m not using a GUI for this at the momentt, just terminal commands. Any info and/or example configs would be much appreciated.
Perhaps ask the supplier or manufacturer?
Or read the RN2483/RN2903 documentation for available commands.
I asked the supplier, and have sorted it all out now with my own testing. Basically I had over-complicated the parameters that I’d used. Usng the supplied lorawan.py in the examples directory, I simply needed to run the below:
python3 ./lorawan.py --joinmode otaa --appkey XXXX --deveui XXXX --appeui XXXX /dev/USB0
That worked, but I was getting a no_free_channels message if I failed to send data, so looking around the 'net, this can be a known occurrence with the RN2483, so here’s a list of setup commands to send which has now made everything work as intended. I’m now rewriting the lorawan.py to include these and make it a bit more personal.
self.send_cmd("sys get hweui")
self.send_cmd('sys get ver')
self.send_cmd('radio get mod')
self.send_cmd('radio get freq')
self.send_cmd('radio get sf')
self.send_cmd('mac pause')
self.send_cmd('mac resume')
self.send_cmd('mac reset 868')
self.send_cmd('mac set appeui %s' % 'my_appeui')
self.send_cmd('mac set appkey %s' %'my_appkey')
self.send_cmd('mac set deveui %s' % 'my_deveui')
self.send_cmd('mac join otaa')
Overall though, a very nice device and the supplier is very helpful.
Hi, I’m going through the same process, now, with my LoStik’s
Basic question but I can’t seem to find an answer after duly Googling: how do I get keys to use on the LoStik? Do I need my own gateway?
Appreciated any help.
Acacio
Depends …
Some keys will come from the device registration on the console.
Or all of them, depending on how you join the network.
Perhaps some of the basics need reviewing:
Read all of: https://www.thethingsnetwork.org/docs/lorawan/
The devices section of: https://www.thethingsnetwork.org/docs/devices/
The gateways section of: https://www.thethingsnetwork.org/docs/gateways/
The network section of: https://www.thethingsnetwork.org/docs/network/
The applications and API sections of: https://www.thethingsnetwork.org/docs/applications/
Starting out is made much easier if you have your own gateway but it’s not strictly necessary. Find out where your nearest gateways are:
https://www.thethingsnetwork.org/ - map half way down the home page
https://ttnmapper.org - this will show you coverage for active gateways that have been mapped
You can ask questions at any point, but don’t try to read too much in to too much detail, just let it ride, some pieces will fall in to place as you read more & do more.
Thx. I registered the device and gotten app kets, etc… Gotten to the point of debugging no_free_ch and trying to change sf. I’ll get there
Thx