ArticleslgStudy

computer science

KNX

KNX is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand KNX rather than just read about it. In short: KNX is an open standard (see EN 50090, ISO/IEC 14543) for commercial and residential building automation. KNX devices can manage lighting, blinds and shutters, HVAC, security systems, energy management, audio video, domestic appliances, displays, remote control, etc.

KNX — main illustration
KNX — illustration

Key takeaways

  • KNX belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect KNX to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of KNX from memory before moving on to harder problems.

Reference excerpt

KNX is an open standard (see EN 50090, ISO/IEC 14543) for commercial and residential building automation. KNX devices can manage lighting, blinds and shutters, HVAC, security systems, energy management, audio video, domestic appliances, displays, remote control, etc. KNX evolved from three earlier standards; the European Home Systems Protocol (EHS), BatiBUS, and the European Installation Bus (EIB or Instabus). It can use twisted pair (in a tree, line or star topology), 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.

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 (TP1 Cable) (inherited from the EIB standard). (The previously inherited BatiBUS communication medium (TP0) is no longer part of the KNX Specifications.) Power-line networking (inherited from EIB standard). (The previously inherited EHS communication medium (PL132) is no longer part of the KNX Specifications.) Radio (KNX-RF) IP (also referred to as EIBnet/IP or KNXnet/IP) KNX is not based on a specific hardware platform and a network can be controlled by anything from an 8-bit microcontroller to a PC, according to the demands of a particular building. The most common form of installation is over twisted pair medium. KNX is an approved standard by the following organisations (among others):

International standard (ISO/IEC 14543-3) European standard (CENELEC EN 50090 and CEN EN 13321–1) US standard (ANSI/ASHRAE 135) China Guobiao (GB/T 20965) It is administered by the KNX Association cvba, a non-profit organisation governed by Belgian law which was formed in 1999. The KNX Association had 500 registered hardware and software vendor members from 45 nations as at 1 July 2021. It had partnership agreements with 100,000 installer companies in 172 countries and more than 500 registered training centres. This is a royalty-free open standard and thus access to the KNX specifications is unrestricted.

Architecture 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 (e.g. push buttons, thermostats, anemometers, movement) gather information and send it on the bus as a data telegram; Actuators (dimming units, heating valves, displays) receive data telegrams which are then converted into actions; and Controllers and other logic functions (room temperature controllers, shutter controllers and other) System devices and components (e.g. line couplers, backbone couplers). Classifying devices as either "sensor" or "actuator" is outdated and simplistic. Many actuators include controller functionality, but also sensor functionality (for instance measuring operating hours, number of switch cycles, current, electrical power consumption, and more). 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 (capable of hosting distributed applications (KNX Common Kernel); and Models for the realization of these elements when developing actual devices to be mounted and linked in an installation.

Applications, interworking and binding Central to the KNX architecture concepts are datapoints (inputs, outputs, parameters, and diagnostic data) which represent process and control variables in the system. The standardised containers for these datapoints are group objects and interface object properties. The communication system offers a reduced instruction set to read and write datapoint values. Datapoints have to conform to standardised datapoint types, themselves grouped into functional blocks. These functional blocks and datapoint types are related to applications fields, but some of them are of general use (such as date and time). Datapoints may be accessed through unicast or multicast mechanisms. 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 (see below); 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 (push-button modes follow this concept); Tagged binding is also pre-structured by the application models, but the numerical value of address is part of its value.

Kernel and message protocol The common kernel sits on top of the physical layers and the medium-specific data link layer and is shared by all the devices on the KNX Network. It is OSI 7-layer model compliant:

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 (for nodes with routing functionality) provides a segment-wise acknowledged telegram (frame) and controls the hop count of a frame; A transport layer enables four types of communication: one-to-many connectionless (multicast), one-to-all connectionless (broadcast), one-to-one connectionless, one-to-one connection-oriented; (OSI session and presentation layers are empty); and An application layer offers a toolkit of services to the application process.

… excerpt ends here. Continue reading the full article.

Illustrations

KNX illustration
KNX: KNX universal light dimming actuator with two channels
KNX universal light dimming actuator with two channels
KNX: KNX transceiver board by Elmos
KNX transceiver board by Elmos
KNX: The KNX Model
The KNX Model

Worked examples

Example 1 — a first encounter with KNX

Start with the simplest possible case. Write down what KNX claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to KNX before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about KNX ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of KNX

In research
KNX appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses KNX in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
KNX is common in secondary-school and first-year university syllabi. It links to neighbouring topics Building automation, Computer buses, Home automation, so understanding it makes those chapters shorter.
In everyday life
Look for KNX outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “KNX” →

How to study KNX in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what KNX means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain KNX out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is KNX in simple terms?

KNX is an open standard (see EN 50090, ISO/IEC 14543) for commercial and residential building automation. KNX devices can manage lighting, blinds and shutters, HVAC, security systems, energy management, audio video, domestic appliances, displays, remote control, etc.

Why does KNX matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study KNX?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on KNX.

Tags

  • Building automation
  • Computer buses
  • Home automation

Keep exploring