CN103559058A - Software online upgrade method - Google Patents

Software online upgrade method Download PDF

Info

Publication number
CN103559058A
CN103559058A CN201310549045.XA CN201310549045A CN103559058A CN 103559058 A CN103559058 A CN 103559058A CN 201310549045 A CN201310549045 A CN 201310549045A CN 103559058 A CN103559058 A CN 103559058A
Authority
CN
China
Prior art keywords
software
data
slave computer
computer
host computer
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
CN201310549045.XA
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.)
Delta Greentech China Co Ltd
Original Assignee
Delta Greentech China 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 Delta Greentech China Co Ltd filed Critical Delta Greentech China Co Ltd
Priority to CN201310549045.XA priority Critical patent/CN103559058A/en
Publication of CN103559058A publication Critical patent/CN103559058A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention provides a software online upgrade method, which comprises the following steps that by mainly utilizing the principle of incremental upgrade, on the basis of establishing the communication between a host computer and a slave computer, the host computer searches the corresponding software data of the queried software version information at the host computer terminal by querying the software version information of an embedded system running in the slave computer, finds the changed part of the data by comparing the searched software data with pre-upgrade software data, and determines whether the changed range of the found changed part of data exceeds a preset changed range, otherwise, the host computer sends the found changed part of data to the slave computer, so that the slave computer performs the online upgrade operation according to the changed part of data in an incremental upgrade way, and thus the incremental upgrade function in online upgrade of the embedded system software is realized, and the upgrade efficiency can be effectively improved.

Description

On-line software updating method
Technical field
The present invention relates to a kind of on-line software updating method, particularly relate to a kind ofly in order to solve in the little situation of the pre-upgrade software of embedded system and existing software change, how by increment upgrading mode, improve the on-line software updating method of the problem of built-in system software online upgrading efficiency.
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, and the built-in system software online upgrading method of using in the industry is at present by the full content of upgrade software being carried out to complete upgrading, all softwares of upgrading successively in embedded system from the beginning to the end namely, under this upgrading mode, escalation process is chronic, can not meet the demand of built-in system software real-time update.
And, after embedded system is used, because hardware is fixing, most software upgradings just solve a small amount of defect existing in current software, namely on existing basis of software, have a small amount of change, the content of its actual upgrade seldom, in this case, if still carry out the complete upgrading of whole softwares, escalation process is longer, efficiency is very low, affects client and uses.
Therefore,, based on above deficiency, be necessary to provide a kind of and can shorten in right amount by situation the on-line software updating method of escalation process, to improve the efficiency of online upgrading.
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 method of escalation process.
For achieving the above object and other relevant objects, the invention provides a kind of on-line software updating method, between its host computer and slave computer that is applied to intercom mutually, for realizing the online upgrading to the built-in system software of slave computer, wherein, described host computer is pre-stored have the software data of pre-upgrading, various software version information and with each software version information software data not of the same race one to one, it is characterized in that, described on-line software updating method 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 software version query statement; (3) in described slave computer end, respond the instruction that described host computer sends, and upload software version information that this slave computer uses to described host computer; (4), in described upper computer end, the software version information of uploading according to described slave computer is searched the whether pre-stored software data corresponding with this software version information that have in this host computer, if, proceed to step (5), if not, proceed to step (6); (5) in described upper computer end, the software data of searched software data and the pre-stored pre-upgrading of this host computer is compared, and look for the part that data have change, and the data that judgement is looked for have the scope that the part of change changes whether to exceed a default change category, if, proceed to step (6), if not, sending the data of being looked for has the part of change to described slave computer, has the part of change to carry out online upgrading operation in increment upgrading mode for slave computer according to these data; And (6) are in described upper computer end, send the software data of the pre-stored complete pre-upgrading of this host computer to described slave computer, for slave computer, according to this pre-software data of upgrading, in complete upgrading mode, carry out online upgrading operation.
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 software version information comprises software version number, device number and device type.
In an embodiment of on-line software updating method of the present invention, described on-line software updating method is supported breakpoint transmission function.
In another embodiment of on-line software updating method of the present invention, described on-line software updating method is supported broadcast communication pattern.
As mentioned above, on-line software updating method of the present invention is mainly the principle of having utilized increment upgrading, at host computer and slave computer, set up on the basis of communicating by letter, make host computer by inquiring about the software version information of the embedded system of moving in slave computer, afterwards in the upper computer end search software data corresponding with inquired software version information, and searched software data and the software data of pre-upgrading are compared, look for data and have the part of change, and the data that judgement is looked for have the scope that the part of change changes whether to exceed a default change category, if not, send the data of being looked for and have the part of change to slave computer, for slave computer, according to these data, there is the part of change to carry out online upgrading operation in increment upgrading mode, can improve upgrading efficiency like this, realized the function of increment upgrading in built-in system software online upgrading, simultaneously, retained selectively again the possibility of complete upgrading, in host computer, do not search the software data corresponding with inquired software version information, or the software data of the software data searching and pre-upgrading compares under the situation that rear variation exceeds default change category, slave computer is carried out to complete upgrading, and then guaranteed the integrality of software upgrading.
Accompanying drawing explanation
Fig. 1 is shown as the operating process schematic diagram of on-line software updating method of the present invention.
Element numbers explanation
S10~S70 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 method of the present invention.On-line software updating method of the present invention is between the host computer and slave computer that is applied to intercom mutually, for realizing the online upgrading to the built-in system software of slave computer, wherein, described host computer is pre-stored have the software data of pre-upgrading, various software version information and with each software version information software data not of the same race one to one, wherein, respectively this software version information comprises software version number, device number and device type.Below the operating process of on-line software updating method 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 software version 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 software version information that this slave computer uses to this host computer.Then, carry out step S40.
In step S40, in this upper computer end, the software version information of uploading according to this slave computer, in this host computer, search the whether pre-stored software data corresponding with this software version information that have, if so, proceed to step S51, if not, proceed to step S52.
In step S51, in this upper computer end, the software data of searched software data and the pre-stored pre-upgrading of this host computer is compared, and look for the part that data have change.Then, carry out step S60.
In step S60, the data that judgement is looked for have the scope that the part of change changes whether to exceed a default change category, if so, proceed to step S52, if not, proceed to step S70.Preferably, the data that this default change category can be set as occurring to change account for 20%.
In step S52, in this upper computer end, send the software data of the pre-stored complete pre-upgrading of this host computer to this slave computer, for this slave computer, according to this pre-software data of upgrading, in complete upgrading mode, carry out online upgrading operation, now, can finish this on-line software updating process.
In step S70, in this upper computer end, sending the data of being looked for has the part of change to this slave computer, has the part of change to carry out online upgrading operation in increment upgrading mode for this slave computer according to these data, now, can finish this on-line software updating process.
What need to be explained is herein, in one embodiment of the invention, on-line software updating method of the present invention is supported breakpoint transmission function, but not as limit, in another embodiment of the present invention, on-line software updating method of the present invention also can be supports broadcast communication pattern, and in addition, on-line software updating method of the present invention also can be supported breakpoint transmission function and broadcast communication pattern simultaneously.
In sum, on-line software updating method of the present invention is mainly to have solved in the pre-upgrade software of embedded system and the little situation of existing software change, how by increment upgrade function, improve the problem of built-in system software online upgrading efficiency, and simplicity of design, updating speed be fast, realize that cost is low, applicability is extensive, has 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 (6)

1. an on-line software updating method, between its host computer and slave computer that is applied to intercom mutually, for realizing the online upgrading to the built-in system software of slave computer, wherein, described host computer is pre-stored have the software data of pre-upgrading, various software version information and with each software version information software data not of the same race one to one, it is characterized in that, described on-line software updating method 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 software version query statement;
3) in described slave computer end, respond the instruction that described host computer sends, and upload software version information that this slave computer uses to described host computer;
4), in described upper computer end, the software version information of uploading according to described slave computer is searched the whether pre-stored software data corresponding with this software version information that have in this host computer, if so, proceeds to step 5), if not, proceed to step 6);
5) in described upper computer end, the software data of searched software data and the pre-stored pre-upgrading of this host computer is compared, and look for the part that data have change, and the data that judgement is looked for have the scope that the part of change changes whether to exceed a default change category, if, proceed to step 6), if not, sending the data of being looked for has the part of change to described slave computer, has the part of change to carry out online upgrading operation in increment upgrading mode for slave computer according to these data; And
6) in described upper computer end, send the software data of the pre-stored complete pre-upgrading of this host computer to described slave computer, for slave computer, according to this pre-software data of upgrading, in complete upgrading mode, carry out online upgrading operation.
2. on-line software updating method 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 method according to claim 2, is characterized in that: described network is wireless network or cable network.
4. on-line software updating method according to claim 1, is characterized in that: described software version information comprises software version number, device number and device type.
5. on-line software updating method according to claim 1, is characterized in that: described on-line software updating method is supported breakpoint transmission function.
6. on-line software updating method according to claim 1, is characterized in that: described on-line software updating method is supported broadcast communication pattern.
CN201310549045.XA 2013-11-07 2013-11-07 Software online upgrade method Pending CN103559058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310549045.XA CN103559058A (en) 2013-11-07 2013-11-07 Software online upgrade method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310549045.XA CN103559058A (en) 2013-11-07 2013-11-07 Software online upgrade method

Publications (1)

Publication Number Publication Date
CN103559058A true CN103559058A (en) 2014-02-05

Family

ID=50013312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310549045.XA Pending CN103559058A (en) 2013-11-07 2013-11-07 Software online upgrade method

Country Status (1)

Country Link
CN (1) CN103559058A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240724A (en) * 2018-09-12 2019-01-18 京信通信系统(中国)有限公司 A kind of cascade device upgrade method and equipment
CN110532011A (en) * 2019-09-02 2019-12-03 珠海格力电器股份有限公司 Data converter version upgrading method, device and data communication system
CN112685076A (en) * 2021-01-20 2021-04-20 深圳市几米物联有限公司 Terminal equipment upgrading method and device, upper computer and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020066093A1 (en) * 2000-09-14 2002-05-30 Yen Hsiang Tsun System and method for updating an executing executable file
CN102081536A (en) * 2010-12-30 2011-06-01 华为终端有限公司 Method for updating increment, and server
CN102262544A (en) * 2010-05-24 2011-11-30 腾讯科技(深圳)有限公司 Method and device for upgrading software
CN103324502A (en) * 2013-05-28 2013-09-25 中国科学院上海微系统与信息技术研究所 Sensor network node code upgrading management middleware, code upgrading management method and application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020066093A1 (en) * 2000-09-14 2002-05-30 Yen Hsiang Tsun System and method for updating an executing executable file
CN102262544A (en) * 2010-05-24 2011-11-30 腾讯科技(深圳)有限公司 Method and device for upgrading software
CN102081536A (en) * 2010-12-30 2011-06-01 华为终端有限公司 Method for updating increment, and server
CN103324502A (en) * 2013-05-28 2013-09-25 中国科学院上海微系统与信息技术研究所 Sensor network node code upgrading management middleware, code upgrading management method and application

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240724A (en) * 2018-09-12 2019-01-18 京信通信系统(中国)有限公司 A kind of cascade device upgrade method and equipment
CN110532011A (en) * 2019-09-02 2019-12-03 珠海格力电器股份有限公司 Data converter version upgrading method, device and data communication system
CN112685076A (en) * 2021-01-20 2021-04-20 深圳市几米物联有限公司 Terminal equipment upgrading method and device, upper computer and storage medium

Similar Documents

Publication Publication Date Title
CN108074177B (en) Data reconciliation method, system and computer-readable storage medium
CN106843828B (en) Interface display and loading method and device
US9477735B2 (en) Cloud computing-based data sharing system and method
CN105930020B (en) A kind of method and device of the icon of management terminal application program
CN102810066A (en) Terminal adapting method and terminal and server based on terminal characteristic configuration program
CN105045611A (en) Upgrading method and apparatus
CN104965726A (en) Configuration updating method, apparatus and system
CN103152398A (en) Method and system for file synchronization among multiple terminal files
CN102904929A (en) Method, device and system for setting background data of mobile terminal
CN109871221B (en) System for quickly installing and deploying mobile application software for mobile terminal equipment
CN103559058A (en) Software online upgrade method
CN105653335A (en) Plug-in procedure control method and device
CN103577415A (en) Method and device for updating search configuration corresponding to mobile search application
CN104615501A (en) Method, controller, management platform and system used for fault recovery
CN202799005U (en) Cloud computing based internet monitoring system of set top box and set top box
CN106611062A (en) Database updating method and device
CN105045114A (en) Information processing method, cloud service platform and information processing system
CN104092732A (en) Intelligent terminal software updating method and device
CN108777632B (en) Data processing method, client, service platform and configuration platform
CN112764874B (en) Virtual machine server information acquisition method based on CMDB configuration management system
CN104793844A (en) Plug-in management method and device based on mobile terminal
CN105511273A (en) Client operation management method and client
CN105373005A (en) Universal control method, apparatus and system of Internet of things
CN104793984A (en) Equipment modeling method and device and cloud platform
CN112269588A (en) Algorithm upgrading method, device, terminal and computer readable storage medium

Legal Events

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

Application publication date: 20140205

RJ01 Rejection of invention patent application after publication