WO2021258750A1 - 一种控制指令处理方法、装置、设备及计算机存储介质 - Google Patents

一种控制指令处理方法、装置、设备及计算机存储介质 Download PDF

Info

Publication number
WO2021258750A1
WO2021258750A1 PCT/CN2021/076922 CN2021076922W WO2021258750A1 WO 2021258750 A1 WO2021258750 A1 WO 2021258750A1 CN 2021076922 W CN2021076922 W CN 2021076922W WO 2021258750 A1 WO2021258750 A1 WO 2021258750A1
Authority
WO
WIPO (PCT)
Prior art keywords
control instruction
instruction
target
control system
control
Prior art date
Application number
PCT/CN2021/076922
Other languages
English (en)
French (fr)
Inventor
刘涛
Original Assignee
广东浪潮智慧计算技术有限公司
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 广东浪潮智慧计算技术有限公司 filed Critical 广东浪潮智慧计算技术有限公司
Priority to US17/928,164 priority Critical patent/US20230205870A1/en
Publication of WO2021258750A1 publication Critical patent/WO2021258750A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/54Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by adding security routines or objects to programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/554Detecting local intrusion or implementing counter-measures involving event detection and direct action
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Definitions

  • the present invention relates to the technical field of instruction processing, and more specifically, to a control instruction processing method, device, equipment and computer storage medium.
  • the server controller may include multiple control systems, such as embedded systems and large systems running on the server CPU, etc., and large systems and embedded systems
  • the communication method between systems is based on serial data transmission. For example, after a large system issues a control command, the embedded system receives the command and processes the task. After the task processing is completed, it returns the task execution result to the large system.
  • the large system issues a control instruction
  • the embedded system is executed, and then the next control instruction is executed, which is performed in a single instruction in chronological order. If the large system is encountered in a short time, the embedded system In a scenario where a large number of control instructions are issued, the current control method is difficult to handle, which makes the processing efficiency of the instructions slow.
  • the purpose of this application is to provide a control instruction processing method, which can solve the technical problem of how to improve the processing efficiency of the control instruction to a certain extent.
  • the application also provides a control instruction processing device, equipment, and computer-readable storage medium.
  • a control instruction processing method, applied to a first control system includes:
  • the target control instruction including a control instruction sent by a second control system that controls the first control system;
  • the control instruction in the preset queue is processed based on the control instruction processing thread.
  • the method further includes:
  • the target processing result is sent to the second control system.
  • the sending the target processing result to the second control system includes:
  • the time interval is greater than or equal to the preset instruction processing time, acquiring the target processing result, and sending the target processing result to the second control system;
  • the target processing result is acquired, and the target processing result is sent to the second control system.
  • the method before the calculating the time interval between receiving the target control instruction and receiving the query instruction, the method further includes:
  • it also includes:
  • the receiving thread Based on the control instruction, the receiving thread transmits the target query result to the second control system.
  • the judging whether the target control instruction is legal includes:
  • the type of the target control instruction is the preset instruction type, determining that the target control instruction is legal;
  • the type of the target control instruction is not the preset instruction type, it is determined that the target control instruction is illegal.
  • the judging whether the target control instruction is legal includes:
  • a control instruction processing device applied to a first control system, includes:
  • a first receiving module configured to receive a target control instruction based on a control instruction receiving thread, the target control instruction including a control instruction sent by a second control system that controls the first control system;
  • the first judging module is used to judge whether the target control instruction is legal, if the target control instruction is legal, store the target control instruction in a preset queue, and send information indicating that the target control instruction has been received to The second control system;
  • the first processing module is configured to process the control instructions in the preset queue based on the control instruction processing thread.
  • a control instruction processing device including:
  • Memory used to store computer programs
  • the processor is used to implement the steps of any one of the above control instruction processing methods when the computer program is executed.
  • a computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the control instruction processing methods described above are realized.
  • a control instruction processing method provided by the present application is applied to a first control system, and a target control instruction is received based on a control instruction receiving thread.
  • the target control instruction includes a control instruction sent by a second control system that controls the first control system; judging the target control Whether the instruction is legal or not, if the target control instruction is legal, store the target control instruction in the preset queue, and send the information indicating that the target control instruction has been received to the second control system, so that the second control system ends the sending of the target control instruction;
  • the control instruction in the preset queue is processed based on the control instruction processing thread.
  • the first control system after determining that the target control command is legal, the first control system will store the target control command in a preset queue, and send information indicating that the target control command has been received to the second control system, so that the second control system End the sending of the target control command, so that the second control system does not need to wait for the first control system to process the target control command before sending the next command, which can avoid the accumulation of control commands at the second control system and improve the second control system's sending control
  • the efficiency of instructions in addition, in this application, the threads used by the first control system to receive and process the target control instructions are different, which reduces the coupling between instruction reception and instruction processing, and can improve the first control system’s response to control instructions Efficiency: In summary, this application can improve the processing efficiency of control instructions.
  • the control instruction processing device, equipment, and computer-readable storage medium provided in this application also solve the corresponding technical problems.
  • FIG. 1 is a first flowchart of a control instruction processing method provided by an embodiment of this application
  • FIG. 2 is a schematic structural diagram of a control instruction processing device provided by an embodiment of the application.
  • FIG. 3 is a schematic structural diagram of a control instruction processing device provided by an embodiment of this application.
  • FIG. 4 is a schematic diagram of another structure of a control instruction processing device provided by an embodiment of the application.
  • FIG. 1 is a first flowchart of a control instruction processing method according to an embodiment of the application.
  • the control instruction processing method provided by the embodiment of the present application, applied to the first control system may include the following steps:
  • Step S101 Based on the control instruction receiving thread, a target control instruction is received, where the target control instruction includes a control instruction sent by a second control system that controls the first control system.
  • the first control system may first receive the target control instruction based on the control instruction receiving thread, and the target control instruction includes the control instruction sent by the second control system that controls the first control system, that is, the second control system sends the first control system to the first control system.
  • the system sends the corresponding target control instruction, and the first control system receives the target control instruction through its own control instruction receiving thread.
  • the types of the first control system, the second control system and the target control command can all be determined according to actual needs.
  • Step S102 Determine whether the target control instruction is legal, if the target control instruction is legal, then execute step S103; if the target control instruction is illegal, then execute step S105.
  • Step S103 Store the target control instruction in the preset queue, and send information indicating that the target control instruction has been received to the second control system, so that the second control system ends the sending of the target control instruction, and step S104 is executed.
  • the first control system can first determine whether the target control command is legal after receiving the target control command based on the control command receiving thread. If the target control command is legal, then continue to process the target control command, that is, store the target control command in the preset queue, and send the information that characterizes the received target control command to the second control system, so that the second control system ends the target Control the sending of commands.
  • the preset queue is equivalent to buffering the control instructions to be processed by the first control system.
  • the first control system does not need to execute the target control instructions immediately; in addition, in this application
  • the first control system will send the information indicating that the target control command has been received to the second control system, so that the second control system ends the sending of the target control command, that is, the first control system can If the target control command is not processed, the second control system is prompted to end the sending of the target control command, so that the second control system can end the sending of the target control command ahead of time, so that the second control system can continue to issue the next control command to avoid the first 2.
  • Control the accumulation of control instructions on the side of the control system.
  • the second control system needs to wait for the first control system to process the target control instruction and receive the processing result before the second control system issues the next control instruction. This will cause the accumulation of control instructions on the side of the second control system, so compared with the prior art, the present application can improve the efficiency of the second control system to send control instructions.
  • Step S104 Process the control instructions in the preset queue based on the control instruction processing thread.
  • the first control system will process the control instructions in the preset queue based on the control instruction processing thread, so as to respond to the target control instruction.
  • the first control system when the first control system processes the control instructions in the preset queue by means of the control instruction processing thread, it can process the control instructions in the preset queue according to the order in which the instructions are received, or according to the order of the instructions.
  • the degree of importance is used to process the control instructions in the preset queue; in addition, in this application, the control instruction processing thread and the control instruction receiving thread belong to two threads, which releases the coupling of the receiving and processing functions of the first control system side, The efficiency of the first control system in processing control instructions can be improved.
  • Step S105 Send information indicating that the target control command is illegal to the second control system.
  • the first control system determines that the target control command is illegal, it can send information indicating that the target control command is illegal to the second control system, so that the second control system can learn that the target control command is illegal.
  • this application is not limited here.
  • a control instruction processing method provided by the present application is applied to a first control system, and a target control instruction is received based on a control instruction receiving thread.
  • the target control instruction includes a control instruction sent by a second control system that controls the first control system; judging the target control Whether the instruction is legal or not, if the target control instruction is legal, store the target control instruction in the preset queue, and send the information indicating that the target control instruction has been received to the second control system, so that the second control system ends the sending of the target control instruction;
  • the control instruction in the preset queue is processed based on the control instruction processing thread.
  • the first control system after determining that the target control command is legal, the first control system will store the target control command in a preset queue, and send information indicating that the target control command has been received to the second control system, so that the second control system End the sending of the target control command, so that the second control system does not need to wait for the first control system to process the target control command before sending the next command, which can avoid the accumulation of control commands at the second control system and improve the second control system's sending control
  • the efficiency of instructions in addition, in this application, the threads used by the first control system to receive and process the target control instructions are different, which reduces the coupling between instruction reception and instruction processing, and can improve the first control system’s response to control instructions Efficiency: In summary, this application can improve the processing efficiency of control instructions.
  • the first control system after receiving the target control instruction, the first control system sends information indicating that the target control instruction has been received to the second control system, so that the second control system ends The target control command is sent, so the first control system did not send the target processing result of the target control command to the second control system.
  • the first control system processes the thread based on the control command to predict the target processing result. After the control instructions in the queue are processed, it can also be judged whether a processing query instruction for querying the target processing result of the target control instruction sent by the second control system is received; if the processing query instruction is received, the target processing result is sent to the first 2. Control system.
  • the first control system needs time to process each control instruction, that is, The first control system needs time to obtain the target processing result.
  • the first control system can also calculate the receiving target after sending the target processing result to the second control system.
  • the time interval between the control instruction and the receiving and processing query instruction determining whether the time interval is less than the preset instruction processing duration; if the time interval is greater than or equal to the preset instruction processing duration, obtain the target processing result, and send the target processing result to the second control system; If the time interval is less than the preset instruction processing duration, after waiting for the preset compensation duration, the target processing result is obtained, and the target processing result is sent to the second control system.
  • the preset instruction processing time can be pre-arranged by the first control system and the second control system, that is, the first control system can also communicate with the second control system before calculating the time interval between receiving the target control instruction and receiving the query instruction.
  • the system negotiates the preset instruction processing time.
  • the preset instruction processing time can also be directly set by the first control system in real time according to its own instruction processing capability.
  • the second control system may not only send a control instruction to the first control system, but also may send an instruction to query corresponding status information, such as querying voltage parameters, temperature parameters, and fan parameters.
  • the first control system receives the status query command based on the control command receiving thread, and the status query command includes the first 2.
  • the query instruction sent by the control system; the target query result corresponding to the status query instruction can be obtained based on the control instruction processing thread; the target query result is transmitted to the second control system by the receiving thread based on the control instruction.
  • the first control system can determine whether the instruction is legal according to the type of the instruction , That is, in the process of judging whether the target control instruction is legal, the first control system can determine whether the type of the target control instruction is the preset instruction type; if the type of the target control instruction is the preset instruction type, then it is determined that the target control instruction is legal ; If the type of the target control instruction is not the preset instruction type, it is determined that the target control instruction is illegal.
  • the first control system can use the length of the instruction to determine whether the instruction is legal, that is, when the first control system judges whether the target control instruction is legal, it still It can judge whether the length of the target control command meets the preset length rule; if the length of the target control command meets the preset length rule, then the target control command is judged to be legal; if the length of the target control command does not meet the preset length rule, then the target control is judged The instruction is illegal.
  • FIG. 2 is a schematic structural diagram of a control instruction processing device provided by an embodiment of the application.
  • a control instruction processing device provided by an embodiment of the present application, applied to a first control system may include:
  • the first receiving module 101 is configured to receive a target control instruction based on a control instruction receiving thread, where the target control instruction includes a control instruction sent by a second control system that controls the first control system;
  • the first judgment module 102 is used for judging whether the target control instruction is legal, if the target control instruction is legal, the target control instruction is stored in a preset queue, and the information indicating that the target control instruction has been received is sent to the second control system;
  • the first processing module 103 is configured to process the control instructions in the preset queue based on the control instruction processing thread.
  • the control instruction processing device provided by the embodiment of the present application, applied to the first control system, may further include:
  • the second judgment module is used for the first processing module to judge whether the processing query instruction for querying the target processing result of the target control instruction sent by the second control system is received after processing the control instruction in the preset queue based on the control instruction processing thread ; If the processing query instruction is received, the target processing result is sent to the second control system.
  • control instruction processing device provided by the embodiment of the present application is applied to the first control system, and the second judgment module may include:
  • the first calculation unit is used to calculate the time interval between receiving the target control instruction and receiving the processing query instruction
  • the first judging unit is used to judge whether the time interval is less than the preset instruction processing time; if the time interval is greater than or equal to the preset instruction processing time, obtain the target processing result and send the target processing result to the second control system; if the time interval is less than If the instruction processing time is preset, after waiting for the preset compensation time, the target processing result is obtained, and the target processing result is sent to the second control system.
  • the control instruction processing device provided by the embodiment of the present application, applied to the first control system, may further include:
  • the first negotiation unit is configured to negotiate with the second control system for a preset instruction processing time before the first calculation unit calculates the time interval between receiving the target control instruction and receiving the query instruction.
  • a control instruction processing device provided by an embodiment of the present application, applied to a first control system, may further include:
  • the second receiving module is configured to receive the status query instruction based on the control instruction receiving thread, the status query instruction including the query instruction sent by the second control system;
  • the first query module is configured to obtain the target query result corresponding to the status query command based on the control command processing thread;
  • the first sending module is used for transmitting the target query result to the second control system based on the control instruction receiving thread.
  • a control instruction processing device provided by an embodiment of the present application is applied to a first control system, and the first judgment module may include:
  • the second judgment unit is used to judge whether the type of the target control instruction is the preset instruction type; if the type of the target control instruction is the preset instruction type, then it is judged that the target control instruction is legal; if the type of the target control instruction is not the preset instruction type , It is determined that the target control instruction is illegal.
  • a control instruction processing device provided by an embodiment of the present application is applied to a first control system, and the first judgment module may include:
  • the third judgment unit is used to judge whether the length of the target control command meets the preset length rule; if the length of the target control command meets the preset length rule, then it is judged that the target control command is legal; if the length of the target control command does not meet the preset length Rule, it is determined that the target control instruction is illegal.
  • the present application also provides a control instruction processing device and a computer-readable storage medium, both of which have the corresponding effects of the control instruction processing method provided in the embodiments of the present application.
  • FIG. 3 is a schematic structural diagram of a control instruction processing device provided by an embodiment of the application.
  • a control instruction processing device provided by an embodiment of the present application is applied to a first control system and includes a memory 201 and a processor 202.
  • the memory 201 stores a computer program.
  • the processor 202 executes the computer program, the following steps are implemented:
  • the target control instruction includes the control instruction sent by the second control system that controls the first control system
  • the control instruction in the preset queue is processed based on the control instruction processing thread.
  • a control instruction processing device provided by an embodiment of the present application is applied to a first control system and includes a memory 201 and a processor 202.
  • the memory 201 stores a computer program.
  • the processor 202 executes the computer program, the following steps are implemented: After the processing thread processes the control instructions in the preset queue, it determines whether the processing query instruction sent by the second control system to query the target processing result of the target control instruction is received; if the processing query instruction is received, the target processing result is sent To the second control system.
  • a control instruction processing device provided by an embodiment of the present application is applied to a first control system and includes a memory 201 and a processor 202.
  • the memory 201 stores a computer program.
  • the processor 202 executes the computer program, the following steps are implemented: Calculate the receiving target The time interval between the control instruction and the receiving and processing query instruction; determining whether the time interval is less than the preset instruction processing duration; if the time interval is greater than or equal to the preset instruction processing duration, obtain the target processing result, and send the target processing result to the second control system; If the time interval is less than the preset instruction processing duration, after waiting for the preset compensation duration, the target processing result is obtained, and the target processing result is sent to the second control system.
  • a control instruction processing device provided by an embodiment of the present application is applied to a first control system and includes a memory 201 and a processor 202.
  • the memory 201 stores a computer program.
  • the processor 202 executes the computer program, the following steps are implemented: Calculate the receiving target Before the time interval between the control command and the receiving of the query command, the preset command processing time is negotiated with the second control system.
  • a control instruction processing device provided by an embodiment of the present application is applied to a first control system and includes a memory 201 and a processor 202.
  • the memory 201 stores a computer program.
  • the processor 202 executes the computer program, the following steps are implemented: The receiving thread receives the status query instruction, the status query instruction includes the query instruction sent by the second control system; the processing thread based on the control instruction obtains the target query result corresponding to the status query instruction; the receiving thread based on the control instruction transmits the target query result to the second control system .
  • a control instruction processing device provided by an embodiment of the present application is applied to a first control system and includes a memory 201 and a processor 202.
  • the memory 201 stores a computer program.
  • the processor 202 executes the computer program, the following steps are implemented: Determine target control Whether the type of the instruction is a preset instruction type; if the type of the target control instruction is a preset instruction type, it is determined that the target control instruction is legal; if the type of the target control instruction is not a preset instruction type, it is determined that the target control instruction is illegal.
  • a control instruction processing device provided by an embodiment of the present application is applied to a first control system and includes a memory 201 and a processor 202.
  • the memory 201 stores a computer program.
  • the processor 202 executes the computer program, the following steps are implemented: Determine target control Whether the length of the command meets the preset length rule; if the length of the target control command meets the preset length rule, the target control command is determined to be legal; if the length of the target control command does not meet the preset length rule, then the target control command is determined to be illegal.
  • another control instruction processing device may further include: an input port 203 connected to the processor 202, used to transmit commands input from the outside to the processor 202; connected to the processor 202
  • the display unit 204 is used to display the processing result of the processor 202 to the outside;
  • the communication module 205 connected to the processor 202 is used to implement the communication between the control instruction processing device and the outside.
  • the display unit 204 may be a display panel, a laser scanning display, etc.; the communication method adopted by the communication module 205 includes but is not limited to mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), Wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, communication technology based on IEEE802.11s.
  • HML mobile high-definition link technology
  • USB universal serial bus
  • HDMI high-definition multimedia interface
  • WiFi wireless fidelity technology
  • Bluetooth communication technology low-power Bluetooth communication technology
  • communication technology based on IEEE802.11s IEEE802.11s.
  • a computer-readable storage medium provided by an embodiment of the present application is applied to a first control system, and a computer program is stored in the computer-readable storage medium.
  • the computer program is executed by a processor, the following steps are implemented:
  • the target control instruction includes the control instruction sent by the second control system that controls the first control system
  • the control instruction in the preset queue is processed based on the control instruction processing thread.
  • the computer-readable storage medium provided by the embodiment of the present application is applied to the first control system.
  • the computer-readable storage medium stores a computer program.
  • the following steps are implemented: After the control command in the queue is processed, it is judged whether the processing query instruction sent by the second control system to query the target processing result of the target control instruction is received; if the processing query instruction is received, the target processing result is sent to the second control system.
  • the computer-readable storage medium provided by the embodiments of the present application is applied to the first control system.
  • the computer-readable storage medium stores a computer program.
  • the following steps are implemented: The time interval for processing query instructions; determine whether the time interval is less than the preset instruction processing time; if the time interval is greater than or equal to the preset instruction processing time, obtain the target processing result, and send the target processing result to the second control system; if the time interval is less than If the instruction processing time is preset, after waiting for the preset compensation time, the target processing result is obtained, and the target processing result is sent to the second control system.
  • the computer-readable storage medium provided by the embodiments of the present application is applied to the first control system.
  • the computer-readable storage medium stores a computer program.
  • the computer program When the computer program is executed by a processor, the following steps are implemented: Before querying the time interval of the command, negotiate with the second control system for the preset command processing time.
  • the computer-readable storage medium provided by the embodiment of the present application is applied to the first control system, and a computer program is stored in the computer-readable storage medium.
  • the computer program is executed by a processor, the following steps are implemented: receiving a thread receiving state based on a control instruction
  • the query instruction, the status query instruction includes the query instruction sent by the second control system; the processing thread based on the control instruction obtains the target query result corresponding to the status query instruction; the receiving thread based on the control instruction transmits the target query result to the second control system.
  • the computer-readable storage medium provided by the embodiment of the present application is applied to the first control system.
  • the computer-readable storage medium stores a computer program.
  • the following steps are implemented: determine whether the type of the target control instruction is It is a preset instruction type; if the type of the target control instruction is a preset instruction type, it is determined that the target control instruction is legal; if the type of the target control instruction is not a preset instruction type, it is determined that the target control instruction is illegal.
  • the computer-readable storage medium provided by the embodiment of the present application is applied to the first control system.
  • a computer program is stored in the computer-readable storage medium.
  • the following steps are implemented: determine whether the length of the target control instruction is Comply with the preset length rule; if the length of the target control command meets the preset length rule, then the target control command is determined to be legal; if the length of the target control command does not meet the preset length rule, then the target control command is determined to be illegal.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically programmable ROM
  • EEPly erasable programmable ROM registers
  • hard disks hard disks
  • removable disks or CD-ROMs , Or any other form of storage medium known in the technical field.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer And Data Communications (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

一种控制指令处理方法、装置、设备及计算机存储介质,应用于第一控制系统,所述方法包括:基于控制指令接收线程接收目标控制指令,目标控制指令包括控制第一控制系统的第二控制系统发送的控制指令(S101);判断目标控制指令是否合法(S102),若目标控制指令合法,则将目标控制指令存储至预设队列中,发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的发送(S103);基于控制指令处理线程对预设队列中的控制指令进行处理(S104)。第二控制系统无需等第一控制系统处理完目标控制指令之后才发送下一个指令,能够提高第二控制系统发送控制指令的效率;可以提高第一控制系统响应控制指令的效率;也即可以提高控制指令的处理效率。

Description

一种控制指令处理方法、装置、设备及计算机存储介质
本申请要求于2020年6月24日提交中国专利局、申请号为202010589326.8、发明名称为“一种控制指令处理方法、装置、设备及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及指令处理技术领域,更具体地说,涉及一种控制指令处理方法、装置、设备及计算机存储介质。
背景技术
当前在服务器的应用过程中,为了满足多样化的控制需求,服务器的控制器中可能包含多个控制系统,比如可能包含嵌入式系统及服务器CPU上运行的大系统等,且大系统与嵌入式系统间的通信方式是基于串口数据传输的,比如大系统下发一条控制指令后,嵌入式系统收到此命令,进行任务处理,待其任务处理完成后,向其大系统返回任务执行结果。
然而现有的控制方法中,大系统下发一条控制指令,嵌入式系统执行完成,再执行下一条控制指令,其按时间顺序单条指令进行,如果遇到大系统短时间内,向嵌入式系统下发大量的控制指令的场景,目前的控制方法就难以胜任,使得指令的处理效率较慢。
综上所述,如何提高控制指令的处理效率是目前本领域技术人员亟待解决的问题。
发明内容
本申请的目的是提供一种控制指令处理方法,其能在一定程度上解决如何提高控制指令的处理效率的技术问题。本申请还提供了一种控制指令处理装置、设备及计算机可读存储介质。
为了实现上述目的,本申请提供如下技术方案:
一种控制指令处理方法,应用于第一控制系统,包括:
基于控制指令接收线程接收目标控制指令,所述目标控制指令包括控制所述第一控制系统的第二控制系统发送的控制指令;
判断所述目标控制指令是否合法,若所述目标控制指令合法,则将所述目标控制指令存储至预设队列中,发送表征所述目标控制指令已接收的信息至所述第二控制系统,以使所述第二控制系统结束所述目标控制指令的发送;
基于控制指令处理线程对所述预设队列中的控制指令进行处理。
优选的,所述基于控制指令处理线程对所述预设队列中的控制指令进行处理之后,还包括:
判断是否接收到所述第二控制系统发送的查询所述目标控制指令的目标处理结果的处理查询指令;
若接收到所述处理查询指令,则将所述目标处理结果发送至所述第二控制系统。
优选的,所述将所述目标处理结果发送至所述第二控制系统,包括:
计算接收所述目标控制指令与接收所述处理查询指令的时间间隔;
判断所述时间间隔是否小于预设指令处理时长;
若所述时间间隔大于等于所述预设指令处理时长,则获取所述目标处理结果,并发送所述目标处理结果至所述第二控制系统;
若所述时间间隔小于所述预设指令处理时长,则等待预设补偿时长后,获取所述目标处理结果,并发送所述目标处理结果至所述第二控制系统。
优选的,所述计算接收所述目标控制指令与接收所述查询指令的时间间隔之前,还包括:
与所述第二控制系统协商所述预设指令处理时长。
优选的,还包括:
基于所述控制指令接收线程接收状态查询指令,所述状态查询指令包括所述第二控制系统发送的查询指令;
基于所述控制指令处理线程获取与所述状态查询指令对应的目标查询结果;
基于所述控制指令接收线程传输所述目标查询结果至所述第二控制系 统。
优选的,所述判断所述目标控制指令是否合法,包括:
判断所述目标控制指令的类型是否为预设指令类型;
若所述目标控制指令的类型为所述预设指令类型,则判定所述目标控制指令合法;
若所述目标控制指令的类型并非所述预设指令类型,则判定所述目标控制指令不合法。
优选的,所述判断所述目标控制指令是否合法,包括:
判断所述目标控制指令的长度是否符合预设长度规则;
若所述目标控制指令的长度符合所述预设长度规则,则判定所述目标控制指令合法;
若所述目标控制指令的长度不符合所述预设长度规则,则判定所述目标控制指令不合法。
一种控制指令处理装置,应用于第一控制系统,包括:
第一接收模块,用于基于控制指令接收线程接收目标控制指令,所述目标控制指令包括控制所述第一控制系统的第二控制系统发送的控制指令;
第一判断模块,用于判断所述目标控制指令是否合法,若所述目标控制指令合法,则将所述目标控制指令存储至预设队列中,发送表征所述目标控制指令已接收的信息至所述第二控制系统;
第一处理模块,用于基于控制指令处理线程对所述预设队列中的控制指令进行处理。
一种控制指令处理设备,包括:
存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如上任一所述控制指令处理方法的步骤。
一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述控制指令处理方法的步骤。
本申请提供的一种控制指令处理方法,应用于第一控制系统,基于控制指令接收线程接收目标控制指令,目标控制指令包括控制第一控制系统的第二控制系统发送的控制指令;判断目标控制指令是否合法,若目标控制指令合法,则将目标控制指令存储至预设队列中,发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的发送;基于控制指令处理线程对预设队列中的控制指令进行处理。本申请中,第一控制系统在判定目标控制指令合法之后,会将目标控制指令存储至预设队列中,并发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的发送,从而使得第二控制系统无需等第一控制系统处理完目标控制指令之后才发送下一个指令,能够避免第二控制系统处控制指令的堆积,提高第二控制系统发送控制指令的效率;此外,本申请中,第一控制系统接收目标控制指令及处理目标控制指令所应用的线程不同,降低了指令接收与指令处理的耦合度,可以提高第一控制系统响应控制指令的效率;综上,本申请可以提高控制指令的处理效率。本申请提供的一种控制指令处理装置、设备及计算机可读存储介质也解决了相应技术问题。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请实施例提供的一种控制指令处理方法的第一流程图;
图2为本申请实施例提供的一种控制指令处理装置的结构示意图;
图3为本申请实施例提供的一种控制指令处理设备的结构示意图;
图4为本申请实施例提供的一种控制指令处理设备的另一结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,图1为本申请实施例提供的一种控制指令处理方法的第一流程图。
本申请实施例提供的一种控制指令处理方法,应用于第一控制系统,可以包括以下步骤:
步骤S101:基于控制指令接收线程接收目标控制指令,目标控制指令包括控制第一控制系统的第二控制系统发送的控制指令。
实际应用中,第一控制系统可以先基于控制指令接收线程接收目标控制指令,且目标控制指令包括控制第一控制系统的第二控制系统发送的控制指令,也即第二控制系统向第一控制系统发送相应的目标控制指令,且第一控制系统通过自身的控制指令接收线程接收目标控制指令。
应当指出,第一控制系统、第二控制系统及目标控制指令的类型均可以根据实际需要确定。
步骤S102:判断目标控制指令是否合法,若目标控制指令合法,则执行步骤S103;若目标控制指令不合法,则执行步骤S105。
步骤S103:将目标控制指令存储至预设队列中,发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的发送,执行步骤S104。
实际应用中,为了避免第二控制系统下发的控制指令威胁第一控制系统等的安全,第一控制系统基于控制指令接收线程接收到目标控制指令之后,可以先判断目标控制指令是否合法,若目标控制指令合法,则再继续对目标控制指令进行处理,也即将目标控制指令存储至预设队列中,发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的发送。
应当指出,由于预设队列中存储有目标控制指令,所以预设队列相当 于缓存第一控制系统待处理的控制指令,这样,不需要第一控制系统立马执行目标控制指令;此外,本申请中,第一控制系统在接收到目标控制指令之后,会发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的发送,也即第一控制系统可以在不处理目标控制指令的情况下,提示第二控制系统结束目标控制指令的发送,使得第二控制系统可以提前结束目标控制指令的发送,以便第二控制系统继续下发下个控制指令,避免第二控制系统侧控制指令的堆积,而现有技术中,第二控制系统需等待第一控制系统处理完目标控制指令且接收到处理结果之后,第二控制系统才会下发下个控制指令,会使得第二控制系统侧的控制指令堆积,所以与现有技术相比,本申请可以提高第二控制系统发送控制指令的效率。
步骤S104:基于控制指令处理线程对预设队列中的控制指令进行处理。
实际应用中,第一控制系统会基于控制指令处理线程对预设队列中的控制指令进行处理,以便响应目标控制指令。
应当指出,具体应用场景中,第一控制系统借助控制指令处理线程处理预设队列中的控制指令时,可以按照指令接收的先后顺序对预设队列中的控制指令进行处理,也可以按照指令的重要程度来对预设队列中的控制指令进行处理等;此外,本申请中,控制指令处理线程与控制指令接收线程分属于两个线程,解除了第一控制系统侧接收和处理功能的耦合,可以提高第一控制系统处理控制指令的效率。
步骤S105:发送表征目标控制指令不合法的信息至第二控制系统。
实际应用中,第一控制系统判定目标控制指令不合法后,可以发送表征目标控制指令不合法的信息至第二控制系统,以使第二控制系统获知目标控制指令不合法,当然,也可以有其他操作方式,本申请在此不做限定。
本申请提供的一种控制指令处理方法,应用于第一控制系统,基于控制指令接收线程接收目标控制指令,目标控制指令包括控制第一控制系统的第二控制系统发送的控制指令;判断目标控制指令是否合法,若目标控制指令合法,则将目标控制指令存储至预设队列中,发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的 发送;基于控制指令处理线程对预设队列中的控制指令进行处理。本申请中,第一控制系统在判定目标控制指令合法之后,会将目标控制指令存储至预设队列中,并发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的发送,从而使得第二控制系统无需等第一控制系统处理完目标控制指令之后才发送下一个指令,能够避免第二控制系统处控制指令的堆积,提高第二控制系统发送控制指令的效率;此外,本申请中,第一控制系统接收目标控制指令及处理目标控制指令所应用的线程不同,降低了指令接收与指令处理的耦合度,可以提高第一控制系统响应控制指令的效率;综上,本申请可以提高控制指令的处理效率。
本申请实施例提供的一种控制指令处理方法中,由于第一控制系统在接收到目标控制指令之后,便发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的发送,所以第一控制系统并未将目标控制指令的目标处理结果发送给第二控制系统,为了便于第二控制系统获知目标处理结果,第一控制系统基于控制指令处理线程对预设队列中的控制指令进行处理之后,还可以判断是否接收到第二控制系统发送的查询目标控制指令的目标处理结果的处理查询指令;若接收到处理查询指令,则将目标处理结果发送至第二控制系统。
实际应用中,由于控制指令被存储在预设队列中,所以随着时间的进行,预设队列中可能保存有多个控制指令,那么第一控制系统便需要时间来处理各个控制指令,也即第一控制系统需要时间来得到目标处理结果,为了保证第一控制系统能够向第二控制系统反馈目标处理结果,第一控制系统将目标处理结果发送至第二控制系统之后,还可以计算接收目标控制指令与接收处理查询指令的时间间隔;判断时间间隔是否小于预设指令处理时长;若时间间隔大于等于预设指令处理时长,则获取目标处理结果,并发送目标处理结果至第二控制系统;若时间间隔小于预设指令处理时长,则等待预设补偿时长后,获取目标处理结果,并发送目标处理结果至第二控制系统。
应当指出,预设指令处理时长可以预先由第一控制系统和第二控制系 统约定好,也即第一控制系统在计算接收目标控制指令与接收查询指令的时间间隔之前,还可以与第二控制系统协商预设指令处理时长。当然,预设指令处理时长还可以直接由第一控制系统根据自身的指令处理能力实时设定等。
本申请实施例提供的一种控制指令处理方法中,第二控制系统除了向第一控制系统发送控制指令之外,还可能发送查询相应状态信息的指令,比如查询电压参数、温度参数、风扇参数等状态信息的参数,为了满足第二控制系统的查询需求,又避免状态查询需求与控制指令处理需求相冲突,第一控制系统在基于控制指令接收线程接收状态查询指令后,状态查询指令包括第二控制系统发送的查询指令;可以基于控制指令处理线程获取与状态查询指令对应的目标查询结果;基于控制指令接收线程传输目标查询结果至第二控制系统。
本申请实施例提供的一种控制指令处理方法中,由于第一控制系统与第二控制系统间的控制指令的类型能够事先确定出来,所以第一控制系统可以根据指令的类型来判断指令是否合法,也即第一控制系统在判断目标控制指令是否合法的过程中,可以判断目标控制指令的类型是否为预设指令类型;若目标控制指令的类型为预设指令类型,则判定目标控制指令合法;若目标控制指令的类型并非预设指令类型,则判定目标控制指令不合法。
实际应用中,由于每类指令的长度都有一定的规律,所以第一控制系统可以借助指令的长度来判断指令是否合法,也即第一控制系统在判断目标控制指令是否合法的过程中,还可以判断目标控制指令的长度是否符合预设长度规则;若目标控制指令的长度符合预设长度规则,则判定目标控制指令合法;若目标控制指令的长度不符合预设长度规则,则判定目标控制指令不合法。
请参阅图2,图2为本申请实施例提供的一种控制指令处理装置的结构 示意图。
本申请实施例提供的一种控制指令处理装置,应用于第一控制系统,可以包括:
第一接收模块101,用于基于控制指令接收线程接收目标控制指令,目标控制指令包括控制第一控制系统的第二控制系统发送的控制指令;
第一判断模块102,用于判断目标控制指令是否合法,若目标控制指令合法,则将目标控制指令存储至预设队列中,发送表征目标控制指令已接收的信息至第二控制系统;
第一处理模块103,用于基于控制指令处理线程对预设队列中的控制指令进行处理。
本申请实施例提供的一种控制指令处理装置,应用于第一控制系统,还可以包括:
第二判断模块,用于第一处理模块基于控制指令处理线程对预设队列中的控制指令进行处理之后,判断是否接收到第二控制系统发送的查询目标控制指令的目标处理结果的处理查询指令;若接收到处理查询指令,则将目标处理结果发送至第二控制系统。
本申请实施例提供的一种控制指令处理装置,应用于第一控制系统,第二判断模块可以包括:
第一计算单元,用于计算接收目标控制指令与接收处理查询指令的时间间隔;
第一判断单元,用于判断时间间隔是否小于预设指令处理时长;若时间间隔大于等于预设指令处理时长,则获取目标处理结果,并发送目标处理结果至第二控制系统;若时间间隔小于预设指令处理时长,则等待预设补偿时长后,获取目标处理结果,并发送目标处理结果至第二控制系统。
本申请实施例提供的一种控制指令处理装置,应用于第一控制系统,还可以包括:
第一协商单元,用于第一计算单元计算接收目标控制指令与接收查询指令的时间间隔之前,与第二控制系统协商预设指令处理时长。
本申请实施例提供的一种控制指令处理装置,应用于第一控制系统, 还可以包括:
第二接收模块,用于基于控制指令接收线程接收状态查询指令,状态查询指令包括第二控制系统发送的查询指令;
第一查询模块,用于基于控制指令处理线程获取与状态查询指令对应的目标查询结果;
第一发送模块,用于基于控制指令接收线程传输目标查询结果至第二控制系统。
本申请实施例提供的一种控制指令处理装置,应用于第一控制系统,第一判断模块可以包括:
第二判断单元,用于判断目标控制指令的类型是否为预设指令类型;若目标控制指令的类型为预设指令类型,则判定目标控制指令合法;若目标控制指令的类型并非预设指令类型,则判定目标控制指令不合法。
本申请实施例提供的一种控制指令处理装置,应用于第一控制系统,第一判断模块可以包括:
第三判断单元,用于判断目标控制指令的长度是否符合预设长度规则;若目标控制指令的长度符合预设长度规则,则判定目标控制指令合法;若目标控制指令的长度不符合预设长度规则,则判定目标控制指令不合法。
本申请还提供了一种控制指令处理设备及计算机可读存储介质,其均具有本申请实施例提供的一种控制指令处理方法具有的对应效果。请参阅图3,图3为本申请实施例提供的一种控制指令处理设备的结构示意图。
本申请实施例提供的一种控制指令处理设备,应用于第一控制系统,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:
基于控制指令接收线程接收目标控制指令,目标控制指令包括控制第一控制系统的第二控制系统发送的控制指令;
判断目标控制指令是否合法,若目标控制指令合法,则将目标控制指令存储至预设队列中,发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的发送;
基于控制指令处理线程对预设队列中的控制指令进行处理。
本申请实施例提供的一种控制指令处理设备,应用于第一控制系统,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:基于控制指令处理线程对预设队列中的控制指令进行处理之后,判断是否接收到第二控制系统发送的查询目标控制指令的目标处理结果的处理查询指令;若接收到处理查询指令,则将目标处理结果发送至第二控制系统。
本申请实施例提供的一种控制指令处理设备,应用于第一控制系统,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:计算接收目标控制指令与接收处理查询指令的时间间隔;判断时间间隔是否小于预设指令处理时长;若时间间隔大于等于预设指令处理时长,则获取目标处理结果,并发送目标处理结果至第二控制系统;若时间间隔小于预设指令处理时长,则等待预设补偿时长后,获取目标处理结果,并发送目标处理结果至第二控制系统。
本申请实施例提供的一种控制指令处理设备,应用于第一控制系统,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:计算接收目标控制指令与接收查询指令的时间间隔之前,与第二控制系统协商预设指令处理时长。
本申请实施例提供的一种控制指令处理设备,应用于第一控制系统,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:基于控制指令接收线程接收状态查询指令,状态查询指令包括第二控制系统发送的查询指令;基于控制指令处理线程获取与状态查询指令对应的目标查询结果;基于控制指令接收线程传输目标查询结果至第二控制系统。
本申请实施例提供的一种控制指令处理设备,应用于第一控制系统,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:判断目标控制指令的类型是否为预设指令类型;若目标控制指令的类型为预设指令类型,则判定目标控制指令合法;若目标控制指令的类型并非预设指令类型,则判定目标控制指令不合 法。
本申请实施例提供的一种控制指令处理设备,应用于第一控制系统,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:判断目标控制指令的长度是否符合预设长度规则;若目标控制指令的长度符合预设长度规则,则判定目标控制指令合法;若目标控制指令的长度不符合预设长度规则,则判定目标控制指令不合法。
请参阅图4,本申请实施例提供的另一种控制指令处理设备中还可以包括:与处理器202连接的输入端口203,用于传输外界输入的命令至处理器202;与处理器202连接的显示单元204,用于显示处理器202的处理结果至外界;与处理器202连接的通信模块205,用于实现控制指令处理设备与外界的通信。显示单元204可以为显示面板、激光扫描使显示器等;通信模块205所采用的通信方式包括但不局限于移动高清链接技术(HML)、通用串行总线(USB)、高清多媒体接口(HDMI)、无线连接:无线保真技术(WiFi)、蓝牙通信技术、低功耗蓝牙通信技术、基于IEEE802.11s的通信技术。
本申请实施例提供的一种计算机可读存储介质,应用于第一控制系统,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:
基于控制指令接收线程接收目标控制指令,目标控制指令包括控制第一控制系统的第二控制系统发送的控制指令;
判断目标控制指令是否合法,若目标控制指令合法,则将目标控制指令存储至预设队列中,发送表征目标控制指令已接收的信息至第二控制系统,以使第二控制系统结束目标控制指令的发送;
基于控制指令处理线程对预设队列中的控制指令进行处理。
本申请实施例提供的一种计算机可读存储介质,应用于第一控制系统,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:基于控制指令处理线程对预设队列中的控制指令进行处理之 后,判断是否接收到第二控制系统发送的查询目标控制指令的目标处理结果的处理查询指令;若接收到处理查询指令,则将目标处理结果发送至第二控制系统。
本申请实施例提供的一种计算机可读存储介质,应用于第一控制系统,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:计算接收目标控制指令与接收处理查询指令的时间间隔;判断时间间隔是否小于预设指令处理时长;若时间间隔大于等于预设指令处理时长,则获取目标处理结果,并发送目标处理结果至第二控制系统;若时间间隔小于预设指令处理时长,则等待预设补偿时长后,获取目标处理结果,并发送目标处理结果至第二控制系统。
本申请实施例提供的一种计算机可读存储介质,应用于第一控制系统,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:计算接收目标控制指令与接收查询指令的时间间隔之前,与第二控制系统协商预设指令处理时长。
本申请实施例提供的一种计算机可读存储介质,应用于第一控制系统,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:基于控制指令接收线程接收状态查询指令,状态查询指令包括第二控制系统发送的查询指令;基于控制指令处理线程获取与状态查询指令对应的目标查询结果;基于控制指令接收线程传输目标查询结果至第二控制系统。
本申请实施例提供的一种计算机可读存储介质,应用于第一控制系统,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:判断目标控制指令的类型是否为预设指令类型;若目标控制指令的类型为预设指令类型,则判定目标控制指令合法;若目标控制指令的类型并非预设指令类型,则判定目标控制指令不合法。
本申请实施例提供的一种计算机可读存储介质,应用于第一控制系统,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:判断目标控制指令的长度是否符合预设长度规则;若目标控制指令的长度符合预设长度规则,则判定目标控制指令合法;若目标控制 指令的长度不符合预设长度规则,则判定目标控制指令不合法。
本申请所涉及的计算机可读存储介质包括随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。
本申请实施例提供的控制指令处理装置、设备及计算机可读存储介质中相关部分的说明请参见本申请实施例提供的控制指令处理方法中对应部分的详细说明,在此不再赘述。另外,本申请实施例提供的上述技术方案中与现有技术中对应技术方案实现原理一致的部分并未详细说明,以免过多赘述。
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (10)

  1. 一种控制指令处理方法,其特征在于,应用于第一控制系统,包括:
    基于控制指令接收线程接收目标控制指令,所述目标控制指令包括控制所述第一控制系统的第二控制系统发送的控制指令;
    判断所述目标控制指令是否合法,若所述目标控制指令合法,则将所述目标控制指令存储至预设队列中,发送表征所述目标控制指令已接收的信息至所述第二控制系统,以使所述第二控制系统结束所述目标控制指令的发送;
    基于控制指令处理线程对所述预设队列中的控制指令进行处理。
  2. 根据权利要求1所述的方法,其特征在于,所述基于控制指令处理线程对所述预设队列中的控制指令进行处理之后,还包括:
    判断是否接收到所述第二控制系统发送的查询所述目标控制指令的目标处理结果的处理查询指令;
    若接收到所述处理查询指令,则将所述目标处理结果发送至所述第二控制系统。
  3. 根据权利要求2所述的方法,其特征在于,所述将所述目标处理结果发送至所述第二控制系统,包括:
    计算接收所述目标控制指令与接收所述处理查询指令的时间间隔;
    判断所述时间间隔是否小于预设指令处理时长;
    若所述时间间隔大于等于所述预设指令处理时长,则获取所述目标处理结果,并发送所述目标处理结果至所述第二控制系统;
    若所述时间间隔小于所述预设指令处理时长,则等待预设补偿时长后,获取所述目标处理结果,并发送所述目标处理结果至所述第二控制系统。
  4. 根据权利要求3所述的方法,其特征在于,所述计算接收所述目标控制指令与接收所述查询指令的时间间隔之前,还包括:
    与所述第二控制系统协商所述预设指令处理时长。
  5. 根据权利要求1至4任一项所述的方法,其特征在于,还包括:
    基于所述控制指令接收线程接收状态查询指令,所述状态查询指令包括所述第二控制系统发送的查询指令;
    基于所述控制指令处理线程获取与所述状态查询指令对应的目标查询结果;
    基于所述控制指令接收线程传输所述目标查询结果至所述第二控制系统。
  6. 根据权利要求5所述的方法,其特征在于,所述判断所述目标控制指令是否合法,包括:
    判断所述目标控制指令的类型是否为预设指令类型;
    若所述目标控制指令的类型为所述预设指令类型,则判定所述目标控制指令合法;
    若所述目标控制指令的类型并非所述预设指令类型,则判定所述目标控制指令不合法。
  7. 根据权利要求5所述的方法,其特征在于,所述判断所述目标控制指令是否合法,包括:
    判断所述目标控制指令的长度是否符合预设长度规则;
    若所述目标控制指令的长度符合所述预设长度规则,则判定所述目标控制指令合法;
    若所述目标控制指令的长度不符合所述预设长度规则,则判定所述目标控制指令不合法。
  8. 一种控制指令处理装置,其特征在于,应用于第一控制系统,包括:
    第一接收模块,用于基于控制指令接收线程接收目标控制指令,所述目标控制指令包括控制所述第一控制系统的第二控制系统发送的控制指令;
    第一判断模块,用于判断所述目标控制指令是否合法,若所述目标控制指令合法,则将所述目标控制指令存储至预设队列中,发送表征所述目标控制指令已接收的信息至所述第二控制系统;
    第一处理模块,用于基于控制指令处理线程对所述预设队列中的控制指令进行处理。
  9. 一种控制指令处理设备,其特征在于,包括:
    存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序时实现如权利要求1至7任一项所述控制指令处理方法的步骤。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述控制指令处理方法的步骤。
PCT/CN2021/076922 2020-06-24 2021-02-19 一种控制指令处理方法、装置、设备及计算机存储介质 WO2021258750A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/928,164 US20230205870A1 (en) 2020-06-24 2021-02-19 Control instruction processing method, apparatus and device, and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010589326.8A CN111737030A (zh) 2020-06-24 2020-06-24 一种控制指令处理方法、装置、设备及计算机存储介质
CN202010589326.8 2020-06-24

Publications (1)

Publication Number Publication Date
WO2021258750A1 true WO2021258750A1 (zh) 2021-12-30

Family

ID=72650992

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/076922 WO2021258750A1 (zh) 2020-06-24 2021-02-19 一种控制指令处理方法、装置、设备及计算机存储介质

Country Status (3)

Country Link
US (1) US20230205870A1 (zh)
CN (1) CN111737030A (zh)
WO (1) WO2021258750A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115306590A (zh) * 2022-08-11 2022-11-08 江苏深蓝航天有限公司 一种发动机核心控制终端、点火方法和可读存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737030A (zh) * 2020-06-24 2020-10-02 广东浪潮大数据研究有限公司 一种控制指令处理方法、装置、设备及计算机存储介质
CN115033178A (zh) * 2022-06-21 2022-09-09 南京扬贺扬微电子科技有限公司 闪存集中控制方法、装置、控制芯片及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090271789A1 (en) * 2008-04-28 2009-10-29 Babich Alan F Method, apparatus and article of manufacture for timeout waits on locks
CN104679596A (zh) * 2013-12-02 2015-06-03 航天信息股份有限公司 一种提高服务器端并发性能的消息处理方法及其系统
CN105634984A (zh) * 2015-12-29 2016-06-01 重庆安碧捷科技股份有限公司 基于tcp协议多线程的多对多医疗数据传输方法
CN107370667A (zh) * 2017-07-31 2017-11-21 北京北信源软件股份有限公司 多线程并行处理方法和装置、可读介质和存储控制器
CN108647104A (zh) * 2018-05-15 2018-10-12 北京五八信息技术有限公司 请求处理方法、服务器及计算机可读存储介质
CN110187985A (zh) * 2019-05-30 2019-08-30 苏州浪潮智能科技有限公司 一种通信方法、系统及装置
CN111737030A (zh) * 2020-06-24 2020-10-02 广东浪潮大数据研究有限公司 一种控制指令处理方法、装置、设备及计算机存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004030312A (ja) * 2002-06-26 2004-01-29 Mitsubishi Electric Corp マルチスレッド同期制御方式
CN103973502B (zh) * 2014-05-28 2018-09-25 梅志国 智能家居系统的设备的程序无线升级方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090271789A1 (en) * 2008-04-28 2009-10-29 Babich Alan F Method, apparatus and article of manufacture for timeout waits on locks
CN104679596A (zh) * 2013-12-02 2015-06-03 航天信息股份有限公司 一种提高服务器端并发性能的消息处理方法及其系统
CN105634984A (zh) * 2015-12-29 2016-06-01 重庆安碧捷科技股份有限公司 基于tcp协议多线程的多对多医疗数据传输方法
CN107370667A (zh) * 2017-07-31 2017-11-21 北京北信源软件股份有限公司 多线程并行处理方法和装置、可读介质和存储控制器
CN108647104A (zh) * 2018-05-15 2018-10-12 北京五八信息技术有限公司 请求处理方法、服务器及计算机可读存储介质
CN110187985A (zh) * 2019-05-30 2019-08-30 苏州浪潮智能科技有限公司 一种通信方法、系统及装置
CN111737030A (zh) * 2020-06-24 2020-10-02 广东浪潮大数据研究有限公司 一种控制指令处理方法、装置、设备及计算机存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115306590A (zh) * 2022-08-11 2022-11-08 江苏深蓝航天有限公司 一种发动机核心控制终端、点火方法和可读存储介质

Also Published As

Publication number Publication date
CN111737030A (zh) 2020-10-02
US20230205870A1 (en) 2023-06-29

Similar Documents

Publication Publication Date Title
WO2021258750A1 (zh) 一种控制指令处理方法、装置、设备及计算机存储介质
US20150271808A1 (en) Method, apparatus, and storage medium for wireless communication
EP3255553B1 (en) Transmission control method and device for direct memory access
US7783794B2 (en) Remote USB access method
WO2021098260A1 (zh) 一种数据删除方法、系统、设备及计算机可读存储介质
US8639840B2 (en) Processing unit, chip, computing device and method for accelerating data transmission
US8527669B2 (en) Communication apparatus and method for communicating with an external device through USB interface using a high-speed or low-speed communication mode
WO2020108100A1 (zh) 导航控制方法及相关产品
JP6115482B2 (ja) 電子制御装置
EP2413248B1 (en) Direct memory access device for multi-core system and operating method of the same
KR102274930B1 (ko) 채널 연결 관리 방법 및 장치
CN116150054A (zh) 一种基于pcie的中断信息处理方法
CN111857996B (zh) 一种中断处理方法、系统、设备及计算机可读存储介质
EP2141606B1 (en) Apparatus and method for processing high speed data using hybrid DMA
US11940814B2 (en) Cooperative driving method based on driving negotiation and apparatus for the same
CN110134453B (zh) 服务器配置重载方法及服务器
US9223730B2 (en) Virtual system management mode device and control method thereof
TWI760036B (zh) 透過http/https的伺服器韌體的資料傳輸方法及伺服器
JP2012038156A (ja) ネットワーク装置、ネットワーク装置の省電力方法、及びプログラム
CN108108243B (zh) 一种资源分享系统和方法
JPH06290144A (ja) 受信バッファ制御装置
CN109901935B (zh) 一种与USB Key进行通信的方法及设备
US20100057964A1 (en) Methods and controllers for affiliation managment
CN110941492A (zh) 一种服务器及工作频率设定方法、系统、计算机存储介质
TW201337760A (zh) 呼叫基本輸入輸出系統之韌體執行時間服務之方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21830028

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.05.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21830028

Country of ref document: EP

Kind code of ref document: A1