CN102945181A - Method for updating device software based on power line - Google Patents

Method for updating device software based on power line Download PDF

Info

Publication number
CN102945181A
CN102945181A CN2012105109730A CN201210510973A CN102945181A CN 102945181 A CN102945181 A CN 102945181A CN 2012105109730 A CN2012105109730 A CN 2012105109730A CN 201210510973 A CN201210510973 A CN 201210510973A CN 102945181 A CN102945181 A CN 102945181A
Authority
CN
China
Prior art keywords
frame
electric force
line
carrier
equipment
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
Application number
CN2012105109730A
Other languages
Chinese (zh)
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.)
HI-TREND TECHNOLOGY (SHANGHAI) Co Ltd
Original Assignee
HI-TREND TECHNOLOGY (SHANGHAI) 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 HI-TREND TECHNOLOGY (SHANGHAI) Co Ltd filed Critical HI-TREND TECHNOLOGY (SHANGHAI) Co Ltd
Priority to CN2012105109730A priority Critical patent/CN102945181A/en
Publication of CN102945181A publication Critical patent/CN102945181A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for updating device software based on a power line. The method provided by the invention comprises the steps that: a main control device firstly decomposes an updating program into at least one transfer frame with a serial number, and then transmits the at least one transfer frame to at least one carrier device based on the power line; the carrier device obtains program information from the received transfer frame and stores the information in own backup program area; the main control device transmits a query frame based on the power line so as to determine whether each carrier device has received all transfer frames after transmitting all the transfer frames; and the carrier device replies to the main control device with the serial number information of own absent transfer frames through the power line and the main device performs continuous transmission to one single or all carrier devices with absent transfer frames. When partial or all carrier devices collect complete update packages, the main control device transmits a version switching control frame to allow one or a group of or all carrier devices to run the software of the corresponding version; and therefore, the software update of the carrier devices is completed.

Description

Carry out the method that device software is upgraded based on line of electric force
Technical field
The present invention relates to the power communication field, particularly relate to a kind of method of carrying out the device software renewal based on line of electric force.
Background technology
Current, the remote equipment of many operating softwares usually needs irregular update software, namely so-called software upgrading.The mode of existing upgrade software is varied, a kind of comparatively common mode is to upgrade after directly obtaining update software by hardware interface again, for example, be in the Chinese patent literature of CN1570863 at publication number, system and the method thereof of a kind of remote loading or ROMPaq are disclosed, in this system, subset is connected with main equipment by a kind of hardware interface, thereby inquire about the state of main equipment by this hardware interface, and whether load refresh routine in the main equipment according to condition selecting, in order to upgrade the program of self.Another kind of comparatively common software upgrading mode is upgraded by wireless mode exactly.For example, be in the Chinese patent literature of CN101184309 at publication number, a kind of embedded system remote upgrade method for repeater equipment is disclosed, this scheme by wireless transmitter will be more fresh code be transferred to the repeater equipment of far-end, carry out software upgrading for the repeater equipment of far-end.
Along with the development of technology, electric system also begins to adopt such as Intelligent carrier equipment such as intelligent electric meters, alleviates the heavy handworks such as manual metering.The processor that those Intelligent carrier equipment comprise (for example, built-in DSP and MCU among the HT8560) normally come processing protocol and communication correlation computations by the executive routine code, since the existence of following various factors, so that those Intelligent carrier equipment also face the problem of program updates:
1. extendability needs: for example, need Intelligent carrier equipment can support new function based on user's demand or promote original performance;
2. existing defective of repair procedure self etc.
Yet, after such carrier equipment is disposed, update software will meet with various predicaments, because, in order to prevent lawless person's lawbreaking activities, such carrier equipment can not arrange the hardware interface that is connected with external unit, can not comprise wireless communication module of communicating by letter with the external world etc., therefore, software upgrading usually needs artificial site work; But such carrier equipment distributes wide, by manpower upgrading, obviously high cost; Even adopt manpower to upgrade, often need to supspend the operation of such carrier equipment yet or dismantle such carrier equipment, and this behavior is not allowed or not received.
Therefore, how the carrier equipment in the electric system is carried out software upgrading, become in fact the technical task that those skilled in the art need to solve.
Summary of the invention
The shortcoming of prior art the object of the present invention is to provide a kind of method of carrying out the device software renewal based on line of electric force in view of the above, to realize the software upgrading of the carrier equipment in the electric system.
Reach for achieving the above object other relevant purposes, the invention provides a kind of method of carrying out the device software renewal based on line of electric force, it may further comprise the steps at least:
-carrier equipment is main program area and stand-by program district with self-contained memory partitioning;
-main control equipment transmits this at least one transmission frame at least one carrier equipment based on line of electric force after refresh routine is split numbered at least one transmission frame of formation tool again;
-carrier equipment is by obtaining program information in the transmission frame of receiving, and deposits the stand-by program district of self in;
Whether-described main control equipment has received all transmission frames based on described line of electric force transmission inquiry frame with definite each carrier equipment more after all transmission frames are transmitted;
-each carrier equipment judges whether received separately all transmission frames based on the numbering of the transmission frame of receiving separately, and feeds back to corresponding reply message based on described line of electric force;
-described main control equipment is behind the reply message that receives complete all transmission frames of reception that at least one carrier equipment feeds back to based on described line of electric force, again based on described line of electric force transmission control frame;
-carrier equipment carries out software upgrading based on the control frame that receives and all transmission frames of receiving.
As mentioned above, method of carrying out the device software renewal based on line of electric force of the present invention, have following beneficial effect: can realize the software upgrading of the carrier equipment of the remote port in the electric system, this law can not only be saved cost, and can also satisfy the demand of extension.
Description of drawings
Fig. 1 is shown as the power equipment system schematic.
Fig. 2 is shown as the process flow diagram that carries out the method for device software renewal based on line of electric force of the present invention.
The element numbers explanation
Figure BDA0000251460361
Embodiment
Below by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this instructions.The present invention can also be implemented or be used by other different embodiment, and the every details in this instructions also can be based on different viewpoints and application, carries out various modifications or change under the spirit of the present invention not deviating from.
See also Fig. 1 to Fig. 2.Need to prove, the diagram that provides in the present embodiment only illustrates basic conception of the present invention in a schematic way, satisfy only show in graphic with the present invention in relevant assembly but not component count, shape and size drafting when implementing according to reality, kenel, quantity and the ratio of each assembly can be a kind of random change during its actual enforcement, and its assembly layout kenel also may be more complicated.
Below will take power equipment system shown in Figure 1 as example describes in detail process of carrying out the method that device software upgrades based on line of electric force of the present invention.
Wherein, this power equipment system comprises main control equipment and N the carrier equipment that is connected on the line of electric force.Described main control equipment links to each other with the PC host computer by serial ports, and the PC host computer is used for showing current update mode and sends refresh routine to main control equipment.Carrier equipment is the equipment that comprises carrier module, for example, and intelligent electric meter etc.Carrier module is mainly used in the information such as electric weight of reading electric meters, then sends it on the line of electric force.
In step S1, each carrier equipment is main program area and stand-by program district with self-contained memory partitioning.
For example, carrier equipment 1,2 ... N separately storage area that master routine is occupied as main program area, with in the remaining storage area partly or entirely as the stand-by program district.Usually, carrier equipment preferentially moves the program in the main program area.
In step S2, main control equipment transmits this at least one transmission frame at least one carrier equipment based on line of electric force after refresh routine is split numbered at least one transmission frame of formation tool again.
For example, when need to be to the carrier equipment 1,2 of far-end ... when N carries out program upgrade, main control equipment is at first cut apart refresh routine and is numbered, be divided into a plurality of IAP (In Application Programming) frame, and transmit successively those IAP frames by line of electric force, employing broadcasting, multicast or only broadcast mode.
Then, in step S3, carrier equipment is by obtaining program information in the transmission frame of receiving, and deposits the stand-by program district of self in.
For example, carrier equipment 1,2 ... N judges whether data type belongs to the IAP frame after receiving the IAP frame by line of electric force respectively, if it is program information is saved in the stand-by program district.
Then, in step S4, main control equipment transmits the inquiry frame based on described line of electric force again after all transmission frames are transmitted, to determine whether each carrier equipment has received all transmission frames.
For example, after main control equipment is sent all IAP frames, adopt again broadcasting, multicast or only broadcast mode to transmit IAP code integrity inquiry frame, inquire about successively carrier equipment 1,2 ... N.
Then, in step S5, each carrier equipment judges whether received separately all transmission frames based on the numbering of the transmission frame of receiving separately, and feeds back to corresponding reply message based on described line of electric force.
Particularly, the number information of each carrier equipment transmission frame that self is lacked returns back to main control equipment by line of electric force.
Then, in step S6, described main control equipment is behind the reply message that receives complete all transmission frames of reception that at least one carrier equipment feeds back to based on described line of electric force, again based on described line of electric force transmission control frame.
Particularly, after some or all carrier equipments were collected all transmission frames, main control equipment adopted broadcasting, multicast or only broadcast mode to transmit the control frame that comprises operation information, allowed single or one group or all carrier equipments operation respective version softwares.Such as needs, main control equipment also can adopt broadcasting, multicast or only broadcast mode to transmit the control frame that comprises coverage information, in order to the refresh routine in carrier equipment stand-by program district is copied to main program area, substitutes original master routine.
Then, in step S7, carrier equipment carries out software upgrading based on the control frame that receives and all transmission frames of receiving.
Particularly, receive the control frame that comprises coverage information when carrier equipment, then the refresh routine in the stand-by program district is copied to the main program area that self comprises, to carry out software upgrading; Receive the control frame that comprises operation information when carrier equipment, then directly move the refresh routine in the stand-by program district, to carry out software upgrading.
As a kind of optimal way, method of the present invention comprises that also main control equipment transmits the step of the transmission frame that carrier equipment lacks again based on described power line carrier.
Particularly, after carrier equipment returns back to main control equipment with the number information of transmission frame of disappearance by line of electric force, main control equipment can adopt broadcasting, multicast or solely broadcast mode come to single or all exist the carrier equipments of disappearance frames to resume.
As another kind of optimal way, method of the present invention also comprises main control equipment based on described line of electric force transmission inquery frame, to inquire about the step of the software version that each carrier equipment moved.
Therefore, of the present inventionly carry out the method that device software upgrades based on line of electric force and have following characteristics:
A) support to transmit the program upgrade of realizing carrier equipment by power line signal, because the line of electric force transmission easily is subject to noise and load disturbance impact in the line of electric force, therefore, refresh routine is cut to compile as a plurality of IAP (In application programming) frame and carries out order or transmit arbitrarily.When carrier equipment need to be upgraded, main control equipment sent the IAP frame successively by line of electric force, after carrier equipment is received the IAP frame by line of electric force, judged whether data type belongs to the IAP frame, if it is data was saved in the stand-by program district.After main control equipment is sent all IAP frames, send again IAP code integrity inquiry frame, inquire about successively each carrier equipment, the number information of the IAP frame that carrier equipment can lack self returns back to main control equipment by line of electric force, by main control equipment carrier equipments single or all existence disappearance frames is resumed.After some or all carrier equipments were collected complete refresh routine, the main control equipment transmission control frame was allowed single or one group or all terminal operating respective version softwares.
B) the software memory partitioning of carrier equipment is main program area and stand-by program district, and during update software, for preventing update anomalies or unsuccessfully cause main program area to be covered by erroneous procedures, the refresh routine that therefore receives is kept at the stand-by program district.Main control equipment is soft by the line of electric force transmission control frame, and the control carrier equipment is with the program of the programming overlay main program area in stand-by program district.Main control equipment can pass through the line of electric force transmission control frame, and the control carrier equipment restarts to move the program in main program area or stand-by program district.
C) support that lost package resumes function, allow carrier equipment after the lost part update content, continue to upgrade.
D) support code version querying function, main control equipment can pass through line of electric force transmission inquery frame, with the software version of inquiry carrier equipment.
E) version of support code backup functionality and carrier equipment switches, and carrier equipment will upgrade the software of version to be stored, and keeps simultaneously original version, and main control equipment can be controlled by version querying the version of carrier equipment operating software.
F) support that main control equipment can be by solely broadcasting the mode of (designated equipment address), multicast (specifying one group of device address) or broadcasting (all devices), one or more carrier equipments are upgraded simultaneously or controlled.For example: can be by selecting the simultaneously program of new portion or all carrier equipments more of multicast or broadcast mode, also can select the address of appointment to upgrade the program etc. of a carrier equipment.
In sum, of the present inventionly carry out the program updates problem that method that device software upgrades can effectively solve the existing carrier equipment that can not arbitrarily dismantle such as ammeter etc. based on line of electric force, compared to the mode of artificial regeneration, method of the present invention can use manpower and material resources sparingly greatly.So the present invention has effectively overcome various shortcoming of the prior art and the tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not is used for restriction the present invention.Any person skilled in the art scholar all can be under spirit of the present invention and category, and above-described embodiment is modified or changed.Therefore, have in the technical field under such as and know that usually the knowledgeable modifies or changes not breaking away from all equivalences of finishing under disclosed spirit and the technological thought, must be contained by claim of the present invention.

Claims (6)

1. one kind is carried out the method that device software is upgraded based on line of electric force, it is characterized in that, describedly carries out the method that device software upgrades based on line of electric force and comprises at least step:
-carrier equipment is main program area and stand-by program district with self-contained memory partitioning;
-main control equipment transmits this at least one transmission frame at least one carrier equipment based on line of electric force after refresh routine is split numbered at least one transmission frame of formation tool again;
-carrier equipment is by obtaining program information in the transmission frame of receiving, and deposits the stand-by program district of self in;
Whether-described main control equipment has received all transmission frames based on described line of electric force transmission inquiry frame with definite each carrier equipment more after all transmission frames are transmitted;
-each carrier equipment judges whether received separately all transmission frames based on the numbering of the transmission frame of receiving separately, and feeds back to corresponding reply message based on described line of electric force;
-described main control equipment is behind the reply message that receives complete all transmission frames of reception that at least one carrier equipment feeds back to based on described line of electric force, again based on described line of electric force transmission control frame;
-carrier equipment carries out software upgrading based on the control frame that receives and all transmission frames of receiving.
2. according to claim 1ly carry out the method that device software is upgraded based on line of electric force, characterized by further comprising step:
Described main control equipment transmits the transmission frame that carrier equipment lacks again based on described line of electric force.
3. according to claim 1ly carry out the method that device software is upgraded based on line of electric force, it is characterized in that:
The coverage information that carrier equipment comprises based on the control frame that receives is copied to the refresh routine in the stand-by program district main program area that self comprises, to carry out software upgrading.
4. according to claim 1ly carry out the method that device software is upgraded based on line of electric force, it is characterized in that:
The operation information that carrier equipment comprises based on the control frame that receives directly moves the refresh routine in the stand-by program district, to carry out software upgrading.
5. according to claim 1ly carry out the method that device software is upgraded based on line of electric force, characterized by further comprising step:
Described main control equipment is based on described line of electric force transmission inquery frame, the software version that is moved to inquire about each carrier equipment.
6. carry out the method that device software is upgraded based on line of electric force according to claim 1 or 5, it is characterized in that: one or more modes that described main control equipment adopts broadcasting, multicast to reach in solely broadcasting are transmitted transmission frame, inquiry frame, control frame or inquiry frame.
CN2012105109730A 2012-12-03 2012-12-03 Method for updating device software based on power line Pending CN102945181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105109730A CN102945181A (en) 2012-12-03 2012-12-03 Method for updating device software based on power line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105109730A CN102945181A (en) 2012-12-03 2012-12-03 Method for updating device software based on power line

Publications (1)

Publication Number Publication Date
CN102945181A true CN102945181A (en) 2013-02-27

Family

ID=47728130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105109730A Pending CN102945181A (en) 2012-12-03 2012-12-03 Method for updating device software based on power line

Country Status (1)

Country Link
CN (1) CN102945181A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827461A (en) * 2016-05-13 2016-08-03 长沙威胜信息技术有限公司 Method for upgrading power line carrier communication module
CN108011655A (en) * 2018-01-08 2018-05-08 上海德澜电气集团有限公司 A kind of IAP methods based on power line carrier communication
CN108293060B (en) * 2015-12-29 2021-06-08 深圳配天智能技术研究院有限公司 Method and system for updating firmware of slave station, master station and slave station

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108293060B (en) * 2015-12-29 2021-06-08 深圳配天智能技术研究院有限公司 Method and system for updating firmware of slave station, master station and slave station
CN105827461A (en) * 2016-05-13 2016-08-03 长沙威胜信息技术有限公司 Method for upgrading power line carrier communication module
CN108011655A (en) * 2018-01-08 2018-05-08 上海德澜电气集团有限公司 A kind of IAP methods based on power line carrier communication

Similar Documents

Publication Publication Date Title
Liu et al. Impala: A middleware system for managing autonomic, parallel sensor systems
CN101535965B (en) Technique for improving scalability and portability of a storage management system
CN101652838B (en) A recipe-and-component control module and methods thereof
CN103155603A (en) Position information transmission device, position information transmission system and position information setting method
CN104331035A (en) Mini-satellite test remote measurement and remote control monitoring system based on service-oriented architecture and method thereof
CN104753130B (en) Charging of mobile devices device and its software installation method
CN104135533A (en) System and method of transmitting industrial data
CN102402441B (en) System and method for configuring multiple computers
CN101873005A (en) Method for realizing balanced acquisition of electric energy
CN112416969B (en) Parallel task scheduling system in distributed database
CN104852836A (en) Comprehensive data acquisition substation for underground coal mine
CN110289902A (en) The more new system of software on a kind of star
CN104272762A (en) Consumption meter with remote program update
CN102624762A (en) Method for improving robot software function based on cloud computing and cloud computing server
CN102147612A (en) Wireless sensor network data acquisition system based on 32-bit micro-processor
CN102945181A (en) Method for updating device software based on power line
Souissi et al. A parking management system using wireless sensor networks
CN103546559A (en) Method and device for distributing data
CN102497648B (en) Device and method for achieving remote debugging
CN111510481A (en) Software and hardware interactive interface applied to B L E5.0 protocol system
CN108877188A (en) A kind of environment protection digital concurrently acquires and Multi net voting dissemination method and device
CN103282888A (en) Data processing method, graphics processing unit (gpu) and first node device
CN103559632A (en) Intelligent client visiting system
CN101277198A (en) High speed communication chip capable of resisting irradiation interference in rigor surroundings
CN108959157A (en) A kind of control system and method for programmable logic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130227