Understanding how KNX devices communicate is essential for anyone designing, commissioning, or troubleshooting a KNX installation. KNX defines not only the physical medium, but the entire communication stack — from the byte structure of a telegram to the secure transport of commands over IP networks.
The KNX Telegram — The Fundamental Unit of Communication
Every piece of communication on a KNX network happens through a telegram — a structured data packet that devices send and receive over the bus.
A KNX telegram consists of five parts:
+----------------+------------------+------------------+-----------+----------+
| Frame | Control Field | Address Field | Data | Checksum |
| (start/end) | (priority, type)| (source + dest) | (payload)| (error |
| | | | | detect) |
+----------------+------------------+------------------+-----------+----------+
1. Frame
- Defines the start and end of the telegram
- Ensures the receiver can identify when a valid message begins and ends
2. Control Field
- Indicates priority — system messages take priority over user-initiated commands
- Defines whether the telegram is standard, extended, or repeated
- Contains flags such as "repeat" (for retransmission) and "acknowledge"
3. Address Field
- Contains the source address (which device sent it) and the destination address (who should receive it)
- Destination can be:
- Individual address — point-to-point communication to a specific device
- Group address — multicast communication to all devices in a group
4. Data Field
- Holds the payload — the actual command or value being communicated
- Examples: "Switch light ON", "Set temperature to 22°C", "Blind position 75%"
- KNX uses standardized Datapoint Types (DPTs) to ensure consistent data interpretation across devices from different manufacturers
5. Checksum
- A small value at the end used for error detection
- Ensures the telegram was not corrupted during transmission on the bus
Example: When a wall switch sends "Turn ON light," the telegram contains the control info, the switch's source address, the light group's destination address, the ON command as payload, and a checksum validating the entire packet.
Group Communication vs. Point-to-Point
KNX offers two fundamentally different communication modes, each suited to different scenarios.
Group Communication (Multicast)
The most common communication model in KNX.
- A single telegram is broadcast to all devices that share a group address
- One command can simultaneously control all lights, blinds, or thermostats in a group
- Efficient for building-wide automation
[Wall Switch]
|
| sends "Turn ON" to group 1/0/1
v
[KNX Bus]
|
+---> [Light 1] (listens to 1/0/1)
+---> [Light 2] (listens to 1/0/1)
+---> [Light 3] (listens to 1/0/1)
(all lights respond simultaneously)
Point-to-Point (Unicast)
- Direct communication between two specific devices
- The destination is the physical (individual) address of the target device
- Used for: device programming via ETS, diagnostics, system messages, and direct device-to-device coordination
Physical vs. Logical Addressing
KNX uses two distinct address types that serve different purposes.
Physical Address (Individual Address)
- Unique ID for each device in the installation — comparable to an IP address
- Format:
Area.Line.Device(e.g.,1.1.25) - Area — a group of lines (1–15)
- Line — a segment within an area (1–15)
- Device — a specific device on that line (1–255)
- Used for: commissioning, downloading configuration, diagnostics, and direct communication
Area 1
|
+-- Line 1.1
| |-- Device 1.1.1 (Switch)
| |-- Device 1.1.2 (Dimmer)
| |-- Device 1.1.25 (Temperature Sensor)
|
+-- Line 1.2
|-- Device 1.2.1 (HVAC Controller)
Logical Address (Group Address)
- Represents a function, not a device
- Format:
Main/Middle/Sub(e.g.,1/0/1) - Example:
1/0/1= "Living Room Lights ON/OFF" - Multiple devices can share the same group address to create synchronized behavior
- A single device can belong to multiple group addresses (e.g., a dimmer might listen to both "ON/OFF" and "Dim Level" group addresses)
Think of the **physical address** as a device's **home address** (where it lives on the bus), and the **group address** as a **group chat** where multiple devices share the same message.
KNX/IP — Integrating KNX with Ethernet Networks
As building installations grow larger and more complex, KNX needs to operate over IP networks (Ethernet, Wi-Fi). KNX/IP defines how this integration works and provides two key modes:
KNX/IP Tunneling
- Works like a virtual serial cable over IP
- Each connection is point-to-point between a PC/ETS software and one KNX/IP interface
- Ideal for commissioning, debugging, and single remote connections
- Limitation: Multiple simultaneous clients require multiple tunnel connections
[ETS Software on PC] <---[KNX/IP Tunnel]---> [KNX/IP Interface] --> [KNX TP Bus]
KNX/IP Routing
- Uses IP multicast to forward telegrams between KNX TP lines and IP backbone
- Multiple KNX lines can be connected via IP routers — ideal for large buildings
- Supports multiple clients simultaneously without separate tunnels
- More efficient for large-scale installations with many subsystems
[KNX Line 1.1] <---> [KNX/IP Router] <---[IP Backbone]---> [KNX/IP Router] <---> [KNX Line 2.1]
KNX Secure — Protecting the Installation
As buildings become smarter and more connected, cybersecurity becomes critical. KNX Secure was introduced to protect KNX installations against cyber threats.
KNX Secure defines two complementary security layers:
KNX IP Secure
- Encrypts KNX telegrams when transmitted over IP networks
- Protects against eavesdropping and unauthorized access on the network
- Applied at the IP transport level
KNX Data Secure
- Encrypts and authenticates telegrams at the application level
- Ensures only authorized devices can interpret or act on messages — even on the physical bus
- Example: A command "Unlock Door" is signed and encrypted so it cannot be forged or replayed
Benefits of KNX Secure:
- Prevents replay attacks — recorded telegrams cannot be re-sent to manipulate devices
- Guarantees device authentication — devices verify the identity of senders
- Ensures integrity and confidentiality of all communication
Without KNX Secure:
[Attacker] ---> captures telegram --> replays "Unlock Door" --> Door opens
With KNX Secure:
[Attacker] ---> captures telegram --> replay blocked by authentication --> Door stays locked
Summary
The KNX communication model covers five dimensions:
| Concept | Description |
|---|---|
| Telegram Structure | Frame, Control, Address, Data, Checksum |
| Group Communication | Multicast — one telegram to many devices via group address |
| Point-to-Point | Unicast — direct communication between two devices |
| Physical Addressing | Individual address (Area.Line.Device) for device identity |
| Logical Addressing | Group address (Main/Middle/Sub) for functional grouping |
| KNX/IP Tunneling | Virtual cable over IP for commissioning |
| KNX/IP Routing | Multicast over IP for large building backbones |
| KNX IP Secure | Encryption of KNX traffic over IP |
| KNX Data Secure | End-to-end application-level encryption and authentication |
Mastering this communication model is the foundation for designing, commissioning, and securing professional KNX installations.