Protocol Data Unit (PDU)
协议数据体
Message Code (MC)
消息代码
Common External Message Interface (cEMI).
通用外部消息接口
Data Point Type (DPT)
数据点类型
Connection Response Data (CRD)
连接回复数据
Connection Request Information (CRI)
连接请求信息
Description Information Block (DIB)
描述信息块
Host Protocol Address Information (HPAI)
主机协议地址信息
http://blog-en.openalfa.com/introduction-to-eibknx/
cEMI protocol
The structure of telegrams exchanged between the bus and the outside world (EMI, External Message Interface), has suffered also an evolution, from the initial EMI1, EMI2 specifications (dependant on the physical media) to cEMI (Common External Message Interface).
The structure of a cEMI frame is:
+---------+--------+--------+--------+--------+---------+---------+--------+---------+
| Header | Msg |Add.Info| Ctrl 1 | Ctrl 2 | Source | Dest. | Data | APDU |
| | Code | Length | | | Address | Address | Length | |
+---------+--------+--------+--------+--------+---------+---------+--------+---------+
6 bytes 1 byte 1 byte 1 byte 1 byte 2 bytes 2 bytes 1 byte 2 bytes
Header = See below the structure of a cEMI header
Message Code = See below. On Appendix A is the list of all existing EMI and cEMI codes
Add.Info Length = 0x00 - no additional info
Control Field 1 =
Control Field 2 =
Source Address = 0x0000 - filled
in
by router
/gateway
with its
source
address
which
is
part of the KNX subnet
Dest. Address = KNX group or individual address (2 byte)
Data Length = Number of bytes of data
in
the APDU excluding the TPCI
/APCI
bits
APDU = Application Protocol Data Unit - the actual payload including transport
protocol control information (TPCI), application protocol control
information (APCI) and data passed as an argument from higher layers of
the KNX communication stack
|
The Header structure is:
Header Length (1 byte) = 0x06
KNXnet version (1.0) = 0x10
Service
type
descriptor (2 bytes)
Total length (2 bytes)
Existing service
type
descriptors:
SEARCH_REQUEST 0x0201
SEARCH_RESPONSE 0x0202
DESCRIPTION_REQUEST 0x0203
DESCRIPTION_RESPONSE 0x0204
CONNECTION_REQUEST 0x0205
CONNECTION_RESPONSE 0x0206
CONNECTIONSTATE_REQUEST 0x0207
CONNECTIONSTATE_RESPONSE 0x0208
|