Signal processing method, disconnection detection device and system

By collecting and converting the analog signals of external devices into digital signals, detecting the connection status based on the digital signals, and using FPGA and ADC chips for filtering, the problem of equipment malfunction caused by disconnection is solved, and stable signal transmission and stable operation of the equipment are achieved.

CN120370227BActive Publication Date: 2025-09-12STATE NUCLEAR POWER AUTOMATION SYST ENGCO
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510863585.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2025-09-12
Estimated Expiration
2045-06-26

AI Technical Summary

Technical Problem

In the prior art, sudden disconnection and hot plugging of card components cause signal drops, resulting in equipment malfunction, causing production interruption and equipment damage.

Method used

The analog signal of the external device is collected and converted into a digital signal. The connection status is detected based on the digital signal. When the connection status is connected, the digital signal after filtering of the current preset period is output. When the connection status is disconnected, the digital signal after filtering of the previous preset period is output. The FPGA chip and ADC chip are used for real-time detection and filtering processing.

Benefits of technology

It avoids the controlled equipment from shutting down or generating signal fluctuations due to line disconnection, maintains the equipment's operating status, and prevents production interruption and equipment damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120370227B_ABST
    Figure CN120370227B_ABST
Patent Text Reader

Abstract

The present disclosure provides a signal processing method, a line break detection device, and a system. The signal processing method includes the following steps: collecting an analog signal output by an external device and converting the analog signal into a corresponding digital signal; detecting the connection status between the line break detection device and the external device based on the digital signal; in response to the connection status being connected, outputting a digital signal obtained after filtering during a current preset period; in response to the connection status being disconnected, outputting a digital signal obtained after filtering during a previous preset period; wherein the preset period includes digital signals corresponding to at least two collected analog signals; thereby avoiding production interruptions caused by sudden line break between the line break detection device and the external device, and making data transmission more stable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of signal processing, and in particular to a signal processing method, a line break detection device, and a system. Background Art

[0002] When an external analog input signal (such as a current signal or a voltage signal) is suddenly disconnected or a card is hot-swapped, the controlled device may shut down due to the disconnection between the external device and the input card, or the signal may fluctuate so that it cannot maintain the operating status or set value before the disconnection, resulting in subsequent production interruption and damage to the corresponding equipment. Summary of the Invention

[0003] The technical problem to be solved by the present disclosure is to overcome the defects in the prior art in that sudden line disconnection and hot plugging of card components may result in certain values ​​of the collected signal drop process, leading to equipment malfunction, thereby easily causing production interruption and equipment damage, and to provide a signal processing method, a line disconnection detection device and a system.

[0004] The present disclosure solves the above technical problems through the following technical solutions:

[0005] In a first aspect, a signal processing method is provided, the signal processing method comprising the following steps:

[0006] Collecting analog signals output by external devices and converting the analog signals into corresponding digital signals;

[0007] detecting a connection state between the disconnection detection device and the external device based on the digital signal;

[0008] In response to the connection state being connected, outputting a digital signal obtained after filtering during a current preset period;

[0009] In response to the connection state being disconnected, a digital signal obtained after filtering in a previous preset period is output; wherein the preset period includes digital signals corresponding to analog signals collected at least twice.

[0010] Optionally, after the step of collecting an analog signal output by an external device and converting the analog signal into a corresponding digital signal, the step further includes:

[0011] Storing the digital signal corresponding to the analog signal of the current preset period in a first register group;

[0012] Filtering the digital signal of the current preset period to obtain a filtered digital signal of the current preset period;

[0013] The digital signal obtained after filtering the current preset period is stored in the second register group.

[0014] Optionally, the step of detecting the connection status between the disconnection detection device and the external device based on the digital signal specifically includes:

[0015] In response to the digital signals of a plurality of consecutive sampling periods exceeding the measuring range, the connection state is detected as disconnected.

[0016] Optionally, the filtering is sliding window filtering;

[0017] The step of detecting the connection status between the disconnection detection device and the external device based on the digital signal specifically includes:

[0018] In response to the digital signals not meeting the requirement for a plurality of consecutive sampling periods being out of range, calculating the change value of the digital signal corresponding to the adjacent analog signal within the sliding window filter window corresponding to the current preset period;

[0019] In response to at least one of the change values ​​of the digital signals corresponding to the adjacent analog signals being greater than a change threshold, the connection state is detected as disconnected.

[0020] Optionally, the step of detecting the connection status between the disconnection detection device and the external device based on the digital signal further includes:

[0021] In response to the digital signals being within a measuring range and the change values ​​of adjacent digital signals within the sliding window filter window being less than or equal to the change threshold, the connection state is detected as connected.

[0022] In a second aspect, a disconnection detection device is provided, the disconnection detection device comprising a signal acquisition module, a signal detection module, and a signal output module;

[0023] The signal acquisition module is used to collect analog signals output by external devices and convert the analog signals into corresponding digital signals;

[0024] The signal detection module is used to detect the connection status between the disconnection detection device and the external device based on the digital signal;

[0025] The signal output module is used to: in response to the connection state being connected, output a digital signal obtained by filtering in a current preset period; and in response to the connection state being disconnected, output a digital signal obtained by filtering in a previous preset period; wherein the preset period includes digital signals corresponding to analog signals collected at least twice.

[0026] In a third aspect, a line break detection system is provided, the line break detection system comprising a control unit, an analog output card, and a line break detection device; the line break detection device is configured to execute the signal processing method according to the first aspect;

[0027] The control unit is used to receive the digital signal output by the disconnection detection device and transmit the digital signal to the analog output card;

[0028] The analog output card is used to convert the digital signal into a corresponding analog output signal, and send the converted analog output signal to the controlled device.

[0029] Optionally, the disconnection detection device includes an FPGA chip and an ADC chip; the FPGA chip is communicatively connected to the ADC chip; the FPGA chip is used to drive the ADC chip to collect analog signals output by an external device and convert the analog signals into corresponding digital signals; and detect the connection status between the disconnection detection device and the external device based on the digital signal; in response to the connection status being connected, output the digital signal obtained after filtering in the current preset period; in response to the connection status being disconnected, output the digital signal obtained after filtering in the previous preset period; wherein, the preset period includes digital signals corresponding to at least two collected analog signals.

[0030] Optionally, the control unit includes a controller and a host computer;

[0031] The controller is used to transmit the digital signal output by the disconnection detection device to the host computer;

[0032] The host computer is used to display the waveform of the analog signal; wherein, the waveform is used to indicate whether the analog signal is disconnected, and / or the analog output signal corresponding to the digital signal output by the control unit after the analog signal is disconnected.

[0033] Optionally, the disconnection detection system further includes a switch;

[0034] The switch is used to forward the digital signal output by the disconnection detection device to the corresponding controlled device.

[0035] On the basis of conforming to the common sense in this field, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.

[0036] The positive progressive effect of the present disclosure is that: the present disclosure collects the analog signal output by the external device and converts the analog signal into a corresponding digital signal; detects the connection status between the disconnection detection device and the external device based on the digital signal; when the connection is normal, outputs the digital signal obtained after filtering of the current preset period; when the connection status is disconnected, outputs the digital signal obtained after filtering of the previous preset period; transmits the digital signal obtained after filtering of the previous preset period to the controlled device to ensure the stability of the digital signal for output; thereby avoiding the situation where the controlled device malfunctions due to a sudden disconnection between the disconnection detection device and the external device, which causes certain values ​​of the signal drop process to be collected and thus a production interruption, and makes data transmission more stable. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A flowchart of a signal processing method provided in Example 1 of the present disclosure;

[0038] Figure 2 A partial flow chart of a signal processing method provided in Example 1 of the present disclosure;

[0039] Figure 3 A specific flow chart of step S12 provided in Example 1 of the present disclosure;

[0040] Figure 4 A schematic diagram of a module of a disconnection detection device provided in Example 2 of the present disclosure;

[0041] Figure 5 A schematic diagram of the architecture of a disconnection detection system provided in Example 3 of the present disclosure;

[0042] Figure 6 A schematic diagram of another architecture of a disconnection detection system is provided for Embodiment 3 of the present disclosure;

[0043] Figure 7 A waveform diagram of the test results of a line break detection system is provided for Example 3 of the present disclosure. DETAILED DESCRIPTION

[0044] The present disclosure is further illustrated below by way of examples, but the present disclosure is not limited to the scope of the examples.

[0045] The use of prefixes such as ordinal numbers to distinguish objects in the embodiments of the present disclosure does not limit the objects being described. For details about the objects being described, refer to the contextual description in the claims or embodiments, and the use of such prefixes should not constitute an unnecessary limitation. In addition, in the description of the embodiments, unless otherwise specified, "a plurality" means two or more.

[0046] Example 1

[0047] Figure 1 This is a flowchart of a signal processing method provided in this embodiment, the signal processing method comprising the following steps:

[0048] S11. Collecting an analog signal output by an external device and converting the analog signal into a corresponding digital signal; wherein the analog signal may be a 4-20 mA current or a voltage signal within a preset range.

[0049] S12. Detecting the connection status between the disconnection detection device and the external device based on the digital signal. This can prevent the host computer from mistaking the external device for a disconnected external device due to poor contact or static interference, thereby preventing the host computer from mistaking the external device for a disconnected external device and causing communication interruption. This can also prevent the host computer from mistaking the external device for a disconnected external device and causing abnormal operation of other controlled devices due to abnormal analog signal acquisition.

[0050] S13. In response to the connection state being connected, outputting a digital signal obtained after filtering during a current preset period; thereby achieving digital signal output when the disconnection detection device is normally connected to the external device.

[0051] S14. In response to the connection state being disconnected, output a digital signal obtained after filtering in a previous preset period; wherein the preset period includes digital signals corresponding to analog signals collected at least twice.

[0052] like Figure 2 As shown, after step S11, the following steps are further included:

[0053] S21, storing the digital signal corresponding to the analog signal of the current preset period into a first register tuple;

[0054] S22, filtering the digital signal of the current preset period to obtain a filtered digital signal of the current preset period;

[0055] S23: Store the digital signal obtained after filtering in the current preset period into the second register group.

[0056] In a specific example, the disconnection detection device includes an FPGA (Field-Programmable Gate Array) chip and an ADC (Analog-to-Digital Converter) chip. The FPGA chip drives the ADC chip to collect analog signals output by an external device, which are then converted into corresponding digital signals by the ADC chip. Therefore, the digital signals are real-time digital signals. Driven by the FPGA chip, these real-time digital signals are cached in register tuple A (i.e., the first register tuple). The size of register tuple A is the number m of cached digital data (specifically, DATA[0] to DATA[m-1]). Register tuple A is stored using a first-in, first-out principle. As a new digital signal arrives, the oldest digital signal is discarded, ensuring that the data cached in register tuple A always contains the latest m digital signals. Specifically, due to the discharge of external device capacitors during the disconnection process, the disconnection detection device can easily collect certain values ​​during the drop of the analog signal, causing the controlled device to malfunction; and the FPGA chip has strong real-time characteristics, which can eliminate the data jump caused by the disconnection through disconnection detection and filtering, so that the controlled device can stabilize the working state before the disconnection.

[0057] In this embodiment, when a sudden disconnection occurs between the disconnection detection device and the external device, or when the disconnection detection device is hot-plugged, the connection status between the disconnection detection device and the external device is detected based on a digital signal corresponding to the analog signal. In some embodiments, the disconnection detection device may also be referred to as an input card. In response to the connection status being connected, a digital signal obtained by filtering for the current preset period is output; in response to the connection status being disconnected, a digital signal obtained by filtering for the previous preset period is output. This prevents the controlled device from shutting down due to a disconnection between the external device and the disconnection detection device, or from generating signal fluctuations that render it unable to maintain the operating status or set value before the disconnection, and avoids subsequent production interruptions and damage to the corresponding equipment.

[0058] In an optional embodiment, the step S12 specifically includes: in response to the digital signal of multiple consecutive sampling periods exceeding the range, detecting that the connection state is disconnected. Specifically, the range is used to characterize the range of the analog signal mapped to the range of the digital signal. In a specific implementation, the analog signal can be a 4-20mA current signal. In this embodiment, the range of the digital signal corresponding to 4-20mA is approximately 0x10A8~0x31F8 in hexadecimal. Specifically, there are two situations after the external hardware circuit is disconnected:

[0059] 1) Pull the signal down to near 0: In the specific implementation, the actual signal is normally collected with a maximum margin of 10% of the range. For example, the maximum collection range of 4-20mA is 2.4-21.6mA. When the signal is < (4-16 0.2=2.4mA) is disconnected, this embodiment uses this external hardware circuit;

[0060] 2) Pull the signal up to full scale: when the digital signal value corresponding to the signal is 0x7FFFF, it also indicates a disconnection.

[0061] If the first condition is met after the external circuit is disconnected, that is, when the ADC chip samples a current signal that is less than 2.4mA (0x09FE) for multiple consecutive times, it indicates that the connection status between the external device and the disconnection detection device is detected to be disconnected, and a disconnection occurs.

[0062] In this embodiment, in response to the digital signals exceeding the measuring range for multiple consecutive sampling periods, it indicates that the external device is disconnected, and the digital signal obtained after filtering in the previous preset period is output, thereby avoiding the situation where the controlled device cannot maintain the previous operating state or set value because the connection status between the external device and the disconnection detection device is disconnected, and avoiding subsequent production interruptions and damage to the corresponding equipment.

[0063] In a specific example, if the digital signals collected for the latest three times are all less than 2.4mA, it means that the connection state is disconnected, that is, it is determined that the line is disconnected between the disconnection detection device and the external device; the digital signal obtained after filtering in the previous preset period is output.

[0064] In an optional embodiment, the filtering is a sliding window filtering, such as Figure 3 As shown, the step S12 specifically includes:

[0065] S121 , in response to the digital signals satisfying a plurality of consecutive sampling periods being within a measuring range.

[0066] S122 , calculating the change value of the digital signal corresponding to the adjacent analog signals within the sliding window filter window range corresponding to the current preset period.

[0067] S123 : In response to the change values ​​of the digital signals corresponding to the adjacent analog signals being smaller than a change threshold, detecting that the connection state is connected.

[0068] S124 . In response to at least one of the change values ​​of the digital signals corresponding to the adjacent analog signals being greater than a change threshold, detect that the connection state is disconnected.

[0069] In this embodiment, in response to the connection state being connected, a digital signal obtained after filtering during the current preset period is output, thereby achieving digital signal output when the disconnection detection device is normally connected to the external device. In response to the connection state being disconnected, a digital signal obtained after filtering during the previous preset period is output, thereby preventing the controlled device from being unable to maintain a previous operating state or set value due to the disconnection between the external device and the disconnection detection device.

[0070] In a specific example, the real-time data of m cycles cached in register tuple A are subtracted from each other to obtain the signal change value within every two sampling cycles, and the values ​​are saved in registers D_minus0 to D_minus(m-2).

[0071] In a specific implementation, the digital signal sampled by the ADC chip can be subjected to a sliding window filter with a window of m. Each time a new digital signal is sampled, the earliest collected digital signal is discarded. Therefore, each time a sample is taken, a new average value DATA_Filter can be calculated, and the filtered average value is passed step by step to the register tuple B (i.e., the second register tuple) (the size of the register tuple B is m+1, specifically B[0]~B[m], B[0] is the latest filtered value, and B[m] is the earliest filtered value). Each register stores the data of the previous sampling cycle, thereby realizing multi-cycle sliding window data caching.

[0072] If the change value of the digital signal corresponding to the adjacent analog signal within the sliding window filter window corresponding to the current preset period exceeds the preset change threshold at least once, it is considered that the digital signal has jumped, and it is determined that there is a disconnection between the external device and the disconnection detection device. The average value of the digital signal within the sliding window filter window corresponding to the previous preset period is output, that is, the digital signal corresponding to B[m].

[0073] In an optional embodiment, the step S12 specifically further includes: in response to the digital signals being within a measuring range and the change values ​​of adjacent digital signals within the sliding window filter window being less than or equal to the change threshold, detecting that the connection state is connected.

[0074] In this embodiment, if the digital signals are all within the measuring range, and the change values ​​of adjacent digital signals within the sliding window filter window are all less than or equal to the change threshold, it means that the connection between the external device and the disconnection detection device is normal. Therefore, the connection status is connected, and the digital signal obtained after filtering in the current preset period is output.

[0075] Specifically, take the example of a line break detection device used to detect an externally input 4-20mA analog current signal.

[0076] First, after connecting an external device to the disconnection detection device, the device should collect a constant 12mA current. This 12mA current signal is converted to digital form (using an ADC chip with 24-bit sampling resolution). The FPGA then samples the resulting hexadecimal data: 24'h2642xx ("xx" indicates fluctuations in the lower 8 bits, which do not affect accuracy; the controller only processes the upper 16 bits).

[0077] 24'h indicates a 24-bit hexadecimal number. Each digit of the hexadecimal number 26421f represents a 4-bit binary number. It can be converted to binary, for example: 26421f (hexadecimal) = 0010 0110 0100 00100001 1111 (binary).

[0078] In addition, in a specific example, when detecting an externally input 4-20mA analog current signal, the accuracy of the analog signal collected by the disconnection detection device is one thousandth of the range.

[0079] That is (20-4)×0.001=0.016mA;

[0080] Secondly, the real-time collected digital signals are cached in register tuple A, the size of which is 8 (specifically DATA[0] to DATA[7]). Take a set of collected data (i.e., multiple digital signals within a preset period) as an example:

[0081] DATA[0]=24'h26421f, DATA[1]=24'h26420b,

[0082] DATA[2]=24'h264223, DATA[3]=24'h26421e,

[0083] DATA[4]=24'h264221, DATA[5]=24'h26421f,

[0084] DATA[6]=24'h26421c, DATA[7]=24'h264207.

[0085] Then, the digital signals of the 8 sampling periods (where 8 sampling periods constitute a preset period) cached by register tuple A are subtracted from each other to obtain the absolute value of the signal change value within every two sampling periods:

[0086] D_minus0=24'h000014, D_minus1=24'h000018,

[0087] D_minus2=24'h000005, D_minus3=24'h000003,

[0088] D_minus4=24'h000002, D_minus5=24'h000003,

[0089] D_minus6=24'h000015.

[0090] The digital signal in register tuple A is filtered to obtain an average value DATA_Filter = 24'h264219. This filtered average value is then transferred to register tuple B (tuple size 9) stage by stage. Each register stores data from the previous preset cycle, thereby implementing sliding window data caching for multiple preset cycles. In response to the connection state being connected, the average value of the digital signal corresponding to the current preset cycle is output, for example, the sliding window filtered value DATA_Filter.

[0091] Example 2

[0092] Corresponding to the aforementioned embodiment 1 of the signal processing method, the present disclosure further provides an embodiment of a disconnection detection device.

[0093] Figure 4 This is a module diagram of a disconnection detection device provided in this embodiment. The disconnection detection device 20 includes a signal acquisition module 201 , a signal detection module 202 and a signal output module 203 .

[0094] The signal acquisition module 201 is used to acquire analog signals output by external devices and convert the analog signals into corresponding digital signals.

[0095] The signal detection module 202 is configured to detect a connection status between the disconnection detection apparatus and the external device based on the digital signal.

[0096] The signal output module 203 is used to: in response to the connection state being connected, output the digital signal obtained after filtering in the current preset period; and in response to the connection state being disconnected, output the digital signal obtained after filtering in the previous preset period; wherein the preset period includes the digital signals corresponding to the analog signals collected at least twice.

[0097] In this embodiment, when a sudden disconnection occurs between the disconnection detection device and the external device, or an input card (i.e., the disconnection detection device) is hot-plugged, the connection status between the disconnection detection device and the external device is detected based on the digital signal corresponding to the analog signal. In response to the connection status being connected, the digital signal obtained after filtering for the current preset period is output; in response to the connection status being disconnected, the digital signal obtained after filtering for the previous preset period is output; thereby preventing the controlled device from shutting down due to the disconnection between the external device and the disconnection detection device, or generating signal fluctuations so that the operating status or set value before the disconnection cannot be maintained, and avoiding subsequent production interruptions and damage to corresponding equipment.

[0098] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components of the units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution.

[0099] Example 3

[0100] This embodiment provides a disconnection detection system, such as Figure 5 As shown, the line break detection system includes a control unit 301, an analog output card 302 and a line break detection device 20; the line break detection device is used to execute the signal processing method as described in Example 1; the control unit 301 is used to receive the digital signal output by the line break detection device and transmit the digital signal to the analog output card 302; the analog output card 302 is used to convert the digital signal into a corresponding analog output signal and send the converted analog output signal to the controlled device.

[0101] In an optional embodiment, the disconnection detection device includes an FPGA chip and an ADC chip; the FPGA chip is communicatively connected to the ADC chip; the FPGA chip is used to drive the ADC chip to collect analog signals output by an external device and convert the analog signals into corresponding digital signals; and based on the digital signals, the connection status between the disconnection detection device and the external device is detected; in response to the connection status being connected, the digital signal obtained after filtering in the current preset period is output; in response to the connection status being disconnected, the digital signal obtained after filtering in the previous preset period is output; wherein, the preset period includes digital signals corresponding to at least two collected analog signals.

[0102] Specifically, the FPGA chip is used to drive the ADC chip to collect the analog signal output by the external device and convert the analog signal into a corresponding digital signal. Due to the discharge of the external device capacitor during the disconnection process, the disconnection detection device is likely to collect certain values ​​during the drop of the analog signal, causing the controlled device to malfunction. The FPGA chip has a strong real-time feature and can eliminate data jumps caused by disconnection through disconnection detection and filtering, so that the controlled device can stabilize its working state before the disconnection.

[0103] In an optional embodiment, as Figure 6 As shown, the control unit includes a controller 3011 and a host computer 3012; the controller 3011 is used to transmit the digital signal output by the disconnection detection device 20 to the host computer 3012; the host computer 3012 is used to display a waveform diagram of the analog signal; wherein the waveform diagram is used to indicate whether the analog signal is disconnected and / or the analog output signal corresponding to the digital signal output by the control unit after the analog signal is disconnected. The control unit is used to receive the digital signal output by the disconnection detection device 20 and transmit the digital signal to the analog output card 302; the analog output card 302 is used to convert the digital signal into a corresponding analog output signal and send the converted analog output signal to the controlled device.

[0104] In a specific example, the user can monitor in real time based on the waveform whether the analog signal between the disconnection detection device and the external device is disconnected, and whether the digital signal output to the controlled device after the disconnection is the digital signal obtained after filtering in the previous preset period, thereby monitoring whether the disconnection detection system generates fluctuations in the output digital signal due to the disconnection.

[0105] In this embodiment, the host computer and the controller can communicate with each other through real-time Ethernet, the controller and the disconnection detection device can communicate with each other through control Ethernet, and the controller and the output card can also communicate with each other through control Ethernet.

[0106] In an optional embodiment, as Figure 6 As shown, the disconnection detection system further includes a switch 303, which is configured to forward the digital signal output by the disconnection detection device 20 to the corresponding controlled device. When the disconnection detection system has multiple disconnection processing devices to connect to multiple external devices and multiple controlled devices, the switch is configured to forward data based on its destination address, thereby enabling communication between the various devices in the disconnection detection system.

[0107] In a specific example, multiple experiments are conducted by turning off the power of the disconnection detection device or disconnecting the connection between the disconnection detection device and the external device. During the experiment, the user can observe the waveform displayed on the host computer to see whether the analog signal can maintain the previous input after the disconnection. The experimental results are as follows: Figure 7 As shown, the dotted line indicates a disconnection, and the solid line indicates a normal connection. It can be seen that the change trend of the analog signal after the disconnection can maintain the value corresponding to the analog signal of the previous frame, that is, the signal is maintained after the disconnection between the disconnection detection device and the external device. Figure 7 As shown in the experimental results, the range of the standard signal that the disconnection detection device can collect is 4-20mA, the current value of the analog signal is 12.004mA, the maximum value is 12.005mA, the minimum value is 12.004mA, and the current quality is Good.

[0108] While specific embodiments of the present disclosure have been described above, those skilled in the art will appreciate that these are merely illustrative and that the scope of protection of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, and such changes and modifications are intended to fall within the scope of protection of the present disclosure.

Claims

1. A signal processing method, characterized in that: The signal processing method comprises the following steps: Collecting analog signals output by external devices and converting the analog signals into corresponding digital signals; detecting a connection state between the disconnection detection device and the external device based on the digital signal; In response to the connection state being connected, outputting a digital signal obtained after filtering during a current preset period; In response to the connection state being disconnected, outputting a digital signal obtained after filtering during a previous preset period; wherein the preset period includes digital signals corresponding to analog signals collected at least twice; The step of detecting the connection status between the disconnection detection device and the external device based on the digital signal specifically includes: In response to the digital signal exceeding the range for a plurality of consecutive sampling periods, detecting that the connection state is disconnected; In response to the digital signals that do not satisfy multiple consecutive sampling periods being out of range, the change values ​​of the digital signals corresponding to the adjacent analog signals are calculated within the sliding window filter window corresponding to the current preset period; in response to at least one of the change values ​​of the digital signals corresponding to the adjacent analog signals being greater than a change threshold, the connection state is detected as disconnected.

2. The signal processing method according to claim 1, wherein: After the step of collecting the analog signal output by the external device and converting the analog signal into a corresponding digital signal, the method further includes: Storing the digital signal corresponding to the analog signal of the current preset period in a first register group; Filtering the digital signal of the current preset period to obtain a filtered digital signal of the current preset period; The digital signal obtained after filtering the current preset period is stored in the second register group.

3. The signal processing method according to claim 1, wherein: The step of detecting the connection status between the disconnection detection device and the external device based on the digital signal specifically further includes: In response to the digital signals being within a measuring range and the change values ​​of adjacent digital signals within the sliding window filter window being less than or equal to the change threshold, the connection state is detected as connected.

4. A wire break detection device, characterized in that: The disconnection detection device includes a signal acquisition module, a signal detection module and a signal output module; The signal acquisition module is used to collect analog signals output by external devices and convert the analog signals into corresponding digital signals; The signal detection module is used to detect the connection status between the disconnection detection device and the external device based on the digital signal; The signal output module is configured to: in response to the connection state being connected, output a digital signal obtained after filtering during a current preset period; And in response to the connection state being disconnected, outputting a digital signal obtained after filtering in a previous preset period; wherein the preset period includes digital signals corresponding to analog signals collected at least twice; The signal detection module is specifically configured to: detect that the connection state is disconnected in response to the digital signals of a plurality of consecutive sampling periods exceeding the range; The signal detection module is specifically further used to: in response to digital signals that do not satisfy multiple consecutive sampling periods being out of range, calculate the change value of the digital signal corresponding to the adjacent analog signal within the sliding window filter window corresponding to the current preset period; in response to at least one of the change values ​​of the digital signal corresponding to the adjacent analog signal being greater than a change threshold, detect that the connection state is disconnected.

5. A line break detection system, characterized in that: The disconnection detection system comprises a control unit, an analog output card, and a disconnection detection device; the disconnection detection device is used to perform the signal processing method according to any one of claims 1 to 3; The control unit is used to receive the digital signal output by the disconnection detection device and transmit the digital signal to the analog output card; The analog output card is used to convert the digital signal into a corresponding analog output signal, and send the converted analog output signal to the controlled device.

6. The wire breakage detection system according to claim 5, wherein: The disconnection detection device includes an FPGA chip and an ADC chip; the FPGA chip and the ADC chip are communicatively connected; the FPGA chip is used to drive the ADC chip to collect analog signals output by an external device and convert the analog signals into corresponding digital signals; and based on the digital signals, the connection status between the disconnection detection device and the external device is detected; in response to the connection status being connected, the digital signal obtained after filtering in the current preset period is output; in response to the connection status being disconnected, the digital signal obtained after filtering in the previous preset period is output; wherein, the preset period includes digital signals corresponding to at least two collected analog signals.

7. The wire breakage detection system according to claim 5, wherein: The control unit includes a controller and a host computer; The controller is used to transmit the digital signal output by the disconnection detection device to the host computer; The host computer is used to display the waveform of the analog signal; wherein, the waveform is used to indicate whether the analog signal is disconnected, and / or the analog output signal corresponding to the digital signal output by the control unit after the analog signal is disconnected.

8. The wire breakage detection system according to claim 5, wherein: The disconnection detection system further includes a switch; The switch is used to forward the digital signal output by the disconnection detection device to the corresponding controlled device.

Citation Information

Patent Citations

  • Analog break line fault detecting method and system and collection device

    CN109425803A