HelTecAutomation / Heltec_ESP32

Arduino library for Heltec ESP32 (or ESP32+LoRa) based boards
Other
616 stars 224 forks source link

Channel selection #23

Open aifrog opened 4 years ago

aifrog commented 4 years ago

I can select the frequency band @ 433E6, 868E6 or 915E6. But how can I select a respective channel? To my Knowledge LoRa allows for diffent channels inside a band, e.g. for 868MHz:

Channel Number | LoRa Center Frequency CH_10_868 | 865.20 MHz CH_11_868 | 865.50 MHz CH_12_868 | 865.80 MHz CH_13_868 | 866.10 MHz CH_14_868 | 866.40 MHz CH_15_868 | 866.70 MHz CH_16_868 | 867 MHz CH_17_868 | 868 MHz

Sadtex commented 4 years ago

You have to calculate the offset directly and write it in the constructor i.e.: You want Channel 3. Channel 3 has an offset of 300kHz. 868mHz+0.3mHz=868.3mHz. =>#define BAND 868.3E6 //EU Freq with channel 3 Heltec.begin(true, true, true, true , BAND /*long BAND*/);

I hope I could help you