From f1029051f42626d36a82bf2362d417b34a8bb939 Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Fri, 20 Apr 2018 21:14:43 +0200 Subject: [PATCH] updated docs --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index b708baf..6d7e4da 100644 --- a/README.md +++ b/README.md @@ -11,21 +11,21 @@ Development, ready for testing | Byte | Description | Notes | | ---- | ---- | ---- | | 1 | Channel ID | channel used for comunication between TX and RX | -| 2 | Frame type & Length | bits 7-5 defines frame, bits 4-0 payload length | -| 3 - 34 | Payload | 32 bytes max | +| 2 | Frame type & Length | bits 7-5 defines frame, bits 4-0 current radio channel | +| 3 - 34 | Payload | lenghth defined by frame type | | payload length + 3 | CRC | using crc8_dvb_s2 method | ## Frame types -| Value | Value hex | Description | Direction | -| ---- | ---- |---- | ---- | -| 0000 | 0x0 | RC channels data `RC_DATA` | TX -> RX | -| 0001 | 0x1 | Receiver health and basic telemetry `RX_HEALTH` | RX -> TX | -| 0010 | 0x2 | Request receiver configuration | TX -> RX | -| 0011 | 0x3 | Receiver configuration | RX -> TX | -| 0100 | 0x4 | Set receiver configuration | TX -> RX | -| 0101 | 0x5 | PING frame, uses 9 byte payload | TX -> RX | -| 0110 | 0x6 | PONG frame, the same payload as PING | RX -> TX | +| Value | Value hex | Description | Direction | Payload length | +| ---- | ---- |---- | ---- | ---- | +| 0000 | 0x0 | RC channels data `RC_DATA` | TX -> RX | 9 | +| 0001 | 0x1 | Receiver health and basic telemetry `RX_HEALTH` | RX -> TX | 6 | +| 0010 | 0x2 | Request receiver configuration | TX -> RX | no used | +| 0011 | 0x3 | Receiver configuration | RX -> TX | no used | +| 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 | ### `RC_DATA` frame format