CN102541604B - The terminal device of a kind of remote upgrade method, remote upgrade and remote update system - Google Patents

The terminal device of a kind of remote upgrade method, remote upgrade and remote update system Download PDF

Info

Publication number
CN102541604B
CN102541604B CN201110451126.7A CN201110451126A CN102541604B CN 102541604 B CN102541604 B CN 102541604B CN 201110451126 A CN201110451126 A CN 201110451126A CN 102541604 B CN102541604 B CN 102541604B
Authority
CN
China
Prior art keywords
business application
application module
module
upgrade
data
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.)
Active
Application number
CN201110451126.7A
Other languages
Chinese (zh)
Other versions
CN102541604A (en
Inventor
周晓海
董浩
钟英梅
黄楚恩
李康养
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201110451126.7A priority Critical patent/CN102541604B/en
Publication of CN102541604A publication Critical patent/CN102541604A/en
Application granted granted Critical
Publication of CN102541604B publication Critical patent/CN102541604B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses remote upgrade method, the terminal device of remote upgrade and remote update system, be applied to embedded device upgrading field.The embodiment of the present invention comprises: start terminal device, judge whether business application module can normally run, if business application module can not normally run, then terminal device carries out the operation of auto-update module, auto-update module performs and comprises: the upgrade parameter in reading terminal equipment, download upgrading data packet to upgrade server, described upgrading data packet comprises the data of new business application module; The data of the business application module that the data cover of the business application module that programming is new is original.The present invention can reduce storage cost.

Description

The terminal device of a kind of remote upgrade method, remote upgrade and remote update system
Technical field
The present invention relates to embedded device upgrading field, the particularly terminal device of a kind of remote upgrade method, remote upgrade and remote update system.
Background technology
At present, embedded device, owing to having low cost and high reliability, is widely used in network service, the field such as Industry Control and safety-protection system.Normally a kind of equipment designed and developed towards application-specific of embedded device, comprise business application module, described business application module comprises operating system used when terminal device normally runs and application program, can be used in the business function and the upgrade function that realize terminal device, described upgrade function is included in internet downloads new business application module and the new business application module of programming covers original business application module, in actual applications, embedded device needs upgrading to upgrade business application module, practical function strengthens or debugging functions defect.In the process realizing remote upgrade function, can run into various upgrading abnormal conditions, such as power-off causes upgrading unsuccessfully, and at this moment business application module will be imperfect or destroyed, and embedded device cannot normally be run.
In prior art, the general fault-tolerance approach adopting business application module redundancy double copies, namely arranges two business application modules in a device, when primary business application module damages, is then substituted by business application module for subsequent use and runs, ensure that equipment is good for use.
But preserve two business application modules in a device, storage area increase at double can be made, add the cost of equipment.
Summary of the invention
The embodiment of the present 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, it is characterized in that, comprise: start terminal device, judge whether business application module can normally run, if business application module can not normally run, then terminal device carries out the operation of auto-update module, and auto-update module performs and comprises: the upgrade parameter in reading terminal equipment, download upgrading data packet to upgrade server, described upgrading data packet comprises the data of new business application module; The data of the business application module that the data cover of the business application module that programming is new is original.
A terminal device for remote upgrade, is characterized in that, comprising: configuring area, for preserving upgrade parameter; Business application module; Auto-update module, for reading the upgrade parameter in configuring area, the upgrading data packet comprising the data of new business application module is downloaded according to upgrade parameter, the data of the business application module that the data cover of the business application module that programming is new is original, and bootstrap module, run for guide service application module or auto-update module, wherein the operation of the first guide service application module of bootstrap module, if business application module cannot normally run, guides the operation of auto-update module.
A kind of remote update system, is characterized in that, comprising: Automatic Configuration Server, for sending the upgrade request comprising upgrade parameter to terminal device; Upgrade server, for providing upgrading data packet to download for terminal device, described 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, for preserving upgrade parameter; Business application module, for making terminal device normally run, and when receiving upgrade request, preserve upgrade parameter to configuring area, upgrading data packet is downloaded to upgrade server, the data of the business application module that the data cover of the business application module that programming is new is original according to upgrade parameter; Auto-update module, for reading the upgrade parameter in configuring area, downloads upgrading data packet according to upgrade parameter to upgrade server, the data of the business application module that the data cover of the business application module that programming is new is original; And bootstrap module, run for guide service application module or auto-update module, wherein the operation of the first guide service application module of bootstrap module, if business application module cannot normally run, guides the operation of auto-update module.
In the technical scheme that the embodiment of the present invention provides, when business application module be damaged or lose file make terminal device normally can not run business application module time, auto-update module in terminal device will be run automatically, auto-update module downloads upgrading data packet and the new business application module of programming, make terminal device again can run business application module, and business application module is upgraded, for the terminal device of two business application modules is set, only need in the present embodiment to arrange a business application module and auto-update module, storage area can be saved, reduce storage cost.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is embodiment of the present invention medium-long range upgrade method first embodiment schematic diagram;
Fig. 2 is embodiment of the present invention medium-long range upgrade method second embodiment schematic diagram;
Fig. 3 is the terminal device first embodiment schematic diagram of embodiment of the present invention medium-long range upgrading;
Fig. 4 is the terminal device second embodiment schematic diagram of embodiment of the present invention medium-long range upgrading;
Fig. 5 is embodiment of the present invention medium-long range upgrade-system first embodiment schematic diagram;
Fig. 6 is embodiment of the present invention medium-long range upgrade-system second embodiment schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides terminal device and the remote update system of remote upgrade method, remote upgrade, can reduce storage cost.Be described in detail respectively below.
Refer to Fig. 1, embodiment of the present invention medium-long range upgrade method first embodiment comprises:
A, startup terminal device, judge whether business application module can normally run, if business application module can not normally run, then terminal device performs following steps;
When business application module can not normally run, terminal device carries out the operation of auto-update module, and auto-update module performs step B and C.
Upgrade parameter in B, reading terminal equipment, downloads upgrading data packet to upgrade server;
Described upgrade server preserves upgrading data packet, described upgrading data packet comprises the data of new business application module, the upgrade parameter of auto-update module reading and saving in terminal device, described upgrade parameter can comprise the address of upgrade server, auto-update module connects according to upgrade parameter and upgrade server, download upgrading data packet, described upgrading data packet comprises the data of new business application module.
The data of the business application module that the data cover of the business application module that C, programming are new is original;
The data of the business application module that the data cover of the business application module that the programming of auto-update module is new is original, make terminal device normally can run business application module.
In the present embodiment, described business application module comprises operating system used when terminal device normally runs and application program, can be used in the business function and the upgrade function that realize terminal device, described auto-update module is used for realizing upgrade function, described upgrade function comprises downloads new business application module and the new business application module of programming covers original business application module, when business application module be damaged or lose file make terminal device normally can not run business application module time, auto-update module in terminal device will be run automatically, auto-update module downloads upgrading data packet and the new business application module of programming, make terminal device again can run business application module, and business application module is upgraded, for the terminal device of two business application modules is set, only need in the present embodiment to arrange a business application module and auto-update module, storage area can be saved, reduce storage cost.
Refer to Fig. 2, embodiment of the present invention medium-long range upgrade method second embodiment comprises:
101, start terminal device, judge whether business application module can normally run, if business application module can not normally run, then perform step 102, if business application module can normally run, then perform step 112;
Described terminal device comprises bootstrap module, described 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 run, its method can be that bootstrap module uses CRC (CRC, cyclicalredundancycheck) whether the data of business application module are complete, if the data integrity of business application module, namely business application module can normally run, then bootstrap module guide service application module runs, and perform step 112, if the data of business application module are imperfect, namely business application module can not normally run, then perform step 102.
102, judge whether terminal device can normally run auto-update module, if auto-update module can not normally be run, then perform step 103, if auto-update module can normally be run, then perform step 105;
If business application module can not normally run, then bootstrap module judges whether auto-update module can normally be run, whether its method can be use the data of CRC auto-update module complete, if the data integrity of auto-update module, namely auto-update module can normally be run, and bootstrap module guides the operation of auto-update module, and perform step 105, if the data of auto-update module are imperfect, namely auto-update module can not normally be run, then perform step 103.
103, wait for local upgrade, and perform step 104;
If business application module and auto-update module all can not normally be run, then terminal device cannot the new upgrading data packet of remote download upgrade the data of business application module or auto-update module, bootstrap module waits for that user manually upgrades to terminal device, user is by another equipment and terminal equipment in communication, the data of new business application module are transmitted, the data of the business application module that the data cover of the business application module that bootstrap module programming is new is original to terminal device.
104, judge whether business application module can normally run, if business application module can normally run, then terminal device carries out the operation of business application module, and perform step 112, if business application module can not normally run, then return and perform step 103, again wait for local upgrade;
Whether bootstrap module uses the data of CRC business application module complete, if data integrity, then business application module can normally run, if data are imperfect, then bootstrap module performs step 103 and again waits for local upgrade.
105, the upgrade parameter in reading terminal equipment, downloads upgrading data packet to upgrade server;
Bootstrap module guides the operation of auto-update module, upgrade parameter in auto-update module reading terminal equipment, described upgrade parameter is kept in the configuring area of terminal device, the data of described business application module and auto-update module are not all kept in configuring area, therefore the content that programming again does not affect configuring area is carried out on the data of business application module or auto-update module, namely the content of upgrade parameter is not affected, described upgrade parameter comprises URL(uniform resource locator), described upgrade server is the webserver, URL(uniform resource locator) is the address of the webserver, described upgrade parameter can also comprise username and password, in order to the checking by the webserver, described upgrading data packet comprises the data of new business application module and the data of new auto-update module, described download upgrading data packet utilizes the wget order in busybox to go to obtain upgrading data packet, described busybox is the software of integrated linux order and instrument, described wget is the order obtaining telefile in busybox, only support that the simple parsing webserver page goes to obtain the function of file, the storage area taken is less.
The data of 106, new in CRC check upgrading data packet business application module and the data of new auto-update module whether complete, if imperfect, then perform step 113, if complete, then perform step 107;
Whether auto-update module utilizes the data of the data of business application module new in CRC upgrading data packet and new auto-update module complete, after confirming the data integrity in upgrading data packet, carries out next step.
107, whether legally verify upgrading data packet, if upgrading data packet is illegal, then performs step 113 DBMS inclusion method, then perform step 108;
Described upgrading data packet also comprises the label of characterization software version, and whether auto-update module verifies described label correctly legal, after confirming that label is correctly legal, carries out next step.
108, judge whether terminal device has enough storage areas, if terminal device does not have sufficient space, then perform step 113, if terminal device has sufficient space, then perform step step 109;
Auto-update module judges whether the size of the storage area of the data of preserving business application module in terminal device is more than or equal to the size of the data of business application module new in upgrading data packet, and judges whether the size of storage area of the data of preserving auto-update module in terminal device is more than or equal to the size of the data of auto-update module new in upgrading data packet.
109, the data of the business application module that the data cover of the business application module that programming is new is original;
The data of the business application module that the data cover of the business application module that the programming of auto-update module is new is original.
110, judge that whether new business application module is complete, if complete, perform step 111, if imperfect, perform step 113;
After the data of the original business application module of the data cover of the complete new business application module of programming, whether auto-update module utilizes the data of the new business application module after CRC programming complete, if complete, perform next step, if imperfect, perform step 113
111, the data of the auto-update module that the data cover of the auto-update module that programming is new is original;
The data of the auto-update module that the data cover of the auto-update module that the programming of auto-update module is new is original.
112, judge that whether new auto-update module is complete, if complete, restart terminal device and perform step 101, if imperfect, perform step 113;
After the data of the original auto-update module of the data cover of the complete new auto-update module of programming, whether auto-update module utilizes the data of the new auto-update module after CRC programming complete, if complete, restart terminal device and perform step 101, if imperfect, then perform step 113.
113, output error message, restarts terminal device and performs step 101;
Auto-update module output error message can be outside output error message, also can be error message be recorded in terminal device.
114, terminal device carries out the operation of business application module, if business application module does not receive upgrade request, then terminates remote upgrade flow process, if business application module receives upgrade request, then performs step 115;
Described upgrade request comprises upgrade parameter, and described upgrade parameter comprises URL(uniform resource locator), and upgrade request can be sent to terminal device by Automatic Configuration Server, and described Automatic Configuration Server can be the Automatic Configuration Server defined in TR069 agreement.
115, obtain upgrade parameter, download upgrading data packet to upgrade server;
Business application module resolves the upgrade parameter in upgrade request, obtain upgrade parameter, described upgrade parameter comprises URL(uniform resource locator), described upgrade server is the webserver, URL(uniform resource locator) is the address of the webserver, described upgrading data packet comprises the data of new business application module and the data of new auto-update module, and the described webserver can be Internet Server.
The data of 116, new in CRC check upgrading data packet business application module and the data of new auto-update module whether complete, if imperfect, then perform step 124, if complete, then perform step 117;
Whether business application module utilizes the data of the data of business application module new in CRC upgrading data packet and new auto-update module complete, after confirming the data integrity in upgrading data packet, carries out next step.。
117, whether legally verify upgrading data packet, if upgrading data packet is illegal, then perform step 124, if upgrading data packet is legal, then perform step 118;
Described upgrading data packet also comprises the label of characterization software version, and whether business application module verifies described label correctly legal, after confirming that label is correctly legal, carries out next step.
118, judge whether terminal device has enough storage areas, if terminal device does not have sufficient space, then perform step 124, if terminal device has sufficient space, then perform step step 119;
Business application module judges whether the size of the storage area of the data of preserving business application module in terminal device is more than or equal to the size of the data of business application module new in upgrading data packet, and judges whether the size of storage area of the data of preserving auto-update module in terminal device is more than or equal to the size of the data of auto-update module new in upgrading data packet.
119, upgrade parameter is preserved in terminal device;
Upgrade parameter is saved in the configuring area of terminal device by business application module.
120, the data of the auto-update module that the data cover of the auto-update module that programming is new is original;
The data of the auto-update module that the data cover of the auto-update module that business application module programming is new is original.
121, judge that whether the data of new auto-update module are complete, if complete, then perform step 122, if imperfect, then perform step 124;
After the data of the original auto-update module of the data cover of the complete new auto-update module of programming, whether business application module can utilize the data of the new auto-update module after CRC programming complete, if complete, then perform next step, if imperfect, then perform step 124.
122, the data of the business application module that the data cover of the business application module that programming is new is original, and restart terminal device execution step 101;
The data of the business application module that the data cover of the business application module that business application module programming is new is original.
123, judge that whether new business application module is complete, if complete, restart terminal device and perform step 101, if imperfect, perform step 124;
After the data of the original business application module of the data cover of the complete new business application module of programming, whether business application module utilizes the data of the new business application module after CRC programming complete, if complete, restart terminal device and perform step 101, if imperfect, then perform step 124.
120, output error message, restarts terminal device and performs step 101;
Business application module output error message can be outside output error message, also can be error message be recorded in terminal device.
In this enforcement, described business application module comprises operating system used when terminal device normally runs and application program, can be used in the business function and the upgrade function that realize terminal device, described auto-update module is used for realizing upgrade function, described upgrade function comprises downloads new business application module and the new business application module of programming covers original business application module, if business application module can normally run, then terminal device runs business application module, when business application module receives upgrade request, business application module preserves upgrade parameter, download upgrading data packet and covering programming is carried out to the data of auto-update module and business application module, if business application module can not normally run, then terminal device carries out the operation of auto-update module, auto-update module reads upgrade parameter, download upgrading data packet and covering programming is carried out to the data of auto-update module and business application module, if be subject to power-off or the impact of other factors causes the interruption of programming in programming process, the situation that the present embodiment can prevent the data of business application module and auto-update module to be all damaged, improve the success ratio of upgrading, and whether the module data all carrying out utilizing CRC new after the data of the original module of the data cover of the new module of each programming is complete, make the imperfect or defectiveness of the data when business application module in upgrading data packet or auto-update module, after the complete business application module of programming or auto-update module, next step is carried out again after judging the integrality of this module, terminal device programming simultaneously defective business application module and auto-update module can be avoided, make terminal device still can run one of them module, realize upgrade function, escalation process is made to have fault-tolerance, improve the reliability of terminal device.
In other embodiments, if described upgrading data packet does not comprise the data of new auto-update module, then whether the data only verifying business application module new in upgrading data packet in step 106 and step 116 are complete; Only judge whether the size of the storage area of the data of preserving business application module in terminal device is more than or equal to the size of the data of business application module new in upgrading data packet in step 108 and step 118; Omit step 111, step 112, step 120 and step 121, and step 110 judges that new business application module is complete, restarts terminal device and performs step 101, describe the situation that upgrading data packet does not comprise the data of new auto-update module in the present embodiment in detail.
Refer to Fig. 3, terminal device first embodiment of embodiment of the present invention medium-long range upgrading comprises:
Configuring area 301, storage area in terminal device, for preserving upgrade parameter, wherein business application module 302 is not all kept in configuring area 301 with the data of auto-update module 303, therefore the content that the covering of programming again does not affect configuring area 301 is carried out on the data of business application module 302 or auto-update module 303, namely do not affect the content of upgrade parameter;
Business application module 302;
Auto-update module 303, for reading the upgrade parameter in configuring area 301, download according to upgrade parameter and comprise the upgrading data packet of the data of new business application module 302, the data of the business application module 302 that the data cover of the business application module 302 that programming is new is original; And
Bootstrap module 304, run for guide service application module 302 or auto-update module 303, the wherein operation of the first guide service application module 302 of bootstrap module 304, if business application module 302 cannot normally run, guide the operation of auto-update module 303, the judgement whether described business application module 302 normally runs is whether carry out the data of CRC check business application module 302 according to bootstrap module 304 pairs of business application modules 302 complete, if the data of CRC check business application module 302 are imperfect, business application module 302 cannot normally run.
In the present embodiment, described business application module comprises operating system used when terminal device normally runs and application program, can be used in the business function and the upgrade function that realize terminal device, described auto-update module is used for realizing upgrade function, described upgrade function comprises downloads new business application module and the new business application module of programming covers original business application module, when business application module can not normally run, bootstrap module guides the operation of auto-update module, auto-update module downloads upgrading data packet and the new business application module of programming, make terminal device again can run business application module, and business application module is upgraded, for the terminal device of backup two business application modules, the present embodiment can save storage area, reduce storage cost.
Refer to terminal device second embodiment that Fig. 4 is the upgrading of embodiment of the present invention medium-long range, more excellent, on the basis of terminal device first embodiment of remote upgrade in embodiments of the present invention, described bootstrap module 304 is further used for before guiding auto-update module 303 is run, whether the data of auto-update module 303 being carried out to CRC check auto-update module 303 are complete, if the data integrity of auto-update module 303, auto-update module 303 is then guided to run, if the data of auto-update module 303 are imperfect, then bootstrap module 304 waits for that user passes through to connect terminal device, the data of new business application module are transmitted to terminal device, the data of the business application module 302 that the data cover of the business application module 302 that bootstrap module 304 programming is new is original,
Described terminal device is when the normal operation carrying out business application module 302, when terminal device receive comprise upgrading upgrading upgrade request time, business application module 302 is further used for preserving upgrade parameter and downloads upgrading data packet according to upgrade parameter, the data that the new data cover of programming is original, described business application module 302 comprises further:
Receiver module 3021, for receiving the upgrade request comprising upgrade parameter, resolve the upgrade parameter in upgrade request and upgrade parameter passed to the first configuration module 3022, described receiver module can be TR069 module, the upgrade request that the Automatic Configuration Server defined in reception TR069 agreement sends;
First configuration module 3022, passes to the first download module 3023 for preserving in upgrade parameter to configuring area 301 and by upgrade parameter;
First download module 3023, for downloading upgrading data packet according to upgrade parameter, described upgrading data packet comprises the data of new business application module 302 and the data of new auto-update module 303, described first download module 3023 can be HTTP module, downloads upgrading data packet for access web server; And
First programming module 3024, the data of the business application module 302 that the data cover of the business application module 302 that after the data for the original auto-update module 303 of the data cover of the new auto-update module 303 of first programming, programming is new is again original, whether the data that the first programming module can also be used for the business application module 302 or auto-update module 303 utilizing CRC corresponding after the data of the complete new business application module 302 of programming or auto-update module 303 are complete;
Described auto-update module 303 comprises further:
Second configuration module 3032, passes to the second download module 3033 for the upgrade parameter that reads in configuring area 301 by upgrade parameter;
Second download module 3033, for downloading upgrading data packet according to upgrade parameter, described second download module 3033 can comprise the wget order in busybox, for obtaining upgrading data packet, busybox is the software of integrated linux order and instrument, wget is the order obtaining telefile in busybox, and only support that the simple parsing webserver page goes to obtain the function of file, the storage area taken is less; And
Second programming module 3034, for the data of the auto-update module 303 that the data cover of the auto-update module 303 that programming is new is original again after the data of the original business application module 302 of the data cover of the new business application module 302 of first programming, whether the data that the second programming module can also be used for the business application module 302 or auto-update module 303 utilizing CRC corresponding after the data of the complete new business application module 302 of programming or auto-update module 303 are complete.
In this enforcement, if business application module can normally run, when terminal device carries out the operation of business application module, when receiving upgrade request, preserve upgrade parameter, download upgrading data packet and covering programming is carried out to the data of auto-update module and business application module, if business application module can not normally run, then terminal device carries out the operation of auto-update module, read upgrade parameter, download upgrading data packet and covering programming is carried out to the data of auto-update module and business application module, and after the data of the original business application module of the data cover of the new business application module of each programming or auto-update module or auto-update module, all carry out the verification of the data integrity of this business application module or auto-update module, if be subject to power-off or the impact of other factors causes the interruption of programming in programming process, the situation that the present embodiment can prevent the data of business application module and auto-update module to be all damaged, improve the success ratio of upgrading, and due to the second download module function singleness, the storage space taken is little, the storage area that auto-update module is taken is little more than business application module, for backup two business application modules, the present embodiment effectively can save storage area, reduce storage cost.
Refer to Fig. 5, embodiment of the present invention medium-long range upgrade-system first embodiment comprises:
Automatic Configuration Server 401, for sending upgrade request to terminal device 403, described Automatic Configuration Server 401 is the Automatic Configuration Server defined in TR069 agreement, described upgrade request comprises upgrade parameter, described upgrade parameter comprises URL(uniform resource locator), and URL(uniform resource locator) is the address of the webserver;
Upgrade server 402, download for terminal device 403 for providing upgrading data packet, described upgrading data packet comprises the data of new business application module 4032, described upgrade server 402 is the webserver, terminal device obtains upgrading data packet according to a described URLs to upgrade server 402, and the described webserver can be Internet Server; And
Terminal device 403, for receiving the upgrade request of Automatic Configuration Server 401 and downloading upgrading data packet to upgrade server 402, terminal device 403 comprises:
Configuring area 4031, storage area in terminal device 403, for preserving upgrade parameter, wherein business application module 4032 is not all kept in configuring area 4031 with the data of auto-update module 4033, therefore the content that the covering of programming again does not affect configuring area 4031 is carried out on the data of business application module 4032 or auto-update module 4033, namely do not affect the content of upgrade parameter; ;
Business application module 4032, normally run for making terminal device 403, and when terminal device 403 normally runs, when receiving upgrade request, preserve upgrade parameter to configuring area 4031, upgrading data packet is downloaded to upgrade server, the data of the business application module 4032 that the data cover of the business application module 4032 that programming is new is original according to upgrade parameter;
Auto-update module 4033, for reading the upgrade parameter in configuring area 4031, downloads upgrading data packet according to upgrade parameter to upgrade server 402, the data of the business application module 4032 that the data cover of the business application module 4032 that programming is new is original; And
Bootstrap module 4034, run for guide service application module 4032 or auto-update module 4033, the wherein operation of the first guide service application module 4032 of bootstrap module 4034, if business application module 4032 cannot normally run, guide the operation of auto-update module 4033, the judgement whether described business application module 4032 normally runs is whether carry out the data of CRC check business application module 4032 according to bootstrap module 4034 pairs of business application modules 4032 complete, if the data of CRC check business application module 4032 are imperfect, business application module 302 cannot normally run.
In the present embodiment, if business application module can normally run, when terminal device carries out the operation of business application module, when receiving upgrade request, preserve upgrade parameter, download upgrading data packet and covering programming is carried out to the data of business application module, if business application module can not normally run, then terminal device carries out the operation of auto-update module, read upgrade parameter, download upgrading data packet and covering programming is carried out to the data of business application module, the storage area taken due to auto-update module is little more than business application module, for backup two business application modules, the present embodiment effectively can save storage area, reduce storage cost.
Referring to Fig. 6 is embodiment of the present invention medium-long range upgrade-system second embodiment, more excellent, on the basis of remote update system first embodiment in embodiments of the present invention, described bootstrap module 4034 is further used for before guiding auto-update module 4033 is run, whether the data of auto-update module 4033 being carried out to CRC check auto-update module 4033 are complete, if the data integrity of auto-update module 4033, auto-update module 4033 is then guided to run, if the data of auto-update module 4033 are imperfect, then bootstrap module 4034 waits for that user passes through local page or serial communication connects terminal device, the data of new business application module are uploaded to terminal device, the data of the business application module 4032 that the data cover of the business application module 4032 that bootstrap module 4034 programming is new is original,
Described terminal device is when the normal operation carrying out business application module 4032, when terminal device receive comprise upgrading upgrading upgrade request time, business application module 4032 is further used for preserving upgrade parameter and downloads upgrading data packet according to upgrade parameter, the data that the new data cover of programming is original, described business application module 4032 comprises further:
Receiver module 40321, for receiving the upgrade request that Automatic Configuration Server 401 sends, resolve the upgrade parameter in upgrade request and upgrade parameter passed to the first configuration module 40322, described receiver module is TR069 module;
First configuration module 40322, passes to the first download module 40323 for preserving in upgrade parameter to configuring area 4031 and by upgrade parameter;
First download module 40323, for downloading upgrading data packet according to upgrade parameter to upgrade server 402, described upgrading data packet comprises the data of new business application module 4032 and the data of new auto-update module 4033, described first download module 40323 is HTTP module, for access web server upgrade server 402 and download upgrading data packet; And
First programming module 40324, the data of the business application module 4032 that the data cover of the business application module 4032 that after the data for the original auto-update module 4033 of the data cover of the new auto-update module 4033 of first programming, programming is new is again original, whether the data that the first programming module can also be used for the business application module 4032 or auto-update module 4033 utilizing CRC corresponding after the data of the complete new business application module 4032 of programming or auto-update module 4033 are complete;
Described auto-update module 4033 comprises further:
Second configuration module 40332, passes to the second download module 40333 for the upgrade parameter that reads in configuring area 4031 by upgrade parameter;
Second download module 40333, for downloading upgrading data packet according to upgrade parameter to upgrade server 402, described second download module 40333 comprises the wget order in busybox, for obtaining upgrading data packet, busybox is the software of integrated linux order and instrument, wget is the order obtaining telefile in busybox, and only support that the simple parsing webserver page goes to obtain the function of file, the storage area taken is less; And
Second programming module 40334, for the data of the auto-update module 4033 that the data cover of the auto-update module 4033 that programming is new is original again after the data of the original business application module 4032 of the data cover of the new business application module 4032 of first programming, whether the data that the second programming module can also be used for the business application module 4032 or auto-update module 4033 utilizing CRC corresponding after the data of the complete new business application module 4032 of programming or auto-update module 4033 are complete.
In this enforcement, if business application module can normally run, 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, download upgrading data packet to upgrade server and covering programming is carried out to the data of auto-update module and business application module, if business application module can not normally run, then terminal device carries out the operation of auto-update module, read upgrade parameter, download upgrading data packet to upgrade server and covering programming is carried out to the data of auto-update module and business application module, and after the data of the original business application module of the data cover of the new business application module of each programming or auto-update module or auto-update module, all carry out the verification of the data integrity of this business application module or auto-update module, if be subject to power-off or the impact of other factors causes the interruption of programming in programming process, the situation that the present embodiment can prevent the data of business application module and auto-update module to be all damaged, improve the success ratio of upgrading, and due to the second download module function singleness, the storage space taken is little, the storage area that auto-update module is taken is little more than business application module, for backup two business application modules, the present embodiment effectively can save storage area, reduce storage cost.
Above to the remote upgrade method that the embodiment of the present invention provides, terminal device and the remote update system of remote upgrade are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (17)

1. a remote upgrade method, is characterized in that, comprising:
Start terminal device, judge whether business application module can normally run, if business application module can not normally run, then terminal device carries out the operation of auto-update module, and auto-update module performs and comprises:
Upgrade parameter in reading terminal equipment, download upgrading data packet to upgrade server, described upgrading data packet comprises the data of new business application module;
The data of the business application module that the data cover of the business application module that programming is new is original;
If business application module can normally run, then terminal device carries out the operation of business application module, and when business application module receives the upgrade request comprising upgrade parameter, business application module performs and comprises:
Upgrade parameter according to receiving downloads upgrading data packet to upgrade server;
The data of the business application module that the data cover of the business application module that programming is new is original.
2. remote upgrade method according to claim 1, is characterized in that: after business application module receives the upgrade request comprising upgrade parameter, and business application module preserves upgrade parameter in the configuring area of terminal device.
3. remote upgrade method according to claim 2, is characterized in that: described upgrade request is sent by Automatic Configuration Server.
4. the remote upgrade method according to any one of claims 1 to 3, it is characterized in that: described upgrade parameter comprises URL(uniform resource locator), URL(uniform resource locator) is the address of the webserver, described upgrade server is the webserver, and business application module or auto-update module obtain upgrading data packet according to the address of URL(uniform resource locator) to the webserver.
5. remote upgrade method according to claim 4, it is characterized in that: judge that the method that can business application module normally run is use the data of CRC business application module whether complete, if complete, business application module can normally run, if imperfect, business application module can not normally run.
6. remote upgrade method according to claim 5, it is characterized in that: described upgrading data packet comprises the data of new business application module and the data of new auto-update module, described business application module comprises before performing the step of the data of the original business application module of the data cover of the new business application module of programming: the data of the auto-update module that the data cover of the auto-update module that programming is new is original.
7. remote upgrade method according to claim 6, is characterized in that: described auto-update module comprises after performing the step of the data of the original business application module of the data cover of the new business application module of programming: the data of the auto-update module that the data cover of the auto-update module that programming is new is original.
8. a terminal device for remote upgrade, is characterized in that, comprising:
Start the module of terminal device;
Judge the module whether business application module can normally run;
When business application module can not normally run, trigger the module of the operation of auto-update module; Described auto-update module comprises:
The unit of the upgrade parameter in reading terminal equipment;
Download the unit of upgrading data packet from upgrade server, described upgrading data packet comprises the data of new business application module;
The unit of the data of the business application module that the data cover of the business application module that programming is new is original;
When business application module can normally run, the module of the operation of trigger business application module; Described business application module comprises:
Receive the unit comprising the upgrade request of upgrade parameter;
Download the unit of upgrading data packet to upgrade server according to the upgrade parameter received;
The unit of the data of the business application module that the data cover of the business application module that programming is new is original.
9. terminal device according to claim 8, is characterized in that: described business application module also comprises:
After receiving the upgrade request comprising upgrade parameter, preserve upgrade parameter to the unit in the configuring area of terminal device.
10. terminal device according to claim 9, is characterized in that: described upgrade request is sent by Automatic Configuration Server.
Terminal device according to any one of 11. according to Claim 8 to 10, it is characterized in that: described upgrade parameter comprises URL(uniform resource locator), URL(uniform resource locator) is the address of the webserver, described upgrade server is the webserver, and business application module or auto-update module obtain upgrading data packet according to the address of URL(uniform resource locator) to the webserver.
12. terminal devices according to claim 11, it is characterized in that: judge the module that can business application module normally run, specifically for using the data of CRC business application module whether complete, if complete, business application module can normally run, if imperfect, business application module can not normally run.
13. terminal devices according to claim 12, is characterized in that, described upgrading data packet comprises the data of new business application module and the data of new auto-update module, and described business application module also comprises:
Before the unit of the data of the original business application module of the data cover of the new business application module of programming performs, the unit of the data of the auto-update module that the data cover of the auto-update module that programming is new is original.
14. terminal devices according to claim 12, is characterized in that, described auto-update module also comprises:
Before the unit of the data of the original business application module of the data cover of the new business application module of programming performs, the unit of the data of the auto-update module that the data cover of the auto-update module that programming is new is original.
15. 1 kinds of remote update systems, is characterized in that, comprising:
Automatic Configuration Server, for sending the upgrade request comprising upgrade parameter to terminal device;
Upgrade server, for providing upgrading data packet to download for terminal device, described 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, for preserving upgrade parameter;
Business application module, for making terminal device normally run, and when receiving upgrade request, preserve upgrade parameter to configuring area, upgrading data packet is downloaded to upgrade server, the data of the business application module that the data cover of the business application module that programming is new is original according to upgrade parameter;
Auto-update module, for reading the upgrade parameter in configuring area, downloads upgrading data packet according to upgrade parameter to upgrade server, the data of the business application module that the data cover of the business application module that programming is new is original; And
Bootstrap module, runs for guide service application module or auto-update module, and wherein the operation of the first guide service application module of bootstrap module, if business application module cannot normally run, guides the operation of auto-update module.
16. upgrade-systems according to claim 15, it is characterized in that: described upgrade parameter comprises URL(uniform resource locator), URL(uniform resource locator) is the address of the webserver, described upgrade server is the webserver, and terminal device obtains upgrading data packet according to the address of URL(uniform resource locator) to the webserver.
17. upgrade-systems according to claim 16, is characterized in that: described upgrade server is Internet Server.
CN201110451126.7A 2011-12-29 2011-12-29 The terminal device of a kind of remote upgrade method, remote upgrade and remote update system Active CN102541604B (en)

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 CN102541604A (en) 2012-07-04
CN102541604B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152206A (en) * 2013-03-25 2013-06-12 安科智慧城市技术(中国)有限公司 Method and system for updating multiple devices
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
CN104601628B (en) * 2013-10-31 2018-02-13 京信通信系统(中国)有限公司 Client, service end and its remote download method
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
CN105740017B (en) * 2016-01-29 2019-06-04 贵阳海信电子有限公司 The upgrade method and device of cloud television system
CN108170495B (en) * 2018-01-29 2021-04-02 苏州浪潮智能科技有限公司 BIOS upgrading method, system, equipment and computer readable 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

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN102541604A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102541604B (en) The terminal device of a kind of remote upgrade method, remote upgrade and remote update system
US10002054B2 (en) Method and system for performing automatic system recovery
US20120117557A1 (en) Method and system for upgrading wireless data card
CN105760200A (en) Terminal device and system updating method thereof
US20130060890A1 (en) Apparatus and method for providing application execution using a cloud system
CN102687472B (en) Processing devices and methods for transmitting and receiving data
CN101355434B (en) Method and apparatus for upgrading software of multimedia remote terminal
US20160170735A1 (en) Operating system updating method by using a checklist
US20170068585A1 (en) Method and Apparatus for Recovering System Software of Intelligent Terminal
US10191810B2 (en) Mobile terminal and related repair method
CN105468395A (en) Updating method, device and system
CN104348578A (en) Data processing method and device
CN113312064A (en) Installation configuration method and device of physical machine and computer readable medium
CN108572848A (en) The bottom firmware on line upgrading method, apparatus and storage medium of interactive system
CN105786636B (en) A kind of system repair and device
JP5533935B2 (en) Software distribution system and software distribution method
CN101593122B (en) Method and device for starting embedded system
CN104036193B (en) Local cross-domain vulnerability detection method and device for application program
CN101605202B (en) Method and device for upgrading set-top box software
CN103336698A (en) Wifi equipment software upgrading method, wifi equipment and system
CN111984298B (en) Program upgrading area in flash memory, program upgrading method and system
WO2014176731A1 (en) Method and apparatus for upgrading application
CN105426272A (en) Backup method and device for application programs
CN102622254A (en) Method and system for processing television outage
KR101083229B1 (en) Method, apparatus, system, and recording medium for downloading necessary application of mobile terminal

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