CN113949733A - Firmware upgrading method for electric energy meter - Google Patents

Firmware upgrading method for electric energy meter Download PDF

Info

Publication number
CN113949733A
CN113949733A CN202111012359.7A CN202111012359A CN113949733A CN 113949733 A CN113949733 A CN 113949733A CN 202111012359 A CN202111012359 A CN 202111012359A CN 113949733 A CN113949733 A CN 113949733A
Authority
CN
China
Prior art keywords
electric energy
energy meter
interval
data
upgraded
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.)
Granted
Application number
CN202111012359.7A
Other languages
Chinese (zh)
Other versions
CN113949733B (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.)
Ningbo Sanxing Smart Electric Co Ltd
Original Assignee
Ningbo Sanxing Smart Electric 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 Ningbo Sanxing Smart Electric Co Ltd filed Critical Ningbo Sanxing Smart Electric Co Ltd
Priority to CN202111012359.7A priority Critical patent/CN113949733B/en
Publication of CN113949733A publication Critical patent/CN113949733A/en
Application granted granted Critical
Publication of CN113949733B publication Critical patent/CN113949733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/02Details
    • H04B3/46Monitoring; Testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • H04L1/1614Details of the supervisory signal using bitmaps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Power Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a firmware upgrading method of an electric energy meter, which comprises the following steps: establishing an upgrading task at a master station system, and then sending an upgrading starting instruction; determining the offset position of data to be sent in a target firmware file, then intercepting the data at the corresponding position in the firmware file and performing sub-packaging, and after sending a data packet to the electric energy meter by the primary station according to the initial sub-packaging length, waiting according to the set data sending interval, and sending the next data packet until a group of data packets are sent; after a group of data packets are sent, calculating a receiving success rate corresponding to the transmission of the group of data packets, and adjusting the packet length and the data sending interval of the next group of data packets according to the receiving success rate; and when the electric energy meter has received the whole state, the master station system sends an activation instruction to the electric energy meter, and the electric energy meter is upgraded. The method avoids invalid communication caused by mismatching of receiving and sending, greatly reduces traffic waste, accelerates upgrading efficiency and reduces the influence of upgrading operation on the acquisition integrity rate and the timeliness rate.

Description

Firmware upgrading method for electric energy meter
Technical Field
The invention relates to the field of firmware upgrading, in particular to a firmware upgrading method of an electric energy meter.
Background
In the electric power AMI system solution, remote upgrading of metering and collecting equipment is an essential function, when new characteristics need to be added to equipment installed on the site, new version firmware can be pushed to the equipment through a master station system, the equipment executes upgrading after receiving the new version firmware, and the equipment is switched to a new program to run, so that the equipment has certain service expansion capacity, and has better adaptability and support capacity for management requirement change of an electric power company.
Taking remote upgrade of firmware of an electric energy meter as an example, a processing mechanism in the prior art is generally as follows:
1. loading new-version firmware of the electric energy meter in the master station system;
2. the master station system sends an upgrading instruction to the electric energy meter to be upgraded and waits for the electric energy meter to reply;
3. the electric energy meter replies the upgrading request and makes upgrading preparation;
4. the main station system splits the firmware into data packets with fixed sizes and sends the data packets to the electric energy meter packet by packet at fixed time intervals;
5. after the master station system sends a group of data packets, sending a receiving condition query instruction to the electric energy meter;
6. the electric energy meter replies to the receiving condition;
7. the master station system performs supplementary transmission according to the feedback condition of the electric energy meter until the electric energy meter receives the data completely;
8. the master station system continues to send the next group of data packets, and repeats the steps 4 to 7 until all data packets are sent;
9. and the master station system sends an activation instruction to the electric energy meter, the electric energy meter enters a Bootloader after checking the firmware, and the firmware switching is executed.
The prior technical scheme has the following defects:
due to the fact that receiving buffering and processing speed of the electric energy meter communication module is limited, packet loss is serious and communication flow is wasted if a master station system sends data at too short intervals, and if sending interval time is too long, channel utilization rate is low, upgrading time consumption is too long, and normal data collection service is affected. Particularly, when the downlink communication scheme is carrier waves, the automatic meter reading task of the whole distribution room is blocked for a long time, and the influence on the whole acquisition rate is large.
Meanwhile, due to the fact that the installation environment of the electric energy meter is complex, various scenes such as residential buildings, office buildings, outdoors and basements exist, the difference of network signal quality is large, the electric energy meter is affected by various environmental factors such as load of a mobile base station, a downlink communication mode, noise interference and weather conditions, the communication condition of each device changes constantly, the fixed sub-package size and the sending interval cannot be matched with a transmission channel and the device processing capacity effectively, the number of invalid communications is large, the flow is wasted, the consumed time is too long, and the collection integrity rate and the timeliness rate index of an electric power customer are affected. Further improvements are therefore desirable.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a firmware upgrade method for an electric energy meter, which can reduce invalid communication and accelerate upgrade efficiency, for the above prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: a firmware upgrading method of an electric energy meter is characterized by comprising the following steps: the method comprises the following steps:
step 1, selecting an electric energy meter to be upgraded and a corresponding target firmware in a master station system, and creating an upgrading task;
step 2, the master station system sends an upgrade starting instruction to the electric energy meter to be upgraded, and the electric energy meter to be upgraded is correspondingly prepared for upgrading and replies confirmation;
step 3, setting an initial sub-packet length and a data transmission interval according to the communication mode of the electric energy meter to be upgraded;
step 4, determining the offset position of the data to be sent in the target firmware file through the master station, then intercepting the data at the corresponding position in the firmware file and performing sub-packaging, wherein the master station sends a data packet to the electric energy meter by an initial sub-packaging length, and the master station waits for sending the next data packet after sending one data packet according to the set data sending interval until one group of data packets are sent;
step 5, after the group of data packets are sent, the master station system sends a query instruction to the electric energy meter to be upgraded, the electric energy meter returns the current receiving condition, the master station calculates the receiving success rate corresponding to the group of data packets to be transmitted according to the returning condition of the electric energy meter, and adjusts the sub-packet length and the data sending interval of the group of data packets according to the condition of the receiving success rate;
step 6, repeating the steps 4-5 until all data in the target firmware file are sent and the electric energy meter is completely received;
step 7, the master station system sends an activation instruction to the electric energy meter to be upgraded, and the electric energy meter to be upgraded is upgraded;
step 8, the master station system checks the current firmware version returned by the electric energy meter and judges whether the current firmware version is the same as the target firmware version, if so, the electric energy meter to be upgraded is successfully upgraded, and the process is finished; if not, the electric energy meter to be upgraded fails to be upgraded, and the process is finished.
In order to optimize the transmission of each sub-packet, the electric energy meter to be upgraded in step 3 sets corresponding initial sub-packet length, minimum sub-packet length, initial transmission interval, minimum data transmission interval and maximum data transmission interval according to different communication modes. This enables the control strategy of the packet length and data transmission interval of each communication module to reduce inefficient communication and latency.
Preferably, the communication mode of the electric energy meter to be upgraded is at least one or more of a GPRS communication mode and a PLC communication mode.
In order to better understand the receiving condition of the electric energy meter, in the step 5, the current receiving condition of the electric energy meter is displayed through the progress bitmap, the electric energy meter to be upgraded receives the data packet and writes the data packet into the corresponding area of the receiving buffer area, and the current receiving progress state is updated, that is, the binary bit identifier corresponding to the sub-packet received in the progress bitmap is 1, and the binary bit identifier corresponding to the sub-packet not received is 0.
Preferably, the method for adjusting the packet length and the data transmission interval of the next group of data packets according to the receiving success rate in step 5 specifically includes:
1) when the receiving success rate is 100%
If the current data transmission interval is not the minimum data transmission interval and the receiving success rate of the latest N groups of data packets is 100%, shortening the current data transmission interval by m seconds, wherein the shortened data transmission interval belongs to the interval between the minimum data transmission interval and the maximum data transmission interval;
if the current data transmission interval is the minimum data transmission interval or the receiving success rate of the latest N groups of data packets does not reach 100%, the current data transmission interval is not modified;
2) when the reception success rate is [ a%, 100% ]
The current data sending interval is not modified;
3) when the reception success rate is [ b%, a% ]
If the current data sending interval is not the maximum data sending interval and the receiving success rates of the latest N groups of data packets are [ b%, a%), increasing the current data sending interval for N seconds, wherein the increased data sending interval belongs to the interval between the minimum data sending interval and the maximum data sending interval;
if the current data transmission interval is the maximum data transmission interval or the receiving success rate of the latest N groups of data packets exceeds a%, the current data transmission interval is not modified;
4) when the reception success rate is [ c%, b% ]
If the current data sending interval is not the maximum data sending interval and the receiving success rates of the latest N groups of data packets are [ c%, b%), increasing the current data sending interval by k seconds, wherein the increased data sending interval belongs to the interval between the minimum data sending interval and the maximum data sending interval; k is more than n;
if the current data transmission interval is the maximum data transmission interval or the receiving success rate of the latest N groups of data packets exceeds b%, the current data transmission interval is not modified;
5) when the reception success rate is [ d%, c% ]
If the current data sending interval is not the maximum data sending interval and the receiving success rates of the latest N groups of data packets are [ d%, c%), increasing the current data sending interval by k seconds, wherein the increased data sending interval belongs to the interval between the minimum data sending interval and the maximum data sending interval; k is more than n;
if the current data sending interval is the maximum data sending interval and the receiving success rate of the latest N groups of data packets exceeds [ d%, c%), sending a command for canceling the current upgrade, reducing the current sub-packet length, wherein the reduced sub-packet length is more than or equal to the minimum sub-packet, and then restarting to execute the upgrade;
and if the current data transmission interval is the maximum data transmission interval and the current packet length is the minimum packet length, not modifying the current data transmission interval.
0%≤d%<c%<b%<a%<100。
Preferably, the value range of the a% is 80% -90%.
Preferably, the value range of b% is 40% -80%.
Preferably, the value range of c% is 20% -40%.
Preferably, the value range of d% is 0% -20%.
The specific steps of upgrading the electric energy meter to be upgraded in the step 7 are as follows:
after the electric energy meter to be upgraded receives the activation instruction, the electric energy meter to be upgraded performs data verification on the firmware buffer area to confirm the integrity and correctness of the firmware to be upgraded, then an upgrading flag bit is set and automatically reset to enter a Bootloader, and after the Bootloader detects the upgrading flag bit, the new version firmware in the receiving buffer area is written into an execution area, and the updated firmware program is operated.
Compared with the prior art, the invention has the advantages that: the packet length and the data sending interval of a group of data packets are adjusted according to the receiving success rate, so that the size and the sending frequency of the data packets can be matched with the communication quality and the receiving processing capacity of equipment, invalid communication caused by mismatching of receiving and sending is avoided by utilizing the data analysis and task scheduling capacity of the main station in the method, the flow waste is greatly reduced, the upgrading efficiency is accelerated, the influence of upgrading operation on the acquisition integrity rate and the timeliness rate is reduced, and the use experience of a user site is effectively improved.
Drawings
Fig. 1 is a flowchart of a firmware upgrading method according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the accompanying examples.
As shown in fig. 1, the firmware upgrade method for an electric energy meter in the present embodiment includes the following steps:
step 1, selecting an electric energy meter to be upgraded and a corresponding target firmware in a master station system, and creating an upgrading task;
step 2, the master station system sends an upgrade starting instruction to the electric energy meter to be upgraded, and the electric energy meter to be upgraded is correspondingly prepared for upgrading and replies confirmation;
step 3, setting an initial sub-packet length and a data transmission interval according to the communication mode of the electric energy meter to be upgraded;
step 4, determining the offset position of the data to be sent in the target firmware file through the master station, then intercepting the data at the corresponding position in the firmware file and performing sub-packaging, wherein the master station sends a data packet to the electric energy meter by an initial sub-packaging length, and the master station waits for sending the next data packet after sending one data packet according to the set data sending interval until one group of data packets are sent;
step 5, after the group of data packets are sent, the master station system sends a query instruction to the electric energy meter to be upgraded, the electric energy meter returns the current receiving condition, the master station calculates the receiving success rate corresponding to the group of data packets to be transmitted according to the returning condition of the electric energy meter, and adjusts the sub-packet length and the data sending interval of the group of data packets according to the condition of the receiving success rate;
the current receiving condition of the electric energy meter in the step 5 is displayed through a progress bitmap, the electric energy meter to be upgraded receives the data packet and writes the data packet into a corresponding area of a receiving buffer area, and the current receiving progress state is updated, namely, the binary bit identifier corresponding to the sub-packet received in the progress bitmap is 1, and the binary bit identifier corresponding to the sub-packet not received is 0;
step 6, repeating the steps 4-5 until all data in the target firmware file are sent and the electric energy meter is completely received;
step 7, the master station system sends an activation instruction to the electric energy meter to be upgraded, and the electric energy meter to be upgraded is upgraded; the specific steps of upgrading the electric energy meter to be upgraded are as follows:
after the electric energy meter to be upgraded receives the activation instruction, the electric energy meter to be upgraded performs data verification on the firmware buffer area to confirm the integrity and correctness of the firmware to be upgraded, then an upgrading flag bit is set and automatically reset to enter a Bootloader, and after the Bootloader detects the upgrading flag bit, the new version firmware in the receiving buffer area is written into an execution area, and an updated firmware program is operated;
step 8, the master station system checks the current firmware version returned by the electric energy meter and judges whether the current firmware version is the same as the target firmware version, if so, the electric energy meter to be upgraded is successfully upgraded, and the process is finished; if not, the electric energy meter to be upgraded fails to be upgraded, and the process is finished.
And 3, setting corresponding initial sub-packet length, minimum sub-packet length, initial sending interval, minimum data sending interval and maximum data sending interval according to different communication modes for the electric energy meter to be upgraded. The communication mode of the electric energy meter to be upgraded is at least one or more of a GPRS communication mode and a PLC communication mode.
In this embodiment, different communication modes are set to corresponding parameters, for example: the GPRS communication mode has the initial packet length of 800 bytes, the minimum packet length of 500 bytes, the initial sending interval of 3 seconds, the minimum data sending interval of 1 second and the maximum data sending interval of 8 seconds;
the PLC communication mode has an initial packet length of 200 bytes, a minimum packet length of 100 bytes, an initial transmission interval of 8 seconds, a minimum data transmission interval of 5 seconds, and a maximum data transmission interval of 30 seconds.
The method for adjusting the packet length and the data transmission interval of the next group of data packets according to the receiving success rate in the step 5 specifically includes:
1) when the receiving success rate is 100%
If the current data transmission interval is not the minimum data transmission interval and the receiving success rate of the latest N groups of data packets is 100%, shortening the current data transmission interval by m seconds, wherein the shortened data transmission interval belongs to the interval between the minimum data transmission interval and the maximum data transmission interval; wherein, the shortened data transmission interval may also be a minimum data transmission interval or a maximum data transmission interval;
if the current data transmission interval is the minimum data transmission interval or the receiving success rate of the latest N groups of data packets does not reach 100%, the current data transmission interval is not modified;
2) when the reception success rate is [ a%, 100% ]
The current data sending interval is not modified;
3) when the reception success rate is [ b%, a% ]
If the current data sending interval is not the maximum data sending interval and the receiving success rates of the latest N groups of data packets are [ b%, a%), increasing the current data sending interval for N seconds, wherein the increased data sending interval belongs to the interval between the minimum data sending interval and the maximum data sending interval; the increased data transmission interval may also be a minimum data transmission interval or a maximum data transmission interval;
if the current data transmission interval is the maximum data transmission interval or the receiving success rate of the latest N groups of data packets exceeds a%, the current data transmission interval is not modified;
4) when the reception success rate is [ c%, b% ]
If the current data sending interval is not the maximum data sending interval and the receiving success rates of the latest N groups of data packets are [ c%, b%), increasing the current data sending interval by k seconds, wherein the increased data sending interval belongs to the interval between the minimum data sending interval and the maximum data sending interval; k is more than n; the increased data transmission interval may also be a minimum data transmission interval or a maximum data transmission interval;
if the current data transmission interval is the maximum data transmission interval or the receiving success rate of the latest N groups of data packets exceeds b%, the current data transmission interval is not modified;
5) when the reception success rate is [ d%, c% ]
If the current data sending interval is not the maximum data sending interval and the receiving success rates of the latest N groups of data packets are [ d%, c%), increasing the current data sending interval by k seconds, wherein the increased data sending interval belongs to the interval between the minimum data sending interval and the maximum data sending interval; k is more than n;
if the current data sending interval is the maximum data sending interval and the receiving success rate of the latest N groups of data packets exceeds [ d%, c%), sending a command of canceling the current upgrade and reducing the length of the current sub-packet, wherein the reduced sub-packet length is more than or equal to the minimum sub-packet and then restarting to execute the upgrade; after being smaller
And if the current data transmission interval is the maximum data transmission interval and the current packet length is the minimum packet length, not modifying the current data transmission interval.
D percent is more than or equal to 0 percent and less than c percent and less than b percent and less than a percent and less than 100 percent. The value range of a% is 80% -90%; the value range of b% is 40% -80%; the value range of c% is 20% -40% and the value range of d% is 0% -20%.
In this embodiment, if the communication mode of the electric energy meter to be upgraded is GPRS, the initial packet length is set to 800 bytes and the initial data transmission interval is set to 3 seconds according to a predefined scheme; 80% of a, 40% of b, 20% of c, 0% of d and 0.2 second of m; n is 0.5 seconds.
According to the method, the communication mechanism of the master station system end is optimized, the master station end checks the transmission effect at regular time and dynamically adjusts the transmission frequency in the pushing process of the firmware package, and the channel condition and the equipment processing capacity are matched as much as possible, so that the utilization rate of communication resources is improved, invalid communication and meaningless waiting are reduced, and the overall efficiency of firmware upgrading is improved.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the technical principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A firmware upgrading method of an electric energy meter is characterized by comprising the following steps: the method comprises the following steps:
step 1, selecting an electric energy meter to be upgraded and a corresponding target firmware in a master station system, and creating an upgrading task;
step 2, the master station system sends an upgrade starting instruction to the electric energy meter to be upgraded, and the electric energy meter to be upgraded is correspondingly prepared for upgrading and replies confirmation;
step 3, setting an initial sub-packet length and a data transmission interval according to the communication mode of the electric energy meter to be upgraded;
step 4, determining the offset position of the data to be sent in the target firmware file through the master station, then intercepting the data at the corresponding position in the firmware file and performing sub-packaging, wherein the master station sends a data packet to the electric energy meter by an initial sub-packaging length, and the master station waits for sending the next data packet after sending one data packet according to the set data sending interval until one group of data packets are sent;
step 5, after the group of data packets are sent, the master station system sends a query instruction to the electric energy meter to be upgraded, the electric energy meter returns the current receiving condition, the master station calculates the receiving success rate corresponding to the group of data packets to be transmitted according to the returning condition of the electric energy meter, and adjusts the sub-packet length and the data sending interval of the group of data packets according to the condition of the receiving success rate;
step 6, repeating the steps 4-5 until all data in the target firmware file are sent and the electric energy meter is completely received;
step 7, the master station system sends an activation instruction to the electric energy meter to be upgraded, and the electric energy meter to be upgraded is upgraded;
step 8, the master station system checks the current firmware version returned by the electric energy meter and judges whether the current firmware version is the same as the target firmware version, if so, the electric energy meter to be upgraded is successfully upgraded, and the process is finished; if not, the electric energy meter to be upgraded fails to be upgraded, and the process is finished.
2. The firmware upgrading method of the electric energy meter according to claim 1, characterized in that: and in the step 3, the electric energy meter to be upgraded sets corresponding initial sub-packet length, minimum sub-packet length, initial sending interval, minimum data sending interval and maximum data sending interval according to different communication modes.
3. The firmware upgrading method of the electric energy meter according to claim 2, characterized in that: the communication mode of the electric energy meter to be upgraded is at least one or more of a GPRS communication mode and a PLC communication mode.
4. The firmware upgrading method of the electric energy meter according to claim 1, characterized in that: and in the step 5, the current receiving condition of the electric energy meter is displayed through the progress bitmap, the electric energy meter to be upgraded receives the data packet and writes the data packet into the corresponding area of the receiving buffer area, and the current receiving progress state is updated, namely the binary bit identifier corresponding to the sub-packet received in the progress bitmap is 1, and the binary bit identifier corresponding to the sub-packet not received in the progress bitmap is 0.
5. The firmware upgrading method of the electric energy meter according to any one of claims 1 to 4, characterized by comprising the following steps: the method for adjusting the packet length and the data transmission interval of the next group of data packets according to the receiving success rate in the step 5 specifically comprises the following steps:
1) when the receiving success rate is 100%
If the current data transmission interval is not the minimum data transmission interval and the receiving success rate of the latest N groups of data packets is 100%, shortening the current data transmission interval by m seconds, wherein the shortened data transmission interval belongs to the interval between the minimum data transmission interval and the maximum data transmission interval;
if the current data transmission interval is the minimum data transmission interval or the receiving success rate of the latest N groups of data packets does not reach 100%, the current data transmission interval is not modified;
2) when the reception success rate is [ a%, 100% ]
The current data sending interval is not modified;
3) when the reception success rate is [ b%, a% ]
If the current data sending interval is not the maximum data sending interval and the receiving success rates of the latest N groups of data packets are [ b%, a%), increasing the current data sending interval for N seconds, wherein the increased data sending interval belongs to the interval between the minimum data sending interval and the maximum data sending interval;
if the current data transmission interval is the maximum data transmission interval or the receiving success rate of the latest N groups of data packets exceeds a%, the current data transmission interval is not modified;
4) when the reception success rate is [ c%, b% ]
If the current data sending interval is not the maximum data sending interval and the receiving success rates of the latest N groups of data packets are [ c%, b%), increasing the current data sending interval by k seconds, wherein the increased data sending interval belongs to the interval between the minimum data sending interval and the maximum data sending interval; k is more than n;
if the current data transmission interval is the maximum data transmission interval or the receiving success rate of the latest N groups of data packets exceeds b%, the current data transmission interval is not modified;
5) when the reception success rate is [ d%, c% ]
If the current data sending interval is not the maximum data sending interval and the receiving success rates of the latest N groups of data packets are [ d%, c%), increasing the current data sending interval by k seconds, wherein the increased data sending interval belongs to the interval between the minimum data sending interval and the maximum data sending interval; k is more than n;
if the current data sending interval is the maximum data sending interval and the receiving success rate of the latest N groups of data packets exceeds [ d%, c%), sending a command for canceling the current upgrade, reducing the current sub-packet length, wherein the reduced sub-packet length is more than or equal to the minimum sub-packet, and then restarting to execute the upgrade;
and if the current data transmission interval is the maximum data transmission interval and the current packet length is the minimum packet length, not modifying the current data transmission interval.
0%≤d%<c%<b%<a%<100。
6. The firmware upgrading method of the electric energy meter according to claim 5, characterized in that: the value range of the a% is 80-90%.
7. The firmware upgrading method of the electric energy meter according to claim 5, characterized in that: the value range of the b% is 40-80%.
8. The firmware upgrading method of the electric energy meter according to claim 5, characterized in that: the value range of c% is 20% -40%.
9. The firmware upgrading method of the electric energy meter according to claim 5, characterized in that: the value range of the d% is 0-20%.
10. The firmware upgrading method of the electric energy meter according to claim 5, characterized in that: the specific steps of upgrading the electric energy meter to be upgraded in the step 7 are as follows:
after the electric energy meter to be upgraded receives the activation instruction, the electric energy meter to be upgraded performs data verification on the firmware buffer area to confirm the integrity and correctness of the firmware to be upgraded, then an upgrading flag bit is set and automatically reset to enter a Bootloader, and after the Bootloader detects the upgrading flag bit, the new version firmware in the receiving buffer area is written into an execution area, and the updated firmware program is operated.
CN202111012359.7A 2021-08-31 2021-08-31 Firmware upgrading method of electric energy meter Active CN113949733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111012359.7A CN113949733B (en) 2021-08-31 2021-08-31 Firmware upgrading method of electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111012359.7A CN113949733B (en) 2021-08-31 2021-08-31 Firmware upgrading method of electric energy meter

Publications (2)

Publication Number Publication Date
CN113949733A true CN113949733A (en) 2022-01-18
CN113949733B CN113949733B (en) 2023-08-01

Family

ID=79327707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111012359.7A Active CN113949733B (en) 2021-08-31 2021-08-31 Firmware upgrading method of electric energy meter

Country Status (1)

Country Link
CN (1) CN113949733B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422994A (en) * 2022-03-29 2022-04-29 龙旗电子(惠州)有限公司 Firmware upgrading method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040098715A1 (en) * 2002-08-30 2004-05-20 Parixit Aghera Over the air mobile device software management
US20140152459A1 (en) * 2012-12-04 2014-06-05 Schlumberger Technology Corporation Wellsite System and Method for Multiple Carrier Frequency, Half Duplex Cable Telemetry
CN109002303A (en) * 2017-05-26 2018-12-14 中兴通讯股份有限公司 A kind of intelligent electric meter firmware upgrade method, equipment and storage medium
CN110471678A (en) * 2019-07-04 2019-11-19 中国电力科学研究院有限公司 A kind of method that electric energy meter firmware uses cast communication mode to upgrade
CN112688942A (en) * 2020-12-23 2021-04-20 南方电网电力科技股份有限公司 Electric energy meter firmware program upgrading method, device, medium and equipment based on ESAM
CN112764777A (en) * 2021-01-18 2021-05-07 苏州浪潮智能科技有限公司 Upgrading method, device and equipment of low-speed bus equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040098715A1 (en) * 2002-08-30 2004-05-20 Parixit Aghera Over the air mobile device software management
US20140152459A1 (en) * 2012-12-04 2014-06-05 Schlumberger Technology Corporation Wellsite System and Method for Multiple Carrier Frequency, Half Duplex Cable Telemetry
CN109002303A (en) * 2017-05-26 2018-12-14 中兴通讯股份有限公司 A kind of intelligent electric meter firmware upgrade method, equipment and storage medium
CN110471678A (en) * 2019-07-04 2019-11-19 中国电力科学研究院有限公司 A kind of method that electric energy meter firmware uses cast communication mode to upgrade
CN112688942A (en) * 2020-12-23 2021-04-20 南方电网电力科技股份有限公司 Electric energy meter firmware program upgrading method, device, medium and equipment based on ESAM
CN112764777A (en) * 2021-01-18 2021-05-07 苏州浪潮智能科技有限公司 Upgrading method, device and equipment of low-speed bus equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
秦军: "基于LoRa的终端软件远程自动更新系统研究与实现", 《中国知网硕士电子期刊》, no. 2 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422994A (en) * 2022-03-29 2022-04-29 龙旗电子(惠州)有限公司 Firmware upgrading method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113949733B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
CN101243618B (en) Transmit power initialization for secondary reverse link carriers in a wireless communication network
CN101578832B (en) For the apparatus and method to wireless device transfer system state information change
CN102510409A (en) Method and system for quickly and remotely updating program of mobile terminal by using wireless network
CN102474817A (en) Updating method and apparatus of sleep mode operation
CN101951626B (en) Method, device and system for processing configuration updating failure
CN112910679B (en) Multi-level remote upgrading method for power Internet of things
CN102291309B (en) Token ring based network flow control method and system and node
CN101888653A (en) Firmware updating method, base station and network management center
CN113949733B (en) Firmware upgrading method of electric energy meter
CN102106182A (en) Systems and methods for providing a scheduled legacy protection frame
CN100484305C (en) Terminal scheduling authorization handling, cell resource scheduling method, terminal, and base station
WO2008116063A1 (en) Explicit service flow tear-down during connection setup in wireless network communications
KR101428778B1 (en) Apparatus and method for upgrading firmware of automatic meter reading terminal on the remote
CN102457948B (en) Apparatus and method for updating sleeping-ID of a terminal operating in sleep mode
CN101321116A (en) Terminal unit and method for scheduling data according to authorization
CN102883344B (en) Method and device for exchanging of wireless network management messages
CN112015442B (en) Method for remotely upgrading software of single-lamp controllers in batch by using non-public network communication
CN111092419A (en) Information protection substation and priority response method thereof for master station command
CN101491134A (en) Methods and apparatus for transitioning between states
CN101959211B (en) Method and device for obtaining system information
CN110808846B (en) Communication method and device with complementary advantages of multi-master communication technology
CN100421425C (en) Method for reducing data-bag lose in renewing course of high-speed downward sharing channel service residence
CN110784365A (en) Standby device of station control layer and entity device of transformer substation and automatic online method thereof
CN112363963A (en) Data transmission method and device based on Powerlink bus
CN102196534B (en) System information updating and validation indication method and system

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