From 20c59862c0c5e6023a8a48f36e6e09da9c7413e9 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Mon, 11 Apr 2022 19:16:49 +0200 Subject: [PATCH] Add first communication protocol draft --- communication.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 communication.md diff --git a/communication.md b/communication.md new file mode 100644 index 0000000..b9965f6 --- /dev/null +++ b/communication.md @@ -0,0 +1,18 @@ +# Heliox communication protocol + +## Basic data structure + +The following table describes the bit pattern for a successful communication with heliox devices. + +| 0-15 | 16-22 | 23 | 24-31 | 32-(32+8*x) | +| :---------------: | :----------: | :---------------: | :-------------------: | :---------: | +| Magic Number (HX) | Message Type | Parity Bit (even) | Data Length (x Bytes) | Data | + +## Message Types + +| 0 | Data | +| --- | --------------- | +| 1 | Control | +| 2 | Status Messages | +| 3 | Confirmation | +| 4 | Debug |