Update README.md

pull/15/head
sh123 2020-12-08 15:24:10 +02:00 zatwierdzone przez GitHub
rodzic b8618a4cfb
commit 0ee6fa034d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -94,7 +94,7 @@ It is possible to use modem **in client mode** with other generic Linux ax25/apr
- Connect to another client as `sudo axcall -s NOCALL-1 ax25 NOCALL-10`
# CSMA Usage (experimental)
LoRa library, which is in use by this project does not implement CAD, but CSMAp is utilized by this project. TX path is executed only when there is no incoming data returned by `LoRa::parsePacket` and TX path is executed with probability p, configured by const `Loraprs::Service::CfgCsmaProbBoundary` in `loraprs_service.h`. Random value is picked between 0 and 255 and TX is executed only when it is lower than `CfgCsmaProbBoundary`. To decrease TX probability in case of high traffic use lower value.
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::parsePacket` and TX path is executed with probability p (CSMA persistence), configured by const `Loraprs::Service::CfgCsmaPersistence` in `loraprs_service.h`. Random value is picked between 0 and 255 and TX is executed only when it is lower than `CfgCsmaProbBoundary`. To decrease TX probability in case of high traffic use lower value. `Loraprs::ServiceCsmaSlotTimeMs` configures the amount of time in milliseconds to wait if transmission was not performed due to persistence.
# Digital voice communication by using Codec2
This modem could be used in conjuction with [Android Codec2 Walkie-Talkie](https://github.com/sh123/codec2_talkie), when application connects to the modem, instead of sending AX25 APRS packets it sends Codec2 speech encoded frames. This enables digital voice communicaiton between one or multiple modems. Select appropriate lora spread factor `cfg.LoraSf` and bandwidth `cfg.LoraBw` depending on Codec2 speech rate from 450-3200 bps. For example, if you are using 450 bps mode and 20 kHz bandwidth then set spreading factor to 6,7 or 8. See data rate table above. When using modem for voice communication `Loraprs::Service::CfgCsmaProbBoundary` must be set to maximum 255 value to disable CSMA, otherwise real time voice communication won't be guaranteed.