Upgrading method for electric power acquisition terminal

By dividing and distributing the upgrade files of the power acquisition terminal to multiple smart meters, the problem of interruption or loss of upgrade file transmission is solved, a more efficient and reliable upgrade process is achieved, and the working efficiency of the power acquisition terminal is improved.

CN119440585AActive Publication Date: 2025-02-14BEIJING BONA ELECTRIC CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411581817.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-07
Publication Date
2025-02-14
Estimated Expiration
2044-11-07

AI Technical Summary

Technical Problem

During the upgrade process of existing power acquisition terminals, the upgrade files are easily interrupted or lost during the transmission process, resulting in a reduced terminal work efficiency.

Method used

Divide the upgrade files into multiple upgrade sub-files, and according to the radius division strategy, the smart meter is classified according to the distance from the terminal to be upgraded to form several time-period meter sets. Each time-period meter set is to be upgraded in its corresponding divided period. The terminal sends the same upgrade subfile.

Benefits of technology

By dividing and distributing the upgrade files to multiple smart meters, the reliability and efficiency of upgraded file transmission is improved, the memory usage of the terminal to be upgraded is reduced, and the working efficiency of the power acquisition terminal is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440585A_ABST
    Figure CN119440585A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electric power acquisition terminal upgrading, and discloses an upgrading method for an electric power acquisition terminal, which comprises the following steps: equally dividing an upgrading file into a plurality of upgrading sub-files; for each intelligent electric meter, executing a communication error rate statistical strategy, and calculating the communication error rate of each intelligent electric meter; equally dividing 24 hours in a day into a plurality of divided time periods; according to a radius division strategy, classifying the intelligent electric meters according to the distance between the intelligent electric meters and the to-be-upgraded terminal to obtain a plurality of time period electric meter sets; wherein each time period electricity meter set corresponds to one division time period, and the intelligent electricity meters in the time period electricity meter set send the same upgrading sub-file to the terminal to be upgraded in the corresponding division time period; sending the upgrading sub-file to the to-be-upgraded terminal through the intelligent electric meter in each divided time period; executing an upgrade ending prediction strategy, and predicting a moment when the to-be-upgraded terminal finishes upgrading; and the plurality of standby intelligent electric meters improve the transmission success rate of the upgrade sub-files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power collection terminal upgrade, and in particular to an upgrade method for a power collection terminal. Background Art

[0002] The power acquisition terminal is a key device in the monitoring and management of the power system. It is used to monitor the operating status and power quality of the power grid in real time and collect power usage data. With the increase in power demand and the advancement of power grid technology, the existing power acquisition terminals are under pressure to upgrade and improve in order to improve data processing capabilities, communication efficiency and system security. With the development of smart grids, the demand for real-time data analysis and remote control is increasing, which requires power acquisition terminals to have higher data communication speeds and stronger data processing capabilities. In addition, the security issues of the power system are becoming increasingly prominent, and the old systems often lack effective security protection measures and are vulnerable to cyber attacks. Therefore, upgrading the power acquisition terminal to support more secure encryption communication and authentication mechanisms has become an important part of improving the security of the entire power system. In summary, upgrading the power acquisition terminal is a necessary measure to adapt to the needs of modern power systems and improve the efficiency and security of power grids.

[0003] During the upgrade process of the existing power collection terminal, the upgrade file needs to be sent to the power collection terminal. Due to the complex and changeable communication environment of the power grid, the upgrade file is often interrupted or lost during the transmission process. When the power collection terminal is temporarily unable to execute the upgrade file, the upgrade file is stored in the power collection terminal and occupies the memory, reducing the efficiency of the power collection terminal.

[0004] This solution proposes to divide the upgrade file into upgrade sub-files equal to the number of files, classify the smart meters according to the distance from the terminal to be upgraded based on the radius division strategy, obtain several time period meter sets, and send the upgrade sub-files to the terminal to be upgraded through the smart meter in each divided time period. Summary of the invention

[0005] The present invention provides an upgrading method for a power collection terminal, which is used to promote solving the problems mentioned in the above background technology.

[0006] The present invention provides the following technical solution: a method for upgrading a power collection terminal, comprising: Obtain the power collection terminal that needs to be upgraded, and record it as the terminal to be upgraded; Obtain all smart meters whose data are collected by the terminal to be upgraded; Obtain the upgrade file of the terminal to be upgraded; Get the size of the upgrade file; Obtain the memory of the smart meter used to store the upgrade file, which is recorded as the meter memory; Calculate [upgrade file size / meter memory] + 1 = number of files, [] is the rounding symbol; Divide the upgrade file into upgrade sub-files equal to the number of files; For each smart meter: Obtain historical communication records of smart meters; Execute the communication error rate statistical strategy to calculate the communication error rate of each smart meter; Set the number of time periods used to divide the 24 hours of a day into multiple time periods; Divide the 24 hours of a day into the number of time periods; According to the radius division strategy, the smart meters are classified according to the distance from the terminal to be upgraded to obtain several time period meter sets; Each time period meter set corresponds to a divided time period, and the smart meters in the time period meter set send the same upgrade sub-file to the terminal to be upgraded in the corresponding divided time period; Sending the upgrade sub-file to the terminal to be upgraded through the smart meter in each divided time period; Obtain the historical upgrade files in the historical communication records of the terminal to be upgraded, implement the upgrade interval division strategy, obtain several intervals, and calculate the average upgrade time of each interval; Execute the upgrade end prediction strategy to predict the time when the terminal to be upgraded will end the upgrade.

[0007] Optionally, the executing communication error rate statistics strategy includes: Obtain the communication records of the smart meter sending any 100 data to the terminal to be upgraded from the historical communication records of the smart meter, and record them as the total number of communications; Obtain the number of communication errors between the smart meter and the terminal to be upgraded in the 100 communication records, and record it as the total number of errors; Calculate the total number of errors / total number of communications, and record the result as the communication error rate of the smart meter.

[0008] Optionally, the setting is used to divide the 24 hours of a day into a number of time periods, including: The time from when the smart meter starts sending data to the terminal to be upgraded to when the terminal to be upgraded feedbacks that the data is successfully received is recorded as the communication time; Obtain the communication durations of all smart meters, which are recorded as the first communication duration, the second communication duration, ... the ath communication duration, respectively, where a is the total number of smart meters; Execute the following formula to calculate the average communication duration; (first communication duration + second communication duration + ... + ath communication duration) / a = average communication duration; Obtain the communication error rate with the largest value among the communication error rates of all smart meters, and record it as the maximum error rate p; Setting a fault tolerance threshold, where the fault tolerance threshold is a threshold probability of sending the upgrade subfile successfully at least once; Calculate 1-(p) n >When the fault tolerance threshold is reached, obtain the minimum integer of n and record it as the fault tolerance value; Calculate the fault tolerance value * average communication duration, and record the result as the marking duration; Calculate [24 hours / marking duration] + 1 to get the number of time periods.

[0009] Optionally, the radius division strategy includes: Get the location of the terminal to be upgraded and record it as the center location; Obtain the location of the smart meter farthest from the terminal to be upgraded, and record it as the boundary location; Get the line connecting the boundary position and the center position, and record it as the longest radius; On the longest radius, with the center position as the center, a set of concentric circles is constructed, where the number of concentric circles is the fault tolerance value, and the number of smart meters between adjacent concentric circles is equal; All smart meters between adjacent concentric circles form a communication meter set; Get all communication meter sets; Divide each communication meter set into subgroups of the number of time periods on average; A subgroup is randomly selected from each communication meter set to form a time period meter set, and the number of time period meter sets is obtained.

[0010] Optionally, sending the upgrade subfile to the terminal to be upgraded through the smart meter in each divided time period includes: Obtain the number of file division time periods, wherein each division time period is used to send an upgrade sub-file; Recording the divided time period for sending the upgrade sub-file as the communication time period; The communication time period is divided according to the order of sending the upgrade sub-files and the number of time periods as intervals to obtain multiple date time period sets, wherein the communication time period in each date time period set is a time period in a day for sending the upgrade sub-files; Divide all the upgrade sub-files according to the order of sending and the number of time periods as intervals to obtain multiple date file sets, wherein the upgrade sub-files in each date file set are all the upgrade sub-files sent in one day; Establish a one-to-one correspondence between the date period set and the date file set.

[0011] Optionally, sending the upgrade subfile to the terminal to be upgraded through the smart meter in each divided time period includes: For any date period set and its corresponding date file set: Get any communication period in the date period set; Obtain the time period electricity meter set for the communication period; The subgroups in the time period electric meter set are named the first subgroup, the second subgroup, and the dth subgroup in order from the nearest to the center position; Obtain the upgrade sub-file sent during the communication period; Obtain any smart meter in the first subgroup, the second subgroup, ... the d-th subgroup respectively, store the upgrade subfile in the d smart meters, and mark the smart meter storing the upgrade subfile as an assisting upgrade meter; According to the order of the subgroups, the assisting upgrade electric meters in each subgroup send the upgrade subfiles stored in it to the terminal to be upgraded; If any assisted upgrade meter fails in the process of sending the upgrade sub-file, the next assisted upgrade meter will take over the task and try to resend the upgrade sub-file; When the upgrade sub-file is successfully transmitted to the terminal to be upgraded, it will assist in clearing the upgrade sub-file saved in the upgraded meter; If all the assisting upgrade meters fail to send the upgrade sub-file to the terminal to be upgraded, an upgrade failure message is sent to the master station.

[0012] Optionally, executing the upgrade interval division strategy includes: Get the smallest upgrade file in the historical communication records and record it as the smallest file; Get the largest upgrade file in the historical communication records and record it as the largest file; Set the file interval for dividing the upgrade interval; Calculate [largest file - smallest file] / file interval = number of intervals q; Calculate the minimum file + file interval to get the first file; Calculate the minimum file + file interval * 2 to get the second file; … Calculate the minimum file + file interval * (q-1) to get the q-1th file; Then, the interval formed by the smallest file and the first file is recorded as the first interval, the interval formed by the first file and the second file is recorded as the second interval...the interval formed by the q-1th file and the largest file is recorded as the qth interval; Obtain all upgrade files in the historical communication records and classify the upgrade files into corresponding intervals; For any interval; Get the upgrade duration of all upgrade files in the interval, calculate the average, and use it as the average upgrade duration of the interval.

[0013] Optionally, executing the upgrade end prediction strategy includes: The date when the upgrade sub-file starts to be sent is recorded as the first date; Get the number of date time sets and record it as the sending duration; Calculate the date of the first date + sending time - 1, and record it as the second date; Get the end time of the last communication period on the second date; Get the average upgrade time of the upgrade file interval; The time after the end time and the average upgrade duration is obtained as the time when the upgrade of the terminal to be upgraded is predicted to end.

[0014] The present invention has the following beneficial effects: 1. The upgrade method for the power collection terminal obtains the historical communication records between the smart meter and the terminal to be upgraded, obtains 100 communication records, obtains the number of communication errors in the 100 communication records, obtains the total number of errors, calculates the communication error rate of the smart meter by calculating the total number of errors / total number of communications, and digitizes the probability of communication errors of the smart meter, so as to configure the number of smart meters for an upgrade sub-file according to the communication error rate calculation, so as to achieve the purpose of sending the upgrade sub-file to the terminal to be upgraded, so that when a smart meter fails to send the upgrade sub-file, there is a spare smart meter to send the upgrade sub-file again, thereby increasing the probability of the terminal to be upgraded receiving the upgrade sub-file.

[0015] 2. The upgrade method for the power collection terminal sets a fault tolerance threshold, wherein the fault tolerance threshold is a threshold probability that multiple smart meters send upgrade subfiles at least once successfully, and obtains a maximum error rate p. Assuming that among n smart meters that send an upgrade subfile, each smart meter sends the upgrade subfile at the maximum error rate, the probability of all errors is (p) n , then the probability of succeeding at least once is 1-(p) n , when 1-(p) n > the fault tolerance threshold, it means that the standard of at least one successful transmission is met. The minimum integer of n at this time is calculated, that is, the number of smart meters required to send an upgrade sub-file. At this time, the standard of successful transmission of the upgrade sub-file is met. By calculating the fault tolerance value, the number of smart meters sending the same upgrade sub-file is increased to improve the success rate of transmission.

[0016] 3. The upgrade method for the power collection terminal obtains the communication time of a smart meter from the start of sending data to the knowledge of successful data sending, calculates the average communication time of all smart meters, and obtains the average communication time. When there are fault-tolerant value smart meters sending the same upgrade sub-file, at least time is reserved for each smart meter to send it once, that is, the fault-tolerant value * the average communication time is calculated, and the obtained mark time is the time for the fault-tolerant value smart meters to send it once. The situation that the last smart meter among the fault-tolerant value smart meters needs to send the upgrade sub-file is taken into consideration to the extreme. The number of time periods calculated thereby can reach that each divided time period is used to send only one upgrade sub-file, that is, each divided time period allows the fault-tolerant value smart meters to send an upgrade sub-file, thereby avoiding confusion caused by sending upgrade sub-files at the same time and increasing the probability of successful upgrade.

[0017] 4. The upgrade method for the power collection terminal obtains the center position of the terminal to be upgraded, obtains the boundary position of the smart meter farthest from the terminal to be upgraded, obtains the longest radius, takes the center position as the center, constructs a set of concentric circles on the longest radius, the number of concentric circles is equal to the fault tolerance value, and the number of smart meters between adjacent concentric circles is equal, obtains a communication meter set, divides each communication meter set into the number of time period subgroups on average, selects a subgroup from each communication meter set to form a time period meter set, wherein the number of subgroups in the time period meter set is the fault tolerance value, and each in a time period meter set The distances between the subgroups and the terminals to be upgraded are different. By dividing the smart meters according to the different distances from the terminals to be upgraded, multiple time period meter sets are obtained. The smart meters that send the same upgrade subfile are selected based on the distance to avoid the excessive load of smart meters sending data in a certain area due to random selection of smart meters, and balance the load of the communication network. Among them, since the number of communication meter sets is a fault-tolerant value, and the communication meter set is divided into subgroups with the number of time periods, all smart meters are configured in the divided time periods of a day, so that an upgrade subfile can be sent in each divided time period.

[0018] 5. The upgrade method for the power collection terminal, due to the different sizes of the upgrade files, the number of divided upgrade sub-files is also different. Since the number of time periods divided into a day is determined, the number of upgrade sub-files sent in a day is determined. All upgrade sub-files are divided according to the order of sending and the value of the number of time periods as intervals to obtain a date file set. Each date file set is the number of upgrade sub-files that need to be sent in a day, wherein the number of date file sets is the number of days sent. Similarly, the date time period set is the divided time period for sending the upgrade sub-files every day. Therefore, each date time period set corresponds to a date file set, and the upgrade sub-files sent in each time period of each day are clearly corresponded, so as to facilitate clear management of the sending and receiving of upgrade sub-files.

[0019] 6. The upgrade method for the power collection terminal sorts and names the subgroups in the time period meter set in order from near to far from the center position, obtains one smart meter in each subgroup as an assisting upgrade meter, and stores the upgrade subfile in each assisting upgrade meter; in the order of the subgroups, the assisting upgrade meter in each subgroup sends the stored upgrade subfile to the terminal to be upgraded. If the sending is successful, stop sending the upgrade subfile and clear the upgrade subfile in all assisting upgrade meters. If each assisting upgrade meter fails to send, report the upgrade failure information, and first send the upgrade subfile to the terminal to be upgraded through the assisting upgrade meter closest to the terminal to be upgraded. If an error occurs, the next assisting upgrade terminal that is closest to the terminal to be upgraded will continue to send the upgrade sub-file, and the upgrade sub-files will be sent from near to far. The distance is considered first to reduce the sending time and improve efficiency. When an error occurs, the terminal with a long distance will continue to send, and the communication load in different areas will be balanced while considering the distance to improve the success rate. The upgrade file is divided into several upgrade sub-files, and the upgrade sub-files are stored in the smart meter, so that when the terminal to be upgraded has the upgrade conditions, the upgrade file can be obtained from the smart meter before upgrading, reducing the time the upgrade file is stored in the terminal to be upgraded and improving the memory utilization of the terminal to be upgraded. Multiple standby smart meters improve the success rate of data reception.

[0020] 7. The upgrade method for the power collection terminal has different modules to be upgraded each time, that is, the size of the upgrade file is different, so the upgrade time of the terminal to be upgraded is different. The minimum upgrade file and the maximum upgrade file in the historical communication record are obtained, and the file interval is divided into multiple intervals. The upgrade files are classified into corresponding intervals, and the average upgrade time of each interval is calculated to obtain the average upgrade time of each interval. The average upgrade time of the interval where the current upgrade file is located is obtained, and the end time of the last communication period of the second date is obtained, and the time after the end time with the average upgrade time interval is the predicted time when the upgrade of the upgrade file ends, so as to facilitate the full-process analysis of the upgrade situation of the terminal to be upgraded. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 Schematic diagram of the method of the present invention.

[0022] Figure 2 It is a schematic diagram of concentric circles where the boundary position of the terminal to be upgraded and the farthest smart meter is located according to the present invention. DETAILED DESCRIPTION

[0023] 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 only 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.

[0024] Embodiment 1, refer to Figure 1 , an upgrade method for a power collection terminal, comprising: Obtain the power collection terminal that needs to be upgraded, and record it as the terminal to be upgraded; Obtain all smart meters whose data are collected by the terminal to be upgraded; Obtain the upgrade file of the terminal to be upgraded; Get the size of the upgrade file; Obtain the memory of the smart meter used to store the upgrade file, which is recorded as the meter memory; Calculate [upgrade file size / meter memory] + 1 = number of files, [] is the rounding symbol; Divide the upgrade file into upgrade sub-files equal to the number of files; For each smart meter: Obtain historical communication records of smart meters; Execute the communication error rate statistical strategy to calculate the communication error rate of each smart meter; Set the number of time periods used to divide the 24 hours of a day into multiple time periods; Divide the 24 hours of a day into the number of time periods; According to the radius division strategy, the smart meters are classified according to the distance from the terminal to be upgraded to obtain several time period meter sets; Each time period meter set corresponds to a divided time period, and the smart meters in the time period meter set send the same upgrade sub-file to the terminal to be upgraded in the corresponding divided time period; Sending the upgrade sub-file to the terminal to be upgraded through the smart meter in each divided time period; Obtain the historical upgrade files in the historical communication records of the terminal to be upgraded, implement the upgrade interval division strategy, obtain several intervals, and calculate the average upgrade time of each interval; Execute the upgrade end prediction strategy to predict the time when the terminal to be upgraded will end the upgrade.

[0025] The execution of the communication error rate statistics strategy includes: Obtain the communication records of the smart meter sending any 100 data to the terminal to be upgraded from the historical communication records of the smart meter, and record them as the total number of communications; Obtain the number of communication errors between the smart meter and the terminal to be upgraded in the 100 communication records, and record it as the total number of errors; Calculate the total number of errors / total number of communications, and record the result as the communication error rate of the smart meter.

[0026] Obtain historical communication records between the smart meter and the terminal to be upgraded, obtain 100 communication records, obtain the number of communication errors in the 100 communication records, and obtain the total number of errors. Calculate the communication error rate of the smart meter by dividing the total number of errors by the total number of communications. Digitalize the probability of communication errors of the smart meter, so as to configure the number of smart meters for an upgrade sub-file according to the communication error rate calculation, so as to achieve the purpose of sending the upgrade sub-file to the terminal to be upgraded, so that when a smart meter fails to send the upgrade sub-file, there is a spare smart meter to send the upgrade sub-file again, thereby increasing the probability of the terminal to be upgraded receiving the upgrade sub-file.

[0027] The setting is used to divide 24 hours a day into multiple time periods, including: The time from when the smart meter starts sending data to the terminal to be upgraded to when the terminal to be upgraded feedbacks that the data is successfully received is recorded as the communication time; Obtain the communication durations of all smart meters, which are recorded as the first communication duration, the second communication duration, ... the ath communication duration, respectively, where a is the total number of smart meters; Execute the following formula to calculate the average communication duration; (first communication duration + second communication duration + ... + ath communication duration) / a = average communication duration; Obtain the communication error rate with the largest value among the communication error rates of all smart meters, and record it as the maximum error rate p; Setting a fault tolerance threshold, where the fault tolerance threshold is a threshold probability of sending the upgrade subfile successfully at least once; Calculate 1-(p) n >When the fault tolerance threshold is reached, obtain the minimum integer of n and record it as the fault tolerance value; In this embodiment, the fault tolerance value is 3; A fault tolerance threshold is set, where the fault tolerance threshold is the threshold probability of multiple smart meters sending upgrade subfiles successfully at least once, and the maximum error rate p is obtained. Assuming that among n smart meters sending an upgrade subfile, each smart meter sends the upgrade subfile at the maximum error rate, and the probability of all errors is (p)n, then the probability of at least one success is 1-(p)n. When 1-(p)n>fault tolerance threshold, it means that the standard of at least one successful sending is met. The minimum integer of n at this time is calculated, that is, the number of smart meters required to send an upgrade subfile. At this time, the standard of successfully sending the upgrade subfile is met. By calculating the fault tolerance value, the number of smart meters sending the same upgrade subfile is increased, thereby improving the success rate of sending.

[0028] Calculate the fault tolerance value * average communication duration, and record the result as the marking duration; Calculate [24 hours / marking duration] + 1 to get the number of time periods.

[0029] In this embodiment, the number of time periods is 8, that is, 8 upgrade sub-files are sent per day; Get the communication time of a smart meter from the start of sending data to knowing that the data has been successfully sent, calculate the average communication time of all smart meters, and get the average communication time. When there are fault-tolerant value smart meters sending the same upgrade sub-file, at least reserve time for each smart meter to send it once, that is, calculate the fault-tolerant value * average communication time. The obtained mark time is the time for the fault-tolerant value smart meters to send it once. The situation that the last smart meter among the fault-tolerant value smart meters needs to send the upgrade sub-file is taken into consideration to the limit. The number of time periods calculated in this way can reach that each divided time period is used to send only one upgrade sub-file, that is, each divided time period allows the fault-tolerant value smart meters to send an upgrade sub-file, avoiding confusion caused by sending upgrade sub-files at the same time and increasing the probability of successful upgrade.

[0030] The strategy of dividing by radius includes: Get the location of the terminal to be upgraded and record it as the center location; Obtain the location of the smart meter farthest from the terminal to be upgraded, and record it as the boundary location; Get the line connecting the boundary position and the center position, and record it as the longest radius; On the longest radius, with the center position as the center, a set of concentric circles is constructed, where the number of concentric circles is the fault tolerance value, and the number of smart meters between adjacent concentric circles is equal; All smart meters between adjacent concentric circles form a communication meter set; Get all communication meter sets; Divide each communication meter set into subgroups of the number of time periods on average; A subgroup is randomly selected from each communication meter set to form a time period meter set, and the number of time period meter sets is obtained.

[0031] In this embodiment, the relationship between the concentric circles refers to Figure 2 ,There are 8 time period meter sets in total, each time period meter set has 3 sub-groups, and the distances from the sub-groups to the terminals to be upgraded are from near to far. Send an upgrade sub-file to configure 3 assisting upgrade meters; Get the center position of the terminal to be upgraded, get the boundary position of the smart meter farthest from the terminal to be upgraded, get the longest radius, take the center position as the center, construct a set of concentric circles on the longest radius, the number of concentric circles is equal to the fault tolerance value, and the number of smart meters between adjacent concentric circles is equal, get the communication meter set, divide each communication meter set into the number of time period subgroups on average, select a subgroup from each communication meter set to form a time period meter set, where the number of subgroups in the time period meter set is the fault tolerance value, and each subgroup in a time period meter set is far from the terminal to be upgraded The distance between the terminals is different. By dividing the smart meters according to the distance from the terminal to be upgraded, multiple time period meter sets are obtained. The smart meters that send the same upgrade sub-file are selected according to the distance to avoid the excessive load of smart meters sending data in a certain area due to random selection of smart meters, and balance the load of the communication network. Among them, since the number of communication meter sets is a fault-tolerant value, and the communication meter set is divided into the number of time period subgroups, all smart meters are configured to the divided time periods of a day, so that one upgrade sub-file is sent in each divided time period.

[0032] The step of sending the upgrade sub-file to the terminal to be upgraded through the smart meter in each divided time period includes: Obtain the number of file division time periods, wherein each division time period is used to send an upgrade sub-file; Recording the divided time period for sending the upgrade sub-file as the communication time period; The communication time period is divided according to the order of sending the upgrade sub-files and the number of time periods as intervals to obtain multiple date time period sets, wherein the communication time period in each date time period set is a time period in a day for sending the upgrade sub-files; Divide all the upgrade sub-files according to the order of sending and the number of time periods as intervals to obtain multiple date file sets, wherein the upgrade sub-files in each date file set are all the upgrade sub-files sent in one day; Establish a one-to-one correspondence between the date period set and the date file set.

[0033] Due to the different sizes of upgrade files, the number of upgrade sub-files is also different. Since the number of time periods in a day is determined, the number of upgrade sub-files sent in a day is determined. All upgrade sub-files are divided according to the order of sending and the number of time periods as intervals to obtain a date file set. Each date file set is the number of upgrade sub-files that need to be sent in a day, where the number of date file sets is the number of days to send. Similarly, the date time period set is the time period divided for sending upgrade sub-files every day. Therefore, each date time period set corresponds to a date file set, and the upgrade sub-files sent in each time period of each day are clearly corresponded to facilitate clear management of the sending and receiving of upgrade sub-files.

[0034] The step of sending the upgrade sub-file to the terminal to be upgraded through the smart meter in each divided time period includes: For any date period set and its corresponding date file set: Get any communication period in the date period set; Obtain the time period electricity meter set for the communication period; The subgroups in the time period electric meter set are named the first subgroup, the second subgroup, and the dth subgroup in order from the nearest to the center position; Obtain the upgrade sub-file sent during the communication period; Obtain any smart meter in the first subgroup, the second subgroup, ... the d-th subgroup respectively, store the upgrade subfile in the d smart meters, and mark the smart meter storing the upgrade subfile as an assisting upgrade meter; According to the order of the subgroups, the assisting upgrade electric meters in each subgroup send the upgrade subfiles stored in it to the terminal to be upgraded; If any assisted upgrade meter fails in the process of sending the upgrade sub-file, the next assisted upgrade meter will take over the task and try to resend the upgrade sub-file; When the upgrade sub-file is successfully transmitted to the terminal to be upgraded, it will assist in clearing the upgrade sub-file saved in the upgraded meter; If all the assisting upgrade meters fail to send the upgrade sub-file to the terminal to be upgraded, an upgrade failure message is sent to the master station.

[0035] The subgroups in the time period meter set are sorted and named in order from near to far according to the distance from the center position, and one smart meter in each subgroup is obtained as an assisting upgrade meter, and the upgrade subfile is stored in each assisting upgrade meter; in the order of the subgroups, the assisting upgrade meter in each subgroup sends its stored upgrade subfile to the terminal to be upgraded. If the sending is successful, stop sending the upgrade subfile and clear the upgrade subfile in all assisting upgrade meters. If each assisting upgrade meter fails to send, the upgrade failure information is reported. The upgrade subfile is first sent to the terminal to be upgraded through the assisting upgrade meter closest to the terminal to be upgraded. If an error occurs, the next assisting upgrade terminal closest to the terminal to be upgraded continues to send the upgrade subfile. When sending the upgrade subfile from near to far, the distance is considered first to reduce the sending time and improve the efficiency. When an error occurs, the longer distance continues to send. While considering the distance, the communication load in different regions is balanced to improve the success rate.

[0036] The execution upgrade interval division strategy includes: Get the smallest upgrade file in the historical communication records and record it as the smallest file; Get the largest upgrade file in the historical communication records and record it as the largest file; Set the file interval for dividing the upgrade interval; Calculate [largest file - smallest file] / file interval = number of intervals q; Calculate the minimum file + file interval to get the first file; Calculate the minimum file + file interval * 2 to get the second file; … Calculate the minimum file + file interval * (q-1) to get the q-1th file; Then, the interval formed by the smallest file and the first file is recorded as the first interval, the interval formed by the first file and the second file is recorded as the second interval...the interval formed by the q-1th file and the largest file is recorded as the qth interval; Obtain all upgrade files in the historical communication records and classify the upgrade files into corresponding intervals; For any interval; Get the upgrade duration of all upgrade files in the interval, calculate the average, and use it as the average upgrade duration of the interval.

[0037] The execution of the upgrade end prediction strategy includes: The date when the upgrade sub-file starts to be sent is recorded as the first date; Get the number of date time sets and record it as the sending duration; Calculate the date of the first date + sending time - 1, and record it as the second date; Get the end time of the last communication period on the second date; Get the average upgrade time of the upgrade file interval; The time after the end time and the average upgrade duration is obtained as the time when the upgrade of the terminal to be upgraded is predicted to end.

[0038] Since the modules upgraded for the terminal to be upgraded are different each time, that is, the sizes of the upgrade files are different, the upgrade duration of the terminal to be upgraded is different. The minimum upgrade file and the maximum upgrade file in the historical communication records are obtained, and the files are divided into multiple intervals according to the file interval. The upgrade files are classified into corresponding intervals, and the average upgrade duration of the upgrade files in each interval is calculated to obtain the average upgrade duration of each interval. The average upgrade duration of the interval where the current upgrade file is located is obtained, and the end time of the last communication period of the second date is obtained. The time after the end time with the average upgrade duration is the predicted end time of the upgrade file upgrade, so as to facilitate the full-process analysis of the upgrade situation of the terminal to be upgraded.

[0039] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0040] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for upgrading a power collection terminal, characterized in that: include: Obtain the power collection terminal that needs to be upgraded, and record it as the terminal to be upgraded; Obtain all smart meters whose data are collected by the terminal to be upgraded; Obtain the upgrade file of the terminal to be upgraded; Get the size of the upgrade file; Obtain the memory of the smart meter used to store the upgrade file, which is recorded as the meter memory; Calculate [upgrade file size / meter memory] + 1 = number of files, [] is the rounding symbol; Divide the upgrade file into upgrade sub-files equal to the number of files; For each smart meter: Obtain historical communication records of smart meters; Execute the communication error rate statistical strategy to calculate the communication error rate of each smart meter; Set the number of time periods used to divide the 24 hours of a day into multiple time periods; Divide the 24 hours of a day into the number of time periods; According to the radius division strategy, the smart meters are classified according to the distance from the terminal to be upgraded to obtain several time period meter sets; Each time period meter set corresponds to a divided time period, and the smart meters in the time period meter set send the same upgrade sub-file to the terminal to be upgraded in the corresponding divided time period; Sending the upgrade sub-file to the terminal to be upgraded through the smart meter in each divided time period; Obtain the historical upgrade files in the historical communication records of the terminal to be upgraded, execute the upgrade interval division strategy, obtain several intervals, and calculate the average upgrade time of each interval; Execute the upgrade end prediction strategy to predict the time when the terminal to be upgraded will end the upgrade.

2. The method for upgrading the power collection terminal according to claim 1, characterized in that: The execution of the communication error rate statistics strategy includes: Obtain the communication records of any 100 data sent by the smart meter to the terminal to be upgraded from the historical communication records of the smart meter, and record them as the total number of communications; Obtain the number of communication errors between the smart meter and the terminal to be upgraded in the 100 communication records, and record it as the total number of errors; Calculate the total number of errors / total number of communications, and record the result as the communication error rate of the smart meter.

3. The method for upgrading the power collection terminal according to claim 1, characterized in that: The setting is used to divide 24 hours a day into multiple time periods, including: The time from when the smart meter starts sending data to the terminal to be upgraded to when the terminal to be upgraded feedbacks that the data is successfully received is recorded as the communication time; Obtain the communication durations of all smart meters, which are recorded as the first communication duration, the second communication duration, ... the ath communication duration, respectively, where a is the total number of smart meters; Execute the following formula to calculate the average communication duration; (first communication duration + second communication duration + ... + ath communication duration) / a = average communication duration; Obtain the communication error rate with the largest value among the communication error rates of all smart meters, and record it as the maximum error rate p; Setting a fault tolerance threshold, where the fault tolerance threshold is a threshold probability of sending the upgrade subfile successfully at least once; Calculate 1-(p) n >When the fault tolerance threshold is reached, obtain the minimum integer of n and record it as the fault tolerance value; Calculate the fault tolerance value * average communication duration, and record the result as the marking duration; Calculate [24 hours / marking duration] + 1 to get the number of time periods.

4. The method for upgrading the power collection terminal according to claim 3, characterized in that: The strategy of dividing by radius includes: Get the location of the terminal to be upgraded and record it as the center location; Obtain the location of the smart meter farthest from the terminal to be upgraded, and record it as the boundary location; Get the line connecting the boundary position and the center position, and record it as the longest radius; On the longest radius, with the center position as the center, a set of concentric circles is constructed, where the number of concentric circles is the fault tolerance value, and the number of smart meters between adjacent concentric circles is equal; All smart meters between adjacent concentric circles form a communication meter set; Get all communication meter sets; Divide each communication meter set into subgroups of the number of time periods on average; A subgroup is randomly selected from each communication meter set to form a time period meter set, and the number of time period meter sets is obtained.

5. The method for upgrading the power collection terminal according to claim 1, characterized in that: The step of sending the upgrade sub-file to the terminal to be upgraded through the smart meter in each divided time period includes: Obtain the number of file division time periods, wherein each division time period is used to send an upgrade sub-file; Recording the divided time period for sending the upgrade sub-file as the communication time period; The communication time period is divided according to the order of sending the upgrade sub-files and the value of the time period is used as an interval to obtain multiple date time period sets, wherein the communication time period in each date time period set is a time period in a day for sending the upgrade sub-files; Divide all the upgrade sub-files according to the order of sending and the number of time periods as intervals to obtain multiple date file sets, wherein the upgrade sub-files in each date file set are all the upgrade sub-files sent in one day; Establish a one-to-one correspondence between the date period set and the date file set.

6. The method for upgrading the power collection terminal according to claim 5, characterized in that: The step of sending the upgrade sub-file to the terminal to be upgraded through the smart meter in each divided time period includes: For any date period set and its corresponding date file set: Get any communication period in the date period set; Obtain the time period electricity meter set for the communication period; The subgroups in the time period electric meter set are named the first subgroup, the second subgroup, and the dth subgroup in order from the nearest to the center position; Obtain the upgrade sub-file sent during the communication period; Respectively obtain any smart meter in the first subgroup, the second subgroup, ... the d-th subgroup, store the upgrade subfile in the d smart meters, and mark the smart meter storing the upgrade subfile as an assisting upgrade meter; According to the order of the subgroups, the assisting upgrade electric meters in each subgroup send the upgrade subfiles stored in it to the terminal to be upgraded; If any assisted upgrade meter fails in the process of sending the upgrade sub-file, the next assisted upgrade meter will take over the task and try to resend the upgrade sub-file; When the upgrade sub-file is successfully transmitted to the terminal to be upgraded, it will assist in clearing the upgrade sub-file saved in the upgraded meter; If all the assisting upgrade meters fail to send the upgrade sub-file to the terminal to be upgraded, an upgrade failure message is sent to the master station.

7. The method for upgrading the power collection terminal according to claim 1, characterized in that: The execution upgrade interval division strategy includes: Get the smallest upgrade file in the historical communication records and record it as the smallest file; Get the largest upgrade file in the historical communication records and record it as the largest file; Set the file interval for dividing the upgrade interval; Calculate [largest file - smallest file] / file interval = number of intervals q; Calculate the minimum file + file interval to get the first file; Calculate the minimum file + file interval * 2 to get the second file; …… Calculate the minimum file + file interval * (q-1) to get the q-1th file; Then, the interval formed by the smallest file and the first file is recorded as the first interval, the interval formed by the first file and the second file is recorded as the second interval...the interval formed by the q-1th file and the largest file is recorded as the qth interval; Obtain all upgrade files in the historical communication records and classify the upgrade files into corresponding intervals; For any interval; Get the upgrade duration of all upgrade files in the interval, calculate the average, and use it as the average upgrade duration of the interval.

8. The method for upgrading the power collection terminal according to claim 1, characterized in that: The execution of the upgrade end prediction strategy includes: The date when the upgrade sub-file starts to be sent is recorded as the first date; Get the number of date time sets and record it as the sending duration; Calculate the date of the first date + sending time - 1, and record it as the second date; Get the end time of the last communication period on the second date; Get the average upgrade time of the upgrade file interval; The time after the end time and the average upgrade duration is obtained as the time when the upgrade of the terminal to be upgraded is predicted to end.

Citation Information

Patent Citations

  • Low-voltage electric power acquisition terminal and electric power data communication method

    CN105491059A

  • Upgrading method for power collection system terminal

    CN107995044A

  • Firmware program upgrade method and electric energy meter thereof

    CN109388422A

  • Software upgrading method and electronic equipment

    CN111399876A

  • Electric energy meter, checking method therefor, and storage medium

    WO2018072455A1