CN103701496B - Power line carrier equipment and online upgrading method thereof - Google Patents

Power line carrier equipment and online upgrading method thereof Download PDF

Info

Publication number
CN103701496B
CN103701496B CN201310719237.0A CN201310719237A CN103701496B CN 103701496 B CN103701496 B CN 103701496B CN 201310719237 A CN201310719237 A CN 201310719237A CN 103701496 B CN103701496 B CN 103701496B
Authority
CN
China
Prior art keywords
upgrading
signal
power line
online upgrading
device address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310719237.0A
Other languages
Chinese (zh)
Other versions
CN103701496A (en
Inventor
吕海峰
杨巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Beiling Co Ltd
Original Assignee
Shanghai Beiling Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Beiling Co Ltd filed Critical Shanghai Beiling Co Ltd
Priority to CN201310719237.0A priority Critical patent/CN103701496B/en
Publication of CN103701496A publication Critical patent/CN103701496A/en
Application granted granted Critical
Publication of CN103701496B publication Critical patent/CN103701496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of online upgrading method of power line carrier equipment, power line carrier equipment includes program storage, and program storage includes application program memory element and upgrading control programs memory element; Method comprises the following steps: after receiving the starting and upgrading signal comprising device address, enters and interrupts; Judge that the device address of himself is consistent with the device address in starting and upgrading signal, exit interruption and enter circular wait state; After receiving the online upgrading signal comprising upgrade information, upgrade according to the upgrade information in online upgrading signal; Judge whether upgrading completes; Exit circular wait state and restart. The online upgrading method and apparatus of the power line carrier equipment of the present invention, when strip of paper used for sealing or the equipment cabinet of not sabotage of electrical power equipment, remotely the software of the power carrier equipment in equipment is write with a brush dipped in Chinese ink again, it is not necessary to actual contact carrier equipment just can make the software error reparation of the power carrier equipment of site of deployment.

Description

Power line carrier equipment and online upgrading method thereof
Technical field
The present invention relates to power-line carrier communication field, particularly to a kind of power line carrier equipment and online upgrading method thereof.
Background technology
Carrier telecommunication is generally installed together with power equipment (such as ammeter etc.) in site of deployment, and these power equipments generally consider or security consideration for elaboration, are labeled with strip of paper used for sealing or are locked in corresponding equipment cabinet and cannot directly contact. Carrier telecommunication generally runs embedded software, these softwares are easily when design or due to artificial carelessness or due to other reasons, would be likely to occur the design mistake necessarily do not discovered, during system commencement of commercial operation, these mistakes are likely to be found and need corrigendum; Be also possible to due to design at the beginning of inconsiderate, the function of its design can not meet the new needs proposed later, it is necessary to run software be updated upgrading.
The method for upgrading software of common power line carrier equipment is: be connected on a computer being mounted with ROMPaq by equipment to be upgraded by a program burn writing device with control line, controls application program by computer and it is carried out software upgrading. Owing to being previously mentioned, for power equipment, this connection often means that to be needed to destroy strip of paper used for sealing or open equipment cabinet, for user be difficult to accept be at least inconvenience. Thus common power carrier equipment arrived site of deployment be all cannot ROMPaq or can only change by whole equipment again, even if the problem that is otherwise found that also " can only adhere to work " in spite of illness, and have no ability to especially meet to new demand.
Summary of the invention
The technical problem to be solved is, a kind of power line carrier equipment and online upgrading method thereof are provided, can when the strip of paper used for sealing of not sabotage of electrical power equipment or equipment cabinet, the electric-power wire communication signal sent containing device upgrade software data is controlled by remote computer, the software of the power carrier equipment in equipment is write with a brush dipped in Chinese ink again, carrier equipment is contacted without reality, so that the software error reparation of the power carrier equipment in site of deployment.
In order to solve above-mentioned technical problem, the invention provides a kind of online upgrading method of power line carrier equipment, described power line carrier equipment includes program storage, and described program storage includes application program memory element and upgrading control programs memory element and its respective interrupt address entrance; Described application program memory element storage has and receives the interrupt routine that normal carrier signal redirects; Described upgrading control programs memory element storage has and receives the upgrading interrupt routine that redirects of carrier signal; Said method comprising the steps of:
S1: after receiving the starting and upgrading signal comprising device address, enters interruption by jumping to the interrupt address entrance of described upgrading control programs;
S2: judge whether the device address of himself is consistent with the device address in described starting and upgrading signal, if it is exits interruption and enters the pending step S3 such as circular wait state, if otherwise exiting interruption and continuing executing with former instruction;
S3: after receiving the online upgrading signal comprising upgrade information, enters interruption by jumping to the interrupt address entrance of described upgrading control programs, upgrades according to the upgrade information in described online upgrading signal;
S4: judge whether upgrading completes, if it is, perform step S5; If it is not, then return the pending step S3 such as circular wait state;
S5: exit circular wait state and restart.
As preferably, described upgrade information includes the storage address of new opplication program and correspondence thereof, and step S3 is particularly as follows: wipe and write described new opplication program by the former bytecode corresponding to described storage address in described application program memory element.
As preferably, described online upgrading signal also comprises device address, step S3 is particularly as follows: enter after receiving the online upgrading signal comprising upgrade information and interrupt, judge whether the device address of himself is consistent with the device address in described online upgrading signal and/or himself whether is in described circular wait state, if it is exit interruption and upgrade according to the upgrade information in described online upgrading signal, if otherwise exiting interruption and continuing executing with former instruction.
As preferably, step S5 specifically includes: after receiving the Restart Signal comprising device address, when the device address of himself is consistent with the device address in described Restart Signal, restarts described in execution.
Present invention also offers the power line carrier equipment of a kind of online upgrading method based on power line carrier equipment as above, described power line carrier equipment is configured to identify the electric-power wire communication signal received and described starting and upgrading signal and online upgrading signal, and comprises the Restart Signal of device address;
Described program storage is configured to bytecode be wiped and writes.
Compared with prior art, the power line carrier equipment of the present invention and having the beneficial effects that of online upgrading method thereof:
1, the power line signal including online upgrading signal can be passed through device systems operation software is updated upgrading.
2, one in all multi-carrier communication apparatus of on-the-spot operation can be specified to carry out online upgrading, and other carrier equipments are not produced impact.
3, to normal carrier communication system Application Design no requirement (NR), namely without adding the part coordinating online upgrading in the application software that Customer-Demand-Oriented is developed.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the online upgrading method of the power line carrier equipment of embodiments of the invention;
Fig. 2 is the configuration diagram of the program storage of the power line carrier equipment of embodiments of the invention.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the online upgrading method and apparatus of the power line carrier equipment of embodiments of the invention is described in further detail, but not as a limitation of the invention.
Fig. 1 is the schematic flow sheet of the online upgrading method of the power line carrier equipment of embodiments of the invention; Fig. 2 is the configuration diagram of the program storage of the power line carrier equipment of embodiments of the invention. In the present invention, power line carrier equipment includes program storage, as shown in Figure 2, program storage includes application program memory element (which includes and receive the interrupt routine that normal carrier signal redirects) and upgrading control programs memory element and its corresponding interrupt address entrance; Also including electrification reset address entries, described upgrading control programs memory element storage has and receives the upgrading interrupt routine that redirects of carrier signal simultaneously. The online upgrading method of the power line carrier equipment of embodiments of the invention comprises the following steps:
S1: after receiving the starting and upgrading signal comprising device address, enters and interrupts, and specifically can enter interruption by jumping to the interrupt address entrance of described upgrading control programs;
S2: judge whether the device address of himself is consistent with the device address in starting and upgrading signal, if it is exits interruption and enters the pending step S3 such as circular wait state, if otherwise exiting interruption and continuing executing with former instruction;
S3: after receiving the online upgrading signal comprising upgrade information, it is preferable that the interrupt address entrance that can pass through to jump to described upgrading control programs enters interruption, upgrades according to the upgrade information in online upgrading signal;
S4: judge whether upgrading completes, if it is, perform step S5; If it is not, then return the pending step S3 such as circular wait state;
S5: exit circular wait state and restart.
Method by the online upgrading power line carrier equipment software of embodiments of the invention, it is possible to when strip of paper used for sealing or the equipment cabinet of not sabotage of electrical power equipment, controls the electric-power wire communication signal sent containing device upgrade software data by remote computer. Meanwhile, carry out online upgrading by all multi-carrier communication apparatus that addressing system specifies scene to run, and other carrier equipments are not produced impact.
Improving as one, upgrade information includes the storage address of new opplication program and correspondence thereof, and step S3 is particularly as follows: new opplication program will be wiped and write corresponding to the former bytecode of storage address in application program memory element. By such improvement, the software of the power carrier equipment in equipment is write with a brush dipped in Chinese ink again, carrier equipment is contacted without reality, so that the software error reparation of the power carrier equipment in site of deployment, to normal carrier communication system Application Design no requirement (NR), namely without adding the part coordinating online upgrading in the application software that Customer-Demand-Oriented is developed.
As further improvement, online upgrading signal also comprises device address, step S3 is particularly as follows: enter after receiving the online upgrading signal comprising upgrade information and interrupt, judge whether himself device address is consistent with the device address in online upgrading signal and/or whether himself is in circular wait state, if it is exit interruption and upgrade according to the upgrade information in online upgrading signal, if otherwise exiting interruption and continuing executing with former instruction. So starting and in escalation process, carrying out online upgrading by all multi-carrier communication apparatus that addressing system specifies scene to run, and other carrier equipments are not produced impact.
As further improving, enter the implementation interrupted and can adopt in S1 step, after receiving starting and upgrading signal, enter interruption by jumping to the interrupt address entrance of upgrading control programs; And/or in S3 step, after receiving online upgrading signal, enter interruption by jumping to the interrupt address entrance of upgrading control programs. Setting by combined with hardware interrupt address entrance so that debugging simplicity in escalation process, workable.
Improve as another kind, in order to other carrier equipments not produced impact further, after receiving the Restart Signal comprising device address, when the device address of himself is consistent with the device address in Restart Signal, perform to restart.
Present invention also offers the power line carrier equipment of a kind of online upgrading method based on power line carrier equipment as above, it is configured to identify the electric-power wire communication signal received and starting and upgrading signal and online upgrading signal, and comprising the Restart Signal of device address, program storage is configured to bytecode be wiped and writes. The carrier telecommunication of the present invention, it is possible to identifying two kinds of electric-power wire communication signals, a kind of electric-power wire communication signal being curstomer-oriented and applying, for normal electricity line carrier communication; Another kind is the electric-power wire communication signal for online upgrading, i.e. starting and upgrading signal and online upgrading signal, and Restart Signal. Both are otherwise varied on signal characteristic, and such as frame synchronization first code sequence is different. A part for program storage (such as EEPROM or Flash) by control device of the prior art (controlling depositor accordingly as write), can be wiped and byte write by power line carrier equipment.
Below by way of the detailed description of the invention power line carrier equipment to embodiments of the invention and online upgrading method thereof.
1), computer sends the online upgrading power line signal (starting and upgrading signal) of the online upgrading startup order comprising device address. All equipment receiving this signal all jump to upgrading and interrupt address entries entrance interruption, the carrier equipment meeting device address enters a circular wait state, the carrier equipment not meeting device address then directly exits the work interrupting continuing to be interrupted, thus unaffected.
2), computer send the online upgrading power line signal (online upgrading signal) comprising device address, wherein contain the bytecode of new client applications and address that these bytecodes should be stored in client applications space. All equipment receiving this signal all jump to upgrading and interrupt address entries entrance interruption, meet the carrier equipment of device address according to the address received and data, the former bytecode of application space is wiped, and rewrite the bytecode of new procedures received, and going successively to circular wait state. the carrier equipment not meeting device address then directly exits the work interrupting continuing to be interrupted.
3), step 2 is repeated), until new application program has all been received by carrier equipment to be upgraded and has completed corresponding erasing and rewrite process.
4), computer sends the system reboot power line signal (Restart Signal) comprising device address, the carrier equipment meeting device address restarts system by stopping the modes such as hello house dog, reenters the system application after upgrading and performs. and other equipment are then unaffected. This completes the on-line software updating specifying carrier telecommunication.
Compared with prior art, the power line carrier equipment of the present invention and having the beneficial effects that of online upgrading method thereof:
1, the power line signal including online upgrading signal can be passed through device systems operation software is updated upgrading.
2, one in all multi-carrier communication apparatus of on-the-spot operation can be specified to carry out online upgrading, and other carrier equipments are not produced impact.
3, to normal carrier communication system Application Design no requirement (NR), namely without adding the part coordinating online upgrading in the application software that Customer-Demand-Oriented is developed.
Above example is only the exemplary embodiment of the present invention, is not used in the restriction present invention, and protection scope of the present invention is defined by the claims. The present invention in the essence of the present invention and protection domain, can be made various amendment or equivalent replacement by those skilled in the art, and this amendment or equivalent replacement also should be regarded as being within the scope of the present invention.

Claims (5)

1. the online upgrading method of a power line carrier equipment, it is characterized in that, described power line carrier equipment includes program storage, and described program storage includes application program memory element and upgrading control programs memory element and its respective interrupt address entrance; Described application program memory element storage has and receives the interrupt routine that normal carrier signal redirects; Described upgrading control programs memory element storage has and receives the upgrading interrupt routine that redirects of carrier signal;
Said method comprising the steps of:
S1: after receiving the starting and upgrading signal comprising device address, enters interruption by jumping to the interrupt address entrance of described upgrading control programs;
S2: judge whether the device address of himself is consistent with the device address in described starting and upgrading signal, if it is exits interruption and enters the pending step S3 such as circular wait state, if otherwise exiting interruption and continuing executing with former instruction;
S3: after receiving the online upgrading signal comprising upgrade information, enters interruption by jumping to the interrupt address entrance of described upgrading control programs, upgrades according to the upgrade information in described online upgrading signal;
S4: judge whether upgrading completes, if it is, perform step S5; If it is not, then return the pending step S3 such as circular wait state;
S5: exit circular wait state and restart.
2. the online upgrading method of power line carrier equipment according to claim 1, it is characterized in that, described upgrade information includes the storage address of new opplication program and correspondence thereof, and step S3 is particularly as follows: wipe and write described new opplication program by the former bytecode corresponding to described storage address in described application program memory element.
3. the online upgrading method of power line carrier equipment according to claim 1, it is characterised in that
Described online upgrading signal also comprises device address, step S3 is particularly as follows: enter after receiving the online upgrading signal comprising upgrade information and interrupt, judge whether the device address of himself is consistent with the device address in described online upgrading signal and/or himself whether is in described circular wait state, if it is exit interruption and upgrade according to the upgrade information in described online upgrading signal, if otherwise exiting interruption and continuing executing with former instruction.
4. the online upgrading method of power line carrier equipment according to claim 1, it is characterised in that
Step S5 specifically includes: after receiving the Restart Signal comprising device address, when the device address of himself is consistent with the device address in described Restart Signal, restarts described in execution.
5. the power line carrier equipment based on the online upgrading method of the power line carrier equipment according to any one of such as Claims 1-4, it is characterised in that
Described power line carrier equipment is configured to identify the electric-power wire communication signal received and described starting and upgrading signal and online upgrading signal, and comprises the Restart Signal of device address;
Described program storage is configured to bytecode be wiped and writes.
CN201310719237.0A 2013-12-23 2013-12-23 Power line carrier equipment and online upgrading method thereof Active CN103701496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310719237.0A CN103701496B (en) 2013-12-23 2013-12-23 Power line carrier equipment and online upgrading method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310719237.0A CN103701496B (en) 2013-12-23 2013-12-23 Power line carrier equipment and online upgrading method thereof

Publications (2)

Publication Number Publication Date
CN103701496A CN103701496A (en) 2014-04-02
CN103701496B true CN103701496B (en) 2016-06-08

Family

ID=50362911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310719237.0A Active CN103701496B (en) 2013-12-23 2013-12-23 Power line carrier equipment and online upgrading method thereof

Country Status (1)

Country Link
CN (1) CN103701496B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783519B (en) * 2019-11-04 2023-10-20 航天科工惯性技术有限公司 Application program updating method and system for measuring nipple

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004084488A1 (en) * 2003-03-20 2004-09-30 Cogency Semiconductor Inc. Method and apparatus for reliable multicast
CN1874174A (en) * 2006-06-21 2006-12-06 张会庭 Multimedia information network on power line in village level
CN101202565A (en) * 2006-11-17 2008-06-18 深圳市业通达实业有限公司 Integral power line carrier system and signal communicating method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004056218A (en) * 2002-07-16 2004-02-19 Sony Corp Power line carrier communication system and power-line carrier communication apparatus
EP1654861B1 (en) * 2003-07-17 2018-04-04 e-distribuzione S.p.A. Method and system for remote updates of meters for metering the consumption of electricity, water or gas
CN101969713A (en) * 2010-08-11 2011-02-09 天津工业大学 LED street lamp control system based on electric power carrier communication technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004084488A1 (en) * 2003-03-20 2004-09-30 Cogency Semiconductor Inc. Method and apparatus for reliable multicast
CN1874174A (en) * 2006-06-21 2006-12-06 张会庭 Multimedia information network on power line in village level
CN101202565A (en) * 2006-11-17 2008-06-18 深圳市业通达实业有限公司 Integral power line carrier system and signal communicating method thereof

Also Published As

Publication number Publication date
CN103701496A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN102495744B (en) Control software upgrading method of electronic control devices of electric automobile based on controller area network (CAN) bus
US9110843B2 (en) Rack and method thereof for simultaneously updating basic input output systems
CN110134415A (en) A kind of controller and its method for upgrading software and device
CN106095480B (en) A kind of method and device of optical module firmware upgrading
CN101344854B (en) Method for upgrading embedded type Linux equipment through SD card
CN103379481B (en) Method for achieving safety protection
CN104461594B (en) The upgrade method and device of embedded OS
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN101615128B (en) Online upgrade method and device of singlechip
CN101364193A (en) BIOS automatic recovery method and computer and system using the method
CN101373433A (en) Method for updating BIOS and computer and system using the same
CN109189445A (en) A kind of method of internet of things equipment program upgrading
CN103761088A (en) Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment
CN104021014B (en) A kind of firmware upgrade method based on dual-CPU system
CN106909352A (en) A kind of firmware upgrade method of embedded device
CN109002310A (en) firmware upgrade method
CN102446141B (en) Device and method for realizing write protection control
CN103744708A (en) Method of fixing disk device names in Linux operating system
CN108170457A (en) Firmware upgrade method, device and VR head-mounted displays
CN108989103A (en) Device updating method, debugger, the network equipment and network system
CN104125504A (en) Deployment method, device and system based on continuous integration
CN105830021A (en) Updatable integrated-circuit radio
CN105354071A (en) Method for realizing compatibility between embedded software and hardware
CN102662688A (en) An update method and apparatus for Nor flash
CN109002305A (en) A kind of update method and its system of device program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant