A signal compensation method, device, storage medium and electronic equipment

By processing the signal difference sequence in the symmetrical signal acquisition group, signal compensation information is generated, which solves the problem of inaccurate load calculation caused by signal loss in the track scale and realizes accurate compensation and calculation of load data.

CN118381698BActive Publication Date: 2026-07-31BEIJING HENGTONG ANTAI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING HENGTONG ANTAI TECH CO LTD
Filing Date
2024-03-26
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

During the use of the rail scale, data packets were lost due to network signal problems, causing the processor to be unable to accurately calculate the load.

Method used

A signal compensation method is adopted, which compares the signal differences acquired by two signal acquisition units in a symmetrical signal acquisition group to generate a signal difference sequence. The signals are then stored alternately in the storage space to generate signal compensation information to compensate for missing signals.

Benefits of technology

This improves the accuracy of load data calculation by replacing and compensating for missing signals from another signal acquisition unit using signals acquired by one signal acquisition unit in a symmetrical signal acquisition group, thus ensuring the integrity and accuracy of the load data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118381698B_ABST
    Figure CN118381698B_ABST
Patent Text Reader

Abstract

This invention relates to the field of signal compensation, and particularly to a signal compensation method, apparatus, storage medium, and electronic device. It includes: cyclically and alternately storing initial signals from a symmetrical signal acquisition group into a first storage space and a second storage space; comparing corresponding initial signals in two full storage spaces to generate a signal difference sequence; sending all initial signals from the full storage space to a target terminal and clearing the stored initial signals; and generating signal compensation information based on the acquired waveform missing information and the corresponding signal difference sequence. By generating a signal difference sequence, this invention allows for operations such as replacing and compensating for missing signals in one signal acquisition unit within a symmetrical signal acquisition group when a normal signal is acquired by that unit, thereby improving the accuracy of the final calculated load data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of signal compensation, and in particular to a signal compensation method, apparatus, storage medium, and electronic device. Background Technology

[0002] A rail scale is a weighing instrument used to measure the load of vehicles, specifically bulk cargo in freight cars. It typically includes several sensors to detect the vehicle's load information. These sensors collect the pressure values ​​as the vehicle passes over the scale, converting these pressure values ​​into analog voltage signals. An analog-to-digital converter (ADC) connected to the sensors then converts these analog voltage signals into digital voltage signals, which are transmitted to a processor connected to the ADC. The processor processes the received digital voltage signals to obtain the weighing value of the vehicle after passing through the rail scale.

[0003] However, in actual use, due to network signal problems, when the signal collector sends the collected digital signal to the corresponding weight calculation processor, data packets may be lost, resulting in incomplete data obtained by the processor, and thus the corresponding load cannot be accurately calculated. Summary of the Invention

[0004] To address the aforementioned technical problem of inaccurate load calculation due to incomplete data acquired by the processor, the present invention adopts the following technical solution:

[0005] According to one aspect of the present invention, a signal compensation method is provided, applied to a signal acquisition device. The signal acquisition device includes at least one symmetrical signal acquisition group, at least one first storage space, and at least one second storage space. Each symmetrical signal acquisition group includes two signal acquisition units, and the signal difference acquired by the two signal acquisition units at the same time belongs to a first preset interval. Each symmetrical signal acquisition group corresponds to a first storage space and a second storage space.

[0006] Signal compensation methods include the following steps:

[0007] The initial signals acquired by the two signal acquisition units included in the symmetrical signal acquisition group are cyclically and alternately stored in the first storage space and the second storage space.

[0008] The two sets of initial signals corresponding to the two signal acquisition units in the full storage space are compared and processed to generate a signal difference sequence.

[0009] Send all initial signals in the full storage space to the target terminal, and clear the initial signals stored in the full storage space.

[0010] Based on the obtained waveform missing information and the corresponding signal difference sequence, signal compensation information is generated.

[0011] Furthermore, the initial signals acquired by the two signal acquisition units included in the symmetrical signal acquisition group are cyclically and alternately stored in the first storage space and the second storage space, including:

[0012] The initial signal is stored in either the first or second storage space.

[0013] If any storage space is full, the subsequent initial signals will be stored in another storage space that is not full.

[0014] Furthermore, the initial signal includes the unit identifier, the sequence identifier, and the signal value.

[0015] The two sets of initial signals corresponding to the two signal acquisition units in the fully loaded storage space are compared and processed to generate a signal difference sequence, including:

[0016] Based on the unit identifiers corresponding to the two initial signals, generate the group identifiers corresponding to the signal difference sequence.

[0017] If the absolute value of the difference between the two signal values ​​corresponding to the same sequence identifier in the two initial signals is less than or equal to the first threshold, then the first difference identifier corresponding to the sequence identifier is generated.

[0018] If the absolute value of the difference between the two signal values ​​corresponding to the same sequence identifier in the two initial signals is greater than the first threshold, then a second difference identifier corresponding to the sequence identifier is generated.

[0019] Furthermore, the initial signal includes the unit identifier, the sequence identifier, and the signal value.

[0020] The two sets of initial signals corresponding to the two signal acquisition units in the fully loaded storage space are compared and processed to generate a signal difference sequence, including:

[0021] Based on the unit identifiers corresponding to the two initial signals, generate the group identifiers corresponding to the signal difference sequence.

[0022] If the absolute value of the difference between two signal values ​​corresponding to the same sequence identifier in two sets of initial signals is less than or equal to the first threshold, then the signal difference identifier corresponding to the sequence identifier is the difference between the two signal values.

[0023] If the absolute value of the difference between two signal values ​​corresponding to the same sequence identifier in two sets of initial signals is greater than the first threshold, then the signal difference identifier corresponding to the sequence identifier is an empty set.

[0024] Furthermore, the waveform missing information includes the unit identifier and the missing sequence information.

[0025] Based on the obtained waveform missing information and the corresponding signal difference sequence, signal compensation information is generated, including:

[0026] Based on the unit identifier and group identifier, the corresponding signal difference sequence is determined as the target signal difference sequence.

[0027] Based on the missing sequence information, the corresponding target signal difference identifier in the target signal difference sequence is determined.

[0028] Signal compensation information is generated based on the target signal difference identifier.

[0029] Furthermore, based on the target signal difference identifier, signal compensation information is generated, including:

[0030] If the target signal difference identifier is the first difference identifier, then the first signal compensation information is generated. The first signal compensation information is used to replace the target missing signal with the signal value at the corresponding position in another set of initial signals in the symmetrical signal acquisition group.

[0031] If the target signal difference identifier is the second difference identifier, then second signal compensation information is generated. The second signal compensation information is used to indicate that the target missing information cannot be compensated.

[0032] Furthermore, based on the target signal difference identifier, signal compensation information is generated, including:

[0033] If the target signal difference identifier is an empty set, then first signal compensation information is generated. The first signal compensation information is used to replace the target missing signal with the signal value at the corresponding position in another set of initial signals in the symmetrical signal acquisition group.

[0034] Furthermore, based on the target signal difference identifier, signal compensation information is generated, including:

[0035] If the target signal difference is identified as the difference between two signal values, then third signal compensation information is generated. The third signal compensation information is used to generate the target missing signal based on the signal value at the corresponding position in another set of initial signals in the symmetrical signal acquisition group.

[0036] According to a second aspect of the present invention, a signal compensation device is provided, applied to a signal acquisition device. The signal acquisition device includes at least one symmetrical signal acquisition group, at least one first storage space, and at least one second storage space. Each symmetrical signal acquisition group includes two signal acquisition units, and the signal difference acquired by the two signal acquisition units at the same time belongs to a first preset interval. Each symmetrical signal acquisition group corresponds to one first storage space and one second storage space.

[0037] The signal compensation device includes:

[0038] The circular storage module is used to cyclically and alternately store the initial signals acquired by the two signal acquisition units included in the symmetrical signal acquisition group into the first storage space and the second storage space.

[0039] The comparison processing module is used to compare the two sets of initial signals corresponding to the two signal acquisition units in the full storage space and generate a signal difference sequence.

[0040] The signal transmission module is used to send all the initial signals in the full-load storage space to the target terminal and clear the initial signals stored in the full-load storage space.

[0041] The compensation module is used to generate signal compensation information based on the acquired waveform missing information and the corresponding signal difference sequence.

[0042] According to a third aspect of the present invention, a non-transitory computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the signal compensation method described above.

[0043] According to a fourth aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the signal compensation method described above.

[0044] The present invention has at least the following beneficial effects:

[0045] In this invention, each symmetrical signal acquisition group corresponds to a first storage space and a second storage space. The initial signals acquired can be cyclically and alternately stored in these two storage spaces. When one storage space is full, the subsequently acquired initial signals continue to be stored in the other, less full storage space. Simultaneously, the two sets of initial signals corresponding to the two signal acquisition units in the full storage space are compared to generate a signal difference sequence. Since, in actual use, the two sensors symmetrically set on the track scale (i.e., the symmetrical signal acquisition group in this invention includes two signal acquisition units) typically have essentially the same acquisition conditions, the acquired signals are also essentially the same.

[0046] In this invention, by generating a signal difference sequence, it is possible to perform operations such as replacing and compensating for the missing signal in another signal acquisition unit in a symmetrical signal acquisition group when one signal acquisition unit acquires a normal signal, thereby compensating for the missing signal and further improving the accuracy of the final calculated load data. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 A flowchart of a signal compensation method provided in an embodiment of the present invention;

[0049] Figure 2 A schematic diagram illustrating the working principle of a track scale provided in an embodiment of the present invention;

[0050] Figure 3 This is a structural block diagram of a signal compensation device provided in an embodiment of the present invention.

[0051] Figure label:

[0052] 1. Track scale; 10. Sensor; 2. Data acquisition unit; 3. Processor. Detailed Implementation

[0053] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0054] As one possible embodiment of the present invention, such as Figure 1 As shown, a signal compensation method is provided, applied to a signal acquisition device 2. The signal acquisition device 2 includes at least one symmetrical signal acquisition group, at least one first storage space, and at least one second storage space. Each symmetrical signal acquisition group includes two signal acquisition units, and the signal difference acquired by the two signal acquisition units at the same time belongs to a first preset interval. Each symmetrical signal acquisition group corresponds to a first storage space and a second storage space.

[0055] In practical use, a track scale 1 typically includes multiple sensors 10, which are fixedly installed on two railway tracks to collect corresponding signals, such as gravity signals and shear stress signals. Some sensors 10 are symmetrically positioned at the same location on both tracks (i.e., the symmetrical signal acquisition group in this invention includes two signal acquisition units), and the acquisition conditions of the two symmetrically positioned sensors 10 are generally similar, resulting in essentially identical signals. Based on these characteristics, this embodiment discloses the following compensation method for compensating for missing signals.

[0056] The signal compensation method includes the following steps:

[0057] S100: The initial signals acquired by the two signal acquisition units included in the symmetrical signal acquisition group are cyclically and alternately stored in the first storage space and the second storage space.

[0058] Specifically, multiple registers can be configured in data acquisition unit 2 so that each symmetrical signal acquisition group can correspond to two registers. The storage space of one register is the first storage space, and the storage space of the other register is the second storage space. Alternatively, a register with a larger storage space can be configured in data acquisition unit 2, and its storage space can be partitioned so that each symmetrical signal acquisition group can be allocated to two storage spaces.

[0059] Specifically, S100 includes:

[0060] S101: Store the initial signal in the first storage space or the second storage space. Specifically, the initial signal includes a cell identifier, a sequence identifier, and a signal value.

[0061] like Figure 2 As shown, during the measurement process, the data acquisition unit 2 can acquire the analog signals collected by the corresponding sensor 10 at a preset acquisition frequency (e.g., 5ms / time), and then send the signals to the corresponding analog-to-digital conversion module to convert them into digital signals. Since the data acquisition is continuous as the vehicle passes over the track scale 1, each sensor 10 acquires multiple initial signals, which can then form a signal sequence.

[0062] To clearly identify the identity of each signal, each signal value is assigned a corresponding unit identifier and sequence identifier. The unit identifier indicates which sensor 10 corresponds to the acquired signal. For example, if a data acquisition unit 2 contains 16 acquisition sensors 10, then 16 signal sequences can be generated during a single acquisition process. Each signal sequence corresponds to a unique unit identifier. This unit identifier indicates the correspondence between the signal sequence and the sensor 10. It can be represented in hexadecimal.

[0063] Each signal value in each signal sequence corresponds to a sequence identifier. This sequence identifier indicates the order in which each signal value appears in a signal sequence. It can be represented by a time interval from the start of the acquisition, such as 005, 010, 015, 020, etc.

[0064] S102: If any storage space is full, the subsequent initial signals will be stored in another storage space that is not full.

[0065] In this embodiment, "full storage space" means that the memory partition in the register used to store the initial signal is filled.

[0066] During storage, if either storage space (the first or the second storage space) becomes full, subsequently acquired signals are stored in the other, unloaded storage space. Simultaneously, after a storage space becomes full, a comparison process is performed, and after completion, all previously stored initial signals are cleared, making the space empty again. This allows for reuse once the other storage space becomes full. This achieves cyclical use of the two storage spaces.

[0067] Since the comparison processing utilizes the time gap created by storing the initial acquired signal into the partially filled storage space, it performs operations on the fully filled storage space. Therefore, in order to avoid delaying the smooth storage of the initial acquired signal, the processing time of the comparison processing needs to be less than or equal to the time it takes for the initial acquired signal to fill the partially filled storage space.

[0068] Specifically, the processing time can be controlled by adjusting the size of the first and second storage spaces or by adjusting the comparison processing algorithm, so that the processing time of the comparison processing is less than or equal to the time when the initial acquired signal is stored in the unfilled storage space.

[0069] S200: Compares the two sets of initial signals corresponding to the two signal acquisition units in the full-load storage space to generate a signal difference sequence.

[0070] Specifically, in this embodiment, the comparison process involves subtracting the signal values ​​at the same positions in two corresponding signal sequences and generating a corresponding signal difference identifier based on the difference. Since the signal is more stable and less prone to loss during the initial signal acquisition process from sensor 10 by the collector 2, the resulting signal sequence is a more comprehensive and accurate acquisition sequence. However, when the collector 2 packages the initial signal from the signal sequence into data and sends it to the corresponding processor 3 via the network, the network signal is unstable due to the environment where the collector 2 is located, often on railway tracks, making data loss highly likely. In this embodiment, by performing the comparison process, the approximate difference between the signals acquired by the two symmetrical sensors 10 can be recorded in advance when the signal sequence is more complete, facilitating later compensation.

[0071] Specifically, S200 may include:

[0072] S210: Generate the group identifier corresponding to the signal difference sequence based on the unit identifiers corresponding to the two initial signals.

[0073] S211: If the absolute value of the difference between two signal values ​​corresponding to the same sequence identifier in two sets of initial signals is less than or equal to the first threshold, then generate the first difference identifier corresponding to the sequence identifier. The first difference identifier is set to 1.

[0074] S212: If the absolute value of the difference between the two signal values ​​corresponding to the same sequence identifier in the two sets of initial signals is greater than the first threshold, then a second difference identifier corresponding to the sequence identifier is generated. The second difference identifier is set to 0.

[0075] In this embodiment, the first threshold can be calculated by statistically analyzing the difference between two sets of signals acquired simultaneously by two signal acquisition units in a symmetrical signal acquisition group during actual use. For example, the maximum, mode, median, or mean of the actual difference can be used.

[0076] After the above processing, a signal difference sequence with the same length as the signal sequence can be generated. This signal difference sequence will have a corresponding group identifier, which can be composed of the unit identifiers corresponding to two signal acquisition units in the symmetrical signal acquisition group, such as 01-02. Additionally, each signal difference identifier will also correspond to the sequence position identifier of the original initial acquired signal; the signal difference identifier can be 0 or 1. At this point, storing only this signal difference sequence in the register is sufficient to compensate for the lost signal, without needing to store all the original acquired data, thus saving storage space.

[0077] Furthermore, to further save storage space, only the second difference identifier can be stored in the signal difference sequence, while the signal difference identifier corresponding to the first difference identifier is 0. Since the two symmetrically arranged sensors 10 generally operate under essentially the same conditions, the signals they acquire are also essentially the same. Therefore, under normal circumstances, the occurrence of the first difference identifier "1" is far more frequent than the occurrence of the second difference identifier "0". Based on this characteristic, storing only 0s in the signal difference sequence can significantly save storage space.

[0078] The S200 may also include:

[0079] S220: Generate the group identifier corresponding to the signal difference sequence based on the unit identifiers corresponding to the two initial signals.

[0080] S221: If the absolute value of the difference between the two signal values ​​corresponding to the same sequence identifier in the two initial signals is less than or equal to the first threshold, then the signal difference identifier corresponding to the sequence identifier is the difference between the two signal values.

[0081] S222: If the absolute value of the difference between the two signal values ​​corresponding to the same sequence identifier in the two initial signals is greater than the first threshold, then the signal difference identifier corresponding to the sequence identifier is an empty set.

[0082] In the signal difference identifier generation method of this embodiment, the difference between two signal values ​​is directly recorded. Therefore, in subsequent data recovery, the missing signal value can be recovered more accurately based on the specific difference and the signal value at another corresponding position.

[0083] S300: Send all initial signals in the full storage space to the target terminal and clear the initial signals stored in the full storage space.

[0084] The target terminal in this step can be processor 3, which calculates the corresponding load information based on the signal sequence.

[0085] S400: Generate signal compensation information based on the obtained waveform missing information and the corresponding signal difference sequence.

[0086] Specifically, the missing waveform information includes the unit identifier and the missing sequence information.

[0087] The S400 includes:

[0088] S401: Based on the unit identifier and group identifier, determine the corresponding signal difference sequence as the target signal difference sequence.

[0089] If the unit identifier is a subset of the group identifier, then the signal difference sequence corresponding to the group identifier is determined as the target signal difference sequence.

[0090] S402: Based on the missing sequence information, determine the target signal difference identifier in the target signal difference sequence.

[0091] Missing sequence information is the original sequence identifier corresponding to the missing signal value, and the target signal difference identifier is the original sequence identifier in the target signal difference sequence.

[0092] S403: Generate signal compensation information based on the target signal difference identifier.

[0093] If S200 includes S210 to S211, then S403 includes:

[0094] S413: If the target signal difference identifier is the first difference identifier, then generate the first signal compensation information. The first signal compensation information is used to replace the target missing signal with the signal value at the corresponding position in another set of initial signals in the symmetrical signal acquisition group.

[0095] S423: If the target signal difference identifier is the second difference identifier, then generate second signal compensation information. The second signal compensation information is used to indicate that the target missing information cannot be compensated.

[0096] Because the processing in S210 to S211 only records the magnitude of the difference between two corresponding signal values ​​using 0 and 1, without recording the specific difference value, the resulting compensation information can only indicate whether the missing signal value can be directly replaced by a valid signal value. Furthermore, the replaced signal value may also differ from the original signal value. Therefore, although this embodiment can compensate for missing signal values, its accuracy is low.

[0097] If S200 includes S220 to S222, then S403 includes:

[0098] S433: If the target signal difference identifier is an empty set, then generate first signal compensation information. The first signal compensation information is used to replace the missing target signal with the signal value at the corresponding position in another set of initial signals in the symmetrical signal acquisition group.

[0099] S443: If the target signal difference is identified as the difference between two signal values, then a third signal compensation information is generated. The third signal compensation information is used to generate the target missing signal based on the signal value at the corresponding position in another set of initial signals in the symmetrical signal acquisition group.

[0100] Since the difference between two corresponding signal values ​​is recorded during the processing in S220 to S222, the accurate missing signal value can be recovered using the non-missing signal value and the corresponding difference. Therefore, this embodiment can not only compensate for missing signal values, but also achieve higher accuracy.

[0101] As another embodiment of the present invention, it also includes:

[0102] S500: Based on the number ξ of the second difference identifier or empty set in the signal difference sequence, generate the reliability δ of the signal compensation information. δ satisfies the following condition:

[0103]

[0104] Where K is the adjustment coefficient, such as K = 1.

[0105] Normally, under normal circumstances, the signal values ​​acquired by two signal acquisition units within the same symmetrical signal acquisition group at the same time are generally similar. However, during long-term use, sensor 10 may become damaged or malfunction, in which case the signal values ​​acquired by the two signal acquisition units at the same time may differ significantly. In existing processors 3, the corresponding load value can usually be calculated based on the input value without missing values. However, the more deviations in the input data, the greater the error in the calculated load value. In this embodiment, the confidence level δ is inversely proportional to ξ, and its variation pattern better matches the confidence level variation pattern in this scenario, thus enabling a more accurate generation of the corresponding confidence level value.

[0106] As another possible embodiment of the present invention, such as Figure 3 As shown, a signal compensation device is also provided, applied to a signal acquisition device. The signal acquisition device includes at least one symmetrical signal acquisition group, at least one first storage space, and at least one second storage space. Each symmetrical signal acquisition group includes two signal acquisition units, and the signal difference acquired by the two signal acquisition units at the same time belongs to a first preset interval. Each symmetrical signal acquisition group corresponds to one first storage space and one second storage space.

[0107] The signal compensation device includes:

[0108] The circular storage module is used to cyclically and alternately store the initial signals acquired by the two signal acquisition units included in the symmetrical signal acquisition group into the first storage space and the second storage space.

[0109] The comparison processing module is used to compare the two sets of initial signals corresponding to the two signal acquisition units in the full storage space and generate a signal difference sequence.

[0110] The signal transmission module is used to send all the initial signals in the full-load storage space to the target terminal and clear the initial signals stored in the full-load storage space.

[0111] The compensation module is used to generate signal compensation information based on the acquired waveform missing information and the corresponding signal difference sequence.

[0112] Furthermore, although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.

[0113] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0114] In an exemplary embodiment of this disclosure, an electronic device capable of implementing the above-described method is also provided.

[0115] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: entirely hardware implementations, entirely software implementations (including firmware, microcode, etc.), or implementations combining hardware and software aspects, collectively referred to herein as “circuits,” “modules,” or “systems.”

[0116] An electronic device according to this embodiment of the invention. The electronic device is merely an example and should not be construed as limiting the functionality or scope of the embodiments of the invention.

[0117] Electronic devices are manifested in the form of general-purpose computing devices. Components of an electronic device may include, but are not limited to: at least one processor, at least one memory, and buses connecting different system components (including memory and processor).

[0118] The memory stores program code that can be executed by a processor, causing the processor to perform the steps described in the "Exemplary Methods" section above, according to various exemplary embodiments of the present invention.

[0119] The storage may include readable media in the form of volatile storage, such as random access memory (RAM) and / or cache memory, and may further include read-only memory (ROM).

[0120] The storage may also include programs / utilities having a set (at least one) of program modules, including but not limited to: an operating system, one or more applications, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0121] A bus can represent one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus that uses any of the various bus architectures.

[0122] The electronic device can also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., routers, modems, etc.). This communication can be performed via input / output (I / O) interfaces. Furthermore, the electronic device can communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter. The network adapter communicates with other modules of the electronic device via a bus. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0123] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0124] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of the present invention may also be implemented as a program product comprising program code that, when the program product is run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the present invention described in the "Exemplary Methods" section above.

[0125] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0126] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.

[0127] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0128] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0129] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0130] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0131] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A signal compensation method, characterized in that, The method is applied to a signal acquisition device, which includes at least one symmetrical signal acquisition group, at least one first storage space and at least one second storage space. Each symmetrical signal acquisition group includes two signal acquisition units, and the signal difference acquired by the two signal acquisition units at the same time belongs to a first preset interval. Each symmetrical signal acquisition group corresponds to a first storage space and a second storage space, respectively. The signal compensation method includes the following steps: The initial signals acquired by the two signal acquisition units included in the symmetrical signal acquisition group are cyclically and alternately stored in the first storage space and the second storage space; The two sets of initial signals corresponding to the two signal acquisition units in the full storage space are compared and processed to generate a signal difference sequence. Send all initial signals in the full storage space to the target terminal, and clear the initial signals stored in the full storage space; Based on the obtained waveform missing information and the corresponding signal difference sequence, signal compensation information is generated; The waveform missing information includes unit identifier and missing sequence information; Based on the obtained waveform missing information and the corresponding signal difference sequence, signal compensation information is generated, including: Based on the unit identifier and group identifier, the corresponding signal difference sequence is determined as the target signal difference sequence; Based on the missing sequence information, the target signal difference identifier corresponding to the target signal difference sequence is determined; Based on the target signal difference identifier, signal compensation information is generated; Based on the target signal difference identifier, signal compensation information is generated, including: If the target signal difference identifier is a first difference identifier, then first signal compensation information is generated. The first signal compensation information is used to replace the target missing signal with the signal value at the corresponding position in another set of initial signals in the symmetrical signal acquisition group. If the target signal difference identifier is a second difference identifier, then second signal compensation information is generated, which is used to indicate that the target missing information cannot be compensated.

2. The method according to claim 1, characterized in that, The initial signals acquired by the two signal acquisition units in the symmetrical signal acquisition group are cyclically and alternately stored in the first storage space and the second storage space, including: The initial signal is stored in a first storage space or a second storage space; If any storage space is full, the initial signal collected subsequently will be stored in another storage space that is not full.

3. The method according to claim 1, characterized in that, The initial signal includes a unit identifier, a sequence identifier, and a signal value; The two sets of initial signals corresponding to the two signal acquisition units in the fully loaded storage space are compared and processed to generate a signal difference sequence, including: Based on the unit identifiers corresponding to the two sets of initial signals, generate the group identifiers corresponding to the signal difference sequence; If the absolute value of the difference between the two signal values ​​corresponding to the same sequence identifier in the two sets of initial signals is less than or equal to the first threshold, then the first difference identifier corresponding to the sequence identifier is generated. If the absolute value of the difference between the two signal values ​​corresponding to the same sequence identifier in the two sets of initial signals is greater than the first threshold, then a second difference identifier corresponding to the sequence identifier is generated.

4. The method according to claim 1, characterized in that, The initial signal includes a unit identifier, a sequence identifier, and a signal value; The two sets of initial signals corresponding to the two signal acquisition units in the fully loaded storage space are compared and processed to generate a signal difference sequence, including: Based on the unit identifiers corresponding to the two sets of initial signals, generate the group identifiers corresponding to the signal difference sequence; If the absolute value of the difference between the two signal values ​​corresponding to the same sequence identifier in the two sets of initial signals is less than or equal to the first threshold, then the signal difference identifier corresponding to the sequence identifier is the difference between the two signal values. If the absolute value of the difference between the two signal values ​​corresponding to the same sequence identifier in the two sets of initial signals is greater than the first threshold, then the signal difference identifier corresponding to the sequence identifier is an empty set.

5. The method according to claim 1, characterized in that, Based on the target signal difference identifier, signal compensation information is generated, including: If the target signal difference identifier is an empty set, then first signal compensation information is generated. The first signal compensation information is used to replace the target missing signal with the signal value at the corresponding position in another set of initial signals in the symmetrical signal acquisition group. If the target signal difference is identified as the difference between two signal values, then a third signal compensation information is generated. The third signal compensation information is used to generate a target missing signal based on the signal value at the corresponding position in another set of initial signals in the symmetrical signal acquisition group.

6. A signal compensation device, characterized in that, The signal acquisition device includes at least one symmetrical signal acquisition group, at least one first storage space and at least one second storage space. Each symmetrical signal acquisition group includes two signal acquisition units. The difference between the signals acquired by the two signal acquisition units at the same time belongs to a first preset interval. Each symmetrical signal acquisition group corresponds to a first storage space and a second storage space, respectively; The signal compensation device includes: The circular storage module is used to cyclically and alternately store the initial signals acquired by the two signal acquisition units included in the symmetrical signal acquisition group into the first storage space and the second storage space. The comparison processing module is used to compare the two sets of initial signals corresponding to the two signal acquisition units in the full storage space and generate a signal difference sequence. The signal transmission module is used to send all the initial signals in the full-load storage space to the target terminal and clear the initial signals stored in the full-load storage space. The compensation module is used to generate signal compensation information based on the acquired waveform missing information and the corresponding signal difference sequence; The waveform missing information includes unit identifier and missing sequence information; Based on the obtained waveform missing information and the corresponding signal difference sequence, signal compensation information is generated, including: Based on the unit identifier and group identifier, the corresponding signal difference sequence is determined as the target signal difference sequence; Based on the missing sequence information, the target signal difference identifier corresponding to the target signal difference sequence is determined; Based on the target signal difference identifier, signal compensation information is generated; Based on the target signal difference identifier, signal compensation information is generated, including: If the target signal difference identifier is a first difference identifier, then first signal compensation information is generated. The first signal compensation information is used to replace the target missing signal with the signal value at the corresponding position in another set of initial signals in the symmetrical signal acquisition group. If the target signal difference identifier is a second difference identifier, then second signal compensation information is generated, which is used to indicate that the target missing information cannot be compensated.

7. A non-transitory computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements a signal compensation method as described in any one of claims 1 to 5.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements a signal compensation method as described in any one of claims 1 to 5.