Add first communication protocol draft
This commit is contained in:
commit
20c59862c0
1 changed files with 18 additions and 0 deletions
18
communication.md
Normal file
18
communication.md
Normal file
|
@ -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 |
|
Loading…
Reference in a new issue