CN111596939B - Electric energy meter upgrading method, device and concentrator - Google Patents

Electric energy meter upgrading method, device and concentrator Download PDF

Info

Publication number
CN111596939B
CN111596939B CN202010420250.6A CN202010420250A CN111596939B CN 111596939 B CN111596939 B CN 111596939B CN 202010420250 A CN202010420250 A CN 202010420250A CN 111596939 B CN111596939 B CN 111596939B
Authority
CN
China
Prior art keywords
upgrade
electric energy
energy meter
upgraded
package
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010420250.6A
Other languages
Chinese (zh)
Other versions
CN111596939A (en
Inventor
崔安江
万大江
李双全
朱程鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Haixing Power Grid Technology Co Ltd
Hangzhou Hexing Electrical Co Ltd
Ningbo Henglida Technology Co Ltd
Original Assignee
Nanjing Haixing Power Grid Technology Co Ltd
Hangzhou Hexing Electrical Co Ltd
Ningbo Henglida Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Haixing Power Grid Technology Co Ltd, Hangzhou Hexing Electrical Co Ltd, Ningbo Henglida Technology Co Ltd filed Critical Nanjing Haixing Power Grid Technology Co Ltd
Priority to CN202010420250.6A priority Critical patent/CN111596939B/en
Publication of CN111596939A publication Critical patent/CN111596939A/en
Application granted granted Critical
Publication of CN111596939B publication Critical patent/CN111596939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application discloses an upgrading method of an electric energy meter, which comprises the steps of including a preset upgrading time in an upgrading initialization instruction and sending the upgrading initialization instruction to the electric energy meter to be upgraded, and integrating the two links of the original control electric energy meter for upgrading initialization and sending the preset upgrading time, namely, one communication link is reduced, the possibility of communication failure in the whole upgrading process is directly reduced by the reduction of the communication link, so that the time is saved, and the upgrading efficiency is improved. The application also discloses an upgrading device and a concentrator of the electric energy meter, and the upgrading device and the concentrator have the same beneficial effects as the upgrading method of the electric energy meter.

Description

Electric energy meter upgrading method, device and concentrator
Technical Field
The application relates to the field of electric energy meters, in particular to an upgrading method of an electric energy meter, and also relates to an upgrading device of the electric energy meter and a concentrator.
Background
The electric energy meter is equipment for electric power metering in the electric power industry, a large number of electric energy meters need to be subjected to program upgrading through the concentrator, in the prior art, when the electric energy meter to be upgraded is upgraded, the concentrator firstly needs to carry out upgrading initialization on the electric energy meter to be upgraded, then sends an upgrading file to the electric energy meter to be upgraded, and finally also needs to send a preset upgrading time to the electric energy meter to be upgraded, so that the electric energy meter activates the upgrading file to be upgraded at the preset upgrading time, more links of data interaction between the concentrator and the electric energy meter are needed, the possibility of communication failure in the whole upgrading process is improved, time is wasted when the communication is carried out again after the communication failure, and the upgrading efficiency is reduced.
Therefore, how to provide a solution to the above technical problem is a problem that a person skilled in the art needs to solve at present.
Disclosure of Invention
The application aims to provide an upgrading method of an electric energy meter, which reduces one communication link, and the reduction of the communication link directly reduces the possibility of communication failure in the whole upgrading process, thereby saving time and improving upgrading efficiency; the application further aims to provide an upgrading device and a concentrator of the electric energy meter, one communication link is reduced, the possibility of communication failure in the whole upgrading process is directly reduced by the reduction of the communication link, time is further saved, and upgrading efficiency is improved.
In order to solve the technical problems, the application provides an upgrading method of an electric energy meter, which is applied to a concentrator and comprises the following steps:
an upgrade initialization instruction containing preset upgrade time is sent to the electric energy meter to be upgraded so that the electric energy meter to be upgraded is upgraded and initialized;
and sending an upgrade file to the electric energy meter to be upgraded so that the electric energy meter to be upgraded activates the upgrade file to carry out program upgrade at the preset upgrade time.
Preferably, the sending the upgrade file to the electric energy meter to be upgraded specifically includes:
broadcasting all upgrade packages required by upgrade to the electric energy meter to be upgraded;
performing package supplementing on the electric energy meter to be upgraded with the package loss phenomenon;
and checking whether the upgrade package received by the electric energy meter to be upgraded has errors or not, and if not, ending.
Preferably, the broadcasting of all the upgrade packages required for the upgrade to the electric energy meter to be upgraded is specifically:
reading the rated value of the size of an upgrade package of the electric energy meter to be upgraded;
dividing an upgrade file into upgrade packs with the upgrade pack size rated values;
and broadcasting all the upgrade packages obtained by segmentation to the electric energy meter to be upgraded.
Preferably, the step of supplementing the to-be-upgraded electric energy meter with the packet loss phenomenon specifically includes:
reading the state of an upgrade package of the electric energy meter to be upgraded with a preset serial number;
judging whether the electric energy meter to be upgraded receives all the upgrade packages according to the upgrade package state;
if not, broadcasting the upgrade package lost by the electric energy meter to be upgraded, and executing the step of reading the upgrade package state of the electric energy meter to be upgraded;
if all the upgrade packages are received, adding one to the preset sequence number;
judging whether an electric energy meter with the preset serial number exists or not;
if yes, executing the step of reading the state of the upgrade package of the electric energy meter to be upgraded with the preset serial number;
if not, the check is ended.
Preferably, the sending an upgrade initialization instruction including a preset upgrade time to the electric energy meter to be upgraded specifically includes:
an upgrade initialization instruction containing preset upgrade time is sent to the electric energy meter to be upgraded through the pre-connection client of the electric energy meter;
the method for reading the size rated value of the upgrade package of the electric energy meter to be upgraded comprises the following steps:
reading the size rated value of an upgrade package of the electric energy meter to be upgraded through the pre-connection client;
the broadcasting of the upgrade packages to the electric energy meter to be upgraded is specifically:
broadcasting all the upgrade packages obtained by segmentation to the electric energy meter to be upgraded through the pre-connection client;
the state of the upgrade package of the electric energy meter to be upgraded for reading the preset serial number is specifically as follows:
reading an upgrade package state of the electric energy meter to be upgraded with a preset sequence number through the pre-connection client;
the checking whether the upgrade package received by the electric energy meter to be upgraded has errors is specifically:
and checking whether the upgrade package received by the electric energy meter to be upgraded has errors or not through the pre-connection client.
Preferably, the upgrade initialization instruction further includes upgrade file expiration time;
the upgrade file expiration time is used for controlling the validity of the upgrade file.
In order to solve the technical problem, the application also provides an upgrading device of the electric energy meter, which is applied to the concentrator and comprises:
the initialization module is used for sending an upgrade initialization instruction containing preset upgrade time to the electric energy meter to be upgraded so that the electric energy meter to be upgraded is upgraded and initialized;
and the sending module is used for sending an upgrade file to the electric energy meter to be upgraded so that the electric energy meter to be upgraded activates the upgrade file to carry out program upgrade at the preset upgrade moment.
Preferably, the transmitting module includes:
the broadcasting module is used for broadcasting all upgrade packages required by the upgrade to the electric energy meter to be upgraded;
the package supplementing module is used for supplementing packages of the electric energy meter to be upgraded with the package loss phenomenon;
the verification module is used for verifying whether the upgrade package received by the electric energy meter to be upgraded has errors or not, and if not, triggering the ending module;
and the ending module is used for ending the upgrading program.
Preferably, the upgrade initialization instruction further includes upgrade file expiration time;
the upgrade file expiration time is used for controlling the validity of the upgrade file.
In order to solve the above technical problem, the present application further provides a concentrator, including:
a memory for storing a computer program;
a processor for implementing the steps of the method for upgrading an electric energy meter according to any one of the preceding claims when executing the computer program.
The application provides an upgrading method of an electric energy meter, which integrates the two links of the original 'control electric energy meter for upgrading initialization' and 'sending the preset upgrading moment' because the preset upgrading moment is contained in an upgrading initialization instruction and is sent to the electric energy meter to be upgraded together, namely, one communication link is reduced, the possibility of communication failure in the whole upgrading process is directly reduced by the reduction of the communication link, the time is further saved, and the upgrading efficiency is improved.
The application also provides an upgrading device and a concentrator of the electric energy meter, and the upgrading device and the concentrator have the same beneficial effects as the upgrading method of the electric energy meter.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required in the prior art and the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an upgrade method of an electric energy meter according to the present application;
FIG. 2 is a schematic flow chart of an upgrade file sending method provided by the application;
fig. 3 is a schematic structural diagram of an upgrade apparatus for an electric energy meter according to the present application;
fig. 4 is a schematic structural diagram of a concentrator according to the present application.
Detailed Description
The core of the application is to provide an upgrading method of the electric energy meter, which reduces one communication link, and the reduction of the communication link directly reduces the possibility of communication failure in the whole upgrading process, thereby saving time and improving upgrading efficiency; the application further aims to provide an upgrading device and a concentrator of the electric energy meter, one communication link is reduced, the possibility of communication failure in the whole upgrading process is directly reduced by the reduction of the communication link, time is further saved, and upgrading efficiency is improved.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a flow chart of an upgrade method of an electric energy meter according to the present application, including:
step S1: an upgrade initialization instruction containing preset upgrade time is sent to the electric energy meter to be upgraded so that the electric energy meter to be upgraded is upgraded and initialized;
specifically, the electric energy meter to be upgraded needs to be upgraded and initialized before receiving the upgrade file, the electric energy meter to be upgraded comprises an upgrade enabling part and an upgrade initializing part, the electric energy meter to be upgraded can perform subsequent actions only after the upgrade enabling part, wherein the concentrator can send an initialization string to the electric energy meter when the electric energy meter to be upgraded is upgraded and initialized, in the prior art, the initialization string only comprises Version info, namely Version information, the electric energy meter to be upgraded can be upgraded and initialized according to the received Version info, on the basis, the initialization string also comprises preset upgrade time, the electric energy meter to be upgraded can be conveniently activated to upgrade the upgrade file at the preset upgrade time, the preset upgrade time is contained in the initialization string (namely the upgrade initializing command), the concentrator does not need to send the preset upgrade time to the electric energy meter to be upgraded, the communication link is reduced, the probability of communication failure is lowered, and the work efficiency is improved.
The preset upgrading time can be set independently, the preset upgrading time of each electric energy meter to be upgraded can be the same or different, and when the preset upgrading time of each electric energy meter to be upgraded is the same, the working efficiency can be improved.
Specifically, after the electric energy meter to be upgraded receives the upgrade file, whether the current time does not reach the preset upgrade time can be judged, if the current time does not reach the preset upgrade time, the upgrade file is activated when the preset upgrade time is reached, and if the current time does not reach the preset upgrade time, the upgrade file can be immediately activated to upgrade.
Specifically, the electric energy meter to be upgraded can store the preset upgrading moment after receiving the upgrading initialization instruction so as to be used later.
It should be noted that, the communication mode between the concentrator and the electric energy meter is usually power carrier or radio frequency communication, and both have a certain probability of communication failure.
Step S2: and sending an upgrade file to the electric energy meter to be upgraded so that the electric energy meter to be upgraded activates the upgrade file at a preset upgrade time to perform program upgrade.
Specifically, after the electric energy meter to be upgraded receives the upgrade file, the upgrade file is activated to carry out program upgrade when the time reaches the preset upgrade time, and no subsequent links exist, so that the upgrade efficiency is improved.
The application provides an upgrading method of an electric energy meter, which integrates the two links of the original 'control electric energy meter for upgrading initialization' and 'sending the preset upgrading moment' because the preset upgrading moment is contained in an upgrading initialization instruction and is sent to the electric energy meter to be upgraded together, namely, one communication link is reduced, the possibility of communication failure in the whole upgrading process is directly reduced by the reduction of the communication link, the time is further saved, and the upgrading efficiency is improved.
For better explaining the embodiments of the present application, please refer to fig. 2, fig. 2 is a flow chart of an upgrade file sending method provided by the present application, based on the above embodiments:
as a preferred embodiment, the sending of the upgrade file to the electric energy meter to be upgraded specifically includes:
broadcasting all upgrade packages required by upgrade to the electric energy meter to be upgraded;
specifically, considering that the electric energy meter to be upgraded has limited acceptable data quantity at each time, the upgrade file needs to be divided into a plurality of upgrade packages to be sent, so that the electric energy meter to be upgraded can be successfully received.
The method comprises the steps of performing package supplementing on the electric energy meter to be upgraded with a package loss phenomenon;
considering that some electric energy meters to be upgraded are likely to have the phenomenon of packet loss after the upgrade packet is broadcast, in order to enable each electric energy meter to be upgraded to be successfully upgraded, the electric energy meters to be upgraded with the packet loss need to be subjected to packet supplementing.
And checking whether an upgrade package received by the electric energy meter to be upgraded has errors or not, and if not, ending.
Specifically, considering that even if the upgrade package is received completely, the received upgrade package may have errors, so that the whole upgrade package received by the electric energy meter to be upgraded needs to be checked, if no errors exist, the upgrade program of the electric energy meter to be upgraded can be ended, if errors exist, the version broadcasted to all electric energy meters to be upgraded may not be suitable, and the upgrade file of the suitable version is likely to need to be retransmitted.
The step of verifying whether the upgrade package received by the electric energy meter to be upgraded has errors or not specifically may be to send a verification code to the electric energy meter to be upgraded, the electric energy meter to be upgraded may verify whether the received upgrade file has errors or not according to the verification code, and feedback the result to the concentrator.
As a preferred embodiment, broadcasting all the upgrade packages required for the upgrade to the electric energy meter to be upgraded is specifically:
step S201: reading the size rated value of an upgrade package of the electric energy meter to be upgraded;
step S202: dividing the upgrade file into upgrade packs with the upgrade pack size rated value;
step S203: and broadcasting all the obtained upgrade packages to the electric energy meter to be upgraded.
Specifically, the rated value of the size of the upgrade package represents the data quantity which can be received by the electric energy meter to be upgraded each time, and after the rated value of the size of the upgrade package is obtained, the concentrator can divide the upgrade file into the upgrade package of the rated value of the size of the upgrade package and broadcast the upgrade package.
The method comprises the steps of broadcasting for a plurality of times, wherein the broadcasting can be carried out for a plurality of times during broadcasting, so that all electric energy meters to be upgraded can completely receive all upgrading packages.
The size rating of the upgrade package may be various, for example, 128B or 256B, and the embodiment of the present application is not limited herein.
Specifically, the size of the last upgrade package may not reach the rated value of the upgrade package, but this does not affect the splicing process of the electric energy meter to the upgrade package.
As a preferred embodiment, the method for supplementing the to-be-upgraded electric energy meter with the packet loss phenomenon specifically comprises the following steps:
step S204: reading an upgrade package state of the electric energy meter to be upgraded with a preset serial number;
step S205: judging whether the electric energy meter to be upgraded receives all the upgrade packages according to the upgrade package state;
step S206: if not, broadcasting the lost upgrade package of the electric energy meter to be upgraded, and executing the step of reading the status of the upgrade package of the electric energy meter to be upgraded;
step S207: if all the upgrade packages are received, adding one to the preset sequence number;
step S208: judging whether an electric energy meter with a preset serial number exists or not;
step S209: if yes, executing the step of reading the state of an upgrade package of the electric energy meter to be upgraded with the preset serial number;
step S210: if not, the check is ended.
Specifically, when the electric energy meter to be upgraded with the packet loss phenomenon is subjected to packet supplementing, the electric energy meter to be upgraded needs to be checked one by one and the packet loss electric energy meter to be upgraded needs to be subjected to packet supplementing, wherein when the packet supplementing is performed, the lost upgrade packet is broadcast instead of unicast, and the reason is that all the electric energy meters to be upgraded are of the same type generally, and the same packet loss is likely to occur in the electric energy meter to be upgraded of the same type, so that the embodiment of the application can broadcast the lost upgrade packet instead of unicast, and further improve the working efficiency.
In the upgrade package state, a value (e.g., 0 or 1) of each digit may represent whether a corresponding upgrade package has been received, and a value of 1 may represent that a corresponding upgrade package has been received, and a value of 0 may represent that a corresponding upgrade package has not been received.
As a preferred embodiment, the sending, to the electric energy meter to be upgraded, an upgrade initialization instruction including a preset upgrade time is specifically:
an upgrade initialization instruction containing preset upgrade time is sent to the electric energy meter to be upgraded through the pre-connection client of the electric energy meter;
the method for reading the size rated value of the upgrade package of the electric energy meter to be upgraded comprises the following steps:
reading the size rated value of an upgrade package of the electric energy meter to be upgraded through a pre-connection client;
the broadcasting of all the upgrade packages obtained by segmentation to the electric energy meter to be upgraded is specifically as follows:
broadcasting all the obtained upgrade packages to the electric energy meter to be upgraded through the pre-connection client;
the state of the upgrade package of the electric energy meter to be upgraded for reading the preset serial number is specifically as follows:
reading an upgrade package state of the electric energy meter to be upgraded with a preset serial number through a pre-connection client;
the step of checking whether the upgrade package received by the electric energy meter to be upgraded has errors is specifically as follows:
and checking whether an upgrade package received by the electric energy meter to be upgraded has errors or not through the pre-connection client.
Specifically, considering that when the concentrator upgrades the electric energy meter, a plurality of control actions including upgrading initialization and reading the state of an upgrade package are all required to be carried out through the management client, however, when the concentrator communicates with the electric energy meter to be upgraded through the management client each time, a period of time is required to be spent for establishing communication connection, so that the working efficiency is reduced, and when the concentrator upgrades the electric energy meter, the concentrator can always communicate with the electric energy meter to be upgraded through the pre-connection client, a data path is not required to be established before data interaction, so that the working efficiency is improved, and when the pre-connection client sends data to the electric energy meter, the unique preset secret key can be used for encrypting, then each electric energy meter can be decrypted through the preset secret key after receiving the encrypted data, and the concentrator also does not need to manage the secret passwords of each electric energy meter (in the prior art, because the concentrator sends the data to the electric energy meter through the management client, the secret passwords of each electric energy meter are required to be used in encryption), and the security of the secret passwords is improved.
It should be noted that, when the concentrator broadcasts all the upgrade packages or broadcasts the complementary upgrade packages, the pre-connection client is adopted, and this usually requires a long time, however, the default time of the management client is usually short (for example, 3 min), that is, after each broadcast, the management client also needs to take time to establish a data path with the electric energy meter again, which reduces the working efficiency.
As a preferred embodiment, the upgrade initialization instruction further comprises upgrade file expiration time;
the upgrade file expiration time is used to control the validity of the upgrade file.
Specifically, considering that the version corresponding to the upgrade file has timeliness, after too long, the upgrade file is not suitable for the electric energy meter at that time, so that the upgrade file failure time can be added in the upgrade initialization instruction in the embodiment of the application, namely, after the upgrade file failure time is passed, the upgrade file corresponding to the upgrade file failure time is not allowed to be activated any more, and the electric energy meter is prevented from faults after the failed upgrade file is activated.
When verifying whether the upgrade package is received in error, whether the failure time of the upgrade file is reached can be judged at the same time, and if the failure time is reached, the upgrade package is received in error.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an upgrade apparatus for an electric energy meter, provided by the present application, applied to a concentrator, where the upgrade apparatus for an electric energy meter includes:
the initialization module 1 is used for sending an upgrade initialization instruction containing preset upgrade time to the electric energy meter to be upgraded so as to upgrade and initialize the electric energy meter to be upgraded;
the sending module 2 is used for sending the upgrade file to the electric energy meter to be upgraded so that the electric energy meter to be upgraded can activate the upgrade file at the preset upgrade time to perform program upgrade.
As a preferred embodiment, the transmitting module includes:
the broadcasting module is used for broadcasting all the upgrade packages required by the upgrade to the electric energy meter to be upgraded;
the package supplementing module is used for supplementing packages of the electric energy meter to be upgraded with the package loss phenomenon;
the verification module is used for verifying whether the upgrade package received by the electric energy meter to be upgraded has errors or not, and if not, triggering the ending module;
and the ending module is used for ending the upgrading program.
As a preferred embodiment, the upgrade initialization instruction further comprises upgrade file expiration time;
the upgrade file expiration time is used to control the validity of the upgrade file.
For the description of the device for upgrading the electric energy meter provided by the embodiment of the present application, please refer to the embodiment of the method for upgrading the electric energy meter, and the embodiment of the present application is not repeated here.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a concentrator according to the present application, including:
a memory 3 for storing a computer program;
a processor 4 for implementing the steps of the method for upgrading an electric energy meter according to any one of the above when executing a computer program.
For the description of the upgrade apparatus for the electric energy meter provided in the embodiment of the present application, please refer to the foregoing embodiment of the upgrade method for the electric energy meter, and the embodiment of the present application is not repeated herein.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should also be noted that in this specification the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (5)

1. An upgrading method of an electric energy meter, applied to a concentrator, is characterized by comprising the following steps:
an upgrade initialization instruction containing preset upgrade time is sent to the electric energy meter to be upgraded so that the electric energy meter to be upgraded is upgraded and initialized;
sending an upgrade file to the electric energy meter to be upgraded so that the electric energy meter to be upgraded activates the upgrade file to carry out program upgrade at the preset upgrade moment;
the step of sending the upgrade file to the electric energy meter to be upgraded specifically comprises the following steps:
broadcasting all upgrade packages required by upgrade to the electric energy meter to be upgraded;
performing package supplementing on the electric energy meter to be upgraded with the package loss phenomenon;
checking whether the upgrade package received by the electric energy meter to be upgraded has errors or not, and if not, ending;
the broadcasting of all the upgrade packages required for the upgrade to the electric energy meter to be upgraded is specifically as follows:
reading the rated value of the size of an upgrade package of the electric energy meter to be upgraded;
dividing an upgrade file into upgrade packs with the upgrade pack size rated values;
broadcasting all the upgrade packages obtained by segmentation to the electric energy meter to be upgraded;
the step of carrying out packet supplementing on the electric energy meter to be upgraded with the packet loss phenomenon comprises the following steps:
reading the state of an upgrade package of the electric energy meter to be upgraded with a preset serial number;
judging whether the electric energy meter to be upgraded receives all the upgrade packages according to the upgrade package state;
if not, broadcasting the upgrade package lost by the electric energy meter to be upgraded, and executing the step of reading the upgrade package state of the electric energy meter to be upgraded;
if all the upgrade packages are received, adding one to the preset sequence number;
judging whether an electric energy meter with the preset serial number exists or not;
if yes, executing the step of reading the state of the upgrade package of the electric energy meter to be upgraded with the preset serial number;
if not, ending the inspection;
the step of sending the upgrade initialization instruction containing the preset upgrade time to the electric energy meter to be upgraded specifically comprises the following steps:
an upgrade initialization instruction containing preset upgrade time is sent to the electric energy meter to be upgraded through the pre-connection client of the electric energy meter;
the method for reading the size rated value of the upgrade package of the electric energy meter to be upgraded comprises the following steps:
reading the size rated value of an upgrade package of the electric energy meter to be upgraded through the pre-connection client;
the broadcasting of the upgrade packages to the electric energy meter to be upgraded is specifically:
broadcasting all the upgrade packages obtained by segmentation to the electric energy meter to be upgraded through the pre-connection client;
the state of the upgrade package of the electric energy meter to be upgraded for reading the preset serial number is specifically as follows:
reading an upgrade package state of the electric energy meter to be upgraded with a preset sequence number through the pre-connection client;
the checking whether the upgrade package received by the electric energy meter to be upgraded has errors is specifically:
and checking whether the upgrade package received by the electric energy meter to be upgraded has errors or not through the pre-connection client.
2. The method for upgrading an electric energy meter according to claim 1, wherein the upgrade initialization instruction further comprises an upgrade file expiration time;
the upgrade file expiration time is used for controlling the validity of the upgrade file.
3. An upgrade apparatus for an electric energy meter, applied to a concentrator, comprising:
the initialization module is used for sending an upgrade initialization instruction containing preset upgrade time to the electric energy meter to be upgraded so that the electric energy meter to be upgraded is upgraded and initialized;
the sending module is used for sending an upgrade file to the electric energy meter to be upgraded so that the electric energy meter to be upgraded activates the upgrade file to carry out program upgrade at the preset upgrade moment;
the transmitting module includes:
the broadcasting module is used for broadcasting all upgrade packages required by the upgrade to the electric energy meter to be upgraded;
the package supplementing module is used for supplementing packages of the electric energy meter to be upgraded with the package loss phenomenon;
the verification module is used for verifying whether the upgrade package received by the electric energy meter to be upgraded has errors or not, and if not, triggering the ending module;
the ending module is used for ending the upgrading program;
the broadcasting of all the upgrade packages required for the upgrade to the electric energy meter to be upgraded is specifically as follows:
reading the rated value of the size of an upgrade package of the electric energy meter to be upgraded;
dividing an upgrade file into upgrade packs with the upgrade pack size rated values;
broadcasting all the upgrade packages obtained by segmentation to the electric energy meter to be upgraded;
the step of carrying out packet supplementing on the electric energy meter to be upgraded with the packet loss phenomenon comprises the following steps:
reading the state of an upgrade package of the electric energy meter to be upgraded with a preset serial number;
judging whether the electric energy meter to be upgraded receives all the upgrade packages according to the upgrade package state;
if not, broadcasting the upgrade package lost by the electric energy meter to be upgraded, and executing the step of reading the upgrade package state of the electric energy meter to be upgraded;
if all the upgrade packages are received, adding one to the preset sequence number;
judging whether an electric energy meter with the preset serial number exists or not;
if yes, executing the step of reading the state of the upgrade package of the electric energy meter to be upgraded with the preset serial number;
if not, ending the inspection;
the step of sending the upgrade initialization instruction containing the preset upgrade time to the electric energy meter to be upgraded specifically comprises the following steps:
an upgrade initialization instruction containing preset upgrade time is sent to the electric energy meter to be upgraded through the pre-connection client of the electric energy meter;
the method for reading the size rated value of the upgrade package of the electric energy meter to be upgraded comprises the following steps:
reading the size rated value of an upgrade package of the electric energy meter to be upgraded through the pre-connection client;
the broadcasting of the upgrade packages to the electric energy meter to be upgraded is specifically:
broadcasting all the upgrade packages obtained by segmentation to the electric energy meter to be upgraded through the pre-connection client;
the state of the upgrade package of the electric energy meter to be upgraded for reading the preset serial number is specifically as follows:
reading an upgrade package state of the electric energy meter to be upgraded with a preset sequence number through the pre-connection client;
the checking whether the upgrade package received by the electric energy meter to be upgraded has errors is specifically:
and checking whether the upgrade package received by the electric energy meter to be upgraded has errors or not through the pre-connection client.
4. The device for upgrading an electric energy meter according to claim 3, wherein the upgrade initialization command further includes an upgrade file expiration time;
the upgrade file expiration time is used for controlling the validity of the upgrade file.
5. A concentrator, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for upgrading an electric energy meter according to any of claims 1-2 when executing said computer program.
CN202010420250.6A 2020-05-18 2020-05-18 Electric energy meter upgrading method, device and concentrator Active CN111596939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010420250.6A CN111596939B (en) 2020-05-18 2020-05-18 Electric energy meter upgrading method, device and concentrator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010420250.6A CN111596939B (en) 2020-05-18 2020-05-18 Electric energy meter upgrading method, device and concentrator

Publications (2)

Publication Number Publication Date
CN111596939A CN111596939A (en) 2020-08-28
CN111596939B true CN111596939B (en) 2023-09-15

Family

ID=72187290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010420250.6A Active CN111596939B (en) 2020-05-18 2020-05-18 Electric energy meter upgrading method, device and concentrator

Country Status (1)

Country Link
CN (1) CN111596939B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112230961A (en) * 2020-10-20 2021-01-15 杭州海兴电力科技股份有限公司 Intelligent meter upgrading method, device, equipment and medium
CN112506540B (en) * 2020-12-01 2021-08-27 南方电网电力科技股份有限公司 Electric energy meter application upgrading method, electric energy meter and system
CN113741941A (en) * 2021-09-16 2021-12-03 杭州海兴电力科技股份有限公司 Ammeter upgrading method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789373A (en) * 2017-03-02 2017-05-31 国电南瑞科技股份有限公司 A kind of method that remote upgrade is carried out to concentrator
CN109522040A (en) * 2018-09-27 2019-03-26 宁波三星智能电气有限公司 A kind of elongated remote upgrade method of number-of-packet for ammeter
CN110166554A (en) * 2019-05-22 2019-08-23 宁波三星医疗电气股份有限公司 Ammeter update device, method, concentrator and storage medium
CN110825394A (en) * 2019-10-14 2020-02-21 广州微算互联信息技术有限公司 Automatic application program initialization method and system for cloud mobile phone and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101605875B1 (en) * 2009-04-03 2016-03-24 삼성전자주식회사 Memory apparatus and method for updating firmware of the memory apparatus
JP5569424B2 (en) * 2011-02-14 2014-08-13 富士通株式会社 Update apparatus, update method, and update program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789373A (en) * 2017-03-02 2017-05-31 国电南瑞科技股份有限公司 A kind of method that remote upgrade is carried out to concentrator
CN109522040A (en) * 2018-09-27 2019-03-26 宁波三星智能电气有限公司 A kind of elongated remote upgrade method of number-of-packet for ammeter
CN110166554A (en) * 2019-05-22 2019-08-23 宁波三星医疗电气股份有限公司 Ammeter update device, method, concentrator and storage medium
CN110825394A (en) * 2019-10-14 2020-02-21 广州微算互联信息技术有限公司 Automatic application program initialization method and system for cloud mobile phone and storage medium

Also Published As

Publication number Publication date
CN111596939A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN111596939B (en) Electric energy meter upgrading method, device and concentrator
CN104520870A (en) Method and system for updating firmware of security module
EP2696531B1 (en) Initialization of embedded secure elements
CN109815683B (en) Authority verification method and related device
CN101527630B (en) Method, server and system for manufacturing certificate remotely
CN110621014B (en) Vehicle-mounted equipment, program upgrading method thereof and server
CN101527714B (en) Method, device and system for accreditation
CN110381103B (en) Method, device and system for downloading operator configuration file
CN109391673A (en) A kind of method, system and the terminal device of management update file
EP4068834A1 (en) Initial security configuration method, security module, and terminal
JP6793667B2 (en) Application download method and equipment
CN103475512A (en) Internet of Things remote management platform migration method, device and Internet of Things terminal
CN111107085A (en) Safety communication method based on publish-subscribe mode
US20230171100A1 (en) Personalization of a secure element
CN111479259A (en) SIM card configuration distribution method and system
CN114115965A (en) OTA system dynamic differential upgrading method
Buschlinger et al. Plug-and-patch: Secure value added services for electric vehicle charging
CN110769411B (en) Method, device, equipment and system for stably realizing batch OTA (over the air) upgrade of terminal equipment
CN105118100A (en) Vehicle-mounted electronic label program updating method, mobile terminal and program updating system
CN113315681B (en) Automatic testing method and system based on intelligent home gateway plug-in
CN116340956B (en) Trusted protection optimization method and device for electric embedded terminal equipment
CN103442291A (en) Set top box upgrading method and device
EP4013002A1 (en) Software package transmission method, software package transmission verification method, network device, and storage medium
CN115357274A (en) Remote IO equipment firmware upgrading method and system
CN101207492A (en) Method and apparatus for avoiding downloading error document

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant