Internet of Things electric energy meter calibration method and calibration instrument
By using Bluetooth communication technology in the calibrator, the metering information of the IoT power meter is converted into electrical pulse signals, which solves the problem that the existing technology cannot verify the IoT power meter, and achieves a high-precision calibration effect.
Patent Information
- Application Number
- CN202510062677.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-04-25
AI Technical Summary
The prior art cannot effectively verify the new IoT power meter because these power meters do not have auxiliary wiring terminals and cannot provide physical pulse output, resulting in ordinary calibrators being unable to collect the power meter pulses.
Bluetooth communication technology is used to convert the metering information of the IoT power meter into electrical pulse signals, and these signals are connected to the on-site calibrator through the Bluetooth connection channel to achieve calibration.
It effectively solves the problem that the IoT power meter cannot be detected by existing calibrators, improves the measurement accuracy, and reduces the error between the power meter pulse and the pulse after wireless conversion.
Smart Images

Figure CN119881779A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power systems, and more specifically, to a calibration method and a calibration instrument for an Internet of Things electric energy meter. Background Art
[0002] The electric energy meter is an important metering tool for the power system. Ordinary digital meters use the electric pulse terminals of the electric energy meter to count the pulse output by applying specific analog inputs to achieve electricity measurement. The new IoT meter does not have auxiliary terminals and cannot provide physical pulse output wiring. Ordinary calibrators cannot collect the meter's electric pulses.
[0003] In view of the above problems, there is an urgent need for an Internet of Things electricity meter calibration method and a calibration instrument. Summary of the invention
[0004] In order to solve the deficiencies in the prior art, the present invention provides an Internet of Things electricity meter calibration method and a calibrator. For single-phase and three-phase Internet of Things meters, Bluetooth communication technology is used to convert the metering information into an electrical pulse signal, and then the electrical pulse signal is connected to an on-site calibrator.
[0005] The present invention adopts the following technical solution.
[0006] The first aspect of the present invention relates to a method for calibrating an Internet of Things electric energy meter, which includes the following steps: collecting the address information of the Internet of Things electric energy meter through a barcode scanning gun, and identifying the identity of the Internet of Things electric energy meter; generating a Bluetooth connection request according to the identity of the Internet of Things electric energy meter, and establishing a Bluetooth connection channel by sending the Bluetooth connection request to the Internet of Things electric energy meter; obtaining the local specification information of the Internet of Things electric energy meter through the Bluetooth connection channel, generating an active pulse verification command based on the information and sending it to the Internet of Things electric energy meter, so as to control the Internet of Things electric energy meter to send non-modulated active pulses through a wireless channel; extracting the active pulse information of the Internet of Things electric energy meter from the non-modulated active pulses, and performing verification based on the active pulse information.
[0007] Preferably, the address information of the Internet of Things electricity meter is collected by a barcode scanning gun, and the identity of the Internet of Things electricity meter is identified, including: the identity of the Internet of Things electricity meter is obtained by parsing the address information of the Internet of Things electricity meter, and the parsing method is pre-deployed in the calibrator; and a Bluetooth connection request with the identity of the Internet of Things electricity meter as the target address is constructed.
[0008] Preferably, local specification information of the Internet of Things electric energy meter is obtained through the Bluetooth connection channel, and an active pulse verification command is generated accordingly and sent to the Internet of Things electric energy meter, including: the local specification information at least includes the hardware model, software version, and Bluetooth network parameters of the Internet of Things electric energy meter; the Bluetooth network parameters at least include the sensitivity range and frequency deviation range of the Bluetooth chip in the Internet of Things electric energy meter.
[0009] Preferably, local specification information of the Internet of Things electric energy meter is obtained through a Bluetooth connection channel, and an active pulse verification command is generated accordingly and sent to the Internet of Things electric energy meter, including: obtaining the communication consistency range of the Internet of Things electric energy meter through the sensitivity range and frequency offset range of the Bluetooth chip; obtaining the protocol and configuration file of the Internet of Things electric energy meter respectively by parsing the corresponding message format and message content of the Bluetooth connection of the Internet of Things electric energy meter; verifying the communication consistency range, protocol, and configuration file of the Internet of Things electric energy meter, and generating an active pulse verification command if it meets the Bluetooth authentication rules.
[0010] Preferably, controlling the Internet of Things electric energy meter to emit unmodulated active pulses through a wireless channel includes: controlling the Internet of Things electric energy meter to convert the active pulses into unmodulated wireless pulses within a power range of 100mW; and emitting the unmodulated wireless pulses through a TTL wireless serial port module in the Internet of Things electric energy meter.
[0011] Preferably, the active pulse information of the Internet of Things electric energy meter is extracted from the unmodulated active pulse, and verification is performed based on the active pulse information, including: adjusting the state of the listening port located locally in the calibrator according to the communication consistency range, protocol, and configuration file of the Internet of Things electric energy meter; collecting the active pulse information of the Internet of Things electric energy meter through the listening port and converting it into electrical pulses, and judging the number of the electrical pulses through pulse duration verification to perform verification.
[0012] Preferably, the number of the electrical pulses is determined by pulse duration check, including: the pulse output width of the Internet of Things electric energy meter is in the range of 10ms to 96ms, and the pulse duration check is 20ms.
[0013] The second aspect of the present invention relates to a calibrator, which is implemented using the method described in the first aspect of the present invention; the calibrator includes a barcode scanner, a Bluetooth chip, a wireless converter, an MCU, a pulse level conversion module, and an electric pulse interface; the barcode scanner collects address information of an Internet of Things electric energy meter; the Bluetooth chip establishes a Bluetooth connection channel with the Internet of Things electric energy meter, and sends a Bluetooth connection request, and collects the Bluetooth connection response of the Internet of Things electric energy meter; the wireless converter collects the active pulses of the Internet of Things electric energy meter and converts them into electric pulses through the MCU and the pulse level conversion module, outputs them through the electric pulse interface and is used for calibration.
[0014] A third aspect of the present invention relates to a terminal, comprising a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method described in the first aspect of the present invention.
[0015] A fourth aspect of the present invention relates to a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect of the present invention.
[0016] The beneficial effect of the present invention is that, compared with the prior art, an Internet of Things electricity meter calibration method and calibrator in the present invention, for single-phase and three-phase Internet of Things meters, adopts Bluetooth communication technology to convert metering information into electrical pulse signals, and then connects the electrical pulse signals to the on-site calibrator.
[0017] The beneficial effects of the present invention also include:
[0018] 1. The device comes with a barcode scanner to obtain the barcode of the target meter, notify the MCU of the barcode, use the meter address as the Bluetooth address of the IoT meter, start the device Bluetooth module to establish a connection with the IoT meter, convert the IoT meter Bluetooth wireless pulse into an electrical pulse and connect it to the on-site calibrator, effectively reducing the error between the meter pulse and the wireless converted pulse, and improving the measurement accuracy.
[0019] 2. A Bluetooth device was designed to convert wireless pulses into electrical pulses for use in electrical pulse collection and measurement accuracy testing of the tester, solving the problem that on-site calibrators are unable to detect the measurement accuracy of IoT meters. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 The figure is a schematic diagram of a calibration instrument according to the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the present invention clearer and more accurate, the technical solution of the present invention is described in detail below through multiple specific implementation methods. The embodiments adopted by the present invention are only used to explain the present invention and are not used to limit the content of the present invention.
[0022] A first aspect of the present invention relates to a method for calibrating an Internet of Things electric energy meter, the method comprising steps 1 to 4.
[0023] Step 1: Collect the address information of the IoT electric energy meter through a barcode scanner and identify the identity of the IoT electric energy meter.
[0024] The address information of the Internet of Things electricity meter is collected by scanning a barcode gun, and the identity of the Internet of Things electricity meter is identified, including: the identity of the Internet of Things electricity meter is obtained by parsing the address information of the Internet of Things electricity meter, and the parsing method is pre-deployed in the calibrator; a Bluetooth connection request with the identity of the Internet of Things electricity meter as the target address is constructed.
[0025] Turn on the power of the calibrator, Bluetooth converter, and pulse conversion module, aim the barcode scanner at the address barcode of the IoT power meter, and start scanning through the control button. The address barcode of the power meter is pre-assigned and deployed on the IoT power meter, and encryption is used to ensure security. The barcode scanner transmits the collected address information to the calibrator MCU. The parsing program pre-installed in the MCU corresponds to the address barcode setting and can parse the address information to identify the identity of the IoT power meter.
[0026] Step 2: Generate a Bluetooth connection request according to the identity of the Internet of Things electric energy meter, and establish a Bluetooth connection channel by sending the Bluetooth connection request to the Internet of Things electric energy meter.
[0027] The local specification information of the Internet of Things electric energy meter is obtained through the Bluetooth connection channel, and an active pulse verification command is generated and sent to the Internet of Things electric energy meter, including: the local specification information at least includes the hardware model, software version, and Bluetooth network parameters of the Internet of Things electric energy meter; the Bluetooth network parameters at least include the sensitivity range and frequency deviation range of the Bluetooth chip in the Internet of Things electric energy meter.
[0028] After the scan is successful, the meter identity is transmitted to the MCU, and the MCU uses the meter identity as the Bluetooth target MAC address to generate a Bluetooth connection request. The IoT meter receives the Bluetooth connection request and sends a Bluetooth connection response, thereby establishing a Bluetooth connection channel.
[0029] After establishing the Bluetooth connection channel, Bluetooth authentication is implemented. The authentication process includes the IoT energy meter sending information such as hardware model, software version, and Bluetooth network parameters. If the above information passes the verification and meets the Bluetooth protocol specifications, a wireless channel is established to transmit wireless active pulses. Otherwise, the Bluetooth connection is disconnected.
[0030] Step 3: obtain the local specification information of the IoT electric energy meter through the Bluetooth connection channel, generate an active pulse verification command based on the information and send it to the IoT electric energy meter to control the IoT electric energy meter to send non-modulated active pulses through the wireless channel.
[0031] The local specification information of the Internet of Things electric energy meter is obtained through the Bluetooth connection channel, and an active pulse verification command is generated and sent to the Internet of Things electric energy meter based on the local specification information, including: obtaining the communication consistency range of the Internet of Things electric energy meter through the sensitivity range and frequency offset range of the Bluetooth chip; obtaining the protocol and configuration file of the Internet of Things electric energy meter respectively by parsing the corresponding message format and message content of the Bluetooth connection of the Internet of Things electric energy meter; verifying the communication consistency range, protocol, and configuration file of the Internet of Things electric energy meter, and generating an active pulse verification command if it meets the Bluetooth authentication rules.
[0032] The Bluetooth chip on the IoT power meter side generates a radio frequency signal. Different models of IoT power meters have different specifications, which may result in different characteristics such as the frequency and detection amplitude of the active pulse, which makes it impossible for the calibrator to collect it. The sensitivity range and frequency deviation range of the Bluetooth chip are the network transmission characteristics of the IoT power meter. After being sent by the IoT power meter, the calibrator determines the active pulse to be identified based on this. The communication consistency range may include the signal strength range and frequency deviation range of the Bluetooth radio frequency signal. The monitoring range of the calibrator is adjusted according to the sensitivity range and frequency deviation range. In addition, the Bluetooth transmission method can also be obtained by parsing the protocol and configuration file of the IoT power meter, and a wireless channel can be established accordingly.
[0033] After passing the Bluetooth authentication rules, the calibrator generates an active pulse verification command locally and sends it to the IoT electricity meter.
[0034] Step 4: extract the active pulse information of the Internet of Things electric energy meter from the modulation-free active pulse, and perform verification based on the active pulse information.
[0035] The power pulse of the IoT energy meter is sent out through Bluetooth instructions, and the Bluetooth chip receives data according to the Bluetooth protocol, including decoding, correction, analysis, and verification. The data is sent to the MCU, and no modulation, demodulation, encoding, and decryption are required in this process. Wireless communication is implemented through baseband RF signals to overcome the deviation caused by transmission interference and ensure low power consumption and high-precision communication. Since the frequency deviation and sensitivity range are collected in advance, the adjustable frequency range and signal strength further ensure the difficulty of analyzing the wireless signal and prevent the energy meter information from being maliciously collected.
[0036] Controlling the Internet of Things electric energy meter to send out modulation-free active pulses through a wireless channel includes: controlling the Internet of Things electric energy meter to convert the active pulses into modulation-free wireless pulses within a power range of 100mW; and sending out the modulation-free wireless pulses through a TTL wireless serial port module in the Internet of Things electric energy meter.
[0037] The wireless converter receives the wireless signal, only completes the decoding, and sends the data to the MCU. The MCU uses the interrupt mode to receive data from the Bluetooth chip and the wireless converter. Because the Bluetooth chip sends data to the MCU only after completing the data integrity judgment, and the wireless converter sends byte by byte, the data from the wireless converter will first cause the MCU to interrupt, and the MCU judges the protocol header and address byte by byte. After the data judgment is passed, the pulse I / O is set to a high level, and the MCU clock is set, and the delay is set to 20ms. The clock interrupt is used to set the I / O level to a low level, forming a 20ms wide high level. The I / O level is converted into an electrical pulse signal through the pulse level conversion module and sent to the calibrator. After completing the data integrity judgment, the Bluetooth chip sends data to the MCU. The MCU judges whether the pulse is high in the interrupt. If it is high, the data is discarded. If the pulse output is low, the pulse output is started.
[0038] In one embodiment, the IoT electric energy meter communication rate is 115200bps, and the pulse output width range is 10ms to 96ms. In low-power, low-bandwidth wireless devices, due to the delay in data transmission, there will be a time difference between the electric energy meter pulse and the converter output pulse. If the transmission signal is interrupted, it will affect the verification accuracy. For this reason, the current modulation-free decoding processing method is adopted, and the pulse is output only after the protocol header and address byte judgment are completed, which overcomes the time offset caused by modulation. Wireless communication may be interfered with, and the Bluetooth chip has a certain correction capability. When the protocol header and address are interfered with, the Bluetooth chip will still ensure that the pulse will not be lost. When the protocol header and address are normal, the wireless converter will also ensure that the pulse will not be lost if the rear data is interfered with.
[0039] The active pulse information of the Internet of Things electric energy meter is extracted from the unmodulated active pulse, and verification is performed based on the active pulse information, including: adjusting the state of the listening port located locally in the calibrator according to the communication consistency range, protocol, and configuration file of the Internet of Things electric energy meter; collecting the active pulse information of the Internet of Things electric energy meter through the listening port and converting it into electric pulses, and judging the number of the electric pulses through pulse duration verification to perform verification.
[0040] In the embodiment, a dual-channel mode of a Bluetooth chip and a wireless converter is adopted, which reduces both the time error and the probability of pulse loss, and has good application value.
[0041] The second aspect of the present invention relates to a calibrator, which is implemented using the method in the first aspect of the present invention; the calibrator includes a barcode scanner, a Bluetooth chip, a wireless converter, an MCU, a pulse level conversion module, and an electric pulse interface; the barcode scanner collects address information of an Internet of Things electric energy meter; the Bluetooth chip establishes a Bluetooth connection channel with the Internet of Things electric energy meter, and sends a Bluetooth connection request, and collects the Bluetooth connection response of the Internet of Things electric energy meter; the wireless converter collects the active pulses of the Internet of Things electric energy meter and converts them into electric pulses through the MCU and the pulse level conversion module, outputs them through the electric pulse interface and is used for calibration.
[0042] like Figure 1 As mentioned above, the IoT electric energy meter does not have pulse wiring and 485 communication terminals. The barcode scanner realizes barcode and QR code scanning and converts them into serial data. The control button is used for manual scanning control. The MCU is used to process the input of the barcode scanning module, key input, wireless converter input, Bluetooth chip communication, and pulse output.
[0043] In one embodiment of the present invention, a low-power Bluetooth chip is used as the main control terminal to establish a Bluetooth connection with the Internet of Things electric energy meter, and a chip that supports Bluetooth 5.0 and above low-power Bluetooth protocol is used. The wireless converter is used to complete the conversion of wireless signals to TTL serial data without complex protocol parsing and data judgment. The pulse level converter converts the I / O output level of the MCU. The charging circuit uses USB and TYPE-C interfaces, and the voltage input is DC4.7 to 5.25V. The rechargeable battery is a 3.7V lithium battery. The power management module is used to convert between 3.3V, 5V, and 12V voltages to provide power for the integrated module. The calibrator is connected to other calibration instruments through an electric pulse interface, and the input power and calculated power of the electric energy meter are obtained by measuring the analog input and electrical pulse output of the electric energy meter. The measurement accuracy of the electric energy meter is judged by comparing the error between the two.
[0044] A third aspect of the present invention relates to a terminal, comprising a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method described in the first aspect of the present invention.
[0045] A fourth aspect of the present invention relates to a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect of the present invention.
[0046] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit them. Although the present invention is described in detail with reference to the above embodiments, it should be understood by those skilled in the art that the technical solutions of the present invention still include contents that can modify or replace the specific embodiments of the present invention. Any modification or replacement that does not depart from the spirit and scope of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. A method for calibrating an electric energy meter of the Internet of Things, characterized in that: The method comprises the following steps: Collect the address information of the IoT electric energy meter through a barcode scanner and identify the identity of the IoT electric energy meter; Generate a Bluetooth connection request according to the identity of the Internet of Things electric energy meter, and establish a Bluetooth connection channel by sending the Bluetooth connection request to the Internet of Things electric energy meter; Obtaining local specification information of the IoT electric energy meter through a Bluetooth connection channel, generating an active pulse verification command based on the information and sending it to the IoT electric energy meter, so as to control the IoT electric energy meter to send a modulation-free active pulse through a wireless channel; The active pulse information of the Internet of Things electric energy meter is extracted from the modulation-free active pulse, and verification is performed based on the active pulse information.
2. The method for calibrating an Internet of Things electric energy meter according to claim 1, characterized in that: The collecting of address information of the IoT electric energy meter by means of a barcode scanner and identifying the identity of the IoT electric energy meter includes: The identity of the IoT electric energy meter is obtained by parsing the address information of the IoT electric energy meter, and the parsing method is pre-deployed in the calibration instrument; Construct a Bluetooth connection request with the identity of the Internet of Things electric energy meter as the target address.
3. The method for calibrating an Internet of Things electric energy meter according to claim 2, characterized in that: The obtaining of local specification information of the IoT electric energy meter through the Bluetooth connection channel, generating an active pulse verification command based on the local specification information and sending the command to the IoT electric energy meter, comprises: The local specification information includes at least the hardware model, software version, and Bluetooth network parameters of the IoT electric energy meter; The Bluetooth network parameters include at least the sensitivity range and frequency deviation range of the Bluetooth chip in the Internet of Things electric energy meter.
4. The method for calibrating an Internet of Things electric energy meter according to claim 3, characterized in that: The obtaining of local specification information of the IoT electric energy meter through the Bluetooth connection channel, generating an active pulse verification command based on the local specification information and sending the command to the IoT electric energy meter, comprises: Obtaining the communication consistency range of the Internet of Things electric energy meter through the sensitivity range and frequency offset range of the Bluetooth chip; By parsing the message format and message content corresponding to the Bluetooth connection of the Internet of Things electric energy meter, the protocol and configuration file of the Internet of Things electric energy meter are respectively obtained; The communication consistency range, protocol and configuration file of the Internet of Things electric energy meter are verified, and if they meet the Bluetooth authentication rules, an active pulse verification command is generated.
5. The method for calibrating an Internet of Things electric energy meter according to claim 4, characterized in that: The controlling the IoT electric energy meter to send a modulation-free active pulse through a wireless channel comprises: Controlling the IoT electric energy meter to convert active pulses into modulation-free wireless pulses within a 100mW power range; The modulation-free wireless pulse is sent out through the TTL wireless serial port module in the Internet of Things electric energy meter.
6. The method for calibrating an Internet of Things electric energy meter according to claim 5, characterized in that: The extracting the active pulse information of the Internet of Things electric energy meter from the modulation-free active pulse and performing verification according to the active pulse information includes: Adjust the state of the listening port located locally in the calibration instrument according to the communication consistency range, protocol, and configuration file of the IoT electric energy meter; The active pulse information of the Internet of Things electric energy meter is collected through the monitoring port and converted into electrical pulses. The number of the electrical pulses is determined by pulse duration verification to implement verification.
7. The method for calibrating an Internet of Things electric energy meter according to claim 6, characterized in that: The determining the number of the electrical pulses by pulse duration verification includes: The pulse output width of the Internet of Things electric energy meter is in the range of 10ms to 96ms, and the pulse duration check is 20ms.
8. A calibration instrument, characterized in that: The calibration instrument is implemented by the method described in any one of claims 1 to 7; The calibrator includes a barcode scanner, a Bluetooth chip, a wireless converter, an MCU, a pulse level conversion module, and an electric pulse interface; The barcode scanner collects address information of the IoT electric energy meter; The Bluetooth chip establishes a Bluetooth connection channel with the IoT electric energy meter, sends a Bluetooth connection request, and collects the Bluetooth connection response of the IoT electric energy meter; The wireless converter collects the active pulses of the IoT electric energy meter and converts them into electrical pulses through the MCU and the pulse level conversion module, and outputs them through the electrical pulse interface for verification.
9. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.