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 11:44] – [3.2. Running Basic Sketches] 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 {{ : |
- | Start by setting | + | 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 | ||
^ Group Number | ^ Group Number | ||
Line 84: | Line 108: | ||
| | | | ||
| | | | ||
- | |||
- | |||
- | The typical configuration for LoRa modules consists of 125 kHz sub-channels, | ||
==== -. Running Basic Sketches ==== | ==== -. Running Basic Sketches ==== |
exploring_lora.txt · Last modified: 2021/10/20 12:52 by samer