A method and system for realizing Bluetooth communication reliability of IoT electric energy meter

By introducing error correction and data recovery algorithms, intelligent prediction models and adaptive adjustment algorithms in the IoT power meter Bluetooth communication system, the problem of insufficient communication reliability and security in the prior art is solved, and more efficient, more reliable and safer communication effects are achieved.

CN119255219BActive Publication Date: 2025-04-08JIANGSU TONGCHI POWER AUTOMATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411761009.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-04-08
Estimated Expiration
2044-12-03

AI Technical Summary

Technical Problem

The existing Bluetooth communication technology has shortcomings in the connection establishment of IoT power meters, data transmission security and communication reliability, including incomplete error correction and data recovery processing, lack of real-time communication quality monitoring and prediction, inflexible adjustment of communication parameters, and low security.

Method used

By introducing error correction and data recovery algorithms, intelligent prediction models and adaptive adjustment algorithms, a secure connection between the IoT power meter and Bluetooth communication device is realized, communication data is monitored in real time, communication parameters are dynamically adjusted, and the key dynamic update mechanism is triggered to improve the security of the communication system.

Benefits of technology

It significantly improves the reliability and security of Bluetooth communication of IoT meter, reduces the risk of transmission errors and communication interruptions, improves the adaptability and flexibility of the communication system, and ensures the stability and security of the communication environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119255219B_ABST
    Figure CN119255219B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for realizing the reliability of Bluetooth communication of an Internet of Things electric energy meter, which relates to the field of Internet of Things communication technology, including establishing a connection between an Internet of Things electric energy meter and a Bluetooth communication device through a Bluetooth pairing process, and performing identity authentication through a key, initializing data transmission, and performing data transmission to realize communication, using an error correction and data recovery algorithm to reduce transmission errors during data transmission, and real-time monitoring of data during communication, using the monitored data to establish an intelligent prediction model, and predicting the communication quality, evaluating whether the quality meets the requirements based on the predicted communication quality, and adjusting the communication parameters using an adaptive adjustment algorithm, real-time monitoring of device parameters and security threats, and triggering a key dynamic update mechanism to periodically update encryption and authentication strategies based on the monitoring situation. This method can solve the problems of traditional communication error rate, insufficient communication quality monitoring and prediction, insufficient flexibility in communication parameter adjustment, and low security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things communications, and in particular to a method and system for implementing Bluetooth communication reliability of an Internet of Things electric energy meter. Background Art

[0002] In the context of the rapid development of Internet of Things technology, as an important part of the smart grid, the communication reliability of the Internet of Things electric energy meter has always been the focus of industry attention. Traditional Internet of Things electric energy meter communication methods mostly use wired connection or wireless communication technology, which to a certain extent meets the data transmission needs of the electric energy meter. However, with the development of Bluetooth technology, Bluetooth communication has gradually become a new choice for Internet of Things electric energy meter communication due to its low power consumption, low cost and easy deployment. Existing Bluetooth communication technology has been studied in terms of connection establishment, data transmission security and communication reliability of Internet of Things electric energy meters, but there are still many shortcomings.

[0003] First, although the existing Bluetooth communication technology can achieve identity authentication through the pairing process when establishing a connection, the processing of error correction and data recovery during data transmission is not perfect, resulting in a high communication error rate in complex environments, affecting the reliability of communication. Secondly, the existing technology lacks real-time monitoring and prediction of communication quality, and cannot dynamically adjust communication parameters according to changes in the communication environment to ensure the stability of communication. In addition, the existing encryption and authentication strategies are often fixed. Once the key is leaked, the security of the entire communication system will be threatened. The method for implementing the reliability of Bluetooth communication of the Internet of Things electric energy meter proposed by our invention, by introducing error correction and data recovery algorithms, intelligent prediction models and adaptive adjustment algorithms, can improve the security and adaptability of the communication system while ensuring communication reliability. These aspects have significant advantages and beneficial effects compared to the existing technology. Summary of the invention

[0004] In view of the above existing problems, the present invention is proposed.

[0005] Therefore, the present invention provides a method for realizing Bluetooth communication reliability of IoT electric energy meters, which can solve the problems of traditional communication error rate, insufficient communication quality monitoring and prediction, insufficient flexibility in communication parameter adjustment and low security.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions, a method for realizing Bluetooth communication reliability of IoT electric energy meters, comprising:

[0007] The IoT energy meter and Bluetooth communication device establish a connection through the Bluetooth pairing process, and use the key for identity authentication, determine the data format and transmission protocol, initialize data transmission, and perform data transmission to achieve communication; during the data transmission process, error correction and data recovery algorithms are used to reduce transmission errors, and real-time monitoring of communication data, using the monitored data to establish an intelligent prediction model, and predict the communication quality; based on the predicted communication quality, evaluate whether the quality meets the requirements, and use the adaptive adjustment algorithm to adjust the communication parameters, monitor device parameters and security threats in real time, and trigger the key dynamic update mechanism according to the monitoring situation to periodically update the encryption and authentication strategies.

[0008] As a preferred solution of the method for implementing the reliability of Bluetooth communication of the Internet of Things electric energy meter described in the present invention, the Bluetooth pairing process includes: the Internet of Things electric energy meter and the Bluetooth communication device broadcast signals through Bluetooth to find the Bluetooth device, the Internet of Things electric energy meter sends a pairing request to the Bluetooth communication device, the Bluetooth communication device accepts the pairing request, both parties confirm the pairing information, and perform Bluetooth pairing.

[0009] The identity authentication includes that the communicating parties set a pairing password and use the Bluetooth pairing password to generate a key. Before establishing a communication connection, the generated key is used for identity authentication. After successful authentication, the IoT power meter and the Bluetooth communication device establish a Bluetooth connection and determine the data format and transmission protocol for transmission; the pairing information includes the device name, device type, PIN code, key and encryption method.

[0010] As a preferred solution of the method for implementing the reliability of Bluetooth communication of the Internet of Things electric energy meter described in the present invention, the communication implementation includes: establishing a connection with a Bluetooth communication device using a protocol, completing identity authentication, parsing data, extracting device ID, electric energy data, timestamp and checksum fields, verifying the checksum, encrypting the extracted data using an encryption algorithm, generating an encrypted data packet, sending the encrypted data packet to the Bluetooth communication device, and confirming that the data is successfully sent, the Bluetooth communication device receives the data packet, parses the received data packet, extracts the device ID, electric energy data, timestamp and checksum fields, verifies the checksum, decrypts the extracted data using a decryption algorithm, generates decrypted data, and performs subsequent processing.

[0011] As a preferred solution of the method for implementing Bluetooth communication reliability of IoT electric energy meters described in the present invention, the reducing transmission errors includes reducing transmission errors by using error correction and data recovery algorithms during data transmission.

[0012] The error correction and data recovery algorithm is expressed as:

[0013] ,

[0014] in, is the reduction of data transmission errors at time s, n is the number of factors affecting data transmission errors, is the i-th factor at time The communication quality score of is the maximum communication quality score of the ith factor, is the i-th factor at time The error probability, is the error function.

[0015] As a preferred solution of the method for implementing the reliability of Bluetooth communication of the Internet of Things electric energy meter described in the present invention, the data during the monitoring of communication includes real-time monitoring communication status data, electric energy meter operation data, network status data, equipment performance data and historical fault data.

[0016] The communication status data includes signal strength, signal interference and noise ratio, bit error rate, communication success rate and data transmission rate; the electric energy meter operation data includes electric energy meter reading, electric energy meter load condition and electric energy meter working status; the network status data includes network congestion, network delay and network availability; the equipment performance data includes hardware performance indicators of the electric energy meter, power consumption and temperature of the Bluetooth module; the historical fault data includes historical communication fault records, maintenance and repair records; the hardware performance indicators of the electric energy meter include processor load, memory usage and storage space; the environmental parameters include temperature, humidity, electromagnetic interference level, wireless signal propagation environment and distance.

[0017] As a preferred solution of the method for realizing Bluetooth communication reliability of IoT electric energy meters described in the present invention, the intelligent prediction model includes constructing an intelligent prediction model using monitored communication data, and predicting communication quality using the intelligent prediction model.

[0018] The formula for calculating the communication quality prediction value is:

[0019] ,

[0020] in, is the communication quality prediction value at time t, C is the normalization constant, is the initial time, m is the number of factors affecting communication quality, is the signal strength function of the jth factor, is the signal angle, is the signal frequency, is the integration variable, is the noise intensity function of the jth factor, is the noise parameter, is the communication quality impact function of the jth factor, To influence the parameters.

[0021] Said The signal strength function is expressed as:

[0022] ,

[0023] in, is the jth factor at time The signal strength, is the jth factor at time The signal power, is the jth factor at an angle The antenna gain is is the phase difference between the antenna and the signal direction of the jth factor, is the frequency deviation of the jth factor signal, is the frequency of the jth factor signal.

[0024] Said The noise intensity function is expressed as:

[0025] ,

[0026] in, is the jth factor at time The noise intensity, is the jth factor at time The noise power, is the noise parameter of the jth factor The noise distribution function under is the deviation between the signal frequency of the jth signal source and the ideal frequency, is the signal frequency of the jth signal source, is the noise parameter.

[0027] The communication quality impact function is expressed as:

[0028] ,

[0029] in, is the jth factor at time The degree of impact on communication quality, is the jth factor at time The communication quality prediction value of is the maximum communication quality prediction value of the jth factor, is the deviation between the communication quality score of the jth factor and the maximum communication quality score, Score the communication quality of the jth factor.

[0030] Among them, when When , it indicates that the communication quality does not meet the communication requirements, triggering the adaptive adjustment algorithm to adjust the communication frequency, communication power and encoding method, and recalculate the communication quality prediction value until the communication requirements are met; when , it indicates that the communication quality meets the communication requirements and maintains the current communication frequency, communication power and encoding method.

[0031] As a preferred solution of the method for implementing Bluetooth communication reliability of IoT electric energy meters described in the present invention, the adaptive adjustment algorithm includes designing a communication parameter adaptive adjustment algorithm to dynamically adjust the communication frequency, communication power and encoding method according to communication requirements.

[0032] The triggering mechanism for dynamic key update includes real-time monitoring of the parameters of the IoT power meter and the Bluetooth communication device and abnormal behaviors during the communication process, setting the normal area of ​​device parameters, analyzing the communication data using a security threat detection algorithm, and detecting potential security threats. When the device status monitoring and security threat detection results indicate that there are potential risks in the communication environment, the dynamic key update mechanism is triggered.

[0033] The security threat detection algorithm includes communication data anomaly detection, device status anomaly detection and comprehensive security threat assessment.

[0034] Among them, when the monitored device status is not in the normal area or the communication data is analyzed to have security threats using the security threat detection algorithm, the key dynamic update mechanism is triggered, the key update amount is calculated and the key is updated according to the key update formula, the encryption and authentication algorithms are reconfigured using the updated key, the security keys of the communicating parties are updated, and the new keys are used for encryption and authentication; when the monitored device status is in the normal area and the communication data is analyzed to have no security threats using the security threat detection algorithm, the current key continues to be used, and periodic updates and authentication are performed according to the original plan.

[0035] As a preferred solution of the IoT electric energy meter Bluetooth communication reliability implementation system described in the present invention, it is characterized by including a Bluetooth pairing and identity authentication module, a data transmission and encryption module, an error correction and data recovery module, a communication monitoring and intelligent prediction module, and an adaptive adjustment and key management module.

[0036] The Bluetooth pairing and identity authentication module is used to establish a Bluetooth connection between the IoT electric energy meter and the Bluetooth communication device, and complete the identity authentication process by sending a pairing request, confirming the pairing information, and using a key and encryption method.

[0037] The data transmission and encryption module is used to establish a connection using a protocol, parse and extract data through a format, and encrypt the data using an encryption algorithm.

[0038] The error correction and data recovery module is used to reduce transmission errors and increase data transmission reliability by applying error correction and data recovery algorithms.

[0039] The communication monitoring and intelligent prediction module is used to monitor the communication status, power meter operation data, network status, equipment performance and historical fault data in real time, and use the data to build an intelligent prediction model to predict the communication quality.

[0040] The adaptive adjustment and key management module is used to dynamically adjust communication parameters through an adaptive adjustment algorithm, and to update encryption and authentication strategies when a security threat is detected using a dynamic key update mechanism to maintain communication security.

[0041] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, the processor implements the steps of a method for implementing Bluetooth communication reliability of an IoT electric energy meter.

[0042] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of a method for implementing Bluetooth communication reliability of an IoT electric energy meter.

[0043] Beneficial effects of the present invention: The method of the present invention establishes a secure connection between the IoT electric energy meter and the Bluetooth communication device through the Bluetooth pairing and identity authentication process, ensures the initial security of data transmission, effectively prevents unauthorized device access, and ensures the legitimacy of both parties in communication. In the process of data transmission, the error correction and data recovery algorithm is used to significantly reduce transmission errors, improve the accuracy of data transmission, and ensure the stability of communication, especially in complex environments, and reduce the risk of communication interruption and data loss. By real-time monitoring of communication data and building an intelligent prediction model, the present invention can predict the communication quality, identify potential problems in advance, and dynamically adjust communication parameters according to the prediction results, thereby realizing intelligent maintenance and optimization of the communication system and improving the flexibility and adaptability of communication; in addition, the present invention significantly enhances the security of the communication system by real-time monitoring of device parameters and security threats, combined with a dynamic key update mechanism, and periodically updates encryption and authentication strategies, which can timely discover and respond to potential security threats and effectively prevent the security risks of key leakage and replay attacks. The design of the adaptive adjustment algorithm enables the communication frequency, power, and encoding method to be dynamically optimized according to environmental changes, further improving communication efficiency and performance and reducing the possibility of communication failure. The use of computer equipment and storage media makes the entire method automated and programmed, reducing the complexity and error rate of manual operations and improving the convenience and efficiency of system operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use 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 ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0045] Figure 1 A schematic flow chart of a method for implementing Bluetooth communication reliability of an IoT electric energy meter provided by an embodiment of the present invention.

[0046] Figure 2 A system solution flow chart of a system for implementing Bluetooth communication reliability of an IoT electric energy meter provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0048] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0049] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0050] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0051] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0052] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0053] Example 1, reference Figure 1 , which is the first embodiment of the present invention, and provides a method for realizing Bluetooth communication reliability of an IoT electric energy meter, comprising:

[0054] S1: The IoT energy meter and the Bluetooth communication device establish a connection through the Bluetooth pairing process, and perform identity authentication through the key, determine the data format and transmission protocol for transmission, initialize data transmission, and perform data transmission to achieve communication.

[0055] Furthermore, the Bluetooth pairing process includes: the IoT power meter and the Bluetooth communication device broadcast signals through Bluetooth to find the Bluetooth device, the IoT power meter sends a pairing request to the Bluetooth communication device, the Bluetooth communication device accepts the pairing request, both parties confirm the pairing information, and perform Bluetooth pairing.

[0056] It should be noted that the identity authentication includes that the communicating parties set a pairing password and use the Bluetooth pairing password to generate a key. Before establishing a communication connection, the generated key is used for identity authentication. After successful authentication, the IoT power meter and the Bluetooth communication device establish a Bluetooth connection and determine the data format and transmission protocol for transmission; the pairing information includes the device name, device type, PIN code, key and encryption method.

[0057] Furthermore, the communication implementation includes establishing a connection with a Bluetooth communication device using the TCP protocol and completing identity authentication, parsing data in JSON format, extracting device ID, power data, timestamp and checksum fields, verifying the checksum, encrypting the extracted data using the AES encryption algorithm, generating an encrypted data packet, sending the encrypted data packet to the Bluetooth communication device, and confirming that the data has been sent successfully, the Bluetooth communication device receiving the data packet, parsing the received data packet, extracting device ID, power data, timestamp and checksum fields, verifying the checksum, decrypting the extracted data using the AES decryption algorithm, generating decrypted data, and performing subsequent processing.

[0058] S2: Use error correction and data recovery algorithms to reduce transmission errors during data transmission, monitor communication data in real time, use the monitored data to build an intelligent prediction model, and predict communication quality.

[0059] Furthermore, reducing transmission errors includes reducing transmission errors by using an error correction and data recovery algorithm during data transmission.

[0060] The error correction and data recovery algorithm is expressed as:

[0061] ,

[0062] in, is the reduction of data transmission errors at time s, n is the number of factors affecting data transmission errors, is the i-th factor at time The communication quality score of is the maximum communication quality score of the ith factor, is the i-th factor at time The error probability, is the error function.

[0063] The communication quality score includes a predefined scoring model, and the preprocessed data is weighted and scored to obtain a communication quality score.

[0064] Furthermore, the data collected during the communication monitoring includes real-time monitoring communication status data, electric energy meter operation data, network status data, equipment performance data and historical fault data.

[0065] The communication status data includes signal strength, signal interference and noise ratio, bit error rate, communication success rate and data transmission rate; the electric energy meter operation data includes electric energy meter reading, electric energy meter load condition and electric energy meter working status; the network status data includes network congestion, network delay and network availability; the equipment performance data includes hardware performance indicators of the electric energy meter, power consumption and temperature of the Bluetooth module; the historical fault data includes historical communication fault records, maintenance and repair records; the hardware performance indicators of the electric energy meter include processor load, memory usage and storage space; the environmental parameters include temperature, humidity, electromagnetic interference level, wireless signal propagation environment and distance.

[0066] It should be noted that the intelligent prediction model includes building an intelligent prediction model using monitored communication data, and using the intelligent prediction model to predict communication quality.

[0067] The formula for calculating the communication quality prediction value is:

[0068] ,

[0069] in, is the communication quality prediction value at time t, C is the normalization constant, is the initial time, m is the number of factors affecting communication quality, is the signal strength function of the jth factor, is the signal angle, is the signal frequency, is the integration variable, is the noise intensity function of the jth factor, is the noise parameter, is the communication quality impact function of the jth factor, To influence the parameters.

[0070] Said The signal strength function is expressed as:

[0071] ,

[0072] in, is the jth factor at time The signal strength, is the jth factor at time The signal power, is the jth factor at an angle The antenna gain is is the phase difference between the antenna and the signal direction of the jth factor, is the frequency deviation of the jth factor signal, is the frequency of the jth factor signal.

[0073] Said The noise intensity function is expressed as:

[0074] ,

[0075] in, is the jth factor at time The noise intensity, is the jth factor at time The noise power, is the noise parameter of the jth factor The noise distribution function under is the deviation between the signal frequency of the jth signal source and the ideal frequency, is the signal frequency of the jth signal source, is the noise parameter.

[0076] The communication quality impact function is expressed as:

[0077] ,

[0078] in, is the jth factor at time The degree of impact on communication quality, is the jth factor at time The communication quality prediction value of is the maximum communication quality prediction value of the jth factor, is the deviation between the communication quality score of the jth factor and the maximum communication quality score, Score the communication quality of the jth factor.

[0079] Among them, when When , it indicates that the communication quality does not meet the communication requirements, triggering the adaptive adjustment algorithm to adjust the communication frequency, communication power and encoding method, and recalculate the communication quality prediction value until the communication requirements are met; when , it indicates that the communication quality meets the communication requirements and maintains the current communication frequency, communication power and encoding method.

[0080] S3: Evaluate whether the quality meets the requirements based on the predicted communication quality, and use the adaptive adjustment algorithm to adjust the communication parameters, monitor device parameters and security threats in real time, and trigger the key dynamic update mechanism to periodically update the encryption and authentication strategies based on the monitoring situation.

[0081] It should be noted that the adaptive adjustment algorithm includes designing a communication parameter adaptive adjustment algorithm to dynamically adjust the communication frequency, communication power and encoding method according to communication requirements.

[0082] Among them, the adjustment amount of the communication frequency is expressed as:

[0083] ,

[0084] in, is the adjustment amount of the communication frequency, is the maximum value of the communication frequency, is the minimum value of the communication frequency, For the new communication frequency, is the old communication frequency, is a symbolic function.

[0085] Among them, the adjustment amount of the communication power is expressed as:

[0086] ,

[0087] in, is the adjustment amount of communication power, is the maximum value of communication power, is the minimum value of communication power, For the new communication power, is the old communication power, is a symbolic function.

[0088] Said The formula for the sign function is:

[0089] ,

[0090] Among them, x is the input data.

[0091] It should also be noted that the triggering mechanism for dynamic key update includes real-time monitoring of the parameters of the IoT power meter and Bluetooth communication equipment and abnormal behaviors during the communication process, setting the normal area of ​​equipment parameters, using security threat detection algorithms to analyze communication data, and detecting potential security threats. When the equipment status monitoring and security threat detection results indicate that there are potential risks in the communication environment, the dynamic key update mechanism is triggered.

[0092] The normal range of parameters includes: normal temperature range of [-10°C, +40°C], normal voltage range of [3.3V, 5V], normal current range of [10mA, 100mA], normal CPU load range of (0%, 80%], and normal memory usage range of (0%, 90%].

[0093] The security threat detection algorithm includes communication data anomaly detection, device status anomaly detection and comprehensive security threat assessment.

[0094] The communication data anomaly detection formula is:

[0095] ,

[0096] Among them, B is the abnormality of communication data, E is the number of abnormal data packets, and F is the total number of data packets.

[0097] The device status abnormality detection formula is:

[0098] ,

[0099] Among them, I is the abnormality of the device state, L is the number of abnormal device states, and M is the total number of device states.

[0100] The comprehensive security threat assessment formula is:

[0101] ,

[0102] Among them, T is the comprehensive security threat level, is the weight between the abnormality of communication data and the abnormality of device status.

[0103] Among them, when the monitored device status is not in the normal area or the communication data is analyzed to have security threats using the security threat detection algorithm, the key dynamic update mechanism is triggered, the key update amount is calculated and the key is updated according to the key update formula, the encryption and authentication algorithms are reconfigured using the updated key, the security keys of the communicating parties are updated, and the new keys are used for encryption and authentication; when the monitored device status is in the normal area and the communication data is analyzed to have no security threats using the security threat detection algorithm, the current key continues to be used, and periodic updates and authentication are performed according to the original plan.

[0104] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

[0105] Example 2, reference Figure 2 , which is the second embodiment of the present invention, provides a system for implementing the Bluetooth communication reliability of an IoT electric energy meter, including a Bluetooth pairing and identity authentication module 100, a data transmission and encryption module 200, an error correction and data recovery module 300, a communication monitoring and intelligent prediction module 400, and an adaptive adjustment and key management module 500.

[0106] The Bluetooth pairing and identity authentication module 100 is used to establish a Bluetooth connection between the IoT electric energy meter and the Bluetooth communication device, and complete the identity authentication process by sending a pairing request, confirming the pairing information, and using a PIN code, a key, and an encryption method.

[0107] The data transmission and encryption module 200 is used to establish a connection using the TCP protocol, parse and extract data in JSON format, and encrypt data using the AES encryption algorithm.

[0108] The error correction and data recovery module 300 is used to reduce transmission errors and increase data transmission reliability by applying error correction and data recovery algorithms.

[0109] The communication monitoring and intelligent prediction module 400 is used to monitor the communication status, power meter operation data, network status, equipment performance and historical fault data in real time, and use the data to build an intelligent prediction model to predict the communication quality.

[0110] The adaptive adjustment and key management module 500 is used to dynamically adjust communication parameters through an adaptive adjustment algorithm, and to update encryption and authentication strategies when a security threat is detected using a key dynamic update mechanism to maintain communication security.

[0111] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

[0112] Embodiment 3, the third embodiment of the present invention, is different from the first two embodiments in that:

[0113] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0114] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0115] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0116] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0117] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0118] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0119] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A method for realizing Bluetooth communication reliability of IoT electric energy meter, characterized in that: include, The IoT energy meter and the Bluetooth communication device establish a connection through the Bluetooth pairing process, and use the key for identity authentication, determine the data format and transmission protocol for transmission, initialize data transmission, and perform data transmission to achieve communication; During data transmission, error correction and data recovery algorithms are used to reduce transmission errors, and data during communication is monitored in real time. Intelligent prediction models are established using the monitored data to predict communication quality. Evaluate whether the quality meets the requirements based on the predicted communication quality, and use the adaptive adjustment algorithm to adjust the communication parameters, monitor device parameters and security threats in real time, and trigger the key dynamic update mechanism to periodically update the encryption and authentication strategies based on the monitoring situation; The Bluetooth pairing process includes: the IoT energy meter and the Bluetooth communication device broadcast signals through Bluetooth to find the Bluetooth device; the IoT energy meter sends a pairing request to the Bluetooth communication device; the Bluetooth communication device accepts the pairing request; both parties confirm the pairing information and perform Bluetooth pairing; the pairing information includes the device name, device type, PIN code, key and encryption method; The communication implementation includes establishing a connection with a Bluetooth communication device using a TCP protocol, completing identity authentication, parsing data in a JSON format, extracting a device ID, power data, a timestamp, and a checksum field, verifying the checksum, encrypting the extracted data using an AES encryption algorithm, generating an encrypted data packet, sending the encrypted data packet to the Bluetooth communication device, and confirming that the data is successfully sent, the Bluetooth communication device receiving the data packet, parsing the received data packet, extracting the device ID, power data, a timestamp, and a checksum field, verifying the checksum, decrypting the extracted data using an AES decryption algorithm, generating decrypted data, and performing subsequent processing; The reducing transmission errors includes reducing transmission errors by using an error correction and data recovery algorithm during data transmission; The error correction and data recovery algorithm is expressed as: Where ΔA(s) is the reduction in data transmission errors at time s, n is the number of factors that affect data transmission errors, and A i (s') is the communication quality score of the i-th factor at time s', is the maximum communication quality score of the i-th factor, ∈ i (s') is the error probability of the i-th factor at time s', is the error function.

2. A method for realizing Bluetooth communication reliability of IoT electric energy meter according to claim 1, characterized in that: The data during the monitoring communication includes real-time monitoring communication status data, electric energy meter operation data, network status data, equipment performance data and historical fault data; The communication status data includes signal strength, signal interference and noise ratio, bit error rate, communication success rate and data transmission rate; the electric energy meter operation data includes electric energy meter reading, electric energy meter load condition, and electric energy meter working status; the network status data includes network congestion, network delay and network availability; the equipment performance data includes the hardware performance indicators of the electric energy meter, the power consumption and temperature of the Bluetooth module; the historical fault data includes historical communication fault records, maintenance and repair records; the hardware performance indicators of the electric energy meter include processor load, memory usage and storage space.

3. A method for realizing Bluetooth communication reliability of IoT electric energy meter according to claim 2, characterized in that: The intelligent prediction model includes building an intelligent prediction model using monitored communication data, and using the intelligent prediction model to predict communication quality; The formula for calculating the communication quality prediction value is: Where Q(t) is the predicted value of communication quality at time t, C is the normalization constant, t0 is the initial time, m is the number of factors affecting communication quality, and f j (θ j ,ω j ,t') is the signal strength function of the jth factor, θ j is the signal angle, ω j is the signal frequency, t' is the integral variable, g j (ζ j ,t') is the noise intensity function of the jth factor, ζ j is the noise parameter, h j (ν j ,t') is the communication quality impact function of the jth factor, ν j To influence the parameters; The f j (θ j ,ω j ,t') signal strength function is expressed as: Among them, f j (θ j ,ω j ,t') is the signal strength of the jth factor at time t', P j (t') is the signal power of the jth factor at time t', G j (θ j ) is the jth factor at angle θ j The antenna gain, φ j is the phase difference between the antenna of the jth factor and the signal direction, Δω j is the frequency deviation of the jth factor signal, ω j is the frequency of the jth factor signal; The g j (ζ j ,t') The noise intensity function is expressed as: Among them, g j (ζ j ,t') is the noise intensity of the jth factor at time t', N j (t') is the noise power of the jth factor at time t', H j (ζ j ) is the jth factor in the noise parameter ζ j The noise distribution function under j is the deviation between the signal frequency of the jth signal source and the ideal frequency, a j is the signal frequency of the jth signal source, ζ j is the noise parameter; The communication quality impact function is expressed as: Among them, h j (b j ,t') is the influence of the jth factor on the communication quality at time t', Q j (t') is the predicted value of the communication quality of the jth factor at time t', is the maximum communication quality prediction value of the jth factor, Δb j is the deviation between the communication quality score of the jth factor and the maximum communication quality score, b j Score the communication quality of the jth factor; Among them, when 0≤Q(t)<0.9, it means that the communication quality does not meet the communication requirements, triggering the adaptive adjustment algorithm to adjust the communication frequency, communication power and coding method, and recalculate the communication quality prediction value until the communication requirements are met; when 0.9≤Q(t)≤1, it means that the communication quality meets the communication requirements, and the current communication frequency, communication power and coding method are maintained.

4. A method for realizing Bluetooth communication reliability of IoT electric energy meter according to claim 3, characterized in that: The adaptive adjustment algorithm includes designing a communication parameter adaptive adjustment algorithm to dynamically adjust the communication frequency, communication power and encoding method according to communication requirements; Among them, the adjustment amount of the communication frequency is expressed as: Among them, Δp is the adjustment amount of the communication frequency, p max is the maximum value of the communication frequency, p min is the minimum value of the communication frequency, p new is the new communication frequency, p old is the old communication frequency, sign is the sign function; Among them, the adjustment amount of the communication power is expressed as: Among them, ΔK is the adjustment amount of communication power, K max is the maximum value of communication power, K min is the minimum value of communication power, K new is the new communication power, K old is the old communication power, sign is the sign function; The triggering mechanism for dynamic key update includes real-time monitoring of the parameters of the IoT electric energy meter and the Bluetooth communication device and abnormal behaviors during the communication process, setting the normal range of device parameters, analyzing the communication data using the security threat detection algorithm, and detecting potential security threats. When the device status monitoring and security threat detection results indicate that there are potential risks in the communication environment, the dynamic key update mechanism is triggered; The security threat detection algorithm includes communication data anomaly detection, device status anomaly detection and comprehensive security threat assessment; Among them, when the monitored device status is not in the normal area or the communication data is analyzed to have security threats using the security threat detection algorithm, the key dynamic update mechanism is triggered, the key update amount is calculated and the key is updated according to the key update formula, the encryption and authentication algorithms are reconfigured using the updated key, the security keys of the communicating parties are updated, and the new keys are used for encryption and authentication; when the monitored device status is in the normal area and the communication data is analyzed to have no security threats using the security threat detection algorithm, the current key continues to be used, and periodic updates and authentication are performed according to the original plan.

5. A system using a method for realizing Bluetooth communication reliability of an IoT electric energy meter as claimed in any one of claims 1 to 4, characterized in that: It includes Bluetooth pairing and identity authentication module, data transmission and encryption module, error correction and data recovery module, communication monitoring and intelligent prediction module, and adaptive adjustment and key management module; The Bluetooth pairing and identity authentication module is used to establish a Bluetooth connection between the IoT electric energy meter and the Bluetooth communication device, and complete the identity authentication process by sending a pairing request, confirming the pairing information, and using a key and encryption method; The data transmission and encryption module is used to establish a connection using a protocol, parse and extract data through a format, and encrypt the data using an encryption algorithm; The error correction and data recovery module is used to reduce transmission errors and increase data transmission reliability by applying error correction and data recovery algorithms; The communication monitoring and intelligent prediction module is used to monitor the communication status, power meter operation data, network status, equipment performance and historical fault data in real time, and use the data to build an intelligent prediction model to predict the communication quality; The adaptive adjustment and key management module is used to dynamically adjust communication parameters through an adaptive adjustment algorithm, and to update encryption and authentication strategies when a security threat is detected using a dynamic key update mechanism to maintain communication security.

6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Remote wireless communication method for mechanical protection device of one-stop internet-of-things fire-fighting cabinet

    CN117676501A

  • Audio information encryption method based on le-audio Bluetooth

    CN118301602A