CN-121633695-B - Method and device for executing program-controlled circuit breaking triggered by heartbeat monitoring
Abstract
The invention relates to the technical field of monitoring control, and discloses a program control circuit breaking execution method and device for heartbeat monitoring trigger, wherein a heartbeat interval characteristic sequence of each channel is constructed by receiving heartbeat signals of N test channels of a heartbeat circuit breaking box, a dynamic timeout threshold is calculated, and a channel disconnection confirmation mark is generated through multistage anti-jitter judgment; the method comprises the steps of executing channel-level direct current, system-level alternating current cooperation and channel-level alarm three-level circuit breaking decisions based on a state control matrix to generate a circuit breaking execution sequence, identifying channels to be recovered, constructing a recovery priority queue, executing peak-shifting electric recovery, and realizing stable recovery and conflict avoidance by combining progressive voltage soft start and communication time slot allocation.
Inventors
- WANG PAN
- CHEN JUN
- FU HAIFENG
- Zhong Qijie
Assignees
- 杭州艾姆西技术服务有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260203
Claims (9)
- 1. The program control circuit breaking execution method triggered by heartbeat monitoring is characterized by comprising the following steps: Receiving heartbeat signals of N test channels of a heartbeat breaking box, constructing a heartbeat interval characteristic sequence of each channel, calculating a dynamic timeout threshold of each channel according to the heartbeat interval characteristic sequence of each channel, and generating a channel disconnection confirmation mark through multistage anti-jitter judgment based on the dynamic timeout threshold of each channel; The method comprises the steps of initializing a state control matrix, updating the state control matrix according to a channel disconnection confirmation mark to obtain a real-time state control matrix, executing three-level disconnection decisions based on the real-time state control matrix, and generating a disconnection execution sequence of each channel, wherein the first layer of the three-level disconnection decisions is a channel-level direct current disconnection decision, the second layer of the three-level disconnection decisions is a system-level alternating current cooperative disconnection decision, and the third layer of the three-level disconnection decisions is a channel-level independent alarm decision, the state control matrix is of N rows and 3 columns, and the 3 columns of the state control matrix are respectively a direct current output control column, an alternating current input control column and an audible and visual alarm control column; calculating the sum Sac of all elements of an alternating current input control column of a real-time state control matrix, comparing Sac with an alternating current cooperative circuit breaking threshold gamma, and generating a system-level alternating current circuit breaking action request when Sac is smaller than gamma; Extracting channels in an open-circuit state from a real-time state control matrix, taking the channels in the open-circuit state as channels to be recovered when the recovery heartbeat signals of the channels in the open-circuit state are detected, calculating the recovery priority values of the channels to be recovered, constructing a recovery priority queue, executing peak-shifting type electric recovery according to the recovery priority queue, realizing electric stability recovery and communication conflict avoidance by means of gradual voltage soft start and heartbeat frame detection interaction and combining communication time slot allocation.
- 2. The method for performing program-controlled disconnection triggered by heartbeat monitoring according to claim 1, wherein the method for constructing the heartbeat interval feature sequence of each channel comprises the following steps: recording the arrival time of each channel heartbeat signal, defining the time interval of adjacent heartbeat signals as the heartbeat interval by calculating the time interval of the adjacent heartbeat signals, and constructing the special heartbeat interval characteristic sequence of each channel.
- 3. The method for performing a program-controlled circuit break triggered by heartbeat monitoring of claim 2 wherein the method for calculating a dynamic timeout threshold for each channel based on the heartbeat interval feature sequence for each channel comprises: Calculating the average value mu i and the standard deviation sigma i of the heartbeat interval of each channel i according to the heartbeat interval characteristic sequence of each channel, and constructing a stable interval of the channel i according to the average value mu i and the standard deviation sigma i ; And according to the communication stability state of each channel, carrying out self-adaptive adjustment on the initial timeout reference threshold value of each channel, and outputting the dynamic timeout threshold value of each channel.
- 4. The method for performing a program-controlled circuit break triggered by heartbeat monitoring of claim 3 wherein the method for determining the communication stability status of each channel comprises: And monitoring newly increased heartbeat interval values of each channel in real time, judging that the channel i is in a communication stable state when the continuous k1 newly increased heartbeat interval values of the channel i fall in a stable interval, and judging that the channel i is in a communication fluctuation state when the continuous k2 newly increased heartbeat interval values of the channel i exceed the stable interval, wherein k1 is continuous stability judgment times and k2 is continuous fluctuation judgment times.
- 5. The method for performing a program-controlled circuit break triggered by heartbeat monitoring of claim 4 wherein the method for adaptively adjusting the initial timeout reference threshold for each channel comprises: And tightening an initial timeout reference threshold of the channel by using a steady state adjustment coefficient alpha for the channel in a steady state of communication, and relaxing the initial timeout reference threshold of the channel by using a fault-tolerant state adjustment coefficient beta for the channel in a fluctuation state of communication, and outputting a dynamic timeout threshold after self-adaptive adjustment of each channel.
- 6. The method for performing a program-controlled circuit break triggered by heartbeat monitoring of claim 5 wherein the method for generating a channel loss-of-continuity confirmation flag via a multi-level anti-jitter decision comprises: monitoring the receiving state of the heartbeat signals of each channel in real time, identifying the channel with the heartbeat signal loss, and recording the signal loss duration of the channel with the heartbeat signal loss; When the signal loss duration of a channel with heartbeat signal loss is larger than a dynamic timeout threshold of the channel for the first time, placing the channel in a suspected disconnection state, entering an observation period, and setting the duration of the observation period; And if the heartbeat signal is not detected at the end of the observation period, the channel in the suspected disconnection state is placed in the real disconnection state, and a channel disconnection confirmation mark of the channel in the real disconnection state is generated.
- 7. The method for executing program-controlled circuit breaking triggered by heartbeat monitoring according to claim 6, wherein row indexes of the state control matrix correspond to N test channels, and column indexes correspond to three types of core control objects, namely direct current output control, alternating current input control and audible and visual alarm control; When the state control matrix is initialized, all elements of the direct current output control column are set to be 1, all elements of the alternating current input control column are set to be 1/N, and all elements of the audible and visual alarm control column are set to be 1.
- 8. The method for executing channel-level direct current open circuit triggered by heartbeat monitoring according to claim 7, wherein the method for executing channel-level direct current open circuit decision comprises the steps of monitoring changes of elements of a direct current output control column of a real-time state control matrix, and generating a channel-level direct current open circuit action request of a corresponding channel when any element is detected to be changed from 1 to 0.
- 9. Program-controlled breaking execution device triggered by heartbeat monitoring for implementing the method for executing program-controlled breaking triggered by heartbeat monitoring according to any one of claims 1 to 8, characterized in that it comprises: the disconnection confirmation module is used for receiving heartbeat signals of N test channels of the heartbeat breaking box, constructing heartbeat interval characteristic sequences of the channels, calculating dynamic timeout threshold values of the channels according to the heartbeat interval characteristic sequences of the channels, and generating a channel disconnection confirmation mark through multistage anti-jitter judgment based on the dynamic timeout threshold values of the channels; the system comprises a state control matrix, a circuit breaking decision module, a real-time state control matrix, a three-level circuit breaking decision module and a control module, wherein the state control matrix is initialized and updated according to a channel disconnection confirmation mark to obtain the real-time state control matrix; The stable recovery module is used for reading the real-time state control matrix to identify channels to be recovered, calculating the recovery priority value of each channel to be recovered, constructing a recovery priority queue, executing peak-shifting type electric recovery according to the recovery priority queue, realizing electric stable recovery and communication conflict avoidance by interaction of progressive voltage soft start and detection heartbeat frames and combining communication time slot allocation.
Description
Method and device for executing program-controlled circuit breaking triggered by heartbeat monitoring Technical Field The invention relates to the technical field of monitoring control, in particular to a program control circuit breaking execution method and device triggered by heartbeat monitoring. Background In multi-station test scenes such as an aging endurance test of a vehicle-mounted battery charger, a multi-channel parallel test mode is often adopted for improving test efficiency, and each test channel needs to continuously maintain stable communication and electrical connection so as to ensure validity of test data and continuity of a test process. The heartbeat monitoring is a core means for judging the communication state of the channel, and the disconnection control is a key link for guaranteeing the safety of the system and avoiding fault diffusion when the communication abnormality occurs in the channel, and the cooperative action of the two links directly determines the operation stability and the test efficiency of the multi-station test system. In the prior art, china patent with an authorized bulletin number of CN119862059B discloses a distributed system fault intelligent processing method, a device, a computer readable storage medium and electronic equipment, an application service is started to generate a heartbeat packet, the heartbeat packet is sent to a heartbeat queue according to a set time interval, after a monitoring service receives and stores heartbeat queue data, data are continuously collected from each node to perform preprocessing, fault detection characteristics are extracted, the heartbeat packet data are analyzed by adopting an isolated forest model training and self-adaptive threshold adjustment method, a fault position is determined according to a characteristic code when node heartbeat abnormality is detected, and a compensation message is generated to execute a compensation task by the application service. The Chinese patent application with publication number CN109480810A discloses a pulse signal error correction method based on a circulation queue, which captures pulse signals after starting an interrupt through initializing a timer and a general input/output port, continuously measures more than three pulse signals and takes an average value to calculate the pulse rate, and re-collects the pulse signals when the signal collection is abnormal, so that abnormal signals generated by inaccurate sensor positions and muscle jitter can be removed, and the pulse signal measurement accuracy is ensured. However, the prior art still has significant technical defects in a multi-station test scene of the aging endurance test of the vehicle-mounted charger, and the coupling accidental injury problem of 'local disconnection-global cutoff' is difficult to solve. Specifically, although the prior art CN119862059B can implement fault detection and task compensation of a distributed system, the fault recovery of a data task layer is aimed at, the circuit breaking execution logic of the electrical loop hierarchical control in the multi-station test is not involved, the compensation mechanism cannot adapt to the independent control requirements of the direct current and alternating current loops required by the vehicle-mounted charger test, if the circuit breaking mechanism is applied to the multi-channel test, when a heartbeat abnormality (local disconnection) occurs in a single channel, an accurate circuit breaking means of the channel level is lacking, global electrical disconnection of the system level is easy to trigger, so that other normal channel tests are interrupted, the prior art CN109480810a focuses on error correction and accurate measurement of a single pulse signal, only solves the problem of accuracy of a single path signal, an independent data processing mechanism of multi-channel parallel monitoring cannot distinguish the communication rhythm differences of different test channels, and under the scene, the fixed measurement logic of the technology is adopted, or the circuit breaking test is not applicable to the communication fluctuation characteristics of each channel, so that the error judgment is caused (the instantaneous interference is regarded as local disconnection) because of lacking dynamic judgment standard, and the electrical fault isolation is not involved. In the aging endurance test of the vehicle-mounted charger, a multi-station system usually comprises N (N is more than or equal to 2) independent test channels, the communication state of each channel is influenced by factors such as electromagnetic interference, sample load change and the like, individual differences exist, in the prior art, because control granularity is rough (such as global coupling control) and no channel exclusive judgment standard exists, when a certain channel is subjected to local disconnection (such as instant communication interruption or real disconnection), a direct current