Using lorawan package on end-user TinyGO based Lora device

Hi,

I’m working on a new firmware for a GPS/Lora tracking device (based on Dragino LGT92 device with a custom TinyGO firmware)

image

http://www.dragino.com/products/lora-lorawan-end-node/item/142-lgt-92.html

Right now, I can already send GPS position through the Lora tranceiver (SX127x - RFM95).
(p2p communication, not Lorawan)

I was wondering if I could use https://github.com/brocaar/lorawan source code to add LoraWAN compatibility.

According to the README:

“Package lorawan provides structures and tools to read and write LoRaWAN 1.0 and 1.1 frames from and to a slice of bytes.”

… So I guess i could send all the required packets to join and communicate to Lorawan networks, with this code, right ?

What do you think about that ?

Thanks

Olivier

1 Like

It just provides the logic to encode and decode LoRaWAN frames (+ encryption and mic handling). If you would be able to use this, then you would still need to implement the LoRaWAN protocol yourself.