[go: up one dir, main page]

CN113934133B - 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
CN113934133B
CN113934133B CN202111141030.0A CN202111141030A CN113934133B CN 113934133 B CN113934133 B CN 113934133B CN 202111141030 A CN202111141030 A CN 202111141030A CN 113934133 B CN113934133 B CN 113934133B
Authority
CN
China
Prior art keywords
control command
command
frame
confirmation
control
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.)
Active
Application number
CN202111141030.0A
Other languages
Chinese (zh)
Other versions
CN113934133A (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

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 present invention discloses a control command confirmation method suitable for a security control system, comprising: obtaining a data frame from a command sending end; judging whether the data frame is a control command frame according to a frame header in the data frame; if it is a control command frame, confirming the control command according to a command status word and a command continuity word. The present invention introduces the concept of a command status word and the number of times the same command status is sent continuously, thereby simplifying the method for confirming multiple consecutive frames of a control command without reducing reliability, and can prevent the problem of failure in confirming multiple consecutive frames of a control command caused by jitter in the sending interval of the sending end or occasional frame loss on a communication link.

Description

适用于安控系统的控制命令确认方法及系统Control command confirmation method and system applicable to security control system

技术领域Technical Field

本发明属于电力系统及其自动化技术领域,尤其涉及一种适用于安控系统的控制命令确认方法及系统。The present invention belongs to the technical field of power systems and automation thereof, and in particular relates to a control command confirmation method and system suitable for a security control system.

背景技术Background technique

s电力系统安全稳定控制系统一般由控制主站、控制子站、控制执行站组成,控制主站、控制子站、控制执行站一般由主机箱、IO机箱即通信机箱组成。通信机箱收主机箱报文并分解发往远方站点,将多个远方站点的报文信息打包发给主机箱处理。模拟量、开关量及控制命令等通过通信机箱对外交互。相关规程中规定应在1.667ms内与远方站点交互一帧信息,即每秒交互600帧,为了满足上述要求,通信机箱一般是按照固定间隔时间对外发送信息。在收远方站点控制命令时,为了防止命令传输过程中出错,相关规程中一般都有控制命令需要经连续多帧确认才能最终执行的要求,工程中一般采用3帧连续确认的做法。发出命令的源头在主机箱,主机箱多帧命令的发出间隔受任务调度、中断抖动等因素影响,一般是难以保证严格按等间隔进行发送的,而通信机箱一般又是按照等间隔对外发送的,若收不到主机箱的通信报文,常规做法对远方站点不发送数据,或者是对远方站点发送一段时间的上一次发出的重复数据后停止发送。规程中又要求进行连续多帧确认,发送端发送间隔抖动或者是通信通道偶尔丢帧等原因都有可能导致接收侧连续多帧确认时间的延长。对于安全稳定控制,一般而言,控制时间越长,控制代价越大。The power system safety and stability control system is generally composed of a control master station, a control substation, and a control execution station. The control master station, the control substation, and the control execution station are generally composed of a main chassis, an IO chassis, or a communication chassis. The communication chassis receives the main chassis message and decomposes it to send to the remote site, and packages the message information of multiple remote sites to the main chassis for processing. Analog quantities, switch quantities, and control commands are interacted with the outside through the communication chassis. The relevant regulations stipulate that one frame of information should be interacted with the remote site within 1.667ms, that is, 600 frames per second. In order to meet the above requirements, the communication chassis generally sends information to the outside at fixed intervals. When receiving control commands from remote sites, in order to prevent errors during command transmission, the relevant regulations generally require that the control commands must be confirmed by multiple consecutive frames before they can be finally executed. In engineering, the practice of 3 consecutive frames of confirmation is generally adopted. The source of the command is the host chassis. The interval of issuing multi-frame commands of the host chassis is affected by factors such as task scheduling and interrupt jitter. It is generally difficult to ensure that they are sent strictly at equal intervals. The communication chassis generally sends them to the outside at equal intervals. If the communication message of the host chassis is not received, the conventional practice is not to send data to the remote site, or to stop sending after sending the last repeated data to the remote site for a period of time. The regulations also require continuous multi-frame confirmation. The jitter of the sending interval at the sending end or the occasional frame loss of the communication channel may lead to the extension of the continuous multi-frame confirmation time on the receiving side. For safe and stable control, generally speaking, the longer the control time, the greater the control cost.

发明内容Summary of the invention

为了解决现有技术存在的问题,本发明提供一种适用于安控系统的控制命令确认方法及系统,能够减少安控系统的控制命的确认时间。In order to solve the problems existing in the prior art, the present invention provides a control command confirmation method and system applicable to 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 present invention is achieved through the following technical solutions:

第一方面,提供了一种适用于安控系统的控制命令确认方法,包括:In a first aspect, a control command confirmation method applicable to a security control system is provided, comprising:

获取来自命令发送端的数据帧;Get the data frame from the command sender;

根据数据帧中的帧头判断数据帧是否为控制命令帧;Judging whether the data frame is a control command frame according to the frame header in the data frame;

若为控制命令帧则根据命令状态字和命令连续字对控制命令进行确认。If it is a control command frame, the control command is confirmed according to the command status word and the command continuation word.

结合第一方面,进一步的,所述根据命令状态字和命令连续字对控制命令进行确认包括:In combination with the first aspect, further, confirming the control command according to the command status word and the command continuation word includes:

若为控制命令帧,则将其存入控制命令确认缓存,若该缓存中的控制命令帧数Q已经不小于确认阈值P,则比较这Q帧中的命令状态字是否一致,若一致则判断这Q帧中的命令连续字是否依次递增,若均符合则控制命令确认通过。If it is a control command frame, it will be stored in the control command confirmation cache. If the number of control command frames Q in the cache is not less than the confirmation threshold P, the command status words in these Q frames are compared to see if they are consistent. If they are consistent, it is determined whether the command continuity words in these Q frames are incremented in sequence. If they are all consistent, the control command is confirmed to be passed.

结合第一方面,进一步的,所述阈值P根据用户需求设定。In combination with the first aspect, further, the threshold P is set according to user needs.

结合第一方面,进一步的,还包括:In combination with the first aspect, further comprising:

若持续t×P时间都未收到来自命令发送端的控制命令帧,则清空控制命令缓存;If no control command frame is received from the command sender for t×P time, the control command buffer is cleared;

其中t为控制命令帧的固定发送时间间隔。Where t is the fixed sending time interval of the control command frame.

结合第一方面,进一步的,还包括:In combination with the first aspect, further comprising:

若收到非控制命令帧则立即将控制命令确认缓存清空。If a non-control command frame is received, the control command confirmation buffer will be cleared immediately.

第二方面,提供了一种适用于安控系统的控制命令确认系统,包括:In a second aspect, a control command confirmation system applicable to a security control system is provided, comprising:

数据获取模块,用于获取来自命令发送端的数据帧;A data acquisition module, used for acquiring data frames from a command sending end;

命令帧判断模块,用于根据数据帧中的帧头判断数据帧是否为控制命令帧;A command frame judging module, used for judging whether a data frame is a control command frame according to a frame header in the data frame;

命令确认模块,用于若为控制命令帧则根据命令状态字和命令连续字对控制命令进行确认。The command confirmation module is used to confirm the control command according to the command status word and the command continuation word if it is a control command frame.

结合第二方面,进一步的,所述命令确认模块包括:In combination with the second aspect, further, the command confirmation module includes:

缓存模块,用于若为控制命令帧,则将其存入控制命令确认缓存;A cache module, used for storing the control command frame into a control command confirmation cache if it is a control command frame;

状态字判断模块,用于若该缓存中的控制命令帧数Q已经不小于确认阈值P,则比较这Q帧中的命令状态字是否一致;The status word judgment module is used to compare whether the command status words in the Q frames are consistent if the number of control command frames Q in the cache is not less than the confirmation threshold P;

连续字判断模块,用于在命令状态字是否一致的基础上判断这Q帧中的命令连续字是否依次递增,若均符合则控制命令确认通过。The continuous word judgment module is used to judge whether the command continuous words in the Q frame are incremented in sequence based on whether the command status words are consistent. If they are all consistent, the control command is confirmed to be passed.

结合第二方面,进一步的,所述命令确认模块还包括缓存清空模块:In combination with the second aspect, further, the command confirmation module also includes a cache clearing module:

用于在持续t×P时间都未收到来自命令发送端的控制命令帧,清空控制命令缓存;Used to clear the control command buffer when no control command frame is received from the command sender for a continuous period of t×P;

其中t为控制命令帧的固定发送时间间隔;Where t is the fixed sending time interval of the control command frame;

若收到非控制命令帧则立即将控制命令确认缓存清空。If a non-control command frame is received, the control command confirmation buffer will be cleared immediately.

第三方面,还提供了一种适用于安控系统的控制命令确认系统,包括存储器和处理器;In a third aspect, a control command confirmation system applicable to a security control system is also provided, comprising a memory and a processor;

所述存储器用于存储指令;The memory is used to store instructions;

所述处理器用于根据所述指令进行操作以执行根据第一方面任一项所述方法的步骤。The processor is used to operate according to the instructions to execute the steps of the method according to any one of the first aspects.

本发明有益效果包括:本发明通过引入命令状态字及同一命令状态连续发送次数概念,在不降低可靠性的前提下,简化了控制命令连续多帧确认的方法,可以防止发送端发送间隔抖动或者通信链路上偶尔丢帧导致的控制命令连续多帧确认失败的问题。The beneficial effects of the present invention include: the present invention simplifies the method of confirming multiple consecutive frames of control commands without reducing reliability by introducing the concept of command status words and the number of consecutive times the same command status is sent, and can prevent the problem of failure in confirming multiple consecutive frames of control commands caused by jitter in the sending interval of the sending end or occasional frame loss on the communication link.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明中发送端命令状态字与命令连续字的处理流程图;Fig. 1 is a processing flow chart of a transmitting end command status word and a command continuation word in the present invention;

图2为本发明中控制命令连续多帧确认方法流程图;FIG2 is a flow chart of a method for confirming continuous multiple frames of control commands in the present invention;

图3为本发明中控制命令帧序列帐包含校验错误的帧及丢帧示意图。FIG. 3 is a schematic diagram of a control command frame sequence including frames with check errors and lost frames in the present invention.

具体实施方式Detailed ways

为了进一步描述本发明的技术特点和效果,以下结合附图和具体实施方式对本发明做进一步描述。In order to further describe the technical features and effects of the present invention, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods.

实施例1Example 1

如图1-3所示,提供一种适用于安控系统的控制命令确认方法,包括如下步骤:As shown in FIG1-3, a control command confirmation method applicable to a security control system is provided, comprising the following steps:

步骤一、获取来自命令发送端的数据帧。Step 1: Get the data frame from the command sender.

数据帧包含的字段如表1所示:The fields contained in the data frame are shown in Table 1:

表1数据帧所包含字段Table 1 Fields included in the data frame

命令源(发送端)发出时若本次和上次命令一致则Cmd_St保持不变,Cmd_Sq加1;若本次和上次命令不一致则Cmd_St加1,Cmd_Sq重置为1;若本次发出为命令,上次发出帧非控制命令则Cmd_St加1,Cmd_Sq重置为1。When the command source (sender) sends a command, if the current command is consistent with the last command, Cmd_St remains unchanged and Cmd_Sq increases by 1; if the current command is inconsistent with the last command, Cmd_St increases by 1 and Cmd_Sq is reset to 1; if the current command is a command and the last command was a frame non-control command, Cmd_St increases by 1 and Cmd_Sq is reset to 1.

步骤二、接收侧由帧头区分当前收到的帧是控制命令帧还是非控制命令帧。Step 2: The receiving side distinguishes whether the currently received frame is a control command frame or a non-control command frame by the frame header.

步骤三、根据命令状态字和命令连续字对控制命令进行确认。Step 3: Confirm the control command according to the command status word and command continuation word.

某次控制命令序列,接收侧需要连续确认P(P根据实际用户的需求灵活设定,此处假设P=3)帧后才可执行。发送侧是每1.667ms发一帧,一直发8帧同样的控制命令帧,即在0ms、1.667ms、3.333ms、5ms、6.667ms、8.333ms、10ms、11.667ms各发一帧控制命令帧,即上述时刻的帧头为控制命令帧帧头,Com_St不变,Com_Sq递增。由于通信链路的原因,接收侧在3.333ms收到的通信帧校验不正确,6.667ms丢帧没有收到,传统的连续确认方法是只能连续确认到8.333ms、10ms、11.667ms的这3帧,控制命令发出后需要11.667ms才能被确认到并执行,否则又要重新等待下一个连续的三帧,效率较低;而本发明由于引入了命令状态字Com_St和命令连续字Com_Sq,由于接收侧可以检测到0ms、1.667ms和5ms的帧头均为控制命令帧帧头,且这3帧的命令状态字Com_St相同,命令连续字Com_Sq递增,且其余需要连续确认的关键信息字也一致,即可认为发送侧发过来的控制命令一直就没有变化过,因此可视作为控制命令通过3帧连续确认。For a certain control command sequence, the receiving side needs to continuously confirm P (P is flexibly set according to the actual user's needs, and P is assumed to be 3 here) frames before it can be executed. The sending side sends a frame every 1.667ms, and sends 8 frames of the same control command frame, that is, a control command frame is sent at 0ms, 1.667ms, 3.333ms, 5ms, 6.667ms, 8.333ms, 10ms, and 11.667ms. That is, the frame header at the above moment is the control command frame header, Com_St remains unchanged, and Com_Sq increases. Due to the communication link, the communication frame received by the receiving side at 3.333ms is incorrectly checked, and the frame loss at 6.667ms is not received. The traditional continuous confirmation method can only continuously confirm the three frames of 8.333ms, 10ms, and 11.667ms. After the control command is issued, it takes 11.667ms to be confirmed and executed, otherwise it is necessary to wait for the next three consecutive frames again, which is inefficient; and the present invention introduces the command status word Com_St and the command continuity word Com_Sq, because the receiving side can detect that the frame headers of 0ms, 1.667ms and 5ms are all control command frame headers, and the command status words Com_St of these three frames are the same, the command continuity word Com_Sq increases, and the other key information words that need to be continuously confirmed are also consistent, it can be considered that the control command sent by the sending side has not changed, so it can be regarded as a control command that is continuously confirmed through 3 frames.

本发明在此种工况下,控制命令发出后仅需要5ms即可被确认并执行,相比传统方法的11.667ms,响应命令的快速性大大增加。Under this working condition, the control command of the present invention can be confirmed and executed in just 5 ms after it is issued, which greatly increases the speed of responding to the command compared to the 11.667 ms of the traditional method.

在控制命令确认的过程中,若在持续时间S内(S≥t×P)都未收到来自命令发送端的控制命令帧,清空控制命令缓存,防止缓存被不必要的占用;若当前收到非控制命令帧,那其后续仍然很可能是非控制命令帧,则立即将控制命令确认缓存清空处理,防止浪费缓存。During the control command confirmation process, if no control command frame is received from the command sender within the duration S (S≥t×P), the control command cache is cleared to prevent the cache from being unnecessary occupied; if a non-control command frame is currently received, it is likely that the subsequent frame will still be a non-control command frame, then the control command confirmation cache is immediately cleared to prevent wasting the cache.

其中t为控制命令帧的固定发送时间间隔。Where t is the fixed sending time interval of the control command frame.

实施例2Example 2

本发明还提供了一种适用于安控系统的控制命令确认系统,包括:The present invention also provides a control command confirmation system applicable to a security control system, comprising:

数据获取模块,用于获取来自命令发送端的数据帧;A data acquisition module, used for acquiring data frames from a command sending end;

命令帧判断模块,用于根据数据帧中的帧头判断数据帧是否为控制命令帧;A command frame judging module, used for judging whether a data frame is a control command frame according to a frame header in the data frame;

命令确认模块,用于若为控制命令帧则根据命令状态字和命令连续字对控制命令进行确认。The command confirmation module is used to confirm the control command according to the command status word and the command continuation word if it is a control command frame.

所述命令确认模块包括:The command confirmation module includes:

缓存模块,用于若为控制命令帧,则将其存入控制命令确认缓存;A cache module, used for storing the control command frame into a control command confirmation cache if it is a control command frame;

状态字判断模块,用于若该缓存中的控制命令帧数Q已经不小于确认阈值P,则比较这Q帧中的命令状态字是否一致;The status word judgment module is used to compare whether the command status words in the Q frames are consistent if the number of control command frames Q in the cache is not less than the confirmation threshold P;

连续字判断模块,用于在命令状态字是否一致的基础上判断这Q帧中的命令连续字是否依次递增,若均符合则控制命令确认通过。The continuous word judgment module is used to judge whether the command continuous words in the Q frame are incremented in sequence based on whether the command status words are consistent. If they are all consistent, the control command is confirmed to be passed.

所述命令确认模块还包括缓存清空模块:The command confirmation module also includes a cache clearing module:

用于在持续t×P时间都未收到来自命令发送端的控制命令帧,清空控制命令缓存;Used to clear the control command buffer when no control command frame is received from the command sender for a continuous period of t×P;

其中t为控制命令帧的固定发送时间间隔;Where t is the fixed sending time interval of the control command frame;

若收到非控制命令帧则立即将控制命令确认缓存清空。If a non-control command frame is received, the control command confirmation buffer will be cleared immediately.

实施例3Example 3

本发明还提供了一种适用于安控系统的控制命令确认系统,包括存储器和处理器;The present invention also provides a control command confirmation system applicable to a security control system, comprising a memory and a processor;

所述存储器用于存储指令;The memory is used to store instructions;

所述处理器用于根据所述指令进行操作以执行根据本发明所提供方法中任一项所述方法的步骤。The processor is configured to operate according to the instructions to execute the steps of any one of the methods provided by the present invention.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

本申请发明是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对其限制,尽管参照上述实施例对本发明进行了详细的说明,所属领域的普通技术人员应当理解:依然可以对本发明的具体实施方式进行修改或者等同替换,而未脱离本发明精神和范围的任何修改或者等同替换,其均应涵盖在本发明的权利要求保护范围之内。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims (7)

1.一种适用于安控系统的控制命令确认方法,其特征在于,包括:1. A control command confirmation method applicable to a security control system, characterized by comprising: 获取来自命令发送端的数据帧;Get the data frame from the command sender; 根据数据帧中的帧头判断数据帧是否为控制命令帧;Judging whether the data frame is a control command frame according to the frame header in the data frame; 若为控制命令帧则根据命令状态字和命令连续字对控制命令进行确认;If it is a control command frame, the control command is confirmed according to the command status word and the command continuation word; 所述根据命令状态字和命令连续字对控制命令进行确认包括:The confirming of the control command according to the command status word and the command continuation word comprises: 若为控制命令帧,则将其存入控制命令确认缓存,若该缓存中的控制命令帧数Q已经不小于确认阈值P,则比较这Q帧中的命令状态字是否一致,若一致则判断这Q帧中的命令连续字是否依次递增,若均符合则控制命令确认通过。If it is a control command frame, it will be stored in the control command confirmation cache. If the number of control command frames Q in the cache is no less than the confirmation threshold P, the command status words in the Q frames are compared to see if they are consistent. If they are consistent, it is determined whether the command continuity words in the Q frames are incremented in sequence. If they are all consistent, the control command is confirmed to be passed. 2.根据权利要求1所述的一种适用于安控系统的控制命令确认方法,其特征在于,所述阈值P根据用户需求设定。2. A control command confirmation method suitable for a security control system according to claim 1, characterized in that the threshold P is set according to user needs. 3.根据权利要求2所述的一种适用于安控系统的控制命令确认方法,其特征在于,还包括:3. A control command confirmation method applicable to a security control system according to claim 2, characterized in that it also includes: 若持续t×P时间都未收到来自命令发送端的控制命令帧,则清空控制命令缓存;If no control command frame is received from the command sender for t×P time, the control command buffer is cleared; 其中t为控制命令帧的固定发送时间间隔。Where t is the fixed sending time interval of the control command frame. 4.根据权利要求2所述的一种适用于安控系统的控制命令确认方法,其特征在于,还包括:4. The control command confirmation method applicable to a security control system according to claim 2, characterized in that it also includes: 若收到非控制命令帧则立即将控制命令确认缓存清空。If a non-control command frame is received, the control command confirmation buffer will be cleared immediately. 5.一种适用于安控系统的控制命令确认系统,其特征在于,包括:5. A control command confirmation system suitable for a security control system, characterized by comprising: 数据获取模块,用于获取来自命令发送端的数据帧;A data acquisition module, used for acquiring data frames from a command sending end; 命令帧判断模块,用于根据数据帧中的帧头判断数据帧是否为控制命令帧;A command frame judging module, used for judging whether a data frame is a control command frame according to a frame header in the data frame; 命令确认模块,用于若为控制命令帧则根据命令状态字和命令连续字对控制命令进行确认;A command confirmation module, used for confirming the control command according to the command status word and the command continuation word if it is a control command frame; 所述根据命令状态字和命令连续字对控制命令进行确认包括:The confirming of the control command according to the command status word and the command continuation word comprises: 若为控制命令帧,则将其存入控制命令确认缓存,若该缓存中的控制命令帧数Q已经不小于确认阈值P,则比较这Q帧中的命令状态字是否一致,若一致则判断这Q帧中的命令连续字是否依次递增,若均符合则控制命令确认通过。If it is a control command frame, it will be stored in the control command confirmation cache. If the number of control command frames Q in the cache is not less than the confirmation threshold P, the command status words in these Q frames are compared to see if they are consistent. If they are consistent, it is determined whether the command continuity words in these Q frames are incremented in sequence. If they are all consistent, the control command is confirmed to be passed. 6.根据权利要求5所述的一种适用于安控系统的控制命令确认系统,其特征在于,所述命令确认模块还包括缓存清空模块:6. A control command confirmation system suitable for a security control system according to claim 5, characterized in that the command confirmation module further comprises a cache clearing module: 用于在持续t×P时间都未收到来自命令发送端的控制命令帧,清空控制命令缓存;其中t为控制命令帧的固定发送时间间隔;Used to clear the control command cache when no control command frame is received from the command sending end for a continuous period of t×P; where t is a fixed sending time interval of the control command frame; 若收到非控制命令帧则立即将控制命令确认缓存清空。If a non-control command frame is received, the control command confirmation buffer will be cleared immediately. 7.一种适用于安控系统的控制命令确认系统,其特征在于,包括存储器和处理器;7. A control command confirmation system suitable for a security control system, characterized by comprising a memory and a processor; 所述存储器用于存储指令;The memory is used to store instructions; 所述处理器用于根据所述指令进行操作以执行根据权利要求1~4任一项所述方法的步骤。The processor is used to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 4.
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 CN113934133A (en) 2022-01-14
CN113934133B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277514A (en) * 2022-07-08 2022-11-01 国电南瑞南京控制系统有限公司 An online command self-checking method and device for a safe and stable 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

Also Published As

Publication number Publication date
CN113934133A (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN103399546B (en) Triple redundance control method and system
EP0220731A2 (en) A method of distributed file recovery and a system using the method
CN112769939B (en) Big data reliable transmission method for real-time communication
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN109932966B (en) Real-time efficient data transmission method based on M-LVDS bus
CN113934133B (en) Control command confirmation method and system suitable for security control system
CN106448777B (en) A kind of transfer station for npp safety level I&C system
CN105847041B (en) A kind of exchange method based on network management system command-line data
CN109413083B (en) Transparent data transmission method and system for intelligent station communication gateway machine
CN102833119A (en) Method for synchronously receiving and processing real-time data under dual-network redundancy mechanism
CN108199941A (en) A kind of CAN bus communication means based on CAN2.0B
CN110687854B (en) PA bus controller and PA bus control system
CN110809002A (en) Method for protocol conversion between robot and welding equipment and protocol conversion module
CN112468378B (en) High-capacity data transmission equipment and method based on CAN bus
CN105307282A (en) Method and device for preventing access collision of multiple user terminals
CN113037740A (en) GOOSE message sender restart frame judging method
CN104468301A (en) Safety output method based on MVB communication
CN112637011B (en) Data transmission method, data transmission device, and storage medium
WO2022127448A1 (en) Message transmission method, terminals and storage medium
CN103532965A (en) Message call-back method and device
CN109871281B (en) Data interaction method and device based on InSE security chip
CN103401879B (en) A kind of optical module and the method for ensureing optical module protocol data integrity
CN111669389A (en) Data transmission method and device of industrial control system and related equipment
CN112526949B (en) Module information setting method, acquisition method and device of industrial control system
CN110673554A (en) Data caching processing mechanism applied to industrial control system

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