Anti-interference method suitable for bluetooth metering detection with terminal and storage medium

By introducing a fixed buffer time and retransmission window during Bluetooth calibration, the problems of redundant data transmission and pulse loss in Bluetooth calibration are solved, achieving higher measurement accuracy and anti-interference capability.

CN116546474BActive Publication Date: 2026-04-21CSG SMART SCI&TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CSG SMART SCI&TECH CO LTD
Filing Date
2023-04-27
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

Existing Bluetooth verification anti-interference technologies suffer from reduced measurement accuracy due to redundant data transmission and lost pulse messages during communication.

Method used

By introducing a fixed buffer time Δt and a retransmission window T, and by adding a retransmission mechanism for pulse messages and adding message sequence numbers and relative times within the pulse transmission window, the accurate restoration of pulse signals is ensured.

Benefits of technology

In the presence of interference, the pulse signal is restored to the greatest extent possible, which improves measurement accuracy and anti-interference ability, and reduces the impact of redundant data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116546474B_ABST
    Figure CN116546474B_ABST
Patent Text Reader

Abstract

The application discloses an anti-interference method suitable for Bluetooth metering and detection of a terminal and a storage medium, which comprises setting a fixed buffer time At; after a pulse converter receives a pulse message sent by a Bluetooth module, the pulse message is not immediately restored into a pulse signal, but waits for a fixed buffer time At first, and then restores the pulse signal; in this way, the whole pulse signal restored by the pulse converter is uniformly delayed by At, and a corresponding table body carries out detection processing of the pulse signal after being delayed by At; retransmission operation of the pulse message is carried out within the buffer time At, so that the disturbed pulse signal is restored to the maximum extent. The application creates time for retransmission by increasing the fixed buffer time At. Meanwhile, a dynamic retransmission window is increased, and a multiple retransmission mechanism for the pulse message is increased during the period to process interference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Bluetooth technology, and more specifically to an anti-interference method for Bluetooth metrological verification of a terminal. Background Technology

[0002] With the advancement of wireless communication technology, the increasing use of wireless communication output in data acquisition terminals has become a new trend. In the calibration process of data acquisition terminals, Bluetooth wireless communication has begun to replace traditional wired methods.

[0003] like Figure 1 As shown, the general verification process is as follows: The platform outputs a standard voltage / current source to the user terminal. The metering module in the terminal converts the standard source into a pulse signal, which is then converted into a pulse message via the Bluetooth module. This message is then sent to the pulse converter on the platform via the Bluetooth wireless channel. The pulse converter converts the obtained pulse message into a pulse signal and sends it back to the platform. The platform analyzes the obtained pulse signal to determine whether the metering function of the user terminal is normal and reliable.

[0004] Pulse message loss can affect the accuracy of the test, so pulse loss should be avoided as much as possible during transmission. Interference is the main factor causing pulse loss, therefore, interference in the Bluetooth wireless channel is a key issue that needs to be addressed.

[0005] Currently, Bluetooth testing solutions address channel interference during transmission in several ways, including:

[0006] (1) Multi-channel, multi-frequency anti-interference method.

[0007] (2) Figure 2 As shown, the retransmission process for the same message is as follows: For the sending end, after the management control chip (MCU) initiates communication frame transmission, the Bluetooth module switches to transmit mode and sends out the buffered communication messages. Each communication frame is retransmitted three times with completely identical content. For the receiving end, if the frame sequence number of the Bluetooth verification pulse communication frame already exists, the Bluetooth verification pulse communication frame is discarded.

[0008] The above method will reduce the accuracy of the reconstructed pulse signal. During the table checking process, even if the first frame is lost due to interference and is recovered in the subsequent two retransmissions, the timing of the entire transmission process will be inconsistent, resulting in some changes to the subsequently reconstructed pulse signal and a reduction in the accuracy of the pulse signal.

[0009] (2) A set of standard pulse data was added, and time information was added to the retransmitted identical messages: the information was digitized by the Bluetooth module and sent to the main Bluetooth module. The main Bluetooth module simultaneously received the pulse data from the standard meter and digitized it. In 99 time synchronizations per second, as long as one is successful, the time scales of both parties are consistent. Using this as a starting point, the power error calculated with compensation has a relatively small impact on the error calculation. The information sent from the Bluetooth communication module to the main Bluetooth module is digitized, containing the sequence number of the pulse sent from the Bluetooth module and the pulse arrival time. Even if a terminal pulse is lost due to interference, the error value can still be correctly calculated when the next pulse is accurately received.

[0010] The above method is complex to implement, and the measurement accuracy cannot be guaranteed. The complexity stems from the fact that in addition to the terminal under test, a standard meter terminal is added. The receiving end simultaneously receives pulse data generated by both terminals. Furthermore, interference affecting the data transmission between the two sets of terminals complicates management. The measurement accuracy is also inaccurate: with 99 time synchronizations per second, even if subsequent synchronizations are successful and the error value is calculated, time has already passed, and the opportunity to reconstruct the pulse signal has been missed, resulting in reduced measurement accuracy.

[0011] In summary, existing Bluetooth testing and anti-interference technologies have two main drawbacks:

[0012] (1) There is a lot of redundant data transmission during the communication process. Regardless of whether there is interference, all messages must be retransmitted.

[0013] (2) If a pulse message is lost during transmission, the receiving end cannot completely restore the original pulse signal, resulting in an error. Summary of the Invention

[0014] The present invention proposes an anti-interference method for Bluetooth metrological verification of a data acquisition terminal, which can at least solve one of the above-mentioned technical problems.

[0015] To achieve the above objectives, the present invention adopts the following technical solution:

[0016] An anti-interference method for Bluetooth metrological verification of a data acquisition terminal, comprising:

[0017] Based on the standard voltage / current source output by the platform to the user terminal, the metering module in the terminal converts the standard source into a pulse signal, which is then converted into a pulse message via Bluetooth. This pulse message is then transmitted wirelessly to the pulse converter at the platform. The pulse converter converts the received pulse message back into a pulse signal and sends it back to the platform. The platform analyzes the received pulse signal to determine whether the metering function of the user terminal is normal and reliable. Its key feature is:

[0018] It also includes setting a fixed buffer time Δt;

[0019] After receiving the pulse message sent by the Bluetooth module, the pulse converter does not immediately restore the pulse message to a pulse signal. Instead, it waits for a fixed buffer time Δt before restoring the pulse signal. In this way, the entire pulse signal restored by the pulse converter will be uniformly delayed by Δt, and the corresponding platform will perform pulse signal verification processing after the delay of Δt.

[0020] During this buffer time Δt, the pulse message is retransmitted to restore the interfered pulse signal to the greatest extent possible.

[0021] Furthermore, after the Bluetooth module finishes sending the pulse message in the pulse transmission window, it enters the retransmission window. If the Bluetooth module receives the "acknowledgment" message from the pulse converter, the retransmission window ends early and enters the normal data communication window. If the Bluetooth module receives the "retransmission response" from the pulse converter or does not receive the response, the Bluetooth module will continue to retransmit during the retransmission window until it receives the "acknowledgment" from the pulse converter or the retransmission window ends.

[0022] Furthermore, during the pulse transmission window, a message sequence number and pulse relative time are added to the pulse message sent by the Bluetooth module.

[0023] The message sequence number is sequentially increased, while the pulse relative time is the difference between the sending time of the current pulse message and the sending time of the previous pulse message on the Bluetooth module side.

[0024] Furthermore, during the pulse transmission window, the difference between the time point when the Bluetooth module sends the pulse message and the time point when the pulse converter receives the pulse message is fixed, denoted as △tm.

[0025] Furthermore, after entering the retransmission window, if the Bluetooth module receives a "retransmission response" from the pulse converter or does not receive a response, it will retransmit the pulse messages sent during the pulse transmission window.

[0026] If the pulse converter receives a correctly retransmitted pulse message during the retransmission window, it reconstructs the time point at which the pulse message should have been received for the first time based on the pulse relative time and Δtm within the pulse message. Then, it adds a fixed buffer time Δt to the reconstructed time point to obtain the time point at which the pulse message needs to be converted into a pulse signal.

[0027] On the other hand, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method described above.

[0028] As can be seen from the above technical solution, the anti-interference method of the present invention for Bluetooth metrological verification of the sampling terminal has the following beneficial effects:

[0029] This invention increases the fixed buffer time Δt, allowing more time for retransmission. Simultaneously, it adds a dynamic retransmission window, during which a mechanism for multiple retransmissions of pulse packets is implemented to handle interference.

[0030] For the pulse transmission window: only pulse data is transmitted within this window. The interval between each pulse transmission is Tinterval (2ms), and a maximum of 5 transmissions are made, using CH1 to CH5 respectively. Therefore, the maximum pulse transmission window time interval is 10ms.

[0031] Retransmission window: For the Bluetooth module, after entering the retransmission window, the waiting time for the response and the time required for one retransmission are both 2ms. Due to the importance of the pulse message, each of the five channels CH1 to CH5 is retransmitted 5 times, with a total maximum time of 60ms. Therefore, the retransmission window is set to a maximum of 60ms. The buffer time is set to a fixed 60ms.

[0032] In actual Bluetooth test verification, losing one or two pulses is the most common occurrence under interference. In the retransmission window of the method of this invention, each of the five channels with different frequency points (CH1 to CH5) is retransmitted 5 times, with a maximum of 25 retransmissions. This can restore the interfered pulse messages as much as possible while ensuring that the pulse messages can be accurately restored. Attached Figure Description

[0033] Figure 1 This is a diagram showing the connection of the Bluetooth verification module;

[0034] Figure 2 This is a schematic diagram of a traditional Bluetooth verification fixed retransmission mechanism.

[0035] Figure 3 This is a schematic diagram of the method principle of an embodiment of the present invention. Detailed Implementation

[0036] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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 some embodiments of the present invention, but not all embodiments.

[0037] like Figure 3 As shown, the anti-interference method for Bluetooth metrological verification of the sampling terminal described in this embodiment introduces two concepts: a fixed buffer time Δt and a retransmission window T.

[0038] The main idea is:

[0039] After receiving a pulse message from the Bluetooth module, the pulse converter does not immediately reconstruct the pulse message into a pulse signal. Instead, it waits for a fixed buffer time Δt before reconstructing the pulse signal. This ensures that the entire pulse signal reconstructed by the pulse converter is uniformly delayed by Δt, allowing the corresponding system to perform pulse signal verification processing after this Δt delay. Within this buffer time Δt, pulse message retransmission can be performed, maximizing the restoration of the interfered pulse signal.

[0040] Based on this idea, the entire Bluetooth wireless channel adds a retransmission window T (T <= buffer time Δt) to the original two windows: the pulse transmission window and the normal data communication window.

[0041] After the Bluetooth module sends the pulse message in the pulse transmission window, it enters the retransmission window. If the Bluetooth module receives the "acknowledgment" message from the pulse converter, the retransmission window ends early and enters the normal data communication window. If the Bluetooth module receives the "retransmission response" from the pulse converter or does not receive the response, the Bluetooth module will continue to retransmit during the retransmission window until it receives the "acknowledgment" from the pulse converter or the retransmission window ends.

[0042] To accurately reconstruct the pulse signal at the pulse converter, a message sequence number and a pulse relative time are added to the pulse message sent by the Bluetooth module during the pulse transmission window. The message sequence number increments sequentially, while the pulse relative time is the difference between the transmission time of the current pulse message and the transmission time of the previous pulse message at the Bluetooth module.

[0043] During the pulse transmission window, under normal circumstances, the difference between the time when the Bluetooth module sends the pulse message and the time when the pulse converter receives the pulse message is fixed, denoted as △tm.

[0044] Upon entering the retransmission window, if the Bluetooth module receives a "retransmission acknowledgment" from the pulse converter or receives no acknowledgment, it will retransmit the pulse packets sent during the pulse transmission window. If the pulse converter receives a correctly retransmitted pulse packet during the retransmission window, it will reconstruct the time point at which the pulse packet should have been received for the first time based on the pulse relative time and Δtm within the pulse packet. Then, by adding a fixed buffer time Δt to this reconstructed time point, it will obtain the time point at which the pulse packet needs to be converted into a pulse signal.

[0045] The purpose of the entire system in this embodiment of the invention is: the Bluetooth module converts the received pulse signal into a pulse message, and sends it wirelessly to the pulse converter via Bluetooth; the pulse converter then restores the received pulse message back into a pulse signal.

[0046] Innovation 1: Increasing the buffer time Δt, although it delays the restoration of the entire pulse signal, creates time for retransmission.

[0047] Innovation Point 2: The ordinary data communication window is divided into two non-fixed windows, one of which is the retransmission window and the other is the ordinary data communication window;

[0048] During the retransmission window, a timer is set inside the Bluetooth module to periodically send pulse messages until an "acknowledgment" message is received or the retransmission window ends.

[0049] During the retransmission window, the pulse converter: (1) does not operate if no message is received; (2) sends a "retransmit" message if an incorrect message is received; (3) sets a timer for buffer time Δt and replies with an acknowledgment message if a correct pulse message is received. After the buffer time Δt expires, the pulse signal is restored.

[0050] Retransmitted messages have higher priority than regular data. If all retransmission attempts fail during the retransmission window, the regular data communication window time is compressed to 0, which will cause pulse signals to be lost, affecting the accuracy of the verification.

[0051] Specifically:

[0052] For the pulse transmission window: only pulse data is transmitted within this window. The interval between each pulse transmission is Tinterval (2ms), and a maximum of 5 transmissions are made, using CH1 to CH5 respectively. Therefore, the maximum pulse transmission window time interval is 10ms.

[0053] Retransmission window: For the Bluetooth module, after entering the retransmission window, the waiting time for the response and the time required for one retransmission are both 2ms. Due to the importance of the pulse message, each of the five channels CH1 to CH5 is retransmitted 5 times, with a total maximum time of 60ms. Therefore, the retransmission window is set to a maximum of 60ms. The buffer time is set to a fixed 60ms.

[0054] In actual Bluetooth test verification, losing one or two pulses is the most common occurrence under interference. In this method, each of the five channels (CH1 to CH5) with different frequency points is retransmitted 5 times in the retransmission window, with a maximum of 25 retransmissions. This can recover the interfered pulse messages as much as possible while ensuring accurate reconstruction of the pulse messages.

[0055] In another aspect, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method described above.

[0056] In another aspect, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the method described above.

[0057] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the mobile source emission prediction methods based on time-series feature migration described in the above embodiments.

[0058] It is understood that the system provided in the embodiments of the present invention corresponds to the method provided in the embodiments of the present invention, and the explanation, examples and beneficial effects of the relevant content can be referred to the corresponding parts of the above methods.

[0059] This application also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, communication interface, and memory communicate with each other via the communication bus.

[0060] Memory, used to store computer programs;

[0061] When the processor executes the program stored in the memory, it implements the above-mentioned anti-interference method applicable to Bluetooth metrological verification of the terminal.

[0062] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).

[0063] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An anti-interference method for Bluetooth metering verification of a data acquisition terminal, based on the platform outputting a standard voltage / current source to the data acquisition terminal. The metering module in the terminal converts the standard source into a pulse signal, which is then converted into a pulse message via a Bluetooth module and sent to a pulse converter at the platform via a Bluetooth wireless channel. The pulse converter converts the obtained pulse message into a pulse signal and sends it back to the platform. The platform analyzes the obtained pulse signal to determine whether the metering function of the data acquisition terminal is normal and reliable; characterized in that: It also includes setting a fixed buffer time Δt; After receiving a pulse message from the Bluetooth module, the pulse converter does not immediately restore the pulse message to a pulse signal. Instead, it waits for a fixed buffer time Δt before restoring the pulse signal. In this way, the entire pulse signal restored by the pulse converter will be uniformly delayed by Δt, and the corresponding platform will perform pulse signal verification processing after the delay of Δt. During this buffer time Δt, the pulse message is retransmitted to restore the interfered pulse signal to the greatest extent possible. During the pulse transmission window, a message sequence number and pulse relative time are added to the pulse message sent by the Bluetooth module. The message sequence number is sequentially increased, while the pulse relative time is the difference between the sending time of the current pulse message and the sending time of the previous pulse message on the Bluetooth module side.

2. The anti-interference method for Bluetooth metrological verification of a terminal according to claim 1, characterized in that: It also includes setting a retransmission window. After the Bluetooth module finishes sending the pulse message in the pulse transmission window, it enters the retransmission window. If the Bluetooth module receives the "acknowledgment" message from the pulse converter, the retransmission window ends early and enters the normal data communication window. If the Bluetooth module receives the "retransmission response" from the pulse converter or does not receive the response, the Bluetooth module will continue to retransmit during the retransmission window until it receives the "acknowledgment" from the pulse converter or the retransmission window ends.

3. The anti-interference method for Bluetooth metrological verification of a terminal according to claim 2, characterized in that: During the pulse transmission window, the difference between the time when the Bluetooth module sends the pulse message and the time when the pulse converter receives the pulse message is fixed and denoted as △tm.

4. The anti-interference method for Bluetooth metrological verification of a terminal according to claim 3, characterized in that: Once the retransmission window is entered, if the Bluetooth module receives a "retransmission response" from the pulse converter or does not receive a response, it will retransmit the pulse messages sent during the pulse transmission window. If the pulse converter receives a correctly retransmitted pulse message during the retransmission window, it reconstructs the time point at which the pulse message should have been received for the first time based on the pulse relative time and Δtm within the pulse message. Then, it adds a fixed buffer time Δt to the reconstructed time point to obtain the time point at which the pulse message needs to be converted into a pulse signal.

5. A computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the steps of the method as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Bluetooth low-power-consumption audio data transmission method, device thereof and equipment

    CN111800171A

  • Multi-channel anti-collision method and system for electric energy meter verification

    CN112969165A