Firmware upgrade method, device, equipment and storage medium for smart meter
By optimizing the data transmission plan and upgrade strategy, the problem of upgrade failure of smart meters in poor network environments is solved, the efficiency and stability of firmware upgrades are improved, and efficient upgrades of smart meters are ensured.
Patent Information
- Application Number
- CN202410766132.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-14
AI Technical Summary
When the network environment is complex or unstable, data transmission failures and upgrade delays are prone to occur during the smart meter firmware upgrade process, affecting overall efficiency.
By obtaining the firmware information of the smart meter and the database of the background upgrade service system, the network connection quality is verified, and the upgrade data packet is updated according to the optimized data transmission plan and upgrade information, and the transmission rate and retransmission strategy are dynamically adjusted to ensure that the data packet is The optimal time is sent to the smart meter for upgrade.
It improves the efficiency and stability of smart meter firmware upgrades, reduces upgrade failures caused by network fluctuations, and ensures the continuity and success rate of the upgrade process under poor network conditions.
Smart Images

Figure CN118368194B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart grids, and in particular to a firmware upgrade method, device, equipment and storage medium for a smart meter. Background Art
[0002] With the development of smart grid technology, smart meters, as an important component, play a key role in achieving effective management and control of energy consumption. Smart meters can not only provide real-time energy consumption data, but also support parameter configuration and firmware upgrades through remote communication technology, thereby improving the flexibility and efficiency of grid operations. However, with the continuous advancement of technology and the increase in security requirements, the firmware of smart meters needs to be updated regularly to maintain security.
[0003] In related technical means, a centralized backend service system is used for firmware upgrades. This centralized system usually relies on a unified data transmission plan to distribute firmware update packages to all connected smart meters. The advantage of this method is that it can uniformly manage and control the firmware version, ensuring that all devices can obtain the latest updates in a timely manner.
[0004] Regarding the above technical solution, although the unified firmware upgrade can be achieved through a centralized system, there are problems of data transmission failure and upgrade delay when the network environment is complex or unstable. These problems are mainly because the traditional upgrade method does not take into account the network connection quality of each meter device, resulting in interruption or failure of the upgrade process under poor network conditions. In addition, when a large number of devices are upgraded at the same time, it may cause great pressure on the background service system, affecting the overall upgrade efficiency. Summary of the invention
[0005] In order to improve the problem that when the network conditions are poor, the upgrade process is interrupted or fails, which affects the efficiency of firmware upgrade, the present application provides a firmware upgrade method, device, equipment and storage medium for a smart meter.
[0006] The present invention provides a firmware upgrade method for a smart meter, comprising: obtaining firmware information of the smart meter and a database of a background upgrade service system; wherein the firmware information includes a version number and a device identifier; the database includes a data transmission plan and an upgrade data packet; verifying the network communication environment of each smart meter to obtain multiple network connection qualities, and optimizing the data transmission plan according to each of the network connection qualities; wherein the network connection quality is the network connection quality of each smart meter; calculating and outputting upgrade information according to the version number, the device identifier and the optimized data transmission plan; wherein the upgrade information is the type of upgrade required for each smart meter; updating the upgrade data packet according to the upgrade information, and sending the updated upgrade data packet to the corresponding smart meter for upgrading.
[0007] As a preferred solution, the step of obtaining the firmware information of the smart meter and the database of the background upgrade service system includes: based on a preset smart meter identification system, using the Internet of Things technology through the built-in communication module of the smart meter, real-time collection of the firmware information of each smart meter; establishing a sub-database in the database; wherein the sub-database is used to store the firmware information, data transmission plan and upgrade data packet; reading the sub-database to obtain the firmware information, data transmission plan and upgrade data packet of each smart meter.
[0008] As a preferred solution, the network communication environment of each smart meter is verified to obtain multiple network connection qualities, and the step of optimizing the data transmission plan according to each network connection quality includes: obtaining the network type, bandwidth and signal strength of the smart meter, and deploying network monitoring nodes according to the network type, the bandwidth and the signal strength; collecting the corresponding smart meter communication network status according to the network monitoring nodes; analyzing the communication network status of each smart meter according to the preset communication protocol and the network response time of the smart meter to obtain a network stability index; inputting the network stability index into a preset network quality evaluation algorithm to output the network connection quality; optimizing the data transmission plan according to all the network connection qualities; wherein the data transmission plan includes a transmission time window, a data transmission rate and a retransmission strategy.
[0009] As a preferred scheme, the step of optimizing the data transmission plan according to all the network connection qualities includes: grouping all the network connection qualities based on preset grouping rules to obtain grouped data, sorting the grouped data to obtain sorted results, obtaining the upgrade priority of the sorted results, and analyzing the upgrade time periods of each smart meter in the upgrade priority; correcting the transmission time window according to the grouped data to obtain the optimal sending time; dynamically adjusting the data transmission rate according to the upgrade priority to obtain the optimal transmission speed; customizing the retransmission strategy according to the upgrade time period to obtain the retransmission mechanism; comprehensively analyzing the optimal sending time and the optimal transmission speed to obtain an upgrade scheduling plan; optimizing the retransmission mechanism according to the upgrade scheduling plan to obtain an optimized data transmission plan.
[0010] As a preferred solution, the output upgrade information is calculated based on the version number, the device identification and the optimized data transmission plan; wherein the upgrade information is the type of upgrade required for each smart meter, including: retrieving the corresponding smart meter according to each device identification, comparing the current firmware version number of the retrieved corresponding smart meter with the latest firmware version number in the background upgrade service system to obtain a comparison result; determining the type of firmware upgrade required for each smart meter and the urgency of the firmware upgrade based on the comparison result; and using the optimized data transmission plan, the type of firmware upgrade and the urgency of the firmware upgrade as the upgrade information.
[0011] As a preferred solution, the step of updating the upgrade data packet according to the upgrade information and sending the updated upgrade data packet to the corresponding smart meter for upgrading includes: analyzing the upgrade information based on a preset strategy algorithm to obtain an analysis result, updating the content of the upgrade data packet according to the analysis result to obtain an updated upgrade data packet; and upgrading each smart meter according to the updated upgrade data packet.
[0012] As a preferred solution, the step of analyzing the upgrade information based on a preset policy algorithm to obtain an analysis result includes: inputting the upgrade information into a preset policy algorithm, wherein the policy algorithm uses data mining technology to process the upgrade information to obtain a data set; performing data analysis on the data set to obtain firmware version differences, device compatibility, and upgrade requirements; obtaining a detailed list of the firmware version differences, analyzing the detailed list, and obtaining a list of firmware that needs to be upgraded immediately; evaluating the device compatibility to obtain a device compatibility report, matching the device compatibility report according to the list of firmware that needs to be upgraded immediately to obtain a device upgrade list; prioritizing the upgrade requirements based on the firmware version differences and the device compatibility report to obtain an upgrade schedule; comprehensively analyzing the list of firmware that needs to be upgraded immediately, the device upgrade list, and the upgrade schedule to obtain an upgrade strategy, an upgrade plan, and an upgrade execution order; integrating the upgrade strategy, upgrade plan, and upgrade execution order to obtain an upgrade execution plan, and using the upgrade execution plan as the analysis result.
[0013] The present application also provides a firmware upgrade device for a smart meter, comprising: an acquisition module, used to acquire firmware information of the smart meter and a database of a background upgrade service system; wherein the firmware information includes a version number and a device identifier; the database includes a data transmission plan and an upgrade data packet; a verification module, used to verify the network communication environment of each smart meter, obtain multiple network connection qualities, and optimize the data transmission plan according to each of the network connection qualities; wherein the network connection quality is the network connection quality of each smart meter; a calculation module, used to calculate and output upgrade information based on the version number, the device identifier and the optimized data transmission plan; wherein the upgrade information is the type of upgrade that each smart meter needs to have; an upgrade module, used to update the upgrade data packet according to the upgrade information, and send the updated upgrade data packet to the corresponding smart meter for upgrading.
[0014] The present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the firmware upgrade method of the smart meter described above is implemented.
[0015] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the processor executes the firmware upgrade method for the smart meter as described above.
[0016] Compared with the prior art, the present application has the following beneficial effects: high upgrade efficiency. By acquiring the firmware information of the smart meter and the database of the background upgrade service system, necessary information is collected for subsequent upgrade work, and the network communication environment of each smart meter is verified to obtain the network connection quality of each smart meter, and the data transmission plan in the database of the background upgrade service system is optimized based on this information to reduce upgrade failures caused by network fluctuations; the upgrade information that needs to be updated is calculated based on the firmware information and the firmware version number, device identification and optimized data transmission plan of the database of the background upgrade service system, and the upgrade data packet is updated according to the upgrade information and sent to the corresponding smart meter for upgrading, which improves the efficiency and stability of the smart meter upgrade process and improves the problem of interruption or failure of the upgrade process under poor network conditions, which affects the efficiency of firmware upgrades. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0018] The structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with this technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantive technical significance. Any structural modification, change in proportion or adjustment of size, without affecting the effects and purposes that can be achieved by the present invention, should still fall within the scope of the technical contents disclosed by the present invention.
[0019] Figure 1 It is a flowchart of a firmware upgrade method for a smart meter provided by an embodiment of the present invention;
[0020] Figure 2 is a schematic block diagram of the structure of a firmware upgrade device provided by an embodiment of the present invention;
[0021] Figure 3 It is a schematic block diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0022] Description of reference numerals:
[0023] 10. Firmware upgrade device; 11. Acquisition module; 12. Verification module; 13. Calculation module; 14. Upgrade module; 20. Electronic device; 21. Memory; 22. Processor. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0026] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0027] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0028] The technical solution of the present invention is further described below with reference to the accompanying drawings and through specific implementation methods.
[0029] Embodiment 1:
[0030] like Figure 1 As shown, the firmware upgrade method of the smart meter provided in the embodiment of the present application includes steps S100 to S400.
[0031] Step S100, obtaining the firmware information of the smart meter and the database of the background upgrade service system; wherein the firmware information includes the version number and the device identification; the database includes the data transmission plan and the upgrade data package.
[0032] In this step, various automated information acquisition systems are used to collect the firmware information of the smart meter and the database-related content of the background service system. This information mainly includes the firmware version number, the unique identifier of the device, the data transmission plan, and the upgrade data package to be updated; specifically, this goal is achieved through web crawler technology, API interface calls, or directly receiving data from the built-in communication module of the meter.
[0033] For example, at a fixed time period every day, the firmware information of the day is downloaded in batches from the electric meter through a fixed data receiving module, and then the central processing system analyzes the information and updates it to the main database.
[0034] Step S200: verify the network communication environment of each smart meter to obtain multiple network connection qualities, and optimize the data transmission plan according to each network connection quality; wherein the network connection quality is the network connection quality of each smart meter.
[0035] In this step, the network communication environment of the smart meter is evaluated and optimized by combining a variety of data acquisition and analysis methods. Specifically, not only can physical network monitoring nodes be deployed, but also software simulation and virtual private network (VPN) testing can be used to obtain more comprehensive and accurate network connection quality data.
[0036] For example, using client software deployed in a smartphone network APP, users can actively test network speed and stability and transmit the data back to the background.
[0037] Step S300: Calculate and output upgrade information according to the version number, device identification, and optimized data transmission plan; wherein the upgrade information is the type of upgrade required for each smart meter.
[0038] In this step, the upgrade requirements and upgrade strategies of the smart meter are determined based on the obtained firmware information and data transmission plan; specifically, a decision support system or expert system is used to automatically analyze the firmware version differences and determine the necessity and priority of the upgrade.
[0039] For example, upgrade priorities can be determined based on pre-set rules, and data transmission plans can be adjusted based on other maintenance or operational activities in the power grid.
[0040] Step S400: Update the upgrade data packet according to the upgrade information, and send the updated upgrade data packet to the corresponding smart meter for upgrading.
[0041] In this step, based on the analyzed firmware upgrade requirements and data transmission plan, the upgrade data package is customized and updated and distributed to the corresponding smart meters; specifically, the upgrade distribution system can automatically select the best upgrade package and send it in the best upgrade time window.
[0042] For example, all smart meters that need to be upgraded are pre-processed by sending a basic version upgrade package first, and then deciding whether to provide subsequent differentiated updates based on the feedback from each meter.
[0043] In this embodiment, an automated information acquisition system is used to ensure accurate and timely collection of firmware and device information. A comprehensive network evaluation method is then used to dynamically adjust the data transmission plan according to actual network conditions, thereby reducing upgrade failures caused by network fluctuations. A decision support system is used to analyze upgrade requirements and determine priorities for electric meters, thereby ensuring that urgent and critical upgrade tasks are given priority. Finally, an upgrade distribution system is used to accurately send upgrade data packets to target electric meters based on optimized data transmission plans and upgrade information. At the same time, the upgrade process is monitored and managed to ensure that the upgrade can be completed smoothly, thereby improving the success rate of firmware upgrades and reducing uncertainties caused by network instability. This significantly improves the efficiency and stability of the smart meter upgrade process, and improves the problem of upgrade interruptions or failures that affect firmware upgrade efficiency when network conditions are poor.
[0044] Embodiment 2:
[0045] In step S100, based on the preset smart meter identification system, the Internet of Things technology is used to collect the firmware information of each smart meter in real time through the built-in communication module of the smart meter; a sub-database is established in the database; wherein the sub-database is used to store firmware information, data transmission plan and upgrade data package; the sub-database is read to obtain the firmware information, data transmission plan and upgrade data package of each smart meter.
[0046] By deploying automated data collection procedures and using efficient database management technology, real-time monitoring and recording of the meter's firmware status can be achieved; specifically, data can be exchanged with the smart meter's communication module through a high-speed IoT channel, while the sub-database design allows for quick access to the required information for subsequent steps.
[0047] For example, smart meters report their firmware version and device status to the background service system every hour through the built-in 4G module. The background system then updates this information to the sub-database in real time to keep the data up to date.
[0048] In step S200, the network type, bandwidth and signal strength of the smart meter are obtained, and network monitoring nodes are deployed according to the network type, bandwidth and signal strength; the corresponding smart meter communication network status is collected according to the network monitoring nodes; the communication network status of each smart meter is analyzed according to the preset communication protocol and the network response time of the smart meter to obtain a network stability index; the network stability index is input into a preset network quality evaluation algorithm to output the network connection quality; the data transmission plan is optimized according to all network connection qualities; wherein the data transmission plan includes a transmission time window, a data transmission rate and a retransmission strategy.
[0049] By deploying a multi-point network monitoring mechanism and adopting advanced statistical analysis methods, the network environment of the meter can be comprehensively evaluated; specifically, network monitoring equipment can be placed at key locations in the area where the smart meter is located to monitor key network parameters such as bandwidth utilization and signal quality in real time.
[0050] For example, a network monitoring node is deployed at the center of the community where the smart meters are located. The node continuously tests the quality of communication between each meter and the background system, such as network delay and packet loss rate, and feeds this information back to the background system to adjust the data transmission plan.
[0051] The step of optimizing the data transmission plan according to all network connection qualities includes: grouping all network connection qualities based on preset grouping rules to obtain grouped data, sorting the grouped data to obtain sorted results, obtaining the upgrade priority of the sorted results, and analyzing the upgrade time periods of each smart meter in the upgrade priority; correcting the transmission time window according to the grouped data to obtain the optimal sending time; dynamically adjusting the data transmission rate according to the upgrade priority to obtain the optimal transmission speed; customizing the retransmission strategy according to the upgrade time period to obtain the retransmission mechanism; comprehensively analyzing the optimal sending time and the optimal transmission speed to obtain the upgrade scheduling plan; optimizing the retransmission mechanism according to the upgrade scheduling plan to obtain the optimized data transmission plan.
[0052] By using intelligent analysis software to classify network connection conditions and optimize transmission strategies; specifically, machine learning algorithms can be used to identify network performance differences between meters, group them, and then set appropriate data transmission time and rate for each group.
[0053] For example, the system analyzes the historical network connection data of all electricity meters, identifies the electricity meters with the most stable network connection, and groups them into one group. Data upgrades for this group are scheduled during the night time when the network load is the lowest, enabling fast and reliable firmware updates.
[0054] In step S300, the corresponding smart meters are retrieved according to the identification of each device, and the current firmware version number of the retrieved corresponding smart meter is compared with the latest firmware version number in the background upgrade service system to obtain a comparison result; the type of firmware upgrade required for each smart meter and the urgency of the firmware upgrade are determined according to the comparison result; the optimized data transmission plan, the type of firmware upgrade and the urgency of the firmware upgrade are used as upgrade information.
[0055] The urgency of the upgrade and related strategies are determined through a comprehensive evaluation mechanism; specifically, the current firmware version of the meter can be scanned and compared with the latest version, and the existing security vulnerabilities or functional gaps can be analyzed to determine the urgency of the upgrade.
[0056] For example, if a known security vulnerability is detected in a smart meter’s firmware version, the system will mark the meter as the highest priority for upgrade, and if the meter’s network quality score is high, an earlier upgrade time will be scheduled.
[0057] In step S400, the upgrade information is analyzed based on a preset strategy algorithm to obtain an analysis result, and the content of the upgrade data packet is updated according to the analysis result to obtain an updated upgrade data packet; each smart meter is upgraded according to the updated upgrade data packet.
[0058] A complex data processing process is used to ensure the efficient execution of the upgrade plan; specifically, the upgrade information can be input into an algorithm that considers factors such as meter type, geographic location, user usage patterns, etc. to develop the optimal upgrade plan for each meter.
[0059] For example, a custom algorithm can analyze the pattern of a smart meter being less used during the day on weekdays, so it will schedule upgrades during this time to avoid impacting customers.
[0060] The step of analyzing the upgrade information based on a preset policy algorithm to obtain the analysis result includes: inputting the upgrade information into the preset policy algorithm, the policy algorithm using data mining technology to process the upgrade information to obtain a data set; performing data analysis on the data set to obtain firmware version differences, device compatibility and upgrade requirements; obtaining a detailed list of firmware version differences, analyzing the detailed list to obtain a list of firmware that needs to be upgraded immediately; evaluating device compatibility to obtain a device compatibility report, matching the device compatibility report with the list of firmware that needs to be upgraded immediately to obtain a device upgrade list; prioritizing upgrade requirements based on firmware version differences and device compatibility reports to obtain an upgrade schedule; comprehensively analyzing the list of firmware that needs to be upgraded immediately, the device upgrade list and the upgrade schedule to obtain an upgrade strategy, an upgrade plan and an upgrade execution sequence; integrating the upgrade strategy, the upgrade plan and the upgrade execution sequence to obtain an upgrade execution plan, and using the upgrade execution plan as the analysis result.
[0061] The firmware upgrade process is optimized by utilizing advanced algorithms for efficient data processing and strategy planning. Specifically, the data mining function of the strategy algorithm can be used to identify which meters have urgent upgrade needs, and a customized upgrade plan can be developed accordingly to ensure that critical updates are given priority.
[0062] For example, if a vulnerability in the firmware of some electricity meters is discovered and will be disclosed in the short term, the policy algorithm will determine that these meters need to be upgraded immediately and prioritize resources to ensure that the firmware update is completed before the information is disclosed, thereby ensuring user safety and service continuity.
[0063] In this embodiment, through the above-mentioned intelligent, customized and phased upgrade method, the efficiency and quality of smart meter firmware upgrade can be effectively improved, the security of the firmware upgrade process is ensured, potential risks are reduced, and ultimately the stability and reliability of the entire power grid system are improved.
[0064] Embodiment 3:
[0065] like Figure 2 As shown, the present application also provides a firmware upgrade device 10 for a smart meter, and the firmware upgrade device 10 includes an acquisition module 11, a verification module 12, a calculation module 13 and an upgrade module 14.
[0066] The acquisition module 11 is mainly used to acquire the firmware information of the smart meter and the database of the background upgrade service system; wherein the firmware information includes the version number and the device identification; the database includes the data transmission plan and the upgrade data package.
[0067] The verification module 12 is mainly used to verify the network communication environment of each smart meter, obtain multiple network connection qualities, and optimize the data transmission plan according to each network connection quality; wherein the network connection quality is the network connection quality of each smart meter.
[0068] The calculation module 13 is mainly used to calculate and output upgrade information according to the version number, device identification and optimized data transmission plan; wherein the upgrade information is the type of upgrade required for each smart meter.
[0069] The upgrade module 14 is mainly used to update the upgrade data package according to the upgrade information, and send the updated upgrade data package to the corresponding smart meter for upgrading.
[0070] In this embodiment, by constructing a firmware upgrade device 10 with clear functional distinction, the firmware upgrade process of the smart meter can be handled more systematically and automatically. The acquisition module 11 automatically obtains the required firmware and device information, the verification module 12 evaluates the network environment of the meter, the calculation module 13 performs intelligent analysis based on the obtained data to output the most optimized upgrade solution, and the upgrade module 14 is responsible for the final firmware distribution and update. Such a modular design not only improves the efficiency and security of the upgrade process, but also allows the upgrade and maintenance of individual modules according to actual conditions, increasing the flexibility and scalability of the system.
[0071] It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned smart meter firmware upgrade method embodiment, and will not be repeated here.
[0072] Embodiment 4:
[0073] like Figure 3 As shown, the present application also provides an electronic device 20, including a memory 21 and a processor 22, the memory 21 stores a computer program that can be run on the processor 22, and when the processor 22 executes the computer program, the firmware upgrade method of the smart meter in Example 1 is implemented.
[0074] In this embodiment, by programming the firmware upgrade process and integrating it into the operating system of the electronic device 20, the processor 22 can autonomously execute the firmware upgrade method of the smart meter. The electronic device 20 accesses the computer program through the built-in or external memory 21, and the processor 22 executes according to the program steps, thereby implementing the method described in Example 1. The implementation of this method not only simplifies the operation steps and reduces manual intervention, but also can achieve fast and efficient firmware upgrades and reduce dependence on technicians.
[0075] Embodiment 5:
[0076] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the processor executes the firmware upgrade method for a smart meter of any one of Embodiment 1.
[0077] In this embodiment, by providing a computer-readable storage medium on which a computer program required for performing firmware upgrade is preloaded, the firmware upgrade function of the smart meter can be conveniently deployed on multiple processors or electronic devices. When the computer program is read and executed, it guides the processor to implement the firmware upgrade, ensuring that each step is processed as expected. In this way, the standardization and softwareization of the firmware upgrade process allows the upgrade operation to be more widely and conveniently promoted to the group of smart meters that need to be maintained, improving the synchronization and consistency of cross-regional upgrade activities.
[0078] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for upgrading the firmware of a smart meter, characterized in that: include: Obtaining firmware information of the smart meter and a database of a background upgrade service system; wherein the firmware information includes a version number and a device identifier; and the database includes a data transmission plan and an upgrade data packet; Obtain the network type, bandwidth and signal strength of the smart meter, and deploy network monitoring nodes according to the network type, bandwidth and signal strength; collect the corresponding smart meter communication network status according to the network monitoring node; analyze the communication network status of each smart meter according to the preset communication protocol and the network response time of the smart meter to obtain a network stability index; input the network stability index into a preset network quality evaluation algorithm and output the network connection quality; group all network connection qualities based on the preset grouping rules to obtain grouped data, sort the grouped data to obtain the sorting result, obtain the upgrade priority of the sorting result, and analyze the upgrade time period of each smart meter in the upgrade priority; modify the transmission time window according to the grouped data to obtain the optimal sending time; dynamically adjust the data transmission rate according to the upgrade priority to obtain the optimal transmission speed; customize the retransmission strategy according to the upgrade time period to obtain the retransmission mechanism; comprehensively analyze the optimal sending time and the optimal transmission speed to obtain an upgrade scheduling plan; optimize the retransmission mechanism according to the upgrade scheduling plan to obtain an optimized data transmission plan; Calculate and output upgrade information according to the version number, the device identifier and the optimized data transmission plan; wherein the upgrade information is the type of upgrade required for each smart meter; The upgrade information is input into a preset strategy algorithm, and the strategy algorithm uses data mining technology to process the upgrade information to obtain a data set; the data set is analyzed to obtain firmware version differences, device compatibility and upgrade requirements; a detailed list of the firmware version differences is obtained, and the detailed list is analyzed to obtain a list of firmware that needs to be upgraded immediately; the device compatibility is evaluated to obtain a device compatibility report, and the device compatibility report is matched according to the list of firmware that needs to be upgraded immediately to obtain a device upgrade list; the upgrade requirements are prioritized based on the firmware version differences and the device compatibility report to obtain an upgrade schedule; a comprehensive analysis is performed on the list of firmware that needs to be upgraded immediately, the device upgrade list and the upgrade schedule to obtain an upgrade strategy, an upgrade plan and an upgrade execution order; the upgrade strategy, upgrade plan and upgrade execution order are integrated to obtain an upgrade execution plan, and the upgrade execution plan is used as an analysis result, and the content of the upgrade data packet is updated according to the analysis result to obtain an updated upgrade data packet; each smart meter is upgraded according to the updated upgrade data packet.
2. The method for upgrading the firmware of a smart meter according to claim 1, characterized in that: The step of obtaining the firmware information of the smart meter and the database of the background upgrade service system includes: Based on the preset smart meter identification system, the IoT technology is used to collect the firmware information of each smart meter in real time through the built-in communication module of the smart meter; Establishing a sub-database in the database; wherein the sub-database is used to store the firmware information, data transmission plan and upgrade data package; The sub-database is read to obtain the firmware information, data transmission plan and upgrade data package of each smart meter.
3. The method for upgrading the firmware of a smart meter according to claim 1, characterized in that: The step of calculating and outputting upgrade information according to the version number, the device identifier, and the optimized data transmission plan, wherein the upgrade information is the type of upgrade required for each smart meter, comprises: Retrieve the corresponding smart meter according to each of the device identifiers, and compare the retrieved current firmware version number of the corresponding smart meter with the latest firmware version number in the background upgrade service system to obtain a comparison result; Determining the type of firmware upgrade required for each smart meter and the urgency of the firmware upgrade according to the comparison result; The optimized data transmission plan, the type of the firmware upgrade and the urgency of the firmware upgrade are used as upgrade information.
4. A firmware upgrade device for a smart meter, characterized in that: include: An acquisition module is used to acquire the firmware information of the smart meter and the database of the background upgrade service system; wherein the firmware information includes a version number and a device identifier; and the database includes a data transmission plan and an upgrade data packet; A verification module is used to obtain the network type, bandwidth and signal strength of the smart meter, and deploy network monitoring nodes according to the network type, bandwidth and signal strength; collect the corresponding smart meter communication network status according to the network monitoring node; analyze the communication network status of each smart meter according to the preset communication protocol and the network response time of the smart meter to obtain a network stability index; input the network stability index into a preset network quality evaluation algorithm and output the network connection quality; group all network connection qualities based on the preset grouping rules to obtain grouped data, sort the grouped data to obtain the sorting result, obtain the upgrade priority of the sorting result, and analyze the upgrade time period of each smart meter in the upgrade priority; modify the transmission time window according to the grouped data to obtain the optimal sending time; dynamically adjust the data transmission rate according to the upgrade priority to obtain the optimal transmission speed; customize the retransmission strategy according to the upgrade time period to obtain the retransmission mechanism; comprehensively analyze the optimal sending time and the optimal transmission speed to obtain an upgrade scheduling plan; optimize the retransmission mechanism according to the upgrade scheduling plan to obtain an optimized data transmission plan; A calculation module, configured to calculate and output upgrade information according to the version number, the device identifier and the optimized data transmission plan; wherein the upgrade information is the type of upgrade required for each smart meter; The upgrade module is used to input the upgrade information into a preset strategy algorithm, and the strategy algorithm uses data mining technology to process the upgrade information to obtain a data set; perform data analysis on the data set to obtain firmware version differences, device compatibility and upgrade requirements; obtain a detailed list of the firmware version differences, analyze the detailed list, and obtain a list of firmware that needs to be upgraded immediately; evaluate the device compatibility to obtain a device compatibility report, match the device compatibility report according to the list of firmware that needs to be upgraded immediately to obtain a device upgrade list; prioritize the upgrade requirements based on the firmware version differences and the device compatibility report to obtain an upgrade schedule; comprehensively analyze the list of firmware that needs to be upgraded immediately, the device upgrade list and the upgrade schedule to obtain an upgrade strategy, an upgrade plan and an upgrade execution order; integrate the upgrade strategy, upgrade plan and upgrade execution order to obtain an upgrade execution plan, use the upgrade execution plan as an analysis result, update the content of the upgrade data packet according to the analysis result to obtain an updated upgrade data packet; upgrade each smart meter according to the updated upgrade data packet.
5. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and wherein the processor implements the firmware upgrade method for the smart meter according to any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the processor is enabled to execute the firmware upgrade method for a smart meter according to any one of claims 1 to 3.
Citation Information
Patent Citations
Air firmware upgrading method, device and equipment and computer readable medium
CN110855463A
Over-the-air firmware upgrading method and system for Internet of Things equipment
CN111212121A
Over-the-air upgrading method and device, electronic equipment and readable storage medium
CN112073994A
Firmware upgrading method of intelligent electric meter and intelligent electric meter
CN113553077A
Equipment OTA management system and method
CN118069180A
