This commit is contained in:
Pawel Spychalski (DzikuVx)
2018-05-21 21:19:23 +02:00
parent d8f6be36e5
commit c7f5f4f8bb
2 changed files with 13 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ CRC is computed using `crc8_dvb_s2` method. Initial CRC value for each frame CRC
| 0100 | 0x4 | Set receiver configuration | TX -> RX | no used |
| 0101 | 0x5 | PING frame, uses 9 byte payload | TX -> RX | 4 |
| 0110 | 0x6 | PONG frame, the same payload as PING | RX -> TX | 4 |
| 0111 | 0x7 | `BIND` frame, transmitted by TX only during binding | TX -> RX | 4 |
### `RC_DATA` frame format
@@ -82,6 +83,15 @@ Total length of `RC_DATA` payload is 9 bytes
**TX** sends `PING` frame with curent `micros`. If **RX** receives `PING` frame, it respons
its payload as `PONG` frame.
### `BIND` frame format
| Byte | Description |
| ---- | ---- |
| 1 | Bind key byte 0 |
| 2 | Bind key byte 1 |
| 3 | Bind key byte 2 |
| 4 | Bind key byte 3 |
# RSSI
1. Receiver RSSI for the last received packet is injected as channel 11

View File

@@ -34,7 +34,8 @@
#define QSP_FRAME_SET_RX_CONFIG 0x4
#define QSP_FRAME_PING 0x5
#define QSP_FRAME_PONG 0x6
#define QSP_FRAME_COUNT 0x7
#define QSP_FRAME_BIND 0x7
#define QSP_FRAME_COUNT 0x8
static const uint8_t qspFrameLengths[QSP_FRAME_COUNT] = {
9, //QSP_FRAME_RC_DATA
@@ -44,6 +45,7 @@ static const uint8_t qspFrameLengths[QSP_FRAME_COUNT] = {
0, //QSP_FRAME_SET_RX_CONFIG -> Not used
4, //QSP_FRAME_PING
4, //QSP_FRAME_PONG
4 //QSP_FRAME_BIND
};
#define RX_ADC_PIN_1 A0