CN103631622A - Software online upgrade repairing method - Google Patents
- ️Wed Mar 12 2014
CN103631622A - Software online upgrade repairing method - Google Patents
Software online upgrade repairing method Download PDFInfo
-
Publication number
- CN103631622A CN103631622A CN201310627629.4A CN201310627629A CN103631622A CN 103631622 A CN103631622 A CN 103631622A CN 201310627629 A CN201310627629 A CN 201310627629A CN 103631622 A CN103631622 A CN 103631622A Authority
- CN
- China Prior art keywords
- slave computer
- breakpoint
- file data
- computer
- data Prior art date
- 2013-11-29 Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a software online upgrade repairing method. The software online upgrade repairing method mainly includes the following steps that based on communication building of an upper computer and a lower computer, the upper computer queries breakpoint response information of the lower computer and judges whether breakpoint information exists in the breakpoint response information or not, if yes, file data which are not completely transmitted in the last upgrade process are transmitted frame by frame from breakpoint positions, file data which are represented as a file transmission end command are sent after transmission is finished, at the end of the lower computer, before the file data which are represented as the file transmission end command are received, received file data every time are written in corresponding positions of a storage medium of an embedded system of the lower computer, when writing-in is finished, the positions are updated and recorded as break-off positions and used as the breakpoint information, and after the file data which are represented as the file transmission end command are received, online upgrade repairing operation is conducted according to all the received file data. The function of breakpoint supervention in the software online upgrade repairing process of the embedded system is achieved, and upgrade repairing efficiency can be effectively improved.
Description
Technical field
The present invention relates to a kind of on-line software updating restorative procedure, particularly relate to a kind of in order to solve embedded system in software upgrade process because extremely interrupt in the situation that, how by the mode of breakpoint transmission, carry out the on-line software updating restorative procedure of the online upgrading function of repairing built-in system software.
Background technology
In order to make the informations such as software in embedded system, data in last state, need in real time embedded system to be carried out to upgrade maintenance, but when carrying out online upgrading in rugged surroundings, because being easily interfered in escalation process, circuit anomalous event such as open close in abnormal, can cause and upgrade unsuccessfully, cause embedded system cisco unity malfunction, thereby cause adverse consequences.
And the current in the industry cycle interior embedded system software online upgrading method of using is based on continual upgrading under consistent link environment, in online upgrading process, occur when upgrading is interrupted needing accent to start again to upgrade, adopt this type of upgrade mode, in communication, disturb under the rugged surroundings strong, channel is unstable etc., on-line software updating will be difficult to successfully.
Therefore, based on above deficiency, be necessary to provide a kind of on-line software updating restorative procedure that shortens in right amount escalation process by situation, even to guarantee also to complete fast and effectively on-line software updating task under rugged surroundings.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide and a kind ofly can shorten in right amount by situation the on-line software updating restorative procedure of escalation process.
For achieving the above object and other relevant objects, the invention provides a kind of on-line software updating restorative procedure, between its host computer and slave computer that is applied to intercom mutually, for realizing, the built-in system software of slave computer be there is in upper once escalation process to the reparation upgrade function of unusual condition, and when slave computer, in escalation process, unusual condition occurs, record breakpoint information, it is characterized in that, described on-line software updating restorative procedure at least comprises: (1) sets up communicating by letter between described host computer and described slave computer; (2), in described upper computer end, to described slave computer, send breakpoint information query statement; (3) in described slave computer end, respond the instruction that described host computer sends, and upload the breakpoint response message that records in the last escalation process of this slave computer to described host computer; (4), in described upper computer end, the breakpoint response message of uploading according to described slave computer, judges whether this breakpoint response message has breakpoint information, if so, proceeds to step (5), if not, proceeds to step (6); (5) in described upper computer end, from being transferred to the upgrade file reference position of slave computer, start transfer files data one by one, and after file data is transmitted, send a file data that is characterized by transfer files END instruction, then, carry out step (7); (6) in described upper computer end, from breakpoint location, start to transmit one by one the file data not transferring last escalation process, and after file data is transmitted, send a file data that is characterized by transfer files END instruction; (7) in described slave computer end, judge whether received file data is characterized by end of file transfer instruction, if so, according to received All Files data, carry out online upgrading reparation operation, if not, proceed to step (8); (8) in described slave computer end, the file data receiving is write to the relevant position of storage medium of the embedded system of this slave computer, after having write, this position is upgraded and is recorded as interruption position, using as breakpoint information, and upload response message that a slave computer correctly receives frame data to described host computer; And (9) in described upper computer end, the response message that correctly receives frame data of uploading according to described slave computer, continues transmission next frame file data, then, is back to step (7).
Preferably, above-mentioned steps (1) further comprises: by RS232, RS485 or network, set up communicating by letter between described host computer and described slave computer.Wherein, described network can be for example wireless network or cable network.Described breakpoint information comprises transmission data length and the transmission data address recording when interrupting in last escalation process.
In an embodiment of on-line software updating restorative procedure of the present invention, described on-line software updating restorative procedure is supported broadcast communication pattern.
As mentioned above, on-line software updating restorative procedure of the present invention is mainly the principle of having utilized breakpoint transmission, at host computer and slave computer, set up on the basis of communicating by letter, make host computer by inquiring about the breakpoint response message of slave computer, the breakpoint response message of uploading according to slave computer in upper computer end afterwards, judge whether this breakpoint response message has breakpoint information, if not, from being transferred to the upgrade file reference position of slave computer, start transfer files data one by one, if, from breakpoint location, start to transmit one by one the file data not transferring last escalation process, no matter be which kind of situation, all after file data is transmitted, transmission one is characterized by the file data of transfer files END instruction, and at slave computer end, before receiving the file data that is characterized by transfer files END instruction, the file data receiving is write to the relevant position of storage medium of the embedded system of this slave computer at every turn, after having write, this position is upgraded and is recorded as interruption position, using as breakpoint information, until after receiving the file data that is characterized by transfer files END instruction, according to received All Files data, carry out online upgrading reparation operation.So, can avoid when occurring that upgrading is interrupted, needing accent to start again to upgrade in prior art, not only lose time, and, for meeting with such as communication, disturb the rugged surroundings such as strong, channel is unstable and while often occurring to interrupt, carry out in this way the problems such as on-line software updating will be difficult to successfully.
Accompanying drawing explanation
Fig. 1 is shown as the operating process schematic diagram of on-line software updating restorative procedure of the present invention.
Element numbers explanation
S10~S80 step
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 applied 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 not deviating under spirit of the present invention.
Referring to Fig. 1, is the operational flowchart that shows on-line software updating restorative procedure of the present invention.On-line software updating restorative procedure of the present invention is between the host computer and slave computer that is applied to intercom mutually, for realizing the reparation upgrade function that the built-in system software of slave computer, in upper once escalation process, unusual condition is occurred to and interrupt, and when slave computer, in escalation process, unusual condition occurs, record breakpoint information, wherein, this breakpoint information comprises transmission data length and the transmission data address recording when interrupting in last escalation process.Below the operating process of on-line software updating restorative procedure of the present invention is elaborated.
As shown in Figure 1, first perform step S10, set up communicating by letter between this host computer and this slave computer, in more detail, to set up communicating by letter between this host computer and this slave computer by RS232, RS485 or network (this network can such as being wireless network or cable network) etc., but not as limit, the technology that such as can realize the contact of communicating by letter of instruction between host computer and slave computer, data etc. all can.Then, carry out step S20.
In step S20, in this upper computer end, to this slave computer, send breakpoint information query statement.Then, carry out step S30.
In step S30, in this slave computer end, respond the instruction that this host computer sends, and upload the breakpoint response message that records in the last escalation process of this slave computer to this host computer.Then, carry out step S40.
In step S40, in this upper computer end, the breakpoint response message of uploading according to this slave computer, judges whether this breakpoint response message has breakpoint information, if so, proceeds to step S51, if not, proceeds to step S52.
In step S51, in this upper computer end, from being transferred to the upgrade file reference position of slave computer, start transfer files data one by one, and after file data is transmitted, send a file data that is characterized by transfer files END instruction.Then, carry out step S60.
In step S52, in this upper computer end, from breakpoint location, start to transmit one by one the file data not transferring last escalation process, and after file data is transmitted, send a file data that is characterized by transfer files END instruction.Then, carry out step S60.
In step S60, in this slave computer end, judge whether received file data is characterized by end of file transfer instruction, if so, proceed to step S71, if not, proceed to step S72.
In step S71, in this slave computer end, according to received All Files data, carry out online upgrading reparation operation, now, can finish this on-line software updating repair process.
In step S72, in this slave computer end, the file data receiving is write to the relevant position of storage medium of the embedded system of this slave computer, after having write, this position is upgraded and is recorded as interruption position, using as breakpoint information, and upload response message that a slave computer correctly receives frame data to this host computer.Then, carry out step S80.
In step S80, in this upper computer end, the response message that correctly receives frame data of uploading according to this slave computer, continues transmission next frame file data, then, is back to step S60.
Need to be explained, in one embodiment of the invention, on-line software updating restorative procedure of the present invention can be supported broadcast communication pattern simultaneously herein.
In sum, on-line software updating restorative procedure of the present invention is mainly solved embedded system and occur extremely to interrupt because environment is severe in software upgrade process in the situation that, how by the mode of breakpoint transmission, carry out the online upgrading problem of repairing built-in system software, mainly by record breakpoint information when upgrading is interrupted, to continue upgrading since breakpoint last time place according to the breakpoint information of record when again upgrading, realized the function of supporting breakpoint transmission in built-in system software online upgrading process, this method simplicity of design, reparation updating speed is fast, realize cost low, there is good economic benefit.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.
Claims (5)
1. an on-line software updating restorative procedure, between its host computer and slave computer that is applied to intercom mutually, for realizing the reparation upgrade function that the built-in system software of slave computer, in upper once escalation process, unusual condition is occurred to and interrupt, and when slave computer, in escalation process, unusual condition occurs, record breakpoint information, it is characterized in that, described on-line software updating restorative procedure at least comprises:
1) set up communicating by letter between described host computer and described slave computer;
2), in described upper computer end, to described slave computer, send breakpoint information query statement;
3) in described slave computer end, respond the instruction that described host computer sends, and upload the breakpoint response message that records in the last escalation process of this slave computer to described host computer;
4), in described upper computer end, the breakpoint response message of uploading according to described slave computer, judges that whether this breakpoint response message has breakpoint information, if so, proceeds to step 5), if not, proceed to step 6);
5) in described upper computer end, from being transferred to the upgrade file reference position of slave computer, start transfer files data one by one, and after file data is transmitted, send a file data that is characterized by transfer files END instruction, then, carry out step 7);
6) in described upper computer end, from breakpoint location, start to transmit one by one the file data not transferring last escalation process, and after file data is transmitted, send a file data that is characterized by transfer files END instruction;
7) in described slave computer end, judge whether received file data is characterized by end of file transfer instruction, if so, according to received All Files data, carry out online upgrading reparation operation, if not, proceed to step 8);
8) in described slave computer end, the file data receiving is write to the relevant position of storage medium of the embedded system of this slave computer, after having write, this position is upgraded and is recorded as interruption position, using as breakpoint information, and upload response message that a slave computer correctly receives frame data to described host computer; And
9) in described upper computer end, the response message that correctly receives frame data of uploading according to described slave computer, continues transmission next frame file data, then, is back to step 7).
2. on-line software updating restorative procedure according to claim 1, is characterized in that: described step 1) further comprise: by RS232, RS485 or network, set up communicating by letter between described host computer and described slave computer.
3. on-line software updating restorative procedure according to claim 2, is characterized in that: described network is wireless network or cable network.
4. on-line software updating restorative procedure according to claim 1, is characterized in that: described breakpoint information comprises transmission data length and the transmission data address recording when interrupting in last escalation process.
5. on-line software updating restorative procedure according to claim 1, is characterized in that: described on-line software updating restorative procedure is supported broadcast communication pattern.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310627629.4A CN103631622A (en) | 2013-11-29 | 2013-11-29 | Software online upgrade repairing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310627629.4A CN103631622A (en) | 2013-11-29 | 2013-11-29 | Software online upgrade repairing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103631622A true CN103631622A (en) | 2014-03-12 |
Family
ID=50212719
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310627629.4A Pending CN103631622A (en) | 2013-11-29 | 2013-11-29 | Software online upgrade repairing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103631622A (en) |
Cited By (7)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104881379A (en) * | 2015-06-26 | 2015-09-02 | 力合科技(湖南)股份有限公司 | Serial port communication method |
WO2015169028A1 (en) * | 2014-05-05 | 2015-11-12 | 中兴通讯股份有限公司 | On-line upgrade method and device for terminal software |
CN106657332A (en) * | 2016-12-22 | 2017-05-10 | 深圳市麦积电子科技有限公司 | Breakpoint continuous transmission method |
CN108648298A (en) * | 2018-04-28 | 2018-10-12 | 深圳市元征科技股份有限公司 | Message treatment method and device, storage medium, electronic equipment |
CN109245953A (en) * | 2018-11-22 | 2019-01-18 | 新华三技术有限公司 | A kind of network collocating method and device |
CN111885207A (en) * | 2020-08-06 | 2020-11-03 | 中国银行股份有限公司 | Streaming data breakpoint continuous transmission method and device |
CN113824798A (en) * | 2021-11-19 | 2021-12-21 | 浙江中控技术股份有限公司 | Breakpoint continuous transmission method and system |
Citations (1)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404366A (en) * | 2010-09-16 | 2012-04-04 | 厦门雅迅网络股份有限公司 | Method for realizing wireless remote file system upgrading |
-
2013
- 2013-11-29 CN CN201310627629.4A patent/CN103631622A/en active Pending
Patent Citations (1)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404366A (en) * | 2010-09-16 | 2012-04-04 | 厦门雅迅网络股份有限公司 | Method for realizing wireless remote file system upgrading |
Non-Patent Citations (3)
* Cited by examiner, † Cited by third partyTitle |
---|
李刚等: ""智能电力设备在线远程软件升级新方法"", 《计算机应用》 * |
李顺新等: ""数据备份系统中多线程传输和断点续传的设计"", 《微机发展》 * |
鲁士杰: "《计算机网络》", 31 December 2010 * |
Cited By (10)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015169028A1 (en) * | 2014-05-05 | 2015-11-12 | 中兴通讯股份有限公司 | On-line upgrade method and device for terminal software |
CN105094860A (en) * | 2014-05-05 | 2015-11-25 | 中兴通讯股份有限公司 | Terminal software online upgrade method and device |
CN104881379A (en) * | 2015-06-26 | 2015-09-02 | 力合科技(湖南)股份有限公司 | Serial port communication method |
CN104881379B (en) * | 2015-06-26 | 2018-08-21 | 力合科技(湖南)股份有限公司 | A kind of serial port communication method |
CN106657332A (en) * | 2016-12-22 | 2017-05-10 | 深圳市麦积电子科技有限公司 | Breakpoint continuous transmission method |
CN108648298A (en) * | 2018-04-28 | 2018-10-12 | 深圳市元征科技股份有限公司 | Message treatment method and device, storage medium, electronic equipment |
CN109245953A (en) * | 2018-11-22 | 2019-01-18 | 新华三技术有限公司 | A kind of network collocating method and device |
CN111885207A (en) * | 2020-08-06 | 2020-11-03 | 中国银行股份有限公司 | Streaming data breakpoint continuous transmission method and device |
CN111885207B (en) * | 2020-08-06 | 2023-03-14 | 中国银行股份有限公司 | Streaming data breakpoint continuous transmission method and device |
CN113824798A (en) * | 2021-11-19 | 2021-12-21 | 浙江中控技术股份有限公司 | Breakpoint continuous transmission method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103631622A (en) | 2014-03-12 | Software online upgrade repairing method |
US20210208852A1 (en) | 2021-07-08 | Visual programming control apparatus, programming-controlled device and control method therefor, computer-readable storage medium, and programming control system |
CN104881333A (en) | 2015-09-02 | Storage system and method for using same |
CN110427385B (en) | 2022-06-10 | Block chain data updating method, related node and block chain |
CN103729275B (en) | 2017-01-25 | Hard disk firmware repairing system and hard disk firmware repairing method |
CN103488498A (en) | 2014-01-01 | Computer booting method and computer |
CN103049405B (en) | 2016-08-03 | Android device file management method and system |
US20140059001A1 (en) | 2014-02-27 | Cloud computing-based data sharing system and method |
CN105338078A (en) | 2016-02-17 | Data storage method and device used for storing system |
CN100471134C (en) | 2009-03-18 | Method, device for upgrading telecommunication equipment and upgrading engine unit |
CN105159795A (en) | 2015-12-16 | Data synchronization method, apparatus and system |
CN103152390A (en) | 2013-06-12 | Method and device and nodes and system for node configuration of distributed storage system |
CN105356989A (en) | 2016-02-24 | MTP mode-based data synchronization method, system and device |
CN114356811B (en) | 2022-06-07 | A communication link update method, device and related equipment |
CN112835604A (en) | 2021-05-25 | System gray scale version release management method, system, device and medium |
CN104021081A (en) | 2014-09-03 | Debugging method and device for browser |
CN105426213A (en) | 2016-03-23 | Software update method and system |
CN105808374A (en) | 2016-07-27 | Snapshot processing method and associated equipment |
CN110692058B (en) | 2024-06-04 | Auxiliary storage device for providing independent backup and recovery functions and equipment suitable for auxiliary storage device |
CN105487473A (en) | 2016-04-13 | PLC data log module with backup function |
CN113778739B (en) | 2022-03-04 | System repair method, system, equipment and storage medium of all-in-one machine |
CN104517067A (en) | 2015-04-15 | Method, device and system for data access |
CN106547485A (en) | 2017-03-29 | Data migration method and device |
CN112600703B (en) | 2023-04-07 | Network equipment remote access fault positioning method and device |
CN102937862B (en) | 2015-04-01 | System and method for managing mobile terminal by browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
2014-03-12 | PB01 | Publication | |
2014-03-12 | PB01 | Publication | |
2014-04-16 | C10 | Entry into substantive examination | |
2014-04-16 | SE01 | Entry into force of request for substantive examination | |
2018-02-27 | RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140312 |
2018-02-27 | RJ01 | Rejection of invention patent application after publication |