The method of collector and carrier wave meter remote upgrade in the automatic meter reading system
Technical field
The present invention relates to electric system, especially the method for collector and carrier wave meter remote upgrade in the automatic meter reading system.
Background technology
In the process of building intelligent grid; In order to promote electrical network and user's two-way interaction ability and electricity consumption value-added service level; The scale of power information acquisition system is increasing, and automatic meter reading system is just obtaining application more and more widely, and the system maintenance work amount is increasing; Maintenance cost is also increasing, and maintenance issues has more and more restricted the operational effect of whole centralized automatic meter-reading.Present collector possesses the local upgrade function, but does not have the remote upgrade function, and the carrier wave meter in the metering system does not have upgrade function.Its shortcoming is: collector local upgrade workload is big, and intelligent degree is low, and the maintainer need go hither and thither and seek the collector mounting points, and work efficiency is quite low.In a single day carrier wave meter breaks down or the discovery procedure leak can't be upgraded, and can only replace, and causes huge waste.
Summary of the invention
Technical matters to be solved by this invention provides the method for collector and carrier wave meter remote upgrade in a kind of automatic meter reading system; Solve the problem of centralized meter-reading system collector, a metering system carrier wave meter remote upgrade difficult problem; For in a single day the collector carrier wave meter breaks down a upgrading means very easily is provided; Reduce centralized meter-reading system metering system maintenance staff's workload, the operational effect with automatic meter reading system of increasing work efficiency.
For solving the problems of the technologies described above, technical scheme of the present invention is: the method for collector and carrier wave meter remote upgrade in a kind of automatic meter reading system, and in the said automatic meter reading system, main website is connected with collector with carrier wave meter respectively through concentrator; The inside flash of collector and carrier wave meter is divided into three districts: Bootloader boot district, APP application area, BAK upgrading stand-by program district; Boot uses fever writes burned; Application program adopts the local upgrade mode for the first time; Directly guide burning by boot, had application program just can support remote upgrade; Concrete steps are following:
(1) management software is with front end processor mode telnet automatic meter reading system main website;
(2) main website is transmitted to concentrator with the ROMPaq of collector or carrier wave meter, and concentrator receives whole file and deposits in the external memory storage;
(3) concentrator is selected a free time, according to measuring period, utilizes the route data forwarding capability, deposits the stand-by program district in after point-to-point transmission ROMPaq, carrier wave meter receive ROMPaq and replys; Collector need judge that the measurement point address is table address or the collector address under the collector, if then need ROMPaq be deposited in the stand-by program district and replys, if this frame deposits in then ignores, and prompting concentrator transmission next frame;
(4) collector or carrier wave meter receive whenever a frame checks all whether the ROMPaq of backup area is complete, if whether the end-to-end CRC check is correct, confirm correctly to put a zone bit, require refresh routine during mark startup next time, automatically reset then and restart;
(5) collector or carrier wave meter are restarted back entering Bootloader boot district; Boot at first checks whether to use stand-by program to upgrade current application program; If then guide among the burned Flash of backup area program, whether the inspection programming is errorless, confirms errorless; The application program of APP application area obtains upgrading, and the guiding of Bootloader boot district starts from the APP application area.
As improvement, in the said step (2), main website is transmitted to concentrator with collector or carrier wave meter ROMPaq through the transparent forwarding method.
As improvement, in the said step (3), concentrator is transmitted the upgrading frame to each measurement point, presses the measurement point address and realizes upgrading one by one.
As improvement, in the said step (4), collector is received after the new application program refresh routine automatically, and starts new procedures automatically.
The beneficial effect that the present invention is compared with prior art brought is:
The present invention has realized collector and the remote upgrade function of carrier wave meter in the automatic meter reading system, has added new guarantee for the reliability of collector carrier wave meter, has significantly reduced artificial upgrade job amount, reduces upgrade cost; In the process of upgrading, collector and carrier wave meter ability operate as normal influence very little to checking meter in the escalation process simultaneously.Support breakpoint transmission, support to retransmit that upgrading efficient reliability is higher.
Description of drawings
Fig. 1 is automatic meter reading system general frame figure.
Fig. 2 is application A PP reception ROMPaq and the process flow diagram that deposits backup area in.
Fig. 3 is the process flow diagram that application program is upgraded in boot Bootloader guiding.
Embodiment
Below in conjunction with Figure of description the present invention is described further.
As shown in Figure 1, the method for collector and carrier wave meter remote upgrade in a kind of automatic meter reading system, in the said automatic meter reading system, main website is connected with collector with carrier wave meter respectively through concentrator; The inside flash of collector and carrier wave meter is divided into three districts: Bootloader boot district, APP application area, BAK upgrading stand-by program district; Boot uses fever writes burned; Application program adopts the local upgrade mode for the first time; Directly guide burning by boot, had application program just can support remote upgrade; Concrete steps are following:
(1) management software is with front end processor mode telnet automatic meter reading system main website;
(2) main website is transmitted to concentrator with the ROMPaq of collector or carrier wave meter with the transparent forwarding mode, and concentrator receives whole file and deposits in the external memory storage;
(3) as shown in Figure 2; Concentrator is selected a free time, according to measuring period, utilizes Q/GDW376.2-2009 route data forwarding capability; Port numbers 31; Transmit content and walk to expand the DLT645-1997/2007 agreement, deposit the stand-by program district in after point-to-point transmission ROMPaq, carrier wave meter receive ROMPaq and reply; Collector need judge that the measurement point address is table address or the collector address under the collector.If then need ROMPaq be deposited in the stand-by program district and replys; If this frame deposits in then ignores, and prompting concentrator transmission next frame;
(4) collector or carrier wave meter receive whenever a frame checks all whether the ROMPaq of backup area is complete, if whether the end-to-end CRC check is correct, confirm correctly to put a zone bit, require refresh routine during mark startup next time, automatically reset then and restart; Collector is received after the new application program refresh routine automatically, and starts new procedures automatically;
(5) as shown in Figure 3; Collector or carrier wave meter are restarted the back and are got into Bootloader boot district, and boot at first checks whether to use stand-by program to upgrade current application program, if then guide among the burned Flash of backup area program; Whether the inspection programming is errorless; Confirm errorlessly, the application program of APP application area obtains upgrading, and the guiding of Bootloader boot district starts from the APP application area.
Management software refers to according to State Grid Corporation of China's company standard " power consumer power information acquisition system communication protocol: main website and acquisition terminal communication protocol " exploitation, is used for acquisition terminal is safeguarded the software of management.Communication modes such as management software is supported serial ports, network interface and concentrator connect, and can carry out parameter reading and writing to concentrator, and data read, terminal program upgrading etc.
Management software is with front end processor mode telnet automatic meter reading system main website; Main website passes to concentrator with upgrade file through the GPRS path with the transparent transmission mode; Concentrator is again through power carrier or wireless carrier or bus 485, according to the measurement point address in the archives upgrade one by one collector and carrier wave meter.The measurement point address is if the table under collector or the collector in the upgrading frame, and collector need judge that this frame is transmission start frame, subsequent frame or end frame, and this frame is made reply; Start frame and then start the ROMPaq transmission, subsequent frame then deposits frame data in the program backup district, and end frame then finishes the upgrade file transmission, inspection backup area process integrity; Completely then restart collector, the backup area program is covered application program, accomplish upgrading.The upgrade file transmission course does not influence the operate as normal of collector and carrier wave meter.
The present invention has realized collector and the remote upgrade function of carrier wave meter in the automatic meter reading system, has added new guarantee for the reliability of collector carrier wave meter, has significantly reduced artificial upgrade job amount, reduces upgrade cost; In the process of upgrading, collector and carrier wave meter ability operate as normal influence very little to checking meter in the escalation process simultaneously.Support breakpoint transmission, support to retransmit that upgrading efficient reliability is higher.