exploring_lora
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
exploring_lora [2018/09/29 12:31] – [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 {{ : |
- | The typical configuration for LoRa modules consists of 125 kHz sub-channels, | + | Take a look at the source code in '' |
+ | |||
+ | * Central frequency (freq) | ||
+ | * Spreading Factor (SF) | ||
+ | * Bandwidth (Bw) | ||
+ | * Coding Rate (CR) | ||
+ | * Transmit power (Pow) | ||
- | ^ Data Rate | + | <code c++> |
- | | DR0 | + | rf95.setFrequency(frequency); |
- | | DR1 | + | // Setup Power,dBm |
- | | DR2 | + | rf95.setTxPower(13); |
- | | DR3 | + | |
- | | DR4 | + | |
- | | DR5 | + | |
- | | DR6 | + | |
- | In order to reduce collisions, configure the central frequency of your LoRa modules as below: | + | // 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 |
exploring_lora.txt · Last modified: 2021/10/20 12:52 by samer