An electric energy meter with CAN communication and Bluetooth communication functions and communication method
By adopting CAN and Bluetooth communication modules in smart meters and combining the optimization strategy of communication planning modules, the data security and communication efficiency problems of smart meters in special scenarios are solved, and more stable and reliable communication is achieved, suitable for industrial use. environment.
Patent Information
- Application Number
- CN202410961465.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-07-18
AI Technical Summary
Smart meters have data security problems and poor communication effects in special application scenarios, especially in industrial environments, signal attenuation and network congestion caused by multi-node connections.
The power meter that uses CAN communication and Bluetooth communication functions to obtain the status data of each communication module through the communication planning module, determine the remote transmission capability and stable channel, divide the master-slave relationship, and optimize the communication strategy to improve stability and reliability.
It improves the communication stability and reliability of the power meter, reduces the communication error and failure rate, adapts to different communication needs, and enhances the security and efficiency of data transmission.
Smart Images

Figure CN118506558B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric power equipment, and in particular to an electric energy meter with CAN communication and Bluetooth communication functions and a communication method. Background Art
[0002] Smart meters are power measurement devices that integrate advanced power metering technology and communication functions, and can monitor, record and transmit power usage information in real time. By connecting to the smart grid, smart meters can realize functions such as remote meter reading, remote control and data transmission.
[0003] Smart meters are usually equipped with multiple communication modules to adapt to different communication scenarios. Currently, the most commonly used solutions are RS485 communication modules and 4G / 5G communication modules. However, in some special application scenarios, the above-mentioned smart meters may have data security issues and poor communication effects. Summary of the invention
[0004] The embodiment of the present application provides an electric energy meter and a communication method with CAN communication and Bluetooth communication functions. The present application adopts the following technical solutions:
[0005] In a first aspect, an electric energy meter with CAN communication and Bluetooth communication functions is provided, the electric energy meter is communicatively connected with a network device, and the electric energy meter includes a CAN communication module, a Bluetooth communication module, and a communication planning module;
[0006] The communication planning module is used to obtain the average transmission power of the CAN communication module within at least one communication cycle, and determine the remote transmission capability of the CAN communication module according to the average transmission power;
[0007] The communication planning module is also used to obtain communication data of at least one communication cycle of the Bluetooth communication module, and determine a stable Bluetooth channel of the Bluetooth communication module according to the communication data;
[0008] The communication planning module is also used to send identification information corresponding to the remote transmission capability, identification information corresponding to the stable Bluetooth channel, and a device matching code to the network device, and receive the communication strategy issued by the network device;
[0009] The communication planning module is also used to send power monitoring data according to the communication strategy.
[0010] In a possible implementation, the network device is configured as follows:
[0011] Receive remote transmission capability identification information and stable Bluetooth channel identification information uploaded by multiple electric energy meters;
[0012] The plurality of electric energy meters are divided according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters;
[0013] Send the device matching code of the master electric energy meter to the slave electric energy meter, and generate a communication strategy between the master electric energy meter and the slave electric energy meter;
[0014] The corresponding communication strategy is sent to the master power meter and the slave power meter.
[0015] In a possible implementation, the electric energy meters are divided according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters, including:
[0016] Determine the number of communication groups, and determine the host power meter that matches the number of communication groups according to the relationship between the average transmission power and the threshold, and determine the stable Bluetooth channel corresponding to the host power meter as the corresponding;
[0017] According to the relationship between the average transmission power and the threshold value, and the stable Bluetooth channel, the slave power meter corresponding to each host power meter is determined.
[0018] In a possible implementation, each communication group corresponds to a different stable Bluetooth channel.
[0019] In a possible implementation, according to the communication strategy, sending the electric energy monitoring data includes:
[0020] In the case where the electric energy meter is a slave electric energy meter, integrating the electric energy monitoring data and the host device matching code to generate a first electric energy monitoring data packet;
[0021] The first electric energy monitoring data packet is sent to the host electric energy meter through the Bluetooth communication module and the stable Bluetooth channel.
[0022] In a possible implementation manner, according to the communication strategy, sending the electric energy monitoring data further includes:
[0023] In the case where the electric energy meter is a master electric energy meter, a first electric energy monitoring data packet sent by a target slave electric energy meter is screened out through a device matching code, and the target slave electric energy meter and the master electric energy meter belong to the same communication group;
[0024] Integrate the first power monitoring data packet sent by the target slave power meter and the local power monitoring data to generate a second power monitoring data packet;
[0025] The second electric energy monitoring data packet is sent to the network device through the CAN communication module.
[0026] In a possible implementation, sending the integrated electric energy data to the network device through the CAN communication module includes:
[0027] Obtaining the importance level of the communication group sent by the network device, and determining the communication power correction parameter according to the importance level;
[0028] The real-time communication power of the CAN communication module is dynamically corrected according to the communication power correction parameters.
[0029] In a second aspect, the present application provides a communication method, the method comprising:
[0030] Obtaining an average transmission power of the CAN communication module within at least one communication cycle, and determining the remote transmission capability of the CAN communication module according to the average transmission power;
[0031] Acquire communication data of at least one communication cycle of the Bluetooth communication module, and determine a stable Bluetooth channel of the Bluetooth communication module according to the communication data;
[0032] Send identification information corresponding to the remote transmission capability, identification information corresponding to the stable Bluetooth channel, and a device matching code to the network device, and receive a communication strategy issued by the network device;
[0033] Send power monitoring data according to the communication strategy.
[0034] In a possible implementation, the method further includes:
[0035] Receive remote transmission capability identification information and stable Bluetooth channel identification information uploaded by multiple electric energy meters;
[0036] The plurality of electric energy meters are divided according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters;
[0037] Send the device matching code of the master electric energy meter to the slave electric energy meter, and generate a communication strategy between the master electric energy meter and the slave electric energy meter;
[0038] The corresponding communication strategy is sent to the master power meter and the slave power meter.
[0039] In a possible implementation, the electric energy meters are divided according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters, including:
[0040] Determine the number of communication groups, and determine the host power meter that matches the number of communication groups based on the relationship between the average transmission power and the threshold;
[0041] According to the relationship between the average transmission power and the threshold value, and the stable Bluetooth channel, the slave power meter corresponding to each host power meter is determined.
[0042] In a possible implementation, each communication group corresponds to a different stable Bluetooth channel.
[0043] In a possible implementation, according to the communication strategy, sending the electric energy monitoring data includes:
[0044] In the case where the electric energy meter is a slave electric energy meter, integrating the electric energy monitoring data and the host device matching code to generate a first electric energy monitoring data packet;
[0045] The first electric energy monitoring data packet is sent to the host electric energy meter through the Bluetooth communication module and the stable Bluetooth channel.
[0046] In a possible implementation manner, according to the communication strategy, sending the electric energy monitoring data further includes:
[0047] In the case where the electric energy meter is a host electric energy meter, a first electric energy monitoring data packet sent by a target slave electric energy meter is screened out through a device matching code, and the target slave electric energy meter and the host electric energy meter belong to the same communication group;
[0048] Integrate the first power monitoring data packet sent by the target slave power meter and the local power monitoring data to generate a second power monitoring data packet;
[0049] The second electric energy monitoring data packet is sent to the network device through the CAN communication module.
[0050] In a possible implementation, sending the integrated electric energy data to the network device through the CAN communication module includes:
[0051] Obtaining the importance level of the communication group sent by the network device, and determining the communication power correction parameter according to the importance level;
[0052] The real-time communication power of the CAN communication module is dynamically corrected according to the communication power correction parameters.
[0053] The electric energy meter with CAN communication and Bluetooth communication functions provided by the present application, first, the communication planning module can monitor and analyze the communication status of the CAN communication module and the Bluetooth communication module. By obtaining the average transmission power of the CAN communication module in at least one communication cycle, and the communication data of the Bluetooth communication module in at least one communication cycle, the communication planning module can understand the communication capability and stability of the electric energy meter. Secondly, the communication planning module can dynamically determine the remote transmission capability of the CAN communication module and the stable channel of the Bluetooth communication module according to the acquired data. This means that the communication planning module can accurately adjust the communication parameters according to the actual communication situation to ensure the stability and reliability of the communication. Finally, the communication planning module is also responsible for communicating with the network device and transmitting data according to the communication strategy. It sends the identification information corresponding to the remote transmission capability, the identification information corresponding to the stable Bluetooth channel, and the device matching code to the network device, and receives the communication strategy issued by the network device. Through interaction with the network device, the communication planning module can adjust and optimize the communication parameters according to the real-time situation to meet different communication needs.
[0054] The electric energy meter with CAN communication and Bluetooth communication functions provided in the present application also establishes a master-slave relationship by dividing the electric energy meters, so that the host electric energy meter is responsible for controlling and managing the entire system, and the slave electric energy meter is responsible for executing instructions and uploading data. This division of labor can improve the stability and reliability of the system and reduce the occurrence rate of communication errors and failures. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A schematic diagram of the structure of an electric energy meter with CAN communication and Bluetooth communication functions provided in an embodiment of the present application;
[0056] Figure 2 A schematic diagram of the steps of a communication method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0058] It should be noted that the current electric energy meter uses the RS485 communication module and 4G / 5G communication module to complete the transmission of electric energy data. The RS485 communication module is used for data transmission within the local area network. Through a wired connection, the electric energy meter is connected to the monitoring equipment or data acquisition system in the local area network to achieve real-time monitoring and transmission of electric energy data. The 4G / 5G communication module transmits electric energy data to a remote server or cloud platform through a wireless network to achieve remote monitoring and management. This solution combines wired and wireless communication technologies, which ensures both the stability and reliability of data transmission.
[0059] However, in industrial application scenarios and scenarios with high data security, due to the large number of large devices in the industrial environment, in order to monitor the energy consumption status of each device, more electric energy meters are set up in an area, that is, there are multiple nodes. When the electric energy meter uses the RS485 communication module to communicate, when multiple nodes are connected to the RS-485 bus, each node will increase the load of the bus. When the number of nodes increases, the load on the bus will also increase, resulting in signal attenuation and a decrease in transmission rate. This will lead to a decrease in communication rate or an increase in communication errors, causing data security issues. When the electric energy meter uses a 4G / 5G communication module, all electric energy meters in the area may interact with the base station equipment, so network congestion may occur, resulting in slower data transmission speeds, unstable connections, and other problems. In addition, in scenarios with complex environments such as industry, the signal may be restricted or attenuated, resulting in insufficient signal coverage or poor signal quality, and is limited by cost.
[0060] Based on this, the inventor proposed the invention concept of this application: adjust the communication module of the traditional electric energy meter and
[0061] The electric energy meters in the area are evaluated and the corresponding communication strategy is selected according to the evaluation results.
[0062] The embodiment of the present application provides an electric energy meter with CAN communication and Bluetooth communication functions, including a CAN communication module, a Bluetooth communication module, and a communication planning module, and the electric energy meter is connected to a network device for communication. Each electric energy meter has the ability to communicate with a network device, but if each electric energy meter communicates with a network device, it will inevitably cause network congestion, so it is necessary to evaluate the electric energy meter and select a corresponding communication strategy based on the evaluation result.
[0063] The communication planning module obtains the average transmission power of the CAN communication module within at least one communication cycle, and determines the remote transmission capability of the CAN communication module according to the average transmission power.
[0064] In this embodiment, the CAN communication module generates a certain transmission power when sending a message. By measuring the average transmission power, the transmission capability of the CAN communication module can be evaluated to determine its performance in remote transmission. The higher the average transmission power, the better the remote transmission capability of the module, which can stably transmit data over a long distance. By understanding the transmission capability of the CAN communication module, the communication planning module can plan and layout the communication network according to actual conditions. For example, in a scenario where long-distance communication is required, a CAN communication module with a higher average transmission power can be preferred to ensure stable remote transmission. For example, suppose there are two CAN communication modules A and B, and their average transmission powers are 10 dBm and 5 dBm, respectively. Remote transmission capability estimated based on average transmission power. Generally speaking, the transmission distance will approximately double for every 3 dBm increase in transmission power. This is due to the attenuation law of wireless signals during propagation.
[0065] Therefore, in this example, the transmission distance of CAN communication module A can be twice that of CAN communication module B. That is, CAN communication module B can stably transmit data within a range of 100 meters, then CAN communication module A may be able to reach a transmission distance of about 200 meters.
[0066] The communication planning module is also used to obtain communication data of at least one communication cycle of the Bluetooth communication module, and determine a stable Bluetooth channel of the Bluetooth communication module according to the communication data.
[0067] In this embodiment, the communication planning module obtains the communication data of the Bluetooth communication module in at least one communication cycle. The communication planning module analyzes the acquired communication data, mainly including detecting the usage of the Bluetooth channel, signal strength, data transmission rate and other information. By analyzing these data, the load and stability of the current Bluetooth channel can be understood. According to the analysis results of the communication data, the communication planning module determines the stable Bluetooth channel of the Bluetooth communication module. A stable Bluetooth channel refers to a Bluetooth channel with low load, less interference and better signal quality in the current environment. For example, the load of the Bluetooth channel used by the Bluetooth communication module is analyzed, that is, the communication frequency and duration on different channels; the signal strength of the channel, that is, the signal strength of the device on a specific channel; and the degree of interference between devices. If it is found that the load on a certain Bluetooth channel is low, the signal strength is good and the interference is less, then the channel can be selected as a stable Bluetooth channel.
[0068] By selecting a stable Bluetooth channel, the stability and reliability of communication can be improved, and the possibility of data transmission interruption and loss can be reduced. Determining a stable Bluetooth channel can improve the stability and reliability of communication, reduce communication interruption and loss, and thus optimize communication performance. And selecting a stable Bluetooth channel can reduce the impact of external interference and ensure communication quality.
[0069] The communication planning module is also used to send identification information corresponding to the remote transmission capability, identification information corresponding to the stable Bluetooth channel, and the device matching code to the network device, and receive the communication strategy issued by the network device.
[0070] In this embodiment, after each electric energy meter determines its remote transmission capability and Bluetooth channel, it sends the device matching code to the network device. The device matching code is a unique code randomly generated by the electric energy meter for identifying and verifying the identity of the device. After receiving the device matching code sent by the electric energy meter, the network device will verify it and record it in the device management system.
[0071] In a feasible implementation manner, the network device is configured as follows:
[0072] Receive remote transmission capability identification information and stable Bluetooth channel identification information uploaded by multiple electric energy meters;
[0073] The plurality of electric energy meters are divided according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters;
[0074] Send the device matching code of the master electric energy meter to the slave electric energy meter, and generate a communication strategy between the master electric energy meter and the slave electric energy meter;
[0075] The corresponding communication strategy is sent to the master power meter and the slave power meter.
[0076] In this implementation, if each electric energy meter communicates with the network device, the communication between all electric energy meters may be chaotic and conflicting, affecting the accuracy and timeliness of the data. By dividing the electric energy meters, they can be divided into host electric energy meters and slave electric energy meters, thereby establishing a unified communication management mechanism to organize and manage communications more effectively.
[0077] The master energy meter is the energy meter that plays a leading role in the system. It has stronger processing and communication capabilities and is responsible for the control and management of the entire system. The master energy meter is usually responsible for collecting, processing and storing data uploaded by other slave energy meters, and is also responsible for communicating with external systems or platforms. The master energy meter will be responsible for receiving data uploaded by multiple slave energy meters, and performing data processing and analysis. The slave energy meter is the energy meter that plays an auxiliary role in the system. It usually has weaker processing and communication capabilities and is mainly responsible for collecting and uploading energy data to the master energy meter.
[0078] The slave energy meter usually works according to the instructions of the master energy meter, uploads the energy data collected by itself, and receives the instructions or control signals sent by the master energy meter. The slave energy meter can be responsible for real-time monitoring of energy usage and transmitting data to the master energy meter, and performing corresponding operations or adjustments according to the instructions of the master energy meter. A master-slave relationship is formed between the master energy meter and the slave energy meter. The host is responsible for controlling and managing the entire system, while the slave is responsible for collecting data and assisting the host to complete the corresponding tasks. This division of labor can effectively improve the efficiency and stability of the system, making the system more flexible and efficient in data acquisition, processing and communication.
[0079] By dividing the energy meters, a master-slave relationship can be established, so that the master energy meter is responsible for controlling and managing the entire system, and the slave energy meter is responsible for executing instructions and uploading data. This division of labor can improve the stability and reliability of the system and reduce the occurrence of communication errors and failures.
[0080] In a feasible implementation, the electric energy meters are divided according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters, including:
[0081] Determine the number of communication groups, and determine the host power meter that matches the number of communication groups according to the relationship between the average transmission power and the threshold, and determine the stable Bluetooth channel corresponding to the host power meter as the corresponding;
[0082] According to the relationship between the average transmission power and the threshold value, and the stable Bluetooth channel, the slave power meter corresponding to each host power meter is determined.
[0083] In this embodiment, a communication group refers to a group of devices that can communicate stably in a Bluetooth network. The number of communication groups can be set according to actual conditions. A communication group is a set of devices that can communicate stably in a Bluetooth network, and they share the same communication channel and protocol. In some cases, multiple communication groups may be required to manage a large number of electric energy meters or more complex communication needs. For example, if the number of electric energy meters to be managed is very large, and a single communication group cannot meet the communication needs of all devices, it can be considered to divide the electric energy meters into multiple communication groups to reduce communication conflicts and interference. If it is necessary to cover multiple geographical areas or different application scenarios, different communication groups can be divided according to the characteristics of the area or scenario to better manage and monitor the electric energy meters. Different electric energy meters may have different communication requirements. For example, some electric energy meters may need real-time monitoring and control, while others only need to report data regularly. According to these different requirements, the electric energy meters can be divided into different communication groups to achieve more flexible communication management. Therefore, the number of communication groups can be adjusted and set according to the specific situation to meet the communication needs of the system and ensure the stability and efficiency of communication.
[0084] After determining the number of communication groups, the host power meters that match the number of communications can be screened out. By comparing the average transmission power of each power meter with the threshold, the power meter with a power greater than the threshold is determined as the host power meter, and the power meter with a power less than or equal to the threshold is determined as the slave power meter. It should be noted that the number of host power meters matches the number of communication groups.
[0085] In Bluetooth communication, if multiple devices communicate simultaneously on the same frequency band, channel interference may occur, resulting in reduced communication quality or even communication failure. In order to reduce the impact of channel interference, different devices are assigned to different channels for communication. This allows each communication group to communicate on a different channel, thereby avoiding mutual interference and collision, and improving the stability and reliability of communication.
[0086] In addition, different communication groups may be in different environments or different application scenarios, and their communication needs and interference environments may also be different. Therefore, by assigning each communication group to a different stable Bluetooth channel, the communication needs of each group can be better met and the impact of channel interference can be minimized. Therefore, each communication group corresponds to a different stable Bluetooth channel.
[0087] After determining the host power meter, it is necessary to divide the other slave power meters into the corresponding communication groups, and determine the number of slave power meters corresponding to each host power meter based on the relationship between the average transmission power and the threshold. Generally, fewer slave power meters can be allocated to host power meters with smaller ratios, and more slave power meters can be allocated to host power meters with larger ratios to achieve load balancing and optimize communication efficiency. The determined slave power meters are allocated to each host power meter to ensure that each host power meter has a sufficient number of slave power meters to support its communication needs, and the stable Bluetooth channels supported by each slave power meter must at least include the stable Bluetooth channels of the communication group to which it belongs.
[0088] The communication strategies adopted by the master power meter and the slave power meter are different, so the network device will send different communication strategies to the corresponding devices, and send the device identification of the master power meter to the slave power meters in the same communication group. For example, the master power meter broadcasts its own device identification in the communication group so that the slave power meter can recognize and communicate with it.
[0089] By making the master energy meter and the slave energy meter work together in the same communication group, corresponding communication strategies are implemented according to their respective roles and tasks, so as to achieve efficient transmission and management of energy data. At the same time, by sending the device identification identifier, it can be ensured that the slave energy meter can accurately identify the master energy meter and communicate with it, so as to achieve stable operation of the entire communication system.
[0090] In a feasible implementation manner, according to the communication strategy, sending the electric energy monitoring data includes:
[0091] In the case where the electric energy meter is a slave electric energy meter, the electric energy monitoring data and the host device matching code are integrated to generate a first electric energy monitoring data packet, and the first electric energy monitoring data packet is sent to the host electric energy meter through the Bluetooth communication module and the stable Bluetooth channel.
[0092] After receiving the communication strategy, different electric energy meters need to implement different data sending strategies. For the slave electric energy meter, after receiving the communication strategy and the device matching code of the host device, it needs to send the electric energy monitoring data to the host device. The electric energy monitoring data is the electric energy usage data measured by the electric energy meter, including information such as electricity and power. In order to ensure the security and accuracy of the data, the electric energy monitoring data and the host device matching code (which can be an encryption key or identifier) are integrated together. The purpose of this is to ensure that the data can only be received and parsed by the correct host device, and to prevent the data from being accessed or tampered with by unauthorized devices. After integrating the electric energy monitoring data and the host device matching code, a first electric energy monitoring data packet is generated, which contains the electric energy monitoring data to be transmitted and the matching code for identifying the host device. Through the Bluetooth communication module, the slave electric energy meter can establish a stable Bluetooth connection with the host electric energy meter, and send the first electric energy monitoring data packet to the host electric energy meter through a stable Bluetooth channel.
[0093] In a feasible implementation manner, according to the communication strategy, sending the electric energy monitoring data further includes:
[0094] In the case where the electric energy meter is a host electric energy meter, a first electric energy monitoring data packet sent by a target slave electric energy meter is screened out through a device matching code, and the target slave electric energy meter and the host electric energy meter belong to the same communication group;
[0095] Integrate the first power monitoring data packet sent by the target slave power meter and the local power monitoring data to generate a second power monitoring data packet;
[0096] The second electric energy monitoring data packet is sent to the network device through the CAN communication module.
[0097] For the host electric energy meter, since the slave electric energy meter may receive the first electric energy monitoring data packet sent by the slave electric energy meter of other communication groups, it is necessary to filter it out to filter out the target slave electric energy meter. In order to ensure that the electric energy monitoring data of the target slave electric energy meter is correctly obtained, it is necessary to filter out the first electric energy monitoring data packet sent by the target slave electric energy meter through the device matching code. The device matching code can be a unique identification code used to identify each slave electric energy meter. Once the first electric energy monitoring data packet sent by the target slave electric energy meter is determined, the host electric energy meter needs to integrate the data with the local electric energy monitoring data to generate a second electric energy monitoring data packet. The purpose of this is to integrate the data from different electric energy meters together to provide more comprehensive information for subsequent data processing and analysis. Finally, the generated second electric energy monitoring data packet is sent to the network device through the CAN communication module.
[0098] The first power monitoring data packet is sent to the host power meter via the Bluetooth communication module. This method is applicable to the case where the power meter is used as a slave power meter and the host power meter is used as a data receiving end. The Bluetooth communication module can realize short-range wireless data transmission, which is convenient for the host power meter to receive the power monitoring data of the slave power meter.
[0099] The second power monitoring data packet is sent to the network device through the CAN communication module. This method is suitable for the case where the power meter is used as the host power meter, and the data of the slave power meter needs to be integrated and sent to the network device for remote monitoring and management. The use of the CAN communication module can achieve stable and reliable data transmission, which is suitable for long-distance or multi-node communication scenarios.
[0100] Comprehensive analysis shows that the communication strategies used in these two situations can be flexibly selected according to the role and application scenario of the energy meter to achieve accurate data transmission and efficient management. Bluetooth communication is suitable for short-distance data transmission, suitable for sending data from the mechanical energy meter to the host energy meter; while CAN communication is suitable for long-distance or multi-node communication, suitable for the host energy meter to send the integrated data to the network device for remote monitoring and management.
[0101] In a feasible implementation, the integrated electric energy data is sent to the network device via the CAN communication module, including:
[0102] Obtaining the importance level of the communication group sent by the network device, and determining the communication power correction parameter according to the importance level;
[0103] The real-time communication power of the CAN communication module is dynamically corrected according to the communication power correction parameters.
[0104] In this embodiment, since the importance of the electric energy monitoring data collected by the electric energy meter in different communication groups is different, when different communication groups have communication tasks, there may be different importance and priority. By dynamically adjusting the communication power according to the importance level of the communication task, the system can better optimize the network resources, ensure the smooth progress of important communication tasks, and improve the overall network performance. It is necessary to obtain the importance level of the communication group issued by the network device. This can be achieved through a communication protocol or other information exchange methods to determine the priority and importance of the communication. According to the acquired importance level of the communication group, the system can pre-define a set of communication power correction parameters corresponding to the level. These parameters may include communication power gain, attenuation coefficient, etc., which are used to adjust the real-time communication power of the CAN communication module. Once the communication power correction parameters are determined, the system can dynamically correct the real-time communication power of the CAN communication module according to these parameters. This can be achieved by adjusting the transmission level or adjusting the transmission interval, etc., to ensure the stability and reliability of communication. Obtaining the importance level of the communication group issued by the network device and determining the communication power correction parameters according to the level can dynamically adjust the communication power according to different communication environments and importance levels, so that the communication power is more suitable and optimized, and the stability and reliability of communication are improved.
[0105] By dynamically correcting the real-time communication power of the CAN communication module, energy waste or reduced communication quality caused by excessive or low communication power can be avoided, thereby achieving the purpose of energy saving and consumption reduction and extending the service life of the equipment. Since the communication power correction parameter is determined based on the importance level of the communication group issued by the network device, it can be adjusted according to different communication environments and needs, and has strong adaptability and flexibility. In summary, by dynamically adjusting the communication power, the communication system can be more adaptable to different communication environments and needs, improve the efficiency and reliability of communication, and achieve the purpose of energy saving and consumption reduction.
[0106] The electric energy meter with CAN communication and Bluetooth communication functions provided by the present application, first, the communication planning module can monitor and analyze the communication status of the CAN communication module and the Bluetooth communication module. By obtaining the average transmission power of the CAN communication module in at least one communication cycle, and the communication data of the Bluetooth communication module in at least one communication cycle, the communication planning module can understand the communication capability and stability of the electric energy meter. Secondly, the communication planning module can dynamically determine the remote transmission capability of the CAN communication module and the stable channel of the Bluetooth communication module according to the acquired data. This means that the communication planning module can accurately adjust the communication parameters according to the actual communication situation to ensure the stability and reliability of the communication. Finally, the communication planning module is also responsible for communicating with the network device and transmitting data according to the communication strategy. It sends the identification information corresponding to the remote transmission capability, the identification information corresponding to the stable Bluetooth channel, and the device matching code to the network device, and receives the communication strategy issued by the network device. Through interaction with the network device, the communication planning module can adjust and optimize the communication parameters according to the real-time situation to meet different communication needs.
[0107] The electric energy meter with CAN communication and Bluetooth communication functions provided in the present application also establishes a master-slave relationship by dividing the electric energy meters, so that the host electric energy meter is responsible for controlling and managing the entire system, and the slave electric energy meter is responsible for executing instructions and uploading data. This division of labor can improve the stability and reliability of the system and reduce the occurrence rate of communication errors and failures.
[0108] Based on the same inventive concept, Figure 2 , shows a communication method provided by an embodiment of the present application, which is applied to the electric energy meter with CAN communication and Bluetooth communication functions proposed in the first aspect of the present application. The communication method may include the following steps:
[0109] S201: Acquire an average transmission power of the CAN communication module in at least one communication cycle, and determine a remote transmission capability of the CAN communication module according to the average transmission power;
[0110] S202: Acquire communication data of at least one communication cycle of the Bluetooth communication module, and determine a stable Bluetooth channel of the Bluetooth communication module according to the communication data;
[0111] S203: Sending identification information corresponding to the remote transmission capability, identification information corresponding to the stable Bluetooth channel, and a device matching code to the network device, and receiving a communication strategy issued by the network device;
[0112] S204: Sending power monitoring data according to the communication strategy.
[0113] In a possible implementation, the method further includes:
[0114] Receive remote transmission capability identification information and stable Bluetooth channel identification information uploaded by multiple electric energy meters;
[0115] The plurality of electric energy meters are divided according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters;
[0116] Send the device matching code of the master electric energy meter to the slave electric energy meter, and generate a communication strategy between the master electric energy meter and the slave electric energy meter;
[0117] The corresponding communication strategy is sent to the master power meter and the slave power meter.
[0118] In a possible implementation, the electric energy meters are divided according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters, including:
[0119] Determine the number of communication groups, and determine the host power meter that matches the number of communication groups based on the relationship between the average transmission power and the threshold;
[0120] According to the relationship between the average transmission power and the threshold value, and the stable Bluetooth channel, the slave power meter corresponding to each host power meter is determined.
[0121] In a possible implementation, each communication group corresponds to a different stable Bluetooth channel.
[0122] In a possible implementation, according to the communication strategy, sending the electric energy monitoring data includes:
[0123] In the case where the electric energy meter is a slave electric energy meter, integrating the electric energy monitoring data and the host device matching code to generate a first electric energy monitoring data packet;
[0124] The first electric energy monitoring data packet is sent to the host electric energy meter through the Bluetooth communication module and the stable Bluetooth channel.
[0125] In a possible implementation manner, according to the communication strategy, sending the electric energy monitoring data further includes:
[0126] In the case where the electric energy meter is a host electric energy meter, a first electric energy monitoring data packet sent by a target slave electric energy meter is screened out through a device matching code, and the target slave electric energy meter and the host electric energy meter belong to the same communication group;
[0127] Integrate the first power monitoring data packet sent by the target slave power meter and the local power monitoring data to generate a second power monitoring data packet;
[0128] The second electric energy monitoring data packet is sent to the network device through the CAN communication module.
[0129] In a possible implementation, sending the integrated electric energy data to the network device through the CAN communication module includes:
[0130] Obtaining the importance level of the communication group sent by the network device, and determining the communication power correction parameter according to the importance level;
[0131] The real-time communication power of the CAN communication module is dynamically corrected according to the communication power correction parameters.
[0132] It should be noted that the specific implementation of the communication method in the embodiment of the present application refers to the specific implementation of the electric energy meter with CAN communication and Bluetooth communication functions proposed in the first aspect of the embodiment of the present application, and will not be repeated here.
[0133] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When a computer instruction or computer program is loaded or executed on a computer, a process or function according to an embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable system. The computer program or instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instruction can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0134] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0135] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0136] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0137] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0139] In the several embodiments provided in the present application, it should be understood that the disclosed systems, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the system or unit can be electrical, mechanical or other forms.
[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0141] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0142] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, 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 a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0143] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An electric energy meter with CAN communication and Bluetooth communication functions, characterized in that: The electric energy meter is communicatively connected with the network device, and the electric energy meter includes a CAN communication module, a Bluetooth communication module, and a communication planning module; The communication planning module is used to obtain the average transmission power of the CAN communication module in at least one communication cycle, and determine the remote transmission capability of the CAN communication module according to the average transmission power; The communication planning module is further used to obtain communication data of at least one communication cycle of the Bluetooth communication module, and determine a stable Bluetooth channel of the Bluetooth communication module according to the communication data; The communication planning module is further used to send the identification information corresponding to the remote transmission capability, the identification information corresponding to the stable Bluetooth channel, and the device matching code to the network device, and receive the communication strategy issued by the network device; The communication planning module is also used to send power monitoring data according to the communication strategy; The network device is configured as follows: receiving the remote transmission capability identification information and the stable Bluetooth channel identification information uploaded by the plurality of electric energy meters; Dividing the plurality of electric energy meters according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters; Sending the device matching code of the master electric energy meter to the slave electric energy meter, and generating a communication strategy between the master electric energy meter and the slave electric energy meter; Sending the corresponding communication strategy to the master electric energy meter and the slave electric energy meter; The sending of electric energy monitoring data according to the communication strategy includes: In the case where the electric energy meter is the slave electric energy meter, integrating the electric energy monitoring data and the device matching code of the master electric energy meter to generate a first electric energy monitoring data packet; Sending the first power monitoring data packet to the host power meter through the Bluetooth communication module and the stable Bluetooth channel; The sending of electric energy monitoring data according to the communication strategy further comprises: In the case where the electric energy meter is the host electric energy meter, a first electric energy monitoring data packet sent by a target slave electric energy meter is filtered out through a device matching code, and the target slave electric energy meter and the host electric energy meter belong to the same communication group; Integrate the first power monitoring data packet sent by the target slave power meter and the local power monitoring data to generate a second power monitoring data packet; The second electric energy monitoring data packet is sent to the network device through the CAN communication module.
2. The electric energy meter with CAN communication and Bluetooth communication functions according to claim 1, characterized in that: The dividing the electric energy meter according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters includes: Determine the number of communication groups, and determine the host power meter that matches the number of communication groups according to the relationship between the average transmission power and the threshold, and determine the stable Bluetooth channel corresponding to the host power meter as the stable Bluetooth channel of the communication group; According to the relationship between the average transmission power and the threshold, and the stable Bluetooth channel, a slave power meter corresponding to each of the host power meters is determined.
3. The electric energy meter with CAN communication and Bluetooth communication functions according to claim 2, characterized in that: Each communication group corresponds to a different stable Bluetooth channel.
4. The electric energy meter with CAN communication and Bluetooth communication functions according to claim 1, characterized in that: The sending of the second electric energy monitoring data packet to the network device through the CAN communication module includes: Obtaining the importance level of the communication group sent by the network device, and determining a communication power correction parameter according to the importance level; The real-time communication power of the CAN communication module is dynamically corrected according to the communication power correction parameter.
5. A communication method, characterized in that: Applied to the electric energy meter with CAN communication and Bluetooth communication functions as described in any one of claims 1 to 4, the method comprises: Acquire an average transmission power of the CAN communication module in at least one communication cycle, and determine the remote transmission capability of the CAN communication module according to the average transmission power; Acquire communication data of at least one communication cycle of the Bluetooth communication module, and determine a stable Bluetooth channel of the Bluetooth communication module according to the communication data; Sending identification information corresponding to the remote transmission capability, identification information corresponding to the stable Bluetooth channel, and a device matching code to a network device, and receiving a communication strategy issued by the network device; According to the communication strategy, the electric energy monitoring data is sent.
6. The method according to claim 5, characterized in that The method further comprises: receiving the remote transmission capability identification information and the stable Bluetooth channel identification information uploaded by the plurality of electric energy meters; Dividing the plurality of electric energy meters according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters; Sending the device matching code of the master electric energy meter to the slave electric energy meter, and generating a communication strategy between the master electric energy meter and the slave electric energy meter; The corresponding communication strategy is sent to the master electric energy meter and the slave electric energy meter.
7. The method according to claim 6, characterized in that The dividing the electric energy meter according to the remote transmission capability and the stable Bluetooth channel to obtain a host electric energy meter and a corresponding plurality of slave electric energy meters includes: Determine the number of communication groups, and determine the host power meter that matches the number of communication groups according to the relationship between the average transmission power and the threshold; According to the relationship between the average transmission power and the threshold, and the stable Bluetooth channel, a slave power meter corresponding to each of the host power meters is determined.
Citation Information
Patent Citations
Water meter data acquisition method based on Bluetooth networking
CN112911557A
Combination structure of Bluetooth primary electricity meter and Bluetooth secondary electricity meter and networking management method
CN116405920A
