当前位置:网站首页>Detailed interpretation of IEC104 protocol (II) interaction process and protocol analysis
Detailed interpretation of IEC104 protocol (II) interaction process and protocol analysis
2022-07-27 19:49:00 【Lin Musen^~^】
technological process
First step : First handshake (U frame )
send out ―> Activate transmission start :
68( Launcher )04( length )07( Control domain )
00 00 00
receive ―> Confirm that the active transmission is started :
68( Launcher )04( length )0B( Control domain )
00 00 00
The second step : Total call , summon YC,YX( Variable length I frame ) Send the general call regularly after initialization
send out ―> Total call :
68( Launcher )0E( length )
00 00( Send serial number ,2 Bytes )00 00( Receiving serial number ,2 Bytes )64( Type identification )01( Variable structure qualifier )06
00( Transmission reason ,2 Bytes )01 00( Public address , namely RTU xxh ,2 Bytes )0000
00( Message body address ,3 Bytes )14(QOI, Distinguish between general call and group call , If it is 2002 There is no group call for the version base address )
receive ―>S frame :( Record the received long frame , Both parties can send by frequency , The text specifies a maximum of 8 frame I Frame answer one S frame , But we ask to receive a frame I The frame answers one S frame )
68 04 01 00 02 00:
receive ―> General call confirmation ( Send the image of the frame , Except for different transmission reasons ):
68( Launcher )0E( length )00
00( Send serial number ,2 Bytes )
00 00( Receiving serial number ,2 Bytes )
64 ( Type identification )01( Variable structure qualifier )
07 00( Transmission reason ,2 Bytes )
01 00( Public address , namely RTU xxh ,2 Bytes )00
00 00( Message body address ,3 Bytes )
14 (QOI)
send out ―>S frame Record the received long frame , Both parties can send by frequency , The text specifies a maximum of 8 frame I Frame answer one S frame , But we ask to receive a frame I The frame answers one S frame )
68 04 01 00 02 00
receive ―>YX frame :( Identify by type 1 For example )
68( Launcher )
1A( length )
02 00 ( Send serial number ,2 Bytes )02 00( Receiving serial number ,2 Bytes )
01( Type identification , Single point telesignalling )
04( Variable structure qualifier , Yes 4 Send a remote message )
14 00 ( Transmission reason ,2 Bytes , Respond to the general call )01 00
( Public address , namely RTU xxh ,2 Bytes )03
00 00( Message body address ,3 Bytes , The first 3 Telesignaling No )
00( Remote signaling Division )
05 00 00 ( Message body address ,3 Bytes , The first 5 Telesignaling No )00( Remote signaling Division )
08 00 00( Message body address ,3 Bytes , The first 8 Telesignaling No )01
( Remote signaling cooperation )09 00 00
( Message body address ,3 Bytes ,9 Telesignaling No )00( Remote signaling Division )
send out ―>S frame :
68 04 01 00 04 00
receive ―>YX frame :( Identify by type 3 For example )
68( Launcher )
1E( length )
04 00( Send serial number ,2 Bytes )
02 00( Receiving serial number ,2 Bytes )03( Type identification , Two point telesignalling )
05 ( Variable structure qualifier , Yes 5 Send a remote message )14 00( Transmission reason ,2 Bytes , Respond to the general call )
01 00 ( Public address , namely RTU xxh ,2 Bytes )01
00 00 ( Message body address ,3 Bytes , The first 1 Telesignaling No )02( Remote signaling cooperation )
06 00 00 ( Message body address ,3 Bytes , The first 6 Telesignaling No )02( Remote signaling cooperation )
0A 00 00 ( Message body address ,3 Bytes , The first 10 Telesignaling No )01( Remote signaling Division )
0B 00 00( Message body address ,3 Bytes , The first 11 Telesignaling No )02 ( Remote signaling cooperation )
0C 00 00( Message body address ,3 Bytes , The first 12 Telesignaling No )01( Remote signaling Division )
send out ―>S frame :
68 04 01 00 06 00
receive ―>YC frame :( Identify by type 9 For example )
68( Launcher )
13( length )
06 00 ( Send serial number ,2 Bytes )02 00
( Receiving serial number ,2 Bytes )09
( Type identification , Telemetry with quality description )82( Variable structure qualifier , Yes 2 A continuous telemetry )
14 00 ( Transmission reason ,2 Bytes , Respond to the general call )01 00( Public address , namely RTU xxh ,2 Bytes )
01 07 00( Message body address ,3 Bytes , From 0x701 namely 0 Telemetry on the 1st )A1
10( Telemetry value 0x10A1)
00( Quality description )
89 15( Telemetry value 0x1589)
00( Quality description )
send out ―>S frame :
68 04 01 00 08 00
receive ―> End the total call frame :
68( Launcher )
0E( length )08 00
( Send serial number ,2 Bytes )02 00( Receiving serial number ,2 Bytes )
64 ( Type identification )01( Variable structure qualifier )0A 00
( Transmission reason ,2 Bytes )01 00
( Public address , namely RTU xxh ,2 Bytes )00
00 00( Message body address ,3 Bytes )
14(QOI)
send out ―>S frame :
68 04 01 00 0A 00
The second step : Send a response to the times **( By setting RTU In the parameter table ” Yes, time interval ” The unit is minutes , The default is 20 About minutes .)**
send out ―> Timing command :
68( Launcher )14( length )
02 00( Send serial number ,2 Bytes )0A 00( Receiving serial number ,2 Bytes )67( Type identification )01( Variable structure qualifier )06
00( Transmission reason ,2 Bytes )01 00( Public address , namely RTU xxh ,2 Bytes )0000
00( Message body address ,3 Bytes )01 ( Millisecond low order )
02( Millisecond high order ) 03( minute )
04( when ) 81 ( Sunday and Sunday )
09( month ) 05( year )
receive ―> Timing confirmation :
68( Launcher )14( length )
0C 00( Send serial number ,2 Bytes )04 00( Receiving serial number ,2 Bytes )67( Type identification )01( Variable structure qualifier )07
00( Transmission reason ,2 Bytes )01 00( Public address , namely RTU xxh ,2 Bytes )0000
00( Message body address ,3 Bytes )**
( Millisecond low order ) ( Millisecond high order )
( minute ) 04( when )
81 ( Sunday and Sunday ) 09( month )
05( year )
send out ―>S frame :
68 04 01 00 0E 00
The third step : Electricity always calls ( If there is no electricity, this step can be omitted and this step can be sent before timing ,DF8900 The system sets up RTU In the parameter table ” Full data scan interval ” The unit is minutes .DF1800/DF8002 The system writes... In the program , commonly 15 Call once a minute , If you don't need to summon electricity, it must be RTU The number of electric degrees in the parameter table is set to 0**)**
send out ―> Summon electricity :
68( Launcher )0E( length )
04 00( Send serial number ,2 Bytes )0E 00( Receiving serial number ,2 Bytes )65( Type identification )01( Variable structure qualifier )06
00( Transmission reason ,2 Bytes )01 00( Public address ,2 Bytes )0000
00( Message body address ,3 Bytes )45(QCC)
receive ―> Call to confirm ( Send the image of the frame , Except for different transmission reasons ):
68( Launcher )0E( length )10
00( Send serial number ,2 Bytes )
06 00( Receiving serial number ,2 Bytes )
65 ( Type identification )01( Variable structure qualifier )
07 00( Transmission reason ,2 Bytes )
01 00( Public address ,2 Bytes )00 00 00( Message body address ,3 Bytes )
45 (QCC)
send out ―>S frame :
68 04 01 00 12 00
receive ―> Electrical data :68( Launcher )
1A( length )
12 00( Send serial number ,2 Bytes )
06 00( Receiving serial number ,2 Bytes )
0F ( Type identification )02( Variable structure qualifier ,2 An electrical value )
05 00 ( Transmission reason ,2 Bytes )01 00( Public address ,2 Bytes )01
0C 00 ( Message body address ,3 Bytes ,0xc01,0 No. kwh )00
00 00 00( Electrical value )00( Description information )02 0C 00( Message body address ,3 Bytes ,0xc01,1 No. kwh )00
00 00 00 ( Electrical value )01( Description information )
send out ―>S frame :
68 04 01 00 14 00
receive ―> End the total call frame :
68( Launcher )
0E( length )14 00
( Send serial number ,2 Bytes )06 00( Receiving serial number ,2 Bytes )
65 ( Type identification )01( Variable structure qualifier )0A 00
( Transmission reason ,2 Bytes )01 00
( Public address ,2 Bytes )00 00 00( Message body address ,3 Bytes )
45(QCC)
send out ―>S frame :
- 04 01 00 16 00
Step four **: If RTU**** Data with changes shall be actively submitted **
Take the initiative to send displacement remote signaling , The type ID is 1 or 3
receive ―> Displacement telesignaling :
68( Launcher )
0E( length )
16 00 ( Send serial number ,2 Bytes )06
00 ( Receiving serial number ,2 Bytes )01( Type identification , Single point telesignalling )
01( Variable structure qualifier ,1 A displacement occurs )
03 00 ( Transmission reason ,2 Bytes , Table emergencies )01 00( Public address ,2 Bytes )
03 00 00( Message body address ,3 Bytes ,3 Telesignaling No )00( branch )
send out ―>S frame :
04 01 00 18 00
receive ―> Displacement telesignaling :
68( Launcher )0E( length )
18 00 ( Send serial number ,2 Bytes )06
00( Receiving serial number ,2 Bytes )
03( Type identification , Two point telesignalling )01( Variable structure qualifier ,1 A displacement occurs )
03 00( Transmission reason ,2 Bytes , Table emergencies )
01 00 ( Public address ,2 Bytes )06
00 00( Message body address ,3 Bytes ,6 Telesignaling No )
01( branch )
send out ―>S frame :
04 01 00 1a 00
SOE**** Take the initiative to send , The type ID is 0x1e or 0x1f
receive ―>SOE:
68( Launcher )
15( length )
1a 00( Send serial number ,2 Bytes )
06 00( Receiving serial number ,2 Bytes )
1E( Type identification , Single point )01( Variable structure qualifier ,1 individual SOE)
03 00 ( Transmission reason ,2 Bytes , Table emergencies )01
00 ( Public address ,2 Bytes )08 00 00( Message body address ,3 Bytes ,8 Telesignaling No )
00( branch )AD 39
( millisecond ,2 Bytes )1C( branch )
10( when )7A( Sunday and Sunday )
0B( month )
05( year )
send out ―>S frame :
04 01 00 1c 00
receive ―>SOE:
68( Launcher )
15( length )1c 00( Send serial number ,2 Bytes )
06 00( Receiving serial number ,2 Bytes )1F( Type identification , Bipoint )01( Variable structure qualifier ,1 individual SOE)
03 00( Transmission reason ,2 Bytes , Table emergencies )01
00 ( Public address , namely RTU xxh ,2 Bytes )0A
00 00 ( Message body address ,3 Bytes ,10 Telesignaling No )01( Information body element )
2F 40 ( millisecond ,2 Bytes )1C( branch )
10 ( when )7A( Sunday and Sunday )
0B( month )
05( year )
Step 5 if the master station does not send a message or RTU If no message is sent, both parties can send it according to frequency U frame , Test frame
send out ―>U frame :
68 04 43 00 00 00
receive ―> The reply :
68 04 83 00 00 00
Step six *** remote control
send out ―> Remote preset :68( Launcher )
0E( length )** **( Send serial number ,2 Bytes )
** **( Receiving serial number ,2 Bytes )
2E ( Type identification )01( Variable structure qualifier )
06 00( Transmission reason ,2 Bytes )
01 00( Public address ,2 Bytes )
05 0B 00( Message body address ,3 Bytes , Remote control number =0xb05-0xb01=
4)
82( Control and cooperation )
receive ―> Remote control reverse calibration :68( Launcher )
0E( length )
0E 00( Send serial number ,2 Bytes )
06 00( Receiving serial number ,2 Bytes )2E( Type identification )01( Variable structure qualifier )
07 00 ( Transmission reason ,2 Bytes )01 00( Public address ,2 Bytes )
05 0B 00( Message body address ,3 Bytes , Remote control number =0xb05-0xb01=
4)
82( Control and cooperation )
send out ―> Remote control execution :68( Launcher )
0E( length )
04 00( Send serial number ,2 Bytes )
18 00( Receiving serial number ,2 Bytes )2E( Type identification )01( Variable structure qualifier )06
00( Transmission reason ,2 Bytes )01 00( Public address , namely RTU xxh ,2 Bytes )
05 0B 00( Message body address ,3 Bytes , Remote control number =0xb05-0xb01=
4)
02( Control and cooperation )
receive ―> Execution confirmation :68( Launcher )
0E( length )
12 00( Send serial number ,2 Bytes )08
00( Receiving serial number ,2 Bytes )2E( Type identification )01( Variable structure qualifier )
07 00( Transmission reason ,2 Bytes )01
00( Public address , namely RTU xxh ,2 Bytes )05
0B 00( Message body address ,3 Bytes , Remote control number =0xb05-0xb01= 4)02( Control and cooperation )
send out ―> Remote undo :68( Launcher )
0E( length )
04 00( Send serial number ,2 Bytes )
18 00( Receiving serial number ,2 Bytes )2E( Type identification )01( Variable structure qualifier )08( Transmission reason ,2 Bytes )01
00( Public address , namely RTU xxh ,2 Bytes )
05 0B 00( Message body address ,3 Bytes , Remote control number =0xb05-0xb01=
4)02( Control and cooperation )
receive ―> Cancel confirmation :68( Launcher )
0E( length )
12 00 ( Send serial number ,2 Bytes )08
00( Receiving serial number ,2 Bytes )2E( Type identification )01( Variable structure qualifier )
09 00( Transmission reason ,2 Bytes ,, Stop activation confirmation )01
00( Public address , namely RTU xxh ,2 Bytes )05
0B 00( Message body address ,3 Bytes , Remote control number =0xb05-0xb01= 4)02( Control and cooperation )
Reference resources :
https://www.jianshu.com/p/772582a9db11?utm_campaign=hugo
https://blog.csdn.net/chenyitao736866376/article/details/99120024
http://blog.sina.com.cn/s/blog_725e03190102z5sa.html
https://github.com/renduy/IEC104_microgrid
http://www.openmuc.org
Message details
https://wenku.baidu.com/view/ba0654cea5e9856a57126027.html
https://wenku.baidu.com/view/dd0ee3e5bb0d4a7302768e9951e79b89680268a2.html?rec_flag=default&fr=pc_newview_relate-1001_1-2-wk_rec_doc2-1001_1-6-dd0ee3e5bb0d4a7302768e9951e79b89680268a2&sxts=1610432062201
https://wenku.baidu.com/view/cacaf1196c175f0e7cd1374a.html?fr=search-1-wk_sea_es-income3&fixfr=3yzT%2FnBfo2UWHiS%2BxO0Zxw%3D%3D
https://wenku.baidu.com/view/5d66e8ffc281e53a5902ff1f.html?rec_flag=default
https://wenku.baidu.com/view/f68823c048649b6648d7c1c708a1284ac850054c.html?rec_flag=default&fr=pc_newview_relate-1001_1-2&sxts=1610432353297
https://wenku.baidu.com/view/b495f21b03020740be1e650e52ea551810a6c983.html?fr=search-1-wk_sea_es-income4&fixfr=hDEPwyT9KnKfHnOsLiV34w%3D%3D
边栏推荐
- 几种无线协议简介
- Time complexity and space complexity
- Samsung will promote a number of risc-v architecture chips, and 5g millimeter wave RF chips will be the first to be adopted
- Flink简介以及运行架构
- SystemService(系统服务)
- 【深度学习基础知识 - 44】逻辑回归实现多分类的方法
- Embedded C language loop deployment
- Tab control of MFC advanced control (CTabCtrl)
- Make your chat bubbles colorful
- Introduction to several wireless protocols
猜你喜欢

【深度学习基础知识 - 45】机器学习中常用的距离计算方法

GestureDetector(手势识别)
![[basic knowledge of deep learning - 45] distance calculation methods commonly used in machine learning](/img/6c/b0c2ea667ac361c13d38c8f5e6e5f1.png)
[basic knowledge of deep learning - 45] distance calculation methods commonly used in machine learning

SharePreference(存储)

四大组件之ContentProvider

下放三星3J1传感器:代码暗示Pixel 7人脸识别安全性将大增

FileOutputStream(文件储存)与FileInputStream(文件读取)
Dry goods of technical practice | preliminary exploration of large-scale gbdt training

S32K系列芯片--简介

BroadcastReceiver(广播)
随机推荐
go-zero单体服务使用泛型简化注册Handler路由
嵌入式C语言对次数固定的循环的优化
SystemService(系统服务)
What's new in helix QAC 2022.2, the ace code static testing tool (2)
The valuation exceeds 15.6 billion yuan! Huaqin communication completed the round B financing of 1billion yuan! Qualcomm venture capital, Intel Capital led investment
SharePreference(存储)
四大组件之ContentProvider
估值超156亿元!华勤通讯完成10亿元B轮融资!高通创投、英特尔资本领投
Map和Set
SQlife(数据库)
带来高价值用户体验的低代码开发平台
Embedded C language loop deployment
C language: 5. Multidimensional array
jvisualvm的使用
王牌代码静态测试工具Helix QAC 2022.2 中的新增功能(1)
c语言:5、多维数组
【日常积累 - 06】查看cuda和cudnn版本
HDU1323_ Perfection [water question]
influxDB系列(四)TSM引擎(存储原理)
C language: 13. Pointer and memory