Updated Carrier sense multiple access (CSMA) (markdown)

master
sh123 2021-10-23 15:50:08 +03:00
rodzic ec90b64b26
commit 4b8d426e7e
1 zmienionych plików z 2 dodań i 0 usunięć

@ -1,3 +1,5 @@
![alt text](https://raw.githubusercontent.com/sh123/esp32_loraprs/master/images/csma.png)
- Carrier detection is used when sketch is built based on RadioLib library with `USE_RADIOLIB` flag
- Also, additional flag `cfg.LoraUseCad/CFG_LORA_USE_CAD`) must be set to `true`
- CSMAp is utilized by this project as per KISS specification. TX path is executed only when there is no incoming data returned by `LoRa::parsePacket` and TX path is executed with probability p (CSMA persistence), configured by const `Loraprs::Service::CfgCsmaPersistence` in `loraprs_service.h`. Random value is selected between 0 and 255 and TX is executed only when it is lower than `CfgCsmaProbBoundary`.