CN102541604A - Remote upgrading method, remote upgrading terminal equipment and remote upgrading system - Google Patents
Remote upgrading method, remote upgrading terminal equipment and remote upgrading system Download PDFInfo
- Publication number
- CN102541604A CN102541604A CN2011104511267A CN201110451126A CN102541604A CN 102541604 A CN102541604 A CN 102541604A CN 2011104511267 A CN2011104511267 A CN 2011104511267A CN 201110451126 A CN201110451126 A CN 201110451126A CN 102541604 A CN102541604 A CN 102541604A
- Authority
- CN
- China
- Prior art keywords
- module
- business application
- data
- upgrade
- application module
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
An embodiment of the invention discloses a remote upgrading method, remote upgrading terminal equipment and a remote upgrading system, which are applied to the field of upgrading of embedded equipment. Terminal equipment is started for judging whether a service application module can be operated normally or not, and if not, an automatic upgrading module is operated by means of the terminal equipment. The automatic upgrading module is used for reading upgrading parameters in the terminal equipment, downloading an upgrading data packet from an upgrading server, and writing data of a new service application module to overwrite the data of the original service application module, wherein the upgrading data packet comprises the data of the new service application module. Using the remote upgrading method, the remote upgrading terminal equipment and the remote upgrading system can reduce storage cost.
Description
Technical field
The present invention relates to embedded device upgrading field, the terminal device and the remote update system of particularly a kind of remote upgrade method, remote upgrade.
Background technology
At present, embedded device is widely used in network service, fields such as Industry Control and safety-protection system owing to have low cost and high reliability.Normally a kind of equipment of designing and developing towards application-specific of embedded device; Comprise business application module; Said business application module comprises used operating system and application program when terminal device normally moves; Can be used in business function and the upgrade function of realizing terminal device, said upgrade function is included in new business application module and the new original business application module of business application module covering of programming of download on the internet, in practical application; The embedded device renewal business application module of need upgrading is realized increased functionality or debugging functions defective.In the process that realizes the remote upgrade function, can run into various upgrading abnormal conditions, for example outage causes the upgrading failure, and at this moment business application module will be imperfect or be destroyed, and makes embedded device normally to move.
In the prior art, generally adopt the fault-tolerance approach of the redundant double copies of business application module, two business application modules promptly are set in equipment, the business application module damage when main usefulness then substitutes operation by subsequent use business application module, and assurance equipment is good for use.
But in equipment, preserve two business application modules, can make storage area increase at double, increased the cost of equipment.
Summary of the invention
The embodiment of the invention provides the remote upgrade method that can reduce storage cost, the terminal device of remote upgrade and remote update system.
A kind of remote upgrade method is characterized in that, comprising: start terminal device; Judge whether business application module can normally move; If business application module can not normally move, then terminal device carries out the operation of auto-update module, and the auto-update module is carried out and comprised: the upgrade parameter in the reading terminal equipment; To upgrade server download and upgrade packet, said upgrading data packet comprises the data of new business application module; The data of the business application module that programming is new cover the data of original business application module.
A kind of terminal device of remote upgrade is characterized in that, comprising: configuring area is used to preserve upgrade parameter; Business application module; The auto-update module; Be used for reading the upgrade parameter of configuring area, download comprises the upgrading data packet of the data of new business application module according to upgrade parameter, and the data of the business application module that programming is new cover the data of original business application module; And bootstrap module; Be used for the operation of guide service application module or auto-update module, the wherein operation of bootstrap module elder generation guide service application module is if business application module can't normally move the operation that then guides the auto-update module.
A kind of remote update system is characterized in that, comprising: Automatic Configuration Server is used for sending the upgrade request that comprises upgrade parameter to terminal device; Upgrade server is used to provide upgrading data packet to supply terminal device to download, and said upgrading data packet comprises the data of new business application module; And terminal device, terminal device comprises: configuring area, and the storage area in terminal device is used to preserve upgrade parameter; Business application module; Be used to make terminal device normally to move, and when receiving upgrade request, preserve upgrade parameter to configuring area; To upgrade server download and upgrade packet, the data of the business application module that programming is new cover the data of original business application module according to upgrade parameter; The auto-update module is used for reading the upgrade parameter of configuring area, and to upgrade server download and upgrade packet, the data of the business application module that programming is new cover the data of original business application module according to upgrade parameter; And bootstrap module, being used for the operation of guide service application module or auto-update module, the wherein operation of bootstrap module elder generation guide service application module is if business application module can't normally move the operation that then guides the auto-update module.
In the technical scheme that the embodiment of the invention provides; When business application module is damaged or loses file and make terminal device normally not move business application module, the auto-update module in the terminal device will be moved automatically, auto-update module download and upgrade packet and the new business application module of programming; Make terminal device can move business application module again; And business application module is upgraded, for the terminal device that two business application modules are set, only a business application module and auto-update module need be set in the present embodiment; Can save the storage area, reduce storage cost.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the embodiment of the invention medium-long range upgrade method first embodiment synoptic diagram;
Fig. 2 is the embodiment of the invention medium-long range upgrade method second embodiment synoptic diagram;
Fig. 3 is the terminal device first embodiment synoptic diagram of embodiment of the invention medium-long range upgrading;
Fig. 4 is the terminal device second embodiment synoptic diagram of embodiment of the invention medium-long range upgrading;
Fig. 5 is the embodiment of the invention medium-long range upgrade-system first embodiment synoptic diagram;
Fig. 6 is the embodiment of the invention medium-long range upgrade-system second embodiment synoptic diagram.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides the terminal device and the remote update system of remote upgrade method, remote upgrade, can reduce storage cost.Be elaborated respectively below.
See also Fig. 1, embodiment of the invention medium-long range upgrade method first embodiment comprises:
A, startup terminal device judge whether business application module can normally move, if business application module can not normally move, then terminal device is carried out following steps;
When business application module can not normally move, terminal device carried out the operation of auto-update module, auto-update module execution in step B and C.
Upgrade parameter in B, the reading terminal equipment is to upgrade server download and upgrade packet;
Said upgrade server is preserved upgrading data packet; Said upgrading data packet comprises the data of new business application module; The upgrade parameter of auto-update module reading and saving in terminal device, said upgrade parameter can comprise the address of upgrade server, the auto-update module connects according to upgrade parameter and upgrade server; The download and upgrade packet, said upgrading data packet comprises the data of new business application module.
The data of the business application module that C, programming are new cover the data of original business application module;
The data of the business application module that the programming of auto-update module is new cover the data of original business application module, make terminal device can normally move business application module.
In the present embodiment; Said business application module comprises used operating system and application program when terminal device normally moves, and can be used in business function and the upgrade function of realizing terminal device, and said auto-update module is used to realize upgrade function; Said upgrade function comprises downloads new business application module and the new original business application module of business application module covering of programming; When business application module is damaged or loses file and make terminal device normally not move business application module, the auto-update module in the terminal device will be moved automatically, auto-update module download and upgrade packet and the new business application module of programming; Make terminal device can move business application module again; And business application module is upgraded, for the terminal device that two business application modules are set, only a business application module and auto-update module need be set in the present embodiment; Can save the storage area, reduce storage cost.
See also Fig. 2, embodiment of the invention medium-long range upgrade method second embodiment comprises:
101, start terminal device, judge whether business application module can normally move, if business application module can not normally move, then execution in step 102, if business application module can normally move, then execution in step 112;
Said terminal device comprises bootstrap module, and said bootstrap module is used for the operation of guide service application module or auto-update module, when starting terminal device; Bootstrap module judges whether business application module can normally move, and its method can be whether bootstrap module uses the data of CRC (CRC, cyclical redundancy check) business application module complete; If the data integrity of business application module, promptly business application module can normally move, then bootstrap module guide service application module operation; And execution in step 112; If the data of business application module are imperfect, promptly business application module can not normally move, and then execution in step 102.
102, judge whether terminal device can normally move the auto-update module, if the auto-update module can not normally be moved, then execution in step 103, if the auto-update module can normally be moved, then execution in step 105;
If business application module can not normally move, then bootstrap module judges whether the auto-update module can normally be moved, and whether its method can be to use the data of CRC auto-update module complete; If the data integrity of auto-update module, promptly the auto-update module can normally be moved, the operation of bootstrap module guiding auto-update module; And execution in step 105; If the data of auto-update module are imperfect, promptly the auto-update module can not normally be moved, and then execution in step 103.
103, wait for local upgrade, and execution in step 104;
If business application module and auto-update module all can not normally be moved; The upgrading data packet that then terminal device is can't remote download new is also upgraded business application module or the data of auto-update module; Bootstrap module waits for that the user manually upgrades to terminal device; The user communicates by letter with terminal device through another equipment, and to the data of the new business application module of terminal device transmission, the data of the business application module that the bootstrap module programming is new cover the data of original business application module.
104, judge whether business application module can normally move, if business application module can normally move, then terminal device carries out the operation of business application module; And execution in step 112; If business application module can not normally move, then return execution in step 103, wait for local upgrade again;
Whether bootstrap module uses the data of CRC business application module complete, if data integrity, then business application module can normally move, if data are imperfect, then bootstrap module execution in step 103 is waited for local upgrade again.
105, the upgrade parameter in the reading terminal equipment is to upgrade server download and upgrade packet;
The operation of bootstrap module guiding auto-update module, the upgrade parameter in the auto-update module reading terminal equipment, said upgrade parameter are kept in the configuring area of terminal device; The data of said business application module and auto-update module all are not kept in the configuring area; Therefore the data of business application module or auto-update module are carried out the content that programming does not again influence configuring area, promptly do not influence the content of upgrade parameter, said upgrade parameter comprises URL; Said upgrade server is the webserver; URL is the address of the webserver, and said upgrade parameter can also comprise username and password, in order to the checking through the webserver; Said upgrading data packet comprises the data of new business application module and the data of new auto-update module; Said download and upgrade packet is to utilize the wget order among the busybox to go to obtain upgrading data packet, and said busybox is the software of integrated linux order and instrument, and said wget is the order of obtaining telefile among the busybox; Only support the simple function that the webserver page removes to obtain file of resolving, the storage area that takies is less.
106, whether the data of the data of new business application module and new auto-update module are complete in the CRC check upgrading data packet, if imperfect, then execution in step 113, if complete, then execution in step 107;
Whether the auto-update module utilizes the data of data and new auto-update module of business application module new in the CRC upgrading data packet complete, confirm the data integrity in the upgrading data packet after, carry out next step.
Whether 107, verification upgrading data packet is legal, if upgrading data packet is illegal, and execution in step 113 grade data inclusion methods then, then execution in step 108;
Said upgrading data packet also comprises the label of characterization software version, and whether the said label of auto-update module verification is correctly legal, after the affirmation label is correct legal, carries out next step.
108, judge whether terminal device has enough storage areas, if terminal device does not have enough spaces, then execution in step 113, as if terminal device enough spaces arranged, then execution in step step 109;
The auto-update module is judged in the terminal device size of storage area of the data of preserving business application module whether more than or equal to the size of the data of business application module new in the upgrading data packet, and whether the size of judging the storage area of the data of preservation auto-update module in the terminal device is more than or equal to the size of the data of auto-update module new in the upgrading data packet.
109, the data of the new business application module of programming cover the data of original business application module;
The data of the business application module that the programming of auto-update module is new cover the data of original business application module.
110, judge whether new business application module is complete, if complete then execution in step 111, if imperfect then execution in step 113;
After the data of the intact new business application module of programming cover the data of original business application module; Whether the auto-update module utilizes the data of the new business application module after the CRC programming complete; If the complete next step of then carrying out, if imperfect then execution in step 113
111, the data of the new auto-update module of programming cover the data of original auto-update module;
The data of the auto-update module that the programming of auto-update module is new cover the data of original auto-update module.
112, judge whether new auto-update module is complete, if the complete terminal device execution in step 101 that then restarts, if imperfect then execution in step 113;
After the data of the intact new auto-update module of programming cover the data of original auto-update module; Whether the auto-update module utilizes the data of the new auto-update module after the CRC programming complete; If the complete terminal device execution in step 101 that then restarts; If imperfect, then execution in step 113.
113, output error message restarts terminal device execution in step 101;
Auto-update module output error message can be outside output error message, also can be that error message is recorded in the terminal device.
114, terminal device carries out the operation of business application module, if business application module does not receive upgrade request, then finishes the remote upgrade flow process, if business application module receives upgrade request, then execution in step 115;
Said upgrade request comprises upgrade parameter, and said upgrade parameter comprises URL, and upgrade request can be to be sent to terminal device by Automatic Configuration Server, and said Automatic Configuration Server can be the Automatic Configuration Server that defines in the TR069 agreement.
115, obtain upgrade parameter, to upgrade server download and upgrade packet;
Business application module is resolved the upgrade parameter in the upgrade request; Obtain upgrade parameter; Said upgrade parameter comprises URL, and said upgrade server is the webserver, and URL is the address of the webserver; Said upgrading data packet comprises the data of new business application module and the data of new auto-update module, and the said webserver can be Internet Server.
116, whether the data of the data of new business application module and new auto-update module are complete in the CRC check upgrading data packet, if imperfect, then execution in step 124, if complete, then execution in step 117;
Whether business application module utilizes the data of data and new auto-update module of business application module new in the CRC upgrading data packet complete, confirm the data integrity in the upgrading data packet after, carry out next step.。
Whether 117, verification upgrading data packet is legal, if upgrading data packet is illegal, then execution in step 124, if upgrading data packet is legal, then execution in step 118;
Said upgrading data packet also comprises the label of characterization software version, and whether the said label of business application module verification is correctly legal, after the affirmation label is correct legal, carries out next step.
118, judge whether terminal device has enough storage areas, if terminal device does not have enough spaces, then execution in step 124, as if terminal device enough spaces arranged, then execution in step step 119;
Business application module is judged in the terminal device size of storage area of the data of preserving business application module whether more than or equal to the size of the data of business application module new in the upgrading data packet, and whether the size of judging the storage area of the data of preservation auto-update module in the terminal device is more than or equal to the size of the data of auto-update module new in the upgrading data packet.
119, preserve upgrade parameter in terminal device;
Business application module is saved in upgrade parameter in the configuring area of terminal device.
120, the data of the new auto-update module of programming cover the data of original auto-update module;
The data of the auto-update module that the business application module programming is new cover the data of original auto-update module.
121, judge whether the data of new auto-update module are complete, if complete, then execution in step 122, if imperfect, then execution in step 124;
After the data of the intact new auto-update module of programming cover the data of original auto-update module; Whether business application module can utilize the data of the new auto-update module after the CRC programming complete; If it is complete; Then carry out next step, if imperfect, then execution in step 124.
122, the data of the new business application module of programming cover the data of original business application module, and restart terminal device execution in step 101;
The data of the business application module that the business application module programming is new cover the data of original business application module.
123, judge whether new business application module is complete, if the complete terminal device execution in step 101 that then restarts, if imperfect then execution in step 124;
After the data of the intact new business application module of programming cover the data of original business application module; Whether business application module utilizes the data of the new business application module after the CRC programming complete; If the complete terminal device execution in step 101 that then restarts; If imperfect, then execution in step 124.
120, output error message restarts terminal device execution in step 101;
The business application module output error message can be outside output error message, also can be that error message is recorded in the terminal device.
In this enforcement, said business application module comprises used operating system and application program when terminal device normally moves, and can be used in business function and the upgrade function of realizing terminal device; Said auto-update module is used to realize upgrade function, and said upgrade function comprises downloads new business application module and the new original business application module of business application module covering of programming, if business application module can normally move; Then terminal device moves business application module; When business application module received upgrade request, business application module was preserved upgrade parameter, and the download and upgrade packet also covers programming to the data of auto-update module and business application module; If business application module can not normally move; Then terminal device carries out the operation of auto-update module, and the auto-update module reads upgrade parameter, and the download and upgrade packet also covers programming to the data of auto-update module and business application module; In the programming process if cut off the power supply or other factor affecting cause the interruption of programming; Whether present embodiment can prevent the situation that the data of business application module and auto-update module all are damaged, and has improved the success ratio of upgrading, and after the data of the original module of the data covering of the new module of each programming, all utilize the new module data of CRC complete; Make business application module or the imperfect or defectiveness of data of auto-update module in upgrading data packet; After intact business application module of programming or auto-update module, carry out next step again after judging the integrality of this module, can avoid terminal device programming simultaneously defective business application module and auto-update module; Make terminal device still can move one of them module; Realize upgrade function, make escalation process have fault-tolerance, promoted the reliability of terminal device.
In other embodiment, if said upgrading data packet does not comprise the data of new auto-update module, then in step 106 and the step 116 in the only verification upgrading data packet data of new business application module whether complete; Whether the size of storage area of only judging in the terminal device data of preserving business application module in step 108 and the step 118 is more than or equal to the size of the data of business application module new in the upgrading data packet; Omit step 111; Step 112; Step 120 and step 121, and step 110 judges the new complete terminal device execution in step 101 that then restarts of business application module have specified the data conditions that upgrading data packet does not comprise new auto-update module in the present embodiment.
See also Fig. 3, terminal device first embodiment of embodiment of the invention medium-long range upgrading comprises:
Configuring area 301; Storage area in terminal device; Be used to preserve upgrade parameter; Wherein business application module 302 all is not kept in the configuring area 301 with the data of auto-update module 303, therefore the data of business application module 302 or auto-update module 303 is carried out the content that programming again covers does not influence configuring area 301, does not promptly influence the content of upgrade parameter;
Auto-update module 303; Be used for reading the upgrade parameter of configuring area 301; Download comprises the upgrading data packet of the data of new business application module 302 according to upgrade parameter, and the data of the business application module 302 that programming is new cover the data of original business application module 302; And
In the present embodiment, said business application module comprises used operating system and application program when terminal device normally moves, and can be used in business function and the upgrade function of realizing terminal device; Said auto-update module is used to realize upgrade function; Said upgrade function comprises downloads new business application module and the new original business application module of business application module covering of programming, when business application module can not normally move, and the operation of bootstrap module guiding auto-update module; Auto-update module download and upgrade packet and the new business application module of programming; Make terminal device can move business application module again, and business application module is upgraded, for the terminal device of two business application modules of backup; Present embodiment can be saved the storage area, reduces storage cost.
See also terminal device second embodiment of Fig. 4 for the upgrading of embodiment of the invention medium-long range; More excellent; On the basis of terminal device first embodiment of remote upgrade, said bootstrap module 304 is further used for before 303 operations of guiding auto-update module in embodiments of the present invention, and whether the data of auto-update module 303 being carried out CRC check auto-update module 303 are complete; If the data integrity of auto-update module 303; Then guide 303 operations of auto-update module, if the data of auto-update module 303 are imperfect, then bootstrap module 304 waits for that the user is through connecting terminal equipment; To the data of the new business application module of terminal device transmission, the data of the business application module 302 that bootstrap module 304 programmings are new cover the data of original business application module 302;
Said terminal device is when the normal operation of carrying out business application module 302; When terminal device receives when comprising upgrading upgrading upgrade request; Business application module 302 is further used for preserving upgrade parameter and according to upgrade parameter download and upgrade packet; The new data of programming cover original data, and said business application module 302 further comprises:
The first programming module 3024; The data that the data that are used for the new auto-update module 303 of first programming cover after the data of original auto-update module 303 the new business application module 302 of programming again cover the data of original business application module 302, and whether the first programming module can also be used for after the data of intact new business application module 302 of programming or auto-update module 303, utilizing the data of CRC corresponding service application module 302 or auto-update module 303 complete;
Said auto-update module 303 further comprises:
The second programming module 3034; The data that the data that are used for the new business application module of first programming 302 cover after the data of original business application module 302 the new auto-update module 303 of programming again cover the data of original auto-update module 303, and whether the second programming module can also be used for after the data of intact new business application module 302 of programming or auto-update module 303, utilizing the data of CRC corresponding service application module 302 or auto-update module 303 complete.
In this enforcement,, carry out the operation of business application module when terminal device if business application module can normally move; When receiving upgrade request, preserve upgrade parameter, the download and upgrade packet also covers programming to the data of auto-update module and business application module; If business application module can not normally move; Then terminal device carries out the operation of auto-update module, reads upgrade parameter, and the download and upgrade packet also covers programming to the data of auto-update module and business application module; And cover the verification of all carrying out the data integrity of this business application module or auto-update module after the data of original business application module or auto-update module in the data of new business application module of each programming or auto-update module; If cut off the power supply or other factor affecting cause the interruption of programming, present embodiment can prevent the situation that the data of business application module and auto-update module all are damaged, and has improved the success ratio of upgrading in the programming process; And because the second download module function singleness; The storage space that takies is little, and the storage area that makes the auto-update module take is little more than business application module, for two business application modules of backup; Present embodiment can effectively be saved the storage area, reduces storage cost.
See also Fig. 5, embodiment of the invention medium-long range upgrade-system first embodiment comprises:
Configuring area 4031; Storage area in terminal device 403; Be used to preserve upgrade parameter; Wherein business application module 4032 all is not kept in the configuring area 4031 with the data of auto-update module 4033, therefore the data of business application module 4032 or auto-update module 4033 is carried out the content that programming again covers does not influence configuring area 4031, does not promptly influence the content of upgrade parameter;
Auto-update module 4033 is used for reading the upgrade parameter of configuring area 4031, and to upgrade server 402 download and upgrade packets, the data of the business application module 4032 that programming is new cover the data of original business application module 4032 according to upgrade parameter; And
In the present embodiment,, carry out the operation of business application module when terminal device if business application module can normally move; When receiving upgrade request, preserve upgrade parameter, the download and upgrade packet also covers programming to the data of business application module; If business application module can not normally move, then terminal device carries out the operation of auto-update module, reads upgrade parameter; The download and upgrade packet also covers programming to the data of business application module, because the storage area that the auto-update module takies is little more than business application module, for two business application modules of backup; Present embodiment can effectively be saved the storage area, reduces storage cost.
Seeing also Fig. 6 is embodiment of the invention medium-long range upgrade-system second embodiment; More excellent; On the basis of remote update system first embodiment, said bootstrap module 4034 is further used for before 4033 operations of guiding auto-update module in embodiments of the present invention, and whether the data of auto-update module 4033 being carried out CRC check auto-update module 4033 are complete; If the data integrity of auto-update module 4033; Then guide 4033 operations of auto-update module, if the data of auto-update module 4033 are imperfect, then bootstrap module 4034 waits for that the user is through local page or serial communication connecting terminal equipment; Upload the data of new business application module to terminal device, the data of the business application module 4032 that bootstrap module 4034 programmings are new cover the data of original business application module 4032;
Said terminal device is when the normal operation of carrying out business application module 4032; When terminal device receives when comprising upgrading upgrading upgrade request; Business application module 4032 is further used for preserving upgrade parameter and according to upgrade parameter download and upgrade packet; The new data of programming cover original data, and said business application module 4032 further comprises:
The first programming module 40324; The data that the data that are used for the new auto-update module 4033 of first programming cover after the data of original auto-update module 4033 the new business application module 4032 of programming again cover the data of original business application module 4032, and whether the first programming module can also be used for after the data of intact new business application module 4032 of programming or auto-update module 4033, utilizing the data of CRC corresponding service application module 4032 or auto-update module 4033 complete;
Said auto-update module 4033 further comprises:
The second programming module 40334; The data that the data that are used for the new business application module of first programming 4032 cover after the data of original business application module 4032 the new auto-update module 4033 of programming again cover the data of original auto-update module 4033, and whether the second programming module can also be used for after the data of intact new business application module 4032 of programming or auto-update module 4033, utilizing the data of CRC corresponding service application module 4032 or auto-update module 4033 complete.
In this enforcement, if business application module can normally move, when terminal device carries out the operation of business application module; Automatic Configuration Server sends upgrade request to terminal device; When terminal device receives upgrade request, preserve upgrade parameter, cover programming to upgrade server download and upgrade packet and to the data of auto-update module and business application module; If business application module can not normally move; Then terminal device carries out the operation of auto-update module, reads upgrade parameter, covers programming to upgrade server download and upgrade packet and to the data of auto-update module and business application module; And cover the verification of all carrying out the data integrity of this business application module or auto-update module after the data of original business application module or auto-update module in the data of new business application module of each programming or auto-update module; If cut off the power supply or other factor affecting cause the interruption of programming, present embodiment can prevent the situation that the data of business application module and auto-update module all are damaged, and has improved the success ratio of upgrading in the programming process; And because the second download module function singleness; The storage space that takies is little, and the storage area that makes the auto-update module take is little more than business application module, for two business application modules of backup; Present embodiment can effectively be saved the storage area, reduces storage cost.
More than to remote upgrade method that the embodiment of the invention provided; The terminal device of remote upgrade and remote update system have carried out detailed introduction; Used concrete example among this paper principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.
Claims (15)
1. a remote upgrade method is characterized in that, comprising:
Start terminal device, judge whether business application module can normally move, if business application module can not normally move, then terminal device carries out the operation of auto-update module, and the auto-update module is carried out and comprised:
Upgrade parameter in the reading terminal equipment, to upgrade server download and upgrade packet, said upgrading data packet comprises the data of new business application module;
The data of the business application module that programming is new cover the data of original business application module.
2. remote upgrade method according to claim 1 is characterized in that:
In the step of said startup terminal device; Judge whether business application module can normally move, if business application module can not normally move, then terminal device carries out the operation of auto-update module; If business application module can normally move; Then terminal device carries out the operation of business application module, and when business application module receives the upgrade request that comprises upgrade parameter, business application module is carried out and comprised:
According to the upgrade parameter that receives to upgrade server download and upgrade packet;
The data of the business application module that programming is new cover the data of original business application module.
3. remote upgrade method according to claim 2 is characterized in that: after receiving the upgrade request that comprises upgrade parameter when business application module, business application module is preserved upgrade parameter in the configuring area of terminal device.
4. remote upgrade method according to claim 2 is characterized in that: said upgrade request is sent by Automatic Configuration Server.
5. according to each described remote upgrade method in the claim 2~4; It is characterized in that: said upgrade parameter comprises URL; URL is the address of the webserver; Said upgrade server is the webserver, and business application module or auto-update module are obtained upgrading data packet according to the address of URL to the webserver.
6. remote upgrade method according to claim 5; It is characterized in that: judge that the method that can business application module normally move is to use the data of CRC business application module whether complete; If complete then business application module can normally move, if imperfect then business application module can not normally move.
7. remote upgrade method according to claim 6; It is characterized in that: said upgrading data packet comprises the data of new business application module and the data of new auto-update module, and the data that said business application module is carried out the new business application module of programming comprise before covering the step of data of original business application module: the data of the auto-update module that programming is new cover the data of original auto-update module.
8. remote upgrade method according to claim 7 is characterized in that: the step that the data of the business application module that said auto-update module execution programming is new cover the data of original business application module comprises afterwards: the data of the auto-update module that programming is new cover the data of original auto-update module.
9. the terminal device of a remote upgrade is characterized in that, comprising:
Configuring area is used to preserve upgrade parameter;
Business application module;
The auto-update module is used for reading the upgrade parameter of configuring area, downloads the upgrading data packet of the data that comprise new business application module according to upgrade parameter, and the data of the business application module that programming is new cover the data of original business application module; And
Bootstrap module is used for the operation of guide service application module or auto-update module, and the wherein operation of bootstrap module elder generation guide service application module is if business application module can't normally move the operation that then guides the auto-update module.
10. terminal device according to claim 9 is characterized in that: said business application module comprises:
Receiver module is used to receive the upgrade request that comprises upgrade parameter, resolves the upgrade parameter in the upgrade request and upgrade parameter passed to first configuration module;
First configuration module is used for preserving upgrade parameter and passes to first download module to configuring area and with upgrade parameter;
First download module is used for according to upgrade parameter download and upgrade packet, and said upgrading data packet comprises the data of new business application module; And
The first programming module, the data that are used for the new business application module of programming cover the data of original business application module;
Said auto-update module comprises:
Second configuration module is used for reading the upgrade parameter of configuring area and upgrade parameter is passed to second download module;
Second download module is used for according to upgrade parameter download and upgrade packet; And
The second programming module, the data that are used for the new business application module of programming cover the data of original business application module.
11. terminal device according to claim 10 is characterized in that: whether the said first programming module and the second programming module are further used for utilizing the data of CRC business application module or auto-update module complete.
12. according to claim 10 or 11 described terminal devices; It is characterized in that: said upgrading data packet comprises the data of new business application module and the data of new auto-update module; The data that the data that the said first programming module is further used for the new auto-update module of first programming cover after the data of original auto-update module the new business application module of programming again cover the data of original business application module, and the data that the data that the said second programming module is further used for the new business application module of first programming cover after the data of original business application module the new auto-update module of programming again cover the data of original auto-update module.
13. a remote update system is characterized in that, comprising:
Automatic Configuration Server is used for sending the upgrade request that comprises upgrade parameter to terminal device;
Upgrade server is used to provide upgrading data packet to supply terminal device to download, and said upgrading data packet comprises the data of new business application module; And
Terminal device, terminal device comprises:
Configuring area, the storage area in terminal device is used to preserve upgrade parameter;
Business application module; Be used to make terminal device normally to move, and when receiving upgrade request, preserve upgrade parameter to configuring area; To upgrade server download and upgrade packet, the data of the business application module that programming is new cover the data of original business application module according to upgrade parameter;
The auto-update module is used for reading the upgrade parameter of configuring area, and to upgrade server download and upgrade packet, the data of the business application module that programming is new cover the data of original business application module according to upgrade parameter; And
Bootstrap module is used for the operation of guide service application module or auto-update module, and the wherein operation of bootstrap module elder generation guide service application module is if business application module can't normally move the operation that then guides the auto-update module.
14. upgrade-system according to claim 13; It is characterized in that: said upgrade parameter comprises URL; URL is the address of the webserver; Said upgrade server is the webserver, and terminal device obtains upgrading data packet according to the address of URL to the webserver.
15. upgrade-system according to claim 14 is characterized in that: said upgrade server is an Internet Server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110451126.7A CN102541604B (en) | 2011-12-29 | 2011-12-29 | The terminal device of a kind of remote upgrade method, remote upgrade and remote update system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110451126.7A CN102541604B (en) | 2011-12-29 | 2011-12-29 | The terminal device of a kind of remote upgrade method, remote upgrade and remote update system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102541604A true CN102541604A (en) | 2012-07-04 |
CN102541604B CN102541604B (en) | 2015-12-16 |
Family
ID=46348572
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110451126.7A Active CN102541604B (en) | 2011-12-29 | 2011-12-29 | The terminal device of a kind of remote upgrade method, remote upgrade and remote update system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102541604B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103152206A (en) * | 2013-03-25 | 2013-06-12 | 安科智慧城市技术(中国)有限公司 | Method and system for updating multiple devices |
CN103530153A (en) * | 2013-10-11 | 2014-01-22 | 光一科技股份有限公司 | Remote updating method of user electricity utilization information collecting terminals |
CN104346187A (en) * | 2013-08-07 | 2015-02-11 | 西安诺瓦电子科技有限公司 | Software upgrading method for video control card for display screen |
CN104601628A (en) * | 2013-10-31 | 2015-05-06 | 京信通信系统(中国)有限公司 | Client, server and remote downloading method thereof |
CN105391031A (en) * | 2015-11-18 | 2016-03-09 | 许继集团有限公司 | Data processing method and system of relay protection device with plurality of plugins |
CN105530123A (en) * | 2015-12-07 | 2016-04-27 | 厦门雅迅网络股份有限公司 | Intelligent configuring method of GPS terminal parameters |
CN105740017A (en) * | 2016-01-29 | 2016-07-06 | 贵阳海信电子有限公司 | Cloud television system upgrading method and device |
CN108170495A (en) * | 2018-01-29 | 2018-06-15 | 郑州云海信息技术有限公司 | A kind of BIOS upgrade methods, system, equipment and computer readable storage medium |
CN110290015A (en) * | 2019-07-24 | 2019-09-27 | 无锡华云数据技术服务有限公司 | Remote deployment method, apparatus and storage medium |
CN115273274A (en) * | 2022-07-28 | 2022-11-01 | 中国第一汽车股份有限公司 | Data recording method, device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101009589A (en) * | 2006-01-26 | 2007-08-01 | 腾讯科技(深圳)有限公司 | A method and system for software upgrade |
CN101459528A (en) * | 2007-12-11 | 2009-06-17 | 康佳集团股份有限公司 | On-line up-grading method and system for network terminal device |
CN101594613A (en) * | 2009-06-22 | 2009-12-02 | 中兴通讯股份有限公司 | The method of terminal equipment and upgrading thereof, system |
-
2011
- 2011-12-29 CN CN201110451126.7A patent/CN102541604B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101009589A (en) * | 2006-01-26 | 2007-08-01 | 腾讯科技(深圳)有限公司 | A method and system for software upgrade |
CN101459528A (en) * | 2007-12-11 | 2009-06-17 | 康佳集团股份有限公司 | On-line up-grading method and system for network terminal device |
CN101594613A (en) * | 2009-06-22 | 2009-12-02 | 中兴通讯股份有限公司 | The method of terminal equipment and upgrading thereof, system |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103152206A (en) * | 2013-03-25 | 2013-06-12 | 安科智慧城市技术(中国)有限公司 | Method and system for updating multiple devices |
CN104346187A (en) * | 2013-08-07 | 2015-02-11 | 西安诺瓦电子科技有限公司 | Software upgrading method for video control card for display screen |
CN104346187B (en) * | 2013-08-07 | 2017-10-17 | 西安诺瓦电子科技有限公司 | The method for upgrading software of display screen video control card |
CN103530153B (en) * | 2013-10-11 | 2016-08-17 | 光一科技股份有限公司 | User power utilization information acquisition terminal remote upgrade method |
CN103530153A (en) * | 2013-10-11 | 2014-01-22 | 光一科技股份有限公司 | Remote updating method of user electricity utilization information collecting terminals |
CN104601628A (en) * | 2013-10-31 | 2015-05-06 | 京信通信系统(中国)有限公司 | Client, server and remote downloading method thereof |
CN104601628B (en) * | 2013-10-31 | 2018-02-13 | 京信通信系统(中国)有限公司 | Client, service end and its remote download method |
CN105391031A (en) * | 2015-11-18 | 2016-03-09 | 许继集团有限公司 | Data processing method and system of relay protection device with plurality of plugins |
CN105391031B (en) * | 2015-11-18 | 2018-05-08 | 许继集团有限公司 | The data processing method and system of protective relaying device with more plug-in units |
CN105530123A (en) * | 2015-12-07 | 2016-04-27 | 厦门雅迅网络股份有限公司 | Intelligent configuring method of GPS terminal parameters |
CN105740017A (en) * | 2016-01-29 | 2016-07-06 | 贵阳海信电子有限公司 | Cloud television system upgrading method and device |
CN105740017B (en) * | 2016-01-29 | 2019-06-04 | 贵阳海信电子有限公司 | The upgrade method and device of cloud television system |
CN108170495A (en) * | 2018-01-29 | 2018-06-15 | 郑州云海信息技术有限公司 | A kind of BIOS upgrade methods, system, equipment and computer readable storage medium |
CN108170495B (en) * | 2018-01-29 | 2021-04-02 | 苏州浪潮智能科技有限公司 | BIOS upgrading method, system, equipment and computer readable storage medium |
CN110290015A (en) * | 2019-07-24 | 2019-09-27 | 无锡华云数据技术服务有限公司 | Remote deployment method, apparatus and storage medium |
CN110290015B (en) * | 2019-07-24 | 2021-02-02 | 华云数据控股集团有限公司 | Remote deployment method, device and storage medium |
CN115273274A (en) * | 2022-07-28 | 2022-11-01 | 中国第一汽车股份有限公司 | Data recording method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102541604B (en) | 2015-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102541604A (en) | Remote upgrading method, remote upgrading terminal equipment and remote upgrading system | |
EP2456257B1 (en) | Method and system for upgrading wireless data card | |
CN102609281B (en) | Distributed software patch update method and system | |
CN101478446B (en) | Network appliance version loading method, apparatus and system | |
CN101594613A (en) | The method of terminal equipment and upgrading thereof, system | |
CN101426077A (en) | Method for on-line updating television set software through Internet | |
CN101355434B (en) | Method and apparatus for upgrading software of multimedia remote terminal | |
US20160170735A1 (en) | Operating system updating method by using a checklist | |
CN102624875B (en) | Method for replacing or updating language packs of terminal equipment | |
US20170068585A1 (en) | Method and Apparatus for Recovering System Software of Intelligent Terminal | |
CN101472050A (en) | Method and system for updating software, digital television receive terminal and server | |
CN105468395A (en) | Updating method, device and system | |
CN105786636B (en) | A kind of system repair and device | |
CN101593122B (en) | Method and device for starting embedded system | |
CN1244990C (en) | Digital satellite communication system and method | |
CN101056209A (en) | A maintenance method and device for radio terminal image file | |
CN103336698A (en) | Wifi equipment software upgrading method, wifi equipment and system | |
CN103150223A (en) | Method for preventing epon terminal equipment from being damaged and epon terminal equipment | |
CN108874410B (en) | Patch management method and device | |
CN104580360A (en) | System and method for updating firmware through heterogeneous network | |
CN105320534A (en) | BOOT remote updating method, BOOT remote updating device and BOOT remote updating system for single board | |
CN112804071A (en) | On-line upgrading method, upgrading file providing method, equipment and storage medium | |
CN101854442B (en) | Network device and firmware updating method thereof | |
CN100484038C (en) | Network element version switching method and device | |
CN101499920A (en) | Method and apparatus for implementing veneer software download |
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 |