exploring_lora
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
exploring_lora [2018/09/29 12:51] – [3.1. Modifying the Radio Parameters] samer | exploring_lora [2018/09/29 12:59] – [3.1. Modifying the Radio Parameters] samer | ||
---|---|---|---|
Line 67: | Line 67: | ||
==== -. Modifying the Radio Parameters ==== | ==== -. Modifying the Radio Parameters ==== | ||
- | Download the {{ : | + | Download the {{ : |
+ | |||
+ | Take a look at the source code in '' | ||
+ | |||
+ | * Central frequency (freq) | ||
+ | * Spreading Factor (SF) | ||
+ | * Bandwidth (Bw) | ||
+ | * Coding Rate (CR) | ||
+ | * Transmit power (Pow) | ||
+ | |||
+ | <code c++> | ||
+ | rf95.setFrequency(frequency); | ||
+ | // Setup Power,dBm | ||
+ | rf95.setTxPower(13); | ||
+ | |||
+ | // Setup Spreading Factor (6 ~ 12) | ||
+ | rf95.setSpreadingFactor(7); | ||
+ | |||
+ | // Setup BandWidth, option: 7800, | ||
+ | //Lower BandWidth for longer distance. | ||
+ | rf95.setSignalBandwidth(125000); | ||
+ | |||
+ | // Setup Coding Rate: | ||
+ | rf95.setCodingRate4(5); | ||
+ | </ | ||
+ | |||
+ | In order to reduce collisions, configure the central frequency of your LoRa modules as indicated | ||
^ Group Number | ^ Group Number | ||
Line 83: | Line 109: | ||
| | | | ||
- | Note that the radio parameters of your LoRa devices: Spreading Factor (SF), Bandwidth (Bw), and Coding Rate (CR) are configured in the '' | ||
==== -. Running Basic Sketches ==== | ==== -. Running Basic Sketches ==== | ||
exploring_lora.txt · Last modified: 2021/10/20 12:52 by samer