恩乐曼SS2U通讯协议
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
1M-Bus Protocol (2)
1.1Single character (2)
1.2Short frame: (2)
1.2.1SND_NKE (2)
1.2.2REQ_UD2 (3)
1.3Long frame master to slave (3)
1.3.1Application reset (3)
1.3.2Set primary M-bus address (4)
1.3.3Set identification number (4)
1.3.4Select meter by secondary address (5)
1.3.5Set billing date (5)
1.3.6Set date and time (6)
1.4User-specific frames: (7)
1.4.1Deletion of maximum values (for information only) (7)
1.4.2Init Tariff register (7)
1.4.3Backup (for information only) (9)
1.4.4Update calculations (for information only) (9)
1.5Long frame slave to master (10)
1.5.1REQ_UD2 (10)
2Summary of M-bus data types (12)
2.1.132-bit Type A (12)
2.1.2Type B (12)
2.1.3Type C (12)
2.1.4Type D (12)
2.1.5Type F (12)
2.1.6Type G (12)
1 M-Bus Protocol
All bytes transmitted over the M-bus and the optical interface have the format 8E1:
1 8 1 1
Start bit Data bits Parity bit (even) Stop bit
For communication three different telegram types are used. These are:
1. Single character h’E5 (only used by slave )
2. Short frame (only used by master)
3. Long frame (used by both master and slave)
1.1 Single character
The single character h’E5 (CON_ACK) is only used by the meter. It serves as an acknowledgement of the reception of a valid frame (it does not say anything about whether the command was accepted and executed or not!)
1.2 Short frame:
10 C A csum 16
Short frames always consist of 5 bytes.
They are initiated by the master.
There are two different frames: SND_NKE and REQ_UD2
…C“ Command
…A“ Address
“csum” Low byte of the sum of “C” and “A”
1.2.1 SND_NKE
Deselection of a meter after selection by its secondary address.
Short frame identifier 10
…C“ 40
…A“ adrs
Checksum csum
Stop byte 16
Acknowledged by h’E5.
1.2.2 REQ_UD2
Request for a data frame
Short frame identifier 10
…C“ 5b or 7b
…A“ adrs
Checksum csum
Stop byte 16
Acknowledged by a long frame.
1.3 Long frame master to slave
68 len len 68 C A CI userdata csum 16 …C“ Command
…A“ Address
…CI“ Control information
“len” Total amount of bytes in user data + 3 (“C”, “A”, …CI“).
Maximum length is FFh (max. 252 data bytes)
“csum” Low byte of the sum of …user data“, “C” ,“A” and …CI“
1.3.1 Application reset
Long frame identifier 68
Length bytes 03, 03
Long frame identifier 68
…C“ byte 53 or 73
…A“ byte adrs
…CI“ byte 50
Checksum csum
Stop byte 16
This deselects the device (secondary addressing).
Frame length: 9 bytes
Acknowledged by h’E5.