104规约电度召唤电文解析
http://www.doczj.com/doc/8036cf8c83d049649b665835-3.html
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: T ->U 68 04 07 00 00 00 发送→激活传输启动 :68(启动符)04(长度)07(控制域)00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <-S 68 04 0b 00 00 00 接收→确认激活传输启动 :68(启动符)04(长度)0B(控制域)00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: T ->S 68 04 01(确认接收) 00 00 00 S帧报文格式规定控制域1的第0位为1,第1位为0和控制域第0位为0。
第二步:发送对时报文(通过设置RTU参数表中的”对间间隔”,单位是分钟,一般是20分钟)发送→对时命令:
68(启动符)14(长度)02 00(发送序号)0A 00(接收序号)67(类型标示)01(可变结构限定词)06 00(传输原因)01 00(公共地址)00 00 00(信息体地址)01(毫秒低位)02(毫秒高位)03(分钟)04(时)81(日与星期)09(月)05(年)
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: T ->I 68 14(20字节) 00 00 00 00 67(时钟同步) 01 06 00 ff ff 00 00 00 37 5e 08 0f 0c 0b 15
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <-I 68 0e 00 00 00 00 46(初始化结束) 01 04 00 01 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: T ->I 68 0e 02(第一位固定为0,发送序号,计算时需要除以2) 00 02(第一位固定为0,接收序号,计算时需要除以2) 00 64(总召唤) 01 06 00 ff ff 00 00 00 14
接收→对时确认:
68(启动符)14(长度)0C 00(发送序号)02 00(接收序号)67(类型标示)01(可变结构限定词)07 00(传输原因)01 00(公共地址)00 00 00(信息体地址)**(毫秒低位)**(毫秒高位)**(分钟)04(时)81(日与星期)09(月)05(年)
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <-I 68 14 02 00 04 00 67(时钟同步) 01 07 00 01 00 00 00 00 5b bb 08 0f ac 0b 15
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: T ->I 68 0e 04 00 04 00 65(电度召唤) 01 06(激活) 00 ff ff 00 00 00 05
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <-I 68 0e 04 00 04 00 64(总召唤) 01 07(激活确认) 00 01 00 00 00 00 14
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <-I 68 0e 06 00 06 00 65(电度召唤) 01 07(激活确认) 00 01 00 00 00 00 05
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <-I 68 82(字节长度130) 08(发送序号为4) 00 06(接收序号为3) 00 0f(数据类型0f———不带时标的电能量,每个电能量占5个字节) 0f(可变结构限定15-00001111,高位为0,表示地址不连续,需要加地址,信息体个数为15(1111)) 25(传输原因2字节37--响应累积量站召唤)00 01(公共服务地址2字节 1)00 01 64 00(地址006401 = 25601) 00 00 00 00 00(5个字节的遥测值) 02 64 00 00 00 00 00 00 03 64 00 00 00 00 00 00 04 64 00 00 00 00 00 00 05 64 00 00 00 00 00 00 06 64 00 00 00 00 00 00 07 64 00 00 00 00 00 00 08 64 00 00 00 00 00 00 09 64 00 00 00 00 00 00 0a 64 00 00 00 00 00 00 0b 64 00 00 00 00 00 00 0c 64 00 00 00 00 00 00 0d 64 00 00 00 00 00 00 0e 64 00 00 00 00 00 00 0f 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 0a 00 06 00 0f 0f 25 00 01 00 10 64 00 00 00 00 00 00 11 64 00 00 00 00 00 00 12 64 00 00 00 00 00 00 13 64 00 00 00 00 00 00 14 64 00 00 00 00 00 00 15 64 00 00 00 00 00 00 16 64 00 00 00 00 00 00 17 64 00 00 00 00 00 00 18 64 00 00 00 00 00 00 19 64 00 00 00 00 00 00 1a 64 00 00 00 00 00 00 1b 64 00 00 00 00 00 00 1c 64 00 00 00 00 00 00 1d 64 00 00 00 00 00 00 1e 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 0c 00 06 00 0f 0f 25 00 01 00 1f 64 00 00 00 00 00 00 20 64 00 00 00 00 00 00 21 64 00 00 00 00 00 00 22 64 00 00 00 00 00 00 23 64 00 00 00 00 00 00 24 64 00 00 00 00 00 00 25 64 00 00 00 00 00 00 26 64 00 00 00 00 00 00 27 64 00 00 00 00 00 00 28 64 00 00 00 00 00 00 29 64 00 00 00 00 00 00 2a 64 00 00 00 00 00 00 2b 64 00 00 00 00 00 00 2c 64 00 00 00 00 00 00 2d 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 0e 00 06 00 0f 0f 25 00 01 00 2e 64 00 00 00 00 00 00 2f 64 00 00 00 00 00 00 30 64 00 00 00 00 00 00 31 64 00 00 00 00 00 00 32 64 00 00 00 00 00 00 33 64 00 00 00 00 00 00 34 64 00 00 00 00 00 00 35 64 00 00 00 00 00 00 36 64 00 00 00 00 00 00 37 64 00 00 00 00 00 00 38 64 00 00 00 00 00 00 39 64 00 00 00 00 00 00 3a 64 00 00 00 00 00 00 3b 64 00 00 00 00 00 00 3c 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: T -> 68 04 01 00 10 00 (确认接收到 0010 16 除以 2 条报文)
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 10 00 06 00 0f 0f 25 00 01 00 3d 64 00 00 00 00 00 00 3e 64 00 00 00 00 00 00 3f 64 00 00 00 00 00 00 40 64 00 00 00 00 00 00 41 64 00 00 00 00 00 00 42 64 00 00 00 00 00 00 43 64 00 00 00 00 00 00 44 64 00 00 00 00 00 00 45 64 00 00 00 00 00 00 46 64 00 00 00 00 00 00 47 64 00 00 00 00 00 00 48 64 00 00 00 00 00 00 49 64 00 00 00 00 00 00 4a 64 00 00 00 00 00 00 4b 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 12 00 06 00 0f 0f 25 00 01 00 4c 64 00 00 00 00 00 00 4d 64 00 00 00 00 00 00 4e 64 00 00 00 00 00 00 4f 64 00 00 00 00 00 00 50 64 00 00 00 00 00 00 51 64 00 00 00 00 00 00 52 64 00 00 00 00 00 00 53 64 00 00 00 00 00 00 54 64 00 00 00 00 00 00 55 64 00 00 00 00 00 00 56 64 00 00 00 00 00 00 57 64 00 00 00 00 00 00 58 64 00 00 00 00 00 00 59 64 00 00 00 00 00 00 5a 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 14 00 06 00 0f 0f 25 00 01 00 5b 64 00 00 00 00 00 00 5c 64 00 00 00 00 00 00 5d 64 00 00 00 00 00 00 5e 64 00 00 00 00 00 00 5f 64 00 00 00 00 00 00 60 64 00 00 00 00 00 00 61 64 00 00 00 00 00 00 62 64 00 00 00 00 00 00 63 64 00 00 00 00 00 00 64 64 00 00 00 00 00 00 65 64 00 00 00 00 00 00 66 64 00 00 00 00 00 00 67 64 00 00 00 00 00 00 68 64 00 00 00 00 00 00 69 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 16 00 06 00 0f 0f 25 00 01 00 6a 64 00 00 00 00 00 00 6b 64 00 00 00 00 00 00 6c 64 00 00 00 00 00 00 6d 64 00 00 00 00 00 00 6e 64 00 00 00 00 00 00 6f 64 00 00 00 00 00 00 70 64 00 00 00 00 00 00 71 64 00 00 00 00 00 00 72 64 00 00 00 00 00 00 73 64 00 00 00 00 00 00 74 64 00 00 00 00 00 00 75 64 00 00 00 00 00 00 76 64 00 00 00 00 00 00 77 64 00 00 00 00 00 00 78 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 18 00 06 00 0f 0f 25 00 01 00 79 64 00 00 00 00 00 00 7a 64 00 00 00 00 00 00 7b 64 00 00 00 00 00 00 7c 64 00 00 00 00 00 00 7d 64 00 00 00 00 00 00 7e 64 00 00 00 00 00 00 7f 64 00 00 00 00 00 00 80 64 00 00 00 00 00 00 81 64 00 00 00 00 00 00 82 64 00 00 00 00 00 00 83 64 00 00 00 00 00 00 84 64 00 00 00 00 00 00 85 64 00 00 00 00 00 00 86 64 00 00 00 00 00 00 87 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 1a 00 06 00 0f 0f 25 00 01 00 88 64 00 00 00 00 00 00 89 64 00 00 00 00 00 00 8a 64 00 00 00 00 00 00 8b 64 00 00 00 00 00 00 8c 64 00 00 00 00 00 00 8d 64 00 00 00 00 00 00 8e 64 00 00 00 00 00 00 8f 64 00 00 00 00 00 00 90 64 00 00 00 00 00 00 91 64 00 00 00 00 00 00 92 64 00 00 00 00 00 00 93 64 00 00 00 00 00 00 94 64 00 00 00 00 00 00 95 64 00 00 00 00 00 00 96 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 1c 00 06 00 0f 0f 25 00 01 00 97 64 00 00 00 00 00 00 98 64 00 00 00 00 00 00 99 64 00 00 00 00 00 00 9a 64 00 00 00 00 00 00 9b 64 00 00 00 00 00 00 9c 64 00 00 00 00 00 00 9d 64 00 00 00 00 00 00 9e 64 00 00 00 00 00 00 9f 64 00 00 00 00 00 00 a0 64 00 00 00 00 00 00 a1 64 00 00 00 00 00 00 a2 64 00 00 00 00 00 00 a3 64 00 00 00 00 00 00 a4 64 00 00 00 00 00 00 a5 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 1e 00 06 00 0f 0f 25 00 01 00 a6 64 00 00 00 00 00 00 a7 64 00 00 00 00 00 00 a8 64 00 00 00 00 00 00 a9 64 00 00 00 00 00 00 aa 64 00 00 00 00 00 00 ab 64 00 00 00 00 00 00 ac 64 00 00 00 00 00 00 ad 64 00 00 00 00 00 00 ae 64 00 00 00 00 00 00 af 64 00 00 00 00 00 00 b0 64 00 00 00 00 00 00 b1 64 00 00 00 00 00 00 b2 64 00 00 00 00 00 00 b3 64 00 00 00 00 00 00 b4 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: T -> 68 04 01 00 20 00 (0020 32 除以 2 条报文)
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 82 20 00 06 00 0f 0f 25 00 01 00 b5 64 00 00 00 00 00 00 b6 64 00 00 00 00 00 00 b7 64 00 00 00 00 00 00 b8 64 00 00 00 00 00 00 b9 64 00 00 00 00 00 00 ba 64 00 00 00 00 00 00 bb 64 00 00 00 00 00 00 bc 64 00 00 00 00 00 00 bd 64 00 00 00 00 00 00 be 64 00 00 00 00 00 00 bf 64 00 00 00 00 00 00 c0 64 00 00 00 00 00 00 c1 64 00 00 00 00 00 00 c2 64 00 00 00 00 00 00 c3 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 72 22 00 06 00 0f 0d 25 00 01 00 c4 64 00 00 00 00 00 00 c5 64 00 00 00 00 00 00 c6 64 00 00 00 00 00 00 c7 64 00 00 00 00 00 00 c8 64 00 00 00 00 00 00 c9 64 00 00 00 00 00 00 ca 64 00 00 00 00 00 00 cb 64 00 00 00 00 00 00 cc 64 00 00 00 00 00 00 cd 64 00 00 00 00 00 00 ce 64 00 00 00 00 00 00 cf 64 00 00 00 00 00 00 d0 64 00 00 00 00 00 00
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 0e(14个字节) 24 00(发送了36除以2=18个报文)06 00(接收了 6/2 = 3 个报文) 65(电度召唤) 01(高位0 不连续需要地址, 1个信息体) 0a 00(传输原因10 激活终止) 01 00(公共服务地址) 00 00 00(信息体地址) 05
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 0e 26 00 06 00 01(01———不带时标的单点遥信,每个遥信占1个字节) 81 14 00 01 00 01 00 00 01
2021/11/12 15:08:24 IP Address 172.16.26.208 Port number 2404: R <- 68 0e 28 00 06 00 64 01 0a 00 01 00 00 00 00 14
2021/11/12 15:08:34 IP Address 172.16.26.208 Port number 2404: T -> 68 04 01 00 2a 00 (002a 42 除以2条)
2021/11/12 15:08:44 IP Address 172.16.26.208 Port number 2404: T -> 68 04 43 00 00 00 子站发送U帧测试(激活)
2021/11/12 15:08:44 IP Address 172.16.26.208 Port number 2404: R <- 68 04 83 00 00 00 主站收到测试U帧就会回复一个U帧(确认)