Telegram
Telegram
KNX Association
KNX ADVANCED COURSE
Table of Contents
1 TP Telegram: general ................................................................................................ 3
2 TP Telegram structure ............................................................................................... 3
3 TP Telegram: time requirement ................................................................................. 4
4 TP Telegram acknowledgement ................................................................................ 5
5 Chapter telegram: “Informative annex”....................................................................... 6
5.1 Numbering systems ............................................................................................ 6
5.1.1 Decimal system ........................................................................................... 6
5.1.2 Binary system .............................................................................................. 6
5.1.3 Hexadecimal system.................................................................................... 6
6 TP Telegram: control field .......................................................................................... 8
7 TP Telegram: source address .................................................................................... 9
8 TP Telegram: target address ....................................................................................10
9 TP Telegram: check byte ..........................................................................................11
1 TP Telegram: general
When an event occurs (e.g. when a pushbutton is pressed), the bus device sends a
telegram to the bus. The transmission starts after the bus has remained unoccupied for at
least the time period t1.
Once the transmission of the telegram is complete, the bus devices use the time t2 to
check whether the telegram has been received correctly.
All “addressed” bus devices acknowledge the receipt of the telegram simultaneously.
2 TP Telegram structure
The telegram consists of bus-specific data and the actual useful data, which provides
information about the event (e.g. pressing a push button).
The entire information is transmitted in the form of 8-bit long characters.
Test data for the detection of transmission errors is also included in the telegram: this
guarantees an extremely high level of transmission reliability.
The telegram is transmitted at a bit speed of 9600 bit/sec, i.e. one bit occupies the bus for
1/9600 sec or 104 µs.
A character consists of 11 bits. Together with the pause of 2 bits in between characters,
this adds up to a transmission time of 1,35 ms (13 bits) per character.
Depending on the length of the payload, the telegram consist of 8 to 23 characters, the
acknowledgement is only one character (11 bit). Taking into account the priority-
dependent waiting time of t1 (50 bits) and a time between telegram and acknowledgment
t2 (15 bits), a message will occupy the bus between 20 to 40 ms.
A switching telegram (including acknowledgement) occupies the bus for about 20 ms.
Telegrams for text transmission occupy the bus for up to 40 ms.
Example:
(t1 50 bit) + (8x13 bit) + (1x13 bit = CRC) + (t2 15 bit) + (Ack.11 Bit) = 193 bit
193 Bit x 0,104 ms = 20.07 ms
4 TP Telegram acknowledgement
The receiving bus device checks on the basis of the check byte contained in the telegram
the correct reception of information and acknowledges accordingly.
Data formats
Different data formats are necessary for processing data. The contents of the data formats
can be presented in binary, decimal or hexadecimal form.
Number conversions
In order to be able to switch between the different numbering systems, values must be
converted.
The transmission priority is only observed if several bus devices attempt to transmit
simultaneously.
The required priority (apart from system priority) can be set for every group object using
the ETS. The standard setting is low operational priority.
In the above example 3.10.20 represents the individual address of the bus device 20 in
line 10 in area 3.
The target address can also be an individual address (system telegrams). On the basis of
bit 17 the receiver can determine whether the target address is a group or individual
address:
If the 17th = 0 The target address is an individual address. Only one bus device is
addressed.
If the 17th bit = 1 The target address is a group address. All bus devices with this
address are addressed.
In order to detect errors in telegram transmission, test data is transmitted in the form of
parity bits (character check) and check bytes (telegram check).
Each character of the telegram is checked for even parity i.e. the parity bit P gets the
value 0 or 1 to make the sum of all the bits (D0-D7 plus Pz) equal to 0.
In addition all characters of the telegram are checked for odd parity for each bit position,
i.e. the check bit S7 gets the value 0 or 1 to make the sum of all data bits D7 equals 1.
The combination of character check and telegram check is called cross check.