A method, system and smart terminal for upgrading the topology of an electricity meter
By obtaining the scope and target information of the upgrade requirements, selecting the master unit and base meter information, and upgrading the smart energy meters in stages, the communication problem in the remote upgrade process is solved, and the success rate and integrity of the upgrade are improved.
Patent Information
- Application Number
- CN202510616327.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2045-05-14
AI Technical Summary
During the remote upgrade of smart meters, communication problems such as unstable signals and data transmission terminals can affect the success rate and completeness of the upgrade.
By obtaining the scope and target information of the upgrade requirements, the range of electricity meter information is determined, the range of main unit information is selected and the range of base meter information is defined, the main unit and base meters are upgraded using the upgrade data information, and the electricity meters within the range are upgraded in combination with the base meter upgrade control information.
This reduces the likelihood of communication problems such as signal instability and data transmission terminal issues, and improves the success rate and completeness of smart meter upgrades.
Smart Images

Figure CN120492000B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electricity meter technology, and in particular to an electricity meter topology upgrade method, system, and smart terminal. Background Technology
[0002] An electricity meter is an instrument used to measure electrical energy; it is also called an energy meter or watt-hour meter. Electricity meters include induction electricity meters, electronic electricity meters, and smart electricity meters.
[0003] Smart meters can collect electricity consumption data in real time and transmit the data to the power sector's monitoring center via communication networks, enabling real-time monitoring and analysis of users' electricity usage. When smart meters need new functions added, known vulnerabilities fixed, metering accuracy improved, or communication performance optimized, upgrades are required. Currently, remote upgrades are generally used. First, the smart meters within the upgrade scope are identified, and then the upgrade data is simultaneously transmitted to all smart meters within the upgrade scope, allowing for simultaneous upgrades.
[0004] When simultaneously performing remote upgrades on smart meters within the required upgrade range, communication problems such as unstable signals or data transmission terminals may arise, affecting the success rate and integrity of the smart meter upgrades. Summary of the Invention
[0005] To improve the success rate and integrity of smart meter upgrades, this invention provides a method, system, and smart terminal for upgrading smart meter topologies.
[0006] In a first aspect, the present invention provides a method for upgrading the topology of an energy meter, which adopts the following technical solution:
[0007] A method for upgrading the topology of an electricity meter, comprising:
[0008] Obtain information on the scope and objectives of the upgrade requirements;
[0009] Determine the scope of electricity meter information based on the upgrade requirements;
[0010] Retrieve upgrade data and upgrade type information based on upgrade target information;
[0011] Based on the upgrade scope and upgrade type information, select the range energy meter information to obtain the range master unit information, and use the range energy meter information other than the range master unit information as the range base meter information.
[0012] The smart energy meters corresponding to the range of main machine information are upgraded based on the upgrade data information;
[0013] The base meter upgrade control information is determined based on the range master unit information and the range base meter information, and the smart energy meter corresponding to the range base meter information is upgraded based on the base meter upgrade control information and upgrade data information.
[0014] Optional methods for selecting range master machine information include:
[0015] Retrieve the location point and version information of the range-bound energy meter based on the range-bound energy meter information;
[0016] The upgraded energy meter information is determined based on the energy meter version information and upgrade type information, and the range of energy meter location points corresponding to the upgraded energy meter information is defined as the upgraded energy meter location points;
[0017] Determine the center point of the scope based on the scope of the upgrade requirements;
[0018] Calculate the distance between the location of the upgraded electricity meter and the center point of the range, and use it as the center distance value of the electricity meter;
[0019] Determine whether the distance value of the center of the electricity meter falls within the preset distance selection benchmark range;
[0020] If so, the reference interval is selected based on the distance value of the center of the electricity meter and the preset distance to determine the number of distance values and the distance matching position points;
[0021] The distance matching energy meter information is determined based on the distance matching values and distance matching location points, and the distance matching energy meter information is used as the range master information;
[0022] If not, the energy meters are sorted from smallest to largest based on their center distance values, and the upgraded energy meter information corresponding to the center distance value of the first-ranked energy meter is used as the range master information.
[0023] Optionally, methods for determining distances that match electricity meter information include:
[0024] Determine if the distance matches only one of the given values;
[0025] If so, the upgraded energy meter information corresponding to the distance matching location point will be used as the distance matching energy meter information;
[0026] If not, then the range of energy meter locations other than the location point that matches the distance is defined as the location point that is far away from the location point, and the range of energy meter locations adjacent to the location point that matches the distance is defined as the adjacent location point.
[0027] Calculate the sum of the distances between the point that meets the distance requirement and each point that is far away from the location, and use this sum as the comprehensive value of the distance to the far-away location;
[0028] Calculate the sum of the distances between the point and its adjacent points and use it as the combined value of the distances between adjacent points;
[0029] The distance selection location is determined based on the combined value of the distance from the farthest location and the combined value of the distance from the adjacent location, and the upgraded energy meter information corresponding to the distance selection location is used as the distance-compliant energy meter information.
[0030] Optionally, methods for determining the distance to the selected location point include:
[0031] Sort the values based on the combined distance from the location from smallest to largest, and then obtain the sorted values based on the distance from the location.
[0032] Calculate the product between the distance sorting value and the preset distance sorting reference ratio value, and use it as the distance sorting reference result value;
[0033] Sort the adjacent locations by their combined distance values from smallest to largest, and then use the sorting results to obtain the sorted distance values for adjacent locations.
[0034] Calculate the product between the adjacent position distance sorting value and the preset adjacent sorting reference ratio value, and use it as the adjacent sorting reference result value;
[0035] Calculate the sum between the furthest sorting reference result value and the adjacent sorting reference result value, and use it as the comprehensive sorting reference result value;
[0036] Sort the results from largest to smallest based on the comprehensive results of the sorting reference, and use the distance matching position point corresponding to the first sorted comprehensive results value as the distance selection position point.
[0037] Optionally, it also includes a step following the calculation of the product between the adjacent position distance sorting value and the preset adjacent sorting reference ratio value, and using it as the adjacent sorting reference result value:
[0038] Based on the correspondence between upgrade type information and preset type time impact information, determine the type time impact information corresponding to the upgrade type information;
[0039] Get the current time point;
[0040] Retrieve the category time impact value from the category time impact information based on the current time point;
[0041] Based on the correspondence between the upgrade type information and the preset type distance influence value, the type distance influence value corresponding to the upgrade type information is determined;
[0042] The influence value of species selection is determined based on the influence value of species time and the influence value of species distance.
[0043] The influence value is selected based on the category to adjust the adjacent sorting reference result value to form a new adjacent sorting reference result value and then replace it.
[0044] Optional methods for determining the influence value of category selection include:
[0045] Determine whether the influence value of category time is greater than the influence value of category distance;
[0046] If so, the time-related influence value of the category will be used as the category selection influence value;
[0047] If not, calculate the difference between the species time influence value and the species distance influence value and use it as the time distance influence deviation value;
[0048] Based on the correspondence between the time-distance influence deviation value and the preset distance influence adjustment value, the distance influence adjustment value corresponding to the time-distance influence deviation value is determined;
[0049] The sum of the distance influence adjustment value and the category time influence value is calculated and used as the distance influence correction value, and the distance influence correction value is used as the category selection influence value.
[0050] Optionally, methods for determining base table upgrade control information include:
[0051] Retrieve the location point and working time information of the range master machine based on the range master machine information;
[0052] Retrieve the location points and working time information of the range base table based on the range base table information;
[0053] Calculate the distance between the range mother machine location point and the range base table location point and use it as the mother machine base table distance value;
[0054] Sort the distance values of the mother machine base table from smallest to largest, and obtain the sorted distance values between the two tables based on the sorting results;
[0055] Calculate the product between the two table distance sorting values and the preset two table distance sorting reference influence value, and use it as the two table distance sorting reference result value;
[0056] The upgrade time information is determined based on the working time information of the range master machine and the working time information of the range base table.
[0057] Based on the distance sorting reference value between the two tables and the upgrade time information, the control information of the selected base table is determined, and the control information of the selected base table is used as the upgrade control information of the base table.
[0058] Optionally, the methods for determining the base table control information include:
[0059] Retrieve the upgrade start time and upgrade end time based on upgrade time information;
[0060] Calculate the time interval between the upgrade start time and the upgrade end time and use it as the upgrade duration value;
[0061] Based on the correspondence between the upgrade duration value and the preset duration selection reference value, the duration selection reference value corresponding to the upgrade duration value is determined.
[0062] Calculate the intermediate time between the upgrade start time and the upgrade end time and use it as the upgrade intermediate time point;
[0063] Based on the correspondence between the upgrade intermediate time point and the preset intermediate time selection reference value, the intermediate time selection reference value corresponding to the upgrade intermediate time point is determined.
[0064] Calculate the sum between the distance sorting reference value, the duration selection reference value, and the intermediate time selection reference value of the two tables, and use it as the comprehensive reference value for the base table selection;
[0065] Based on the base table selection reference comprehensive value, sort them from largest to smallest, and use the range base table information corresponding to the first sorted base table selection reference comprehensive value as the base table selection information, and use the upgrade time information corresponding to the base table selection information as the base table selection time information.
[0066] Based on the correspondence between the base table selection time information, the base table selection information and the preset base table selection integrated control information, the base table selection integrated control information corresponding to the base table selection time information and the base table selection information is determined, and the base table selection integrated control information is used as the base table selection control information.
[0067] Secondly, this invention provides an energy meter topology upgrade system, which adopts the following technical solution:
[0068] An electricity meter topology upgrade system, comprising:
[0069] The acquisition module is used to acquire the scope of the upgrade requirements, the upgrade target information, and the current time.
[0070] A memory for storing a method for upgrading an energy meter topology as described in any one of the first aspects;
[0071] The processor loads and executes programs from memory.
[0072] Thirdly, the present invention provides a smart terminal, which adopts the following technical solution:
[0073] A smart terminal includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute a method for upgrading the topology of an energy meter as described in any one of the first aspects.
[0074] In summary, the present invention has at least one of the following beneficial technical effects:
[0075] 1. By acquiring and determining the scope and target information of the upgrade requirements and the range of smart meters, and then retrieving upgrade data and upgrade type information, the range master unit information is selected and the range base meter information is defined. The upgrade data information is used to upgrade the smart meters corresponding to the range master unit information. The range master unit information and the range base meter information are used to determine the base meter upgrade control information, and the base meter upgrade control information and upgrade data information are used to upgrade the smart meters corresponding to the range base meter information. In this way, the smart meters within the scope of the upgrade requirements are upgraded in sequence, reducing the probability of encountering communication problems such as unstable signals or data transmission terminals, and improving the success rate and completeness of smart meter upgrades.
[0076] 2. Retrieve the location and version information of the range energy meters through the range energy meter information, and determine the upgrade energy meter information and location point through the energy meter version information and upgrade type information. Determine the range center point through the required upgrade range and calculate the center distance value of the energy meter. Select the benchmark interval by judging whether the center distance value of the energy meter falls within the preset distance to determine the range master unit information, thereby improving the accuracy of the obtained range master unit information;
[0077] 3. By determining whether there is only one distance matching value, if there is only one, the upgraded energy meter information corresponding to the distance matching location point is used as the distance matching energy meter information. If there is more than one, distance-farthened location points and adjacent location points are defined, and the comprehensive distance values of the distance-farthened location point and the comprehensive distance values of the adjacent location point are calculated respectively to determine the distance selection location point. The upgraded energy meter information corresponding to the distance selection location point is used as the distance matching energy meter information, thereby improving the accuracy of the obtained distance matching energy meter information. Attached Figure Description
[0078] Figure 1 This is a flowchart of a method for upgrading the topology of an energy meter according to an embodiment of this application;
[0079] Figure 2 This is a flowchart of the method for selecting range master machine information according to an embodiment of this application;
[0080] Figure 3 This is a flowchart of a method for determining distance-compliant electricity meter information according to an embodiment of this application;
[0081] Figure 4 This is a flowchart of the method for determining the distance selection location point according to an embodiment of this application;
[0082] Figure 5This is a flowchart of a method following the steps in this application embodiment, which involves calculating the product between the adjacent position distance sorting value and the preset adjacent sorting reference ratio value and using it as the adjacent sorting reference result value.
[0083] Figure 6 This is a flowchart illustrating the method for determining the influence value of type selection in an embodiment of this application;
[0084] Figure 7 This is a flowchart of a method for determining base table upgrade control information according to an embodiment of this application. Detailed Implementation
[0085] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.
[0086] A method for upgrading the topology of electricity meters is proposed. By acquiring the upgrade scope, upgrade target information, and current time, the method analyzes and determines the range master unit information and upgrades the smart meters corresponding to the range master unit information. Then, it analyzes and determines the range base meter information and upgrades the smart meters corresponding to the range base meter information. This reduces the probability of encountering communication problems such as unstable signals or data transmission terminals, and improves the success rate and integrity of smart meter upgrades.
[0087] Reference Figure 1 This invention discloses a method for upgrading the topology of an electricity meter, comprising:
[0088] Step S100: Obtain information on the scope and target of the upgrade.
[0089] The upgrade scope refers to the area where smart meters need to be upgraded, and this scope is obtained through pre-input. The upgrade target information refers to the data, type, and other information about the smart meters that needs to be improved; this target information is also obtained through pre-input.
[0090] Step S101: Determine the range of electricity meter information based on the required upgrade range.
[0091] Among them, the range of electricity meter information refers to the model, location, version and other parameter information of smart electricity meters within the upgrade range. By querying the smart electricity meters within the required upgrade range, the retrieved smart electricity meters are combined with the model and other parameters according to their location to form the range of electricity meter information, which is convenient for subsequent use.
[0092] Step S102: Retrieve upgrade data information and upgrade type information based on upgrade target information.
[0093] The upgrade target information includes upgrade data information and upgrade type information. Upgrade data information refers to the data information corresponding to the smart meter that needs to be upgraded, and upgrade type information refers to the type of data to be upgraded in the smart meter. The upgrade target information allows for the retrieval of both upgrade data and upgrade type information for convenient subsequent use.
[0094] Step S103: Select range energy meter information according to the required upgrade range and upgrade type information to obtain range master unit information, and use range energy meter information other than range master unit information as range base meter information.
[0095] The range master meter information refers to the location and operating time parameters of the smart meters that are prioritized for upgrade, while the range base meter information refers to the parameter information of the smart meters that are not prioritized for upgrade. By analyzing the required upgrade range and upgrade type information, the range meter information is selected to obtain the range master meter information, and the range base meter information is defined for convenient subsequent use. The range master meter information can be selected directly from any smart meter, or it can be selected by referring to steps S200 to S207.
[0096] Step S104: Upgrade the smart energy meters corresponding to the range master unit information based on the upgrade data information.
[0097] In this way, by using upgrade data information to prioritize the upgrade of smart meters corresponding to the range master unit information, the probability of encountering communication problems such as unstable signals or data transmission terminals is reduced, thereby improving the success rate and integrity of smart meter upgrades.
[0098] Step S105: Determine the base meter upgrade control information based on the range master unit information and the range base meter information, and upgrade the smart energy meter corresponding to the range base meter information based on the base meter upgrade control information and upgrade data information.
[0099] Among them, the base meter upgrade control information refers to the control information used to control the master unit to upgrade the base meters. By analyzing the range of master unit information and range of base meter information, the base meter upgrade control information is determined. Then, the smart meters corresponding to the range of base meter information are upgraded using the base meter upgrade control information and upgrade data information. This further reduces the probability of encountering communication problems such as unstable signals or data transmission terminals, thereby improving the success rate and integrity of smart meter upgrades. The specific steps for determining the base meter upgrade control information are described in steps S700 to S706.
[0100] exist Figure 1 In step S103, to further ensure the rationality of the range master machine information, it is necessary to perform further separate analysis and calculation on the range master machine information, specifically through... Figure 2 The steps shown are explained in detail.
[0101] Reference Figure 2 The method for selecting range of master machine information includes the following steps:
[0102] Step S200: Retrieve the location point and version information of the range energy meter based on the range energy meter information.
[0103] The range meter information includes the location of the smart meters within the upgrade range and their version information. The location of the smart meters refers to the location of the smart meters within the upgrade range, and the version information refers to the current version of the smart meters within the upgrade range. Retrieving the location and version information of the smart meters within the range facilitates subsequent use.
[0104] Step S201: Determine the upgraded energy meter information based on the energy meter version information and upgrade type information, and define the range of energy meter location points corresponding to the upgraded energy meter information as the upgraded energy meter location points.
[0105] Among them, "upgraded energy meter information" refers to the parameter information corresponding to the smart energy meters that can be upgraded, and "upgraded energy meter location point" refers to the location of the smart energy meter being upgraded. The upgrade type information is used to query the available upgrade versions, and the parameters corresponding to the smart energy meters that can be successfully matched in the version information are used as the upgrade energy meter information. The upgrade energy meter location point is also defined for convenient subsequent use.
[0106] Step S202: Determine the center point of the scope based on the upgrade requirements.
[0107] The range center point refers to the center location of the upgrade range. The range center point is obtained by retrieving the outline of the required upgrade range and calculating the center location based on the outline, which is convenient for subsequent use.
[0108] Step S203: Calculate the distance between the location of the upgraded electricity meter and the center point of the range and use it as the center distance value of the electricity meter.
[0109] Among them, the center distance value of the electricity meter refers to the distance between the location of the upgradeable smart electricity meter and the center of the range. The distance between the location of the upgraded electricity meter and the center of the range is calculated and used as the center distance value of the electricity meter for convenient subsequent use.
[0110] Step S204: Determine whether the distance value of the center of the electricity meter falls within the preset distance selection reference range. If yes, proceed to step S205; if no, proceed to step S207.
[0111] The distance selection benchmark interval refers to the benchmark distance range required for normal upgrades, which is obtained through pre-input. By judging whether the center distance value of the electricity meter falls within the preset distance selection benchmark interval, it is determined whether there are any smart electricity meters within the range that can be upgraded.
[0112] Step S205: Based on the distance value of the center of the electricity meter and the preset distance, select the reference interval to determine the number of distance values and the distance matching position points.
[0113] The "distance matching number" refers to the number of upgradable smart meters within the specified range, while the "distance matching location point" refers to the location of an upgradable smart meter within the specified range. When the center distance value of a meter falls within a preset distance selection benchmark interval, it indicates the presence of an upgradable smart meter within that range. Therefore, by analyzing the occurrence of the meter center distance values within the preset distance selection benchmark interval, the location points corresponding to these meter center distance values are designated as distance matching location points. The number of these distance matching location points is then counted, and the count result is used as the distance matching number for subsequent use.
[0114] Step S206: Determine the distance matching energy meter information based on the distance matching values and distance matching location points, and use the distance matching energy meter information as the range master information.
[0115] Among them, the distance-compliant energy meter information refers to the parameter information corresponding to the selected smart energy meters that meet the distance requirement. By analyzing the distance compliance values and distance compliance location points, the distance-compliant energy meter information is determined and used as the range master information to improve the accuracy of the obtained range master information. The specific steps for determining the distance-compliant energy meter information are described in steps S300 to S305.
[0116] Step S207: Sort the energy meter center distance values from smallest to largest, and use the upgraded energy meter information corresponding to the center distance value of the first ranked energy meter as the range master information.
[0117] When no energy meter center distance value falls within the preset distance selection benchmark range, it indicates that there are no smart energy meters that can be upgraded within the range. Therefore, the energy meter center distance values are sorted from smallest to largest, and the upgraded energy meter information corresponding to the energy meter center distance value with the largest sorted center distance value is used as the range master information, thereby improving the accuracy of the obtained range master information.
[0118] exist Figure 2In step S206, to further ensure the rationality of the distance-compliant energy meter information, it is necessary to perform further separate analysis and calculation on the distance-compliant energy meter information. Specifically, this is done through... Figure 3 The steps shown are explained in detail.
[0119] Reference Figure 3 The method for determining the distance to the electricity meter information includes the following steps:
[0120] Step S300: Determine whether the distance matches only one value. If yes, proceed to step S301; if no, proceed to step S302.
[0121] Among them, by judging whether the distance matches only one value, it is determined whether the mother machine can be directly selected.
[0122] Step S301: Use the upgraded energy meter information corresponding to the distance matching location point as the distance matching energy meter information.
[0123] When there is only one distance matching value, it means that the mother machine can be directly selected. Therefore, the upgrade energy meter information corresponding to the distance matching location point is used as the distance matching energy meter information, so as to facilitate the quick acquisition of the distance matching energy meter information.
[0124] Step S302: Define the range of energy meter locations other than the distance matching location point as the distance farthest location point, and define the range of energy meter locations adjacent to the distance matching location point as the adjacent location point.
[0125] Here, "distant location point" refers to the location of a smart meter that is not within the distance selection benchmark range, while "adjacent location point" refers to the location of a smart meter adjacent to a smart meter that is within the distance selection benchmark range. If there is more than one distance value, it means that the main unit cannot be directly selected. Therefore, "distant location point" and "adjacent location point" are defined for ease of use later.
[0126] Step S303: Calculate the sum of the distances between the distance matching the location point and each distance far away from the location point, and use it as the comprehensive value of the distance far away from the location point.
[0127] The comprehensive distance value refers to the total distance between smart meters located within and outside the selected distance reference range. This comprehensive distance value is obtained by calculating the distances between the distance-compliant location point and each distance-away point, and then summing the calculated distance values for convenient subsequent use.
[0128] Step S304: Calculate the sum of the distances between the location point and its adjacent locations and use it as the comprehensive value of the distances between adjacent locations.
[0129] The comprehensive distance value between adjacent locations refers to the total distance between a smart meter within the selected distance reference interval and its adjacent smart meters. This comprehensive distance value is obtained by calculating the distance between a matching location point and its adjacent locations, and then summing these calculated distance values for convenient subsequent use.
[0130] Step S305: Determine the distance selection location point based on the comprehensive value of the distance from the far location and the comprehensive value of the distance from the adjacent location, and use the upgraded energy meter information corresponding to the distance selection location point as the distance-compliant energy meter information.
[0131] The distance-selected location point refers to the location of the smart meter selected based on the distance to the farthest location and the distance to the adjacent location. By analyzing the combined value of the distance to the farthest location and the combined value of the distance to the adjacent location, the distance-selected location point is determined, and the upgraded energy meter information corresponding to the distance-selected location point is used as the distance-compliant energy meter information, thereby improving the accuracy of the obtained distance-compliant energy meter information.
[0132] exist Figure 3 In step S305, to further ensure the rationality of the selected distance location, it is necessary to perform further separate analysis and calculation on the selected distance location. Specifically, this is done through... Figure 4 The steps shown are explained in detail.
[0133] Reference Figure 4 The method for determining the distance to the selected location point includes the following steps:
[0134] Step S400: Sort the values based on the combined distance from the remote location in ascending order, and obtain the sorted values based on the sorting results.
[0135] Among them, the distance sorting value refers to the sorting value determined based on the sorting result of the comprehensive distance value. The comprehensive distance value is sorted from smallest to largest, and the distance sorting value is obtained based on the sorting result for convenient use later.
[0136] Step S401: Calculate the product between the distance sorting value and the preset distance sorting reference ratio value, and use it as the distance sorting reference result value.
[0137] The distance-from-location-range reference ratio refers to the ratio used when referencing the sorting result based on the comprehensive distance-from-location-range value. This ratio is obtained after pre-input. The distance-from-location-range reference result value refers to the result value used as a reference when referencing the sorting result based on the comprehensive distance-from-location-range value. The distance-from-location-range sorting value is calculated by multiplying the sorting result value by the preset distance-from-location-range reference ratio, and this product is used as the distance-from-location-range reference result value for convenient subsequent use.
[0138] Step S402: Sort the adjacent positions in ascending order based on the comprehensive value of the distance between adjacent positions, and obtain the sorted value of the distance between adjacent positions based on the sorting result.
[0139] Among them, the adjacent position distance sorting value refers to the sorting value determined based on the sorting result of the comprehensive value of the adjacent position distance. The adjacent position distance sorting value is obtained by sorting the comprehensive value of the adjacent position distance from smallest to largest, and the adjacent position distance sorting value is obtained based on the sorting result, which is convenient for subsequent use.
[0140] Step S403: Calculate the product between the adjacent position distance sorting value and the preset adjacent sorting reference ratio value, and use it as the adjacent sorting reference result value.
[0141] The adjacent sorting reference ratio value refers to the proportion used when referencing the sorting result based on the comprehensive value of the distance between adjacent positions. This adjacent sorting reference ratio value is obtained after pre-input. The adjacent sorting reference result value refers to the result value used as a reference when referencing the sorting result based on the comprehensive value of the distance between adjacent positions. The adjacent sorting reference result value is calculated by multiplying the adjacent position distance sorting value by the preset adjacent sorting reference ratio value, facilitating subsequent use.
[0142] Step S404: Calculate the sum between the furthest sorting reference result value and the adjacent sorting reference result value, and use it as the comprehensive sorting reference result value.
[0143] Among them, the sorting reference comprehensive result value refers to the comprehensive result value when the sorting result is used as a reference. It is calculated by the sum between the sorting reference result value far away and the adjacent sorting reference result value and used as the sorting reference comprehensive result value for convenient subsequent use.
[0144] Step S405: Sort the results from largest to smallest based on the sorting reference comprehensive result value, and use the distance matching position point corresponding to the sorting reference comprehensive result value with the first sort as the distance selection position point.
[0145] Specifically, by sorting the comprehensive results of the sorting reference from largest to smallest, and taking the distance matching position point corresponding to the first sorting reference comprehensive result value as the distance selection position point, the obtained distance selection position point is simultaneously affected by the distance to the farthest position and the distance to the adjacent position, thereby improving the accuracy of the obtained distance selection position point.
[0146] exist Figure 4 Following step S403, to further ensure the rationality of adjacent sorting reference result values, it is necessary to perform further separate analysis and calculation on the adjacent sorting reference result values. Specifically, this is done through... Figure 5 The steps shown are explained in detail.
[0147] Reference Figure 5 The steps following the calculation of the product between the adjacent position distance sorting value and the preset adjacent sorting reference ratio value, and using it as the adjacent sorting reference result value, include the following steps:
[0148] Step S500: Determine the type time impact information corresponding to the upgrade type information based on the correspondence between the upgrade type information and the preset type time impact information.
[0149] Among them, the type-time impact information refers to the impact information of upgrade types at different times. Different upgrade types correspond to different type-time impact information, which is obtained by querying a database that stores different upgrade types and their corresponding type-time impact information. This database is obtained after pre-input. Determining the type-time impact information through upgrade type information query facilitates subsequent use.
[0150] Step S501: Obtain the current time point.
[0151] The current time point refers to the current time, which is obtained by querying the database that keeps track of time in real time.
[0152] Step S502: Retrieve the type time influence value from the type time influence information based on the current time point.
[0153] Among them, the category time impact value refers to the impact value of the upgraded category at the current time. By querying the category time impact information for the impact value of the time consistent with the current time point and retrieving it as the category time impact value, it is convenient for subsequent use.
[0154] Step S503: Determine the type distance influence value corresponding to the upgrade type information based on the correspondence between the upgrade type information and the preset type distance influence value.
[0155] Among them, the species distance influence value refers to the degree of influence of distance on the upgraded species. Different upgrade species information corresponds to different species distance influence values. The species distance influence value is obtained by querying a database that stores different upgrade species information and their corresponding species distance influence values. This database is obtained after pre-input. Determining the species distance influence value by querying upgrade species information facilitates subsequent use.
[0156] Step S504: Determine the influence value of species selection based on the influence value of species time and the influence value of species distance.
[0157] The category selection impact value refers to the degree of influence that the upgraded category has on the selection process. This impact value is determined by analyzing the category time impact value and the category distance impact value, facilitating subsequent use. The specific steps for determining the category selection impact value are detailed in steps S600 to S604.
[0158] Step S505: Select an influence value based on the category to adjust the adjacent sorting reference result value to form a new adjacent sorting reference result value and replace it.
[0159] Specifically, the accuracy of the obtained adjacent sorting reference results is improved by calculating the product between the influence value of category selection and the adjacent sorting reference result value, and then using the calculated result as the new adjacent sorting reference result value.
[0160] exist Figure 5 In step S504, to further ensure the rationality of the influence value of species selection, it is necessary to perform a further separate analysis and calculation of the influence value of species selection. Specifically, this is done through... Figure 6 The steps shown are explained in detail.
[0161] Reference Figure 6 The method for determining the influence value of category selection includes the following steps:
[0162] Step S600: Determine whether the influence value of the type time is greater than the influence value of the type distance. If yes, proceed to step S601; if no, proceed to step S602.
[0163] In this process, the influence of time on a species is determined by whether the influence of species distance is greater than that on the species, thus determining whether the influence of time can be directly applied.
[0164] Step S601: Use the time-related influence value of the category as the influence value for category selection.
[0165] When the influence value of species time is greater than the influence value of species distance, it means that the influence of time can be directly used. Therefore, the influence value of species time is used as the influence value for species selection.
[0166] Step S602: Calculate the difference between the type time influence value and the type distance influence value and use it as the time distance influence deviation value.
[0167] The time-distance influence deviation value refers to the deviation value when there is a discrepancy between the influence caused by time and the influence caused by distance. When the time influence value of a species is not greater than the distance influence value of a species, it means that the influence caused by time cannot be directly used. Therefore, the difference between the time influence value and the distance influence value of a species is calculated and used as the time-distance influence deviation value for convenient subsequent use.
[0168] Step S603: Determine the distance influence adjustment value corresponding to the time distance influence deviation value based on the correspondence between the time distance influence deviation value and the preset distance influence adjustment value.
[0169] The distance impact adjustment value refers to the adjustment value made based on the degree of influence of the deviation between time and distance on the degree of influence. Different time-distance impact deviation values correspond to different distance impact adjustment values. The distance impact adjustment value is obtained by querying a database that stores different time-distance impact deviation values and their corresponding distance impact adjustment values. This database is obtained after pre-input. Determining the distance impact adjustment value through the time-distance impact deviation value query facilitates subsequent use.
[0170] Step S604: Calculate the sum between the distance influence adjustment value and the category time influence value and use it as the distance influence correction value, and use the distance influence correction value as the category selection influence value.
[0171] Among them, the distance influence correction value refers to the correction value after adjusting the degree of influence of time. It is calculated by the sum of the distance influence adjustment value and the category time influence value and used as the distance influence correction value. The distance influence correction value is also used as the category selection influence value, thereby improving the accuracy of the obtained category selection influence value.
[0172] exist Figure 1 In step S105, to further ensure the rationality of the base table upgrade control information, it is necessary to perform further separate analysis and calculation on the base table upgrade control information. Specifically, this is done through... Figure 7 The steps shown are explained in detail.
[0173] Reference Figure 7 The method for determining the base table upgrade control information includes the following steps:
[0174] Step S700: Retrieve the location point and working time information of the range master machine based on the range master machine information.
[0175] The range-bound machine information includes the location points and operating times of the selected machines within the range. The location points refer to the exact locations of the selected machines within the range, and the operating times refer to the times during which the selected machines operate. This range-bound machine information allows for the retrieval of the location points and operating times for convenient subsequent use.
[0176] Step S701: Retrieve the location points and working time information of the range base table based on the range base table information.
[0177] The range base table information includes the location point and working time information of the range base table. The location point refers to the position of the base table within the range, and the working time information refers to the time information corresponding to the base table's operation within the range. Retrieving the location point and working time information of the range base table facilitates subsequent use.
[0178] Step S702: Calculate the distance between the range mother machine location point and the range base table location point and use it as the mother machine base table distance value.
[0179] Among them, the distance value between the mother machine and the base table refers to the distance between the mother machine and the base table. The distance between the location points of the mother machine and the location points of the base table within the range is calculated and used as the distance value between the mother machine and the base table for convenient use later.
[0180] Step S703: Sort the distance values of the mother machine base table from smallest to largest, and obtain the sorted distance values between the two tables based on the sorting results.
[0181] The distance sorting value between the two tables refers to the sorting value after sorting based on the distance between the master table and the base table. The distance sorting value between the master table and the base table is sorted from smallest to largest, and the distance sorting value between the two tables is obtained based on the sorting result, which facilitates subsequent use.
[0182] Step S704: Calculate the product between the two table distance sorting values and the preset two table distance sorting reference influence value, and use it as the two table distance sorting reference result value.
[0183] The two-table distance sorting reference influence value refers to the degree of influence generated when the sorting result is referenced based on the distance between the master machine and the base table. This value is obtained after pre-input. The two-table distance sorting reference result value refers to the result value corresponding to the sorting result based on the distance between the master machine and the base table. It is calculated by multiplying the two-table distance sorting value by the preset two-table distance sorting reference influence value and used as the two-table distance sorting reference result value.
[0184] Step S705: Determine the upgrade time information based on the range master machine working time information and the range base table working time information.
[0185] Among them, the upgrade time information refers to the time information corresponding to the upgrade of the base table by the master machine. By analyzing the working time information of the master machine and the working time information of the base table within the range, the overlap time between the working time of the master machine and the working time of the base table is used as the upgrade time information for convenient use in the future.
[0186] Step S706: Determine the base table control information based on the distance sorting reference result value between the two tables and the upgrade time information, and use the selected base table control information as the base table upgrade control information.
[0187] Among them, the base table control information refers to the control information used to control the master machine to upgrade the selected base table. By analyzing the distance sorting reference result value between the two tables and the upgrade time information, the selected base table control information is determined and used as the base table upgrade control information, thereby improving the accuracy of the obtained base table upgrade control information. The specific steps for determining the selected base table control information are described in steps S800 to S807.
[0188] exist Figure 7 In step S706, in order to further ensure the rationality of the selected base table control information, it is necessary to perform further separate analysis and calculation on the selected base table control information, which will be explained in detail in the following steps.
[0189] The method for determining the base table control information includes the following steps:
[0190] Step S800: Retrieve the upgrade start time and upgrade end time based on the upgrade time information.
[0191] The upgrade time information includes the upgrade start time and the upgrade end time. The upgrade start time refers to the time when the upgrade begins, and the upgrade end time refers to the time when the upgrade ends. Retrieving the upgrade start and end times from this information facilitates subsequent use.
[0192] Step S801: Calculate the interval between the upgrade start time and the upgrade end time and use it as the upgrade duration value.
[0193] The upgrade duration value refers to the duration required for the upgrade. It is calculated by taking the time interval between the start and end times of the upgrade and used as the upgrade duration value for future use.
[0194] Step S802: Determine the duration selection reference value corresponding to the upgrade duration value based on the correspondence between the upgrade duration value and the preset duration selection reference value.
[0195] The duration selection reference value refers to the reference value corresponding to the duration required for the upgrade. Different upgrade duration values correspond to different duration selection reference values. The duration selection reference value is obtained by querying a database that stores different upgrade duration values and their corresponding duration selection reference values. This database is obtained after pre-input. Determining the duration selection reference value through the upgrade duration value query facilitates subsequent use.
[0196] Step S803: Calculate the intermediate time between the upgrade start time and the upgrade end time and use it as the upgrade intermediate time point.
[0197] The intermediate upgrade time point refers to the midpoint of the upgrade period. It is calculated by taking the midpoint between the upgrade start time and the upgrade end time and using it as the intermediate upgrade time point for convenient use later.
[0198] Step S804: Determine the intermediate time selection reference value corresponding to the upgrade intermediate time point based on the correspondence between the upgrade intermediate time point and the preset intermediate time selection reference value.
[0199] The intermediate time selection reference value refers to the reference value corresponding to the midpoint of the upgrade period. Different upgrade midpoints correspond to different intermediate time selection reference values. These reference values are obtained by querying a database that stores different upgrade midpoints and their corresponding intermediate time selection reference values. This database is retrieved after pre-input. Determining the intermediate time selection reference value through upgrade midpoint query facilitates subsequent use.
[0200] Step S805: Calculate the sum of the distance sorting reference result value, the duration selection reference value, and the intermediate time selection reference value between the two tables, and use it as the base table selection reference comprehensive value.
[0201] The base table selection reference comprehensive value refers to the comprehensive value used when selecting a base table. It is calculated by summing the distance sorting reference value between the two tables, the duration selection reference value, and the intermediate time selection reference value, and used as the base table selection reference comprehensive value for convenient subsequent use.
[0202] Step S806: Sort the reference comprehensive values of the base table from largest to smallest, and use the range of base table information corresponding to the first-ranked base table reference comprehensive value as the base table selection information, and use the upgrade time information corresponding to the base table selection information as the base table selection time information.
[0203] Among them, the base table selection information refers to the parameter information corresponding to the selected base table, and the base table selection time information refers to the time information for upgrading the selected base table. By sorting the base table selection reference comprehensive values from largest to smallest, the range of base table information corresponding to the top-ranked base table selection reference comprehensive value is used as the base table selection information, and the upgrade time information corresponding to the base table selection information is used as the base table selection time information, thus facilitating subsequent use.
[0204] Step S807: Based on the correspondence between the base table selection time information, the base table selection information and the preset base table selection comprehensive control information, determine the base table selection comprehensive control information corresponding to the base table selection time information and the base table selection information, and use the base table selection comprehensive control information as the base table selection control information.
[0205] Among them, the comprehensive control information for base table selection refers to the control information for upgrading the selected base table at the upgrade time. Different base table selection time information and base table selection information correspond to different comprehensive control information for base table selection. The comprehensive control information for base table selection is obtained by querying a database that stores different base table selection time information and base table selection information and their corresponding comprehensive control information. This database is obtained after pre-input. By querying the base table selection time information and base table selection information to obtain the comprehensive control information for base table selection, and using the comprehensive control information for base table selection, the accuracy of the obtained base table selection control information is improved.
[0206] Based on the same inventive concept, embodiments of the present invention provide an energy meter topology upgrade system, comprising:
[0207] The acquisition module is used to acquire the scope of the upgrade requirements, the upgrade target information, and the current time.
[0208] A memory for storing a method for upgrading an energy meter topology, as described above.
[0209] The processor loads and executes programs from memory.
[0210] Based on the same inventive concept, embodiments of the present invention provide a smart terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed as described above for a method of upgrading the topology of an electricity meter.
[0211] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0212] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. A method for topology upgrade of an electric energy meter, characterized in that, The method comprises the following steps: obtaining the upgrade range and target information of the demand; determining the range electric energy meter information according to the upgrade range of the demand; calling the upgrade data information and the upgrade type information based on the upgrade target information; selecting the range master meter information from the range electric energy meter information according to the upgrade range of the demand and the upgrade type information, and taking the range electric energy meter information other than the range master meter information as the range base meter information; upgrading the smart electric energy meter corresponding to the range master meter information based on the upgrade data information; determining the base meter upgrade control information according to the range master meter information and the range base meter information, and upgrading the smart electric energy meter corresponding to the range base meter information based on the base meter upgrade control information and the upgrade data information; the selection method of the range master meter information comprises the following steps: calling the range electric energy meter position points and the electric energy meter version information based on the range electric energy meter information; determining the upgrade electric energy meter information according to the electric energy meter version information and the upgrade type information, and defining the range electric energy meter position point corresponding to the upgrade electric energy meter information as the upgrade electric energy meter position point; determining the range center point according to the upgrade range of the demand; calculating the distance value between the upgrade electric energy meter position point and the range center point as the electric energy meter center distance value; judging whether the electric energy meter center distance value falls into the preset distance selection reference interval; if yes, determining the distance compliance number value and the distance compliance position point based on the falling situation of the electric energy meter center distance value and the preset distance selection reference interval; determining the distance compliance electric energy meter information according to the distance compliance number value and the distance compliance position point, and taking the distance compliance electric energy meter information as the range master meter information; if no, sorting the electric energy meter center distance value from small to large, and taking the upgrade electric energy meter information corresponding to the first sorted electric energy meter center distance value as the range master meter information; the determination method of the distance compliance electric energy meter information comprises the following steps: judging whether the distance compliance number value is only one; if yes, taking the upgrade electric energy meter information corresponding to the distance compliance position point as the distance compliance electric energy meter information; if no, defining the range electric energy meter position points other than the distance compliance position point as the distance faraway position points, and defining the range electric energy meter position points adjacent to the distance compliance position point as the adjacent position points; calculating the sum of distances between the distance compliance position point and each distance faraway position point as the faraway position distance comprehensive value; calculating the sum of distances between the distance compliance position point and the adjacent position points as the adjacent position distance comprehensive value; determining the distance selection position point according to the faraway position distance comprehensive value and the adjacent position distance comprehensive value, and taking the upgrade electric energy meter information corresponding to the distance selection position point as the distance compliance electric energy meter information.
2. The method of claim 1, wherein, the determination method of the distance selection position point comprises the following steps: sorting the faraway position distance comprehensive value from small to large, and obtaining the faraway position distance sorting value according to the sorting result; calculating the product value between the faraway position distance sorting value and the preset faraway sorting reference ratio value as the faraway sorting reference result value; sorting the adjacent position distance comprehensive value from small to large, and obtaining the adjacent position distance sorting value according to the sorting result; A product value between the adjacent position distance ranking value and a preset adjacent ranking reference ratio value is calculated and used as an adjacent ranking reference result value; A sum value between the far ranking reference result value and the adjacent ranking reference result value is calculated and used as a ranking reference comprehensive result value; Based on the ranking reference comprehensive result value, a descending ranking is performed, and a distance meeting position point corresponding to a ranking reference comprehensive result value ranked first is used as a distance selection position point.
3. The method of claim 2, wherein, The method further includes a step after calculating a product value between the adjacent position distance ranking value and a preset adjacent ranking reference ratio value and using the product value as an adjacent ranking reference result value: According to a corresponding relationship between the upgrade category information and preset category time influence information, category time influence information corresponding to the upgrade category information is determined; A current time point is obtained; Based on the current time point, a category time influence value is retrieved from the category time influence information; According to a corresponding relationship between the upgrade category information and preset category distance influence values, a category distance influence value corresponding to the upgrade category information is determined; A category selection influence value is determined according to the category time influence value and the category distance influence value; Based on the category selection influence value, the adjacent ranking reference result value is adjusted to form a new adjacent ranking reference result value and replace the adjacent ranking reference result value.
4. The method of claim 3, wherein, The method for determining the category selection influence value includes: It is determined whether the category time influence value is greater than the category distance influence value; If yes, the category time influence value is used as the category selection influence value; If no, a difference value between the category time influence value and the category distance influence value is calculated and used as a time distance influence deviation value; According to a corresponding relationship between the time distance influence deviation value and preset distance influence adjustment values, a distance influence adjustment value corresponding to the time distance influence deviation value is determined; A sum value between the distance influence adjustment value and the category time influence value is calculated and used as a distance influence correction value, and the distance influence correction value is used as the category selection influence value.
5. The method of claim 1, wherein, The method for determining the base table upgrade control information includes: Based on the range master information, a range master position point and range master working time information are retrieved; Based on the range base table information, a range base table position point and range base table working time information are retrieved; A distance between the range master position point and the range base table position point is calculated and used as a master base table distance value; Based on the master base table distance value, a descending ranking is performed, and a two-table distance ranking value is obtained according to a ranking result; A product value between the two-table distance ranking value and a preset two-table distance ranking reference influence value is calculated and used as a two-table distance ranking reference result value; Upgrade time information is determined according to the range master working time information and the range base table working time information; Selected base table control information is determined according to the two-table distance ranking reference result value and the upgrade time information, and the selected base table control information is used as the base table upgrade control information.
6. The method of claim 5, wherein, The method for determining the selected base table control information includes: Based on the upgrade time information, an upgrade start time point and an upgrade end time point are retrieved; An interval time between the upgrade start time point and the upgrade end time point is calculated and used as an upgrade duration value; According to the correspondence between the upgrade duration value and the preset duration selection reference value, the duration selection reference value corresponding to the upgrade duration value is determined; The intermediate time between the upgrade start time point and the upgrade end time point is calculated as the upgrade intermediate time point; According to the correspondence between the upgrade intermediate time point and the preset intermediate time selection reference value, the intermediate time selection reference value corresponding to the upgrade intermediate time point is determined; The sum value between the two table distance sorting reference result value, the duration selection reference value and the intermediate time selection reference value is calculated as the base table selection reference comprehensive value; Based on the base table selection reference comprehensive value, sorting from large to small is performed, the range base table information corresponding to the base table selection reference comprehensive value with the first sorting is taken as the base table selection information, and the upgrade time information corresponding to the base table selection information is taken as the base table selection time information; According to the correspondence between the base table selection time information, the base table selection information and the preset base table selection comprehensive control information, the base table selection comprehensive control information corresponding to the base table selection time information and the base table selection information is determined, and the base table selection comprehensive control information is taken as the selected base table control information.
7. An electricity meter topology upgrade system, characterized by, It comprises: The acquisition module is used to acquire the demand upgrade range, the upgrade target information and the current time point; The memory is used to store the power meter topology upgrade method according to any one of claims 1 to 6; The processor loads and executes the program in the memory.
8. A smart terminal, characterized by It comprises the memory and the processor, the memory has the computer program capable of being loaded by the processor and executes the power meter topology upgrade method according to any one of claims 1 to 6. It comprises the memory and the processor, the memory has the computer program capable of being loaded by the processor and executes the power meter topology upgrade method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and apparatus for online upgrade of Bluetooth cluster
CN109417691A
Software version upgrading method and system of terminal and vehicle
CN114422486A