CN103701496A - 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
CN103701496A
CN103701496A CN201310719237.0A CN201310719237A CN103701496A CN 103701496 A CN103701496 A CN 103701496A CN 201310719237 A CN201310719237 A CN 201310719237A CN 103701496 A CN103701496 A CN 103701496A
Authority
CN
China
Prior art keywords
upgrading
signal
power line
line carrier
online upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310719237.0A
Other languages
Chinese (zh)
Other versions
CN103701496B (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

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses an online upgrading method of power line carrier equipment. The power line carrier equipment comprises a program memory, wherein the program memory comprises an application program memory cell and an upgrading control program memory cell. The method comprises the following steps: entering an interruption state after receiving upgrading starting signal including an equipment address; exiting from the interruption state and entering a circular waiting state after judging that the equipment address of the power line carrier equipment accords with the equipment address in the upgrading starting signal; upgrading according to upgrading information in online upgrading signal after receiving online upgrading information including the upgrading information; judging whether the upgrading is completed; exiting from the circular waiting state and restarting. According to the online upgrading method of the power line carrier equipment and the equipment disclosed by the invention, the software of the power line carrier equipment in the equipment is remotely rewritten under the condition that a seal or an equipment cabinet of power equipment is not damaged, and error repair of the software of the power line carrier equipment on the application site can be carried out without contacting the carrier equipment actually.

Description

Power line carrier equipment and online upgrading method thereof
Technical field
The present invention relates to power-line carrier communication field, particularly a kind of power line carrier equipment and online upgrading method thereof.
Background technology
Carrier telecommunication is conventionally installed together with power equipment (as ammeter etc.) in site of deployment, and these power equipments consider or security consideration for accuracy conventionally, and quilt is sticked strip of paper used for sealing or is locked in corresponding equipment cabinet and cannot directly contact.Carrier telecommunication moves embedded software conventionally, these softwares are easily when design or due to artificial carelessness or due to other reasons, may have the design mistake of necessarily not discovering, during system commencement of commercial operation, these mistakes may be found and need to correct; Also inconsiderate due at the beginning of design likely, the function of its design can not meet afterwards the new needs that propose, and need to upgrade upgrading to operating software.
The method for upgrading software of common power line carrier equipment is: equipment to be upgraded is connected on a computer that ROMPaq is installed by a program burn writing device with control line, by computer control application program, it is carried out to software upgrading.Owing to mentioning above, for power equipment, this connection often means and need to destroy strip of paper used for sealing or open equipment cabinet, to user, is that what to be difficult to accept is at least inconvenient.Thereby common power carrier equipment arrived site of deployment be all again ROMPaq or can only change by whole equipment, even otherwise the problem of having found also can only " adhere to work " in spite of illness, and do not have especially ability to meet to new demand.
Summary of the invention
Technical problem to be solved by this invention is, a kind of power line carrier equipment and online upgrading method thereof are provided, can be in the situation that the strip of paper used for sealing of not sabotage of electrical power equipment or equipment cabinet, by remote computer, control and send the electric-power wire communication signal that contains device upgrade software data, the software of the power carrier equipment in equipment is write with a brush dipped in Chinese ink again, and without reality contact carrier equipment, thereby make the software error reparation at the power carrier equipment of site of deployment.
In order to solve the problems of the technologies described above, the invention provides a kind of online upgrading method of power line carrier equipment, described power line carrier equipment comprises program storage, described program storage comprises application storage unit and upgrading control programs memory cell; Said method comprising the steps of:
S1: receive and comprise device address after interior starting and upgrading signal, enter interruption;
S2: judge whether the device address of himself conforms to the device address in described starting and upgrading signal, if it is exit and interrupt and enter circular wait state execution step S3, if otherwise exit and interrupt and continue the former instruction of execution;
S3: receive and comprise upgrade information after interior online upgrading signal, upgrade according to the upgrade information in described online upgrading signal;
S4: whether judgement upgrading completes, if so, execution step S5; If not, return to step S3;
S5: exit circular wait state and restart.
As preferably, described upgrade information comprises new application program and corresponding memory address thereof, and step S3 is specially: will in described application storage unit, corresponding to the former bytecode of described memory address, wipe and write described new application program.
As preferably, described online upgrading signal also comprises device address, step S3 is specially: receive and comprise upgrade information enter interruption after interior online upgrading signal, judge whether the device address of himself conforms to device address in described online upgrading signal and/or whether himself is in described circular wait state, if it is exit and interrupt and upgrade according to the upgrade information in described online upgrading signal, if otherwise exit and interrupt and continue the former instruction of execution.
As preferably, in S1 step, receive after described starting and upgrading signal, by jumping to the interrupt address entrance of described upgrading control programs, enter interruption; And/or
In S3 step, receive after described online upgrading signal, by jumping to the interrupt address entrance of described upgrading control programs, enter interruption.
As preferably, step S5 specifically comprises: receive after the Restart Signal that comprises device address, when the device address of himself is when device address in described Restart Signal conforms to, restart described in execution.
The present invention also provides a kind of power line carrier equipment of the online upgrading method based on power line carrier equipment as above, described power line carrier equipment is configured to identify electric-power wire communication signal and described starting and upgrading signal and the online upgrading signal receiving, and comprises device address at interior Restart Signal;
Described program storage is configured to can bytecode be wiped and be write.
Compared with prior art, the beneficial effect of power line carrier equipment of the present invention and online upgrading method thereof is:
1, can to device systems operating software, upgrade upgrading by including the power line signal of online upgrading signal.
2, can specify one in the on-the-spot all multi-carrier communication apparatus that move to carry out online upgrading, and other carrier equipments not exerted an influence.
3, to normal carrier communication system application design no requirement (NR), without adding the part that coordinates online upgrading in the application software in Customer-Demand-Oriented exploitation.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of online upgrading method of the power line carrier equipment of embodiments of the invention;
Fig. 2 is the configuration diagram of program storage of the power line carrier equipment of embodiments of the invention.
Embodiment
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 online upgrading method of the power line carrier equipment of embodiments of the invention; Fig. 2 is the configuration diagram of program storage of the power line carrier equipment of embodiments of the invention.In the present invention, power line carrier equipment comprises program storage, as shown in Figure 2, program storage comprises application storage unit (comprising receiving the interrupt routine of normal carrier signal redirect) and upgrading control programs memory cell, with and corresponding interrupt address entrance; Also comprise electrification reset address entrance simultaneously.The online upgrading method of the power line carrier equipment of embodiments of the invention comprises the following steps:
S1: receive and comprise device address after interior starting and upgrading signal, enter interruption;
S2: judge whether the device address of himself conforms to the device address in starting and upgrading signal, if it is exit and interrupt and enter circular wait state execution step S3, if otherwise exit and interrupt and continue the former instruction of execution;
S3: receive and comprise upgrade information after interior online upgrading signal, upgrade according to the upgrade information in online upgrading signal;
S4: whether judgement upgrading completes, if so, execution step S5; If not, return to step S3;
S5: exit circular wait state and restart.
The method of the online upgrading power line carrier equipment software by embodiments of the invention, can in the situation that the strip of paper used for sealing of not sabotage of electrical power equipment or equipment cabinet by remote computer, control and send the electric-power wire communication signal that contains device upgrade software data.Meanwhile, by addressing system, specify one in the on-the-spot all multi-carrier communication apparatus that move to carry out online upgrading, and other carrier equipments are not exerted an influence.
As a kind of improvement, upgrade information comprises new application program and corresponding memory address thereof, and step S3 is specially: new application program is wiped and write to the former bytecode corresponding to memory address in application storage unit.By such improvement, the software of the power carrier equipment in equipment is write with a brush dipped in Chinese ink again, and without reality contact carrier equipment, thereby make the software error reparation at the power carrier equipment of site of deployment, to normal carrier communication system application design no requirement (NR), without adding the part that coordinates online upgrading in the application software in Customer-Demand-Oriented exploitation.
As further improvement, online upgrading signal also comprises device address, step S3 is specially: receive and comprise upgrade information enter interruption after interior online upgrading signal, judge whether the device address of himself conforms to device address in online upgrading signal and/or whether himself is in circular wait state, if it is exit and interrupt and upgrade according to the upgrade information in online upgrading signal, if otherwise exit and interrupt and continue the former instruction of execution.In startup and escalation process, by addressing system, specify one in the on-the-spot all multi-carrier communication apparatus that move to carry out online upgrading, and other carrier equipments are not exerted an influence like this.
As further improving, the implementation that enters interruption can adopt in S1 step, receives after starting and upgrading signal, by jumping to the interrupt address entrance of upgrading control programs, enters interruption; And/or in S3 step, receive after online upgrading signal, by jumping to the interrupt address entrance of upgrading control programs, enter interruption.By the setting of combined with hardware interrupt address entrance, make to debug in escalation process easy, workable.
As another kind, improve, in order further other carrier equipments not to be exerted an influence, to receive, do not comprise device address after interior Restart Signal, when the device address of himself is when device address in Restart Signal conforms to, execution is restarted.
The present invention also provides a kind of power line carrier equipment of the online upgrading method based on power line carrier equipment as above, it is configured to identify electric-power wire communication signal and starting and upgrading signal and the online upgrading signal receiving, and comprising device address at interior Restart Signal, program storage is configured to can bytecode be wiped and be write.Carrier telecommunication of the present invention, can identify two kinds of electric-power wire communication signals, and a kind of is the electric-power wire communication signal of curstomer-oriented application, 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 difference to some extent on signal characteristic, and for example frame synchronization first code sequence is different.Power line carrier equipment can, by control device of the prior art (as writing corresponding control register), be wiped and byte write a part for program storage (as EEPROM or Flash).
Below pass through an embodiment to the power line carrier equipment of embodiments of the invention and online upgrading method thereof.
1), computer sends and comprises device address at the online upgrading power line signal (starting and upgrading signal) of interior online upgrading starting command.All equipment that receives this signal all jumps to upgrading interrupt address entrance and enters interruption, the carrier equipment that meets device address enters a circular wait state, the carrier equipment that does not meet device address directly exits and interrupts the work that continuation is interrupted, thereby unaffected.
2), computer sends and comprises device address at interior online upgrading power line signal (online upgrading signal), wherein comprised the bytecode of new client applications and the address that these bytecodes should be stored in client applications space.All equipment that receives this signal all jumps to upgrading interrupt address entrance and enters interruption, meet the carrier equipment of device address according to the address and the data that receive, the former bytecode of application space is wiped, and rewrite the bytecode of the new procedures receive, and continuing to enter circular wait state. the carrier equipment that does not meet device address directly exits and interrupts continuing the work that interrupted.
3), repeating step 2), until new application program has all been received and completed by carrier equipment to be upgraded, wipe accordingly and rewrite process.
4), computer sends and comprises device address and restart power line signal (Restart Signal) in interior system, the carrier equipment that meets device address is restarted system by stopping feeding the modes such as house dog, and the system application reentering after upgrading is carried out. and other equipment are unaffected.So just completed specifying the on-line software updating of carrier telecommunication.
Compared with prior art, the beneficial effect of power line carrier equipment of the present invention and online upgrading method thereof is:
1, can to device systems operating software, upgrade upgrading by including the power line signal of online upgrading signal.
2, can specify one in the on-the-spot all multi-carrier communication apparatus that move to carry out online upgrading, and other carrier equipments not exerted an influence.
3, to normal carrier communication system application design no requirement (NR), without adding the part that coordinates online upgrading in the application software in Customer-Demand-Oriented exploitation.
Above embodiment is only exemplary embodiment of the present invention, is not used in restriction the present invention, and protection scope of the present invention is defined by the claims.Those skilled in the art can make various modifications or be equal to replacement the present invention in essence of the present invention and protection range, this modification or be equal to replacement and also should be considered as dropping in protection scope of the present invention.

Claims (6)

1. an online upgrading method for power line carrier equipment, is characterized in that, described power line carrier equipment comprises program storage, and described program storage comprises application storage unit and upgrading control programs memory cell; Said method comprising the steps of:
S1: receive and comprise device address after interior starting and upgrading signal, enter interruption;
S2: judge whether the device address of himself conforms to the device address in described starting and upgrading signal, if it is exit and interrupt and enter circular wait state execution step S3, if otherwise exit and interrupt and continue the former instruction of execution;
S3: receive and comprise upgrade information after interior online upgrading signal, upgrade according to the upgrade information in described online upgrading signal;
S4: whether judgement upgrading completes, if so, execution step S5; If not, return to step S3;
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 comprises new application program and corresponding memory address thereof, and step S3 is specially: will in described application storage unit, corresponding to the former bytecode of described memory address, wipe and write described new application program.
3. the online upgrading method of power line carrier equipment according to claim 1, is characterized in that,
Described online upgrading signal also comprises device address, step S3 is specially: receive and comprise upgrade information enter interruption after interior online upgrading signal, judge whether the device address of himself conforms to device address in described online upgrading signal and/or whether himself is in described circular wait state, if it is exit and interrupt and upgrade according to the upgrade information in described online upgrading signal, if otherwise exit and interrupt and continue the former instruction of execution.
4. the online upgrading method of power line carrier equipment according to claim 1, is characterized in that,
In S1 step, receive after described starting and upgrading signal, by jumping to the interrupt address entrance of described upgrading control programs, enter interruption; And/or
In S3 step, receive after described online upgrading signal, by jumping to the interrupt address entrance of described upgrading control programs, enter interruption.
5. the online upgrading method of power line carrier equipment according to claim 1, is characterized in that,
Step S5 specifically comprises: receive after the Restart Signal that comprises device address, when the device address of himself is when device address in described Restart Signal conforms to, restart described in execution.
6. a power line carrier equipment for the online upgrading method of the power line carrier equipment based on as described in any one in claim 1 to 5, is characterized in that,
Described power line carrier equipment is configured to identify electric-power wire communication signal and described starting and upgrading signal and the online upgrading signal receiving, and comprises device address at interior Restart Signal;
Described program storage is configured to can bytecode be wiped and be write.
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 true CN103701496A (en) 2014-04-02
CN103701496B 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)

Cited By (1)

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

Citations (6)

* 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
WO2004084488A1 (en) * 2003-03-20 2004-09-30 Cogency Semiconductor Inc. Method and apparatus for reliable multicast
CN1843024A (en) * 2003-07-17 2006-10-04 埃内尔迪斯特里布齐恩公司 Method and system for remote updates of meters for metering the consumption of electricity, water or gas
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
CN101969713A (en) * 2010-08-11 2011-02-09 天津工业大学 LED street lamp control system based on electric power carrier communication technology

Patent Citations (6)

* 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
WO2004084488A1 (en) * 2003-03-20 2004-09-30 Cogency Semiconductor Inc. Method and apparatus for reliable multicast
CN1843024A (en) * 2003-07-17 2006-10-04 埃内尔迪斯特里布齐恩公司 Method and system for remote updates of meters for metering the consumption of electricity, water or gas
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
CN101969713A (en) * 2010-08-11 2011-02-09 天津工业大学 LED street lamp control system based on electric power carrier communication technology

Cited By (2)

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

Also Published As

Publication number Publication date
CN103701496B (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN100456246C (en) Method and device for updating firmware program
CN106569847B (en) Method for vehicle-mounted system to realize IAP remote upgrade based on mobile network
US7991988B2 (en) Communication device and firmware update method thereof
CN110134415A (en) A kind of controller and its method for upgrading software and device
CN104461594B (en) The upgrade method and device of embedded OS
CN101594613A (en) The method of terminal equipment and upgrading thereof, system
CN109240720B (en) Firmware upgrading method of android system and storage device
CN104090796A (en) Embedded device program updating method and system
CN101615128B (en) Online upgrade method and device of singlechip
CN101373433A (en) Method for updating BIOS and computer and system using the same
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN104021014B (en) A kind of firmware upgrade method based on dual-CPU system
CN103995712A (en) Boot loader device capable of updating automatically and updating method thereof
CN103744708A (en) Method of fixing disk device names in Linux operating system
CN101295255B (en) Firmware updating system and method
CN109582506B (en) Touch screen failure recovery method and device, host equipment and touch system
CN110633091A (en) Electronic module and software wireless upgrading method thereof
CN101169729A (en) Embedded type system and method for renewing application program
CN102446141B (en) Device and method for realizing write protection control
CN102137154A (en) Method and device for upgrading customer premise equipment (CPE)
CN110532014B (en) Program upgrading method, device, terminal equipment and computer readable storage medium
EP3190514A1 (en) Boot on-line upgrading apparatus and method
CN109002305A (en) A kind of update method and its system of device program
CN105278992A (en) Firmware updating method and apparatus
CN103701496B (en) Power line carrier equipment and online upgrading method thereof

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