Added protocol default config

master
jgromes 2020-07-04 10:54:38 +02:00
rodzic fdf2567620
commit 6ad55d68bc
1 zmienionych plików z 80 dodań i 7 usunięć

@ -23,8 +23,7 @@ Legend:
* Encoding: whitening (x^9 + x^5 + 1 polynomial)
* Packet length mode: variable, maximum of CC1101_MAX_PACKET_LENGTH bytes (length byte included in packet)
* Sync word: 0xD3 0x91, 0 error bits, carrier sense above threshold not required
* Inaccessible:
* none
* Inaccessible: -
Equivalent to:
```c++
@ -158,8 +157,7 @@ SX126x::setCRC(2);
* Sync word: 0x2D 0x01
* Packet length mode: variable, maximum of SX126X_MAX_PACKET_LENGTH bytes (length byte included in packet)
* Encoding: whitening (x^9 + x^5 + 1 polynomial with bit order reverse, initial LFSR state 0x01FF)
* Inaccessible:
* none
* Inaccessible: -
Equivalent to (assuming SX1268):
```c++
@ -182,8 +180,7 @@ SX126x::setWhitening(true, 0x01FF);
* Over-current protection: 100 mA
* Preamble length: 8 symbols
* Gain: 0 (automatic gain control enabled)
* Other:
* none
* Other: -
* Inaccessible:
* LoRa header mode: explicit
* Frequency hopping: disabled
@ -296,7 +293,7 @@ SX128x::setEncoding(2);
### SX128x - FLRC modem
* Begin method:
* Carrier frequency: 2400.0 MHz
* Bit rate: 600 kbps
* Bit rate: 650 kbps
* FLRC coding rate: 3/4
* Output power: 10 dBm
* Preamble length: 16 bits
@ -305,5 +302,81 @@ SX128x::setEncoding(2);
* CRC: enabled, 2 bytes, initial 0x1D0F, polynomial 0x1021
* Sync word: 0x2D 0x01 0x4B 0x1D
* Encoding: NRZ (non-return to zero - no encoding)
* Inaccessible:
* LDO regulator mode: disabled (SX128x module with DC-DC power supply)
Equivalent to:
```c++
SX128x::beginFLRC(2400.0, 650, 3, 10, 16, 0.5);
SX128x::setCRC(2, 0x1D0F, 0x1021);
uint8_t syncWord[] = {0x2D, 0x01, 0x4B, 0x1D};
SX128x::setSyncWord(syncWord, 4);
SX128x::setEncoding(0);
```
## Protocols
### AX.25
* Begin method:
* Source station callsign: no default value
* 4-bit source station SSID: 0
* Preamble length: 8 AX25_FLAG bytes
* Other: -
* Inaccessible: -
Equivalent to (assuming "N7LEM" source station callsign):
```c++
AX25Client::begin("N7LEM", 0, 8);
```
### Hellschreiber
* Begin method:
* Carrier frequency: no default value
* Baud rate: 122.5 Baud ("Feld Hell")
* Other: -
* Inaccessible: -
Equivalent to (assuming 434.0 MHz carrier):
```c++
HellClient::begin(434.0, 122.5);
```
### Morse
* Begin method:
* Carrier frequency: no default value
* Word rate: 20 words per minute (assuming "PARIS" as typical word)
* Other: -
* Inaccessible: -
Equivalent to (assuming 434.0 MHz carrier):
```c++
MorseClient::begin(434.0, 20);
```
### RTTY
* Begin method:
* Base (space) frequency: no default value
* Frequency shift between space and mark: no default value
* Baud rate: no default value
* Encoding: ASCII (7-bit)
* Stop bits: 1
* Other: -
* Inaccessible: -
Equivalent to (assuming 434.0 MHz base, 183 Hz shift and 45 baud):
```c++
RTTYClient::begin(434.0, 183, 45, ASCII, 1);
```
### SSTV
* Begin method:
* Base frequency: no default value
* SSTV mode: no default value
* Timing correction factor: 1.0
* Other: -
* Inaccessible: -
Equivalent to (assuming 434.0 MHz base and Wrasse mode):
```c++
MorseClient::begin(434.0, Wrasse, 1.0);
```