### IEC104协议简介 IEC104(IEC 60870-5-104)是一种广泛应用于电力系统自动化领域的通信协议标准,它主要用于远动终端设备与主站系统之间的数据交换。IEC104是在IEC101的基础上发展起来的,旨在通过TCP/IP网络实现数据传输。该协议定义了应用层的通信规则,包括报文格式、传输规则等,确保数据的安全、可靠传输。 ### 报文解析 #### 报文结构概述 IEC104的报文结构主要包括以下部分: 1. **启动字符**:固定为`68H`。 2. **控制域**:用于指示报文类型和控制信息。 3. **地址域**:包含发送方地址、接收方地址以及ASDU地址。 4. **应用服务数据单元(ASDU)**:携带实际的应用数据和服务信息。 5. **校验码**:用于检测传输错误。 6. **结束字符**:固定为`16H`。 #### 具体报文分析 根据提供的报文内容,我们可以对每条报文进行详细解析: - **报文1**: ``` Uʽ 680407000000 ȷϵUʽ 68040B000000 ٻ() 680E0000000064010600010000000014 ٻ(ȷ) 680E0000000064010700000000000014 ``` - **启动字符**:`68` - **控制域**:`0407`表示U格式报文中的测试报文。 - **控制域**:`040B`表示U格式报文中的停止激活确认。 - **地址域+控制域**:`0E00000000`。 - **ASDU**:`64010600010000000014`和`64010700000000000014`分别表示不同类型的数据单元。 - **报文2**: ``` Ϣ(Ӧվٻ) 6852020000000112140000000C0000000B0000000A0000000900000008000000070000000600000005000000040000000300000002000000010000001200000011000000100000000F0000000E0000000D000000 ֵ,̸(Ӧվٻ) 68B2040000000D15140000000040000000000000024000000000000001400000000000001240000000000000114000000000000010400000000000000F400000000000000E400000000000000D400000000000000C400000000000000B400000000000000A40000000000000094000000000000008400000000000000740000000000000064000000000000005400000000000000440000000000000034000000000000014400000000000001340000000000000 ``` - **启动字符**:`68` - **控制域**:`5202000000`和`B204000000`,前者是I格式报文,后者是S格式报文。 - **ASDU**:包含了多个具体的数据值,如`0C0000000B0000000A000000090000000800000007000000060000000500000004000000030000000200000001000000`等,这些数据值代表了不同的状态或测量值。 - **报文3**: ``` ٻ(ֹ) 680E0600000064010A00000000000014 ٻ(ȷ) 680E0800020064010700000000000014 ``` - **启动字符**:`68` - **控制域**:`0E06000000`和`0E08000200`,分别表示不同的控制信息。 - **ASDU**:`64010A00000000000014`和`64010700000000000014`,表示不同类型的数据单元。 - **报文4**: ``` Ϣ(Ӧվٻ) 68520A0002000112140000000C0000000B0000000A0000000900000008000000070000000600000005000000040000000300000002000000010000001200000011000000100000000F0000000E0000000D000000 ֵ,̸(Ӧվٻ) 68B20C0002000D15140000000040000000000000024000000000000001400000000000001240000000000000114000000000000010400000000000000F400000000000000E400000000000000D400000000000000C400000000000000B400000000000000A40000000000000094000000000000008400000000000000740000000000000064000000000000005400000000000000440000000000000034000000000000014400000000000001340000000000000 ``` - **启动字符**:`68` - **控制域**:`520A000200`和`B20C000200`,前者是I格式报文,后者是S格式报文。 - **ASDU**:包含了多个具体的数据值,如`0C0000000B0000000A000000090000000800000007000000060000000500000004000000030000000200000001000000`等,这些数据值代表了不同的状态或测量值。 ### 结论 以上报文展示了IEC104协议中常见的几种报文类型:U格式报文、S格式报文和I格式报文。通过对这些报文的详细解析,我们可以了解到在电力自动化系统中是如何通过IEC104协议来实现数据交互的。这些报文不仅包含了控制信息,还携带了实际的应用数据和服务信息,对于理解IEC104协议的实际应用具有重要意义。
<- 2020-01-09 15:39:07:295 启动确认的U格式 68 04 0B 00 00 00
-> 2020-01-09 15:39:07:295 召唤命令(激活) 68 0E 00 00 00 00 64 01 06 00 01 00 00 00 00 14
<- 2020-01-09 15:39:07:295 召唤命令(激活确认) 68 0E 00 00 00 00 64 01 07 00 00 00 00 00 00 14
<- 2020-01-09 15:39:07:310 单点信息(响应站总召唤) 68 52 02 00 00 00 01 12 14 00 00 00 0C 00 00 00 0B 00 00 00 0A 00 00 00 09 00 00 00 08 00 00 00 07 00 00 00 06 00 00 00 05 00 00 00 04 00 00 00 03 00 00 00 02 00 00 00 01 00 00 00 12 00 00 00 11 00 00 00 10 00 00 00 0F 00 00 00 0E 00 00 00 0D 00 00 00
<- 2020-01-09 15:39:07:326 测量值,短浮点数(响应站总召唤) 68 B2 04 00 00 00 0D 15 14 00 00 00 00 40 00 00 00 00 00 00 02 40 00 00 00 00 00 00 01 40 00 00 00 00 00 00 12 40 00 00 00 00 00 00 11 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 0F 40 00 00 00 00 00 00 0E 40 00 00 00 00 00 00 0D 40 00 00 00 00 00 00 0C 40 00 00 00 00 00 00 0B 40 00 00 00 00 00 00 0A 40 00 00 00 00 00 00 09 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 07 40 00 00 00 00 00 00 06 40 00 00 00 00 00 00 05 40 00 00 00 00 00 00 04 40 00 00 00 00 00 00 03 40 00 00 00 00 00 00 14 40 00 00 00 00 00 00 13 40 00 00 00 00 00 00
<- 2020-01-09 15:39:07:342 召唤命令(激活终止) 68 0E 06 00 00 00 64 01 0A 00 00 00 00 00 00 14
<- 2020-01-09 15:39:07:342 召唤命令(激活确认) 68 0E 08 00 02 00 64 01 07 00 00 00 00 00 00 14
<- 2020-01-09 15:39:07:357 单点信息(响应站总召唤) 68 52 0A 00 02 00 01 12 14 00 00 00 0C 00 00 00 0B 00 00 00 0A 00 00 00 09 00 00 00 08 00 00 00 07 00 00 00 06 00 00 00 05 00 00 00 04 00 00 00 03 00 00 00 02 00 00 00 01 00 00 00 12 00 00 00 11 00 00 00 10 00 00 00 0F 00 00 00 0E 00 00 00 0D 00 00 00
<- 2020-01-09 15:39:07:373 测量值,短浮点数(响应站总召唤) 68 B2 0C 00 02 00 0D 15 14 00 00 00 00 40 00 00 00 00 00 00 02 40 00 00 00 00 00 00 01 40 00 00 00 00 00 00 12 40 00 00 00 00 00 00 11 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 0F 40 00 00 00 00 00 00 0E 40 00 00 00 00 00 00 0D 40 00 00 00 00 00 00 0C 40 00 00 00 00 00 00 0B 40 00 00 00 00 00 00 0A 40 00 00 00 00 00 00 09 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 07 40 00 00 00 00 00 00 06 40 00 00 00 00 00 00 05 40 00 00 00 00 00 00 04 40 00 00 00 00 00 00 03 40 00 00 00 00 00 00 14 40 00 00 00 00 00 00 13 40 00 00 00 00 00 00
<- 2020-01-09 15:39:07:388 召唤命令(激活终止) 68 0E 0E 00 02 00 64 01 0A 00 00 00 00 00 00 14
-> 2020-01-09 15:39:07:420 S格式 68 04 01 00 10 00
-> 2020-01-09 15:39:12:692 单点命令(激活) 68 0E 02 00 10 00 2D 01 06 00 01 00 01 60 00 81
<- 2020-01-09 15:39:12:708 单点命令(激活确认) 68 0E 10 00 04 00 2D 01 07 00 00 00 01 60 00 81
-> 2020-01-09 15:39:17:450 S格式 68 04 01 00 12 00
- 粉丝: 11
- 资源: 12
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于ASP.NET Core和Entity Framework Core的国际招生门户系统.zip
- SSD学习笔记的记录NVME SSD
- (源码)基于ESP8266和MQTT的电力计量系统.zip
- C#ASP.NET企信通源码 短信平台源码数据库 SQL2008源码类型 WebForm
- 0-ANSWER.html
- (源码)基于Java的医院预约管理系统.zip
- 在51单片机上实现I2C双向通信
- 附件5-PPT文字模板.docx
- (源码)基于C++的Conway生命游戏系统.zip
- 基于rocketmq-client与rocketmq-ons实现exactly-once语义+文档说明+代码注释