From: Keith Packard Date: Wed, 6 Jul 2011 06:35:02 +0000 (-0700) Subject: doc: Add section about TeleDongle USB line format X-Git-Tag: 0.9.4.3~32 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=6ac34f9c8efd464194137ac4ce8228bf9d7d83be doc: Add section about TeleDongle USB line format Describe the format of the TELEM lines sent over USB from TeleDongle to the host. Signed-off-by: Keith Packard --- diff --git a/doc/telemetry.xsl b/doc/telemetry.xsl index 73a9f900..fa66bff9 100644 --- a/doc/telemetry.xsl +++ b/doc/telemetry.xsl @@ -704,6 +704,74 @@ +
+ TeleDongle packet format + + TeleDongle does not do any interpretation of the packet data, + instead it is configured to receive packets of a specified + length (32 bytes in this case). For each received packet, + TeleDongle produces a single line of text. This line starts with + the string "TELEM " and is followed by a list of hexadecimal + encoded bytes. + + TELEM 224f01080b05765e00701f1a1bbeb8d7b60b070605140c000600000000000000003fa988 + + The hexadecimal encoded string of bytes contains a length byte, + the packet data, two bytes added by the cc1111 radio receiver + hardware and finally a checksum so that the host software can + validate that the line was transmitted without any errors. + + + + + + + + + + Offset + Name + Example + Description + + + + + 0 + length + 22 + Total length of data bytes in the line. Note that + this includes the added RSSI and status bytes + + + 1 ·· length-3 + packet + 4f ·· 00 + Bytes of actual packet data + + + length-2 + rssi + 3f + Received signal strength. dBm = rssi / 2 - 74 + + + length-1 + lqi + a9 + Link Quality Indicator and CRC status. Bit 7 + is set when the CRC is correct + + + length + checksum + 88 + (0x5a + sum(bytes 1 ·· length-1)) % 256 + + + +
+
History and Motivation