Professional Documents
Culture Documents
Ambient Intelligence: Prof. Renato Nunes
Ambient Intelligence: Prof. Renato Nunes
KNX
(Formerly: EIB)
KNX - Konnex
System Design
Blinds
Heating
Lighting
Time-
dependent
Weather-
dependent
Room-
dependent
Light-
dependent
Central
Infrared
KNX
Suports Centralized Solutions
• Decisions are taken by a dedicated application
running in a computer connected to the KNX bus
http://www.knx-online-shop.de
http://www.eibshop.co.uk
Prof. Renato Nunes 7
“Smart Terminals”
“Control Panels”
Prof. Renato Nunes 9
Ethernet Gateway
KNX Internals
Topology: a “Line”
• Variants of a “Line”
• A line may have up to 64 devices (or more, using repeaters)
LC 1 LC 15
PS
SV // Ch
Dr PS
SV // Ch
Dr
DVC 1 DVC 1
DVC 64 DVC 64
LC = Line coupler
Line 1 Line 15
DVC = Bus device
PS/Ch = Power supply unit with choke
Prof. Renato Nunes 15
KNX Architecture
BC n Area n
Hauptlinie
Area 3
SV BC 3
SV/ /Dr
Dr
PS
SV // Ch
Dr Hauptlinie
Area 2
SV / Dr BC 2
SV / Dr LK 1 LK 15
Hauptlinie
Area 1
SV BC 1
SV/ /Dr
Dr LK 1 LK 15
Main line
PS
SV // Ch
Dr SV
LK 1 SV/ /Dr
Dr LK 15
SV
SV/ /Dr
Dr
SV
SV/ /Dr SV
SV/ /Dr
LC 1 Dr LC 15 Dr
TLN 1 SV / Dr DVC 1
SV
SV/ /Dr
Dr SV / Dr
PS TLN 1 PS / Ch DVC 1
SV // Ch
Dr SV / Dr
TLN 1 DVC 1
DVC 1
TLN 64 DVC 1
TLN 64
TLN 64 DVC 64
DVC 64
Linie 15
TLN 64 DVC
TLN 64
TLN 64
DVC 64
Linie 1 DVC 64
TLN 64 Linie 15
Linie 15
Line 1 Line 15 BC = Backbone coupler
LC = Line coupler
DVC = Bus device
Backbone line
PS
SV // Ch
Dr
BC 1 DVC BC 15
1.0.0 0.0.>0 15.0.0
DVC
1.0.>0 Main line
PS
SV / Ch
Dr
LC 1 LC 15
1.1.0 1.15.0
PS
SV // Ch
Dr PS
SV // Ch
Dr
DVC
TLN 64
1 TLN 64
DVC 1
1.1.1 1.15.1
Line 1 Line 15
DVC
TLN 64
64 DVC 64
TLN 64
A physical address 1.1.64 1.15.64
has 16 bits. Organization:
1 . 1 . 64 F = Function area BC = Backbone coupler
FFFF LLLL DDDDDDDD L = Line LC = Line coupler
D = Bus device DVC = Bus device
Area Line Device (8 bits)
up to 256
Prof. Renato Nunes 17
Electrical
isolation
Filter table
Logic
Lithium battery
> 10 years
Bus coupling unit
Backbone line
BC X.0.0 15.0.0 BC
DVC1 DVC48
…
Main line
LC X.X.0 LC
Max. 64
X.X.1 DVC1
DVC63 X.X.63
Secondary line
X.X.192
LR1 X.X.64 LR2 X.X.128 LR3 BC = Backbone coupler
LC = Line coupler
DVC64 LR = Line repeater
3 x max. DVC65 X.X.65 DVC129 X.X.129 DVC193 X.X.193
64
DVC127 X.X.127 DVC191 X.X.191 DVC255 X.X.255
PS
SV // Ch
Dr
Backbone line
BC 1 Gateway
PS
SV // Ch
Dr
Main line = Line 0
LC 1 LC 15
Other
PS
SV // Ch
Dr PS
SV // Ch
Dr systems
DVC 1 DVC 1
DVC 64 DVC 64
BC = Backbone coupler
Line 1 LC = Line coupler Line 15
DVC = Bus device
PS/Ch = Power supply unit with choke
KNX Protocol
• Communication media:
– TP – Twisted Pair cable (most common and reliable)
– RF – Radio Frequency (uses Z-Wave technology)
– PL – Power Line
– IR – Infra Red
Signal Transmission
Bus 0
device 1
Bus
Symmetrical Transmission
+ core
- core
DVC DVC
Installation bus
choke PS
Electronics Application
interface
INFO
TM BCC
Installation bus
Choke
KNX Protocol
t1 Telegram t2 Ack.
Duration of telegram: 20 to 40 ms
8 bit 16 16 + 1 3 4 up to 16 x 8 8
8 bit 8 8 8 8 8 8 8 8 8
Physical Addresses
Backbone line
PS
SV // Ch
Dr
BC 1 DVC BC 15
1.0.0 0.0.>0 15.0.0
DVC
1.0.>0 Main line
PS
SV / Ch
Dr
LC 1 LC 15
1.1.0 1.15.0
PS
SV // Ch
Dr PS
SV // Ch
Dr
DVC
TLN 64
1 TLN 64
DVC 1
1.1.1 1.15.1
Line 1 Line 15
DVC
TLN 64
64 DVC 64
TLN 64
A physical address 1.1.64 1.15.64
has 16 bits. Organization:
1 . 1 . 64 F = Function area BC = Backbone coupler
FFFF LLLL DDDDDDDD L = Line LC = Line coupler
D = Bus device DVC = Bus device
Area Line Device (8 bits)
up to 256
Prof. Renato Nunes 34
Group Address
0 M M M M S S S S S S S S S S S M = Main group
S = Subgroup
0 M M M M Mi Mi Mi S S S S S S S S
M = Main group
Middle group
Juli 97 Topo_81b
Mi = Middle group
3 bit: 0 - 7
S = Subgroup
- Sensor S1 S1 1/11
controls lamps P2 1/2 L21 1/2 1/11
L11 and L21.
- Pushbutton P2
L11 1/1 1/11 L22 1/2
commands lamps
L21, L22 and L23. LC = Line coupler
P = Pushbutton
- ... L12 1/1 L23 1/2 L = Lamp
S = Brightness sensor
8 bit 16 16 + 1 3 4 up to 16 x 8 8 bit
D7 D6 D5 D4 D3 D2 D1 D0 + P = 0
D7 D6 D5 D4 D3 D2 D1 D0 + P = 0
Legend
D7 D6 D5 D4 D3 D2 D1 D0 + P = 0
D0 - D7 = Data bit of 8-bit blocks
+ +
S0 - S7 = Bit of check byte
S7 S6 S5 S4 S3 S2 S1 S0 + P = 0 block (uneven parity)
P = Parity bit above
=1 =1 character (even parity)
Telegram Acknowledge
Telegram Ack.
N N 0 0 B B 0 0 Acknowledgement message
B=00 BUSY
N=00 NAK
Source Target
Control
address address Check
field Length Useful data
byte
Routing counter
8 bit 16 16 + 1 3 4 up to 16 x 8 8 bit
L L L L 0 0 X X X X CCCCDDDDDDDDDDDDDD DDDDDDDD
0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1
Number of data
bytes = LLLL + 1 Byte 0 Byte 1 Byte 2 Byte 15
Data Formats
L L L L 0 0 X X X X CCCCX X X X X A
0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1
L L L L 0 0 X X X X C C C C X X X X X X S E E E E MMMMMMMMMMM
0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 0 1 0
Sign
1 = "-" Mantissa (resolution = 0.01;
0 = "+" negative value as two’s
complement
Exponent to the base 2
0 ... 15 B
(0000B ... 1111B)
B
B
Legend
B
Telegram example: Room temperature = 21°C
C = Command E = Integer exponent to the base of 2
L = Length of usable data (byte 0 to byte 3) S = Sign for mantissa
X = No evaluation M = Mantissa with a resolution of 0.01
L L L L 0 0 X X X X CCC CX X X X X XV V V V V V V V
0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 1 0 0 1
Legend
C = Command Telegram example:
L = Length of usable data (byte 0 to byte 2) Brightness value 60% (153)
V = Value
X = No evaluation 153 / 255 = 0,6
LLLL 0 0 X X X X CCCCXX X X X A
0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1
PEI
BCU
AM
AM = Application module
EEPROM µ P
TRC BCC
K unit BCU
Bus coupling PEI = Phys. ext. interface
_ TRC = Transceiver
+
BCC = Bus coupling controller
The Transceiver
Installation
_ bus EIB
+
rt sw < 18 V Save
RPP 24 V
24 V 5V
5V
OV
Logic receive.
Driver send
enable
BCC
BCU PEI AU
RType
6 +5 V
Analogue
2
3
Data 4
7
9
0V 1/10
+5 V 5 +5 V
8 +24 V
+24 V BCU = Bus coupling unit
AU = Application unit
PEI = Physical ext. interface
Application Function:
Dimming with Start/Stop Telegrams
100%
0%
Start
dimming Stop Switch off: Switch on: Start Stop
long dimming short short dimming dimming:
operation release operation of operation of long release
dimming rocker plate rocker plate operation rocker plate
rocker plate
Dimming actuator switches to last reached
value (parameter dependant)
Prof. Renato Nunes 50
Application Function:
Dimming with Cyclical Telegrams
Dimming speed of the actuator shall be adapted to the cyclical transmission of dimming telegrams
Brightness
100%
7/8
6/8
5/8
4/8
3/8
2/8
1/8
Conclusion
• Main advantages:
– Robustness and reliability
– High degree of functionality
– Supports the design of complex systems for big
installations
• Main disadvantages:
– Complexity of installation and configuration
– KNX requires certification of installers
– Requires usage of the ETS software (expensive)
– Devices and other system components are expensive