CN113934133A - Control command confirmation method and system suitable for security control system - Google Patents

Control command confirmation method and system suitable for security control system Download PDF

Info

Publication number
CN113934133A
CN113934133A CN202111141030.0A CN202111141030A CN113934133A CN 113934133 A CN113934133 A CN 113934133A CN 202111141030 A CN202111141030 A CN 202111141030A CN 113934133 A CN113934133 A CN 113934133A
Authority
CN
China
Prior art keywords
command
frame
control command
control
confirmation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111141030.0A
Other languages
Chinese (zh)
Other versions
CN113934133B (en
Inventor
任建锋
徐捷
杜兴伟
司庆华
许高阳
郭勋
赵娟
王计林
孙宁
张孜铭
王雷
陈永华
颜云松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Henan Electric Power Co Ltd
Nari Technology Co Ltd
State Grid Electric Power Research Institute
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Henan Electric Power Co Ltd
Nari Technology Co Ltd
State Grid Electric Power Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Henan Electric Power Co Ltd, Nari Technology Co Ltd, State Grid Electric Power Research Institute filed Critical State Grid Corp of China SGCC
Priority to CN202111141030.0A priority Critical patent/CN113934133B/en
Publication of CN113934133A publication Critical patent/CN113934133A/en
Application granted granted Critical
Publication of CN113934133B publication Critical patent/CN113934133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B9/00Safety arrangements
    • G05B9/02Safety arrangements electric
    • G05B9/03Safety arrangements electric with multiple-channel loop, i.e. redundant control systems

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a control command confirmation method suitable for a security control system, which comprises the following steps: acquiring a data frame from a command sending end; judging whether the data frame is a control command frame or not according to a frame header in the data frame; if the control command frame is the control command frame, the control command is confirmed according to the command status word and the command continuous word, the invention simplifies the method for confirming the control command continuous multiframe by introducing the concept of the command status word and the continuous sending times of the same command status on the premise of not reducing the reliability, and can prevent the problem of the failure of confirming the control command continuous multiframe caused by sending interval jitter of a sending end or occasional frame loss on a communication link.

Description

Control command confirmation method and system suitable for security control system
Technical Field
The invention belongs to the technical field of power systems and automation thereof, and particularly relates to a control command confirmation method and system suitable for a security control system.
Background
The s-power system safety and stability control system generally comprises a control main station, a control substation and a control execution station, wherein the control main station, the control substation and the control execution station generally comprise a main case and an IO case, namely a communication case. The communication case receives and decomposes the messages of the host case and sends the messages to the remote sites, and the message information of the plurality of remote sites is packaged and sent to the host case for processing. Analog quantity, switching value, control command and the like are interacted with the outside through the communication case. In order to meet the above requirement, the communication chassis generally transmits information to the outside at regular intervals, which is specified in the relevant regulations that one frame of information should be interacted with a remote site within 1.667ms, that is, 600 frames are interacted per second. When receiving a remote site control command, in order to prevent errors in the command transmission process, related procedures generally have a requirement that the control command needs to be finally executed through continuous multi-frame confirmation, and a 3-frame continuous confirmation method is generally adopted in engineering. The source of the sent command is in the mainframe box, the sending interval of multi-frame commands of the mainframe box is influenced by factors such as task scheduling, interruption jitter and the like, and generally, the sending is hard to be guaranteed to be strictly sent at equal intervals, the communication chassis generally sends the commands to the outside at equal intervals, and if the communication messages of the mainframe box cannot be received, data are not sent to a remote site by a conventional method, or the sending is stopped after repeated data sent last time are sent to the remote site for a period of time. In the procedure, continuous multi-frame acknowledgement is required, and the transmission interval jitter of the transmitting end or occasional frame loss of the communication channel and other reasons may cause the prolongation of the continuous multi-frame acknowledgement time of the receiving side. For safety and stability control, generally speaking, the longer the control time, the greater the control cost.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a control command confirmation method and a control command confirmation system suitable for a security control system, which can reduce the confirmation time of the control command of the security control system.
The technical problem to be solved by the invention is realized by the following technical scheme:
in a first aspect, a control command confirmation method applicable to a security control system is provided, including:
acquiring a data frame from a command sending end;
judging whether the data frame is a control command frame or not according to a frame header in the data frame;
if the command frame is the control command frame, the control command is confirmed according to the command status word and the command continuous word.
With reference to the first aspect, further, the confirming the control command according to the command status word and the command continuation word includes:
if the command frame is a control command frame, storing the control command frame into a control command confirmation cache, if the number Q of the control command frames in the cache is not less than a confirmation threshold value P, comparing whether command status words in the Q frame are consistent, if so, judging whether command continuous words in the Q frame are sequentially increased, and if so, confirming the control command to pass.
With reference to the first aspect, further, the threshold P is set according to a user requirement.
With reference to the first aspect, the method further includes:
if the control command frame from the command sending end is not received within the time of t multiplied by P, emptying the control command cache;
where t is the fixed transmission time interval of the control command frame.
With reference to the first aspect, the method further includes:
and if the non-control command frame is received, immediately clearing the control command confirmation cache.
In a second aspect, a control command confirmation system suitable for a security control system is provided, including:
the data acquisition module is used for acquiring a data frame from the command sending end;
the command frame judging module is used for judging whether the data frame is a control command frame according to a frame header in the data frame;
and the command confirmation module is used for confirming the control command according to the command state word and the command continuous word if the command frame is the control command frame.
With reference to the second aspect, further, the command confirmation module includes:
the buffer module is used for storing the control command frame into a control command confirmation buffer if the control command frame is the control command frame;
a status word judgment module, configured to compare whether command status words in the Q frame are consistent if the number Q of control command frames in the cache is not less than the confirmation threshold P;
and the continuous word judging module is used for judging whether the command continuous words in the Q frame are sequentially increased on the basis of whether the command status words are consistent or not, and if so, controlling the command to pass the confirmation.
With reference to the second aspect, further, the command confirmation module further includes a buffer flush module:
the method is used for emptying the control command cache when the control command frame from the command sending end is not received in the time of t multiplied by P;
wherein t is a fixed transmission time interval of the control command frame;
and if the non-control command frame is received, immediately clearing the control command confirmation cache.
In a third aspect, a control command confirmation system suitable for a security control system is further provided, which includes a memory and a processor;
the memory is to store instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of claims 1 to 5.
The beneficial effects of the invention include: the invention simplifies the method for confirming the control command continuous multiframe without reducing the reliability by introducing the concept of command status words and the continuous sending times of the same command status, and can prevent the problem of the failure of confirming the control command continuous multiframe caused by sending interval jitter of a sending end or occasional frame loss on a communication link.
Drawings
FIG. 1 is a flow chart of the process of a sender command status word and a command continuation word in the present invention;
FIG. 2 is a flow chart of a method for continuous multi-frame acknowledgement of control commands according to the present invention;
FIG. 3 is a diagram of a control command frame sequence including error checking frames and frame loss according to the present invention.
Detailed Description
To further describe the technical features and effects of the present invention, the present invention will be further described with reference to the accompanying drawings and detailed description.
Example 1
As shown in fig. 1 to 3, a control command confirmation method suitable for a safety control system is provided, which includes the following steps:
step one, acquiring a data frame from a command sending end.
The data frame contains fields as shown in table 1:
table 1 fields included in data frame
Figure BDA0003283738840000031
If the command is sent by a command source (sending end), Cmd _ St is kept unchanged if the command is consistent with the previous command, and Cmd _ Sq is added with 1; if the current command is inconsistent with the previous command, adding 1 to Cmd _ St, and resetting Cmd _ Sq to 1; if the command is sent at this time, and the frame non-control command is sent at the last time, the Cmd _ St is added with 1, and the Cmd _ Sq is reset to 1.
And step two, the receiving side distinguishes whether the currently received frame is a control command frame or a non-control command frame by the frame header.
And step three, confirming the control command according to the command status word and the command continuous word.
In a certain control command sequence, the receiving side needs to continuously confirm P (P is flexibly set according to the requirements of the actual user, and is assumed to be 3) frames before being executed. The sending side sends a frame every 1.667ms, and always sends 8 frames of the same control command frame, namely, sends a frame of control command frame in each of 0ms, 1.667ms, 3.333ms, 5ms, 6.667ms, 8.333ms, 10ms and 11.667ms, namely, the frame header at the moment is the frame header of the control command frame, Com _ St is unchanged, and Com _ Sq is increased progressively. Due to the reason of a communication link, a communication frame received by a receiving side in 3.333ms is not checked correctly, and a frame loss of 6.667ms is not received, a traditional continuous confirmation method can only confirm the 3 frames of 8.333ms, 10ms and 11.667ms continuously, 11.667ms is needed after a control command is sent out to confirm and execute the frame, otherwise, the next continuous three frames need to be waited again, and the efficiency is low; the invention introduces the command status word Com _ St and the command continuous word Com _ Sq, because the receiving side can detect that the frame headers of 0ms, 1.667ms and 5ms are all the frame headers of the control command frame, and the command status word Com _ St of the 3 frames is the same, the command continuous word Com _ Sq is increased progressively, and the rest key information words needing continuous confirmation are consistent, namely the control command sent by the sending side is considered to be unchanged all the time, therefore, the control command can be regarded as a control command to be continuously confirmed by the 3 frames.
Under the working condition, the control command can be confirmed and executed only in 5ms after being sent out, and compared with 11.667ms in the traditional method, the rapidity of responding to the command is greatly increased.
In the process of confirming the control command, if the control command frame from the command sending end is not received within the duration S (S is more than or equal to t multiplied by P), emptying the control command cache to prevent the cache from being unnecessarily occupied; if the non-control command frame is received currently and the subsequent non-control command frame is still likely to be the non-control command frame, the control command is confirmed to be buffer emptied immediately, and buffer waste is prevented.
Where t is the fixed transmission time interval of the control command frame.
Example 2
The invention also provides a control command confirmation system suitable for the security control system, which comprises the following components:
the data acquisition module is used for acquiring a data frame from the command sending end;
the command frame judging module is used for judging whether the data frame is a control command frame according to a frame header in the data frame;
and the command confirmation module is used for confirming the control command according to the command state word and the command continuous word if the command frame is the control command frame.
The command confirmation module includes:
the buffer module is used for storing the control command frame into a control command confirmation buffer if the control command frame is the control command frame;
a status word judgment module, configured to compare whether command status words in the Q frame are consistent if the number Q of control command frames in the cache is not less than the confirmation threshold P;
and the continuous word judging module is used for judging whether the command continuous words in the Q frame are sequentially increased on the basis of whether the command status words are consistent or not, and if so, controlling the command to pass the confirmation.
The command confirmation module further comprises a buffer emptying module:
the method is used for emptying the control command cache when the control command frame from the command sending end is not received in the time of t multiplied by P;
wherein t is a fixed transmission time interval of the control command frame;
and if the non-control command frame is received, immediately clearing the control command confirmation cache.
Example 3
The invention also provides a control command confirmation system suitable for the security control system, which comprises a memory and a processor;
the memory is to store instructions;
the processor is configured to operate according to the instructions to perform the steps of any one of the methods provided by the present invention.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (9)

1. A control command confirmation method suitable for a security control system is characterized by comprising the following steps:
acquiring a data frame from a command sending end;
judging whether the data frame is a control command frame or not according to a frame header in the data frame;
if the command frame is the control command frame, the control command is confirmed according to the command status word and the command continuous word.
2. The method of claim 1, wherein the validating the control command according to the command status word and the command continuation word comprises:
if the command frame is a control command frame, storing the control command frame into a control command confirmation cache, if the number Q of the control command frames in the cache is not less than a confirmation threshold value P, comparing whether command status words in the Q frame are consistent, if so, judging whether command continuous words in the Q frame are sequentially increased, and if so, confirming the control command to pass.
3. The method for confirming the control command applicable to the safety control system as claimed in claim 1, wherein the threshold P is set according to the user requirement.
4. The method for confirming the control command applicable to the safety control system according to claim 3, further comprising:
if the control command frame from the command sending end is not received within the time of t multiplied by P, emptying the control command cache;
where t is the fixed transmission time interval of the control command frame.
5. The method for confirming the control command applicable to the safety control system according to claim 3, further comprising:
and if the non-control command frame is received, immediately clearing the control command confirmation cache.
6. A control command confirmation system adapted for use in a security control system, comprising:
the data acquisition module is used for acquiring a data frame from the command sending end;
the command frame judging module is used for judging whether the data frame is a control command frame according to a frame header in the data frame;
and the command confirmation module is used for confirming the control command according to the command state word and the command continuous word if the command frame is the control command frame.
7. The system of claim 6, wherein the command confirmation module comprises:
the buffer module is used for storing the control command frame into a control command confirmation buffer if the control command frame is the control command frame;
a status word judgment module, configured to compare whether command status words in the Q frame are consistent if the number Q of control command frames in the cache is not less than the confirmation threshold P;
and the continuous word judging module is used for judging whether the command continuous words in the Q frame are sequentially increased on the basis of whether the command status words are consistent or not, and if so, controlling the command to pass the confirmation.
8. The system of claim 6, wherein the command confirmation module further comprises a buffer flush module:
the method is used for emptying the control command cache when the control command frame from the command sending end is not received in the time of t multiplied by P;
wherein t is a fixed transmission time interval of the control command frame;
and if the non-control command frame is received, immediately clearing the control command confirmation cache.
9. A control command confirmation system suitable for a security control system is characterized by comprising a memory and a processor;
the memory is to store instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of claims 1 to 5.
CN202111141030.0A 2021-09-28 2021-09-28 Control command confirmation method and system suitable for security control system Active CN113934133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111141030.0A CN113934133B (en) 2021-09-28 2021-09-28 Control command confirmation method and system suitable for security control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111141030.0A CN113934133B (en) 2021-09-28 2021-09-28 Control command confirmation method and system suitable for security control system

Publications (2)

Publication Number Publication Date
CN113934133A true CN113934133A (en) 2022-01-14
CN113934133B CN113934133B (en) 2024-05-31

Family

ID=79277070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111141030.0A Active CN113934133B (en) 2021-09-28 2021-09-28 Control command confirmation method and system suitable for security control system

Country Status (1)

Country Link
CN (1) CN113934133B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277514A (en) * 2022-07-08 2022-11-01 国电南瑞南京控制系统有限公司 Online command self-checking method and device for safety and stability control system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4803685A (en) * 1986-03-06 1989-02-07 Cimsa Sintra Method and device for the transmission of digital data by messages organized in frames
US5944797A (en) * 1997-05-28 1999-08-31 International Business Machines Corporation Data mover hardware controlled processing in a commanding system and in a commanded system for controlling frame communications on a link
CN1812314A (en) * 2005-01-24 2006-08-02 中兴通讯股份有限公司 Data with different rate group frame transmitting method and device
CN101159521A (en) * 2001-07-02 2008-04-09 高通股份有限公司 System and method for frame re-transmission in a broadcast communication system
CN109165116A (en) * 2018-08-15 2019-01-08 西安微电子技术研究所 A kind of application Processing Interface circuit and method
CN109560909A (en) * 2018-11-29 2019-04-02 广州慧睿思通信息科技有限公司 Target of eating dishes without rice or wine induces detection method, detecting devices and induces equipment
CN109889209A (en) * 2019-03-08 2019-06-14 上海航天测控通信研究所 A kind of rate adaptation type ldpc decoder suitable for aerospace communication
CN110034914A (en) * 2019-03-28 2019-07-19 西南电子技术研究所(中国电子科技集团公司第十研究所) Overcome the frame synchornization method of receiver low signal-to-noise ratio and carrier wave frequency deviation
CN111866021A (en) * 2020-07-31 2020-10-30 武汉阿迪克电子股份有限公司 Multi-protocol management method for intelligent electric meter
CN111965968A (en) * 2019-05-20 2020-11-20 华为技术有限公司 Switching control method, system and device
CN113162972A (en) * 2021-02-27 2021-07-23 许继集团有限公司 Communication system establishing method, system and device applied to new energy stability control system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4803685A (en) * 1986-03-06 1989-02-07 Cimsa Sintra Method and device for the transmission of digital data by messages organized in frames
US5944797A (en) * 1997-05-28 1999-08-31 International Business Machines Corporation Data mover hardware controlled processing in a commanding system and in a commanded system for controlling frame communications on a link
CN101159521A (en) * 2001-07-02 2008-04-09 高通股份有限公司 System and method for frame re-transmission in a broadcast communication system
CN1812314A (en) * 2005-01-24 2006-08-02 中兴通讯股份有限公司 Data with different rate group frame transmitting method and device
CN109165116A (en) * 2018-08-15 2019-01-08 西安微电子技术研究所 A kind of application Processing Interface circuit and method
CN109560909A (en) * 2018-11-29 2019-04-02 广州慧睿思通信息科技有限公司 Target of eating dishes without rice or wine induces detection method, detecting devices and induces equipment
CN109889209A (en) * 2019-03-08 2019-06-14 上海航天测控通信研究所 A kind of rate adaptation type ldpc decoder suitable for aerospace communication
CN110034914A (en) * 2019-03-28 2019-07-19 西南电子技术研究所(中国电子科技集团公司第十研究所) Overcome the frame synchornization method of receiver low signal-to-noise ratio and carrier wave frequency deviation
CN111965968A (en) * 2019-05-20 2020-11-20 华为技术有限公司 Switching control method, system and device
CN111866021A (en) * 2020-07-31 2020-10-30 武汉阿迪克电子股份有限公司 Multi-protocol management method for intelligent electric meter
CN113162972A (en) * 2021-02-27 2021-07-23 许继集团有限公司 Communication system establishing method, system and device applied to new energy stability control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277514A (en) * 2022-07-08 2022-11-01 国电南瑞南京控制系统有限公司 Online command self-checking method and device for safety and stability control system

Also Published As

Publication number Publication date
CN113934133B (en) 2024-05-31

Similar Documents

Publication Publication Date Title
CN112804078B (en) Bandwidth adjustment method, service transmission method, network device and readable storage medium
CN104092717B (en) Message treatment method and system, message destination equipment
EP0220731A2 (en) A method of distributed file recovery and a system using the method
CN105450489A (en) HEBus efficient fieldbus system for preferably realizing shortest message in output and communication method
CN108512785B (en) Data transmission protocol method
CN110807063B (en) Substation real-time data rapid distribution synchronization system and method based on edge calculation
CN103957155A (en) Message transmission method and device and interconnection interface
CN113934133A (en) Control command confirmation method and system suitable for security control system
CN112261142B (en) RDMA network data retransmission method, device and FPGA
CN103685060A (en) Data packet sending method and data packet sending device
CN111556062B (en) Network security isolation device with one-way import function and method
CN112929331B (en) Universal communication protocol implementation method
CN109361629A (en) One kind being based on the big message method for reliable transmission of Kafka and system
CN113572629B (en) Message transmission method, terminal and storage medium
CN110727448B (en) OTA over-the-air upgrading method for charging piles
CN101494569B (en) Method and apparatus for processing message
US10243755B2 (en) Communication device and communication method
CN112272168A (en) Lightweight UDP communication redundancy method
CN101282201B (en) Method and equipment for monitoring message in communication apparatus
US5095481A (en) Technique for active synchronization of the content induced transaction overlap (CITO) communication channel
EP3562149A1 (en) Software upgrade method and device
CN110768739B (en) Synchronous serial control system and method
CN112637011B (en) Data transmission method, data transmission device, and storage medium
CN116346944A (en) UDP-based communication method and system
CN105553617A (en) Serial port communication data analysis method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant