matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
705 stars 651 forks source link

LMIC_enableChannel(10); #238

Open JorgeDaniel369 opened 4 years ago

JorgeDaniel369 commented 4 years ago

hi i know because i seen in a video that the channel 10 is 904.3 mhz but i was the switch case of the IF parameters for know what represent each value: for example 902.3= channel 0 902.5 = channel 1 902.7 = channel 2 904.3 = channel 10 im using this channel but i dont know how to find in the library somebody can help me? and why i want to know this because in the future maybe i going to changue the channel and i need to know the channel in my gateway and my node

matthijskooijman commented 4 years ago

IIRC, the frequency plan defaults to just the mandatory frequencies from the spec (3 for joining, 6 for data): https://github.com/matthijskooijman/arduino-lmic/blob/ba1265d5d2f775177cdc7c82186724e4f0bdc3a8/src/lmic/lorabase.h#L73-L82

In ABP, you are expected to configure the frequency plan manually: https://github.com/matthijskooijman/arduino-lmic/blob/ba1265d5d2f775177cdc7c82186724e4f0bdc3a8/examples/ttn-abp/ttn-abp.ino#L190-L198

In OTAA, the frequency plan is sent by the network on join. I don't think there is a ready-made way to print the plan after join, but you can probably write some code for this. Also, the network should document their frequency plan, I expect.

Does this answer your question?