CN110166554A - Ammeter update device, method, concentrator and storage medium - Google Patents
Ammeter update device, method, concentrator and storage medium Download PDFInfo
- Publication number
- CN110166554A CN110166554A CN201910430255.4A CN201910430255A CN110166554A CN 110166554 A CN110166554 A CN 110166554A CN 201910430255 A CN201910430255 A CN 201910430255A CN 110166554 A CN110166554 A CN 110166554A
- Authority
- CN
- China
- Prior art keywords
- ammeter
- processing module
- upgrading
- sent
- concentrator
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements 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/1607—Details of the supervisory signal
- H04L1/1614—Details of the supervisory signal using bitmaps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Abstract
The present embodiments relate to technical field of electric power, provide ammeter update device, method, concentrator and storage medium, and described device includes: processing module, for sending to sending module and initially completing instruction after completing initialization to each ammeter;Sending module is simultaneously sent to each ammeter for when receiving initial completion instruction, obtaining the pre-stored upgrade file of concentrator, and after the transmission for completing all upgrade files, is sent completely instruction to processing module feedback;Processing module, for sending activation command to each ammeter after receiving and being sent completely instruction, so that each ammeter is upgraded according to activation command and upgrade file.Compared with prior art, upgrading efficiency can be improved in the embodiment of the present invention.
Description
Technical field
The present invention relates to ammeter upgrade technique fields, in particular to a kind of ammeter update device, method, concentrator
And storage medium.
Background technique
With the update in epoch, people's lives mode also increasingly changes with the development of science and technology, the metering outfit of electric energy
Also intelligent meter of today is updated to from the Simple mechanical ammeter in last century.What the metering of mechanical power energy meter relied on is internal electricity
The design of magnetic device can only replace completely ammeter if there is new measuring requirement or other function demand.But intelligence electricity
Table is different, relies on completely new hardware design, intelligent electric meter realizes the accurate metering to electricity, data by sophisticated software
Transmission, the functions such as detection of stealing, meanwhile, intelligent electric meter can realize originally no one by way of upgrading software
A little functions.
Upgrade file is transmitted after being authenticated in the prior art by concentrator to ammeter again, ammeter receives upgrading text again
Updating operation is completed after part, carries out the upgrading of next ammeter again after the upgrade job for completing an ammeter, upgrades low efficiency.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of ammeter update device, method, concentrator and storage medium, to change
Kind concentrator in the prior art is when upgrading ammeter, the problem of upgrading low efficiency.
To solve the above problems, the present embodiment the technical solution adopted is as follows:
In a first aspect, the embodiment of the present invention provides a kind of ammeter update device, applied to what is communicated at least one ammeter
Concentrator, the concentrator are pre-established with processing module and sending module, and described device includes: the processing module, are used for
After completing initialization to each ammeter, Xiang Suoshu sending module sends initial completion instruction;The sending module, is used for
When receiving initial completion instruction, obtains the pre-stored upgrade file of the concentrator and be sent to each electricity
Table, and after the transmission for completing all upgrade files, Xiang Suoshu processing module feedback is sent completely instruction;The processing module,
For receive it is described be sent completely instruction after, send activation command to each ammeter so that each ammeter according to
Upgraded according to the activation command and the upgrade file.
Second aspect, the embodiment of the present invention provide a kind of ammeter upgrade method, applied to what is communicated at least one ammeter
Concentrator, the concentrator are pre-established with processing module and sending module, which comprises the processing module is to every
After a ammeter completes initialization, Xiang Suoshu sending module sends initial completion instruction;The sending module, which is worked as, receives institute
When stating initial completion instruction, obtains the pre-stored upgrade file of the concentrator and be sent to each ammeter, and complete
After transmission at all upgrade files, Xiang Suoshu processing module feedback is sent completely instruction;The processing module is receiving
It states after being sent completely instruction, activation command is sent to each ammeter, so that each ammeter is according to the activation command
Upgraded with the upgrade file.
The third aspect, the embodiment of the present invention provide a kind of concentrator, and the concentrator includes: memory;Processor;It is described
The computer program that can be run on the processor is stored in memory, when the processor executes the computer program
The step of realizing above-mentioned ammeter upgrade method.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, are stored thereon with computer program, the computer journey
Above-mentioned ammeter upgrade method is realized when sequence is executed by processor.
Compared with the existing technology, ammeter update device, method, concentrator and storage medium provided in an embodiment of the present invention,
By pre-establishing processing module and sending module in concentrator, processing module is for carrying out each ammeter to initialize it
Afterwards, it is sent to sending module and initially completes instruction, sending module is used to that it is pre- to obtain concentrator when receiving initial completion instruction
The upgrade file that first stores simultaneously is sent to each ammeter, and after completing to the transmission of the upgrade file of all ammeters, to processing
Module feedback complete send instruction, processing module be also used to receive sending module be sent completely instruction after, to each electricity
Table sends activation command, so that each ammeter is upgraded according to activation command and upgrade file.Processing module is used for ammeter
Initialization and subsequent transmission activation command are carried out, sending module carries out whole process at the division of labor for sending upgrade file
Reason, can synchronously upgrade multiple ammeters, improve upgrading efficiency.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the annexation figure of concentrator provided in an embodiment of the present invention and ammeter;
Fig. 2 is the block diagram of concentrator provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the first ammeter upgrade method provided in an embodiment of the present invention;
Fig. 4 is the flow chart of second of ammeter upgrade method provided in an embodiment of the present invention;
Fig. 5 is the block diagram of ammeter update device provided in an embodiment of the present invention.
Icon: 10- concentrator;101- processor;102- memory;103- bus;104- communication interface;20- ammeter;
300- ammeter update device;301- processing module;302- sending module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can be
Mechanical connection, is also possible to be electrically connected;It can be directly connected, two can also be can be indirectly connected through an intermediary
Connection inside element.For the ordinary skill in the art, above-mentioned term can be understood in the application with concrete condition
In concrete meaning.
With reference to the accompanying drawing, it elaborates to some embodiments of the application.In the absence of conflict, following
Feature in embodiment and embodiment can be combined with each other.
To make the above purposes, features and advantages of the invention more obvious and understandable, with reference to the accompanying drawing to the present invention
Specific embodiment be described in detail.
Upgrade file is transmitted after being authenticated in the prior art by concentrator to ammeter again, ammeter receives upgrading text again
Updating operation is completed after part, carries out the upgrading of next ammeter again after the upgrade job for completing an ammeter, upgrades low efficiency.
Specifically, intelligent meter of today realizes the software operation of intelligent meter by embedded system, based on low-power consumption
Arm processor and the device of various peripheries, circuit realize the accurate metering of electricity.But the demand of user always with
The passage of time is considered due to industry competition fierceness for cost control in variation, it is impossible to every time just in face of new demand
A collection of ammeter is replaced, so just there is through upgrading software the method for meeting user's new demand.In order to guarantee upgrade file
Reliable and safety, existing upgrading mode are to upgrade one by one, after the completion of an ammeter upgrades, then are carried out next
The upgrading of ammeter needs to consume a large amount of time, so that upgrading low efficiency.
For above-mentioned problem, the embodiment of the present invention provides a kind of ammeter upgrade method, and core improvement is, passes through
Processing module carries out the transmission of initialization and subsequent activation instruction, and sending module carries out the transmission of upgrade file, by whole process
Division of labor processing is carried out, synchronously multiple ammeters can be upgraded, so that all ammeter batch upgrades being connect with concentrator,
Improve upgrading efficiency.
Ammeter upgrade method provided in an embodiment of the present invention be applied to concentrator 10, referring to Fig. 1, concentrator 10 at least
One ammeter 20 connects, to realize the communication between concentrator 10 and at least one ammeter 20, ammeter upgrade method be used for
The ammeter 20 of the concentrator 10 connection carries out upgrading processing.Connection between concentrator 10 and ammeter 20, which can be, to be electrically connected,
It can be communication connection, the embodiment of the present invention is not limited thereto.At least one ammeter 20 can be an ammeter 20, can also be with
It is two ammeters 20, can also be the ammeter 20 of more numbers.
In embodiments of the present invention, it can be pre-established with processing module 301 and sending module 302 on concentrator 10, locate
It can communicate between reason module 301 and sending module 302, processing module 301 can be used for reading and writing every master data,
Various executable commands can be sent, corresponding permission is the permission of administrator's identity, has ID authentication mechanism, sends mould
Block 302 can be used for the write-in of partial data, i.e. transmission data, and corresponding permission is the permission of pre-connection identity, is not had
ID authentication mechanism, and the transmission for data send next frame number without the feedback according to recipient (for example, ammeter)
According to, only need to execute the transmission of a frame frame data.
The difference of administrator's identity and pre-connection identity is as follows, and administrator's identity needs to judge when communicating with ammeter 20
Whether the address and server-side address of client are correct, and require to carry out verification process in each communication, due to upgrading
File compares larger, needs to stop normal data reading system completely in escalation process, this can be to 20 copy reading statistical data of ammeter
Certain inconvenience is caused, pre-connection identity is then different, only judges whether ammeter 20 is pre-connection user, passes through special number first
According to frame structure, pre-connection identity, which may not need, can carry out coded communication with all ammeters 20 by shaking hands, and thus may be used
To transmit data to ammeter 20 all under the same concentrator 10 in the case where guaranteeing data security, also just because of this
The design characteristics of sample, pre-connection identity are can not to carry out the reading of data.But for the software upgrading of ammeter 20, rising
Using this identity upgrade file is sent during grade just seem and be very suitable to, and because using pre-connection identity, will not interrupt
The normal data reading system of administrator's identity.Doing so not only can be improved upgrading efficiency, while can guarantee the record of ammeter 20
Electricity consumption data be normally uploaded to concentrator 10.
It should be noted that above-mentioned processing module 301 and sending module 302 can be by one or more threads Lai real
It is existing, it can be understood as, one or more thread guards above-mentioned processing module 301 and sending module 302 jointly.
Referring to Fig. 2, Fig. 2 is the block diagram of concentrator provided in an embodiment of the present invention.Concentrator 10 includes processing
Device 101, memory 102, bus 103 and communication interface 104.Processor 101, memory 102 and communication interface 104 pass through bus
103 connections, processor 101 is for executing executable module, such as computer program.
Processor 101 may be a kind of IC chip, the processing capacity with signal.During realization, ammeter
Each step of upgrade method can be complete by the integrated logic circuit of the hardware in processor 101 or the instruction of software form
At.Above-mentioned processor 101 can be general processor, including central processing unit (Central Processing Unit, letter
Claim CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital
Signal Processor, abbreviation DSP), specific integrated circuit (Application Specific Integrated
Circuit, abbreviation ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or
Person other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Memory 102 may be, but not limited to, random access memory 102 (Random Access Memory, RAM),
Read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Bus 103 can be ISA (Industry Standard Architecture) bus, PCI (Peripheral
Component Interconnect) bus or EISA (Extended Industry Standard Architecture) be total
Line etc..It is only indicated with a four-headed arrow in Fig. 2, it is not intended that an only bus or a type of bus.
Communication interface 104 can be used for carrying out the communication of signaling or data with other node devices.Concentrator passes through at least one
A communication interface 104 (can be wired or wireless) realizes the communication link between other equipment (for example, ammeter) of outside
It connects.Memory 102 is for storing program, such as ammeter update device 300.Ammeter update device 300 includes at least one can be with
The form of software or firmware (firmware) is stored in the memory 102 or is solidificated in the operating system of electric energy meter 100
Software function module in (operating system, OS).The processor 101 executes institute after receiving and executing instruction
Program is stated to realize ammeter upgrade method.
It should be understood that structure shown in Fig. 2 is only the structure application schematic diagram of concentrator 10, concentrator 10 can also be wrapped
Include than shown in Fig. 2 more perhaps less component or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2
It can be realized using hardware, software, or its combination.
Based on above-mentioned concentrator 10, a kind of possible implementation of ammeter upgrade method is given below, this method is held
Row main body can be above-mentioned concentrator 10, referring to Fig. 3, Fig. 3 is the first ammeter upgrade method provided in an embodiment of the present invention
Flow chart.Ammeter upgrade method the following steps are included:
S1, processing module 301 send initial completion to sending module 302 and refer to after completing initialization to each ammeter 20
It enables.
In embodiments of the present invention, initial completion instruction can be characterization and concentrator 10 to all ammeters connected to it
20 all complete the signal of initialization.It is default value that initialization, which can be the variable assignments of ammeter 20, and control is set as defaulting
The step of state, after processing module 301 completes initialization to each ammeter 20, sends initial completion instruction to sending module 302
The step of, it can be understood as, processing module 301 initializes each ammeter 20 connecting with concentrator 10, and complete
After initial work at all ammeters 20, initial completion instruction is sent to sending module 302.
For example, concentrator 10 and 1# ammeter 20,2# ammeter 20,3# ammeter 20 and 4# ammeter 20 are all connected with, then, handle mould
Block 301 can be sent initial complete after completing to the initial work of 1# ammeter 20,2# ammeter 20,3# ammeter 20 and 4# ammeter 20
At instruction to sending module 302.
S2, sending module 302 obtain the pre-stored upgrade file of concentrator 10 simultaneously when receiving initial completion instruction
It is sent to each ammeter 20, and after the transmission for completing all upgrade files, is sent completely instruction to the feedback of processing module 301.
In embodiments of the present invention, upgrade file is previously stored in concentrator 10, upgrade file can be concentrator 10
It is acquired by communication interface 104 from other equipment.Being sent completely instruction can be characterization concentrator 10 for upgrade file
It is sent to the signal of all ammeters 20 connecting with the concentrator 10.
Sending module 302 obtains the pre-stored upgrade file of concentrator 10 and simultaneously will when receiving initial completion instruction
Upgrade file is sent to each ammeter 20, and after the transmission for completing all upgrade files, has sent to the feedback of processing module 301
The step of at instruction, it can be understood as, when sending module 302 receives the initial completion instruction that processing module 301 sends over
When, sending module 302 obtains the pre-stored upgrade file of concentrator 10, and the upgrade file is sent to each ammeter 20,
After completing to the transmission of the upgrade file of all ammeters 20, instruction is sent completely to the feedback of processing module 301.
For example, sending module 302 receives initial completion instruction, it is concurrent to obtain the pre-stored upgrade file of concentrator 10
It send to 1# ammeter 20,2# ammeter 20,3# ammeter 20 and 4# ammeter 20, and completes upgrade file being sent to 1# ammeter 20,2#
After the movement of ammeter 20,3# ammeter 20 and 4# ammeter 20, instruction is sent completely to the feedback of processing module 301.
S3, processing module 301 sends activation command after receiving and being sent completely instruction, to each ammeter 20, so that often
A ammeter 20 is upgraded according to activation command and upgrade file.
In embodiments of the present invention, processing module 301 receive sending module 302 feedback be sent completely instruction after,
Activation command is sent to each ammeter 20, it should be noted that the activation command type sent to each ammeter 20 is identical, specifically
Content can be different, for example, activation command can be different upgrading moment point (type), each ammeter 20 is according to receiving
Activation command and upgrade file are upgraded.
Further, in order to which the integrality and correctness of verifying upgrade file provide a kind of ammeter on the basis of Fig. 3
Upgrade method, referring to Fig. 4, Fig. 4 is the flow chart of second of ammeter upgrade method provided in an embodiment of the present invention.
S201, processing module 301 send initial completion to sending module 302 after completing initialization to each ammeter 20
Instruction.
In embodiments of the present invention, initial completion instruction can be characterization and concentrator 10 to all ammeters connected to it
20 all complete the signal of initialization.It is default value that initialization, which can be the variable assignments of ammeter 20, and control is set as defaulting
The step of state, after processing module 301 completes initialization to each ammeter 20, sends initial completion instruction to sending module 302
The step of, it can be understood as, processing module 301 initializes each ammeter 20 connecting with concentrator 10, and complete
After initial work at all ammeters 20, initial completion instruction is sent to sending module 302.
S202, sending module 302 obtain the pre-stored upgrade file of concentrator 10 when receiving initial completion instruction
And it is sent to each ammeter 20, and after the transmission for completing all upgrade files, finger is sent completely to the feedback of processing module 301
It enables.
In embodiments of the present invention, upgrade file is previously stored in concentrator 10, upgrade file can be concentrator 10
It is acquired by communication interface 104 from other equipment.Being sent completely instruction can be characterization concentrator 10 for upgrade file
It is sent to the signal of all ammeters 20 connecting with the concentrator 10.
Sending module 302 obtains the pre-stored upgrade file of concentrator 10 and simultaneously will when receiving initial completion instruction
Upgrade file is sent to each ammeter 20, and after the transmission for completing all upgrade files, has sent to the feedback of processing module 301
The step of at instruction, it can be understood as, when sending module 302 receives the initial completion instruction that processing module 301 sends over
When, sending module 302 obtains the pre-stored upgrade file of concentrator 10, and the upgrade file is sent to each ammeter 20,
After completing to the transmission of the upgrade file of all ammeters 20, instruction is sent completely to the feedback of processing module 301.
Upgrade file includes multiframe upgrading data frame, and multiframe upgrading data frame has collectively constituted upgrade file.
It should be noted that sending module 302 when carrying out the transmission of upgrade file, can be frame upgrading data frame hair
Send subsequent supervention that next frame is sent to upgrade data frame, without returning to confirmation data frame to ammeter 20 after frame upgrading data frame is sent
Next frame upgrading data frame is retransmited, therefore, upgrade file is sent by sending module 302, transmission upgrade file can be improved
Speed, and then upgrading efficiency can be improved.
S203, processing module 301 receives the transmission bitmap that each ammeter 20 is fed back, and determines according to each transmission bitmap
All shortage of data ammeters.
In embodiments of the present invention, reception condition of the transmission bitmap characterization ammeter 20 to multiframe upgrading data frame.It can manage
Xie Wei, a complete upgrade file include that 10 frames upgrade data frame, and the transmission bitmap that each ammeter 20 is fed back can characterize this
Ammeter 20 receives the case where multiframe upgrading data frame.It can indicate to receive upgrading data frame using digital " 1 " in transmission bitmap,
It indicates not receiving upgrading data frame using data " 0 ", then the form of transmission bitmap can be 1 or/and 0 combining form.
For example, " 1110001110 " " 111111111 ".Shortage of data ammeter can be the ammeter for not receiving complete upgrade file
20, i.e., the ammeter 20 of all upgrading data frames is not received.
Processing module 301 receives the transmission bitmap that each ammeter 20 is fed back, and determines own according to each transmission bitmap
Shortage of data ammeter the step of, it can be understood as, processing module 301 receives the transmission bitmap that each ammeter 20 is fed back, according to
Determine its corresponding ammeter 20 judge whether the ammeter 20 is shortage of data ammeter according to transmission bitmap.Specifically, it handles
Whether module 301 can be each transmission bitmap and be detected, include digital " 0 " in detection transmission bitmap, if detecting transmission
Include digital " 0 " in bitmap, then determines that the corresponding ammeter 20 of the transmission bitmap is shortage of data ammeter.
For example, processing module 301 receives the transmission bitmap " 1110111011 " of the feedback of 1# ammeter 20,2# ammeter 20 is fed back
Transmission bitmap " 1111111111 ", 3# ammeter 20 feed back transmission bitmap " 1011111111 " and 4# ammeter 20 feed back transmission
Bitmap " 1111111111 ", is judged by processing module 301, the transmission bitmap fed back due to 1# ammeter 20 and 3# ammeter 20
In contain digital " 0 ", then 1# ammeter 20 and 3# ammeter 20 are determined as shortage of data ammeter.
S204, processing module 301 upgrade data frame and the corresponding transmission bitmap of each shortage of data ammeter according to multiframe, really
The corresponding missing data frame of each shortage of data ammeter is made, and each missing data frame is respectively sent to corresponding data and is lacked
Power loss table.
In embodiments of the present invention, missing data frame can be the upgrading data frame that shortage of data ammeter does not receive.Place
It manages module 301 and upgrades data frame and the corresponding transmission bitmap of each shortage of data ammeter according to multiframe, determine that each data lack
The corresponding missing data frame of power loss table, and the step of each missing data frame is respectively sent to corresponding shortage of data ammeter,
It is to be understood that include from the same complete upgrade file is more according to the corresponding transmission bitmap of each shortage of data ammeter
Corresponding missing data frame is determined in frame upgrading data frame, and then, the missing data frame determined is sent to pair
The shortage of data ammeter answered.
For example, the corresponding transmission bitmap of 1# shortage of data ammeter 20 is " 1110111011 ", 3# shortage of data ammeter 20 is right
The transmission bitmap answered is " 1011111111 ".Complete upgrading data frame has 10 frames, then, 1# shortage of data ammeter 20 is corresponding
Missing data frame is to be transmitted as the corresponding upgrading data frame in digital " 0 " position in figure, that is to say, that 1# shortage of data electricity
The corresponding missing data frame of table is that the 4th frame upgrades data frame and the 8th frame upgrades data frame, the corresponding missing of 3# shortage of data ammeter
Data frame is that the 2nd frame upgrades data frame.
S205, processing module 301 send checking command to each ammeter 20 so that each ammeter 20 according to upgrade file into
Row verification obtains check results.
In embodiments of the present invention, check results can be verification pass through or verify failure one of.In upgrade file
Upgrading data and check code are contained, check code is used to verify upgrading data.Processing module 301 sends checking command extremely
Each ammeter 20, so that each ammeter 20 is verified the step of obtaining check results according to upgrade file, it can be understood as, place
Reason module 301 sends checking command and is verified to ammeter 20 when ammeter 20 receives checking command to upgrade file, with
Guarantee the correctness of upgrade file.Specifically, ammeter 20 opens the upgrade file received, obtains upgrading data and check code,
Upgrading data therein are calculated according to preset verification rule, an available numeric data code, the number that will be calculated
It is compared according to code with the check code in upgrade file, when numeric data code is consistent with check code, it may be considered that check results are
Verification passes through, and upgrade file is correct, when numeric data code and check code are inconsistent, it may be considered that check results are verification failure,
Upgrade file is wrong.
S206, processing module 301 receives the check results that each ammeter 20 is fed back, and determines according to each check results
All data exception ammeters out.
In embodiments of the present invention, processing module 301 receives the check results that each ammeter 20 is fed back, and according to each school
Test the step of result determines all data exception ammeters, it can be understood as, processing module 301 receives each ammeter 20 and feeds back
Check results, by check results be verification failure ammeter 20 be determined as data exception ammeter.
Upgrade file is sent to each data exception ammeter by S207, processing module 301.
In embodiments of the present invention, it when step S206 determines all data exception ammeters, can retransmit
Then upgrade file executes step S203-S207, again to each abnormal data ammeter to guarantee the received upgrade file of ammeter 20
Integrality and correctness.
In other embodiments of the invention, it can also abandon when determining data exception ammeter to data exception electricity
Table upgrading.
S208, processing module 301 send activation command after receiving and being sent completely instruction, to each ammeter 20, so that
Each ammeter 20 is upgraded according to activation command and upgrade file.
In other embodiments of the invention, when the correctness and integrality for completing the received upgrade file of ammeter 20
After confirmation, activation command is sent to each ammeter 20, it should be noted that the activation command type phase sent to each ammeter 20
Together, particular content can be different, for example, activation command can be different upgrading moment point (type), each 20 foundation of ammeter
The activation command and upgrade file received is upgraded.When upgrading moment point is same upgrading moment point, can be realized every
A ammeter 20 is upgraded according to upgrading moment point and upgrade file in same upgrading moment point.
The upgrading moment point for being sent to each ammeter 20 can be identical, for example, upgrading moment point is 24 points, 1# ammeter 20,
2# ammeter 20,3# ammeter 20 and 4# ammeter 20 are upgraded when 24.It is sent to the upgrading moment of each ammeter 20
Point can also be different, for example, the upgrading moment point for being sent to 1# ammeter 20 is, be sent to the upgrading moment point of 2# ammeter 20 at 22 points
It is 23 points, the upgrading moment point for being sent to 3# ammeter 20 is 24 points, and the upgrading moment point for being sent to 4# ammeter 20 is 1:00 AM,
1# ammeter 20,2# ammeter 20,3# ammeter 20 and 4# ammeter 20 are upgraded according to the upgrading moment point being respectively received respectively.
For the method flow of above-mentioned Fig. 3 and Fig. 4, a kind of possible implementation of ammeter update device 300 is given below,
The ammeter update device 300 can be realized using the device architecture of the concentrator 10 in above-described embodiment, or the concentration
Processor 101 in device 10 is realized, referring to Fig. 5, the box that Fig. 5 is ammeter update device provided in an embodiment of the present invention is illustrated
Figure.Ammeter update device 300 includes processing module 301 and sending module 302.
Processing module 301, for sending initial completion to sending module 302 after completing initialization to each ammeter 20
Instruction;
Sending module 302, for obtaining the pre-stored upgrade file of concentrator 10 when receiving initial completion instruction
And it is sent to each ammeter 20, and after the transmission for completing all upgrade files, finger is sent completely to the feedback of processing module 301
It enables;
Processing module 301, for sending activation command to each ammeter 20 after receiving and being sent completely instruction, so that
Each ammeter 20 is upgraded according to activation command and upgrade file.
In embodiments of the present invention, upgrade file includes multiframe upgrading data frame, and processing module 301 is also used to: being received every
The transmission bitmap that a ammeter 20 is fed back, and all shortage of data ammeters are determined according to each transmission bitmap, wherein transmission position
Chart levies each ammeter 20 to the reception condition of multiframe upgrading data frame;According to multiframe upgrading data frame and each shortage of data electricity
The corresponding transmission bitmap of table determines the corresponding missing data frame of each shortage of data ammeter, and each missing data frame is divided
It is not sent to corresponding shortage of data ammeter.
In embodiments of the present invention, processing module 301 is also used to: sending checking command to each ammeter 20, so that each
Ammeter 20 is verified to obtain check results according to upgrade file;The check results that each ammeter 20 is fed back are received, and according to every
A check results determine all data exception ammeters;Upgrade file is sent to each data exception ammeter.
In embodiments of the present invention, activation command includes upgrading moment point, and processing module 301 is executed to be sent out to each ammeter 20
Activation command is sent, in a manner of upgrading each ammeter 20 according to activation command and upgrade file, comprising: to each ammeter
20 send upgrading moment point, so that each ammeter 20 is risen according to upgrading moment point and upgrade file in same upgrading moment point
Grade.
It is apparent to those skilled in the art that for convenience and simplicity of description, the ammeter of foregoing description
The specific work process of update device 300, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
The embodiment of the present invention also provides a kind of computer readable storage medium, which has computer
Executable instruction, computer executable instructions are for realizing above-mentioned ammeter upgrade method.
In conclusion the embodiment of the present invention provides a kind of ammeter update device, method, concentrator and storage medium, ammeter
Update device includes: processing module, for sending to sending module and initially completing to refer to after completing initialization to each ammeter
It enables;Sending module is simultaneously sent to often for when receiving initial completion instruction, obtaining the pre-stored upgrade file of concentrator
A ammeter, and after the transmission for completing all upgrade files, instruction is sent completely to processing module feedback;Processing module is used for
After receiving and being sent completely instruction, activation command is sent to each ammeter, so that each ammeter is according to activation command and upgrading
File is upgraded.Initialization and the transmission of activation instruction are carried out by processing module, sending module carries out the hair of upgrade file
It send, whole process is subjected to division of labor processing, synchronously multiple ammeters can be upgraded, connect so that all with concentrator
Ammeter batch upgrade improves upgrading efficiency.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other
Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown
Device, the architectural framework in the cards of method and computer program product, function of multiple embodiments according to the present invention
And operation.In this regard, each box in flowchart or block diagram can represent one of a module, section or code
Point, a part of the module, section or code includes one or more for implementing the specified logical function executable
Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement
The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used
To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart
The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement
The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
Claims (10)
1. a kind of ammeter update device, which is characterized in that applied to the concentrator communicated at least one ammeter, the concentrator
It is pre-established with processing module and sending module, described device includes:
The processing module, for after completing initialization to each ammeter, Xiang Suoshu sending module to send initial complete
Instruction;
The sending module, for obtaining the pre-stored upgrading of the concentrator when receiving initial completion instruction
File cocurrent is sent to each ammeter, and after the transmission for completing all upgrade files, and Xiang Suoshu processing module feedback is sent
Complete instruction;
The processing module, for receive it is described be sent completely instruction after, send activation command to each ammeter, with
Upgrade each ammeter according to the activation command and the upgrade file.
2. the apparatus according to claim 1, which is characterized in that the upgrade file includes multiframe upgrading data frame, described
Processing module is also used to:
The transmission bitmap of each ammeter feedback is received, and determines all shortage of data according to each transmission bitmap
Ammeter, wherein the transmission bitmap characterizes the ammeter to the reception condition of multiframe upgrading data frame;
Upgrade data frame and the corresponding transmission bitmap of each shortage of data ammeter according to the multiframe, determines each described
The corresponding missing data frame of shortage of data ammeter, and each missing data frame is respectively sent to corresponding shortage of data electricity
Table.
3. device according to claim 1 or 2, which is characterized in that the processing module is also used to:
Checking command is sent to each ammeter, so that each ammeter is verified to obtain school according to the upgrade file
Test result;
The check results of each ammeter feedback are received, and determine all data exception electricity according to each check results
Table;
The upgrade file is sent to each data exception ammeter.
4. the apparatus according to claim 1, which is characterized in that the activation command includes upgrading moment point, the processing
Module executes to each ammeter and sends activation command, so that each ammeter is according to the activation command and the upgrading
The mode that file is upgraded, comprising:
Upgrading moment point is sent to each ammeter, so that each ammeter is according to the upgrading moment point and the upgrading
File is upgraded in same upgrading moment point.
5. a kind of ammeter upgrade method, which is characterized in that applied to the concentrator communicated at least one ammeter, the concentrator
It is pre-established with processing module and sending module, which comprises
For the processing module after completing initialization to each ammeter, Xiang Suoshu sending module sends initial completion instruction;
The sending module obtains the pre-stored upgrade file of the concentrator simultaneously when receiving initial completion instruction
It is sent to each ammeter, and after the transmission for completing all upgrade files, Xiang Suoshu processing module feedback is sent completely finger
It enables;
The processing module receive it is described be sent completely instruction after, activation command is sent to each ammeter, so that often
A ammeter is upgraded according to the activation command and the upgrade file.
6. according to the method described in claim 5, it is characterized in that, the upgrade file include multiframe upgrading data frame, it is described
Method further include:
The processing module receives the transmission bitmap of each ammeter feedback, and determines institute according to each transmission bitmap
Some shortage of data ammeters, wherein the transmission bitmap characterizes reception of each ammeter to multiframe upgrading data frame
Situation;
The processing module upgrades data frame and the corresponding transmission bitmap of each shortage of data ammeter according to the multiframe, really
The corresponding missing data frame of each shortage of data ammeter is made, and each missing data frame is respectively sent to correspond to
Shortage of data ammeter.
7. method according to claim 5 or 6, which is characterized in that the method also includes:
The processing module sends checking command to each ammeter so that each ammeter according to the upgrade file into
Row verification obtains check results;
The processing module receives the check results of each ammeter feedback, and determines own according to each check results
Data exception ammeter;
The upgrade file is sent to each data exception ammeter by the processing module.
8. according to the method described in claim 5, it is characterized in that, the activation command includes upgrading moment point, the processing
Module executes to each ammeter and sends activation command, so that each ammeter is according to the activation command and the upgrading
The mode that file is upgraded, comprising:
Upgrading moment point is sent to each ammeter, so that each ammeter is according to the upgrading moment point and the upgrading
File is upgraded in same upgrading moment point.
9. a kind of concentrator, which is characterized in that the concentrator includes:
Memory;
Processor;
The computer program that can be run on the processor is stored in the memory, the processor executes the calculating
The step of the claims 5-8 any described method is realized when machine program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
Method described in any one of claim 5-8 is realized when processor executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910430255.4A CN110166554A (en) | 2019-05-22 | 2019-05-22 | Ammeter update device, method, concentrator and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910430255.4A CN110166554A (en) | 2019-05-22 | 2019-05-22 | Ammeter update device, method, concentrator and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110166554A true CN110166554A (en) | 2019-08-23 |
Family
ID=67632093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910430255.4A Pending CN110166554A (en) | 2019-05-22 | 2019-05-22 | Ammeter update device, method, concentrator and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110166554A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124452A (en) * | 2019-12-24 | 2020-05-08 | 宁波三星医疗电气股份有限公司 | Software upgrading method and device for instrument, instrument and storage medium |
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 |
CN111596939A (en) * | 2020-05-18 | 2020-08-28 | 杭州海兴电力科技股份有限公司 | Upgrading method and device of electric energy meter and concentrator |
CN111683099A (en) * | 2020-06-11 | 2020-09-18 | 杭州海兴电力科技股份有限公司 | Data communication method, device and equipment |
CN112491954A (en) * | 2020-10-22 | 2021-03-12 | 浙江晨泰科技股份有限公司 | Intelligent ammeter upgrading method |
CN112583646A (en) * | 2020-12-25 | 2021-03-30 | 宁波三星医疗电气股份有限公司 | Remote upgrading method for intelligent electric meter |
CN113037832A (en) * | 2021-03-04 | 2021-06-25 | 杭州海兴电力科技股份有限公司 | Electric energy meter file checking method and system |
CN113741941A (en) * | 2021-09-16 | 2021-12-03 | 杭州海兴电力科技股份有限公司 | Ammeter upgrading method, device and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106789373A (en) * | 2017-03-02 | 2017-05-31 | 国电南瑞科技股份有限公司 | A kind of method that remote upgrade is carried out to concentrator |
CN108510727A (en) * | 2018-04-03 | 2018-09-07 | 杭州炬华科技股份有限公司 | The remote upgrade method of bandwidth carrier communication and acquisition module based on DLMS |
US20180349161A1 (en) * | 2017-06-01 | 2018-12-06 | Intel Corporation | Adaptive virtual function drivers for electronic devices |
CN109040869A (en) * | 2018-08-14 | 2018-12-18 | 中天宽带技术有限公司 | Based on the ONU fast updating method of OAM agreement in EPON system |
-
2019
- 2019-05-22 CN CN201910430255.4A patent/CN110166554A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106789373A (en) * | 2017-03-02 | 2017-05-31 | 国电南瑞科技股份有限公司 | A kind of method that remote upgrade is carried out to concentrator |
US20180349161A1 (en) * | 2017-06-01 | 2018-12-06 | Intel Corporation | Adaptive virtual function drivers for electronic devices |
CN108510727A (en) * | 2018-04-03 | 2018-09-07 | 杭州炬华科技股份有限公司 | The remote upgrade method of bandwidth carrier communication and acquisition module based on DLMS |
CN109040869A (en) * | 2018-08-14 | 2018-12-18 | 中天宽带技术有限公司 | Based on the ONU fast updating method of OAM agreement in EPON system |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124452A (en) * | 2019-12-24 | 2020-05-08 | 宁波三星医疗电气股份有限公司 | Software upgrading method and device for instrument, instrument and storage medium |
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 |
CN111596939A (en) * | 2020-05-18 | 2020-08-28 | 杭州海兴电力科技股份有限公司 | Upgrading method and device of electric energy meter and concentrator |
CN111596939B (en) * | 2020-05-18 | 2023-09-15 | 杭州海兴电力科技股份有限公司 | Electric energy meter upgrading method, device and concentrator |
CN111683099A (en) * | 2020-06-11 | 2020-09-18 | 杭州海兴电力科技股份有限公司 | Data communication method, device and equipment |
CN111683099B (en) * | 2020-06-11 | 2023-06-09 | 杭州海兴电力科技股份有限公司 | Data communication method, device and equipment |
CN112491954A (en) * | 2020-10-22 | 2021-03-12 | 浙江晨泰科技股份有限公司 | Intelligent ammeter upgrading method |
CN112583646A (en) * | 2020-12-25 | 2021-03-30 | 宁波三星医疗电气股份有限公司 | Remote upgrading method for intelligent electric meter |
CN113037832A (en) * | 2021-03-04 | 2021-06-25 | 杭州海兴电力科技股份有限公司 | Electric energy meter file checking method and system |
CN113741941A (en) * | 2021-09-16 | 2021-12-03 | 杭州海兴电力科技股份有限公司 | Ammeter upgrading method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110166554A (en) | Ammeter update device, method, concentrator and storage medium | |
WO2017000424A1 (en) | Protocol detection method and apparatus | |
CN110532168B (en) | Full-link interface pressure measurement method and device, computer equipment and storage medium | |
CN108549606A (en) | interface test method and device | |
CN106557421A (en) | POS applied program testing methods and device | |
CN110502442A (en) | Dynamic parameter method of calibration, device, equipment and storage medium | |
CN107544463A (en) | A kind of automatic test approach and test device of automobile controller diagnostic function | |
CN106570984B (en) | Support card number verification method, the apparatus and system of a variety of Wiegand formats | |
CN103514092A (en) | Method for automatic testing of software system of ATM | |
CN108989067A (en) | The method of calibration and equipment of configuration file consistency | |
CN103198341A (en) | RFID label chip verification system and verification method | |
CN108601023A (en) | Home-network linkups authentication method, device, electronic equipment and storage medium | |
CN108664381A (en) | test method and device | |
CN110058920A (en) | Virtual machine performance detection method and device, electronic equipment, storage medium | |
CN110489259A (en) | A kind of memory failure detection method and equipment | |
CN110209529A (en) | The guard method of radio frequency parameter and electronic equipment | |
CN111506358B (en) | Method and device for updating container configuration | |
CN103425580A (en) | Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device | |
CN110515924A (en) | Database manipulation logic verify method, apparatus, equipment and readable storage medium storing program for executing | |
CN107293330A (en) | The method and simulation checking system of simulating, verifying are carried out to random access memory ram | |
CN106941434A (en) | The detecting system and method for a kind of communication message | |
CN109032956A (en) | A kind of interface test method and device | |
CN106685479A (en) | Method and system for fault excitation in RS485 communication of electric energy meter | |
CN107203373B (en) | Interface control acquiring method, interface control testing method, interface control acquiring device and interface control testing device | |
CN104535162A (en) | Method for verifying authenticity of display value of electronic balance |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190823 |