knx protocol 解析

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
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值