-
Notifications
You must be signed in to change notification settings - Fork 40
Carrier sense multiple access (CSMA)
sh123 edited this page Oct 15, 2021
·
6 revisions
- LoRa library, which is in use by this project does not implement CAD, but CSMAp is utilized by this project as per KISS specification. TX path is executed only when there is no incoming data returned by
LoRa::parsePacketand TX path is executed with probability p (CSMA persistence), configured by constLoraprs::Service::CfgCsmaPersistenceinloraprs_service.h. Random value is selected between 0 and 255 and TX is executed only when it is lower thanCfgCsmaProbBoundary. - To decrease TX probability in case of high traffic use lower value.
Loraprs::ServiceCsmaSlotTimeMsconfigures the amount of time in milliseconds to wait if transmission was not performed due to persistence, select lower value for lower TOA (time on air). It is also possible to dynamically override these parameters with KISS P 0x02 and SlotTime 0x03 command codes from the client.