KNX (standard)
KNX is an open standard for commercial and domestic building automation. KNX devices can manage lighting, blinds and shutters, HVAC, security systems, energy management, audio video, white goods, displays, remote control, etc. KNX evolved from three earlier standards; the European Home Systems Protocol, BatiBUS, and the European Installation Bus. It can use twisted pair, powerline, RF, or IP links. On this network, the devices form distributed applications and tight interaction is possible. This is implemented via interworking models with standardised datapoint types and objects, modelling logical device channels.
KNX standard
The KNX standard has been built on the OSI-based EIB communication stack extended with the physical layers, configuration modes and application experience of BatiBUS and EHS.KNX installations can use several physical communication media:
- Twisted pair wiring
- IP
KNX is an approved standard by the following organisations, :
- International standard
- European standard
- US standard
- China Guobiao
KNX architectureAll information in this and subsequent sections is summarised from
KNX devices are commonly connected by a twisted pair bus and can be modified from a controller. The bus is routed in parallel to the electrical power supply to all devices and systems on the network linking:- Sensors gather information and send it on the bus as a data telegram;
- Actuators receive data telegrams which are then converted into actions; and
- Controllers and other logic functions
- System devices and components.
Application software, together with system topology and commissioning software, is loaded onto the devices via a system interface component. Installed systems can be accessed via LAN, point to point links, or phone networks for central or distributed control of the system via computers, tablets and touch screens, and smartphones.
The key features of the KNX architecture are:
- Interworking and distributed application models for the building automation various tasks;
- Schemes for configuration and management of resources on the network, and to permit the binding of parts of a distributed application in different nodes;
- A communication system with a message protocol and models for the communication stack in each node ; and
- Models for the realization of these elements when developing actual devices to be mounted and linked in an installation.
Applications, interworking and binding
To logically link applications datapoints across the network, KNX has three underlying binding schemes: one for free, one for structured and one for tagged binding:
- In free binding, links between datapoints are not prescribed - in combination with free addressing, this supports customized multicast grouping at the level of individual datapoints and is central to S-mode configuration ;
- In structured binding, the KNX specification stipulates a precise pattern for linking a whole set of datapoints, usually corresponding to a Functional Block or Channel ;
- Tagged binding is also pre-structured by the application models, but the numerical value of address is part of its value.
Common Kernel and Message protocol
- A general data link layer, which sits above the specific data link layers for each medium, provides access control and the logical link control;
- A network layer provides a segment-wise acknowledged telegram and controls the hop count of a frame;
- A transport layer enables four types of communication: one-to-many connectionless, one-to-all connectionless, one-to-one connectionless, one-to-one connection-oriented;
- ; and
- An application layer offers a toolkit of services to the application process.
Configuration modes
The KNX configuration mode:
- picks out a certain scheme for configuration and binding;
- maps it to a particular choice of address scheme; and
- completes all this with a choice of management procedures and matching resource realizations.
- A-mode or "Automatic mode" devices which can configure themselves, and are able to be installed by the end user;
- E-mode or "Easy mode" devices that require basic training to install: their behaviour is pre-programmed, but configuration parameters need to be tailored to the user's requirements; or
- S-mode or "System mode" devices that can be used to create sophisticated building automation systems: they have no default behaviour, and must be programmed and installed by specialists.
Devices
A KNX installation always consists of a set of devices connected to the bus or network. Device models vary according to node roles, capabilities, management features and configuration modes, and are all laid down in the profiles. There are also general-purpose device models, such as for bus coupling units or bus interface modules.Devices may be identified and subsequently accessed throughout the network either by their individual address, or by their unique serial number, depending on the configuration mode. Devices can also disclose both a manufacturer specific reference and functional information when queried.
Logical topology and individual address space
A KNX wired network can be formed with tree, line and star topologies, which can be mixed as needed; ring topologies are not supported. A tree topology is recommended for a large installation.KNX can link up to 57,375 devices using 16-bit addresses.
- The lowest eight bits provide up to 256 addresses within one line, which can consist of up to four segments, each having a maximum of 64 devices, or up to 256 devices. Each segment requires a local power supply and the maximum length of a segment is 1000 m. Segments connected with line repeaters can extend to a length of 4000 m and link up to 256 devices.
- Lines may be grouped together into an area, with up to 15 lines connected to a main line via line couplers. The next four bits of the address are used to identify individual lines.
- An entire domain can be formed with 15 areas linked by a backbone line using backbone couplers, and the top four bits of the address space identify an area.
Physical transmission media
TP 1
The TP1 twisted pair bus provides asynchronous, character oriented data transfer and half-duplex bidirectional differential signaling with a signaling speed of 9600 bit/s. Media access control is via CSMA/CA. Every bus user has equal data transmission rights and data is exchanged directly between bus users. SELV power is distributed via the same pair for low-power devices. A deprecated specification, TP0, running at a slower signalling speed of, has been retained from the BatiBUS standard but KNX products cannot exchange information with BatiBUS devices.PL 110
PL 110 power-line transmission is delivered using spread frequency shift keying signalling with asynchronous transmission of data packets and half duplex bi-directional communication. It uses the central frequency 110 kHz and has a data rate of 1200 bit/s. It also uses CSMA. KNX Powerline is aimed at smart white goods, but the take-up has been low. An alternative variant, PL 132, has a carrier frequency centred on 132.5kHz.RF
RF enables communication in the 868.3 MHz band for using frequency shift keying with Manchester data encoding.IP
KNXnet/IP has integration solutions for IP-enabled media like Ethernet, Bluetooth, WiFi/Wireless LAN, FireWire etc.Frame (telegram) overview
Ignoring any preamble for medium-specific access and collision control, a frame format is generally:Octet | Role |
0 | control field |
1 - 2 | source address |
3 - 4 | destination address |
5 | |
6 - 7 | |
8 - N-1 | data |
N ≤ 22 | frame check |