Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limitDetermine the present invention.
Fig. 1 is the structural representation realizing each embodiment OTA upgrade-system of the present invention.
OTA upgrade-system includes intelligent terminal 100, server 200 and static file server 300.
Intelligent terminal 100 is for sending OTA upgrade request to server 200 and obtaining upgrading essential informationBackward static file server 300 downloads the AKU file needed.
Server 200 is for receiving the upgrade request that described intelligent terminal 100 sends, and foundation upgrade requestIn device parameter return upgrading essential information;
Static file server 300 is used for storing upgrade file, and described upgrade file includes AKU list literary compositionPart and AKU file.
Concrete, upgrade request that intelligent terminal 100 sends include device parameter, device parameter include butIt is not limited to manufacturer, unit type and firmware version number etc..
Server 100 can be OTA server, is mainly used in the OTA upgrade request of corresponding intelligent terminal.Server 200 can distribute different accounts and password as intelligence belonging to this manufacturer for different manufacturersThe authentication credentials of terminal login service device 200.In server 200, storage has different intelligent under each manufacturer wholeHold the firmware information of 100 correspondences, such as, under A manufacturer all old versions of the intelligent terminal of X-type number withAnd the firmware information of latest edition, server 200 can record above-mentioned firmware information by list mode and depositIt is stored in data base, such as, refers to but be not limited to the form of table 1, can be that each manufacturer safeguards oneList, it is also possible to for by the relevant information record of different vendor in same table.
Table 1 firmware information table
Server 200, according to the device parameter received, can inquire about the record in data base, coupling intelligenceThe latest edition that terminal is currently available.Meanwhile, in server 200, also record has each manufacturer's different intelligent eventuallyThe upgrading essential information of the different firmware version of end 100, including version number, upgrade file is in static file serviceThe download address of device 200, upgrade file size etc..It is current that server 200 matches intelligent terminal 100After available latest edition, the upgrading essential information of this version is returned to intelligent terminal 100.
Static server 300 has, by predetermined directory structure storage, the upgrade file that each manufacturer uploads.Such as figureBeing upgrade file storage bibliographic structure schematic diagram in static file server 300 shown in 10, manufacturer uploadsTime also a bibliographic structure upload, wherein each file content is described as follows:
Filelist.xml (AKU listing file): xml structured data, have recorded AKU listed files,I.e. lists of documents, have recorded completeness check code (MD5), download address and the intelligence of each AKU fileCan terminal staging region and intelligent terminal's upgrade step and mode etc.;
Changedetail.xml (statement on changes file): xml structured data, have recorded this version changeDetailed content;
Update.zip (AKU file): edition upgrading file, the most concrete AKU file, Ke YiyouMultiple, file name to keep consistent with the lists of documents in filelist.
Wherein filelist.xml is in addition to title can not change, content can according to the needs of different vendor's equipment,The form of self-defined needs and content.Therefore, manufacturer can customize different filelist.xml as requiredWith the intelligent terminal that adaptation is different, the format analysis filelist.xml that intelligent terminal 100 can set according to manufacturerFile.Filelist.xml file is the guiding file in whole OTA escalation process, intelligent terminal's foundationContent described in filelist.xml downloads AKU file from static file server, depends on again after downloading successfullyThe content recorded according to filelist.xml carries out firmware upgrade.
After intelligent terminal 100 downloads to filelist.xml, filelist.xml file can be resolved, according to filelistIn AKU download address, download corresponding AKU file according to needing, and according to the school in filelistTest code and verify downloading successful file.
After intelligent terminal 100 completes verifying work, download result is reported server 200.If intelligent terminalSuccess is downloaded institute's AKU file in need and is completed completeness check, then server 200 issues literLevel strategy carries out firmware upgrade with indicating intelligent terminal.Described escalation policy by factory pre-set, including but notIt is limited to Upgrade Now, upgrades after Backup Data, prompts the user whether the strategies such as upgrading.
It will be appreciated by persons skilled in the art that owing to manufacturer can constantly update its firmware version, thereforeThe information of the upgrade file of storage is sent so that server is by static server 300 timing to server 200The firmware information of its storage of Shi Gengxin.
The OTA upgrade-system that the present invention provides, stores upgrade file static file server and makes static clothesBusiness device becomes body frame structure in system, and server only need to send upgrading after receiving intelligent terminal's upgrade requestEssential information and without being supplied to subsequent upgrade file download, improve server concurrency performance in a large number.WithTime, upgrade file is stored by predetermined directory structure, i.e. specification file storage, facilitate manufacturer upload withAnd file management, also provide customizable OTA upgrade boot file simultaneously, different vendor can be metThe customized demand of equipment.
The intelligent terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up descriptionIn, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for havingIt is beneficial to the explanation of the present invention, itself does not has specific meaning.Therefore, " module " can mix with " parts "Close ground to use.
Intelligent terminal can implement in a variety of manners.Such as, the terminal described in the present invention can include(individual digital helps for such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDAReason), PAD (panel computer), PMP (portable media player), guider, wearable device,Consolidating of intelligent vehicle-carried etc. mobile terminal and such as numeral TV, desk computer, Smart Home etc.Determine terminal.Hereinafter it is assumed that intelligent terminal is mobile terminal.However, it will be understood by those skilled in the art thatIt is that, in addition to being used in particular for the element of mobile purpose, structure according to the embodiment of the present invention also canEnough it is applied to the intelligent terminal of fixed type.
Fig. 2 is the hardware architecture diagram realizing the present invention one optional intelligent terminal of each embodiment.
Intelligent terminal 100 can include that wireless communication unit 110, A/V input block 120, user input listUnit 130, sensing unit 140, output unit 150, memorizer 160, controller 180 and power subsystem 190Etc..Fig. 2 shows the intelligent terminal with various assembly, it should be understood that be not required for implementingAll assemblies illustrated.Can alternatively implement more or less of assembly.Will be discussed in more detail below intelligenceThe element of energy terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows intelligent terminal 100 with wirelessRadio communication between communication system or network.Such as, wireless communication unit can include broadcast receptionModule 111, mobile communication module 112, wireless Internet module 113 and at least the one of short range communication module 114Individual.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receive broadcast singal and/Or broadcast related information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast control servicesDevice can be to generate and send generation before broadcast singal and/or the server of broadcast related information or receptionBroadcast singal and/or broadcast related information and send it to the server of terminal.Broadcast singal is permissibleIncluding TV broadcast singal, radio signals, data broadcasting signal etc..And, broadcast singal canTo farther include the broadcast singal combined with TV or radio signals.Broadcast related information can alsoThere is provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mouldBlock 112 receives.Broadcast singal can exist in a variety of manners, and such as, it can be wide with digital multimediaBroadcast the electronic program guides (EPG) of (DMB), the electronic service guidebooks of digital video broadcast-handheld (DVB-H)Etc. (ESG) form and exist.Broadcast reception module 111 can be by using various types of broadcast systemSystem receives signal broadcast.Especially, broadcast reception module 111 can by use such as multimedia broadcasting-Ground (DMB-T), DMB-satellite (DMB-S), DVB-hand-held (DVB-H),The Radio Data System of forward link media (MediaFLO@), received terrestrial digital broadcasting integrated serviceEtc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcast reception module 111 may be constructed such thatIt is adapted to provide for the various broadcast systems of broadcast singal and above-mentioned digit broadcasting system.Via broadcast reception mouldBroadcast singal that block 111 receives and/or broadcast related information can be stored in memorizer 160 (or other classThe storage medium of type) in.
Mobile communication module 112 send radio signals to base station (such as, access point, node B etc.),In exterior terminal and server at least one and/or receive from it radio signal.Such radioSignal can include voice call signal, video calling signal or according to text and/or Multimedia MessageThe various types of data sent and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of intelligent terminal.This module can internal orExternally it is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (nothingLine LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (at a high speedDownlink packets accesses) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technologyIncluding bluetooth TM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTM etc..
A/V input block 120 is used for receiving audio frequency.A/V input block 120 can include mike 122,Mike 122 can in telephone calling model, logging mode, speech recognition mode etc. operational mode warpReceived sound (voice data) by mike, and can be voice data by such acoustic processing.ProcessAfter audio frequency (voice) data can be converted in the case of telephone calling model can be via mobile communication mouldBlock 112 is sent to the form output of mobile communication base station.Mike 122 can implement various types of noiseEliminate (or suppression) algorithm to eliminate the noise that (or suppression) produces during receiving and send audio signalOr interference.
User input unit 130 can generate key input data to control intelligence according to the order of user's inputThe various operations of terminal.User input unit 130 allows user to input various types of information, and permissibleIncluding keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electricityThe sensitive component of change held etc.), roller, rocking bar etc..Especially, when touch pad as a layerWhen being superimposed upon on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of intelligent terminal 100, (such as, intelligent terminal 100 open orClosed mode), the position of intelligent terminal 100, user is for the contact (that is, touch input) of intelligent terminal 100Presence or absence, the orientation of intelligent terminal 100, the acceleration or deceleration of intelligent terminal 100 move and direction etc.,And generate the order or signal being used for controlling the operation of intelligent terminal 100.Such as, as intelligent terminal 100When being embodied as sliding-type mobile phone, it is to engage on or off that sensing unit 140 can sense this sliding-type numberClose.It addition, sensing unit 140 can detect power subsystem 190 whether provide electric power whether with external device (ED)Couple.
Output unit 150 can include display unit 151 etc..
Display unit 151 may be displayed on the information processed in intelligent terminal 100.Such as, intelligent terminal is worked as100 when being in telephone calling model, display unit 151 can show and call or other communicate (such as, civilianThis information receiving and transmitting, multimedia file download etc.) relevant user interface (UI) or graphic user interface(GUI).When intelligent terminal 100 is in video calling pattern or image capture mode, display unit 151Can show capture image and/or the image of reception, illustrate video or image and the UI of correlation function orGUI etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another to form touch screen time, aobviousShow that unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display(LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexibility showShow at least one in device, three-dimensional (3D) display etc..Some in these display may be constructed such thatTransparence is to allow user to watch from outside, and this is properly termed as transparent display, typical transparent displayCan for example, TOLED (transparent organic light emitting diode) display etc..According to the specific enforcement wantedMode, intelligent terminal 100 can include two or more display units (or other display device), such as,Intelligent terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen canFor detecting touch input pressure and touch input position and touch input area.
Memorizer 160 can store the process performed by controller 180 and control the software program etc. of operationDeng, or can temporarily store oneself through output maybe will export data (such as, telephone directory, message,Still image, video etc.).And, memorizer 160 can store about when touch is applied to touch screenThe vibration of the various modes of output and the data of audio signal.
Memorizer 160 can include the storage medium of at least one type, described storage medium include flash memory,Hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device(RAM), static random-access memory (SRAM), read only memory (ROM), electrically erasableRead only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, lightDish etc..And, intelligent terminal 100 can be connected the storage function performing memorizer 160 with by networkNetwork storage device cooperation.
Controller 180 generally controls the overall operation of intelligent terminal.Such as, controller 180 performs and voiceControl that call, data communication, video calling etc. are relevant and process.Controller 180 can perform patternIdentifying processing, with the handwriting input performed on the touchscreen or picture are drawn input be identified as character orImage.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides behaviourMake the suitable electric power needed for each element and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any groupThe computer-readable medium closed is implemented.Implementing for hardware, embodiment described herein can pass throughUse application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device(DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controlDevice, microcontroller, microprocessor, it is designed to perform in the electronic unit of function described herein extremelyFew one is implemented, and in some cases, such embodiment can be implemented in controller 180.RightImplementing in software, the embodiment of such as process or function can perform at least one function or behaviour with permissionThe single software module made is implemented.Software code can be by writing with any suitable programming languageSoftware application (or program) is implemented, and software code can be stored in memorizer 160 and by controllingDevice 180 performs.
So far, oneself is through describing intelligent terminal according to its function.Below, for the sake of brevity, will describeVarious types of intelligent terminal of such as folded form, board-type, oscillating-type, sliding-type intelligent terminal etc.In sliding-type intelligent terminal as example.Therefore, the present invention can be applied to any kind of intelligence eventuallyEnd, and it is not limited to sliding-type intelligent terminal.
As shown in Figure 2 intelligent terminal 100 may be constructed such that and utilizes via frame or packet transmission dataThe most wired and wireless communication system and satellite-based communication system operate.
The communication system being wherein operable to according to the intelligent terminal of the present invention is described referring now to Fig. 3.
Such communication system can use different air interfaces and/or physical layer.Such as, by communication systemThe air interface that system uses includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA(CDMA) move lead to UMTS (UMTS) (especially, Long Term Evolution (LTE)), the whole worldCommunication system (GSM) etc..As non-limiting example, explained below relates to cdma communication system, butIt is that such teaching is equally applicable to other type of system.
With reference to Fig. 3, cdma wireless communication system can include multiple intelligent terminal 100, multiple base station(BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured toInterface is formed with Public Switched Telephony Network (PSTN) 290.MSC280 is also structured to and can be via returningJourney circuit is couple to the BSC275 of base station 270 and forms interface.If the interface that back haul link can be known according to GanjiIn any one construct, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL,ADSL or xDSL.It will be appreciated that system as shown in Figure 3 can include multiple BSC2750.
Each BS270 can service one or more subregion (or region), by multidirectional antenna or sensing certain partyTo antenna cover each subregion radially away from BS270.Or, each subregion can be by for dividingTwo or more antennas that collection receives cover.Each BS270 may be constructed such that support multiple frequencies distribution,And the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base stationTransceiver subsystem (BTS) or other equivalent terms.In this case, term " base station " can be usedIn broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be referred to as multiple cellular station.
As shown in Figure 3, broadcast singal is sent in system the intelligence operated by broadcsting transmitter (BT) 295Can terminal 100.Broadcast reception module 111 is arranged on intelligent terminal 100 and sentences reception as shown in Figure 2The broadcast singal sent by BT295.In fig. 3 it is shown that several global positioning systems (GPS) satellite 300.Satellite 300 helps to position at least one in multiple intelligent terminal 100.
In figure 3, depict multiple satellite 300, it is understood that be, it is possible to use any number of defendStar obtains useful location information.GPS module 115 is generally configured to and satellite 300 as shown in Figure 2Coordinate the location information wanted with acquisition.Substitute GPS tracking technique or outside GPS tracking technique, canTo use other technology of the position that can follow the tracks of intelligent terminal.It addition, at least one gps satellite 300 canOptionally or additionally to process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives from various intelligent terminal's 100Reverse link signal.Intelligent terminal 100 generally participates in call, information receiving and transmitting communicates with other type of.SpecialThe each reverse link signal determining base station 270 reception is processed in specific BS270.The data obtainedIt is forwarded to the BSC275 being correlated with.BSC provides call resource distribution and the soft handover included between BS270The mobile management function of the coordination of process.The data received also are routed to MSC280 by BSC275, itsExtra route service for forming interface with PSTN290 is provided.Similarly, PSTN290 withMSC280 forms interface, MSC Yu BSC275 forms interface, and BSC275 correspondingly controls BS270Forward link signals to be sent to intelligent terminal 100.
Based on above-mentioned intelligent terminal hardware structure and communication system, each embodiment of the inventive method is proposed.
As shown in Figure 4, first embodiment of the invention proposes a kind of OTA upgrade method, is applied to intelligent terminal,Described method includes:
S400, send upgrade request to server, wherein, described upgrade request comprises described intelligence eventuallyEnd device parameter;
Specifically, when the upgrade command that intelligent terminal for reception to user triggers, detect equipment of itself parameter,Include but not limited to manufacturer, unit type and firmware version number etc., using above-mentioned parameter as packet,A part as upgrade request sends to server with upgrade request.
Please also refer to be that the intelligent terminal of various embodiments of the present invention upgrades interface one schematic diagram shown in Fig. 9, canTo understand, intelligent terminal can carry out firmware upgrade in several ways, and when user enters upgrading interfaceDuring selection upgrading, intelligent terminal can be to eject choice box to prompt the user whether in the way of selecting acquiescence to beOTA upgrades mode, and the menu button that user can eject on interface by clicking intelligent terminal to upgrade triggersOTA upgrade command.
Certainly, user can also be by pressing the upper physical button arranged of intelligent terminal by default pressing modeTriggering upgrade command, such as, press power key and home key etc. with duration, concrete mode can be set by manufacturer,Can also trigger upgrade command by the phonetic order preset, the present invention is without limitation.
S410, receive the upgrading essential information that described server returns according to described device parameter, according to instituteState upgrading essential information and download corresponding AKU listing file to static file server;
Specifically, server, according to the device parameter received, can inquire about the record in data base,Join the latest edition that intelligent terminal is currently available, the upgrading essential information of this version is returned to intelligent terminal.
This upgrading essential information comprises the version number of firmware, upgrade file under static file serverThe information such as set address and upgrade file size.Intelligent terminal for reception, to after above-mentioned upgrading essential information, solvesAnalysis obtains the upgrade file download address at static file server, further, is filelist.xml literary compositionThe download address that part arrives at static file server, intelligent terminal can be from static file according to this download addressServer downloads to corresponding filelist.xml file of this time upgrading.
It will be appreciated by persons skilled in the art that and substantially and determine this time liter when intelligent terminal resolves upgradingLevel file size time, for guaranteeing to upgrade successfully, intelligent terminal can detect simultaneously current system can with storageCapacity, if the available storage size less than this upgrade file or the size less than this upgrade fileCertain threshold values, then intelligent terminal can point out user to delete partial document by pop-up mode, when storage is heldWhen measuring satisfied requirement, prompting user can proceed with upgrading.
S420, resolve described AKU listing file to obtain AKU file download address;
S430, according to described download address download described AKU file.
Specifically, filelist.xml file is to be uploaded according to each intelligent terminal and each firmware version by manufacturerTo an xml structured data of static file server, which describe the required download of this time upgrading intelligent terminalAKU listed files, i.e. lists of documents, and AKU file download address.Intelligent terminal resolvesThe AKU listing file received obtains the download address of AKU file.Upgrading needs the liter of upgrading every timeLevel APMB package is not limited to one, and its quantity depends on firmware version.Therefore, herein, under AKU fileSet address can have multiple.AKU file is also stored in the zones of different in static file server, intelligenceTerminal can download required AKU file from static file server according to download address.
It should be noted that filelist.xml file is the guiding file in whole OTA escalation process, intelligenceTerminal downloads AKU file according to the content described in filelist.xml from static file server.
Further, before step S400, described method is further comprising the steps of:
By server described in default account and cryptographic acess, obtain and service described in OTA escalation processThe access token number of device and message encryption mode and encryption key;
Send to server and carry described encryption data bag and the upgrade request of described access token number.
Specifically, before sending upgrade request to server, necessarily deposit between intelligent terminal and server(both can be below with the legitimacy and download permission guaranteeing intelligent terminal's download permission at an authentication processCarry the upgrade file uploaded of which manufacturer).Therefore, server 200 can be that different manufacturers distributes notSame account and password are as the authentication credentials of intelligent terminal's login service device belonging to this manufacturer.Manufacturer canDirectly this account and password are built in intelligent terminal, when receiving the upgrade command of user, directlyObtain and take this account number cipher access server initiation authentication process.After server receives authentication request, look intoAsk in data base and whether there is this account, the most then inquire about password corresponding to this account with intelligence the most eventuallyThe password match that end sends.If account exists and the match is successful, then authenticate successfully.Server is to intelligence eventuallyEnd issues the TokenId (access token number) in this follow-up interaction and message encryption mode and encryptionKey.Herein, TokenId can by server according to server address, user profile (account number cipher),Intelligent terminal IP address and current time stamp generate.Message encryption mode can be RSA, DES, RC2,RC4, AES etc., encryption key arranged by server and intelligent terminal, for follow-up mutual time packetEncryption and deciphering.
Corresponding, described step S400 specifically includes:
According to described cipher mode, described encryption key is used to be encrypted to obtain to described device parameterEncryption data bag;
Send to server and carry described encryption data bag and the upgrade request of described access token number.
Concrete, after having arranged cipher mode and encryption key, intelligent terminal packs equipment of itself ginsengDuring number, described device parameter will be encrypted, after arrangement by predetermined cipher mode and encryption keyObtain the packet of encryption, using this packet and above-mentioned TokenId as in the message entrained by upgrade requestHold, send together to server.
The OTA upgrade method that the present invention provides, comprises intelligent terminal parameter by sending to serverUpgrade request, receive the upgrading essential information that described server returns, foundation according to described device parameterDescribed upgrading essential information downloads corresponding AKU listing file to static file server, resolves describedAKU listing file, to obtain AKU file download address, downloads described AKU file.Thus, letterChange the interaction of intelligent terminal and server, and, upgrade file is stored to static file serviceDevice, the OTA upgrading provided by downloading manufacturer guides OTA escalation process to make the intelligent terminal can be voluntarilyDownload AKU file, both met the demand of different vendor, and improve the concurrency of server the most in a large numberEnergy.
Refer to Fig. 5, for the schematic flow sheet of the OTA method that second embodiment of the invention provides.SecondIn embodiment, described OTA method includes S500~S560, wherein, in S500~S530 and first embodimentS400~S430 similar, the present invention repeats no more similar portion at the present embodiment.Specifically:
S500, send upgrade request to server, wherein, described upgrade request comprises described intelligence eventuallyEnd device parameter;
S510, receive the upgrading essential information that described server returns according to described device parameter, according to instituteState upgrading essential information and download corresponding AKU listing file to static file server;
S520, resolve described AKU listing file with AKU file download address;
S530, according to described download address download described AKU file;
S540, resolve the check code that described AKU listing file is corresponding to obtain described AKU file;
S550, according to the check code that described AKU file is corresponding, described AKU file is verified;
S560, foundation check results send downloads result to described server.
Specifically, filelist.xml file have recorded the completeness check code i.e. MD5 of each AKU file, there is obstacle during for guaranteeing the integrity of each AKU file downloaded to avoid subsequent upgrade in code,Intelligent terminal resolves and obtains the MD5 code that in filelist.xml file, each AKU file of record is corresponding,Verify to confirm AKU literary composition to the one or more AKU files downloaded according to the MD5 code obtainedPart is complete.When completing the verification to each AKU file, intelligent terminal sends out according to check resultsSending download result to server, if complete verification success, then downloading result is that successfully server issues literLevel strategy carries out firmware upgrade with indicating intelligent terminal.Described escalation policy by factory pre-set, including but notIt is limited to Upgrade Now, upgrades after Backup Data, prompts the user whether the strategies such as upgrading.If verifying unsuccessfully,Then think failed download, after server receives, upgrading essential information can be re-issued to intelligent terminal, withTime remind intelligent terminal restart upgrading flow process, re-download filelist.xml file and carry out subsequent step.
The OTA upgrade method that the present invention provides, is carried out completely the AKU file downloaded by MD5 codeProperty verification, and will download result notice server.Ensure that will not be because of under AKU file in escalation processCarry mistake or disappearance and cause OTA upgrade unsuccessfully, simultaneously server also can immediately understand upgrade dynamic so thatPrompting intelligent terminal restarts OTA upgrading flow process, it is ensured that OTA success.
Refer to Fig. 6, for the schematic flow sheet of the OTA method that third embodiment of the invention provides.The 3rdIn embodiment, described OTA method includes S600~S660, wherein, in S600~S650 and the second embodimentS500~S550 similar, the present invention repeats no more similar portion at the present embodiment.Specifically:
S600, send upgrade request to server, wherein, described upgrade request comprises described intelligence eventuallyEnd device parameter;
S610, receive the upgrading essential information that described server returns according to described device parameter, according to instituteState upgrading essential information and download corresponding AKU listing file to static file server;
S620, resolve described AKU listing file with AKU file download address;
S630, according to described download address download described AKU file;
S640, resolve the check code that described AKU listing file is corresponding to obtain described AKU file,
S650, according to the check code that described AKU file is corresponding, described AKU file is verified;
S660, foundation check results send downloads result to described server;
S670, receive the escalation policy of the transmission of described server.
Specifically, after server receives the download result that intelligent terminal sends, if downloading successfully, thenServer issues escalation policy and carries out firmware upgrade with indicating intelligent terminal.Described escalation policy is pre-by manufacturerPut, include but not limited to Upgrade Now, upgrade after Backup Data, prompt the user whether the strategies such as upgrading.
S680, resolve described AKU listing file to obtain described upgrade step and described upgrading mode;
S690, according to described escalation policy, described upgrade step and described upgrading mode, by downloadingDescribed AKU document upgrading described in the firmware of intelligent terminal.
Specifically, have recorded intelligent terminal's upgrade step and upgrading mode in filelist.xml file, intelligence is eventuallyEnd resolves filelist.xml file and obtains described upgrade step and upgrading mode, according to described escalation policy, instituteState upgrade step and described upgrading mode, by intelligence described in the described AKU document upgrading of download eventuallyThe firmware of end.Such as, described upgrade step and upgrading mode are it may be that the first step: format intelligence eventuallyThe data of a certain subregion in end, second step: write the data of a certain AKU file in this subregion, theThree steps ... etc..Preferably, filelist.xml file can also include the upgrade area of intelligent terminal, i.e.Subregion in described above, filelist.xml file can be recorded during upgrading need to carry out erasable/format/The subregion of replacement operation and need not the region of change, so that intelligent terminal completes OTA upgrading fasterFlow process.
The OTA upgrade method that the present invention provides, by providing escalation policy, upgrade step to intelligent terminalAnd upgrading mode, make intelligent terminal can complete OTA upgrading under OTA guides the guiding of file voluntarilyFlow process, and without frequent and server interaction, decrease the burden of server, also accelerate intelligent terminalOTA upgrade flow process.
The present invention further provides a kind of OTA update device.
The OTA update device provided for fourth embodiment of the invention with reference to Fig. 7, Fig. 7, is applied to intelligence eventuallyEnd 100.
The present embodiment one OTA update device, described device includes:
Request module 700, for sending upgrade request to server, wherein, comprises in described upgrade requestDescribed intelligent terminal parameter;
Specifically, when request module 700 receives the upgrade command that user triggers, detecting equipment of itself ginsengNumber, includes but not limited to manufacturer, unit type and firmware version number etc., using above-mentioned parameter as dataBag, the part as upgrade request sends to server with upgrade request.
Please also refer to the intelligent terminal that Fig. 9 is shown various embodiments of the present invention upgrade interface one schematic diagram, canTo understand, intelligent terminal can carry out firmware upgrade in several ways, and when user enters upgrading interfaceWhen selecting upgrading, intelligent terminal can be in the way of ejection choice box be to prompt the user whether to select acquiescenceI.e. OTA upgrades mode, and the menu button that user can eject on interface by clicking intelligent terminal to upgrade touchesSend out upgrade command.
Certainly, user can also be by pressing the upper physical button arranged of intelligent terminal by default pressing modeTriggering upgrade command, such as, press power key and home key etc. with duration, concrete mode can be set by manufacturer,Can also trigger upgrade command by the phonetic order preset, the present invention is without limitation.
Receiver module 710, the upgrading returned according to described device parameter for receiving described server is believed substantiallyBreath;
Download module 720, for downloading correspondence according to described upgrading essential information to static file serverAKU listing file;
Specifically, server, according to the device parameter received, can inquire about the record in data base,Join the latest edition that intelligent terminal is currently available, the upgrading essential information of this version is returned to intelligent terminal.
This upgrading essential information comprises the version number of firmware, upgrade file under static file serverThe information such as set address and upgrade file size.After receiver module 710 receives above-mentioned upgrading essential information,Resolve and obtain the upgrade file download address at static file server, further, be filelist.xmlThe download address that file arrives at static file server, download module 720 can be from static state according to this download addressFile server downloads to corresponding filelist.xml file of this time upgrading.
It will be appreciated by persons skilled in the art that and substantially and determine this when receiver module 710 resolves upgradingDuring the size of upgrade file, for guaranteeing to upgrade successfully, intelligent terminal can detect current system simultaneously can be with depositingStorage capacity, if available storage less than the size of this upgrade file or is less than the big of this upgrade fileLittle certain threshold values, then intelligent terminal can point out user to delete partial document by pop-up mode, works as storageCapacity meets when requiring, prompting user can proceed with upgrading.
Parsing module 730, is used for resolving described AKU listing file to obtain AKU file download groundLocation;
Download module 720 is additionally operable to download described AKU file according to described download address.
Specifically, filelist.xml file is to be uploaded according to each intelligent terminal and each firmware version by manufacturerTo an xml structured data of static file server, which describe the required download of this time upgrading intelligent terminalAKU listed files, i.e. lists of documents, and AKU file download address.Parsing module 730 solvesThe AKU listing file that analysis receives obtains the download address of AKU file.Upgrading needs upgrading every timeAKU file is not limited to one, and its quantity depends on firmware version.Therefore, herein, AKU fileDownload address can have multiple.AKU file is also stored in the zones of different in static file server,Download module 720 can be according to downloading required AKU file in download address static file server.
It should be noted that filelist.xml file is the guiding file in whole OTA escalation process, downloadModule 720 downloads AKU file according to the content described in filelist.xml from static file server.
Further, described device also includes:
Authentication module, for by server described in default account and cryptographic acess, obtains OTA upgradingDuring the access token number of described server and message encryption mode and encryption key;
Specifically, before sending upgrade request to server, necessarily deposit between intelligent terminal and server(both can be below with the legitimacy and download permission guaranteeing intelligent terminal's download permission at an authentication processCarry the upgrade file uploaded of which manufacturer).Therefore, server 200 can be that different manufacturers distributes notSame account and password are as the authentication credentials of intelligent terminal's login service device belonging to this manufacturer.Manufacturer canDirectly this account and password are built in intelligent terminal, when receiving the upgrade command of user, schoolTest module and directly obtain this account number cipher access server initiation authentication process.Server receives authentication pleaseAfter asking, whether inquiry data base exists this account, the most then whether inquires about password corresponding to this accountThe password match sent with correction verification module.If account exists and the match is successful, then authenticate successfully.ServerThe TokenId (access token number) in this follow-up interaction and message encryption side is issued to correction verification moduleFormula and encryption key.Herein, TokenId can be by server according to server address, user profile (accountNumber password), intelligent terminal IP address and current time stamp generate.Message encryption mode can be RSA,DES, RC2, RC4, AES etc., encryption key is arranged with intelligent terminal by server, for follow-up friendshipThe encryption of packet and deciphering time mutually.
Corresponding, described request module 700 specifically includes:
Ciphering unit, for according to described cipher mode, uses described encryption key to described device parameterIt is encrypted to obtain encryption data bag;
Transmitting element, carries described encryption data bag and described access token number for sending to serverUpgrade request.
Concrete, after having arranged cipher mode and encryption key, ciphering unit packing equipment of itself ginsengDuring number, described device parameter will be encrypted, after arrangement by predetermined cipher mode and encryption keyObtain the packet of encryption, transmitting element using this packet and above-mentioned TokenId as entrained by upgrade requestMessage content, send together to server.
The OTA update device that the present invention provides, comprises intelligence eventually by request module 700 to server transmissionThe upgrade request of end device parameter, receiver module 710 receives described server and returns according to described device parameterUpgrading essential information, download module 720 according to described upgrading essential information to static file server downloadCorresponding AKU listing file, parsing module 730 resolves described AKU listing file to obtain AKU literary compositionPart download address, download module 720 downloads described AKU file.Thus, simplify intelligent terminal and clothesThe interaction of business device, and, upgrade file is stored to static file server, by downloading manufacturerThe OTA upgrading provided guides OTA escalation process to make intelligent terminal can download AKU file voluntarily, bothMeet the demand of different vendor, improve the concurrency performance of server the most in a large number.
Refer to Fig. 8, for the module diagram of the OTA update device that fifth embodiment of the invention provides.?In 5th embodiment, differing only in of described OTA update device and the 4th embodiment, described AKUListing file also includes the check code that described upgrade file bag is corresponding, and it is described that parsing module 730 is additionally operable to parsingThe check code that AKU listing file is corresponding to obtain described AKU file.In the present embodiment, describedOTA update device also includes
Correction verification module 810, for the check code corresponding according to described AKU file to AKU each describedFile verifies;
Sending module 820, downloads result to described server for sending according to check results.
Specifically, filelist.xml file have recorded the completeness check code i.e. MD5 of each AKU file, there is obstacle during for guaranteeing the integrity of each AKU file downloaded to avoid subsequent upgrade in code,Parsing module 730 resolves and obtains the MD5 that in filelist.xml file, each AKU file of record is correspondingCode, the one or more AKU files downloaded are verified by correction verification module 810 according to the MD5 code obtainedTo confirm that AKU file is complete.When completing the verification to each AKU file, sending module820 foundation check results transmission download results, to server, if complete verification success, then download result for becomingMerit, server issues escalation policy and carries out firmware upgrade with indicating intelligent terminal.Described escalation policy is by factoryBusiness is preset, includes but not limited to Upgrade Now, upgrades after Backup Data, prompts the user whether the plans such as upgradingSlightly.If verifying unsuccessfully, then it is assumed that failed download, after server receives, the basic letter of upgrading can be re-issuedBreath, to intelligent terminal, is reminded intelligent terminal to restart upgrading flow process simultaneously, is re-downloaded filelist.xml file alsoCarry out subsequent step.
The OTA update device that the present invention provides, correction verification module 810 is civilian to the AKU of download by MD5 codePart carries out completeness check, and will be downloaded result notice server by sending module 820.Ensure that and upgradedOTA will be caused to upgrade unsuccessfully because of AKU file download mistake or disappearance in journey, server is also simultaneouslyCan immediately understand upgrading dynamically so that prompting intelligent terminal restarts OTA upgrading flow process, it is ensured that OTA success.
Sixth embodiment of the invention further provides for another kind of OTA update device.In the sixth embodiment,Described OTA upgrading differs only in, in sixth embodiment with the 5th embodiment:
Receiver module 710 is additionally operable to receive the escalation policy of the transmission of described server;
Specifically, after server receives the download result that intelligent terminal sends, if downloading successfully, thenServer issues escalation policy and carries out firmware upgrade with indicating intelligent terminal.Described escalation policy is pre-by manufacturerPut, include but not limited to Upgrade Now, upgrade after Backup Data, prompt the user whether the strategies such as upgrading.
Parsing module 730 is additionally operable to resolve described AKU listing file to obtain described upgrade step and instituteState upgrading mode;
Download module 720 is additionally operable to according to described escalation policy, described upgrade step and described upgrading sideFormula, by the firmware of intelligent terminal described in the described AKU document upgrading of download.
Specifically, filelist.xml file have recorded intelligent terminal's upgrade step and upgrading mode, resolve mouldBlock 730 resolves filelist.xml file and obtains described upgrade step and upgrading mode, and download module 720 is according to instituteState escalation policy, described upgrade step and described upgrading mode, by the described AKU file downloadedUpgrade the firmware of described intelligent terminal.Such as, described upgrade step and upgrading mode are it may be that the first step:Format the data of a certain subregion in intelligent terminal, second step: in this subregion, write a certain AKU literary compositionThe data of part, the 3rd step ... etc..Preferably, filelist.xml file can also include intelligent terminal'sUpgrade area, the most described above in subregion, filelist.xml file can be recorded needs during upgrading and carry outThe subregion of erasable/formatting/replacement operation and need not the region of change, so that intelligent terminal is the completeestBecome OTA upgrading flow process.
The OTA update device that the present invention provides, is received by receiver module 710 and parsing module 730 or is solvedEscalation policy, upgrade step and the upgrading mode that analysis server provides to intelligent terminal, makes download module720 can complete OTA upgrading flow process under OTA guides the guiding of file voluntarily, and without frequent and serviceDevice is mutual, decreases the burden of server, also accelerates the OTA upgrading flow process of intelligent terminal.
It should be noted that in this article, term " include ", " comprising " or its any other variantBe intended to comprising of nonexcludability so that include the process of a series of key element, method, article orPerson's device not only includes those key elements, but also includes other key elements being not expressly set out, or alsoIncluding the key element intrinsic for this process, method, article or device.In the feelings not having more restrictionUnder condition, statement " including ... " key element limited, it is not excluded that include this key element process,Method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-mentionedEmbodiment method can add the mode of required general hardware platform by software and realize, naturally it is also possible to logicalCross hardware, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the present invention'sThe part that prior art is contributed by technical scheme the most in other words can be with the form body of software productRevealing to come, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD)In, including some instructions with so that a station terminal equipment (can be mobile phone, computer, server,Air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, everyUtilize equivalent structure or equivalence flow process conversion that description of the invention and accompanying drawing content made, or directly orConnect and be used in other relevant technical fields, be the most in like manner included in the scope of patent protection of the present invention.