Difference between revisions of "KONNEKTING Protocol Specification"

From KONNEKTING Wiki
Jump to navigation Jump to search
Line 29: Line 29:
 
== Glossary ==
 
== Glossary ==
  
* '''LO''' low byte/right most 8 bits result in b[1] of 2-byte-array (big endian byte order, https://en.wikipedia.org/wiki/Endianness#Big-endian)
+
* '''HI''' high byte/"left most 8 bits" result in b[0] of 2-byte-array (big endian byte order, https://en.wikipedia.org/wiki/Endianness#Big-endian)
* '''HI''' high byte/left most 8 bits result in b[0] of 2-byte-array (big endian byte order, https://en.wikipedia.org/wiki/Endianness#Big-endian)
+
* '''LO''' low byte/"right most 8 bits" result in b[1] of 2-byte-array (big endian byte order, https://en.wikipedia.org/wiki/Endianness#Big-endian)
 
* '''GA''' group address, 1/2/3
 
* '''GA''' group address, 1/2/3
 
* '''IA''' or '''individual address''' aka. PA or physical address, 1.2.3
 
* '''IA''' or '''individual address''' aka. PA or physical address, 1.2.3

Revision as of 07:24, 3 August 2018

The programming protocol uses group telegrams with the mostly unused group address 15/7/255. Those telegrams use DPT 60000.000, which is reserved for manufacturer specific custom extensions. The used Property Data Type is PDT_GENERIC_14, which is 14 bytes of raw data.

!!! It's required that no other device is using this address. Otherwise it may conflict with KONNEKTING Devices and programming your devices may fail !!!

Byte no#: 0 1 2 ... 13
Used for: Header, 2 bytes Body, 12 Bytes
Description: Protocolversion Message-Type-ID depends on Message-Type-ID
Range: 0x00..0xFF 0x00..0xFF

There are several message types for all kind of purposes. As we have one byte for the Message-Type-ID, we have up to 256 possible messages. That should be enough for our purposes. Same for version: Up to 256 versions should be enough for the near future.

Glossary

Big endian example:

16 bits: 1111111100000000 result in

LO byte 00000000 --> 0x00 --> b[1]
HI byte 11111111 --> 0xFF --> b[0]  
Code: int16_t val = (b[0] << 8) + (b[1] << 0);

Protocol Versions

Here is a list of currently developed protocol versions