WO2024051450A1 - Dual-processor device and control method therefor, and processor - Google Patents

Dual-processor device and control method therefor, and processor Download PDF

Info

Publication number
WO2024051450A1
WO2024051450A1 PCT/CN2023/112998 CN2023112998W WO2024051450A1 WO 2024051450 A1 WO2024051450 A1 WO 2024051450A1 CN 2023112998 W CN2023112998 W CN 2023112998W WO 2024051450 A1 WO2024051450 A1 WO 2024051450A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
shutdown
dual
control
data
Prior art date
Application number
PCT/CN2023/112998
Other languages
French (fr)
Chinese (zh)
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
Priority claimed from CN202211094813.2A external-priority patent/CN115167933B/en
Priority claimed from CN202211094823.6A external-priority patent/CN115168079B/en
Priority claimed from CN202211094824.0A external-priority patent/CN115185176B/en
Application filed by 深圳市恒运昌真空技术股份有限公司 filed Critical 深圳市恒运昌真空技术股份有限公司
Publication of WO2024051450A1 publication Critical patent/WO2024051450A1/en

Links

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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Abstract

The present application discloses a dual-processor device and a control method therefor, and a processor. The dual processors comprise a control processor and a computing processor. The method is implemented by the control processor. The method comprises: upon detection that an electric arc occurs, sending a pre-turn-off output front-end handshake to the computing processor, so that the computing processor stops a related computing operation according to the pre-turn-off output front-end handshake; receiving a computing stop notification sent by the computing processor, the computing stop notification being sent by the computing processor after receiving the pre-turn-off output front-end handshake and completing computing of received data; and executing a turn-off operation. The problem in the prior art of poor correctness of data between the control processor and the computing processor caused by asynchronization between the control processor and the computing processor is solved.

Description

一种双处理器设备及其控制方法和处理器A dual-processor device and its control method and processor 技术领域Technical field
本发明涉及设备控制技术领域,具体涉及一种双处理器设备及其控制方法和处理器。The present invention relates to the technical field of equipment control, and in particular to a dual-processor device, a control method thereof, and a processor.
背景技术Background technique
传统的双处理器设备控制方案中,处理器A用于控制电路与检测电弧,处理器B进行PID运算为处理器A提供控制电路运行参数,当处理器A检测电弧发生时执行失能控制(DISABLE),立即使电路断开或停止信号输出,但是PID运算是不能被中断的,于是,在处理器A执行失能控制时,处理器B仍然继续进行PID计算并向处理器A回馈控制电路运行参数,而对于处理器A来说,此时处理器B回馈的运算参数是冗余、无用且错误的,再加上处理器A的失能控制是突然性的,处理器B反馈的运行参数还有可能使处理器A无法衔接后续监测数据,致使整体控制数据组失效。In the traditional dual-processor equipment control scheme, processor A is used to control the circuit and detect arcs. Processor B performs PID calculations to provide processor A with control circuit operating parameters. When processor A detects the occurrence of arcs, it performs disabling control ( DISABLE), immediately disconnects the circuit or stops signal output, but the PID operation cannot be interrupted. Therefore, when processor A performs disabling control, processor B still continues to perform PID calculations and feeds back the control circuit to processor A. Operating parameters. For processor A, the operating parameters fed back by processor B at this time are redundant, useless and wrong. In addition, the failure control of processor A is sudden, and the operation parameters fed back by processor B are redundant, useless and wrong. Parameters may also prevent processor A from connecting to subsequent monitoring data, causing the overall control data set to become invalid.
因此,如何设计一种高可靠性、高准确性地双处理器设备及其控制方法,是待解决的技术问题。Therefore, how to design a high-reliability, high-accuracy dual-processor device and its control method is a technical problem to be solved.
发明内容Contents of the invention
因此,本发明要解决的技术问题在于克服现有技术中双处理器之间在进行PID控制时,控制处理器控制电路立即执行中断,而运算处理器仍然持续进行PID运算,从而影响控制处理器和运算处理器之间的数据正确性。因此提供一种双处理器设备及其控制方法和处理器。Therefore, the technical problem to be solved by the present invention is to overcome the problem in the prior art that when dual processors perform PID control, the control processor control circuit immediately executes an interrupt, while the operation processor continues to perform PID operations, thus affecting the control processor. and data correctness between computing processors. Therefore, a dual-processor device and its control method and processor are provided.
为解决上述技术问题,本发明公开实施例至少提供一种双处理器设备及其控制方法和处理器。In order to solve the above technical problems, disclosed embodiments of the present invention at least provide a dual-processor device, a control method thereof, and a processor.
第一方面,本发明公开实施例提供了一种双处理器设备控制方法,其 特征在于,所述双处理器包括控制处理器和运算处理器,所述方法由所述控制处理器实现,所述方法包括:In a first aspect, disclosed embodiments of the present invention provide a dual-processor device control method, which Characteristically, the dual processors include a control processor and an arithmetic processor, the method is implemented by the control processor, and the method includes:
若检测到电弧发生,则向所述运算处理器发送预关断输出前置交握,以便所述运算处理器根据所述预关断输出前置交握停止相关运算操作;If an arc is detected, a pre-shutdown output pre-handshake is sent to the arithmetic processor, so that the arithmetic processor stops relevant computing operations according to the pre-shutdown output pre-handshake;
接收所述运算处理器发送的停止运算通知,所述停止运算通知是所述运算处理器接收到所述预关断输出前置交握后,且完成已接收数据的运算后发出的;Receive a stop operation notification sent by the operation processor. The operation stop notice is issued after the operation processor receives the pre-shutdown output pre-handshake and completes the operation of the received data;
执行关断操作。Perform shutdown operation.
优选地,所述方法还包括:Preferably, the method further includes:
在满足重启条件时,向所述运算处理器发送重启的前置交握,以便所述运算处理器根据所述重启的前置交握恢复运算准备;When the restart condition is met, send a restart pre-handshake to the computing processor, so that the computing processor resumes computing preparations according to the restart pre-handshake;
在收到所述运算处理器反馈的恢复确认消息后,恢复获取设备运行数据,恢复向所述运算处理器发送所述设备运行数据,所述恢复确认消息是所述运算处理器完成运算准备后发送的。After receiving the recovery confirmation message fed back by the computing processor, resume obtaining the device operation data, and resume sending the device operation data to the computing processor. The recovery confirmation message is after the computing processor completes the computing preparation. Sent.
优选地,在所述向所述运算处理器发送重启的前置交握之前,还包括:Preferably, before sending a restart pre-handshake to the computing processor, the method further includes:
判断所述运算处理器是否处于休眠状态;Determine whether the computing processor is in a sleep state;
所述向所述运算处理器发送重启的前置交握为:若所述运算处理器处于休眠状态,则向所述运算处理器发送重启的前置交握。The step of sending a restart pre-handshake to the arithmetic processor is: if the arithmetic processor is in a sleep state, sending a restart pre-handshake to the arithmetic processor.
优选地,在所述向所述运算处理器发送重启的前置交握之前,还包括:Preferably, before sending a restart pre-handshake to the computing processor, the method further includes:
若所述运算处理器未处于休眠状态,则直接获取所述设备运行数据,并向所述运算处理器发送所述设备运行数据。If the computing processor is not in the sleep state, the device operation data is directly obtained and sent to the computing processor.
优选地,所述重启条件包括:关断时间是否满足预设关断时长;和/或,是否收到重启指示信息。Preferably, the restart condition includes: whether the shutdown time meets a preset shutdown duration; and/or whether restart instruction information is received.
优选地,还包括:Preferably, it also includes:
在执行关断操作后,进入休眠状态。After performing the shutdown operation, it enters the sleep state.
优选地,在所述进入休眠状态之前,所述方法还包括:将电弧产生期间的设备运行数据冻结。Preferably, before entering the dormant state, the method further includes: freezing equipment operating data during arc generation.
第二方面,本发明公开实施例提供了一种用于双处理器设备的控制处 理器,其特征在于,包括:In a second aspect, disclosed embodiments of the present invention provide a control processing unit for a dual-processor device. processor, which is characterized by including:
预关断指示模块,用于在检测到电弧发生时,则向运算处理器发送预关断输出前置交握,以便所述运算处理器根据所述预关断输出前置交握停止相关运算操作;A pre-shutdown indication module is used to send a pre-shutdown output pre-handshake to the arithmetic processor when an arc is detected, so that the arithmetic processor stops relevant operations according to the pre-shutdown output pre-handshake. operate;
预关断执行模块,用于接收所述运算处理器发送的停止运算通知,所述停止运算通知是所述运算处理器接收到所述预关断输出前置交握后,且完成已接收数据的运算后发出的;A pre-shutdown execution module, configured to receive a stop operation notification sent by the arithmetic processor. The stop arithmetic notification is after the arithmetic processor receives the pre-shutdown output pre-handshake and completes the received data. Emitted after the operation;
关断模块,用于执行关断操作。Shutdown module, used to perform shutdown operations.
第三方面,本发明公开实施例提供了一种双处理器设备控制方法,其特征在于,所述双处理器包括控制处理器和运算处理器,所述方法由运算处理器实现,所述方法包括:In a third aspect, disclosed embodiments of the present invention provide a method for controlling a dual-processor device, characterized in that the dual-processor includes a control processor and an arithmetic processor, and the method is implemented by the arithmetic processor. include:
接收所述控制处理器发送的预关断输出前置交握;Receive the pre-shutdown output pre-handshake sent by the control processor;
完成已接收数据的运算后,停止相关运算操作;After completing the operation of the received data, stop the relevant operation;
向所述控制处理器发送停止运算通知,以便所述控制处理器接收所述停止运算通知后,执行关断操作。Send a stop operation notification to the control processor, so that the control processor performs a shutdown operation after receiving the stop operation notification.
优选地,还包括:Preferably, it also includes:
接收所述控制处理器发送的重启的前置交握;Receive a restart pre-handshake sent by the control processor;
根据所述重启的前置交握完成恢复运算准备;Complete recovery operation preparations according to the pre-restart handshake;
向所述控制处理器发送恢复确认消息,以便所述控制处理器根据所述恢复确认消息恢复获取设备运行数据;Send a recovery confirmation message to the control processor so that the control processor resumes obtaining device operating data according to the recovery confirmation message;
接收所述控制处理器发送的所述设备运行数据。Receive the device operation data sent by the control processor.
优选地,在所述向所述控制处理器发送停止运算通知之后,所述方法还包括:进入休眠状态。Preferably, after sending the operation stop notification to the control processor, the method further includes: entering a sleep state.
优选地,在所述进入休眠状态之前,所述方法还包括:将电弧产生期间的设备运行数据冻结。Preferably, before entering the dormant state, the method further includes: freezing equipment operating data during arc generation.
第四方面,本发明公开实施例提供了一种用于双处理器设备的运算处理器,其特征在于,包括:In a fourth aspect, disclosed embodiments of the present invention provide an arithmetic processor for a dual-processor device, which is characterized in that it includes:
预关断指示接收模块,用于接收控制处理器发送的预关断输出前置交 握;The pre-shutdown indication receiving module is used to receive the pre-shutdown output pre-interface sent by the control processor. grip;
运算停止控制模块,用于完成已接收数据的运算后,停止相关运算操作;The operation stop control module is used to stop related operation operations after completing the operation of the received data;
运算停止通知模块,用于向所述控制处理器发送停止运算通知,以便所述控制处理器接收所述停止运算通知后,执行关断操作。The operation stop notification module is configured to send a stop operation notification to the control processor, so that the control processor performs a shutdown operation after receiving the operation stop notification.
第五方面,本发明公开实施例提供了一种双处理器设备,其特征在于,包括第二方面的用于双处理器设备的控制处理器和第四方面的用于双处理器设备的运算处理器。In a fifth aspect, disclosed embodiments of the present invention provide a dual-processor device, which is characterized in that it includes the control processor for the dual-processor device of the second aspect and the operation processor for the dual-processor device of the fourth aspect. processor.
第六方面,本发明公开实施例提供了一种双处理器设备控制方法,其特征在于,所述双处理器设备包括控制处理器、运算处理器和共享存储器,所述共享存储器中设有关断指示标识,所述方法由所述控制处理器实现,所述方法包括:In the sixth aspect, the disclosed embodiments of the present invention provide a dual-processor device control method, characterized in that the dual-processor device includes a control processor, an operation processor and a shared memory, and the shared memory is provided with an interrupt Indicates the identification, and the method is implemented by the control processor, and the method includes:
若检测到电弧发生,则执行关断操作;If an arc is detected, a shutdown operation is performed;
将所述共享存储器中的所述关断指示标识设置为关断状态,以便所述运算处理器根据所述关断指示标识的状态跳过获取第一设备运行数据,所述第一设备运行数据是所述控制处理器在电弧产生期间获取的设备运行数据。The shutdown indication flag in the shared memory is set to a shutdown state, so that the computing processor skips obtaining the first device operation data according to the state of the shutdown indication flag, and the first device operation data is the equipment operating data obtained by the control processor during arc generation.
优选地,在所述检测到电弧发生之前,所述方法还包括:Preferably, before the arc is detected, the method further includes:
获取第二设备运行数据;Obtain the second device operating data;
通过所述共享存储器向所述运算处理器发送所述第二设备运行数据。Send the second device operating data to the computing processor through the shared memory.
优选地,所述通过所述共享存储器向所述运算处理器发送所述第二设备运行数据包括:Preferably, sending the second device operating data to the computing processor through the shared memory includes:
将所述第二设备运行数据存入所述共享存储器,以便所述运算处理器可以从所述共享存储器中获取所述第二设备运行数据。The second device operation data is stored in the shared memory so that the computing processor can obtain the second device operation data from the shared memory.
优选地,在执行关断操作后,所述方法还包括:进入休眠状态。Preferably, after performing the shutdown operation, the method further includes: entering a sleep state.
优选地,所述方法还包括:Preferably, the method further includes:
在满足重启条件时,重新启动;Restart when the restart conditions are met;
将所述共享存储器中的关断指示标识设置为正常状态; Set the shutdown indication flag in the shared memory to a normal state;
恢复获取所述第二设备运行数据;Resume obtaining the operating data of the second device;
恢复通过所述共享存储器向所述运算处理器发送所述第二设备运行数据,以便所述运算处理器根据所述关断指示标识的状态从所述共享存储器获取所述第二设备运行数据。Resume sending the second device operating data to the computing processor through the shared memory, so that the computing processor obtains the second device operating data from the shared memory according to the state identified by the shutdown indication.
优选地,所述重启条件包括:Preferably, the restart conditions include:
关断时间是否满足预设关断时长;和/或,是否收到重启指示信息。Whether the shutdown time meets the preset shutdown duration; and/or whether a restart instruction message is received.
优选地,在所述进入休眠状态之前,所述方法还包括:将电弧产生期间的设备运行数据冻结。Preferably, before entering the dormant state, the method further includes: freezing equipment operating data during arc generation.
第七方面,本发明公开实施例提供了一种双处理器设备,其特征在于,所述双处理器设备包括控制处理器、运算处理器和共享存储器,所述共享存储器中设有关断指示标识,所述控制处理器包括:In the seventh aspect, disclosed embodiments of the present invention provide a dual-processor device, characterized in that the dual-processor device includes a control processor, an operation processor and a shared memory, and a shutdown indication flag is provided in the shared memory. , the control processor includes:
关断指示模块,用于在检测到电弧发生时,执行关断操作;A shutdown indication module is used to perform a shutdown operation when an arc is detected;
关断状态设置模块,用于将所述共享存储器中的所述关断指示标识设置为关断状态,以便所述运算处理器根据所述关断指示标识的状态跳过获取第一设备运行数据,所述第一设备运行数据是所述控制处理器在电弧产生期间获取的设备运行数据。A shutdown state setting module, configured to set the shutdown indication flag in the shared memory to a shutdown state, so that the computing processor skips acquiring the first device operating data according to the status of the shutdown indication flag. , the first equipment operating data is equipment operating data obtained by the control processor during arc generation.
第八方面,本发明公开实施例提供了一种双处理器设备控制方法,其特征在于,所述双处理器设备包括控制处理器运算处理器和共享存储器,所述共享存储器中设有关断指示标识,所述方法由所述运算处理器实现,所述方法包括:In an eighth aspect, disclosed embodiments of the present invention provide a method for controlling a dual-processor device, characterized in that the dual-processor device includes a control processor, an arithmetic processor, and a shared memory, and a shutdown indication is provided in the shared memory. identification, the method is implemented by the computing processor, and the method includes:
获取所述共享存储器中所述关断指示标识的状态;Obtain the status of the shutdown indication flag in the shared memory;
若所述关断指示标识为关断状态,则根据所述关断指示标识的状态跳过获取第一设备运行数据,所述第一设备运行数据是所述控制处理器在电弧产生期间获取的设备运行数据。If the shutdown indication flag is in the shutdown state, the acquisition of the first equipment operation data is skipped according to the status of the shutdown indication flag. The first equipment operation data is obtained by the control processor during arc generation. Equipment operating data.
优选地,还包括:Preferably, it also includes:
若所述关断指示标识为正常状态,则从所述共享存储器中获取第一设备运行数据;If the shutdown indication flag is in a normal state, obtain the first device operating data from the shared memory;
根据所述第一设备运行数据进行控制参数计算; Calculate control parameters based on the first equipment operating data;
通过所述共享存储器向所述控制处理器发送计算得到的控制参数。The calculated control parameters are sent to the control processor via the shared memory.
优选地,还包括:在所述关断指示标识为关断状态时,进入休眠状态。Preferably, the method further includes: entering the sleep state when the shutdown indication indicates the shutdown state.
优选地,在所述获取共享存储器中关断指示标识的状态之前,所述方法还包括:Preferably, before obtaining the status of the shutdown indicator in the shared memory, the method further includes:
在满足重启条件时,重新启动;Restart when the restart conditions are met;
所述获取共享存储器中关断指示标识的状态为:恢复获取共享存储器中关断指示标识的状态。The step of obtaining the status of the shutdown indication flag in the shared memory is to restore and obtain the status of the shutdown indication flag in the shared memory.
优选地,在所述进入休眠状态之前,所述方法还包括:将电弧产生期间的设备运行数据冻结。Preferably, before entering the dormant state, the method further includes: freezing equipment operating data during arc generation.
第九方面,本发明公开实施例提供了一种双处理器设备,其特征在于,所述双处理器设备包括控制处理器、运算处理器和共享存储器,所述共享存储器中设有关断指示标识,所述运算处理器包括:In a ninth aspect, disclosed embodiments of the present invention provide a dual-processor device, characterized in that the dual-processor device includes a control processor, an operation processor and a shared memory, and a shutdown indication flag is provided in the shared memory. , the computing processor includes:
关断标识获取模块,用于获取所述共享存储器中所述关断指示标识的状态;A shutdown identification acquisition module, configured to obtain the status of the shutdown indication identification in the shared memory;
关断数据处理模块,用于若所述关断指示标识为关断状态,则根据所述关断指示标识的状态跳过获取第一设备运行数据,所述第一设备运行数据是所述控制处理器在电弧产生期间获取的设备运行数据。A shutdown data processing module, configured to, if the shutdown indication flag is in a shutdown state, skip acquiring the first device operation data according to the status of the shutdown indication flag, and the first device operation data is the control Equipment operating data acquired by the processor during arc generation.
第十方面,本发明公开实施例提供了一种双处理器设备,其特征在于,包括共享存储器、第九方面所述的控制处理器和第九方面所述的运算处理器,所述共享存储器中设有关断指示标识。In a tenth aspect, disclosed embodiments of the present invention provide a dual-processor device, which is characterized in that it includes a shared memory, the control processor described in the ninth aspect, and the operation processor described in the ninth aspect, and the shared memory There is a shutdown indicator mark in it.
第十一方面,本发明公开实施例提供了一种计算机设备,其特征在于,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当计算机设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如第一方面、第三方面、第六方面或第八方面之一所述的双处理器设备控制方法。In an eleventh aspect, disclosed embodiments of the present invention provide a computer device, which is characterized in that it includes: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device When running, the processor and the memory communicate through a bus, and when the machine-readable instructions are executed by the processor, they are executed as described in one of the first aspect, the third aspect, the sixth aspect, or the eighth aspect. The dual-processor device control method described above.
第十二方面,本发明公开实施例提供了一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如第一方面、第三方面、第六方面或第八方面之一所述 的双处理器设备控制方法。In a twelfth aspect, disclosed embodiments of the present invention provide a computer-readable storage medium, which is characterized in that a computer program is stored on the computer-readable storage medium, and the computer program is executed when the processor runs as in the first aspect, As mentioned in one of the third aspect, sixth aspect or eighth aspect Dual-processor device control method.
本发明的实施例提供的技术方案可以具有以下有益效果:基于双处理器的控制过程中,若控制处理器检测到电弧发生,则执行关断操作,可以是停止被运算处理器获取设备运行数据,也可以是向运算处理器发送关断运算指示;运算处理器根据是否获取到所述设备运行数据,也可以根据是否接收到关断运算指示确定,中断相关控制参数运算操作,或者停止向控制处理器发送已完成计算的相关控制参数,以保证控制处理器获得正确的控制参数,确保电弧产生,控制处理器关断电路时,双处理器彼此之间的数据能维持较佳的正确性,适时停止PID运算,避免拉长关断时机点,同时减少丢弃数据的情形,避免一端电路关断时,另一端仍执行,造成整体电路错乱运行,只要未开始PID整体运算,可以中断运算或不发送已完成运算的运作参数,适用于指令、交握或共享数据,关断时,进行数据冻结,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。The technical solution provided by the embodiments of the present invention can have the following beneficial effects: During the control process based on dual processors, if the control processor detects the occurrence of an arc, it will perform a shutdown operation, which may stop the processor being operated from obtaining equipment operation data. , or it can be to send a shutdown operation instruction to the operation processor; the operation processor can determine based on whether the device operation data is obtained, or according to whether the shutdown operation instruction is received, interrupt the operation of the relevant control parameters, or stop sending data to the control The processor sends the relevant control parameters that have been calculated to ensure that the control processor obtains the correct control parameters and ensures arc generation. When the control processor turns off the circuit, the data between the two processors can maintain better accuracy. Stop the PID operation in a timely manner to avoid prolonging the shutdown timing, and at the same time reduce the situation of discarding data. When one end of the circuit is turned off, the other end is still executing, causing the overall circuit to run in disorder. As long as the overall PID operation has not started, the operation can be interrupted or not Send the operating parameters of the completed operation, suitable for instructions, handshaking or shared data. When shutting down, the data is frozen to ensure the stability and consistency of data transmission between the control processor and the operation processor and avoid controlling the processor circuit. When turned off, the other end of the arithmetic processor is still performing unnecessary operations, causing the overall circuit to run erratically, effectively ensuring the accuracy of data between the control processor and the arithmetic processor when an arc occurs.
附图说明Description of the drawings
通过参考下面的附图,可以更为完整地理解本发明的示例性实施方式。附图用来提供对本申请实施例的进一步理解,并且构成说明书的一部分,与本申请实施例一起用于解释本发明,并不构成对本发明的限制。在附图中,相同的参考标号通常代表相同部件或步骤。Exemplary embodiments of the present invention may be more fully understood by reference to the following drawings. The drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the description. They are used to explain the present invention together with the embodiments of the present application and do not constitute a limitation of the present invention. In the drawings, like reference numbers generally represent like components or steps.
图1为本发明公开实施例所提供的一种双处理器设备控制方法的流程图;Figure 1 is a flow chart of a dual-processor device control method provided by a disclosed embodiment of the present invention;
图2示出了本发明公开实施例所提供的另一种双处理器设备控制方法的流程图;Figure 2 shows a flow chart of another dual-processor device control method provided by the disclosed embodiment of the present invention;
图3、图4、图5、图6示出了本发明公开实施例中控制处理器和运算处理器的交互及时序示意图; Figures 3, 4, 5, and 6 show the interaction and timing diagrams of the control processor and the operation processor in the disclosed embodiments of the present invention;
图7示出了本发明公开实施例所提供的又一种双处理器设备控制方法的流程图;Figure 7 shows a flow chart of yet another dual-processor device control method provided by the disclosed embodiment of the present invention;
图8示出了本发明公开实施例所提供的再一种双处理器设备控制方法的流程图;Figure 8 shows a flow chart of yet another dual-processor device control method provided by the disclosed embodiment of the present invention;
图9示出了本发明公开实施例所提供的一种用于双处理器设备的控制处理器的结构示意图;Figure 9 shows a schematic structural diagram of a control processor for a dual-processor device provided by a disclosed embodiment of the present invention;
图10示出了本发明公开实施例所提供的用于双处理器设备的运算处理器的结构示意图;Figure 10 shows a schematic structural diagram of an arithmetic processor for a dual-processor device provided by a disclosed embodiment of the present invention;
图11示出了本发明公开实施例所提供的一种双处理器设备的结构示意图;Figure 11 shows a schematic structural diagram of a dual-processor device provided by an embodiment of the present invention;
图12示出了本发明公开实施例所提供的一种双处理器设备控制方法的流程图;Figure 12 shows a flow chart of a dual-processor device control method provided by a disclosed embodiment of the present invention;
图13示出了本发明公开实施例所提供的另一种双处理器设备控制方法的流程图;Figure 13 shows a flow chart of another dual-processor device control method provided by the disclosed embodiment of the present invention;
图14示出了本发明公开实施例所提供的又一种双处理器设备控制方法的流程图;Figure 14 shows a flow chart of yet another dual-processor device control method provided by the disclosed embodiment of the present invention;
图15示出了本发明公开实施例所提供的再一种双处理器设备控制方法的流程图;Figure 15 shows a flow chart of yet another dual-processor device control method provided by the disclosed embodiment of the present invention;
图16示出了本发明公开实施例所提供的一种双处理器设备中控制处理器的结构示意图;Figure 16 shows a schematic structural diagram of a control processor in a dual-processor device provided by a disclosed embodiment of the present invention;
图17示出了本发明公开实施例所提供的另一种双处理器设备中运算处理器的结构示意图;Figure 17 shows a schematic structural diagram of an arithmetic processor in another dual-processor device provided by an embodiment of the present invention;
图18示出了本发明公开实施例所提供的一种双处理器设备结构示意图;Figure 18 shows a schematic structural diagram of a dual-processor device provided by a disclosed embodiment of the present invention;
图19、图20、图21示出了本发明公开实施例所提供的一种双处理器设备控制方法的时序关系图;Figures 19, 20, and 21 show timing diagrams of a dual-processor device control method provided by disclosed embodiments of the present invention;
图22示出了本发明公开实施例所提供的另一种双处理器设备控制方法的流程图; Figure 22 shows a flow chart of another dual-processor device control method provided by the disclosed embodiment of the present invention;
图23示出了本发明公开实施例所提供的另一种双处理器设备控制方法的流程图。Figure 23 shows a flow chart of another dual-processor device control method provided by the disclosed embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施方式。虽然附图中显示了本公开的示例性实施方式,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施方式所限制。相反,提供这些实施方式是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a thorough understanding of the disclosure, and to fully convey the scope of the disclosure to those skilled in the art.
在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description. It does not indicate or imply that the device or element referred to must have a specific orientation or a specific orientation. construction and operation, and therefore should not be construed as limitations of the invention. Furthermore, the terms “first”, “second” and “third” are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that, unless otherwise clearly stated and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense. For example, it can be a fixed connection or a detachable connection. Connection, or integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood on a case-by-case basis.
此外,下面所描述的本发明不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In addition, the technical features involved in different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
实施例1Example 1
如图1所示,本发明公开实施例所提供的一种双处理器设备控制方法的流程图,双处理器包括控制处理器和运算处理器,该方法由控制处理器实现,该方法包括: As shown in Figure 1, there is a flow chart of a dual-processor device control method provided by an embodiment of the present invention. The dual-processor includes a control processor and an operation processor. The method is implemented by the control processor. The method includes:
S11:若检测到电弧发生,则向运算处理器发送预关断输出前置交握,以便运算处理器根据预关断输出前置交握停止相关运算操作;S11: If an arc is detected, the pre-shutdown output pre-handshake is sent to the arithmetic processor, so that the arithmetic processor stops relevant computing operations based on the pre-shutdown output pre-handshake;
S12:接收运算处理器发送的停止运算通知,停止运算通知是运算处理器接收到预关断输出前置交握后,且完成已接收数据的运算后发出的;S12: Receive the stop operation notification sent by the operation processor. The stop operation notification is issued after the operation processor receives the pre-shutdown output pre-handshake and completes the operation of the received data;
S13:执行关断操作。S13: Perform shutdown operation.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到电弧发生,则向运算处理器发送预关断输出前置交握,运算处理器根据预关断输出前置交握完成已接收数据的运算并停止相关运算操作,控制处理器接收运算处理器发送的停止运算通知后执行关断操作,通过交握,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of the dual-processor device, if the control processor detects the occurrence of an arc, it will send a pre-shutdown output pre-handshake to the computing processor, and the computing processor will The shutdown output pre-handshake completes the calculation of the received data and stops the relevant calculation operations. The control processor performs the shutdown operation after receiving the stop calculation notification sent by the calculation processor. Through handshaking, the control processor and the calculation processor are ensured. The stability and consistency of data transmission between the two ends prevents the control processor circuit from being turned off while the other end of the operation processor is still performing unnecessary operations, causing the overall circuit to run erratically. This effectively ensures that when an arc occurs, the control processor and Data correctness between computing processors.
实施例2Example 2
作为实施例1的一种改进,如图2所示,本发明公开实施例所提供的另一种双处理器设备控制方法的流程图,双处理器包括控制处理器和运算处理器,该方法由控制处理器实现,该方法包括:As an improvement of Embodiment 1, as shown in Figure 2, the present invention discloses a flow chart of another dual-processor device control method provided by the embodiment of the present invention. The dual-processor includes a control processor and an operation processor. This method Implemented by the control processor, the method includes:
S21:在满足重启条件时,控制处理器判断运算处理器是否处于休眠状态,若运算处理器处于休眠状态,则执行S22,若运算处理器未处于休眠状态,则执行S24;S21: When the restart condition is met, the control processor determines whether the arithmetic processor is in a sleep state. If the arithmetic processor is in a sleep state, S22 is executed. If the arithmetic processor is not in a sleep state, S24 is executed;
S22:控制处理器向运算处理器发送重启的前置交握,以便运算处理器根据重启的前置交握恢复运算准备;S22: The control processor sends a restarted pre-handshake to the arithmetic processor, so that the arithmetic processor can resume computing preparations based on the restarted pre-handshake;
S23:控制处理器接收运算处理器反馈的恢复确认消息,恢复执行S24,恢复确认消息是运算处理器完成运算准备后发送的;S23: The control processor receives the recovery confirmation message fed back by the operation processor, and resumes execution of S24. The recovery confirmation message is sent by the operation processor after completing the operation preparation;
S24:控制处理器获取设备运行数据,并向运算处理器发送设备运行数据;S24: The control processor obtains the device operating data and sends the device operating data to the computing processor;
S25:若检测到电弧发生,则控制处理器向运算处理器发送预关断输出前置交握,以便运算处理器根据预关断输出前置交握停止相关运算操作; S25: If an arc is detected, the control processor sends a pre-shutoff output pre-handshake to the arithmetic processor, so that the arithmetic processor stops relevant computing operations according to the pre-shutdown output pre-handshake;
S26:控制处理器接收运算处理器发送的停止运算通知,停止运算通知是运算处理器接收到预关断输出前置交握后,且完成已接收数据的运算后发出的;S26: The control processor receives the stop operation notification sent by the operation processor. The stop operation notification is issued after the operation processor receives the pre-shutdown output pre-handshake and completes the operation of the received data;
S27:控制处理器执行关断操作;S27: Control the processor to perform a shutdown operation;
S28:控制处理器将电弧产生期间的设备运行数据冻结;S28: The control processor freezes the equipment operating data during arc generation;
S29:控制处理器进入休眠状态。S29: Control the processor to enter the sleep state.
在一些可选实施例中,重启条件包括:关断时间是否满足预设关断时长;和/或,是否收到重启指示信息。In some optional embodiments, the restart conditions include: whether the shutdown time meets the preset shutdown duration; and/or whether restart instruction information is received.
进一步的,可以冻结数据,CPUB单独或CPUA和CPUB同时进入有限度休眠。Further, data can be frozen, CPUB alone or CPUA and CPUB can enter limited sleep at the same time.
需要说明的是,本具体实施方式中记载的实施例只是对本发明构思下的具体实现方式进行示例性的描述,各个实施例中的步骤执行顺序不限于本文中提供的实施例,在具体工程实践中,可以由本领域技术人员根据实际情况对各个步骤的执行顺序进行调整,例如,S21和S27之间,没有必然的因果关系和先后关系,S21的重启操作也可以描述为在S27关断操作之后。It should be noted that the embodiments recorded in this specific implementation mode are only illustrative descriptions of specific implementations under the concept of the present invention. The execution order of the steps in each embodiment is not limited to the embodiments provided herein. In specific engineering practice , those skilled in the art can adjust the execution order of each step according to the actual situation. For example, there is no inevitable causal relationship and sequence between S21 and S27. The restart operation of S21 can also be described as after the shutdown operation of S27. .
为了便于读者理解,下面结合图3、图4、图5、图6,CPUA作为控制处理器,CPUB作为运算处理器,对本发明实施例中的双处理器设备控制方法交互过程及时序关系进行详细说明:第1时序:CPUA传输PID运算必要数据给CPUB;CPUB获取数据进行PID运算;CPUA检测电弧,发送预关断输出的前置交握;CPUB的PID运算完成已经接收到的正确数据并回传给CPUA;CPUB依据交握向CPUA反馈已停止时序PID运算准备;CPUA获取CPUB反馈,执行关断输出;CPUA放弃此时序回馈的PID数据。In order to facilitate readers' understanding, the interaction process and timing relationship of the dual-processor device control method in the embodiment of the present invention are described in detail below with reference to Figures 3, 4, 5, and 6. CPUA serves as the control processor and CPUB serves as the operation processor. Description: First sequence: CPUA transmits necessary data for PID operation to CPUB; CPUB obtains data for PID operation; CPUA detects arc and sends pre-shutdown output pre-handshake; CPUB's PID operation completes the correct data received and returns Passed to CPUA; CPUB feedbacks to CPUA according to the handshake that the timing PID operation preparation has been stopped; CPUA obtains CPUB feedback and performs shutdown output; CPUA abandons the PID data fed back at this timing.
第N时序,N>1的整数,分为CUPB休眠和CUPB不休眠两种情况:1、CPUB没有休眠的情况:CPUA重启控制电路进行功率输出;CPUA传输PID运算必要数据给CPUB;CPUB获取数据进行PID运算。The Nth sequence, an integer with N>1, is divided into two situations: CUPB sleeping and CUPB not sleeping: 1. When CPUB does not sleep: CPUA restarts the control circuit for power output; CPUA transmits necessary data for PID operation to CPUB; CPUB obtains data Perform PID operation.
2、CPUB有休眠的情况CPUA输出重启的前置交握;CPUB反馈CPUA 已准备完成;CPUA传输PID运算必要数据给CPUB;CPUB获取数据进行PID运算。2. When CPUB is in sleep state, CPUA outputs a pre-restart handshake; CPUB feeds back to CPUA Preparation is complete; CPUA transmits the necessary data for PID operation to CPUB; CPUB obtains the data for PID operation.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到电弧发生,则向运算处理器发送预关断输出前置交握,运算处理器根据预关断输出前置交握完成已接收数据的运算并停止相关运算操作,控制处理器接收运算处理器发送的停止运算通知后执行关断操作,通过交握,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of the dual-processor device, if the control processor detects the occurrence of an arc, it will send a pre-shutdown output pre-handshake to the computing processor, and the computing processor will The shutdown output pre-handshake completes the calculation of the received data and stops the relevant calculation operations. The control processor performs the shutdown operation after receiving the stop calculation notification sent by the calculation processor. Through handshaking, the control processor and the calculation processor are ensured. The stability and consistency of data transmission between the two ends prevents the control processor circuit from being turned off while the other end of the operation processor is still performing unnecessary operations, causing the overall circuit to run erratically. This effectively ensures that when an arc occurs, the control processor and Data correctness between computing processors.
实施例3Example 3
如图7所示,本发明实施例还提供一种双处理器设备控制方法,双处理器包括控制处理器和运算处理器,该方法由运算处理器实现,该方法包括:As shown in Figure 7, an embodiment of the present invention also provides a dual-processor device control method. The dual-processor includes a control processor and an arithmetic processor. The method is implemented by the arithmetic processor. The method includes:
S31:接收控制处理器发送的预关断输出前置交握;S31: Receive the pre-shutdown output pre-handshake sent by the control processor;
S32:完成已接收数据的运算后,停止相关运算操作;S32: After completing the operation of the received data, stop the relevant operation;
S33:向控制处理器发送停止运算通知,以便控制处理器接收停止运算通知后,执行关断操作。S33: Send a stop operation notification to the control processor, so that the control processor performs a shutdown operation after receiving the stop operation notification.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到电弧发生,则向运算处理器发送预关断输出前置交握,运算处理器根据预关断输出前置交握完成已接收数据的运算并停止相关运算操作,控制处理器接收运算处理器发送的停止运算通知后执行关断操作,通过交握,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of the dual-processor device, if the control processor detects the occurrence of an arc, it will send a pre-shutdown output pre-handshake to the computing processor, and the computing processor will The shutdown output pre-handshake completes the calculation of the received data and stops the relevant calculation operations. The control processor performs the shutdown operation after receiving the stop calculation notification sent by the calculation processor. Through handshaking, the control processor and the calculation processor are ensured. The stability and consistency of data transmission between the two ends prevents the control processor circuit from being turned off while the other end of the operation processor is still performing unnecessary operations, causing the overall circuit to run erratically. This effectively ensures that when an arc occurs, the control processor and Data correctness between computing processors.
实施例4Example 4
作为实施例3的一种改进,如图8所示,本发明实施例还提供一种双 处理器设备控制方法,双处理器包括控制处理器和运算处理器,该方法由运算处理器实现,该方法包括:As an improvement of Embodiment 3, as shown in Figure 8, this embodiment of the present invention also provides a dual Processor device control method, the dual processor includes a control processor and an operation processor, the method is implemented by the operation processor, the method includes:
S41:运算处理器接收控制处理器发送的预关断输出前置交握;S41: The operation processor receives the pre-shutdown output pre-handshake sent by the control processor;
S42:完成已接收数据的运算后,运算处理器停止相关运算操作;S42: After completing the operation of the received data, the operation processor stops related operation operations;
S43:运算处理器将电弧产生期间的设备运行数据冻结;S43: The computing processor freezes the equipment operating data during arc generation;
S44:运算处理器向控制处理器发送停止运算通知,以便控制处理器接收停止运算通知后,执行关断操作;S44: The operation processor sends a stop operation notification to the control processor, so that the control processor performs a shutdown operation after receiving the stop operation notification;
S45:运算处理器进入休眠状态;S45: The computing processor enters sleep state;
S46:运算处理器接收控制处理器发送的重启的前置交握;S46: The operation processor receives the restart pre-handshake sent by the control processor;
S47:运算处理器根据重启的前置交握完成恢复运算准备;S47: The computing processor completes preparations for resuming computing according to the pre-restart handshake;
S48:运算处理器向控制处理器发送恢复确认消息,以便控制处理器根据恢复确认消息恢复获取设备运行数据;S48: The operation processor sends a recovery confirmation message to the control processor, so that the control processor can resume obtaining the device operating data according to the recovery confirmation message;
S49:运算处理器接收控制处理器发送的设备运行数据。S49: The operation processor receives the device operation data sent by the control processor.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到电弧发生,则向运算处理器发送预关断输出前置交握,运算处理器根据预关断输出前置交握完成已接收数据的运算并停止相关运算操作,控制处理器接收运算处理器发送的停止运算通知后执行关断操作,通过交握,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of the dual-processor device, if the control processor detects the occurrence of an arc, it will send a pre-shutdown output pre-handshake to the computing processor, and the computing processor will The shutdown output pre-handshake completes the calculation of the received data and stops the relevant calculation operations. The control processor performs the shutdown operation after receiving the stop calculation notification sent by the calculation processor. Through handshaking, the control processor and the calculation processor are ensured. The stability and consistency of data transmission between the two ends prevents the control processor circuit from being turned off while the other end of the operation processor is still performing unnecessary operations, causing the overall circuit to run erratically. This effectively ensures that when an arc occurs, the control processor and Data correctness between computing processors.
实施例5Example 5
如图9所示,本发明实施例还提供一种用于双处理器设备的控制处理器,包括:预关断指示模块51,用于在检测到电弧发生时,则向运算处理器发送预关断输出前置交握,以便运算处理器根据预关断输出前置交握停止相关运算操作;预关断执行模块52,用于接收运算处理器发送的停止运算通知,停止运算通知是运算处理器接收到预关断输出前置交握后,且完成已接收数据的运算后发出的;关断模块53,用于执行关断操作。 As shown in Figure 9, an embodiment of the present invention also provides a control processor for a dual-processor device, including: a pre-shutdown indication module 51, configured to send a pre-shutdown instruction module 51 to the computing processor when an arc is detected. The pre-shutdown output pre-handshake is used to enable the computing processor to stop relevant computing operations according to the pre-shutdown output pre-handshake; the pre-shutdown execution module 52 is used to receive a stop computing notification sent by the computing processor, and the stop computing notification is a computing operation. The processor receives the pre-shutdown output pre-handshake and sends it after completing the operation of the received data; the shutdown module 53 is used to perform the shutdown operation.
在一些可选实施例中,如图中虚线部分所示,该控制处理器还包括:重启交握模块54,用于在满足重启条件时,向运算处理器发送重启的前置交握,以便运算处理器根据重启的前置交握恢复运算准备;恢复确认模块55,用于在收到运算处理器反馈的恢复确认消息后,恢复获取设备运行数据,恢复向运算处理器发送设备运行数据,若运算处理器未处于休眠状态,则直接获取设备运行数据,并向运算处理器发送设备运行数据,恢复确认消息是运算处理器完成运算准备后发送的。In some optional embodiments, as shown in the dotted line part of the figure, the control processor also includes: a restart handshake module 54, configured to send a restart pre-handshake to the computing processor when the restart conditions are met, so that The operation processor resumes operation preparation according to the pre-handshake of restart; the recovery confirmation module 55 is used to resume obtaining the equipment operation data after receiving the recovery confirmation message fed back by the operation processor, and resume sending the equipment operation data to the operation processor, If the computing processor is not in the sleep state, the device operating data is directly obtained and sent to the computing processor. The recovery confirmation message is sent after the computing processor completes the computing preparation.
在一些可选实施例中,如图中虚线部分所示,该控制处理器还包括:第一数据冻结模块56,用于将电弧产生期间的设备运行数据冻结;第一休眠启动模块57,用于在执行关断操作后,控制处理器进入休眠状态;休眠判断模块58,用于判断运算处理器是否处于休眠状态。In some optional embodiments, as shown in the dotted line part of the figure, the control processor also includes: a first data freezing module 56, used to freeze the equipment operating data during arc generation; a first sleep start module 57, used to freeze the operating data of the equipment during arc generation; After performing the shutdown operation, the processor is controlled to enter the sleep state; the sleep judgment module 58 is used to determine whether the computing processor is in the sleep state.
其中,重启交握模块54向运算处理器发送重启的前置交握为:若运算处理器处于休眠状态,则重启交握模块54向运算处理器发送重启的前置交握。The restart handshake module 54 sends a restart pre-handshake to the arithmetic processor: if the arithmetic processor is in a sleep state, the restart handshake module 54 sends a restart pre-handshake to the arithmetic processor.
在一些可选实施例中,重启条件包括:关断时间是否满足预设关断时长;和/或,是否收到重启指示信息。In some optional embodiments, the restart conditions include: whether the shutdown time meets the preset shutdown duration; and/or whether restart instruction information is received.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到电弧发生,则向运算处理器发送预关断输出前置交握,运算处理器根据预关断输出前置交握完成已接收数据的运算并停止相关运算操作,控制处理器接收运算处理器发送的停止运算通知后执行关断操作,通过交握,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of the dual-processor device, if the control processor detects the occurrence of an arc, it will send a pre-shutdown output pre-handshake to the computing processor, and the computing processor will The shutdown output pre-handshake completes the calculation of the received data and stops the relevant calculation operations. The control processor performs the shutdown operation after receiving the stop calculation notification sent by the calculation processor. Through handshaking, the control processor and the calculation processor are ensured. The stability and consistency of data transmission between the two ends prevents the control processor circuit from being turned off while the other end of the operation processor is still performing unnecessary operations, causing the overall circuit to run erratically. This effectively ensures that when an arc occurs, the control processor and Data correctness between computing processors.
实施例6Example 6
如图10所示,本发明实施例还提供一种用于双处理器设备的运算处理器,包括:预关断指示接收模块61,用于接收控制处理器发送的预关断输出前置交握;运算停止控制模块62,用于完成已接收数据的运算后,停止 相关运算操作;运算停止通知模块63,用于向控制处理器发送停止运算通知,以便控制处理器接收停止运算通知后,执行关断操作。As shown in Figure 10, an embodiment of the present invention also provides an arithmetic processor for a dual-processor device, including: a pre-shutdown instruction receiving module 61, configured to receive the pre-shutdown output pre-interface sent by the control processor. Hold; the operation stop control module 62 is used to stop the operation after completing the operation of the received data. Related computing operations; the computing stop notification module 63 is used to send a computing stop notification to the control processor, so that the control processor performs a shutdown operation after receiving the computing stop notification.
在一些可选实施例中,如图中虚线部分所示,该运算处理器还包括:第二数据冻结模块64,用于将电弧产生期间的设备运行数据冻结;第二休眠启动模块65,用于运算处理器进入休眠状态;交握接收模块66,用于接收控制处理器发送的重启的前置交握;运算恢复模块67,用于根据重启的前置交握完成恢复运算准备;恢复消息发送模块68,用于向控制处理器发送恢复确认消息,以便控制处理器根据恢复确认消息恢复获取设备运行数据,恢复发送设备运行数据。In some optional embodiments, as shown in the dotted line in the figure, the computing processor also includes: a second data freezing module 64, used to freeze the equipment operating data during arc generation; a second sleep start module 65, used to freeze the operating data of the equipment during arc generation; After the operation processor enters the sleep state; the handshake receiving module 66 is used to receive the restart pre-handshake sent by the control processor; the operation recovery module 67 is used to complete the recovery operation preparation according to the restart pre-handshake; the recovery message The sending module 68 is configured to send a recovery confirmation message to the control processor, so that the control processor can resume obtaining the device operation data according to the recovery confirmation message and resume sending the device operation data.
设备数据接收模块69,用于接收控制处理器发送的设备运行数据。The equipment data receiving module 69 is used to receive equipment operation data sent by the control processor.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到电弧发生,则向运算处理器发送预关断输出前置交握,运算处理器根据预关断输出前置交握完成已接收数据的运算并停止相关运算操作,控制处理器接收运算处理器发送的停止运算通知后执行关断操作,通过交握,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of the dual-processor device, if the control processor detects the occurrence of an arc, it will send a pre-shutdown output pre-handshake to the computing processor, and the computing processor will The shutdown output pre-handshake completes the calculation of the received data and stops the relevant calculation operations. The control processor performs the shutdown operation after receiving the stop calculation notification sent by the calculation processor. Through handshaking, the control processor and the calculation processor are ensured. The stability and consistency of data transmission between the two ends prevents the control processor circuit from being turned off while the other end of the operation processor is still performing unnecessary operations, causing the overall circuit to run erratically. This effectively ensures that when an arc occurs, the control processor and Data correctness between computing processors.
实施例7Example 7
如图11所示,本发明实施例还提供一种双处理器设备,包括上述实施例5的用于双处理器设备的控制处理器和上述实施例6的用于双处理器设备的运算处理器。As shown in Figure 11, an embodiment of the present invention also provides a dual-processor device, including the control processor for the dual-processor device of the above-mentioned Embodiment 5 and the arithmetic processing for the dual-processor device of the above-mentioned Embodiment 6. device.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到电弧发生,则向运算处理器发送预关断输出前置交握,运算处理器根据预关断输出前置交握完成已接收数据的运算并停止相关运算操作,控制处理器接收运算处理器发送的停止运算通知后执行关断操作,通过交握,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算, 造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of the dual-processor device, if the control processor detects the occurrence of an arc, it will send a pre-shutdown output pre-handshake to the computing processor, and the computing processor will The shutdown output pre-handshake completes the calculation of the received data and stops the relevant calculation operations. The control processor performs the shutdown operation after receiving the stop calculation notification sent by the calculation processor. Through handshaking, the control processor and the calculation processor are ensured. The stability and consistency of data transmission between the two devices prevents the other end's computing processor from still performing unnecessary operations when the control processor circuit is turned off. This causes the overall circuit to run erratically, effectively ensuring the correctness of data between the control processor and the operation processor when an arc occurs.
实施例8Example 8
如图12所示,本发明公开实施例所提供的一种双处理器设备控制方法的流程图,双处理器设备包括控制处理器、运算处理器和共享存储器,共享存储器中设有关断指示标识,该方法由控制处理器实现,该方法包括:As shown in Figure 12, there is a flow chart of a dual-processor device control method provided by an embodiment of the present invention. The dual-processor device includes a control processor, an operation processor and a shared memory. The shared memory is provided with a shutdown indication flag. , this method is implemented by the control processor and includes:
S81:若检测到电弧发生,则执行关断操作;S81: If an arc is detected, the shutdown operation is performed;
S82:将共享存储器中的关断指示标识设置为关断状态,以便运算处理器根据关断指示标识的状态跳过获取第一设备运行数据,第一设备运行数据是控制处理器在电弧产生期间获取的设备运行数据。S82: Set the shutdown indication flag in the shared memory to the shutdown state, so that the computing processor skips acquiring the first device operation data according to the state of the shutdown indication flag. The first device operation data is to control the processor during arc generation. Obtained device operating data.
可以理解的是,本实施例提供的技术方案,基于双处理器的PID控制过程中,若控制处理器检测到电弧发生,则执行关断操作;并将共享存储器中的关断指示标识设置为关断状态,运算处理器根据关断指示标识的状态跳过获取控制处理器在电弧产生期间获取的设备运行数据,通过共享存储器,利用即使一方CPU写入产生区域保护,另一方CPU仍能读取的数据共享模式,令双方CPU在执行任何作业时,都能从高速存储单元里第一时间获取对方CPU变化的数据与工作状态,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍执行在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, in the technical solution provided by this embodiment, during the PID control process based on dual processors, if the control processor detects the occurrence of an arc, it will perform a shutdown operation; and set the shutdown indication flag in the shared memory to In the shutdown state, the computing processor skips the acquisition of the equipment operating data obtained by the control processor during the arc generation according to the status of the shutdown indicator. Through the shared memory, even if one CPU writes to generate area protection, the other CPU can still read The adopted data sharing mode enables the CPUs of both parties to immediately obtain the changing data and working status of the other CPU from the high-speed storage unit when executing any job, ensuring the stability of data transmission between the control processor and the operation processor. and consistency, to avoid that when the control processor circuit is turned off, the other end of the arithmetic processor is still performing unnecessary operations, causing the overall circuit to run erratically, effectively ensuring that when an arc occurs, the control processor and the arithmetic processor data correctness.
实施例9Example 9
作为实施例8的改进,如图13所示,本发明公开实施例所提供的另一种双处理器设备控制方法的流程图,双处理器设备包括控制处理器、运算处理器和共享存储器,共享存储器中设有关断指示标识,该方法由控制处理器实现,所述方法包括:As an improvement of Embodiment 8, as shown in Figure 13, the present invention discloses a flow chart of another dual-processor device control method provided by the embodiment. The dual-processor device includes a control processor, an operation processor and a shared memory. A shutdown indication flag is provided in the shared memory, and the method is implemented by the control processor. The method includes:
S91:控制处理器获取第二设备运行数据;S91: The control processor obtains the operating data of the second device;
S92:控制处理器通过共享存储器向运算处理器发送第二设备运行数据;S92: The control processor sends the second device operating data to the operation processor through the shared memory;
S93:若检测到电弧发生,则控制处理器执行关断操作; S93: If an arc is detected, the control processor performs a shutdown operation;
S94:控制处理器将共享存储器中的关断指示标识设置为关断状态,以便运算处理器根据关断指示标识的状态跳过获取第一设备运行数据,第一设备运行数据是控制处理器在电弧产生期间获取的设备运行数据;S94: The control processor sets the shutdown indication flag in the shared memory to the shutdown state, so that the operation processor skips acquiring the first device operation data according to the state of the shutdown instruction flag. The first device operation data is the control processor's Equipment operating data acquired during arc generation;
S95:控制处理器将电弧产生期间的设备运行数据冻结;S95: The control processor freezes the equipment operating data during arc generation;
S96:控制处理器进入休眠状态;S96: Control the processor to enter sleep state;
S97:在满足重启条件时,控制处理器重新启动;S97: When the restart conditions are met, the control processor restarts;
S98:控制处理器将共享存储器中的关断指示标识设置为正常状态,恢复执行S91。S98: The control processor sets the shutdown indication flag in the shared memory to the normal state and resumes execution of S91.
在一些可选实施例中,控制处理器将第二设备运行数据存入共享存储器,以便运算处理器可以从共享存储器中获取第二设备运行数据。In some optional embodiments, the control processor stores the second device operating data in the shared memory so that the operation processor can obtain the second device operating data from the shared memory.
在一些可选实施例中,重启条件包括:关断时间是否满足预设关断时长;和/或,是否收到重启指示信息。In some optional embodiments, the restart conditions include: whether the shutdown time meets the preset shutdown duration; and/or whether restart instruction information is received.
需要说明的是,本具体实施方式中记载的实施例只是对本发明构思下的具体实现方式进行示例性的描述,各个实施例中的步骤执行顺序不限于本文中提供的实施例,在具体工程实践中,可以由本领域技术人员根据实际情况对各个步骤的执行顺序进行调整,例如,S91和S97之间,没有必然的因果关系和先后关系,S97的重启操作也可以描述为在S91获取第二设备运行数据之后。It should be noted that the embodiments recorded in this specific implementation mode are only illustrative descriptions of specific implementations under the concept of the present invention. The execution order of the steps in each embodiment is not limited to the embodiments provided herein. In specific engineering practice , those skilled in the art can adjust the execution order of each step according to the actual situation. For example, there is no inevitable causal relationship and sequence between S91 and S97. The restart operation of S97 can also be described as obtaining the second device in S91. After running the data.
可以理解的是,本实施例提供的技术方案,基于双处理器的PID控制过程中,若控制处理器检测到电弧发生,则执行关断操作;并将共享存储器中的关断指示标识设置为关断状态,运算处理器根据关断指示标识的状态跳过获取控制处理器在电弧产生期间获取的设备运行数据,通过共享存储器,利用即使一方CPU写入产生区域保护,另一方CPU仍能读取的数据共享模式,令双方CPU在执行任何作业时,都能从高速存储单元里第一时间获取对方CPU变化的数据与工作状态,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍执行在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。 It can be understood that, in the technical solution provided by this embodiment, during the PID control process based on dual processors, if the control processor detects the occurrence of an arc, it will perform a shutdown operation; and set the shutdown indication flag in the shared memory to In the shutdown state, the computing processor skips the acquisition of the equipment operating data obtained by the control processor during the arc generation according to the status of the shutdown indicator. Through the shared memory, even if one CPU writes to generate area protection, the other CPU can still read The adopted data sharing mode enables the CPUs of both parties to immediately obtain the changing data and working status of the other CPU from the high-speed storage unit when executing any job, ensuring the stability of data transmission between the control processor and the operation processor. and consistency, to avoid that when the control processor circuit is turned off, the other end of the arithmetic processor is still performing unnecessary operations, causing the overall circuit to run erratically, effectively ensuring that when an arc occurs, the control processor and the arithmetic processor data correctness.
实施例10Example 10
如图14所示,本发明实施例还提供一种双处理器设备控制方法,双处理器设备包括控制处理器运算处理器和共享存储器,共享存储器中设有关断指示标识,该方法由运算处理器实现,该方法包括:As shown in Figure 14, an embodiment of the present invention also provides a method for controlling a dual-processor device. The dual-processor device includes a control processor, an arithmetic processor, and a shared memory. The shared memory is provided with a shutdown indication flag. The method consists of an arithmetic processing unit. Device implementation, this method includes:
S101:获取共享存储器中关断指示标识的状态;S101: Obtain the status of the shutdown indication flag in the shared memory;
S102:若关断指示标识为关断状态,则根据关断指示标识的状态跳过获取第一设备运行数据,第一设备运行数据是控制处理器在电弧产生期间获取的设备运行数据。S102: If the shutdown indication flag is in the shutdown state, skip acquiring the first equipment operation data according to the status of the shutdown instruction flag. The first equipment operation data is equipment operation data obtained by the control processor during arc generation.
可以理解的是,本实施例提供的技术方案,基于双处理器的PID控制过程中,若控制处理器检测到电弧发生,则执行关断操作;并将共享存储器中的关断指示标识设置为关断状态,运算处理器根据关断指示标识的状态跳过获取控制处理器在电弧产生期间获取的设备运行数据,通过共享存储器,利用即使一方CPU写入产生区域保护,另一方CPU仍能读取的数据共享模式,令双方CPU在执行任何作业时,都能从高速存储单元里第一时间获取对方CPU变化的数据或工作状态,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍执行在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, in the technical solution provided by this embodiment, during the PID control process based on dual processors, if the control processor detects the occurrence of an arc, it will perform a shutdown operation; and set the shutdown indication flag in the shared memory to In the shutdown state, the computing processor skips the acquisition of the equipment operating data obtained by the control processor during the arc generation according to the status of the shutdown indicator. Through the shared memory, even if one CPU writes to generate area protection, the other CPU can still read The adopted data sharing mode enables the CPUs of both parties to immediately obtain the changing data or working status of the other CPU from the high-speed storage unit when executing any job, ensuring the stability of data transmission between the control processor and the operation processor. and consistency, to avoid that when the control processor circuit is turned off, the other end of the arithmetic processor is still performing unnecessary operations, causing the overall circuit to run erratically, effectively ensuring that when an arc occurs, the control processor and the arithmetic processor data correctness.
实施例11Example 11
作为实施例10的一种改进,如图15所示,本发明实施例还提供一种双处理器设备控制方法,双处理器设备包括控制处理器运算处理器和共享存储器,共享存储器中设有关断指示标识,该方法由运算处理器实现,该方法包括:As an improvement of Embodiment 10, as shown in Figure 15, this embodiment of the present invention also provides a dual-processor device control method. The dual-processor device includes a control processor, an arithmetic processor, and a shared memory. The shared memory is configured with relevant Break indicator flag, this method is implemented by the operation processor, this method includes:
S111:在满足重启条件时,运算处理器重新启动,恢复执行S42;S111: When the restart conditions are met, the computing processor restarts and resumes execution of S42;
S112:运算处理器获取共享存储器中关断指示标识的状态;S112: The operation processor obtains the status of the shutdown indication flag in the shared memory;
S113:若关断指示标识为正常状态,则运算处理器从共享存储器中获取第一设备运行数据;S113: If the shutdown indication flag is in the normal state, the computing processor obtains the first device operating data from the shared memory;
S114:运算处理器根据第一设备运行数据进行控制参数计算; S114: The computing processor calculates control parameters based on the first device operating data;
S115:运算处理器通过共享存储器向控制处理器发送计算得到的控制参数;S115: The operation processor sends the calculated control parameters to the control processor through the shared memory;
S116:若关断指示标识为关断状态,则运算处理器根据关断指示标识的状态跳过获取第一设备运行数据,第一设备运行数据是控制处理器在电弧产生期间获取的设备运行数据;S116: If the shutdown indication flag is in the shutdown state, the computing processor skips acquiring the first equipment operation data according to the status of the shutdown indication flag. The first equipment operation data is the equipment operation data obtained by the control processor during arc generation. ;
S117:运算处理器将电弧产生期间的设备运行数据冻结;S117: The computing processor freezes the equipment operating data during arc generation;
S118:在关断指示标识为关断状态时,运算处理器进入休眠状态,等待重启条件触发。S118: When the shutdown indication mark is in the shutdown state, the computing processor enters the sleep state and waits for the restart condition to be triggered.
可以理解的是,本实施例提供的技术方案,基于双处理器的PID控制过程中,若控制处理器检测到电弧发生,则执行关断操作;并将共享存储器中的关断指示标识设置为关断状态,运算处理器根据关断指示标识的状态跳过获取控制处理器在电弧产生期间获取的设备运行数据,通过共享存储器,利用即使一方CPU写入产生区域保护,另一方CPU仍能读取的数据共享模式,令双方CPU在执行任何作业时,都能从高速存储单元里第一时间获取对方CPU变化的数据与工作状态,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍执行在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, in the technical solution provided by this embodiment, during the PID control process based on dual processors, if the control processor detects the occurrence of an arc, it will perform a shutdown operation; and set the shutdown indication flag in the shared memory to In the shutdown state, the computing processor skips the acquisition of the equipment operating data obtained by the control processor during the arc generation according to the status of the shutdown indicator. Through the shared memory, even if one CPU writes to generate area protection, the other CPU can still read The adopted data sharing mode enables the CPUs of both parties to immediately obtain the changing data and working status of the other CPU from the high-speed storage unit when executing any job, ensuring the stability of data transmission between the control processor and the operation processor. and consistency, to avoid that when the control processor circuit is turned off, the other end of the arithmetic processor is still performing unnecessary operations, causing the overall circuit to run erratically, effectively ensuring that when an arc occurs, the control processor and the arithmetic processor data correctness.
实施例12Example 12
本发明实施例还提供一种双处理器设备,双处理器设备包括控制处理器、运算处理器和共享存储器,共享存储器中设有关断指示标识,如图16所示,其中,控制处理器包括:关断指示模块121,用于在检测到电弧发生时,执行关断操作。An embodiment of the present invention also provides a dual-processor device. The dual-processor device includes a control processor, an operation processor and a shared memory. The shared memory is provided with a shutdown indication flag, as shown in Figure 16, where the control processor includes : The shutdown indication module 121 is used to perform a shutdown operation when an arc is detected.
关断状态设置模块122,用于将共享存储器中的关断指示标识设置为关断状态,以便运算处理器根据关断指示标识的状态跳过获取第一设备运行数据,第一设备运行数据是控制处理器在电弧产生期间获取的设备运行数据。The shutdown state setting module 122 is used to set the shutdown indication flag in the shared memory to the shutdown state, so that the computing processor skips obtaining the first device operation data according to the state of the shutdown instruction flag. The first device operation data is Equipment operating data acquired by the control processor during arc generation.
在一些可选实施例中,如图中虚线部分所示,该装置还可以包括:运 行数据获取模块123,用于获取第二设备运行数据。In some optional embodiments, as shown in the dotted line part in the figure, the device may also include: The row data acquisition module 123 is used to acquire the second device operating data.
运行数据发送模块124,用于通过共享存储器向运算处理器发送第二设备运行数据,恢复获取并通过共享存储器向运算处理器发送第二设备运行数据,以便运算处理器根据关断指示标识的状态从共享存储器获取第二设备运行数据。The operation data sending module 124 is configured to send the second device operation data to the operation processor through the shared memory, restore the acquisition and send the second device operation data to the operation processor through the shared memory, so that the operation processor can determine the status according to the shutdown indication. Obtain the second device operating data from the shared memory.
第一数据冻结模块125,用于将电弧产生期间的设备运行数据冻结。The first data freezing module 125 is used to freeze equipment operating data during arc generation.
第一休眠模块126,用于进入休眠状态。The first sleep module 126 is used to enter the sleep state.
第一重新启动模块127,用于在满足重启条件时,重新启动。The first restart module 127 is used to restart when restart conditions are met.
共享标识设置模块128,用于将共享存储器中的关断指示标识设置为正常状态。The shared flag setting module 128 is used to set the shutdown indication flag in the shared memory to a normal state.
在一些可选实施例中,重启条件包括:关断时间是否满足预设关断时长;和/或,是否收到重启指示信息。In some optional embodiments, the restart conditions include: whether the shutdown time meets the preset shutdown duration; and/or whether restart instruction information is received.
可以理解的是,本实施例提供的技术方案,基于双处理器的PID控制过程中,若控制处理器检测到电弧发生,则执行关断操作;并将共享存储器中的关断指示标识设置为关断状态,运算处理器根据关断指示标识的状态跳过获取控制处理器在电弧产生期间获取的设备运行数据,通过共享存储器,利用即使一方CPU写入产生区域保护,另一方CPU仍能读取的数据共享模式,令双方CPU在执行任何作业时,都能从高速存储单元里第一时间获取对方CPU变化的数据与工作状态,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍执行在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, in the technical solution provided by this embodiment, during the PID control process based on dual processors, if the control processor detects the occurrence of an arc, it will perform a shutdown operation; and set the shutdown indication flag in the shared memory to In the shutdown state, the computing processor skips the acquisition of the equipment operating data obtained by the control processor during the arc generation according to the status of the shutdown indicator. Through the shared memory, even if one CPU writes to generate area protection, the other CPU can still read The adopted data sharing mode enables the CPUs of both parties to immediately obtain the changing data and working status of the other CPU from the high-speed storage unit when executing any job, ensuring the stability of data transmission between the control processor and the operation processor. and consistency, to avoid that when the control processor circuit is turned off, the other end of the arithmetic processor is still performing unnecessary operations, causing the overall circuit to run erratically, effectively ensuring that when an arc occurs, the control processor and the arithmetic processor data correctness.
实施例13Example 13
本发明实施例还提供一种双处理器设备,双处理器设备包括控制处理器、运算处理器和共享存储器,共享存储器中设有关断指示标识,如图17所示,其中,运算处理器包括:关断标识获取模块131,用于获取共享存储器中关断指示标识的状态。An embodiment of the present invention also provides a dual-processor device. The dual-processor device includes a control processor, an arithmetic processor and a shared memory. The shared memory is provided with a shutdown indication flag, as shown in Figure 17, where the arithmetic processor includes : Shutdown flag acquisition module 131, used to obtain the status of the shutdown indication flag in the shared memory.
关断数据处理模块132,用于若关断指示标识为关断状态,则根据关 断指示标识的状态跳过获取第一设备运行数据,第一设备运行数据是控制处理器在电弧产生期间获取的设备运行数据。The shutdown data processing module 132 is used to process the shutdown data according to the shutdown indication if the shutdown indication is in the shutdown state. The status of the fault indicator flag skips obtaining the first equipment operation data. The first equipment operation data is equipment operation data obtained by the control processor during arc generation.
在一些可选实施例中,如图中虚线部分所示,该装置还包括:运行数据提取模块133,用于若关断指示标识为正常状态,则从共享存储器中获取第一设备运行数据,在重新启动后,恢复获取共享存储器中关断指示标识的状态。In some optional embodiments, as shown in the dotted line part of the figure, the device also includes: an operating data extraction module 133, configured to obtain the first device operating data from the shared memory if the shutdown indication is in a normal state, After restarting, resume obtaining the status of the shutdown indication flag in the shared memory.
控制参数运算模块134,用于根据第一设备运行数据进行控制参数计算。The control parameter calculation module 134 is used to calculate control parameters based on the first equipment operating data.
控制参数发送模块135,用于通过共享存储器向控制处理器发送计算得到的控制参数。The control parameter sending module 135 is used to send the calculated control parameters to the control processor through the shared memory.
第二休眠模块1313,用于在关断指示标识为关断状态时,进入休眠状态。The second sleep module 1313 is configured to enter the sleep state when the shutdown indication flag is in the shutdown state.
第二重新启动模块137,用于在满足重启条件时,重新启动。The second restart module 137 is used to restart when the restart conditions are met.
第二数据冻结模块138,用于将电弧产生期间的设备运行数据冻结。The second data freezing module 138 is used to freeze equipment operating data during arc generation.
可以理解的是,本实施例提供的技术方案,基于双处理器的PID控制过程中,若控制处理器检测到电弧发生,则执行关断操作;并将共享存储器中的关断指示标识设置为关断状态,运算处理器根据关断指示标识的状态跳过获取控制处理器在电弧产生期间获取的设备运行数据,通过共享存储器,利用即使一方CPU写入产生区域保护,另一方CPU仍能读取的数据共享模式,令双方CPU在执行任何作业时,都能从高速存储单元里第一时间获取对方CPU变化的数据与工作状态,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍执行在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, in the technical solution provided by this embodiment, during the PID control process based on dual processors, if the control processor detects the occurrence of an arc, it will perform a shutdown operation; and set the shutdown indication flag in the shared memory to In the shutdown state, the computing processor skips the acquisition of the equipment operating data obtained by the control processor during the arc generation according to the status of the shutdown indicator. Through the shared memory, even if one CPU writes to generate area protection, the other CPU can still read The adopted data sharing mode enables the CPUs of both parties to immediately obtain the changing data and working status of the other CPU from the high-speed storage unit when executing any job, ensuring the stability of data transmission between the control processor and the operation processor. and consistency, to avoid that when the control processor circuit is turned off, the other end of the arithmetic processor is still performing unnecessary operations, causing the overall circuit to run erratically, effectively ensuring that when an arc occurs, the control processor and the arithmetic processor data correctness.
实施例14Example 14
如图18所示,本发明实施例还提供一种双处理器设备,包括共享存储器141、上述双处理器设备中的控制处理器142和运算处理器143,其中,共享存储器141中设有关断指示标识。 As shown in Figure 18, an embodiment of the present invention also provides a dual-processor device, including a shared memory 141, a control processor 142 and an arithmetic processor 143 in the dual-processor device, wherein the shared memory 141 is provided with a shutdown Instructions.
为便于读者理解,下面结合图19、图20、图21的时序图,对双处理器设备进行详细说明,CPUA为控制处理器,CPUB为运算处理器,RAM为共享存储器,FLAG为关断指示标识:In order to facilitate readers' understanding, the dual-processor device is described in detail below in conjunction with the timing diagrams in Figure 19, Figure 20, and Figure 21. CPUA is the control processor, CPUB is the operation processor, RAM is the shared memory, and FLAG is the shutdown indication. Identification:
一般模式下,双处理器设备PID控制包括以下过程:In general mode, dual-processor device PID control includes the following processes:
CPUA未检测到电弧,不改写RAM里CPUA的工作FLAG;CPUA does not detect arc and does not rewrite CPUA's working FLAG in RAM;
CPUA传输PID运算必要数据写入RAM;CPUA transfers the necessary data for PID operation and writes it into RAM;
CPUB读取RAM里CPUA的工作FLAG,并判断为ENABLE;CPUB reads the working FLAG of CPUA in RAM and determines it as ENABLE;
CPUB读取RAM获取数据进行PID运算;CPUB reads RAM to obtain data for PID operation;
CPUB将运算产生的电路控制参数写入RAM;CPUB writes the circuit control parameters generated by the operation into RAM;
CPUA读取RAM获取参数来控制电路运行与功率输出。CPUA reads RAM to obtain parameters to control circuit operation and power output.
通过共享存储的模式,双处理器设备PID控制包括以下过程:Through the shared storage mode, dual-processor device PID control includes the following processes:
第1时序时:During the 1st sequence:
CPUA检测电弧,改写RAM里CPUA的工作FLAG为DISABLE;CPUA detects arc and rewrites CPUA's working FLAG in RAM to DISABLE;
CPUA执行关断输出;CPUA executes shutdown output;
CPUB读取RAM里CPUA的工作FLAG,并判断为DISABLE;CPUB reads the working FLAG of CPUA in RAM and determines it as DISABLE;
CPUB不读取RAM,不执行当前时序的PID运算。CPUB does not read RAM and does not perform the PID operation of the current sequence.
进一步的,可以冻结数据,CPUB或双CPU进入有限度休眠。Further, data can be frozen, and CPUB or dual CPU can enter limited sleep.
第N时序时,N>1的整数:At the Nth timing, N>1 is an integer:
CPUA重启控制电路进行功率输出;CPUA restarts the control circuit for power output;
CPUA改写RAM里CPUA的工作FLAG;CPUA rewrites CPUA’s working FLAG in RAM;
CPUA传输PID运算必要数据写入RAM;CPUA transfers the necessary data for PID operation and writes it into RAM;
CPUB读取RAM里CPUA的工作FLAG,并判断为ENABLE;CPUB reads the working FLAG of CPUA in RAM and determines it as ENABLE;
CPUB读取RAM获取数据进行PID运算;CPUB reads RAM to obtain data for PID operation;
CPUB将运算产生的电路控制参数写入RAM。CPUB writes the circuit control parameters generated by the operation into RAM.
可以理解的是,本实施例提供的技术方案,基于双处理器的PID控制过程中,若控制处理器检测到电弧发生,则执行关断操作;并将共享存储器中的关断指示标识设置为关断状态,运算处理器根据关断指示标识的状态跳过获取控制处理器在电弧产生期间获取的设备运行数据,通过共享存 储器,利用即使一方CPU写入产生区域保护,另一方CPU仍能读取的数据共享模式,令双方CPU在执行任何作业时,都能从高速存储单元里第一时间获取对方CPU变化的数据与工作状态,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍执行在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, in the technical solution provided by this embodiment, during the PID control process based on dual processors, if the control processor detects the occurrence of an arc, it will perform a shutdown operation; and set the shutdown indication flag in the shared memory to In the shutdown state, the operation processor skips the acquisition of the equipment operating data obtained by the control processor during the arc generation according to the status of the shutdown indicator, and uses the shared memory to Memory, using the data sharing mode that even if one CPU writes to generate area protection, the other CPU can still read it, so that when both CPUs perform any job, they can immediately obtain the changed data of the other CPU from the high-speed storage unit and working status to ensure the stability and consistency of data transmission between the control processor and the arithmetic processor, and to avoid that when the control processor circuit is turned off, the other end arithmetic processor is still performing unnecessary operations, causing overall circuit chaos. operation, effectively ensuring the correctness of data between the control processor and the operation processor when an arc occurs.
实施例15Example 15
本发明公开实施例所提供的一种双处理器设备,其结构示意图同图11,该设备包括:A dual-processor device provided by the disclosed embodiments of the present invention has a schematic structural diagram similar to that shown in Figure 11. The device includes:
控制处理器151(图中未示出),若检测到有电弧产生,则执行指定操作,指定操作包括以下操作中的至少一种:操作一,停止被运算处理器152(图中未示出)获取设备运行数据;操作二,向运算处理器152发送关断运算指示;The control processor 151 (not shown in the figure), if an arc is detected, performs a specified operation. The specified operation includes at least one of the following operations: Operation 1: Stop the processor 152 (not shown in the figure). ) Obtain equipment operating data; operation two, send a shutdown operation instruction to the operation processor 152;
运算处理器152,根据指定操作产生的结果确定操作策略,以保证控制处理器11获得正确的控制参数,指定操作产生的结果包括:是否获取到设备运行数据以及是否接收到关断运算指示,操作策略包括以下方式的至少一种:The operation processor 152 determines the operation strategy according to the results generated by the specified operation to ensure that the control processor 11 obtains correct control parameters. The results generated by the specified operation include: whether the equipment operation data is obtained and whether the shutdown operation instruction is received. Strategies include at least one of the following methods:
方式一,中断相关控制参数运算操作;Method 1: interrupt the operation of relevant control parameters;
方式二,停止向控制处理器151发送已完成计算的相关控制参数。Method 2: Stop sending the relevant control parameters that have been calculated to the control processor 151 .
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到有电弧产生,可以停止被运算处理器获取设备运行数据,也可以向运算处理器发送关断运算指示;运算处理器根据是否获取到所述设备运行数据,也可以根据是否接收到关断运算指示,确定是否中断相关控制参数运算操作,或者停止向控制处理器发送已完成计算的相关控制参数,以保证控制处理器获得正确的控制参数,确保电弧产生,控制处理器关断电路时,双处理器彼此之间的数据能维持较佳的正确性,适时停止PID运算,避免拉长关断时机点,同时减少丢弃数据的情形,避免一端电路关断时,另一端仍执行,造成整体电路错乱运行,只要未开始PID整 体运算,可以中断运算或不发送已完成运算的运作参数,适用于指令、交握或共享数据,关断时,进行数据冻结,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端It can be understood that, according to the technical solution provided by this embodiment, during the control process of a dual-processor device, if the control processor detects the occurrence of an arc, it can stop the operation processor from obtaining the device operation data, and can also send a notification to the operation processor. Shutdown operation instruction; the operation processor can determine whether to interrupt the relevant control parameter operation operation based on whether it obtains the device operation data or whether it receives the shutdown operation instruction, or to stop sending the completed calculated related control to the control processor. Parameters to ensure that the control processor obtains correct control parameters to ensure arc generation. When the control processor turns off the circuit, the data between the two processors can maintain better accuracy and stop the PID operation in a timely manner to avoid prolonged shutdown. shutdown timing, and at the same time reduce the situation of discarding data, to avoid that when one end of the circuit is shut down, the other end is still executing, causing the overall circuit to run erratically, as long as the PID adjustment is not started. Body computing can interrupt the operation or not send the operation parameters of the completed operation. It is suitable for instructions, handshaking or sharing data. When shutting down, the data is frozen to ensure the stability and stability of data transmission between the control processor and the operation processor. consistency to avoid controlling the processor circuitry when the other end
运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。The arithmetic processor is still performing unnecessary operations, causing the overall circuit to run erratically, effectively ensuring the correctness of data between the control processor and the arithmetic processor when an arc occurs.
实施例16Example 16
作为实施例15的一种改进,示意图同图18,本发明公开实施例所提供的另一种双处理器设备,该设备包括:As an improvement of Embodiment 15, the schematic diagram is the same as that of Figure 18. The present invention discloses another dual-processor device provided by the embodiment. The device includes:
控制处理器,若检测到有电弧产生,则执行指定操作,指定操作包括以下操作中的至少一种:Control the processor to perform specified operations if arc generation is detected, and the specified operations include at least one of the following operations:
操作一,停止被运算处理器获取设备运行数据;Operation 1: Stop the processor being processed from obtaining device operating data;
操作二,向运算处理器发送关断运算指示;Operation 2: Send a shutdown operation instruction to the operation processor;
运算处理器,根据指定操作产生的结果确定操作策略,以保证控制处理器21获得正确的控制参数,指定操作产生的结果包括:是否获取到设备运行数据以及是否接收到关断运算指示,操作策略包括以下方式的至少一种:The operation processor determines the operation strategy according to the results generated by the specified operation to ensure that the control processor 21 obtains the correct control parameters. The results generated by the specified operation include: whether the equipment operation data is obtained and whether the shutdown operation instruction is received, the operation strategy Including at least one of the following methods:
方式一,中断相关控制参数运算操作;Method 1: interrupt the operation of relevant control parameters;
方式二,停止向控制处理器发送已完成计算的相关控制参数。Method 2: Stop sending the relevant control parameters that have been calculated to the control processor.
在一些可选实施例中,控制处理器在停止被运算处理器获取设备运行数据的同时,执行关断操作。In some optional embodiments, the control processor performs a shutdown operation while stopping the operation processor from obtaining device operating data.
需要说明的是,关于运算控制模块获取设备运行数据的方式,可以是控制处理器主动将设备运行数据发送给运算处理器,也可以是运算处理器向控制处理器读取设备运行数据。本发明实施例中控制处理器停止被运算处理器获取设备运行数据,可以理解为控制处理器停止主动向运算处理器发送设备运行数据,也可以理解为运算处理器停止主动读取运算处理器的设备运行数据。It should be noted that as for the way in which the operation control module obtains the equipment operation data, the control processor can actively send the equipment operation data to the operation processor, or the operation processor can read the equipment operation data from the control processor. In the embodiment of the present invention, the control processor stops the operation processor from obtaining the device operation data. This can be understood as the control processor stopping actively sending the device operation data to the operation processor. It can also be understood as the operation processor stopping actively reading the operation processor's data. Equipment operating data.
在一些可选实施例中,该装置还包括共享存储器,共享存储器设有关断指示标识,关断指示标识的状态包括关断状态和正常状态,控制处理器 向运算处理器发送关断运算指示包括:控制处理器执行关断操作,并将关断指示标识的状态设置为关断状态,运算处理器,从共享存储器获取关断指示标识的状态,将关断状态认定为关断运算指示。In some optional embodiments, the device further includes a shared memory. The shared memory is provided with a shutdown indication flag. The status of the shutdown indication flag includes a shutdown state and a normal state. The control processor Sending a shutdown operation instruction to the operation processor includes: controlling the processor to perform a shutdown operation and setting the status of the shutdown instruction flag to the shutdown state. The operation processor obtains the status of the shutdown instruction flag from the shared memory and sets the shutdown instruction flag to the shutdown state. The off state is regarded as the off operation instruction.
在一些可选实施例中,控制处理器通过共享存储器被运算处理器获取设备运行数据;运算处理器从共享存储器获取设备运行数据,通过共享存储器向控制处理器发送控制参数。In some optional embodiments, the control processor obtains device operating data from the computing processor through the shared memory; the computing processor obtains the device operating data from the shared memory and sends control parameters to the control processor through the shared memory.
在一些可选实施例中,控制处理器向运算处理器发送关断运算指示为:In some optional embodiments, the control processor sends the shutdown operation instruction to the operation processor as:
控制处理器向运算处理器发送预关断输出前置交握;The control processor sends a pre-shutdown output pre-handshake to the operation processor;
运算处理器,接收预关断输出前置交握,根据预关断输出前置交握停止相关运算操作,在完成已接收数据的运算后向控制处理器发送停止运算通知;The operation processor receives the pre-shutdown output pre-handshake, stops relevant operation operations according to the pre-shutdown output pre-handshake, and sends a stop operation notification to the control processor after completing the operation of the received data;
控制处理器,接收到运算处理器发送的停止运算通知后,执行关断操作。The control processor performs a shutdown operation after receiving the stop operation notification sent by the operation processor.
在一些可选实施例中,控制处理器在检测到有电弧产生时,若查询到存在未发送出去的控制参数,则停止发送当前未发送出去的控制参数。In some optional embodiments, when the control processor detects that an arc is generated, if it queries that there are control parameters that have not been sent, it stops sending the control parameters that are currently not sent.
在一些可选实施例中,运算处理器若未获取到控制处理器发送的设备运行数据,则停止当前全部控制参数计算。In some optional embodiments, if the operation processor does not obtain the device operation data sent by the control processor, it stops all current control parameter calculations.
在一些可选实施例中,控制参数运算依次包括PID计算阶段和数模转换阶段,运算处理器根据指定操作产生的结果确定操作策略包括:运算处理器在接收到控制处理器发送的关断运算指示后,判断当前的控制参数运算进度;若获取到相关设备运行数据,且已开始模数转换,但尚未开始进行PID计算,则不进行PID计算及后续数模转换;若获取到相关设备运行数据,且已开始PID计算,但尚未开始数模运算,则完成当前PID计算。In some optional embodiments, the control parameter operation includes a PID calculation stage and a digital-to-analog conversion stage in sequence. The operation processor determines the operation strategy based on the results generated by the specified operation. The operation processor receives the shutdown operation sent by the control processor. After the instruction, the current control parameter calculation progress is judged; if the relevant equipment operation data is obtained, and the analog-to-digital conversion has been started, but the PID calculation has not yet started, the PID calculation and subsequent digital-to-analog conversion will not be performed; if the relevant equipment operation data is obtained data, and the PID calculation has started, but the digital-analog operation has not yet started, then the current PID calculation is completed.
在一些可选实施例中,运算处理器未获取到控制处理器发送的设备运行数据,或者,运算处理器从共享存储器获取关断指示标识为关断状态,运算处理器进入有限度休眠状态。In some optional embodiments, the computing processor does not obtain the device operation data sent by the control processor, or the computing processor obtains a shutdown indication flag from the shared memory to indicate the shutdown state, and the computing processor enters a limited sleep state.
在一些可选实施例中,运算处理器根据预关断输出前置交握停止相关运算操作后,运算处理器进入有限度休眠状态。 In some optional embodiments, after the computing processor stops relevant computing operations according to the pre-shutdown output pre-handshake, the computing processor enters a limited sleep state.
在一些可选实施例中,还包括共享存储器,共享存储器设有关断指示标识,关断指示标识的状态包括关断状态和正常状态;控制处理器在执行关断操作后,进入有限度休眠状态;控制处理器在满足重新启动条件时,重新启动,将共享存储器中的关断指示标识设置为正常状态,并且恢复通过共享存储器向运算处理器发送重新获取的设备运行数据;运算处理器,恢复获取共享存储器中关断指示标识的状态。In some optional embodiments, a shared memory is also included. The shared memory is provided with a shutdown indication flag, and the status of the shutdown indication flag includes a shutdown state and a normal state; the control processor enters a limited sleep state after performing the shutdown operation. ; When the restart conditions are met, the control processor restarts, sets the shutdown indication flag in the shared memory to the normal state, and resumes sending the reacquired device operation data to the computing processor through the shared memory; the computing processor resumes Get the status of the shutdown indication flag in the shared memory.
在一些可选实施例中,控制处理器在执行关断操作后,进入有限度休眠状态;In some optional embodiments, the control processor enters a limited sleep state after performing a shutdown operation;
控制处理器,在满足重新启动条件时,向运算处理器发送重启的前置交握,在收到运算处理器反馈的恢复确认消息后,恢复获取设备运行数据,恢复被运算处理器获取设备运行数据;运算处理器,接收控制处理器发送的重启的前置交握,根据重启的前置交握完成恢复运算准备,向控制处理器发送恢复确认消息。The control processor, when the restart conditions are met, sends a restart pre-handshake to the computing processor. After receiving the recovery confirmation message fed back by the computing processor, it resumes obtaining the device operation data, and resumes the acquisition of device operation by the computing processor. Data; operation processor, receives the restart pre-handshake sent by the control processor, completes the recovery operation preparation according to the restart pre-handshake, and sends a recovery confirmation message to the control processor.
在一些可选实施例中,运算处理器在进入有限度休眠状态之前,将获取到的电弧产生期间的设备运行数据冻结;控制处理器在进入有限度休眠状态之前,将电弧产生期间的设备运行数据冻结。In some optional embodiments, the operation processor freezes the acquired equipment operation data during the arc generation before entering the limited sleep state; the control processor freezes the equipment operation data during the arc generation before entering the limited sleep state. Data freeze.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处器块检测到有电弧产生,可以停止被运算处理器获取设备运行数据,也可以向运算处理器发送关断运算指示;运算处理器根据是否获取到所述设备运行数据,也可以根据是否接收到关断运算指示确定是否中断相关控制参数运算操作,或者停止向控制处理器发送已完成计算的相关控制参数,以保证控制处理器获得正确的控制参数,确保电弧产生,控制处理器关断电路时,双处理器彼此之间的数据能维持较佳的正确性,适时停止PID运算,避免拉长关断时机点,同时减少丢弃数据的情形,避免一端电路关断时,另一端仍执行,造成整体电路错乱运行,只要未开始PID整体运算,可以中断运算或不发送已完成运算的运作参数,适用于指令、交握或共享数据,关断时,进行数据冻结,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处 理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of the dual-processor device, if the control processor block detects the occurrence of an arc, it can stop the operation processor from obtaining the device operation data, and can also send the operation data to the operation processor. Shutdown operation instruction; the operation processor can determine whether to interrupt the relevant control parameter operation operation based on whether it obtains the device operation data, or whether it receives the shutdown operation instruction, or to stop sending the completed calculated related control to the control processor. Parameters to ensure that the control processor obtains correct control parameters to ensure arc generation. When the control processor turns off the circuit, the data between the two processors can maintain better accuracy and stop the PID operation in a timely manner to avoid prolonged shutdown. Shut down timing, while reducing the situation of discarding data, to avoid that when one end of the circuit is shut down, the other end is still executing, causing the entire circuit to run erratically. As long as the overall PID operation has not started, the operation can be interrupted or the operation parameters of the completed operation can not be sent. Applicable During instruction, handshake or shared data, the data is frozen when it is shut down to ensure the stability and consistency of data transmission between the control processor and the operation processor, and to avoid that when the control processor circuit is shut down, the other end of the operation processor The processor is still performing unnecessary operations, causing the overall circuit to run erratically, effectively ensuring the correctness of data between the control processor and the operation processor when an arc occurs.
实施例17Example 17
如图22所示,本发明实施例还提供一种双处理器设备控制方法,该方法用于双处理器设备,双处理器包括控制处理器和运算处理器,该方法用于控制处理器,该方法包括:As shown in Figure 22, an embodiment of the present invention also provides a method for controlling a dual-processor device. The method is used for a dual-processor device. The dual-processor includes a control processor and an arithmetic processor. The method is used for controlling the processor. The method includes:
S171:若检测到有电弧产生,则控制处理器执行指定操作,指定操作包括以下操作中的至少一种:操作一,停止被运算处理器获取设备运行数据;操作二,向运算处理器发送关断运算指示;S171: If an arc is detected, the control processor performs a specified operation. The specified operation includes at least one of the following operations: operation one, stop the operation processor from obtaining equipment operating data; operation two, send a notification to the operation processor. Break operation instructions;
S172:运算处理器根据指定操作产生的结果确定操作策略,以保证控制处理器获得正确的控制参数,指定操作产生的结果包括:是否获取到设备运行数据以及是否接收到关断运算指示,操作策略包括以下方式的至少一种:方式一,中断相关控制参数运算操作;方式二,停止向控制处理器发送已完成计算的相关控制参数。S172: The operation processor determines the operation strategy based on the results generated by the specified operation to ensure that the control processor obtains correct control parameters. The results generated by the specified operation include: whether the device operating data is obtained and whether the shutdown operation instruction is received, the operation strategy Including at least one of the following methods: method one, interrupting the calculation operation of the relevant control parameters; method two, stopping sending the relevant control parameters that have been calculated to the control processor.
在一些可选实施例中,控制处理器在检测到有电弧产生时,若查询到存在未发送出去的控制参数,则停止发送当前未发送出去的控制参数。In some optional embodiments, when the control processor detects that an arc is generated, if it queries that there are control parameters that have not been sent, it stops sending the control parameters that are currently not sent.
在一些可选实施例中,前述指定操作还包括:控制处理器停止被运算处理器获取设备运行数据的同时,执行关断操作。In some optional embodiments, the aforementioned specified operation also includes: controlling the processor to stop the operation processor from obtaining device operating data and performing a shutdown operation at the same time.
在一些可选实施例中,双处理器设备还包括共享存储器,共享存储器设有关断指示标识,关断指示标识的状态包括关断状态和正常状态,该种方案中,控制处理器向运算处理器发送关断运算指示包括:控制处理器执行关断操作,并将关断指示标识的状态设置为关断状态,以便运算处理器从共享存储器获取关断指示标识的状态,将关断状态认定为关断运算指示。In some optional embodiments, the dual-processor device also includes a shared memory, and the shared memory is provided with a shutdown indication flag. The status of the shutdown indication flag includes a shutdown state and a normal state. In this solution, the control processor controls the operation process. The processor sends a shutdown operation instruction including: controlling the processor to perform a shutdown operation and setting the status of the shutdown instruction flag to the shutdown state, so that the operation processor obtains the status of the shutdown instruction flag from the shared memory and identifies the shutdown state. Indicates the shutdown operation.
在一些可选实施例中,控制处理器,通过共享存储器向运算处理器发送设备运行数据。In some optional embodiments, the control processor sends device operation data to the operation processor through the shared memory.
在一些可选实施例中,控制处理器向运算处理器发送关断运算指示为:控制处理器向运算处理器发送预关断输出前置交握,接收到运算处理器发送的停止运算通知后,执行关断操作,运算处理器根据是否获取到设备运 行数据确定操作策略。In some optional embodiments, the control processor sends a shutdown operation instruction to the operation processor as follows: the control processor sends a pre-shutdown output pre-handshake to the operation processor, and after receiving the stop operation notification sent by the operation processor , perform a shutdown operation, and the computing processor determines whether the device operation Row data determines operational strategies.
在一些可选实施例中,控制处理器在执行关断操作后,进入有限度休眠状态;控制处理器在满足重新启动条件时重新启动,将共享存储器中的关断指示标识设置为正常状态,并且恢复通过共享存储器向运算处理器发送重新获取的设备运行数据,或者,控制处理器在满足重新启动条件时,向运算处理器发送重启的前置交握,在收到运算处理器反馈的恢复确认消息后,恢复获取设备运行数据,恢复被运算处理器获取设备运行数据。In some optional embodiments, the control processor enters a limited sleep state after performing the shutdown operation; the control processor restarts when the restart conditions are met, and sets the shutdown indication flag in the shared memory to the normal state, And resume sending the reacquired device operation data to the computing processor through the shared memory, or, when the restart conditions are met, the control processor sends a restart pre-handshake to the computing processor, and after receiving the recovery feedback from the computing processor After confirming the message, the acquisition of device operation data is resumed, and the operation processor is resumed to obtain device operation data.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到有电弧产生,可以停止被运算处理器获取设备运行数据,也可以向运算处理器发送关断运算指示;运算处理器根据是否获取到所述设备运行数据,也可以根据是否接收到关断运算指示确定是否中断相关控制参数运算操作,或者停止向控制处理器发送已完成计算的相关控制参数,以保证控制处理器获得正确的控制参数,确保电弧产生,控制处理器关断电路时,双处理器彼此之间的数据能维持较佳的正确性,适时停止PID运算,避免拉长关断时机点,同时减少丢弃数据的情形,避免一端电路关断时,另一端仍执行,造成整体电路错乱运行,只要未开始PID整体运算,可以中断运算或不发送已完成运算的运作参数,适用于指令、交握或共享数据,关断时,进行数据冻结,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of a dual-processor device, if the control processor detects the occurrence of an arc, it can stop the operation processor from obtaining the device operation data, and can also send a notification to the operation processor. Shutdown operation instruction; the operation processor can determine whether to interrupt the relevant control parameter operation operation based on whether it obtains the device operation data, or whether it receives the shutdown operation instruction, or to stop sending the completed calculated relevant control parameters to the control processor. , to ensure that the control processor obtains correct control parameters and ensures arc generation. When the control processor turns off the circuit, the data between the two processors can maintain better accuracy and stop the PID operation in a timely manner to avoid prolonged shutdown. Timing, while reducing the situation of discarding data, to avoid that when one end of the circuit is turned off, the other end is still executing, causing the entire circuit to run erratically. As long as the overall PID operation has not started, the operation can be interrupted or the operation parameters of the completed operation can not be sent. It is suitable for Instructions, handshakes or shared data are frozen when the control processor is turned off to ensure the stability and consistency of data transmission between the control processor and the computing processor, and to prevent the other end of the computing processor from still being connected when the control processor circuit is turned off. When performing unnecessary operations, causing the overall circuit to run erratically, it effectively ensures the correctness of data between the control processor and the operation processor when an arc occurs.
实施例18Example 18
如图23所示,本发明实施例还提供一种双处理器设备控制方法,该方法用于双处理器设备,双处理器包括控制处理器和运算处理器,方法用于运算处理器,该方法包括:As shown in Figure 23, an embodiment of the present invention also provides a dual-processor device control method. The method is used in a dual-processor device. The dual-processor includes a control processor and an arithmetic processor. The method is used in an arithmetic processor. Methods include:
S181:运算处理器获取控制处理器执行指定操作后产生的结果,指定操作包括以下操作中的至少一种:操作一,停止被运算处理器获取设备运行数据;操作二,向运算处理器发送关断运算指示,指定操作产生的结果 包括是否获取到所述设备运行数据以及是否接收到关断运算指示;S181: The operation processor obtains the result generated after the control processor performs the specified operation. The specified operation includes at least one of the following operations: Operation 1, stop the operation processor from obtaining device operation data; Operation 2, send the operation data to the operation processor. Break operation instruction, specify the result of the operation Including whether the equipment operating data is obtained and whether a shutdown operation instruction is received;
S182:运算处理器根据指定操作产生的结果确定操作策略,以保证控制处理器获得正确的控制参数,操作策略包括以下方式的至少一种:方式一,中断相关控制参数运算操作;方式二,停止向控制处理器发送已完成计算的相关控制参数。S182: The operation processor determines the operation strategy based on the results generated by the specified operation to ensure that the control processor obtains correct control parameters. The operation strategy includes at least one of the following methods: Method 1, interrupt the relevant control parameter operation; Method 2, stop Sends the relevant control parameters that have been calculated to the control processor.
在一些可选实施例中,双处理器设备还包括共享存储器,共享存储器设有关断指示标识,关断指示标识的状态包括关断状态和正常状态;该方案中,控制处理器执行关断操作后,将关断指示标识的状态设置为关断状态;运算处理器从共享存储器获取关断指示标识的状态,将关断状态认定为关断运算指示。In some optional embodiments, the dual-processor device also includes a shared memory, and the shared memory is provided with a shutdown indication flag, and the status of the shutdown indication flag includes a shutdown state and a normal state; in this solution, the control processor performs a shutdown operation Then, the state of the shutdown indication flag is set to the shutdown state; the operation processor obtains the status of the shutdown indication flag from the shared memory, and identifies the shutdown state as the shutdown operation instruction.
在一些可选实施例中,运算处理器从共享存储器获取设备运行数据,通过共享存储器向控制处理器发送控制参数。In some optional embodiments, the computing processor obtains device operating data from the shared memory and sends control parameters to the control processor through the shared memory.
在一些可选实施例中,若控制处理器向运算处理器发送预关断输出前置交握,运算处理器接收预关断输出前置交握,根据预关断输出前置交握停止相关运算操作,在完成已接收数据的运算后向控制处理器发送停止运算通知,以便控制处理器,接收到运算处理器发送的停止运算通知后,执行关断操作。In some optional embodiments, if the control processor sends a pre-shutdown output pre-handshake to the arithmetic processor, the arithmetic processor receives the pre-shutdown output pre-handshake, and stops the correlation according to the pre-shutdown output pre-handshake. In the operation operation, after completing the operation of the received data, a stop operation notification is sent to the control processor, so that the control processor performs a shutdown operation after receiving the stop operation notice sent by the operation processor.
在一些可选实施例中,运算处理器若未获取到控制处理器的设备运行数据,则停止当前全部控制参数计算。In some optional embodiments, if the operation processor fails to obtain the device operation data of the control processor, it stops all current control parameter calculations.
在一些可选实施例中,控制参数运算依次包括PID计算阶段和数模转换阶段,运算处理器根据指定操作产生的结果确定操作策略包括:运算处理器在接收到控制处理器发送的关断运算指示后,判断当前的控制参数运算进度;若获取到相关设备运行数据,且已开始模数转换,但尚未开始进行PID计算,则不进行PID计算及后续数模转换;若获取到相关设备运行数据,且已开始PID计算,但尚未开始数模运算,则完成当前PID计算。In some optional embodiments, the control parameter operation includes a PID calculation stage and a digital-to-analog conversion stage in sequence. The operation processor determines the operation strategy based on the results generated by the specified operation. The operation processor receives the shutdown operation sent by the control processor. After the instruction, the current control parameter calculation progress is judged; if the relevant equipment operation data is obtained, and the analog-to-digital conversion has been started, but the PID calculation has not yet started, the PID calculation and subsequent digital-to-analog conversion will not be performed; if the relevant equipment operation data is obtained data, and the PID calculation has started, but the digital-analog operation has not yet started, then the current PID calculation is completed.
在一些可选实施例中,运算处理器未获取到控制处理器的设备运行数据,或者,运算处理器从共享存储器获取关断指示标识为关断状态,运算处理器进入有限度休眠状态。 In some optional embodiments, the computing processor does not obtain the device operation data that controls the processor, or the computing processor obtains a shutdown indication flag from the shared memory to indicate the shutdown state, and the computing processor enters a limited sleep state.
在一些可选实施例中,运算处理器根据预关断输出前置交握停止相关运算操作后,运算处理器进入有限度休眠状态。In some optional embodiments, after the computing processor stops relevant computing operations according to the pre-shutdown output pre-handshake, the computing processor enters a limited sleep state.
在一些可选实施例中,若控制处理器将共享存储器中的关断指示标识设置为正常状态,并且恢复通过共享存储器向运算处理器发送重新获取的设备运行数据;运算处理器恢复获取共享存储器中关断指示标识的状态;或者,运算处理器在接收到控制处理器发送的重启的前置交握后,根据重启的前置交握完成恢复运算准备,向控制处理器发送恢复确认消息。In some optional embodiments, if the control processor sets the shutdown indication flag in the shared memory to a normal state and resumes sending the reacquired device operating data to the computing processor through the shared memory; the computing processor resumes acquiring the shared memory The state of the shutdown indication flag; or, after receiving the restart pre-handshake sent by the control processor, the operation processor completes preparations for resuming operation according to the restart pre-handshake and sends a recovery confirmation message to the control processor.
在一些可选实施例中,运算处理器在进入有限度休眠状态之前,将获取到的电弧产生期间的设备运行数据冻结。In some optional embodiments, the computing processor freezes the acquired equipment operating data during arc generation before entering a limited sleep state.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到有电弧产生,可以停止被运算处理器获取设备运行数据,也可以向运算处理器发送关断运算指示;运算处理器根据是否获取到所述设备运行数据,也可以根据是否接收到关断运算指示确定是否中断相关控制参数运算操作,或者停止向控制处理器发送已完成计算的相关控制参数,以保证控制处理器获得正确的控制参数,确保电弧产生,控制处理器关断电路时,双处理器彼此之间的数据能维持较佳的正确性,适时停止PID运算,避免拉长关断时机点,同时减少丢弃数据的情形,避免一端电路关断时,另一端仍执行,造成整体电路错乱运行,只要未开始PID整体运算,可以中断运算或不发送已完成运算的运作参数,适用于指令、交握或共享数据,关断时,进行数据冻结,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of a dual-processor device, if the control processor detects the occurrence of an arc, it can stop the operation processor from obtaining the device operation data, and can also send a notification to the operation processor. Shutdown operation instruction; the operation processor can determine whether to interrupt the relevant control parameter operation operation based on whether it obtains the device operation data, or whether it receives the shutdown operation instruction, or to stop sending the completed calculated relevant control parameters to the control processor. , to ensure that the control processor obtains correct control parameters and ensures arc generation. When the control processor turns off the circuit, the data between the two processors can maintain better accuracy and stop the PID operation in a timely manner to avoid prolonged shutdown. Timing, while reducing the situation of discarding data, to avoid that when one end of the circuit is turned off, the other end is still executing, causing the entire circuit to run erratically. As long as the overall PID operation has not started, the operation can be interrupted or the operation parameters of the completed operation can not be sent. It is suitable for Instructions, handshakes or shared data are frozen when the control processor is turned off to ensure the stability and consistency of data transmission between the control processor and the computing processor, and to prevent the other end of the computing processor from still being connected when the control processor circuit is turned off. When performing unnecessary operations, causing the overall circuit to run erratically, it effectively ensures the correctness of data between the control processor and the operation processor when an arc occurs.
实施例19Example 19
为便于读者理解,下面通过具体示例对本发明实施例提供的双处理器设备及其控制方法进行说明。To facilitate readers' understanding, the dual-processor device and its control method provided by embodiments of the present invention are described below through specific examples.
本实施例中,CPUA作为控制处理器,CPUB作为运算处理器,两CPU分别独立运作,分别控制各自连接的控制电路与PID运算电路。双CPU之 间通过指令(COMMAND/ORDER)、交握(SHAKE HANDS)、旗标(FLAG)的提供,或是数据共享方式,让CPUB进行PID打断作业。整体PID运算区块分为模数转换阶段、PID计算阶段和数模转换阶段三段,即DC-PID-DAC。In this embodiment, CPUA serves as the control processor and CPUB serves as the operation processor. The two CPUs operate independently and control the respective connected control circuits and PID operation circuits. Dual CPU Through the provision of commands (COMMAND/ORDER), handshakes (SHAKE HANDS), flags (FLAG), or data sharing, CPUB can perform PID interrupt operations. The overall PID operation block is divided into three stages: analog-to-digital conversion stage, PID calculation stage and digital-to-analog conversion stage, namely DC-PID-DAC.
整体PID控制流程如下:The overall PID control process is as follows:
第1时序:1st timing:
CPUA传输PID运算必要数据给CPUB;CPUA transmits the necessary data for PID operation to CPUB;
CPUB获取数据进行PID运算;CPUB obtains data for PID operation;
CPUA检测电弧,发送关断指示或改写FLAG;CPUA detects arc, sends shutdown instruction or rewrites FLAG;
CPUB获取指令或FLAG,依据目前已运作状态决定哪个阶段打断运算:CPUB obtains the instruction or FLAG and determines which stage to interrupt the operation based on the current operating status:
若是ADC-PID之间,停止PID后的运算;If it is between ADC and PID, stop the calculation after PID;
若是PID期间至DAC前,完成运算,但不输出运算数据。If the PID period reaches before the DAC, the operation is completed, but the operation data is not output.
或者,or,
CPUA决定关断时,不发送任何数据或信息;When CPUA decides to shut down, it does not send any data or information;
当CPUB在获取数据的时点未获取到CPUA的数据或信息;When CPUB does not obtain data or information from CPUA at the time when it obtains data;
或是未在共享RAM中或许更新数据或信息时,直接中断所有PID运算。Or directly interrupt all PID operations when data or information is not updated in the shared RAM.
第N时序,N>1的整数:Nth timing, integer N>1:
CPUA重启控制电路进行功率输出;CPUA restarts the control circuit for power output;
CPUA传输PID运算必要数据给CPUB;CPUA transmits the necessary data for PID operation to CPUB;
CPUB获取数据进行PID运算。CPUB obtains data for PID operation.
或者,or,
CPUA重启控制电路进行功率输出;CPUA restarts the control circuit for power output;
CPUA改写RAM里CPUA的工作FLAG;CPUA rewrites CPUA’s working FLAG in RAM;
CPUA传输PID运算必要数据写入RAM;CPUA transfers the necessary data for PID operation and writes it into RAM;
CPUB读取RAM里CPUA的工作FLAG,并判断为ENABLE;CPUB reads the working FLAG of CPUA in RAM and determines it as ENABLE;
CPUB读取RAM获取数据进行PID运算; CPUB reads RAM to obtain data for PID operation;
CPUB将运算产生的电路控制参数写入RAM。CPUB writes the circuit control parameters generated by the operation into RAM.
可以理解的是,本实施例提供的技术方案,双处理器设备控制过程中,若控制处理器检测到有电弧产生,可以停止被运算处理器获取设备运行数据,也可以向运算处理器发送关断运算指示;运算处理器根据是否获取到所述设备运行数据,也可以根据是否接收到关断运算指示确定是否中断相关控制参数运算操作,或者停止向控制处理器发送已完成计算的相关控制参数,以保证控制处理器获得正确的控制参数,确保电弧产生,控制处理器关断电路时,双处理器彼此之间的数据能维持较佳的正确性,适时停止PID运算,避免拉长关断时机点,同时减少丢弃数据的情形,避免一端电路关断时,另一端仍执行,造成整体电路错乱运行,只要未开始PID整体运算,可以中断运算或不发送已完成运算的运作参数,适用于指令、交握或共享数据,关断时,进行数据冻结,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, according to the technical solution provided by this embodiment, during the control process of a dual-processor device, if the control processor detects the occurrence of an arc, it can stop the operation processor from obtaining the device operation data, and can also send a notification to the operation processor. Shutdown operation instruction; the operation processor can determine whether to interrupt the relevant control parameter operation operation based on whether it obtains the device operation data, or whether it receives the shutdown operation instruction, or to stop sending the completed calculated relevant control parameters to the control processor. , to ensure that the control processor obtains correct control parameters and ensures arc generation. When the control processor turns off the circuit, the data between the two processors can maintain better accuracy and stop the PID operation in a timely manner to avoid prolonged shutdown. Timing, while reducing the situation of discarding data, to avoid that when one end of the circuit is turned off, the other end is still executing, causing the entire circuit to run erratically. As long as the overall PID operation has not started, the operation can be interrupted or the operation parameters of the completed operation can not be sent. It is suitable for Instructions, handshakes or shared data are frozen when the control processor is turned off to ensure the stability and consistency of data transmission between the control processor and the computing processor, and to prevent the other end of the computing processor from still being connected when the control processor circuit is turned off. When performing unnecessary operations, causing the overall circuit to run erratically, it effectively ensures the correctness of data between the control processor and the operation processor when an arc occurs.
实施例19Example 19
基于同一技术构思,本申请实施例还提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,处理器执行所述计算机程序时实现上述任一项所述的双处理器设备控制方法。Based on the same technical concept, embodiments of the present application also provide a computer device, including a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements any of the above dual-processor device control. method.
其中,存储器至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器在一些实施例中可以是OTT视频业务监控系统的内部存储单元,例如硬盘。存储器在另一些实施例中也可以是OTT视频业务监控系统的外部存储设备,例如插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。Wherein, the memory includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory may be an internal storage unit of the OTT video service monitoring system, such as a hard disk. In other embodiments, the memory can also be an external storage device of the OTT video service monitoring system, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card ( Flash Card), etc.
进一步地,存储器还可以既包括OTT视频业务监控系统的内部存储单元也包括外部存储设备。存储器不仅可以用于存储安装于OTT视频业务监 控系统的应用软件及各类数据,例如OTT视频业务监控程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。Further, the memory may also include both an internal storage unit of the OTT video service monitoring system and an external storage device. The memory can not only be used for storage and installation in OTT video service monitoring The application software and various data of the control system, such as the code of the OTT video service monitoring program, can also be used to temporarily store the data that has been output or will be output.
处理器在一些实施例中可以是一中央处理器(Central Processing Unit,处理器)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器中存储的程序代码或处理数据,例如执行OTT视频业务监控程序等。In some embodiments, the processor may be a central processing unit (Central Processing Unit, processor), a controller, a microcontroller, a microprocessor or other data processing chips, used to run program codes stored in the memory or process data. , such as executing OTT video service monitoring programs, etc.
可以理解的是,本实施例提供的技术方案,基于双处理器的PID控制过程中,若控制处理器检测到电弧发生,则执行关断操作;并将共享存储器中的关断指示标识设置为关断状态,运算处理器根据关断指示标识的状态跳过获取控制处理器在电弧产生期间获取的设备运行数据,通过共享存储器,利用即使一方CPU写入产生区域保护,另一方CPU仍能读取的数据共享模式,令双方CPU在执行任何作业时,都能从高速存储单元里第一时间获取对方CPU变化的数据与工作状态,确保控制处理器和运算处理器之间数据传输的稳定性和一致性,避免控制处理器电路关断时,另一端运算处理器仍执行在执行不必要的运算,造成整体电路错乱运行,有效的保证在电弧产生时,控制处理器和运算处理器之间的数据正确性。It can be understood that, in the technical solution provided by this embodiment, during the PID control process based on dual processors, if the control processor detects the occurrence of an arc, it will perform a shutdown operation; and set the shutdown indication flag in the shared memory to In the shutdown state, the computing processor skips the acquisition of the equipment operating data obtained by the control processor during the arc generation according to the status of the shutdown indicator. Through the shared memory, even if one CPU writes to generate area protection, the other CPU can still read The adopted data sharing mode enables the CPUs of both parties to immediately obtain the changing data and working status of the other CPU from the high-speed storage unit when executing any job, ensuring the stability of data transmission between the control processor and the operation processor. and consistency, to avoid that when the control processor circuit is turned off, the other end of the arithmetic processor is still performing unnecessary operations, causing the overall circuit to run erratically, effectively ensuring that when an arc occurs, the control processor and the arithmetic processor data correctness.
本发明公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的双处理器设备控制方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。本发明公开实施例所提供的双处理器设备控制方法的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行上述方法实施例中所述的双处理器设备控制方法的步骤,具体可参见上述方法实施例,在此不再赘述。Disclosed embodiments of the present invention also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is run by a processor, it executes the dual-processor device control method described in the above method embodiment. A step of. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium. The computer program product of the dual-processor device control method provided by the disclosed embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the dual-processor device described in the above method embodiment. For details about the steps of the processor device control method, please refer to the above method embodiments and will not be described again here.
本发明公开实施例还提供一种计算机程序,该计算机程序被处理器执行时实现前述实施例的任意一种方法。该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software DevelopmentKit,SDK) 等等。Disclosed embodiments of the present invention also provide a computer program, which when executed by a processor, implements any of the methods in the foregoing embodiments. The computer program product can be implemented specifically through hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium. In another optional embodiment, the computer program product is embodied as a software product, such as a Software Development Kit (SDK). etc.
可以理解的是,上述各实施例中相同或相似部分可以相互参考,在一些实施例中未详细说明的内容可以参见其他实施例中相同或相似的内容。It can be understood that the same or similar parts in the above-mentioned embodiments can be referred to each other, and the content that is not described in detail in some embodiments can be referred to the same or similar content in other embodiments.
需要说明的是,在本发明的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明的描述中,除非另有说明,“多个”的含义是指至少两个。It should be noted that in the description of the present invention, the terms "first", "second", etc. are only used for description purposes and cannot be understood as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise stated, the meaning of "plurality" means at least two.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments, or portions of code that include one or more executable instructions for implementing the specified logical functions or steps of the process. , and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed out of the order shown or discussed, including in a substantially simultaneous manner or in the reverse order, depending on the functionality involved, which shall It should be understood by those skilled in the art to which embodiments of the present invention belong.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if it is implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following technologies known in the art: a logic gate circuit with a logic gate circuit for implementing a logic function on a data signal. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps involved in implementing the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The program can be stored in a computer-readable storage medium. When executed, one of the steps of the method embodiment or a combination thereof is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理器中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。 In addition, each functional unit in various embodiments of the present invention can be integrated into a processor, each unit can exist physically alone, or two or more units can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。The storage media mentioned above can be read-only memory, magnetic disks or optical disks, etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "an example," "specific examples," or "some examples" or the like means that specific features are described in connection with the embodiment or example. , structures, materials or features are included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。 Although the embodiments of the present invention have been shown and described above, it can be understood that the above-mentioned embodiments are illustrative and should not be construed as limitations of the present invention. Those of ordinary skill in the art can make modifications to the above-mentioned embodiments within the scope of the present invention. The embodiments are subject to changes, modifications, substitutions and variations.

Claims (31)

  1. 一种双处理器设备控制方法,其特征在于,所述双处理器包括控制处理器和运算处理器,所述方法由所述控制处理器实现,所述方法包括:A dual-processor device control method, characterized in that the dual processors include a control processor and an arithmetic processor, the method is implemented by the control processor, and the method includes:
    若检测到电弧发生,则向所述运算处理器发送预关断输出前置交握,以便所述运算处理器根据所述预关断输出前置交握停止相关运算操作;If an arc is detected, a pre-shutdown output pre-handshake is sent to the arithmetic processor, so that the arithmetic processor stops relevant computing operations according to the pre-shutdown output pre-handshake;
    接收所述运算处理器发送的停止运算通知,所述停止运算通知是所述运算处理器接收到所述预关断输出前置交握后,且完成已接收数据的运算后发出的;Receive a stop operation notification sent by the operation processor. The operation stop notice is issued after the operation processor receives the pre-shutdown output pre-handshake and completes the operation of the received data;
    执行关断操作。Perform shutdown operation.
  2. 根据权利要求1所述的双处理器设备控制方法,其特征在于,所述方法还包括:The dual-processor device control method according to claim 1, characterized in that the method further includes:
    在满足重启条件时,向所述运算处理器发送重启的前置交握,以便所述运算处理器根据所述重启的前置交握恢复运算准备;When the restart condition is met, send a restart pre-handshake to the computing processor, so that the computing processor resumes computing preparations according to the restart pre-handshake;
    在收到所述运算处理器反馈的恢复确认消息后,恢复获取设备运行数据,恢复向所述运算处理器发送所述设备运行数据,所述恢复确认消息是所述运算处理器完成运算准备后发送的。After receiving the recovery confirmation message fed back by the computing processor, resume obtaining the device operation data, and resume sending the device operation data to the computing processor. The recovery confirmation message is after the computing processor completes the computing preparation. Sent.
  3. 根据权利要求2所述的双处理器设备控制方法,其特征在于,在所述向所述运算处理器发送重启的前置交握之前,还包括:The dual-processor device control method according to claim 2, characterized in that, before sending a restart pre-handshake to the computing processor, it further includes:
    判断所述运算处理器是否处于休眠状态;Determine whether the computing processor is in a sleep state;
    所述向所述运算处理器发送重启的前置交握为:若所述运算处理器处于休眠状态,则向所述运算处理器发送重启的前置交握。The step of sending a restart pre-handshake to the arithmetic processor is: if the arithmetic processor is in a sleep state, sending a restart pre-handshake to the arithmetic processor.
  4. 根据权利要求3所述的双处理器设备控制方法,其特征在于,在所述向所述运算处理器发送重启的前置交握之前,还包括:The dual-processor device control method according to claim 3, characterized in that, before sending a restart pre-handshake to the computing processor, it further includes:
    若所述运算处理器未处于休眠状态,则直接获取所述设备运行数据,并向所述运算处理器发送所述设备运行数据。If the computing processor is not in the sleep state, the device operation data is directly obtained and sent to the computing processor.
  5. 根据权利要求2所述的双处理器设备控制方法,其特征在于,所述 重启条件包括:The dual-processor device control method according to claim 2, characterized in that: Restart conditions include:
    关断时间是否满足预设关断时长;Whether the shutdown time meets the preset shutdown time;
    和/或,是否收到重启指示信息。and/or, whether a restart instruction message is received.
  6. 根据权利要求5所述的双处理器设备控制方法,其特征在于,还包括:The dual-processor device control method according to claim 5, further comprising:
    在执行关断操作后,进入休眠状态。After performing the shutdown operation, it enters the sleep state.
  7. 根据权利要求6所述的双处理器设备控制方法,其特征在于,在所述进入休眠状态之前,所述方法还包括:将电弧产生期间的设备运行数据冻结。The dual-processor device control method according to claim 6, wherein before entering the sleep state, the method further includes: freezing the device operating data during arc generation.
  8. 一种用于双处理器设备的控制处理器,其特征在于,包括:A control processor for a dual-processor device, characterized by including:
    预关断指示模块,用于在检测到电弧发生时,则向运算处理器发送预关断输出前置交握,以便所述运算处理器根据所述预关断输出前置交握停止相关运算操作;A pre-shutdown indication module is used to send a pre-shutdown output pre-handshake to the arithmetic processor when an arc is detected, so that the arithmetic processor stops relevant operations according to the pre-shutdown output pre-handshake. operate;
    预关断执行模块,用于接收所述运算处理器发送的停止运算通知,所述停止运算通知是所述运算处理器接收到所述预关断输出前置交握后,且完成已接收数据的运算后发出的;A pre-shutdown execution module, configured to receive a stop operation notification sent by the arithmetic processor. The stop arithmetic notification is after the arithmetic processor receives the pre-shutdown output pre-handshake and completes the received data. Emitted after the operation;
    关断模块,用于执行关断操作。Shutdown module, used to perform shutdown operations.
  9. 一种双处理器设备控制方法,其特征在于,所述双处理器包括控制处理器和运算处理器,所述方法由运算处理器实现,所述方法包括:A dual-processor device control method, characterized in that the dual-processor includes a control processor and an arithmetic processor, the method is implemented by the arithmetic processor, and the method includes:
    接收所述控制处理器发送的预关断输出前置交握;Receive the pre-shutdown output pre-handshake sent by the control processor;
    完成已接收数据的运算后,停止相关运算操作;After completing the operation of the received data, stop the relevant operation;
    向所述控制处理器发送停止运算通知,以便所述控制处理器接收所述停止运算通知后,执行关断操作。Send a stop operation notification to the control processor, so that the control processor performs a shutdown operation after receiving the stop operation notification.
  10. 根据权利要求9所述的双处理器设备控制方法,其特征在于,还包括:The dual-processor device control method according to claim 9, further comprising:
    接收所述控制处理器发送的重启的前置交握;Receive a restart pre-handshake sent by the control processor;
    根据所述重启的前置交握完成恢复运算准备; Complete recovery operation preparations according to the pre-restart handshake;
    向所述控制处理器发送恢复确认消息,以便所述控制处理器根据所述恢复确认消息恢复获取设备运行数据;Send a recovery confirmation message to the control processor so that the control processor resumes obtaining device operating data according to the recovery confirmation message;
    接收所述控制处理器发送的所述设备运行数据。Receive the device operation data sent by the control processor.
  11. 根据权利要求9或10所述的双处理器设备控制方法,其特征在于,在所述向所述控制处理器发送停止运算通知之后,所述方法还包括:进入休眠状态。The dual-processor device control method according to claim 9 or 10, characterized in that, after sending the stop operation notification to the control processor, the method further includes: entering a sleep state.
  12. 根据权利要求11所述的双处理器设备控制方法,其特征在于,在所述进入休眠状态之前,所述方法还包括:将电弧产生期间的设备运行数据冻结。The dual-processor device control method according to claim 11, wherein before entering the sleep state, the method further includes: freezing the device operating data during arc generation.
  13. 一种用于双处理器设备的运算处理器,其特征在于,包括:An arithmetic processor for a dual-processor device, characterized by including:
    预关断指示接收模块,用于接收控制处理器发送的预关断输出前置交握;The pre-shutdown indication receiving module is used to receive the pre-shutdown output pre-handshake sent by the control processor;
    运算停止控制模块,用于完成已接收数据的运算后,停止相关运算操作;The operation stop control module is used to stop related operation operations after completing the operation of the received data;
    运算停止通知模块,用于向所述控制处理器发送停止运算通知,以便所述控制处理器接收所述停止运算通知后,执行关断操作。The operation stop notification module is configured to send a stop operation notification to the control processor, so that the control processor performs a shutdown operation after receiving the operation stop notification.
  14. 一种双处理器设备,其特征在于,包括权利要求8的用于双处理器设备的控制处理器和权利要求13的用于双处理器设备的运算处理器。A dual-processor device, characterized by comprising the control processor for the dual-processor device of claim 8 and the arithmetic processor for the dual-processor device of claim 13.
  15. 一种双处理器设备控制方法,其特征在于,所述双处理器设备包括控制处理器、运算处理器和共享存储器,所述共享存储器中设有关断指示标识,所述方法由所述控制处理器实现,所述方法包括:A method for controlling a dual-processor device, characterized in that the dual-processor device includes a control processor, an arithmetic processor and a shared memory, the shared memory is provided with a shutdown indication flag, and the method is processed by the control processor Implemented by the processor, the methods include:
    若检测到电弧发生,则执行关断操作;If an arc is detected, a shutdown operation is performed;
    将所述共享存储器中的所述关断指示标识设置为关断状态,以便所述运算处理器根据所述关断指示标识的状态跳过获取第一设备运行数据,所述第一设备运行数据是所述控制处理器在电弧产生期间获取的设备运行数据。The shutdown indication flag in the shared memory is set to a shutdown state, so that the computing processor skips obtaining the first device operation data according to the state of the shutdown indication flag, and the first device operation data is the equipment operating data obtained by the control processor during arc generation.
  16. 根据权利要求15所述的双处理器设备控制方法,其特征在于,在 所述检测到电弧发生之前,所述方法还包括:The dual-processor device control method according to claim 15, characterized in that: Before the arc is detected, the method further includes:
    获取第二设备运行数据;Obtain the second device operating data;
    通过所述共享存储器向所述运算处理器发送所述第二设备运行数据。Send the second device operating data to the computing processor through the shared memory.
  17. 根据权利要求16所述的双处理器设备控制方法,其特征在于,所述通过所述共享存储器向所述运算处理器发送所述第二设备运行数据包括:The dual-processor device control method according to claim 16, wherein sending the second device operating data to the computing processor through the shared memory includes:
    将所述第二设备运行数据存入所述共享存储器,以便所述运算处理器可以从所述共享存储器中获取所述第二设备运行数据。The second device operation data is stored in the shared memory so that the computing processor can obtain the second device operation data from the shared memory.
  18. 根据权利要求17所述的双处理器设备控制方法,其特征在于,在执行关断操作后,所述方法还包括:进入休眠状态。The method for controlling a dual-processor device according to claim 17, wherein after performing a shutdown operation, the method further includes: entering a sleep state.
  19. 根据权利要求18所述的双处理器设备控制方法,其特征在于,所述方法还包括:The dual-processor device control method according to claim 18, characterized in that the method further includes:
    在满足重启条件时,重新启动;Restart when the restart conditions are met;
    将所述共享存储器中的关断指示标识设置为正常状态;Set the shutdown indication flag in the shared memory to a normal state;
    恢复获取所述第二设备运行数据;Resume obtaining the operating data of the second device;
    恢复通过所述共享存储器向所述运算处理器发送所述第二设备运行数据,以便所述运算处理器根据所述关断指示标识的状态从所述共享存储器获取所述第二设备运行数据。Resume sending the second device operating data to the computing processor through the shared memory, so that the computing processor obtains the second device operating data from the shared memory according to the state identified by the shutdown indication.
  20. 根据权利要求19所述的双处理器设备控制方法,其特征在于,所述重启条件包括:The dual-processor device control method according to claim 19, wherein the restart condition includes:
    关断时间是否满足预设关断时长;Whether the shutdown time meets the preset shutdown time;
    和/或,是否收到重启指示信息。and/or, whether a restart instruction message is received.
  21. 根据权利要求20所述的双处理器设备控制方法,其特征在于,在所述进入休眠状态之前,所述方法还包括:将电弧产生期间的设备运行数据冻结。The dual-processor device control method according to claim 20, wherein before entering the sleep state, the method further includes: freezing the device operating data during arc generation.
  22. 一种双处理器设备,其特征在于,所述双处理器设备包括控制处理器、运算处理器和共享存储器,所述共享存储器中设有关断指示标识,所述控制处理器包括: A dual-processor device, characterized in that the dual-processor device includes a control processor, an arithmetic processor and a shared memory, the shared memory is provided with a shutdown indication flag, and the control processor includes:
    关断指示模块,用于在检测到电弧发生时,执行关断操作;A shutdown indication module is used to perform a shutdown operation when an arc is detected;
    关断状态设置模块,用于将所述共享存储器中的所述关断指示标识设置为关断状态,以便所述运算处理器根据所述关断指示标识的状态跳过获取第一设备运行数据,所述第一设备运行数据是所述控制处理器在电弧产生期间获取的设备运行数据。A shutdown state setting module, configured to set the shutdown indication flag in the shared memory to a shutdown state, so that the computing processor skips acquiring the first device operating data according to the status of the shutdown indication flag. , the first equipment operating data is equipment operating data obtained by the control processor during arc generation.
  23. 一种双处理器设备控制方法,其特征在于,所述双处理器设备包括控制处理器运算处理器和共享存储器,所述共享存储器中设有关断指示标识,所述方法由所述运算处理器实现,所述方法包括:A method for controlling a dual-processor device, characterized in that the dual-processor device includes a control processor, an arithmetic processor and a shared memory, and a shutdown indication flag is provided in the shared memory. The method is performed by the arithmetic processor. Implementation, the method includes:
    获取所述共享存储器中所述关断指示标识的状态;Obtain the status of the shutdown indication flag in the shared memory;
    若所述关断指示标识为关断状态,则根据所述关断指示标识的状态跳过获取第一设备运行数据,所述第一设备运行数据是所述控制处理器在电弧产生期间获取的设备运行数据。If the shutdown indication flag is in the shutdown state, the acquisition of the first equipment operation data is skipped according to the status of the shutdown indication flag. The first equipment operation data is obtained by the control processor during arc generation. Equipment operating data.
  24. 根据权利要求23所述的一种双处理器设备控制方法,其特征在于,还包括:A dual-processor device control method according to claim 23, further comprising:
    若所述关断指示标识为正常状态,则从所述共享存储器中获取第一设备运行数据;If the shutdown indication flag is in a normal state, obtain the first device operating data from the shared memory;
    根据所述第一设备运行数据进行控制参数计算;Calculate control parameters based on the first equipment operating data;
    通过所述共享存储器向所述控制处理器发送计算得到的控制参数。The calculated control parameters are sent to the control processor via the shared memory.
  25. 根据权利要求24所述的一种双处理器设备控制方法,其特征在于,还包括:在所述关断指示标识为关断状态时,进入休眠状态。A dual-processor device control method according to claim 24, further comprising: entering a sleep state when the shutdown indication mark is in a shutdown state.
  26. 根据权利要求24所述的一种双处理器设备控制方法,其特征在于,在所述获取共享存储器中关断指示标识的状态之前,所述方法还包括:A dual-processor device control method according to claim 24, characterized in that before obtaining the status of the shutdown indication flag in the shared memory, the method further includes:
    在满足重启条件时,重新启动;Restart when the restart conditions are met;
    所述获取共享存储器中关断指示标识的状态为:恢复获取共享存储器中关断指示标识的状态。The step of obtaining the status of the shutdown indication flag in the shared memory is to restore and obtain the status of the shutdown indication flag in the shared memory.
  27. 根据权利要求25所述的一种双处理器设备控制方法,其特征在于,在所述进入休眠状态之前,所述方法还包括:将电弧产生期间的设备运行 数据冻结。A dual-processor device control method according to claim 25, characterized in that, before entering the sleep state, the method further includes: operating the device during arc generation. Data freeze.
  28. 一种双处理器设备,其特征在于,所述双处理器设备包括控制处理器、运算处理器和共享存储器,所述共享存储器中设有关断指示标识,所述运算处理器包括:A dual-processor device, characterized in that the dual-processor device includes a control processor, an arithmetic processor and a shared memory, the shared memory is provided with a shutdown indication flag, and the arithmetic processor includes:
    关断标识获取模块,用于获取所述共享存储器中所述关断指示标识的状态;A shutdown identification acquisition module, configured to obtain the status of the shutdown indication identification in the shared memory;
    关断数据处理模块,用于若所述关断指示标识为关断状态,则根据所述关断指示标识的状态跳过获取第一设备运行数据,所述第一设备运行数据是所述控制处理器在电弧产生期间获取的设备运行数据。A shutdown data processing module, configured to, if the shutdown indication flag is in a shutdown state, skip acquiring the first device operation data according to the status of the shutdown indication flag, and the first device operation data is the control Equipment operating data acquired by the processor during arc generation.
  29. 一种双处理器设备,其特征在于,包括共享存储器、权利要求22的控制处理器和权利要求28的运算处理器,所述共享存储器中设有关断指示标识。A dual-processor device, characterized in that it includes a shared memory, the control processor of claim 22 and the operation processor of claim 28, and a shutdown indication flag is provided in the shared memory.
  30. 一种计算机设备,其特征在于,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当计算机设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如权利要求1至7、9至12、15至21或23至27之一所述的双处理器设备控制方法。A computer device, characterized in that it includes: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the connection between the processor and the memory is communicate through a bus, and when the machine-readable instructions are executed by the processor, the dual-processor device control method according to one of claims 1 to 7, 9 to 12, 15 to 21, or 23 to 27 is performed.
  31. 一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如权利要求1至7、9至12、15至21或23至27之一所述的双处理器设备控制方法。 A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and the computer program is executed when the processor is run as claimed in claims 1 to 7, 9 to 12, 15 to 21 or 23 to The dual-processor device control method described in one of 27.
PCT/CN2023/112998 2022-09-08 2023-08-15 Dual-processor device and control method therefor, and processor WO2024051450A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN202211094813.2A CN115167933B (en) 2022-09-08 2022-09-08 Dual-processor equipment, control method thereof and processor
CN202211094823.6A CN115168079B (en) 2022-09-08 2022-09-08 Dual-processor device and control method thereof
CN202211094824.0 2022-09-08
CN202211094824.0A CN115185176B (en) 2022-09-08 2022-09-08 Double-processing module equipment and control method thereof
CN202211094813.2 2022-09-08
CN202211094823.6 2022-09-08

Publications (1)

Publication Number Publication Date
WO2024051450A1 true WO2024051450A1 (en) 2024-03-14

Family

ID=90192033

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/112998 WO2024051450A1 (en) 2022-09-08 2023-08-15 Dual-processor device and control method therefor, and processor

Country Status (1)

Country Link
WO (1) WO2024051450A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08329026A (en) * 1995-06-05 1996-12-13 Nec Corp Dual processor system
US6574748B1 (en) * 2000-06-16 2003-06-03 Bull Hn Information Systems Inc. Fast relief swapping of processors in a data processing system
WO2013093999A1 (en) * 2011-12-19 2013-06-27 株式会社キトー Fail-safe electronic control device
CN115167933A (en) * 2022-09-08 2022-10-11 深圳市恒运昌真空技术有限公司 Dual-processor equipment, control method thereof and processor
CN115168079A (en) * 2022-09-08 2022-10-11 深圳市恒运昌真空技术有限公司 Dual-processor device and control method thereof
CN115185176A (en) * 2022-09-08 2022-10-14 深圳市恒运昌真空技术有限公司 Double-processing module equipment and control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08329026A (en) * 1995-06-05 1996-12-13 Nec Corp Dual processor system
US6574748B1 (en) * 2000-06-16 2003-06-03 Bull Hn Information Systems Inc. Fast relief swapping of processors in a data processing system
WO2013093999A1 (en) * 2011-12-19 2013-06-27 株式会社キトー Fail-safe electronic control device
CN115167933A (en) * 2022-09-08 2022-10-11 深圳市恒运昌真空技术有限公司 Dual-processor equipment, control method thereof and processor
CN115168079A (en) * 2022-09-08 2022-10-11 深圳市恒运昌真空技术有限公司 Dual-processor device and control method thereof
CN115185176A (en) * 2022-09-08 2022-10-14 深圳市恒运昌真空技术有限公司 Double-processing module equipment and control method thereof

Similar Documents

Publication Publication Date Title
TW200838084A (en) Updating a power supply microcontroller
US20150046729A1 (en) Semiconductor apparatus and control method therof
US10025682B2 (en) Control system and processing method thereof
JP3338818B2 (en) Power management system for wireless LAN terminals
AU2014376751B2 (en) Redundant system and method for managing redundant system
JP2008165450A (en) Firmware revision method and revision program
CN115185176B (en) Double-processing module equipment and control method thereof
WO2024051450A1 (en) Dual-processor device and control method therefor, and processor
CN115168079B (en) Dual-processor device and control method thereof
US11604635B2 (en) Online program updating method
CN115167933B (en) Dual-processor equipment, control method thereof and processor
JP2006338217A (en) Active firmware exchanging device
JP2009223687A (en) Information processing system and control method thereof
TW202411796A (en) A dual-processing module device and its control method
US11455211B2 (en) Power control system and power control method
US10205841B2 (en) Information processing apparatus, control method of information processing apparatus, and storage medium
CN113650498B (en) Power-on method and device of electric vehicle, electric vehicle and storage medium
KR950003686B1 (en) Mehtod of standby loading for exchange of software
CN112416104A (en) Device for realizing last state of universal server power supply and recovery method
JPH06318160A (en) System configuration control system for duplex processor system
JP2001125687A (en) Computer system
JP2003280937A (en) Firmware download system and its method
JP2007179094A (en) Information processing apparatus and power consumption control method executed therein
CN108931942B (en) Power supply system and method
JP2000172575A (en) Memory backup system

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: 23862147

Country of ref document: EP

Kind code of ref document: A1