mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
650 stars 212 forks source link

SX1278 (433Mhz) configuration #36

Closed vshymanskyy closed 7 years ago

vshymanskyy commented 7 years ago

Is there any way I can configure it to work with SX1278 + single-channel gateway (my gateway seems to be working already) ? I tried this, but it didn't help:

LMIC_setupChannel(0, 434500000, DR_RANGE_MAP(DR_SF12, DR_SF7),  BAND_CENTI);

Thanks!

terrillmoore commented 7 years ago

Hi,

Wow, I really don't know; I've not tried this at all. What I've found is that the code is pretty fragile in the face of overrides like that, but if you set up a proper region it seems to work OK. Which LoRaWAN region are you trying to use?

Best regards, --Terry

terrillmoore commented 7 years ago

By the way: there is documentation (untested by others, but used by me during the conversion) on adding bandplans: arduino-lmic/HOWTO-ADD-REGION.md. Even if you don't want to do the work of adding a bandplan, reading through it might give a clue as to what could be going wrong.

--Terry

vshymanskyy commented 7 years ago

Thanks. I'll try to figure it out!