For users of a Dragino LoRa/GPS HAT (for Raspberry Pi) I have implemented a Hardware Abstraction Layer for the IBM LMIC 1.6 communication stack. This is similar to the solution of Ernst de Vreede, but as a difference it is based on IBM LMIC 1.6, which seems to be the most recent version of this communication stack. I tried not to touch the LMIC stack itself but only provide a HAL for RPi + LoRa HAT. I also tried not to put too much CPU load on the RPi when waiting for incoming messages.
Find the code in github at https://github.com/wklenk/lmic-rpi-lora-gps-hat8
- The following LMIC examples are working yet with this HAL and TTN:
examples/hello – Not using radio at all
- examples/join – Join the TTN using OTAA (over the air activation)
- examples/periodic – Join and periodically send a sensor value to TTN.
The examples work, however I would like to do some more analysis and fine tuning regarding the timing of the receive window, and I like to add more debug output to understand what is going on in the network in regards of the LoRaWAN protocol.
Note: I tested it with a Kerlink IoT Gateway. Single Channel Gateways won’t work.