CN109002303A - A kind of intelligent electric meter firmware upgrade method, equipment and storage medium - Google Patents
A kind of intelligent electric meter firmware upgrade method, equipment and storage medium Download PDFInfo
- Publication number
- CN109002303A CN109002303A CN201710382003.XA CN201710382003A CN109002303A CN 109002303 A CN109002303 A CN 109002303A CN 201710382003 A CN201710382003 A CN 201710382003A CN 109002303 A CN109002303 A CN 109002303A
- Authority
- CN
- China
- Prior art keywords
- packet
- firmware upgrade
- broadcast
- data subpackage
- ammeter
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Abstract
The invention discloses a kind of intelligent electric meter firmware upgrade method, equipment and storage mediums.Wherein this method comprises: receiving the firmware upgrade packet for the intelligent electric meter that main website issues;Firmware upgrade packet is passed through in all ammeters that mode by way of broadcast is sent to downlink.The present invention does batch upgrade processing by ammeter of the concentrator to lower extension, can effectively save human cost and time cost, improves the efficiency of firmware upgrade.
Description
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of intelligent electric meter firmware upgrade method, equipment and storage
Medium.
Background technique
Current intelligent electric meter development is still within the starting stage, and most of ammeter completes installation later all at the scene
Will not do and upgrade, concrete reason includes following several points: first is that because upgrade cost is too high: need special messenger to live, manpower at
This is too big;Second is that cumbersome, time-consuming very long: maintenance personnel needs to open cover after reaching scene, connects 485 lines or red
It is outer etc. to be upgraded, operate more complicated, and time-consuming influence user normal electricity consumption.It is therefore desirable to have one kind is more
Reasonable inexpensive and quick intelligent electric meter firmware upgrade mode is necessary.
Summary of the invention
The present invention provides a kind of intelligent electric meter firmware upgrade method, equipment and storage medium, to solve in the prior art
It is at high cost, cumbersome and the problem of take a long time when intelligent electric meter firmware.
For achieving the above object, the present invention uses following technical solutions:
According to the present invention on one side, a kind of intelligent electric meter firmware upgrade method is provided, comprising:
Receive the firmware upgrade packet for the intelligent electric meter that main website issues;
The firmware upgrade packet is passed through in all ammeters that mode by way of broadcast is sent to downlink.
Optionally, the method as described in claim 1, which is characterized in that the firmware upgrade packet includes multiple data point
It wraps, in all ammeters that firmware upgrade packet is respectively sent to downlink by way of broadcast, comprising:
Sequentially all data subpackages are broadcasted respectively into all ammeters according to the Bale No. of the data subpackage;Wherein, institute
State the upgraded version number that the firmware upgrade packet is carried in the first packet of data subpackage.
Optionally, the Bale No. according to the data subpackage is sequentially broadcasted all data subpackages respectively to all ammeters
In, comprising:
According to first of data subpackage described in preset number of broadcast times repeated broadcast the packet.
Optionally, the Bale No. according to the data subpackage is sequentially broadcasted all data subpackages respectively to all ammeters
In, including;
The data subpackage is broadcasted respectively into all ammeters according to preset transmission time interval.
Optionally, after in all ammeters that the firmware upgrade packet is sent to downlink by way of broadcast,
The method also includes:
Poll reads the packet receiving situation of every table, determines the packet receiving success rate of each data subpackage;
It is determined by the way of broadcast/group broadcast/unicast according to the packet receiving success rate by the data subpackage weight of transmitting-receiving failure
It is newly sent in corresponding ammeter.
Optionally, it is determined by the way of broadcast/group broadcast/unicast according to the packet receiving success rate by the data of transmitting-receiving failure
Subpackage is re-transmitted in corresponding ammeter, comprising:
When the packet receiving success rate of some data subpackage is less than the first preset threshold, then the data subpackage is passed through into broadcast
Mode be sent in all ammeters;Alternatively,
When the packet receiving success rate of some data subpackage is greater than first preset threshold and when less than the second preset threshold, then
The data subpackage is sent to by way of multicast in the ammeter of the data subpackage packet receiving failure;Alternatively,
When the packet receiving success rate of some data subpackage is greater than the second preset threshold and when less than 100%, then by the data
Subpackage is sent in the ammeter of the data subpackage packet receiving failure by way of unicast.
Optionally, after the poll reads the packet receiving situation of every table, the method also includes:
It is reported according to predetermined period to the main website and passes bag-like state, so that upgrading progress is known in the main website.
Optionally, after the firmware upgrade packet for receiving the intelligent electric meter that main website issues, the method also includes:
Suspend currently processed task, the priority of firmware upgrade task is adjusted into highest.
Optionally, it is communicated by local area network or general packet radio service GPRS communication with main website, passes through power line
Any mode in PLC, radio frequency or wide area networking of things/LORA is communicated with all ammeters of downlink.
Optionally, the method also includes:
Determining that all ammeters receive the firmware upgrade packet, allowed by way of broadcast all ammeter tables into
Row verification;
After the completion of to be verified, each ammeter is activated by way of unicast, recording electrical meter updating result, and by institute
Ammeter updating result is stated to notify to the main website.
According to the present invention on one side, provide a kind of intelligent electric meter firmware upgrade equipment, comprising: memory and processing
Device;Wherein, it is stored with intelligent electric meter firmware upgrade procedure in the memory, when the intelligent electric meter firmware upgrade procedure is by institute
When stating processor execution, to realize above-mentioned intelligent electric meter firmware upgrade method.
According to the present invention on one side, a kind of computer readable storage medium, the computer-readable storage are provided
Media storage has intelligent electric meter firmware upgrade procedure, when the intelligent electric meter firmware upgrade procedure is executed by the processor,
To realize above-mentioned intelligent electric meter firmware upgrade method.
The present invention has the beneficial effect that:
Intelligent electric meter firmware upgrade method, equipment and storage medium provided by the embodiment of the present invention, by receiving main website
Firmware upgrade packet is then sent to all of downlink mode by way of broadcast by the firmware upgrade packet of the intelligent electric meter issued
In ammeter.Batch upgrade processing is done by ammeter of the concentrator to lower extension in this way, can effectively save through the invention manpower at
Sheet and time cost, improve the efficiency of firmware upgrade.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly or it is existing in scheme, below will be in embodiment or existing description
Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment without any creative labor, can also be according to these attached drawings for ordinary people in the field
Obtain other attached drawings.
Fig. 1 is the system architecture diagram of intelligent electric meter firmware upgrade in the embodiment of the present invention;
Fig. 2 is the flow chart of intelligent electric meter firmware upgrade method in the embodiment of the present invention;
Fig. 3 is the timing diagram of intelligent electric meter firmware upgrade method in a specific embodiment of the invention;
Fig. 4 is the state diagram for receiving data subpackage after a specific embodiment concentrator of the invention is broadcasted in ammeter;
Fig. 5 is the state diagram for receiving data subpackage after an of the invention specific embodiment concentrator multicast in ammeter;
Fig. 6 is the state diagram for receiving data subpackage after an of the invention specific embodiment concentrator unicast in ammeter;
Fig. 7 is the functional block diagram of intelligent electric meter firmware upgrade equipment in the embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing and embodiment, the present invention will be described in further detail.It should be appreciated that described herein
Specific embodiment be only used to explain the present invention, limit the present invention.
As shown in Figure 1, in the embodiment of the present invention intelligent electric meter firmware upgrade system architecture diagram.It include: master in the system
All ammeters stood, hung under concentrator and concentrator.Wherein, concentrator, which can be weakened into, carries out data between main website and ammeter
Other interactive intermediate channels, the communication mode between concentrator and ammeter are not limited to PLC (Power Line
Communication, power line communication), RF (Radio Frequency, radio frequency)/LORA (Long Range, wide area networking of things),
It is communicated between main website and concentrator by local area network or GPRS.Here communication mode is only used for for example, being not used in this
The restriction of invention is able to achieve mode of the invention all within protection scope of the present invention for other.
Embodiment 1
Intelligent electric meter firmware upgrade method provided by the embodiment of the present invention, as shown in Fig. 2, specifically comprising the following steps:
Step 11, the firmware upgrade packet for the intelligent electric meter that main website issues is received;
In this step, due to being communicated by local area network or GPRS between main website and concentrator, comparatively,
It is very fast to pass speed packet, therefore step cost for entirely upgrading process is substantially insignificant.With ammeter firmware liter
Grade packet 200k, every packet size are 1k, the time 2s of one packet of transmission, the time spent in total: (200/1) * 2s=400s, i.e., 7 points
Clock or so main website can pass to firmware upgrade packet on concentrator.
Step 12, in all ammeters for firmware upgrade packet being sent to downlink by way of broadcast.
In this step, except due to concentrator processing upgrading effect, there are also normal tasks, such as meter reading task dispatching
Deng therefore, concentrator of the present invention needs to suspend currently processed task after receiving the firmware upgrade packet of ammeter, by ammeter
Firmware upgrade task adjust to highest priority, in this way it is possible to prevente effectively from other tasks influence firmware upgrade, cause entire
The process of firmware upgrade lengthens, and influences the normal users situation of user.
Due to including multiple data subpackages in firmware upgrade packet, firmware upgrade packet is being sent out by way of broadcast
When sending into all ammeters of downlink, sequentially all data subpackages are broadcasted respectively to all ammeters according to the Bale No. of data subpackage
In.Specifically, include the following steps:
Step 121, the first of broadcast data subpackage is wrapped to all ammeters.
Here, the first packet carries the upgraded version number of firmware upgrade packet, is determined whether to ammeter according to upgraded version number
Carry out this upgrading.There may be different manufacturers or the electricity of same producer's different model in all ammeters hung under concentrator
Table, by the way that upgraded version number is arranged in the first data subpackage, can effectively ensure to upgrade is correct, avoids influencing other non-need
Upgrade the normal use of ammeter.
Wherein, in this step, it needs according to the first of preset number of broadcast times repeated broadcast data subpackage the packet.Here it sets
It is set to broadcast 3 times.Due to carrying upgraded version number in the first packet, and the version number is the key that determine subsequent upgrade.Therefore, exist
In the embodiment, in order to ensure that all ammeters can receive the first packet substantially, need to send repeatedly.Ammeter is receiving first point
Verify after packet to upgraded version number: if version number belongs to the ammeter of same model, ammeter is handled subsequent,
Otherwise the data subpackage of subsequent broadcast is not handled.
Step 122, sequentially data subpackage is broadcasted respectively from two packets to last packet into all ammeters according to Bale No..Electricity
After table receives data subpackage, if the data subpackage of subsequent transmission can be accepted after upper step processes the first data subpackage, into
Row data subpackage verifies (such as format check etc.), and data packet is put into corresponding memory space according to Bale No..
Wherein, when the data subpackage continued after transmission, it is preferred that divided data subpackage according to preset transmission time interval
It between that is, continuous two packet Guang Bo not need that effective time interval is arranged into all ammeters.In this embodiment, the time of setting
Between be divided into 5s, data subpackage can be effectively ensured in this way to be received, and avoid because while sending data subpackage leading to packet loss
The phenomenon that.
In order to further ensure the success rate of ammeter received data packet, in one embodiment of the invention, need to be repeated once step
Rapid 122 broadcast transmission operation.Ammeter determines received mistake after receiving the upgrade package issued, according to Bale No., then will
The data subpackage is abandoned, and otherwise needs to store corresponding data subpackage to corresponding storage location.
It, through the invention can be with based on above-mentioned it is found that by ammeter of the concentrator to lower extension do batch upgrade processing in this way
Human cost and time cost are effectively saved, the efficiency of firmware upgrade is improved.
Embodiment 2
Based on the above embodiments, under normal circumstances, after broadcast, most data subpackages transmission success, but
It is to equally exist the case where ammeter does not receive data subpackage.Therefore, in this embodiment, do not connect for a small number of data subpackages
The case where receipts, is defined.
Specifically, intelligent electric meter firmware upgrade method provided by the embodiment of the present invention, it is wide passing through firmware upgrade packet
After the form broadcast is sent in all ammeters of downlink, further includes:
Step 13, poll reads the packet receiving situation of every table, determines the packet receiving success rate of each data subpackage.
In this step, main website issues poll instruction to concentrator, and poll instruction is sent in each ammeter by concentrator,
And read the packet receiving situation of each table.Here packet receiving situation includes failure, success and corresponding data subpackage Bale No..This
Sample can determine which specific data subpackage receives successfully or reception failure.Wherein, after poll, concentrator periodically to
Main website is reported when forward pass bag-like state (packet receiving situation), allows main website to know current upgrading progress, wherein the period is settable, for
The ammeter that packet is completed is passed, repetition is not done and reports, but is to provide and passes packet progress queries interfaces, inquire main website can also with fixed cycle
Pass packet progress.
Step 14, it is determined by the way of broadcast/group broadcast/unicast according to packet receiving success rate by the data subpackage of transmitting-receiving failure
It is re-transmitted in corresponding ammeter.
In this step, first threshold and second threshold are preset.According to first threshold and second threshold, to judge to receive
Wrap the sending method of the data subpackage of failure.Here, the packet receiving success rate of each data subpackage=(N packet packet receiving is successfully electric
Table number)/(total upgrading ammeter number).
Specifically, it is determined by the way of broadcast/group broadcast/unicast according to packet receiving success rate by the data subpackage of transmitting-receiving failure
It is re-transmitted in corresponding ammeter, comprising:
When the packet receiving success rate of some data subpackage is less than the first preset threshold (such as 80%), then data subpackage is led to
The mode for crossing broadcast is sent in all ammeters;Alternatively,
When some data subpackage packet receiving success rate be greater than the first preset threshold and less than the second preset threshold (such as
90%) when, then data subpackage is sent to by way of multicast in the ammeter of data subpackage packet receiving failure;Alternatively,
When the packet receiving success rate of some data subpackage is greater than the second preset threshold and when less than 100%, then by data subpackage
It is sent to by way of unicast in the ammeter of data subpackage packet receiving failure.
Step 15, step 13 and step 14 are repeated, determines the sending method of follow-up data subpackage, until all ammeters are all received
It is bundled into function, i.e. packet receiving success rate is 100%.
Based on it is above-mentioned it is found that complete embodiment 1 in broadcast after, in order to guarantee that data subpackage is all received by ammeter, after
It is continuous that subsequent packet receiving failure sending method is determined according to the packet receiving state of data subpackage: when the packet receiving of certain data packets failure is high,
Data subpackage can be broadcasted again;And when packet receiving failure is relatively low, the mode that multicast can be used is sent, and is received
When packet failure is very low, unicast can be used and sent.Therefore, in this embodiment, mutually tied by broadcast, multicast and unicast
The sending method of conjunction, it can be ensured that firmware upgrade is completed with the smallest time overhead, is improved the efficiency of upgrading, is avoided to user
Normal electricity consumption cause to seriously affect.
Embodiment 3
Technology contents of the invention are illustrated below with reference to specific example.As shown in figure 3, in this embodiment,
After completely harvesting ammeter upgrade package to concentrator, concentrator opens ammeter upgrading, and concentrator divides three-wheel to hold ammeter upgrading
Row:
The first round, the purpose of broadcast was that most upgrade package are issued to ammeter side using broadcast;
Second wheel uses multicast, and the purpose of multicast is that will have local ammeter to be handed down to electricity without passing successful data packet jointly
Table;
Third round uses unicast, and the purpose is to not have the data packet of transmission success to be handed down to ammeter two step of front.
Wherein, it is as shown in Figure 4 that the case where data subpackage is received after broadcasting by the first round, in ammeter.It is found that first
There are also the failed certain reception data subpackages of local ammeter after wheel broadcast, it can achieve the purpose that transmission by multicast.Passing through the
After two wheel multicasts, the case where reception data subpackage, is as shown in Figure 5 in ammeter.It is found that after first round broadcast, there are also a small amount of ammeters
Data subpackage, at this moment can be sent in corresponding ammeter by point-to-point communication by failed certain reception data subpackages.
It is as shown in Figure 6 that the case where data subpackage is received after through third round unicast, in ammeter.It is found that after the processing for passing through three-wheel, institute
Some ammeters can receive firmware upgrade packet.
In this embodiment, with ammeter upgrade package 200k, for each 127 byte of data subpackage, to firmware in the present invention
The high efficiency that upgrade package is sent is illustrated.It is specific as follows:
(1) in broadcast phase, the packet number of data subpackage are as follows: (200*1024)/127=1612
Broadcast interval time twice in succession: 5s, all data subpackages need to broadcast 2 times;
Broadcast the expense of total time are as follows: 1612 (packet number) * 5 (second) * 2 (secondary) s=16120s=268min=4h28min
(2) in the multicast stage, due to polling overhead: 200*5s=1000s=16min, multicast expense: 20%*1612*5*
2s=3224s=53min, then total expense can obtain are as follows: 16min+53min=69min
(3) in the unicast stage, due to polling overhead again: 200*5s=1000s, and the expense of unicast are as follows: 10%*
1612* (200*20%) * 5*2s==64480s=1074min=17h54min.
Based on above-mentioned it is found that in this embodiment, only data need to can be completed less than one day time in firmware upgrade packet
It sends.Relative to the mode of manual maintenance, need to manually arrive scene and be safeguarded, can be effectively reduced artificial cost and time at
This.
Embodiment 4
Based on any of the above-described embodiment, after firmware upgrade packet of the embodiment of the present invention is sent completely, need to continue to ammeter into
Row verification and activation operation.Specifically, include the following:
It is determining that all ammeters receive firmware upgrade packet, all ammeter tables is allowed to be verified by way of broadcast;
After the completion of to be verified, each ammeter is activated by way of unicast, recording electrical meter updating result, and ammeter
Updating result is notified to main website.
Here, all ammeters are allowed to be verified by broadcast, it is therefore an objective to ammeter be allowed to harvest the number of all firmware upgrades
After subpackage, the verification (for example, whether confirmation firmware upgrade packet is completed) of entire firmware upgrade packet is voluntarily completed, it is ensured that will
The upgrade package to be upgraded is correct.After completion to be verified, ammeter record verification state (verifies successfully/verification failure).
When being activated, need to take turns doing each table unicast activation, every time activation after recording electrical meter upgrading at
Function failure record.Purpose is that ammeter is allowed to do updating operation, if there is failure in activation, then ammeter will retract originally
Version.Activation result is reported to main website by concentrator simultaneously, and main website knows updating result.Wherein, activation behaviour is executed in ammeter
Before work, detection check state then enters activation operation, fails if it is verification, then activate mistake if it is verifying successfully first
It loses, the state that ammeter still maintains verification to fail, so that upgrading failure cause is inquired by main website.After upgrading, ammeter need to be upgraded
Result notice makes main website perceive the result that ammeter upgrades successfully or fails to main website.
In one embodiment of the invention, verification in above-described embodiment in the transmission and the present embodiment of firmware upgrade packet and swash
Calculating living, that the time overhead of entire firmware upgrade is carried out.Specifically,
Ammeter voluntarily Check-Out Time about 1min, time overhead: 5s+1min;
When activation operation, time overhead: 200 (ammeter number) * 5s=1000s=16min;
The time overhead that the event of upgrading successfully reports are as follows: 3s
And total time expense is specific as follows:
Main website passes packet to the concentrator time: 7min broadcast time: 268min groupcast time: 69min
The unicast time: 1074min checking time: 1min activates expense: 16min reports expense: 1min
Amount to the expense of firmware upgrade are as follows: 7+268+69+1074+1+16+1=1436min=1d
It can be seen that, present invention advantage when the ammeter under to concentrator does batch upgrade is very bright through the foregoing embodiment
It is aobvious, human cost is saved, upgrading efficiency is improved.
Embodiment 5
According to an embodiment of the invention, a kind of intelligent electric meter firmware upgrade equipment is provided, for realizing Examples 1 to 4
Method in middle any embodiment.As shown in Figure 7.The equipment includes processor 52 and is stored with 52 executable instruction of processor
Memory 51.Wherein, processor 52 can be general processor, such as central processing unit (central processing
Unit, CPU), it can also be digital signal processor (digital signal processor, DSP), specific integrated circuit
(application specific integrated circuit, ASIC), or be arranged to implement the embodiment of the present invention
One or more integrated circuits.Memory 51 is transferred to CPU for storing program code, and by the program code.Memory
51 may include volatile memory (volatile memory), such as random access memory (random access
Memory, RAM);Memory 51 also may include nonvolatile memory (non-volatile memory), such as read-only deposit
Reservoir (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD)
Or solid state hard disk (solid-state drive, SSD);Memory 51 can also include the combination of the memory of mentioned kind.
Specifically, the intelligent electric meter firmware upgrade equipment, including memory 51 and processor;Wherein, it is deposited in memory 51
Contain the executable intelligent electric meter firmware upgrade procedure of computer, processor 52 for execute intelligent electric meter firmware upgrade procedure with
Realize following steps:
Receive the firmware upgrade packet for the intelligent electric meter that main website issues;
Firmware upgrade packet is passed through in all ammeters that mode by way of broadcast is sent to downlink.
Optionally, firmware upgrade packet includes multiple data subpackages, and processor 52 is for executing intelligent electric meter firmware upgrade journey
Sequence is to realize following steps:
Sequentially all data subpackages are broadcasted respectively into all ammeters according to the Bale No. of data subpackage;Wherein, data point
The upgraded version number of firmware upgrade packet is carried in first packet of packet.
Optionally, processor 52 is for executing intelligent electric meter firmware upgrade procedure to realize following steps:
According to the first of preset number of broadcast times repeated broadcast data subpackage the packet.
Optionally, processor 52 is for executing intelligent electric meter firmware upgrade procedure to realize following steps:
Data subpackage is broadcasted respectively into all ammeters according to preset transmission time interval.
Optionally, after the step in all ammeters for firmware upgrade packet being sent to downlink by way of broadcast, place
Reason device 52 is for executing intelligent electric meter firmware upgrade procedure to realize following steps:
Poll reads the packet receiving situation of every table, determines the packet receiving success rate of each data subpackage;
It is determined according to packet receiving success rate and is sent out the data subpackage of transmitting-receiving failure again by the way of broadcast/group broadcast/unicast
It send into corresponding ammeter.
Optionally, processor 52 is for executing intelligent electric meter firmware upgrade procedure to realize following steps:
When the packet receiving success rate of some data subpackage is less than the first preset threshold, then data subpackage is passed through into the side of broadcast
Formula is sent in all ammeters;Alternatively,
When the packet receiving success rate of some data subpackage is greater than the first preset threshold and when less than the second preset threshold, then will count
It is sent to by way of multicast according to subpackage in the ammeter of data subpackage packet receiving failure;Alternatively,
When the packet receiving success rate of some data subpackage is greater than the second preset threshold and when less than 100%, then by data subpackage
It is sent to by way of unicast in the ammeter of data subpackage packet receiving failure.
Optionally, processor 52 is for executing intelligent electric meter firmware upgrade procedure to realize following steps:
It is reported according to predetermined period to main website and passes bag-like state, so that upgrading progress is known in main website.
Optionally, after the step of receiving the firmware upgrade packet for the intelligent electric meter that main website issues, processor 52 is also used to hold
Row intelligent electric meter firmware upgrade procedure is to realize following steps:
Suspend currently processed task, the priority of firmware upgrade task is adjusted into highest.
Wherein, which is led to by local area network or GPRS communication and is communicated with main website, passes through the modes such as RF/PLC/LORA
It is communicated with all ammeters of downlink.
Optionally, processor 52 is for executing intelligent electric meter firmware upgrade procedure to realize following steps:
It is determining that all ammeters receive firmware upgrade packet, all ammeter tables is allowed to be verified by way of broadcast;
After the completion of to be verified, each ammeter is activated by way of unicast, recording electrical meter updating result, and will be electric
Table updating result is notified to main website.
Embodiment 6
The embodiment of the invention also provides a kind of computer readable storage mediums.Here computer readable storage medium is deposited
Contain one or more program.Wherein, computer readable storage medium may include volatile memory, such as arbitrary access
Memory;Memory also may include nonvolatile memory, such as read-only memory, flash memory, hard disk or solid-state are hard
Disk;Memory can also include the combination of the memory of mentioned kind.When one or more in computer readable storage medium
Program can be executed by one or more processor, to realize intelligent electric meter provided in any embodiment in Examples 1 to 4
Firmware upgrade method.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, program can be stored in computer-readable storage medium, the journey
Sequence is when being executed, it may include such as the process of the embodiment of above-mentioned each method.
Although describing the application by embodiment, it will be apparent to one skilled in the art that the application is there are many deformation and becomes
Change without departing from the spirit and scope of the present invention.If being wanted in this way, these modifications and changes of the present invention belongs to right of the present invention
Ask and its equivalent technologies within the scope of, then the present invention is also intended to include these modifications and variations.
Claims (12)
1. a kind of intelligent electric meter firmware upgrade method characterized by comprising
Receive the firmware upgrade packet for the intelligent electric meter that main website issues;
The firmware upgrade packet is passed through in all ammeters that mode by way of broadcast is sent to downlink.
2. the method as described in claim 1, which is characterized in that the firmware upgrade packet includes multiple data subpackages, described to incite somebody to action
In all ammeters that firmware upgrade packet is respectively sent to downlink by way of broadcast, comprising:
Sequentially all data subpackages are broadcasted respectively into all ammeters according to the Bale No. of the data subpackage;Wherein, the number
According to the upgraded version number for carrying the firmware upgrade packet in the first packet of subpackage.
3. method according to claim 2, which is characterized in that the Bale No. according to the data subpackage is sequentially by all numbers
It is broadcasted respectively according to subpackage into all ammeters, comprising:
According to first of data subpackage described in preset number of broadcast times repeated broadcast the packet.
4. method according to claim 2, which is characterized in that the Bale No. according to the data subpackage is sequentially by all numbers
It is broadcasted respectively according to subpackage into all ammeters, including;
The data subpackage is broadcasted respectively into all ammeters according to preset transmission time interval.
5. the method as described in claim 1, which is characterized in that described to send the firmware upgrade packet by way of broadcast
After into all ammeters of downlink, the method also includes:
Poll reads the packet receiving situation of every table, determines the packet receiving success rate of each data subpackage;
It is determined according to the packet receiving success rate and is sent out the data subpackage of transmitting-receiving failure again by the way of broadcast/group broadcast/unicast
It send into corresponding ammeter.
6. method as claimed in claim 5, which is characterized in that determined according to the packet receiving success rate using broadcast/group broadcast/mono-
The data subpackage of transmitting-receiving failure is re-transmitted in corresponding ammeter by the mode broadcast, comprising:
When the packet receiving success rate of some data subpackage is less than the first preset threshold, then the data subpackage is passed through into the side of broadcast
Formula is sent in all ammeters;Alternatively,
When the packet receiving success rate of some data subpackage is greater than first preset threshold and when less than the second preset threshold, then by institute
Data subpackage is stated to be sent to by way of multicast in the ammeter of the data subpackage packet receiving failure;Alternatively,
When the packet receiving success rate of some data subpackage is greater than the second preset threshold and when less than 100%, then by the data subpackage
It is sent to by way of unicast in the ammeter of the data subpackage packet receiving failure.
7. method as claimed in claim 5, which is characterized in that after the poll reads the packet receiving situation of every table, the side
Method further include:
It is reported according to predetermined period to the main website and passes bag-like state, so that upgrading progress is known in the main website.
8. the method as described in claim 1, which is characterized in that the firmware upgrade packet for receiving the intelligent electric meter that main website issues
Later, the method also includes:
Suspend currently processed task, the priority of firmware upgrade task is adjusted into highest.
9. the method as described in claim 1, which is characterized in that by local area network or general packet radio service GPRS communication with
Main website is communicated, and all electricity of any mode and downlink in power line PLC, radio frequency or wide area networking of things/LORA are passed through
Table is communicated.
10. method as described in any one of claims 1 to 9, which is characterized in that the method also includes:
It is determining that all ammeters receive the firmware upgrade packet, all ammeter tables is allowed to carry out school by way of broadcast
It tests;
After the completion of to be verified, each ammeter is activated by way of unicast, recording electrical meter updating result, and by the electricity
Table updating result is notified to the main website.
11. a kind of intelligent electric meter firmware upgrade equipment characterized by comprising memory and processor;Wherein, the storage
Intelligent electric meter firmware upgrade procedure is stored in device, when the intelligent electric meter firmware upgrade procedure is executed by the processor,
To realize the step in any one of claim 1~10 the method.
12. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has intelligent electric meter
Firmware upgrade procedure, when the intelligent electric meter firmware upgrade procedure is executed by the processor, to realize claim 1~10
Step in any one the method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710382003.XA CN109002303A (en) | 2017-05-26 | 2017-05-26 | A kind of intelligent electric meter firmware upgrade method, equipment and storage medium |
PCT/CN2018/086733 WO2018214775A1 (en) | 2017-05-26 | 2018-05-14 | Method and device for firmware upgrade, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710382003.XA CN109002303A (en) | 2017-05-26 | 2017-05-26 | A kind of intelligent electric meter firmware upgrade method, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109002303A true CN109002303A (en) | 2018-12-14 |
Family
ID=64395265
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710382003.XA Pending CN109002303A (en) | 2017-05-26 | 2017-05-26 | A kind of intelligent electric meter firmware upgrade method, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109002303A (en) |
WO (1) | WO2018214775A1 (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109873722A (en) * | 2019-02-27 | 2019-06-11 | 深圳大学 | Firmware remote upgrade method, device, computer equipment and storage medium |
CN109976784A (en) * | 2019-01-24 | 2019-07-05 | 金卡智能集团股份有限公司 | Intelligent internet of things measuring instrument remote firmware updating method and system |
CN110031054A (en) * | 2019-03-27 | 2019-07-19 | 上海飞奥燃气设备有限公司 | Gas meter, flow meter intelligent controller and its firmware upgrade start method |
CN110471678A (en) * | 2019-07-04 | 2019-11-19 | 中国电力科学研究院有限公司 | A kind of method that electric energy meter firmware uses cast communication mode to upgrade |
CN110505071A (en) * | 2019-08-30 | 2019-11-26 | 苏州浪潮智能科技有限公司 | The method for remote updating of FPGA board, system and relevant apparatus in local area network |
CN110764801A (en) * | 2019-09-29 | 2020-02-07 | 国网湖南省电力有限公司 | High-speed power line carrier remote upgrading method and device |
CN111488166A (en) * | 2020-04-28 | 2020-08-04 | 南方电网数字电网研究院有限公司 | Method and device for upgrading software of management unit of double-core intelligent ammeter and storage medium |
CN111970365A (en) * | 2020-08-18 | 2020-11-20 | 上海冷溪安全科技有限公司 | Wireless upgrading method and handheld device |
CN111965989A (en) * | 2020-08-14 | 2020-11-20 | 深圳市欧瑞博科技股份有限公司 | System updating method and device, smart home control panel and storage medium |
CN112114846A (en) * | 2020-08-18 | 2020-12-22 | 上海汉枫电子科技有限公司 | Batch setting method based on smart electric meter serial port DLT645 |
CN112230961A (en) * | 2020-10-20 | 2021-01-15 | 杭州海兴电力科技股份有限公司 | Intelligent meter upgrading method, device, equipment and medium |
CN112583646A (en) * | 2020-12-25 | 2021-03-30 | 宁波三星医疗电气股份有限公司 | Remote upgrading method for intelligent electric meter |
CN113346979A (en) * | 2021-06-20 | 2021-09-03 | 深圳弘星智联科技有限公司 | Method for improving carrier communication success rate by dynamically adjusting data frame length |
CN113741941A (en) * | 2021-09-16 | 2021-12-03 | 杭州海兴电力科技股份有限公司 | Ammeter upgrading method, device and system |
CN113949532A (en) * | 2021-09-18 | 2022-01-18 | 武汉正维电子技术有限公司 | Remote encryption upgrading method and system for Internet of things equipment |
CN113949733A (en) * | 2021-08-31 | 2022-01-18 | 宁波三星智能电气有限公司 | Firmware upgrading method for electric energy meter |
CN114338656A (en) * | 2022-03-14 | 2022-04-12 | 杭州炬华科技股份有限公司 | Method and system for rapidly upgrading firmware of electric energy meter and readable storage medium |
CN115118718A (en) * | 2022-08-30 | 2022-09-27 | 深圳市华曦达科技股份有限公司 | Android terminal device upgrade updating method and system and readable storage medium |
CN117119032A (en) * | 2023-10-20 | 2023-11-24 | 成都秦川物联网科技股份有限公司 | Remote price adjustment method, device and equipment for ultrasonic metering instrument based on Internet of things |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111726235B (en) * | 2020-06-16 | 2022-04-12 | 四川九州电子科技股份有限公司 | Automatic batch upgrading method and system for data communication terminal based on multicast protocol |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379142A (en) * | 2012-04-17 | 2013-10-30 | 国基电子(上海)有限公司 | Terminal device firmware upgrading method and system |
CN105607922B (en) * | 2015-12-06 | 2018-12-28 | 江苏林洋能源股份有限公司 | A kind of intelligent electric energy meter that the non-maintaining firmware of clock easily upgrades and its upgrade method |
CN105491159A (en) * | 2016-01-15 | 2016-04-13 | 青岛海尔智能家电科技有限公司 | Firmware upgrade pack transmitting method, firmware upgrade pack acquiring method, firmware upgrade pack transmitting device and firmware upgrade pack acquiring device |
-
2017
- 2017-05-26 CN CN201710382003.XA patent/CN109002303A/en active Pending
-
2018
- 2018-05-14 WO PCT/CN2018/086733 patent/WO2018214775A1/en active Application Filing
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109976784A (en) * | 2019-01-24 | 2019-07-05 | 金卡智能集团股份有限公司 | Intelligent internet of things measuring instrument remote firmware updating method and system |
CN109873722A (en) * | 2019-02-27 | 2019-06-11 | 深圳大学 | Firmware remote upgrade method, device, computer equipment and storage medium |
CN110031054A (en) * | 2019-03-27 | 2019-07-19 | 上海飞奥燃气设备有限公司 | Gas meter, flow meter intelligent controller and its firmware upgrade start method |
WO2020192669A1 (en) * | 2019-03-27 | 2020-10-01 | 上海飞奥燃气设备有限公司 | Gas meter intelligent controller and firmware upgrade start-up method therefor |
CN110471678A (en) * | 2019-07-04 | 2019-11-19 | 中国电力科学研究院有限公司 | A kind of method that electric energy meter firmware uses cast communication mode to upgrade |
CN110505071A (en) * | 2019-08-30 | 2019-11-26 | 苏州浪潮智能科技有限公司 | The method for remote updating of FPGA board, system and relevant apparatus in local area network |
CN110764801A (en) * | 2019-09-29 | 2020-02-07 | 国网湖南省电力有限公司 | High-speed power line carrier remote upgrading method and device |
CN110764801B (en) * | 2019-09-29 | 2024-02-27 | 国网湖南省电力有限公司 | Remote upgrading method and device for high-speed power line carrier |
CN111488166A (en) * | 2020-04-28 | 2020-08-04 | 南方电网数字电网研究院有限公司 | Method and device for upgrading software of management unit of double-core intelligent ammeter and storage medium |
CN111965989B (en) * | 2020-08-14 | 2024-01-26 | 深圳市欧瑞博科技股份有限公司 | System updating method and device, intelligent home control panel and storage medium |
CN111965989A (en) * | 2020-08-14 | 2020-11-20 | 深圳市欧瑞博科技股份有限公司 | System updating method and device, smart home control panel and storage medium |
CN112114846A (en) * | 2020-08-18 | 2020-12-22 | 上海汉枫电子科技有限公司 | Batch setting method based on smart electric meter serial port DLT645 |
CN111970365A (en) * | 2020-08-18 | 2020-11-20 | 上海冷溪安全科技有限公司 | Wireless upgrading method and handheld device |
CN112230961A (en) * | 2020-10-20 | 2021-01-15 | 杭州海兴电力科技股份有限公司 | Intelligent meter upgrading method, device, equipment and medium |
CN112583646A (en) * | 2020-12-25 | 2021-03-30 | 宁波三星医疗电气股份有限公司 | Remote upgrading method for intelligent electric meter |
CN113346979A (en) * | 2021-06-20 | 2021-09-03 | 深圳弘星智联科技有限公司 | Method for improving carrier communication success rate by dynamically adjusting data frame length |
CN113346979B (en) * | 2021-06-20 | 2023-11-28 | 深圳弘星智联科技有限公司 | Method for improving success rate of carrier communication by dynamically adjusting data frame length |
CN113949733A (en) * | 2021-08-31 | 2022-01-18 | 宁波三星智能电气有限公司 | Firmware upgrading method for electric energy meter |
CN113741941A (en) * | 2021-09-16 | 2021-12-03 | 杭州海兴电力科技股份有限公司 | Ammeter upgrading method, device and system |
CN113949532A (en) * | 2021-09-18 | 2022-01-18 | 武汉正维电子技术有限公司 | Remote encryption upgrading method and system for Internet of things equipment |
CN114338656A (en) * | 2022-03-14 | 2022-04-12 | 杭州炬华科技股份有限公司 | Method and system for rapidly upgrading firmware of electric energy meter and readable storage medium |
CN115118718A (en) * | 2022-08-30 | 2022-09-27 | 深圳市华曦达科技股份有限公司 | Android terminal device upgrade updating method and system and readable storage medium |
CN117119032A (en) * | 2023-10-20 | 2023-11-24 | 成都秦川物联网科技股份有限公司 | Remote price adjustment method, device and equipment for ultrasonic metering instrument based on Internet of things |
Also Published As
Publication number | Publication date |
---|---|
WO2018214775A1 (en) | 2018-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109002303A (en) | A kind of intelligent electric meter firmware upgrade method, equipment and storage medium | |
US10447816B2 (en) | Efficient firmware update in a narrow bandwidth system | |
US7554459B2 (en) | Method and system for remote updates of meters for metering the consumption of electricity, water or gas | |
CN107087033A (en) | Information push method, device, storage medium and computer equipment | |
CN107579863A (en) | Terminal OTA upgrade methods, apparatus and system | |
CN103379446B (en) | Multi-terminal control method and device based on wifi | |
CN104318750A (en) | Meter reading method, device and system | |
CN110429708B (en) | Method and system for realizing plug and play of power distribution equipment | |
CN103685487A (en) | Child node updating method in wireless communication network | |
CN101840328B (en) | Data processing method, system and related equipment | |
CN105336138A (en) | Method and system for wireless electricity meter to be automatically registered to concentrator | |
CN103873433A (en) | Service activation-based data processing method, device, server and system | |
CN103346980B (en) | A kind of business scheduling method, device and the network equipment | |
CN102195798B (en) | A kind of method and system of optical network unit of upgrading | |
EP2330774A1 (en) | Method, device and system for multicasting upgrade files | |
CN105912340A (en) | Primary device, remote control and overhead upgrading method of remote control | |
US10469620B2 (en) | Method for transferring a new software version to at least one electricity meter via a communication network | |
CN107426279A (en) | A kind of local area network wireless upgrade method of Internet of Things car-mounted terminal | |
CN106487575A (en) | A kind of communication module batch upgrading method based on power line communication | |
CN111130690A (en) | Processing method and device for multiple communication protocols of IR46 smart electric meter | |
CN105472377B (en) | Television set debugging method and device | |
CN109102245A (en) | A kind of processing method of approval process, system and device | |
CN108307335A (en) | A kind of data transmission method, apparatus and system | |
CN104869543B (en) | Base station and user terminal information transmission method and device | |
CN109889368B (en) | GPRS remote upgrading method based on STM32 controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181214 |