A multi-interrupter delay compensation system and method
Patent Information
- Application Number
- CN202610816436.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-08
- Publication Date
- 2026-08-28
AI Technical Summary
[0005]本申请实施例提供一种多中断器延迟补偿系统及方法,以解决现有系统因存在不稳定的信号传输延时导致精度较低的问题
高精度同步的动态延时补偿:在本地测量每一次通断动作的实际传输延时,并利用该测量值对下一次控制信号进行前馈补偿,从而降低多设备间的同步误差。
Smart Images

Figure CN122654050A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cathodic protection technology, and in particular to a multi-interruptor delay compensation system and method. Background Technology
[0002] Since long-distance pipelines are usually buried underground and are constantly exposed to soil corrosion, cathodic protection technology can be used for protection. Cathodic protection of pipelines is an anti-corrosion technology based on electrochemical principles. By applying direct current to buried or underwater metal pipelines, the entire pipeline becomes the "cathode" in the electrochemical system, thereby inhibiting anodic dissolution corrosion of the pipeline metal. It is usually used in conjunction with external anti-corrosion coatings to extend the service life of pipelines and improve operational safety.
[0003] To evaluate the effectiveness of cathodic protection, synchronous current interruptors can be used to simultaneously de-energize and energize all cathodic protection rectifiers on the entire pipeline during close-interval potential (CIPS) and DC voltage gradient (DCVG) measurements. This allows for the measurement of the "true OFF potential" without IR drop interference. This requires the use of current interruptors installed at multiple locations along the long-distance pipeline.
[0004] However, due to the long length of the pipeline, the intervals between interrupters are large, resulting in signal transmission delays of up to tens of milliseconds between the control signal input and power output terminals of the switching devices. This severely affects the synchronization of multiple interrupters. Furthermore, due to individual differences in each interrupter and the influence of ambient temperature, the delay of each interrupter varies, making it difficult to achieve synchronized interruption actions across all interrupters using a uniform delay compensation strategy. Summary of the Invention
[0005] This application provides a multi-interrupt delay compensation system and method to solve the problem of low accuracy caused by unstable signal transmission delay in existing systems.
[0006] In a first aspect, this application provides a multi-interrupt delay compensation system, comprising: A cloud platform that communicates with a user terminal; the cloud platform is configured to send parameter acquisition instructions to multiple interrupters that communicate with the cloud platform based on configuration information sent by the user terminal. The interrupters are configured to correct the current delay compensation based on the parameter acquisition instruction, so that the time base of the interrupter under the corrected operating parameters is consistent with the time base of the other interrupters. The device information is sent to the cloud platform based on the corrected operating parameters; the device information includes compensation values, device temperature, and power supply voltage.
[0007] In some feasible embodiments, the interrupter includes: The communication module is configured to receive the parameter acquisition instruction sent by the cloud platform; The main control module is configured as follows: A control signal is generated based on the parameter acquisition instruction sent by the communication module; the control signal is used to control the relay to turn on or off based on preset on / off parameters; Obtain the actual on / off parameters of the interrupter; The compensation value is determined based on the actual conduction / disconnection parameters and the preset conduction / disconnection parameters; the compensation value is used to correct the preset conduction / disconnection parameters.
[0008] In some feasible embodiments, the interrupter further includes: A current sensor connected in series in the relay output circuit is configured to send a monitoring signal to the main control module based on the voltage and current changes at the relay output terminal. The main control module is also configured to: Based on the monitoring signal, the actual on / off parameters of the interrupter are obtained.
[0009] In some feasible embodiments, the preset conduction / disconnection parameters include a preset conduction time and a preset disconnection time; the actual conduction / disconnection parameters include an actual conduction time and an actual disconnection time; and the compensation value includes conduction compensation and disconnection compensation. The main control module is also configured as follows: The conduction compensation is calculated based on the preset conduction time and the actual conduction time, and the disconnection compensation is calculated based on the preset disconnection time and the actual disconnection time.
[0010] In some feasible embodiments, the main control module includes: The first timer is configured to record the preset turn-on time and the preset turn-off time in response to the main control module sending the control signal to the relay; The second timer is configured to record the actual turn-on time and the actual turn-off time based on the monitoring signal.
[0011] In some feasible embodiments, the main control module further includes: The delay compensation module is configured to correct the preset conduction / disconnection parameter according to the compensation value to obtain the corrected conduction / disconnection parameter; the corrected conduction / disconnection parameter is obtained by subtracting the compensation value from the preset conduction / disconnection parameter.
[0012] In some feasible embodiments, before the main control module generates the control signal based on the parameter acquisition instruction sent by the communication module, it is further configured to: Initialize the first and second timers; The system receives BeiDou message information based on the communication module, parses it, and updates the system time.
[0013] In some feasible embodiments, the cloud platform is also configured to: Based on the configuration information sent by the user terminal and the device information of all interrupters, the parameter acquisition instruction is generated; Send the parameter acquisition instruction to the interrupter.
[0014] In some feasible embodiments, the main control module is further configured as follows: When the compensation value is greater than a preset threshold, an alarm message is generated; The alarm information is sent to the cloud platform based on the communication module.
[0015] Secondly, this application provides a multi-interrupt delay compensation method, applied to the multi-interrupt delay compensation system of the first aspect, comprising: Device initialization; Receive BeiDou message information, parse and update the system time; Obtain a parameter acquisition instruction, which is generated based on configuration information sent by the user terminal; Record the actual on / off parameters and preset on / off parameters corresponding to when the relay is turned on and off; The compensation value is calculated based on the actual conduction / disconnection parameters and the preset conduction / disconnection parameters; the compensation value is used to correct the preset conduction / disconnection parameters.
[0016] The method provided in this application has the following beneficial effects: High-precision synchronous dynamic delay compensation: The actual transmission delay of each on / off action is measured locally, and the measured value is used to feedforward compensation for the next control signal, thereby reducing the synchronization error between multiple devices.
[0017] Intelligent and remote operation and maintenance of interruptors: Transforming interruptors into networked intelligent nodes enables remote real-time configuration of operating parameters, transparent monitoring and management of device health status and synchronous performance data, and constructs a complete remote operation and maintenance closed loop. Attached Figure Description
[0018] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1An architecture diagram of the multi-interrupt delay compensation system provided in this application embodiment; Figure 2 Circuit diagrams of the main control module, relay drive and interface circuit, and current sensor in the interrupter provided in the embodiments of this application; Figure 3 A circuit diagram of the communication module in the interrupter provided in an embodiment of this application; Figure 4 A flowchart of a multi-interrupt delay compensation method provided in an embodiment of this application. Detailed Implementation
[0020] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of this application.
[0021] The terminology used in the embodiments of this application is explained as follows: Long-distance pipelines refer to oil and gas transmission pipelines with a certain length and span, including oil pipelines, gas pipelines, and multi-purpose pipelines.
[0022] Non-destructive testing of pipelines is a non-invasive testing method that uses various technical means to assess the integrity and performance of pipelines without damaging the pipeline structure.
[0023] A magnetic sensor is a device specifically designed to detect and measure magnetic fields. It utilizes the influence of a magnetic field on physical properties to determine the presence, strength, and direction of the magnetic field. Common types include Hall effect sensors and magnetoresistive sensors. Other types of magnetic sensors include magnetoresistive sensors and magnetometers.
[0024] The parameter SPS (samples per second) of an ADC is a unit that measures the sampling rate during analog-to-digital conversion (ADC). The sampling rate is defined as the frequency at which the input signal is sampled. The sampling rate not only indicates the conversion speed of the analog-to-digital converter, but also determines the bandwidth range of signals that the system can process.
[0025] Cathodic protection of pipelines is an anti-corrosion technology based on electrochemical principles. By applying direct current to buried or underwater metal pipelines, the entire pipeline becomes the "cathode" in the electrochemical system, thereby inhibiting anodic dissolution corrosion of the pipeline metal. It is usually used in conjunction with external anti-corrosion coatings to extend the service life of pipelines and improve operational safety.
[0026] CIPS "Close Interval Potential Survey" is a field inspection method that continuously measures the pipe-to-ground potential (current potential Von and de-current potential Voff) along buried steel pipelines at small intervals of 1 to 3 meters on the ground surface. It is used to evaluate the effectiveness of cathodic protection, identify underprotected sections, and help determine defects in the anti-corrosion coating.
[0027] An interruptor (also known as a current interruptor / synchronous interruptor in cathodic protection) is an automatic switching device connected in series in the output circuit of the cathodic protection power supply (such as a potentiostat). It cyclically cuts off and connects the protection current according to a set on / off cycle. In conjunction with CIPS close-interval potential measurement, it synchronously measures the "on-state potential (ON)" and "off-state potential (OFF)" to eliminate IR drop and accurately evaluate the effectiveness of pipeline cathodic protection.
[0028] A solid-state relay (SSR) is a type of relay that has no mechanical contacts and uses semiconductor switching devices (such as thyristors, triacs, and power MOSFETs) to achieve the "on / off" function. It typically uses optocouplers or input circuits for electrical isolation and drive in the front stage, and power devices to control AC or DC loads in the back stage, enabling the control of large currents with small signals. It also has advantages such as long lifespan, fast operation, no sparks, and shock resistance.
[0029] Existing interruptors lack remote communication interfaces. Field inspection personnel typically set the interruptor parameters and then travel to the pipeline site for inspection, often at locations tens of kilometers away. In unattended conditions, personnel cannot adjust parameters in a timely manner or monitor the interruptor's real-time operating status, making on-site operation extremely inconvenient. Furthermore, existing interruptors suffer from unstable signal transmission delays, with values far exceeding synchronization time requirements, failing to meet the needs of external pipeline inspection applications.
[0030] To address the aforementioned technical issues, this application provides a multi-interrupt delay compensation system and method. By performing closed-loop compensation on the signal transmission delay at the control signal input terminal and power output terminal of the switching device, the synchronization error caused by the signal transmission delay is eliminated, ensuring that the synchronization time error between different interrupts is ≤0.1ms.
[0031] See Figure 1 This is an architecture diagram of the multi-interrupt delay compensation system provided in the embodiments of this application.
[0032] like Figure 1As shown, the multi-interrupt delay compensation system provided in this application includes a cloud platform that communicates with a user terminal (e.g., an APP on a mobile terminal used by an engineer). In the embodiments of this application, the cloud platform plays the role of a remote server, and one of its core functions is to receive, verify, and forward configuration information from the user terminal.
[0033] In some embodiments, the configuration information may include the interruptor's on / off cycle, power-off pulse width, synchronization schedule, and detection programs to be executed (such as standard programs like CIPS and DCVG). The cloud platform is configured to immediately generate and broadcast or send parameter acquisition instructions to multiple interruptors (e.g., interruptor 1, interruptor 2... interruptor n) that are communicatively connected to it, once it receives valid configuration information.
[0034] In this embodiment, the interrupters can be deployed at different cathodic protection stations along the long-distance pipeline and connected in series in the DC output circuit of the potentiostat. Each interrupter can be configured to activate its internal delay compensation logic upon receiving a parameter acquisition command from the cloud platform.
[0035] Specifically, the interrupter can modify its current delay compensation parameters based on the parameter acquisition instruction. It should be noted that the "modification" here is a dynamic process, meaning that the interrupter can use the compensation value obtained from the most recent measurement to update the preset time point used to control the relay action internally. This ensures that the time base for the interrupter to perform on / off actions under the modified operating parameters is highly consistent with the time base of all other interrupters.
[0036] After completing the delay correction, the interrupter enters normal synchronous operation mode and sends its device information to the cloud platform based on the corrected operating parameters. In some embodiments, the device information can be a data packet, which includes at least: the compensation value calculated this time (including conduction compensation and disconnection compensation), which is the core indicator for measuring the synchronization performance of the interrupter; the device temperature, because temperature is an important environmental factor affecting relay delay drift, and monitoring the temperature helps to assess the stability of the compensation value; and the power supply voltage, as fluctuations in the power supply voltage may also indirectly affect the response speed of the control circuit. By continuously uploading this information, the cloud platform can monitor the health status and synchronization accuracy of each interrupter in real time, providing users with transparent remote monitoring capabilities.
[0037] In some embodiments, the interrupter may include a communication module and a main control module. The communication module, which may be a 4G module, is configured to establish a stable bidirectional data communication link with the cloud platform via a 4G LTE wireless network. In application, the communication module is responsible for receiving parameter acquisition instructions and other control instructions (such as start / stop commands, parameter updates, etc.) issued by the cloud platform, and uploading locally collected device information to the cloud platform.
[0038] The main control module is the "brain" of the interrupt controller, responsible for coordinating the work of all internal modules. In some embodiments, the main control module can be configured to perform the following core tasks: First, when the communication module receives a parameter acquisition instruction, it transmits the instruction to the main control module via a serial port (such as UART). After parsing the instruction, the main control module generates a specific control signal based on the preset on / off parameters contained in the instruction (e.g., the theoretical on and off times of the next cycle). This control signal can be a high / low level, output through the general-purpose input / output (I / O) pins of the main control module, used to directly drive the control terminal of the relay (or its drive interface circuit), thereby controlling the relay's on or off state.
[0039] Secondly, the main control module doesn't simply issue a command and stop; instead, it simultaneously initiates a precise measurement process. By acquiring the actual on / off parameters of the interrupter and comparing them with the original preset on / off parameters based on a pre-defined algorithm, it accurately determines the compensation value for this action. This compensation value is crucial for subsequent correction of the preset parameters and achieving high-precision synchronization.
[0040] In some embodiments, to achieve real-time acquisition of actual on / off parameters, the interrupter further includes a current sensor connected in series in the relay output circuit. The current sensor can be a Hall effect current sensor or other non-invasive current sensing element, its function being to monitor changes in current flowing through the relay output terminal in real time and with precision. When the relay attempts to change its switching state according to a control signal, the voltage and current at its output terminal will undergo significant jumps (e.g., from near 0V to the load voltage, or vice versa). The current sensor can sensitively capture this physical change and convert it into a clear electrical signal (e.g., a square wave pulse), then send this monitoring signal to the main control module.
[0041] Accordingly, the main control module is also configured to receive and process monitoring signals from the current sensor. By accurately capturing and timestamping the edges of the monitoring signals (e.g., rising edge representing conduction, falling edge representing disconnection), the main control module can accurately obtain the actual turn-on and actual disconnection times of the interrupter, i.e., the aforementioned actual conduction / disconnection parameters. This provides a reliable data foundation for calculating the compensation value, forming a crucial link in the closed-loop feedback.
[0042] In some embodiments, the preset on / off parameters include a preset on time (T1) and a preset off time (T2), while the actual on / off parameters include the actual on time (T3) and the actual off time (T4). Correspondingly, the compensation values include on-time compensation (ΔTon) and off-time compensation (ΔToff). The main control module is further configured to perform precise mathematical operations: calculating the on-time compensation (ΔTon = T3 - T1) based on the preset on time (T1) and the actual on time (T3), and calculating the off-time compensation (ΔToff = T4 - T2) based on the preset off time (T2) and the actual off time (T4). Since the on and off delays of the relay are usually unequal, performing the calculations separately can achieve a more refined compensation effect.
[0043] In some embodiments, to achieve time recording, the main control module can integrate two high-precision hardware timers: a first timer and a second timer. The first timer can be configured to automatically record the timestamp of the event the main control module sends to the relay via the I / O port. Specifically, when the control signal has a rising edge (indicating conduction), the first timer records a preset conduction time (T1); when the control signal has a falling edge (indicating deactivation), the first timer records a preset deactivation time (T2). This method ensures that the recording of the preset times is strictly synchronized with the transmission of the control signal, avoiding errors caused by software delays.
[0044] In some embodiments, the second timer can be configured to listen to the monitoring signal from the current sensor. When the monitoring signal has a rising edge (indicating that the relay output is actually turned on), the second timer accurately captures and records the actual turn-on time (T3); when the monitoring signal has a falling edge (indicating that the relay output is actually turned off), the second timer accurately captures and records the actual turn-off time (T4). By using two independent hardware timers to process the control signal and the feedback signal respectively, the accuracy and reliability of the timestamp can be maximized, laying a solid foundation for subsequent compensation calculations.
[0045] In some embodiments, delay compensation can be implemented through a delay compensation module configured within the main control module (which can be a software algorithm unit or dedicated hardware logic). Specifically, the delay compensation module is configured to immediately correct the original preset on / off parameters after calculating the on-time compensation (ΔTon) and off-time compensation (ΔToff). The specific correction method is as follows: the new corrected on-time is set to the original preset on-time (T1) minus the on-time compensation (ΔTon); the new corrected off-time is set to the original preset off-time (T2) minus the off-time compensation (ΔToff). Through this "advance" method, the main control module will issue a control signal at an earlier time when it needs to perform the on / off action next time, thereby precisely canceling the inherent delay of the relay and enabling its output to complete the action at the ideal theoretical time (T1, T2).
[0046] In some embodiments, the mobile app configured on the user end can serve as the system's human-machine interface and mobile control terminal. It acts as a window for engineers to interact with the entire system, allowing them to input and submit new "configuration parameters" (such as on / off cycles and synchronization schedules) anytime, anywhere. It provides engineers with an interface to "obtain device parameters" and view the operating status and health data of any interruptor in real time or historically.
[0047] As can be seen from the above technical solution, the overall workflow of the system provided in this application can be as follows: Engineers remotely issue configuration parameters via a mobile app. These commands are transmitted wirelessly to the 4G modules of each interrupt device, which receives and updates its operating parameters in real time. Simultaneously, each interrupt device continuously collects its own status and synchronization error data, transmitting it back to the cloud platform via the 4G module, allowing engineers to access device information anytime, anywhere. Addressing the limitations of traditional interrupt devices, such as the inability to remotely adjust parameters and monitor status, and the inability to perform batch operations on multiple interrupt devices, this method enables real-time parameter adjustment and status monitoring at the interrupt device's work site, improving on-site work efficiency and quality.
[0048] Based on preset or remote commands, the main control module sends relay control signals (such as rising and falling edges) via the I / O port through Timer A at predetermined theoretical turn-on time T1 and predetermined theoretical turn-off time T2. The main control module simultaneously records T1 and T2. After receiving the control signal, due to its physical characteristics, the current at the relay's output terminal does not change immediately upon receiving the control signal; instead, it actually turns on or off after a delay. The voltage / current change at the relay's output terminal is detected by the current sensor, generating a transition signal, which is sent to the input capture channel of Timer B. Timer B accurately captures the actual turn-on time T3 and the actual turn-off time T4. The main control module reads T1, T2, T3, and T4, and in the "delay compensation" algorithm unit, calculates in real time the actual turn-on delay (T3-T1) and the actual turn-off delay (T4-T2) of this action. When the next action is required, the main control module subtracts the corresponding compensation amount from the predetermined time and sends the control signal again through Timer A after correction. This cycle repeats, forming a closed-loop dynamic compensation. To address the signal transmission delay problem of traditional interruptors, this method can significantly improve the timing accuracy of synchronous switching of devices and suppress delay drift caused by factors such as device aging and temperature changes.
[0049] In some embodiments, such as Figure 2 In the circuit diagram shown, the main control microcontroller (U1) serves as the control core of the system. It is a microcontroller (such as the STM32 series) with high-precision timers and rich peripherals. It is responsible for generating relay control signals, executing delay compensation algorithms, processing input capture timestamps, reading sensor data, and communicating with the 4G module via a serial port.
[0050] Relay Driver and Interface Circuit (U3): U3 is the driver interface circuit for the solid-state relay (SSR). The SSR_EN pin receives high / low level control signals from the microcontroller to drive the internal power switch of the relay. SSRp1 and SSRp2 are the output pins of the relay, connected in series in the cathodic protection circuit, directly controlling the current flow.
[0051] Current sensor (U2): Employs a Hall effect current sensor to monitor the current flowing through the relay in real time. Its output pin VIOUT voltage signal is connected to the microcontroller's timer input capture pin for current monitoring to determine the response status of the relay output.
[0052] In some embodiments, such as Figure 3 In the circuit diagram shown, the 4G communication module (U13) is a 4G LTE-based wireless communication module that connects to the microcontroller via a UART serial port. It is responsible for establishing a connection to the internet and enabling bidirectional data exchange with a remote cloud platform.
[0053] Specifically, the microcontroller outputs a control level to the SSR_EN pin of U3 via GPIO to drive the relay to turn on or off. Simultaneously, this control signal is fed back to the input capture channel of Timer A through external circuitry to record the timing of the control signal output (T1 / T2). The voltage change at the relay output (SSRp1 / SSRp2) is detected by a current sensor, and the detection result is output by VIOUT. This signal is then sent to the input capture channel of Timer B to record the actual output transition timing (T3 / T4). The microcontroller internally performs algorithmic compensation on the recorded timing. Simultaneously, the microcontroller sends data (status, alarms) to U13 via UART, or receives remote commands from U13.
[0054] In some embodiments, before generating control signals based on parameter acquisition instructions sent by the communication module, the main control module is configured to perform a series of initialization and calibration operations. First, it initializes the first and second timers, ensuring they are in a known, ready state, clears the counters, and configures the corresponding input acquisition channels. Second, the main control module receives BeiDou message information through the communication module (or the device's built-in independent satellite receiver module). The main control module's built-in parsing program decodes the message, extracts high-precision UTC time information, and uses it to update or calibrate the system time within the interrupters. This step ensures that all interrupters are locked to the same absolute time base, a prerequisite for global synchronization.
[0055] In some embodiments, the cloud platform is also configured to comprehensively analyze configuration information received from the user terminal and device information (including compensation values, temperature, voltage, etc.) collected from all interruptors. Based on this analysis, the cloud platform can generate more intelligent parameter acquisition instructions. For example, if the compensation value reported by an interruptor is too large or fluctuates drastically, the cloud platform can add a specific diagnostic task to the issued instruction, requiring the interruptor to perform multiple measurements to confirm the problem. Alternatively, the cloud platform can dynamically adjust the synchronization strategy of the entire system based on the temperature information of all devices. This intelligent instruction generation mechanism enables the entire system to have adaptive and self-diagnostic capabilities.
[0056] In some embodiments, the cloud platform can also adjust the parameter acquisition instructions sent to each interrupter according to the different environments in which each interrupter is located.
[0057] In some embodiments, the main control module is also configured to continuously monitor its calculated compensation value and compare it with a preset safety threshold. This safety threshold can be set based on the relay's specifications or historical operating data. When the main control module determines that the current compensation value (whether for on or off compensation) exceeds the preset threshold, it considers the interruptor to have a potential fault, such as hardware aging, abnormal temperature, or relay performance degradation. At this time, the main control module immediately generates an alarm message. This alarm message is quickly sent to the cloud platform via the communication module. Upon receiving the alarm, the cloud platform can immediately push it to the user's app, reminding engineers to pay attention and handle it promptly, thus preventing potential problems and ensuring the smooth progress of the entire pipeline inspection task.
[0058] As can be seen from the above technical solution, the technical solution provided in this application does not passively accept hardware delay, but rather accurately calculates the real-time changing delay parameters of the device itself by comparing the output time of the interrupter with the instruction issuance time. Subsequently, the system will issue instructions in advance according to the corresponding duration in subsequent work cycles to cancel out the originally uncontrollable hardware delay to zero. This closed-loop compensation approach upgrades the synchronization accuracy from "open-loop coarse synchronization" that depends on the consistency of devices to "closed-loop fine synchronization" that actively corrects, ensuring improved synchronization accuracy when multiple devices are running for a long time in complex environments.
[0059] This application upgrades the interrupter to an online intelligent terminal node by integrating 4G remote communication and monitoring functions. Operators can remotely complete parameter configuration, task start and stop, and other operations. The equipment's operating status (including key synchronization error data and health indicators) can also be transparently monitored. This frees on-site personnel from tedious tasks such as equipment addressing, manual settings, and status verification, significantly improving work efficiency and enhancing data reliability and system maintainability.
[0060] This application also provides a multi-interrupt delay compensation method applied to the multi-interrupt delay compensation system provided in any of the above embodiments. The flowchart of this method is as follows: Figure 4 As shown, the specific steps include: S101: Device Initialization. Device initialization is performed first when the interruptor powers on or receives a reset command. This includes configuring all peripherals within the main control module, such as initializing general-purpose input / output (GPIO), the universal synchronous / asynchronous transceiver (USART, used for communication with the communication module), the analog-to-digital converter (ADC, used to read temperature and voltage sensors), and the two most critical timers (Timer 1 and Timer 2).
[0061] S102: Receives BeiDou message information, parses and updates the system time. After initialization, the main control module will continuously or periodically receive BeiDou satellite navigation system message information through the communication interface. The built-in parsing program of the main control module will extract the timestamp accurate to the microsecond level from the message and use it to calibrate or update the real-time clock (RTC) inside the interrupter to ensure that the local time is strictly synchronized with the global unified time reference.
[0062] S103: Obtain parameter acquisition instruction. The interrupter enters standby or normal operation state and listens for instructions from the cloud platform through the communication module. When it receives a parameter acquisition instruction generated by the cloud platform based on the configuration information sent by the user terminal, the interrupter is triggered to enter the compensation measurement mode.
[0063] S104: Records the actual and preset on / off parameters of the relay when it is turned on and off. Upon receiving a command, the main control module will send a control signal through the I / O port at the theoretical time according to the preset parameters in the command. At the same time, the first timer records the time when the control signal is sent, namely the preset on time (T1) and the preset off time (T2). After the relay is activated, the state change of its output terminal is captured by the current sensor, and the monitoring signal is sent to the second timer. The second timer records the actual on time (T3) and the actual off time (T4) accordingly.
[0064] S105: Calculate compensation values based on actual on / off parameters and preset on / off parameters. The main control module reads four timestamps (T1, T2, T3, T4) and performs the calculations: on-time compensation ΔTon = T3 - T1, off-time compensation ΔToff = T4 - T2. The obtained compensation values will be used to correct the preset parameters for the next action, thus completing a full dynamic delay compensation cycle.
[0065] Through the above method, the present invention successfully improves the synchronization accuracy of multiple interruptors from tens of milliseconds in the traditional scheme to within 0.1 milliseconds, perfectly meeting the application requirements of high-precision pipeline non-destructive testing such as CIPS / DCVG, and greatly improving the intelligence level and efficiency of on-site operations through remote communication function.
[0066] The technical effects of the methods and apparatus provided in this application can be found in the descriptions of any of the foregoing system embodiments, and will not be repeated here.
[0067] The above specific embodiments further illustrate the purpose, technical solution and beneficial effects of this application. It should be understood that the above are only specific embodiments of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of this application should be included within the scope of protection of this application.
Claims
1. A multi-interrupt delay compensation system, characterized in that, include: A cloud platform that communicates with the user terminal; The cloud platform is configured to send parameter acquisition instructions to multiple interrupters that are communicatively connected to the cloud platform, based on the configuration information sent by the user terminal. The interrupters are configured to correct the current delay compensation based on the parameter acquisition instruction, so that the time base of the interrupter under the corrected operating parameters is consistent with the time base of the other interrupters. The device information is sent to the cloud platform based on the corrected operating parameters; the device information includes compensation values, device temperature, and power supply voltage.
2. The multi-interrupt delay compensation system according to claim 1, characterized in that, The interrupter includes: The communication module is configured to receive the parameter acquisition instruction sent by the cloud platform; The main control module is configured as follows: A control signal is generated based on the parameter acquisition instruction sent by the communication module; the control signal is used to control the relay to turn on or off based on preset on / off parameters; Obtain the actual on / off parameters of the interrupter; The compensation value is determined based on the actual conduction / disconnection parameters and the preset conduction / disconnection parameters; the compensation value is used to correct the preset conduction / disconnection parameters.
3. The multi-interrupt delay compensation system according to claim 2, characterized in that, The interrupter also includes: A current sensor connected in series in the relay output circuit is configured to send a monitoring signal to the main control module based on the voltage and current changes at the relay output terminal. The main control module is also configured to: Based on the monitoring signal, the actual on / off parameters of the interrupter are obtained.
4. The multi-interrupt delay compensation system according to claim 3, characterized in that, The preset conduction / disconnection parameters include a preset conduction time and a preset disconnection time; the actual conduction / disconnection parameters include the actual conduction time and the actual disconnection time; the compensation value includes conduction compensation and disconnection compensation; The main control module is also configured as follows: The conduction compensation is calculated based on the preset conduction time and the actual conduction time, and the disconnection compensation is calculated based on the preset disconnection time and the actual disconnection time.
5. A multi-interrupt delay compensation system according to claim 4, characterized in that, The main control module includes: The first timer is configured to record the preset turn-on time and the preset turn-off time in response to the main control module sending the control signal to the relay; The second timer is configured to record the actual turn-on time and the actual turn-off time based on the monitoring signal.
6. The multi-interrupt delay compensation system according to claim 5, characterized in that, The main control module also includes: The delay compensation module is configured to correct the preset conduction / disconnection parameter according to the compensation value to obtain the corrected conduction / disconnection parameter; the corrected conduction / disconnection parameter is obtained by subtracting the compensation value from the preset conduction / disconnection parameter.
7. A multi-interrupt delay compensation system according to claim 4, characterized in that, Before the main control module generates the control signal based on the parameter acquisition instruction sent by the communication module, it is also configured as follows: Initialize the first and second timers; The system receives BeiDou message information based on the communication module, parses it, and updates the system time.
8. The multi-interrupt delay compensation system according to claim 1, characterized in that, The cloud platform is also configured as follows: Based on the configuration information sent by the user terminal and the device information of all interrupters, the parameter acquisition instruction is generated; Send the parameter acquisition instruction to the interrupter.
9. A multi-interrupt delay compensation system according to claim 2, characterized in that, The main control module is also configured to: When the compensation value is greater than a preset threshold, an alarm message is generated; The alarm information is sent to the cloud platform based on the communication module.
10. A method for compensating delays of multiple interruptors, applied to the multiple interruptor delay compensation system according to any one of claims 1 to 9, characterized in that, include: Device initialization; Receive BeiDou message information, parse and update the system time; Obtain a parameter acquisition instruction, which is generated based on configuration information sent by the user terminal; Record the actual on / off parameters and preset on / off parameters corresponding to when the relay is turned on and off; The compensation value is calculated based on the actual conduction and disconnection parameters and the preset conduction and disconnection parameters; The compensation value is used to correct the preset on / off parameters.