novag / SlimLoRa

WIP, does NOT work yet. See https://github.com/novag/LoRa-ATtiny-Node for a working version made for the ATtiny85.
GNU Lesser General Public License v3.0
12 stars 1 forks source link

Support different regions #3

Open novag opened 3 years ago

novag commented 3 years ago

Currently only EU868 is supported.

brentru commented 3 years ago

Would you be open to adding a setRegion method for selecting the region?

related: https://github.com/adafruit/TinyLoRa/pull/35/files

I'd be able to add support for (and test) the US region.

novag commented 3 years ago

It would be nice to have but currently there is no support for other regions than EU868 at all. I am currently working on implementing region support but this is not trivial since the handling of downlink packets differs greatly between the regions. Do you know more about the handling of US downlink packets? Maybe we can chat about it.

brentru commented 3 years ago

Do you know more about the handling of US downlink packets? Maybe we can chat about it.

Nope - but I can add/test it. It was unimplemented in TinyLoRa. Do you have documentation on how the handling differs?

novag commented 3 years ago

It is described in the LoRaWAN specification and the regional parameters. Spec: https://lora-alliance.org/resource_hub/lorawan-specification-v1-0-3/ RP: https://lora-alliance.org/resource_hub/rp2-102-lorawan-regional-parameters/