Tail end electricity utilization monitoring system and method based on Bluetooth networking

Through the end power monitoring system based on Bluetooth networking, the problems of data transmission delay and security in the prior art are solved, and real-time data reporting and high security monitoring are realized.

CN119922520APending Publication Date: 2025-05-02ACREL CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411935602.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The existing terminal power monitoring system has problems with data transmission delay and security, and real-time and secure monitoring cannot be achieved.

Method used

The end-user power monitoring system based on Bluetooth network is adopted to realize data transmission through Bluetooth broadcasting and point-to-point connections, and a data transmission format within a three-second cycle is designed, and data encryption is used using the XOR algorithm.

Benefits of technology

Real-time data reporting is realized, real-time monitoring and data security are improved, and distribution network and management processes are simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922520A_ABST
    Figure CN119922520A_ABST
Patent Text Reader

Abstract

The invention relates to a tail end power utilization monitoring system and method based on Bluetooth networking. The system comprises a gateway, a plurality of tail end power utilization monitoring modules and terminal equipment used for managing the gateway and the tail end power utilization monitoring modules. The tail end power utilization monitoring module sends tail end power utilization monitoring data to the gateway through connectable Bluetooth broadcast, the tail end power utilization monitoring data comprises alarm data and real-time data, the alarm data comprises important alarm data and general alarm data, the important alarm data is sent three times per second within a period of three seconds, and the general alarm data is sent three times per second within a period of three seconds. General alarm data and real-time data are sent three times every three seconds; and the gateway carries out parameter setting on all the tail end power utilization monitoring modules through Bluetooth point-to-point connection. Compared with the prior art, the method has the advantages of being high in data reporting real-time performance and safety, easy to debug and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of terminal power consumption monitoring, and in particular to a terminal power consumption monitoring system and method based on Bluetooth networking. Background Art

[0002] The terminal power monitoring module is mainly used in the intelligent power transformation. For the PZ30 box or the terminal distribution box, a terminal power monitoring device for voltage, current, temperature, leakage, etc. is installed under each circuit breaker to monitor the electrical fire of the terminal power circuit, thereby reducing the occurrence of fire. The structure of the PZ30 box is as follows: Figure 6 shown.

[0003] At present, the terminal power consumption monitoring of various manufacturers is mainly divided into three types:

[0004] The first method is based on wired communication. The current mainstream method is wired RS485 communication. The gateway cascades the terminal power consumption monitoring module through RS485 communication, such as Figure 7 As shown. The gateway trains the terminal power consumption monitoring module in turn through RS485 and reads related parameters. This communication networking method requires round-robin training to collect data, which will lead to slow data collection, and the wired connection is not beautiful enough for installation.

[0005] The second is based on ZigBee communication. The terminal power consumption monitoring module and the gateway are connected to the gateway through ZigBee and the data is transmitted to the central gateway. However, this solution is more expensive, especially the ZigBee communication chip is more expensive than the 485 chip. Secondly, the data transmission rate of ZigBee technology is generally below 250kbps, and the mesh topology network leads to higher communication delay.

[0006] The third type is based on Lora communication. The terminal power consumption monitoring module adopts Lora communication. The Lora communication rate is based on 433MHZ communication, and the communication rate is lower. Moreover, since the Lora communication distance is very long, when there are many on-site gateways and a large number of networks, cross-frequency problems are likely to occur.

[0007] The data transmission of the above-mentioned terminal power consumption monitoring modules has high communication delay, cannot achieve real-time reporting, and is not encrypted, which poses security issues.

[0008] How to achieve real-time and safe monitoring of terminal electricity consumption has become a technical problem that needs to be solved. Summary of the invention

[0009] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a terminal electricity consumption monitoring system and method based on Bluetooth networking.

[0010] The purpose of the present invention can be achieved by the following technical solutions:

[0011] According to one aspect of the present invention, there is provided a terminal power consumption monitoring system based on Bluetooth networking, the system comprising a gateway and a plurality of terminal power consumption monitoring modules, the system further comprising a terminal device for managing the gateway and the terminal power consumption monitoring modules;

[0012] The terminal power consumption monitoring module sends the terminal power consumption monitoring data to the gateway through the connectable Bluetooth broadcast, and the terminal power consumption monitoring data includes alarm data and real-time data, wherein the alarm data includes important alarm data and general alarm data. Within a three-second period, the important alarm data is sent three times per second, and the general alarm data and real-time data are sent three times every three seconds;

[0013] The gateway, the terminal power consumption monitoring module and the terminal device are connected point-to-point via Bluetooth to perform network configuration and parameter setting.

[0014] Preferably, a private protocol is formulated for the Bluetooth point-to-point connection, and the protocol format includes an address, a function code and a sub-function code, data and a cyclic redundancy check code;

[0015] The address is the IP address of the terminal power consumption monitoring module;

[0016] The function code is used to distinguish different command types, including software upgrade commands and device debugging commands;

[0017] The function code is used to subdivide the function, including real-time data, protection parameters and real-time parameters;

[0018] The 0th bit of the data indicates a write or read / write operation.

[0019] Preferably, the terminal power consumption monitoring module adopts an XOR algorithm to encode and encrypt the terminal power consumption monitoring data; and the gateway adopts the same XOR algorithm to decrypt the received data.

[0020] More preferably, the coding encryption is specifically as follows: the terminal power consumption monitoring data greater than or equal to the set threshold is XORed with the first key, and the terminal power consumption monitoring data less than the set threshold is XORed with the second key;

[0021] The encryption is specifically as follows: data greater than or equal to a set threshold is XORed with a first key, and data less than a set threshold is XORed with a second key.

[0022] More preferably, the set threshold is 0x80.

[0023] Preferably, the network configuration process includes: the terminal device scans the broadcasts of the terminal power consumption monitoring module and the gateway, the terminal device and the gateway are connected point-to-point via Bluetooth, and the information of the terminal power consumption monitoring module obtained through the Bluetooth broadcast is written into the gateway to complete the network configuration.

[0024] Preferably, after the terminal device is connected to the gateway via Bluetooth point-to-point, parameters are set for the gateway, wherein the parameters include IP address, port, domain name, user name and password;

[0025] After the terminal device is connected to the terminal power consumption monitoring module via Bluetooth point-to-point, an upgrade command is remotely issued to perform upgrade management on the terminal power consumption monitoring module.

[0026] Preferably, the alarm data are alarms of various parameters, including alarms of ABC phase overvoltage, ABC phase undervoltage, ABC phase overcurrent and ABCN phase overtemperature;

[0027] The real-time data includes voltage, current, leakage, active power, reactive power, power factor, active electric energy, reactive electric energy and temperature monitored in real time by the terminal power consumption monitoring module.

[0028] Preferably, the sending interval of the alarm data and the real-time data is 100 ms.

[0029] According to another aspect of the present invention, a method for monitoring terminal power consumption based on Bluetooth networking is provided, the method comprising:

[0030] After the gateway and the terminal power consumption monitoring module are installed, they are powered on. The terminal device scans the broadcasts of the terminal power consumption monitoring module and the gateway and completes the network configuration.

[0031] The terminal device and the gateway are connected point-to-point via Bluetooth, and the information of the terminal power consumption monitoring module that needs to be monitored is scanned and written into the gateway;

[0032] The terminal device and the gateway are connected point-to-point via Bluetooth to set the parameters of the gateway;

[0033] The terminal device is connected to the terminal power consumption monitoring module via Bluetooth point-to-point, and protection parameters are written to the terminal power consumption monitoring module;

[0034] The terminal power consumption monitoring module sends the terminal power consumption monitoring data to the gateway via the connectable Bluetooth broadcast. The gateway screens the terminal power consumption monitoring modules within the distribution network range and receives the monitoring data.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] 1) The terminal electricity consumption monitoring module of the present invention sends monitoring data to the gateway via a connectable Bluetooth broadcast. According to the packet size of the Bluetooth broadcast, the transmission format of the monitoring data within a three-second period is designed to ensure the real-time reporting of data. The alarm data of the 64 sub-modules can be reported within 1-2 seconds, and the real-time data can be reported within 3-6 seconds.

[0037] 2) The present invention realizes network distribution based on Bluetooth point-to-point connection, parameter setting of the gateway to each terminal power consumption monitoring module, parameter setting of the terminal device to the gateway, and management of the terminal device and the terminal power consumption monitoring module. The debugging is simple and can be completed remotely through the terminal device.

[0038] 3) The present invention adopts customized and private encryption processing for Bluetooth messages, and the data security is very high.

[0039] 4) On-site gateways can expand coverage. Since Bluetooth communication is used, placing a gateway in each room on site can complete the collection and monitoring data of the entire building; the system does not require additional wiring and is beautiful after assembly.

[0040] 5) The private protocol of Bluetooth point-to-point connection defined in the present invention has strong scalability, and subsequent gateways can use the protocol to expand different devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of the structure of the system in the present invention and the terminal power consumption monitoring module broadcasting data via a connectable Bluetooth;

[0042] Figure 2 This is a schematic diagram of the gateway in the present invention setting parameters for the terminal power consumption monitoring module via Bluetooth;

[0043] Figure 3 It is a schematic diagram of the terminal power consumption monitoring system of the present invention performing network configuration via Bluetooth;

[0044] Figure 4 This is a schematic diagram of the gateway in the present invention setting parameters for the terminal power consumption monitoring module via Bluetooth;

[0045] Figure 5 This is a schematic diagram of the mobile phone APP setting parameters of the gateway via Bluetooth in the present invention;

[0046] Figure 6 It is a structural diagram of the existing PZ30 box;

[0047] Figure 7 It is a structural diagram of the existing terminal power consumption monitoring system based on RS485 communication. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0049] The present invention utilizes Bluetooth broadcast communication and point-to-point connection communication to design a real-time and safe terminal power consumption monitoring system and method.

[0050] This embodiment relates to a terminal power consumption monitoring system based on Bluetooth networking, such as Figure 1 As shown, the system includes a gateway, a terminal device and several terminal power consumption monitoring modules. Optionally, the terminal device is a mobile phone APP.

[0051] like Figure 1 The terminal power consumption monitoring module actively sends the terminal power consumption monitoring data to the gateway through the connectable Bluetooth broadcast. However, since each packet of the connectable Bluetooth broadcast can send a maximum of 29 bytes, and the data volume of the terminal power consumption monitoring module is large, even if it does not include alarm data, there are 180 bytes, including voltage and current leakage, active power, reactive power, power factor, active energy, reactive energy and temperature. The alarm data is an alarm of various parameters, including ABC phase overvoltage, ABC phase undervoltage, ABC phase overcurrent, ABCN phase overtemperature, etc., occupying 20 bytes. One gateway downstream device can carry up to 64 terminal power consumption monitoring modules.

[0052] In order to realize the real-time alarm data, it is necessary to ensure that the alarm data of 64 terminal power consumption monitoring modules can be reported within 2 seconds, and at the same time, the real-time monitoring data must be reported. Since the theoretical air rate of Bluetooth is 2Mbps, the air rate of a basic broadcast packet can be ignored. The design is as follows Figure 2 The networking scheme shown in the figure. In a 3S cycle, the data is divided into 7 packets (i.e., the important alarm data repeatedly sent in the 2nd and 3rd seconds are deducted from the 3s cycle), and the important alarm data (such as Figure 2 The red alarm data 1) is sent 3 times per second, and the general alarm data (such as Figure 2 The alarm data 2) and real-time data in orange are sent three times every 3 seconds. In this way, the terminal power monitoring module can basically transmit the alarm data and real-time data to the gateway in real time. Each packet of 29 bytes takes about 100μs to complete the transmission, and the packet data of 64 terminal power monitoring modules takes about 6.4ms to complete the transmission. The interval time of 100ms ensures that there is enough idle time for air transmission to avoid air collision.

[0053] Since the broadcast data of Bluetooth is public and can be searched by any device, in order to ensure the security of the data, the data needs to be privately encrypted. Using the characteristics of data XOR, the data is divided into two categories: data greater than or equal to the set threshold (0x80 is used in this embodiment) is XORed with the first key (0x55 is used in this embodiment), and data less than the set threshold (0x80 is used in this embodiment) is XORed with the second key (0x50 is used in this embodiment); similarly, data greater than or equal to the set threshold (0x80 is used in this embodiment) in the output result is XORed with the first key (0x55 is used in this embodiment), and data less than the set threshold (0x80 is used in this embodiment) is XORed with the second key (0x50 is used in this embodiment). Since the XOR algorithm is used, the complexity of the program and the amount of calculation of the microcontroller unit (MCU) will not be increased, while the security of the data in plain text is avoided.

[0054] Security code encryption example:

[0055] Original data (hexadecimal):

[0056] 0x10,0x30,0x45,0x56,0xA0,0xB0,0xC5,0xD6,0x20,0x31,

[0057] 0x25,0x36,0xA2,0xB3,0xC4,0xD5,0xC4,0xD5,0x21,0x45,

[0058] 0x66,0x82,0x93,0xC4,0xD5,0xC4,0xD5,0xC4,0xA2

[0059] Encoded encrypted data (hexadecimal):

[0060] 0x40,0x60,0x15,0x06,0xf5,0xe5,0x90,0x83,0x70,0x61,

[0061] 0x75,0x66,0xf7,0xe6,0x91,0x80,0x91,0x80,0x71,0x15,

[0062] 0x36,0xd7,0xc6,0x91,0x80,0x91,0x80,0x91,0xf7

[0063] After encryption, the data has little correlation with the original data, so even if it is broadcast, the confidentiality of the data is very good. Moreover, after the protocol is encrypted, the decryption scheme also saves computing resources and only requires XOR.

[0064] The system also involves the following operations:

[0065] 1) Distribution network;

[0066] 2) The gateway sets parameters for the terminal power consumption monitoring module;

[0067] 3) The mobile phone APP manages the gateway and terminal power consumption monitoring module, including parameter setting for the gateway and upgrade management of the terminal power consumption monitoring module.

[0068] The network configuration process includes: the mobile phone APP scans the terminal power consumption monitoring module and the gateway, the mobile phone APP and the gateway are connected point-to-point via Bluetooth, and the information of the terminal power consumption monitoring module obtained through Bluetooth broadcast (including the serial number of the terminal power consumption monitoring module) is written into the gateway to complete the network configuration. The process is as follows: Figure 3 .

[0069] The gateway sets the parameters of the terminal power monitoring module. It needs to establish a Bluetooth point-to-point connection with each terminal power monitoring module. The process is as follows: Figure 4 . So set the parameters as shown below:

[0070] The private protocol for Bluetooth point-to-point connection, the protocol format is shown in Table 1.

[0071] Table 1

[0072]

[0073] The main function code is used to distinguish different command types, and the sub-function code is used to sub-classify the functions into real-time data, protection parameters, and real-time parameters, as shown in Table 2. At the same time, the 0th bit of the data is used to indicate write / read. This private protocol is highly scalable and is easier to expand to different devices or modules than the modbus address table, making it easier for the gateway to expand other devices or modules.

[0074] Table 2

[0075]

[0076] The process of mobile APP managing the gateway and terminal power consumption monitoring module is as follows: Figure 5 As shown. After the mobile phone APP is connected to the gateway via Bluetooth point-to-point, set the parameters of the gateway, including IP address, port, domain name, user name and password, etc. After the mobile phone APP is connected to the terminal power consumption monitoring module via Bluetooth point-to-point, remotely send the upgrade command to upgrade the terminal power consumption monitoring module.

[0077] The gateway can expand coverage. Since it uses Bluetooth communication, placing a gateway in each room on site can complete the monitoring and collection of the entire building.

[0078] This embodiment also relates to a terminal power consumption monitoring method based on Bluetooth networking, which is implemented based on a terminal power consumption monitoring system and includes:

[0079] After the gateway and the terminal power consumption monitoring module are installed, they are powered on. The terminal device scans the broadcasts of the terminal power consumption monitoring module and the gateway and completes the network configuration.

[0080] The terminal device and the gateway are connected point-to-point via Bluetooth, and the information of the terminal power consumption monitoring module that needs to be monitored is scanned and written into the gateway;

[0081] The terminal device and the gateway are connected point-to-point via Bluetooth to set the parameters of the gateway;

[0082] The terminal device is connected to the terminal power consumption monitoring module via Bluetooth point-to-point, and protection parameters are written to the terminal power consumption monitoring module;

[0083] The terminal power consumption monitoring module sends the terminal power consumption monitoring data to the gateway via the connectable Bluetooth broadcast. The gateway screens the terminal power consumption monitoring modules within the distribution network range and receives the monitoring data.

[0084] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A terminal power consumption monitoring system based on Bluetooth networking, the system includes a gateway and several terminal power consumption monitoring modules, characterized in that: The system also includes a terminal device for managing the gateway and the terminal power consumption monitoring module; The terminal power consumption monitoring module sends the terminal power consumption monitoring data to the gateway through the connectable Bluetooth broadcast, and the terminal power consumption monitoring data includes alarm data and real-time data, wherein the alarm data includes important alarm data and general alarm data. Within a three-second period, the important alarm data is sent three times per second, and the general alarm data and real-time data are sent three times every three seconds; The gateway, the terminal power consumption monitoring module and the terminal device are connected point-to-point via Bluetooth to perform network configuration and parameter setting.

2. According to the Bluetooth networking-based terminal power consumption monitoring system of claim 1, it is characterized in that: Formulate a private protocol for the Bluetooth point-to-point connection, the protocol format including address, function code and sub-function code, data and cyclic redundancy check code; The address is the IP address of the terminal power consumption monitoring module; The function code is used to distinguish different command types, including software upgrade commands and device debugging commands; The function code is used to subdivide the function, including real-time data, protection parameters and real-time parameters; The 0th bit of the data indicates a write or read / write operation.

3. According to the Bluetooth networking-based terminal power consumption monitoring system of claim 1, it is characterized in that: The terminal power consumption monitoring module adopts an XOR algorithm to encode and encrypt the terminal power consumption monitoring data; the gateway adopts the same XOR algorithm to decrypt the received data.

4. The terminal power consumption monitoring system based on Bluetooth networking according to claim 3 is characterized in that: The coding encryption is specifically as follows: the terminal power consumption monitoring data greater than or equal to the set threshold is XORed with the first key, and the terminal power consumption monitoring data less than the set threshold is XORed with the second key; The encryption is specifically as follows: data greater than or equal to a set threshold is XORed with a first key, and data less than a set threshold is XORed with a second key.

5. The terminal power consumption monitoring system based on Bluetooth networking according to claim 4 is characterized in that: The set threshold is 0x80.

6. The terminal power consumption monitoring system based on Bluetooth networking according to claim 1 is characterized in that: The network configuration process includes: the terminal device scans the broadcast of the terminal power consumption monitoring module and the gateway, the terminal device and the gateway are connected point-to-point via Bluetooth, and the information of the terminal power consumption monitoring module obtained through the Bluetooth broadcast is written into the gateway to complete the network configuration.

7. The terminal power consumption monitoring system based on Bluetooth networking according to claim 1 is characterized in that: After the terminal device is connected to the gateway via Bluetooth point-to-point, the gateway is parameterized, wherein the parameters include IP address, port, domain name, user name and password; After the terminal device is connected to the terminal power consumption monitoring module via Bluetooth point-to-point, an upgrade command is remotely issued to perform upgrade management on the terminal power consumption monitoring module.

8. The terminal power consumption monitoring system based on Bluetooth networking according to claim 1 is characterized in that: The alarm data are alarms of various parameters, including ABC phase overvoltage, ABC phase undervoltage, ABC phase overcurrent and ABCN phase overtemperature alarms; The real-time data includes voltage, current, leakage, active power, reactive power, power factor, active electric energy, reactive electric energy and temperature monitored in real time by the terminal power consumption monitoring module.

9. The terminal power consumption monitoring system based on Bluetooth networking according to claim 1 is characterized in that: The sending interval of the alarm data and real-time data is 100ms.

10. A monitoring method using the terminal power consumption monitoring system based on Bluetooth networking as described in any one of claims 1 to 9, characterized in that: The method includes: After the gateway and the terminal power consumption monitoring module are installed, they are powered on. The terminal device scans the broadcasts of the terminal power consumption monitoring module and the gateway and completes the network configuration. The terminal device and the gateway are connected point-to-point via Bluetooth, and the information of the terminal power consumption monitoring module that needs to be monitored is scanned and written into the gateway; The terminal device and the gateway are connected point-to-point via Bluetooth to set the parameters of the gateway; The terminal device is connected to the terminal power consumption monitoring module via Bluetooth point-to-point, and protection parameters are written to the terminal power consumption monitoring module; The terminal power consumption monitoring module sends the terminal power consumption monitoring data to the gateway via the connectable Bluetooth broadcast. The gateway screens the terminal power consumption monitoring modules within the distribution network range and receives the monitoring data.