CN106250143A - The OTA upgrade method of a kind of wearable device and device - Google Patents

The OTA upgrade method of a kind of wearable device and device Download PDF

Info

Publication number
CN106250143A
CN106250143A CN201610607384.2A CN201610607384A CN106250143A CN 106250143 A CN106250143 A CN 106250143A CN 201610607384 A CN201610607384 A CN 201610607384A CN 106250143 A CN106250143 A CN 106250143A
Authority
CN
China
Prior art keywords
file
system version
differential file
version
wearable device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610607384.2A
Other languages
Chinese (zh)
Inventor
陈理
姚曙光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Lianluo Interactive Information Technology Co Ltd
Original Assignee
Hangzhou Lianluo Interactive Information Technology 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 Hangzhou Lianluo Interactive Information Technology Co Ltd filed Critical Hangzhou Lianluo Interactive Information Technology Co Ltd
Priority to CN201610607384.2A priority Critical patent/CN106250143A/en
Publication of CN106250143A publication Critical patent/CN106250143A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application discloses the OTA upgrade method of a kind of wearable device and the OTA update device of a kind of wearable device.Wherein, the OTA upgrade method of described wearable device, including: obtain system version configuration file from server end;Obtain local system version information;From described system version configuration file, the differential file of correspondence is obtained according to current system version information;Perform described differential file and local system is carried out edition upgrading.Use said method, can solve the problem that when between the current system version of smart machine and highest version, version number differs bigger, need repeatedly to download and upgrade the problem that just can be upgraded to highest version, reduce the interaction time between server end, decrease upgrading time-consuming, when carrying out system version upgrading than using complete AKU, the flow of use is few, reduces cost when downloading;And by obtaining the differential file of correspondence from system version configuration file, decrease error rate.

Description

The OTA upgrade method of a kind of wearable device and device
Technical field
The application relates to mobile communication technology field, is specifically related to the OTA upgrade method and of a kind of wearable device Plant the OTA update device of wearable device.
Background technology
Popular along with the equipment such as smart mobile phone, panel computer, increasing equipment needs system software upgrading function, The demand of especially network upgrade function is the most prominent.In the system that Android is primary, there is standard set local upgrade merit Can, by, in local SD card or FLASH memory, placing a update.zip, can completion system upgrade function.
And OTA (Over the Air, over the air) is then a kind of merit being carried out data download by wireless network Can, it is widely used in the network upgrade of the equipment such as mobile phone, panel computer.The mode of OTA upgrading sets in intelligence exactly The network path of standby middle appointment system version upgrading, the most locally downloading upgrades.The system of OTA server end configuration at present Both can configure the complete AKU of upgrade-system version during edition upgrading file, differential file can have been configured again.Due to completely The file size of AKU is relatively big, typically has hundreds of million, in order to save cost when user downloads, generally uses differential file Upgrading, such as: initial version is 1.1 versions, the differential file of OTA server configures is generally: 1.1 versions to 1.2 edition This, 1.2 versions to 1.3 versions, 1.3 versions to 1.4 versions, the like.
As can be seen here, in existing OTA escalation process, if between the current system version of smart machine and highest version When version number's difference is bigger, (such as: the current system version of smart machine is 1.1 versions, highest version is 1.4 versions, makes Need to first pass through the differential file of 1.1 versions to 1.2 versions when upgrading with differential file, be upgraded to after 1.2 versions by 1.2 Version is upgraded to 1.3 versions until being upgraded to highest version to the differential file of 1.3 versions), need repeatedly download and rise It is longer that level just can be upgraded to interaction time between highest version, and server end, and escalation process is the longest, reduces user Experience.During it addition, specify the network path of system version upgrading in smart machine, owing to mode is excessively simple, quantity of information is few, Cannot be carried out the version verification of differential file, error-prone.
Summary of the invention
The OTA upgrade method of a kind of wearable device that the application provides and the OTA upgrading dress of a kind of wearable device Put, to solve the problems referred to above of the prior art.
This application provides the OTA upgrade method of a kind of wearable device, the OTA upgrade method of described wearable device, Including:
System version configuration file is obtained from server end;
Obtain local system version information;
From described system version configuration file, the differential file of correspondence is obtained according to current system version information;
Perform described differential file and local system is carried out edition upgrading.
Optionally, described system version configuration file, including:
The version information of each differential file, storage address and check code.
Optionally, described system version configuration file is xml document.
Optionally, the described difference obtaining correspondence according to current system version information from described system version configuration file File, including:
According to the version number in current system version information, from described system version configuration file, obtain corresponding described version The differential file of this number.
Optionally, in the described difference obtaining correspondence according to current system version information from described system version configuration file After the step of single cent part, including:
Judge to record in the check code that carries of described differential file obtained and described system version configuration file is described The check code of differential file is the most identical;
The most then perform described execution described differential file and local system is carried out the step of edition upgrading.
Optionally, the described differential file of described execution carries out edition upgrading to local system, including:
Use recovery pattern to perform described differential file and local system is carried out edition upgrading.
Optionally, described server end is aerial download OTA server.
Optionally, described before server end obtains the step of system version configuration file, including:
Obtain the AKU for upgrade-system version;
Described AKU is carried out difference and generates differential file.
Optionally, described described AKU is carried out difference generate differential file time, also include:
Each differential file executive summary algorithm is calculated check code, and described differential file carries the check code calculated.
Optionally, after the described step that described AKU is carried out difference generation differential file, including:
Each differential file that difference goes out is sent to server end;
Receive the storage address of each differential file of described server end feedback;
Record each differential file version information, storage address and check code as system version configuration file, and Described system version configuration file is sent to described server end.
Accordingly, present invention also provides the OTA update device of a kind of wearable device, the OTA of described wearable device Update device, including: configuration file acquiring unit, system version information acquiring unit, differential file acquiring unit and version Upgrade unit;
Described configuration file acquiring unit, for obtaining system version configuration file from server end;
Described system version information acquiring unit, is used for obtaining local system version information;
Described differential file acquiring unit, is used for according to current system version information from described system version configuration file Obtain corresponding differential file;
Described edition upgrading unit, is used for performing described differential file and local system is carried out edition upgrading.
Compared with prior art, the application has the advantage that
The OTA upgrade method of a kind of wearable device that the application provides and the OTA upgrading dress of a kind of wearable device Put, by obtaining system version configuration file from server end;Obtain local system version information;Believe according to current system version Breath obtains the differential file of correspondence from described system version configuration file;Perform described differential file and local system is carried out version This upgrading.Described technical scheme solves version number between the current system version of smart machine and highest version and differs bigger Time, need repeatedly to download and upgrade and just can be upgraded to the problem of highest version, reduce between server end is mutual Time, decrease upgrading time-consuming;When carrying out system version upgrading than using complete AKU, the flow of use is few, reduces and downloads Time cost;And by obtaining the differential file of correspondence from system version configuration file, decrease error rate.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments described in application, for those of ordinary skill in the art, it is also possible to obtain other according to these accompanying drawings Accompanying drawing.
Fig. 1 shows the flow chart of the OTA upgrade method of the wearable device according to embodiments herein offer;
Fig. 2 shows that the difference that carries out AKU provided according to embodiments herein generates the flow process of differential file Figure;
Fig. 3 shows the flow chart generating system version configuration file provided according to embodiments herein;
Fig. 4 shows the flow chart judging check code provided according to embodiments herein;
Fig. 5 shows the schematic diagram of the OTA update device of the wearable device according to embodiments herein offer.
Detailed description of the invention
In order to be more clearly understood that the above-mentioned purpose of the application, feature and advantage, real with concrete below in conjunction with the accompanying drawings The application is further described in detail by mode of executing.It should be noted that in the case of not conflicting, the enforcement of the application Feature in example and embodiment can be mutually combined.
Elaborate a lot of detail in the following description so that fully understanding the application.But, the application can Implementing being much different from alternate manner described here, those skilled in the art can be in the feelings without prejudice to the application intension Doing similar popularization under condition, therefore, the application is not limited by following public being embodied as.
Embodiments herein provides the OTA upgrade method of a kind of wearable device and a kind of wearable device OTA update device.It is described in detail the most one by one.
Both the complete upgrading of upgrade-system version can have been configured at present during OTA server end configuration system version upgrade file Bag, can configure again differential file.Owing to the file size of complete AKU is relatively big, typically have hundreds of million, in order to save user Cost during download, generally uses differential file and upgrades, such as: initial version is 1.1 versions, OTA server configures Differential file generally: 1.1 versions to 1.2 versions, 1.2 versions to 1.3 versions, 1.3 versions to 1.4 versions, the like. As can be seen here, in existing OTA escalation process, if version number's phase between the current system version of smart machine with highest version When difference is bigger, (such as: the current system version of smart machine is 1.1 versions, highest version is 1.4 versions, is using difference literary composition Need to first pass through the differential file of 1.1 versions to 1.2 versions during part upgrading, be upgraded to after 1.2 versions by 1.2 versions extremely The differential file of 1.3 versions is upgraded to 1.3 versions until being upgraded to highest version), need repeatedly to download and upgrade ability Being upgraded to interaction time between highest version, and server end longer, escalation process is the longest, reduces Consumer's Experience, And when specifying the network path of system version upgrading in smart machine, owing to mode is excessively simple, quantity of information is few, it is impossible to carry out The version verification of differential file, error-prone.For this problem, the technical scheme of the application is by obtaining system from server end Edition configuration file;Obtain local system version information;According to current system version information from described system version configuration file The middle differential file obtaining correspondence;Perform described differential file and local system is carried out edition upgrading, it is achieved thereby that quickly rise The function of level system version.
Before describing the concrete steps of the present embodiment in detail, the understanding to the technical program for convenience, first OTA is made Brief description.
It is the sky by mobile communication (GSM or CDMA) to OTA (Over-the-Air) Chinese translation " download in the air " The technology that SIM data and application are remotely managed by middle interface.Air interface can use WAP, GPRS, CDMA1X and Short message service technology the most universal.The application of OTA technology so that mobile communication not only provides the voice-and-data clothes of mobile Business, but also the new business of mobile can be provided.So, application and content service provider can not be limited to by platform, constantly Develop the service of the demand of being close to the users of more personalized, such as information on demand, interaction entertainment, location-based service and bank transaction Deng.By OTA over the air, as long as user carries out simple operations, it is possible to according to personal like, network is provided Miscellaneous service menu utilizes OTA mechanism to download in smart machine (such as: mobile phone or wearable device), and also can basis The wish of oneself customizes concrete business.
OTA upgrading refers to the standard software upgrading mode that android system provides, and it is powerful, can be with free of losses liter Level system, Main Means is by network (including WIFI, 3G) download OTA AKU automatically, automatically upgrades, do not limits to, also prop up Hold by downloading OTA AKU to SD card upgrade.It is that (typically this kind equipment is exactly the equipment of little amount of storage for the small screen Mobile phone) and the basic platform of its performance expansible that designs, on this platform, the journey that can be provided by third party software business Sequence realizes a lot of common functions of current computer, such as Email, word processing, picture browsing, animation, the retrieval of data Deng.
OTA is based on client/server approach, and server end is background system (client service center, the charging system of operator System, application server etc.), if smart machine is mobile phone, client is SIM.The background system of operator is responsible for please by service Ask and be sent to an OTA gateway, after these service requests being converted into note by this OTA gateway the most again, issue a note Service centre (SMSC), is passed to them the one or more SIMs in service area by this sms center the most again.
In OTA escalation process, often using differential file (difference AKU) to upgrade, differential file is version orientation A kind of upgrade file used during upgrading.System judges according to the version number of detection service end and the system version of client No have upgrading, if there being upgrading, uses differential file to carry out upgrade-system version, as the term suggests being exactly difference section of only upgrading, from And decrease the flow that upgrading brings.The benefit one of differential file upgrade-system version is seamless upgrade, makes smart machine With there is no any impact;Two is convenient and swift, need not connect computer and can carry out the upgrading of system version;Three is upgrade cost Low, only upgrading difference section will not bring unnecessary flow.
Embodiments herein provides the OTA upgrade method of a kind of wearable device.The OTA liter of described wearable device Level embodiment of the method is as follows:
Refer to Fig. 1, the stream of OTA upgrade method of the wearable device provided according to embodiments herein is provided Cheng Tu.
The OTA upgrade method of described wearable device includes:
Step S101, obtains system version configuration file from server end.
In the present embodiment, described from server end acquisition system version configuration file, can realize in the following way: Contemporary wearable equipment sends the request established a connection by wireless communication modes such as WIFI to described server end, or Sent the request established a connection by mobile Internet to described server end, receive described server end feedback After setting up the feedback information connected, establish a connection between contemporary wearable equipment and described server end, and to described clothes Business device end sends the request obtaining system version configuration file, obtains described system version configuration file from described server end.
It should be noted that owing to the technical scheme of the present embodiment is that wearable device passes through OTA upgrade-system version Method, the described described server end being connected of setting up with wearable device downloads OTA server for aerial.
In the present embodiment, described obtain system version configuration file from server end, can have two kinds of implementations: one It is that wearable device, in specific time interval, is set up with described server end and is connected, confirms aerial download OTA server In have updated system version after, wearable device actively obtains system version configuration file from server end;Two are, wearable set Standby in specific time interval, set up with described server end and be connected, confirm that aerial download in OTA server have updated system After version, carry out pointing out (display reminding information on the display interface of wearable device) to user, receive at wearable device Initiating after server end obtains the instruction of system version configuration file to user, wearable device obtains system from server end Edition configuration file.
In the present embodiment, described system version configuration file, including: the version information of each differential file, storage ground Location and check code.It should be understood that with each differential file as entry in described system version configuration file, record respectively The version information of each differential file, storage address and check code.
In the specific implementation, the form of described system version configuration file is xml document form.
It should be noted that xml (Extensible Markup Language) is extensible markup language, standard universal The subset of markup language, is a kind of to make it have structural markup language for labelling e-file.In electronic computer, Labelling refers to computer information symbol to understand, by this kind of labelling, can process and comprise various information between computer Such as article etc..It can be used to flag data, definition data type, is that the markup language of oneself is carried out by a kind of user of permission The original language of definition.Xml is especially suitable for WWW transmission, it is provided that unified method describe and exchange independent of application program or The structural data of supplier.Be cross-platform in Internet environment, depend on the technology of content, be also to process distribution now The effective tool of formula structural information.The data bases such as xml and Access, Oracle and SQL Server are different, and data base provides The storage of more strong data and analysis ability, xml only stores data.
Such as: <?Xml version=" 1.0 "?>
It should be noted that <?Xml version=" 1.0 "?> it is the first row of xml document, state that this is an xml File;<patch>refer to the title of this xml;<field id>refers to define the field in data file, i.e. attribute of an element, The logical name of the field in appointment data file, " data in " refer to logical name, < field id=" PatchName ">refers to differential file name, and<field id=" versionNumber ">refers to version number,<field id=" Address ">refers to the storage address of differential file, and<field id=" md5 ">refers to the check code of differential file;< Field id></field>in<value></value>refer to the data accommodated in this field, it may be assumed that the value of this field.
Such as:<field id=" md5 ">
<value>F22FE311E157766F12068AB940FC1</value>
</field>the value of middle md5 is F22FE311E157766F12068AB940FC1.
Owing to the technical scheme of the present embodiment is upgraded by differential file (difference AKU), thus wearable Equipment, before by OTA upgrade-system version, needs Mr. to become the differential file of each version corresponding, so performing step S101, described before server end obtains system version configuration file, also needs to carry out the complete AKU of system version Difference generates differential file, specifically includes step S100-1 to S100-2,2 is described further below in conjunction with the accompanying drawings.
Refer to Fig. 2, the difference that carries out AKU that it illustrates provides according to embodiments herein generates difference literary composition The flow chart of part.
The described difference that carries out AKU generates differential file, including:
Step S100-1, obtains the AKU for upgrade-system version.
In the present embodiment, described acquisition, for the AKU of upgrade-system version, can realize: obtain in the following way Take the AKU of the highest system version of the version number of corresponding current operation system type.
It should be noted that the AKU for upgrade-system version obtained is according to corresponding OS Type not With, at least include: the AKU of upgrading Android system version and the AKU of upgrading ios system version.
In order to when performing this step, making the AKU for upgrade-system version got is all the liter of latest edition Level bag, the technical scheme of the present embodiment provides a kind of preferred implementation, under optimal way, according to cycle certain time, The publisher of the AKU of release upgrade system version is acquired, obtains the AKU of latest edition.
Such as: do primary information collection, to Android system when each google issues new android system The collection period of the AKU of version, with reference to google release cycle, can be 4-6 month.
It should be noted that the described AKU for upgrade-system version refers to: make system version be upgraded to latest edition This complete AKU, comprise inside this bag is complete system version.
Step S100-2, carries out difference and generates differential file described AKU.
In the present embodiment, the described difference that carries out described AKU generates differential file, can be real in the following way Existing: according to each system version existing, described AKU to be carried out difference, it is each system corresponding by described AKU difference The differential file of version.
It should be noted that the difference AKU used when described differential file refers to be upgraded by difference, inside this bag It is poor only to comprise between current system version and recent systems version (that is: the system version that the issued version number of publisher is the highest) The file of different part.
It should be understood that differential file contains only the difference section that current system version needs the file of upgrading, such as: If recent systems version is V1.5, then it is exactly that the AKU that version number is V1.5 is carried out difference in step S100-2, wherein, If publisher is before the system version that released version number is V1.5, having issued system version number is V1.1, V1.2, V1.3 And the system version of V1.4, then in step S100-2 exactly by the AKU difference that version number is V1.5 be V1.1-V1.5, The differential file of V1.2-V1.5, V1.3-V1.5 and V1.4-V1.5.
In the specific implementation, the described difference that carries out described AKU generates differential file, can be real in the following way Existing: by raw for the source of the AKU (that is: the AKU of legacy system version) of delivery system version code and recent systems version The raw code in the source of AKU is compared, and obtains the difference section of the raw code in source between two system versions, and by ordering/ Build/tools/releasetools/ota_from_target_files i-ota_chafen.zip is by described difference section As the differential file between two system versions.Such as: the source of the AKU that system version number is V1.3 is given birth to code and is System version number is that the raw code in source of the AKU of V1.5 is compared, by the raw code in source of the AKU that system version number is V1.3 The difference section of raw code is as the differential file of V1.3-V1.5 with the source of the AKU that system version number is V1.5.
During it should be noted that AKU is carried out difference, need to perform to make under src root the life of differential file Order, it is necessary to performing under src root, having determined relative path because writing inside this script of ota_from_target_files Reference document.Wherein :-i refers to that differential file is made in customization, ota_chafen.zip is exactly the differential file upgraded, this Script to perform under the root of Android source code.
In order to make wearable device when downloading use differential file, reduce the probability made mistakes, the technical side of the present embodiment Case provides a kind of preferred implementation, under optimal way, performing step S100-2, described AKU carries out difference life When becoming differential file, also need to generate the check code that differential file can carry out version checking, specifically include following steps: to respectively Individual differential file executive summary algorithm calculates check code, and described differential file carries the check code calculated.
It should be noted that described digest algorithm (Message Digest Algorithm) is that computer safety field is wide A kind of hash function of general use, in order to provide the integrity protection of message.In the present embodiment, digest algorithm is used Five editions (MD5), is used for guaranteeing that information transmission is complete consistent.It is that one of widely used hash algorithm of computer (is translated again summary to calculate Method, hash algorithm), main flow programming language generally has MD5 and realizes.It is another fixed-length value by data (such as Chinese character) computing, Being the basic principle of hash algorithm, there are MD2, MD3 and MD4 in the predecessor of MD5.MD5 typical case's application is to a segment information (Message) Produce informative abstract, to prevent from being tampered.Such as, a lot of software is had to have a file famous prime minister downloading when under Unix With, the file of the entitled .md5 of file extent, the most generally only have a line text, general configuration such as: MD5 (tanajiya.tar.gz)=38b8c2c1093dd0fec383a9d9ac940515, is the number of tanajiya.tar.gz file Word is signed.Whole file as a big text message, by its irreversible character string mapping algorithm, is created this by MD5 Individual unique MD5 informative abstract.
It should be noted that the described difference that carries out AKU generates differential file, can at arbitrary smart machine or AKU is carried out difference by computer and generates differential file, it may be assumed that AKU is carried out difference raw in local smart machine Become differential file, so after difference generates differential file, needing the described difference that will generate described described AKU carried out File sends to server end and preserves, and generates system version configuration file so that it is his equipment carries out system at needs During the upgrading of version, it is possible to use generate differential file, specifically including step S101-3 to S101-5,3 make below in conjunction with the accompanying drawings Further illustrate.
Refer to Fig. 3, the flow process generating system version configuration file provided according to embodiments herein is provided Figure.
Described generation system version configuration file, including:
Step S100-3, sends, to server end, each differential file that difference goes out.
In the present embodiment, described each differential file gone out to server end transmission difference, can be in the following way Realize: contemporary wearable equipment passes through the wireless communication modes such as WIFI to asking that the transmission of described server end establishes a connection Ask, or sent the request established a connection by mobile Internet to described server end, receiving described server After the feedback information setting up connection of end feedback, establish a connection between contemporary wearable equipment and described server end, and Each differential file that difference goes out is sent to described server end.
It should be understood that due to when publisher issues new system version, publisher had issued and a number of has been System version, so in step S100-2, the quantity of the differential file of generation so in this step, may be more than one The differential file of each version whole corresponding that difference goes out is sent to described server end.
Such as: if recent systems version is V1.5, then it is exactly the AKU of V1.5 to version number in step S100-2 Carrying out difference, wherein, if publisher is before the system version that released version number is V1.5, having issued system version number is The system version of V1.1, V1.2, V1.3 and V1.4, then exactly by poor for AKU that version number is V1.5 in step S100-2 Be divided into the differential file of V1.1-V1.5, V1.2-V1.5, V1.3-V1.5 and V1.4-V1.5, so in this step, be to Described server end sends the differential file of V1.1-V1.5, V1.2-V1.5, V1.3-V1.5 and V1.4-V1.5.
In order to reduce flow consumption when sending each differential file, the technical scheme of the present embodiment provides a kind of preferred Embodiment, under optimal way, at wearable device before described server end sends each differential file, also needs each Differential file is compressed, and reduces the size of data of differential file.
Step S100-4, receives the storage address of each differential file of described server end feedback.
In the present embodiment, the storage address of each differential file of described reception described server end feedback, can adopt Realize by following manner: contemporary wearable equipment sends foundation by wireless communication modes such as WIFI to described server end and connects The request of relation, or sent the request established a connection to described server end by mobile Internet, receiving After stating the feedback information setting up connection of server end feedback, receive each difference literary composition received that described server end sends The storage address of part.
Step S100-5, records the version information of each differential file, storage address and check code as system version Configuration file, and send described system version configuration file to described server end.
In the present embodiment, the described version information of each differential file, storage address and the check code of recording is as being System edition configuration file, can realize in the following way: will often organize the version information of differential file, the transmission of described server end The storage address and the check code of differential file of differential file, be stored in system version configuration file.Wherein difference literary composition The version information of part refers to: the version number of the AKU of current differential file and recent systems version, such as: V1.1-V1.5.
In the specific implementation, the form of described system version configuration file is xml document form.
Such as: by the version information of V1.1-V1.5 differential file, storage address and check code, V1.2-V1.5 difference literary composition The version information of part, storage address and check code, the version information of V1.3-V1.5 differential file, storage address and verification Code and the version information of V1.4-V1.5 differential file, storage address and check code record are at described system version configuration literary composition Part.
Will generate each differential file version information, storage address and check code record at described system version After configuration file, contemporary wearable equipment is established a connection to the transmission of described server end by wireless communication modes such as WIFI Request, or send, to described server end, the request that establishes a connection by mobile Internet, receiving described clothes After the feedback information setting up connection of business device end feedback, set up between contemporary wearable equipment with described server end and be connected pass System, and send described system version configuration file to described server end.
Step S103, obtains current system version information.
In the present embodiment, described acquisition current system version information, can realize in the following way: pass through Android.os.Build.VERSION.RELEASE obtains the version in the current system version information of contemporary wearable equipment Number information.
Step S105, obtains the difference literary composition of correspondence from described system version configuration file according to current system version information Part.
In the present embodiment, described from described system version configuration file, correspondence is obtained according to current system version information Differential file, can realize in the following way: according to the version number in current system version information, from described system version Configuration file obtains the differential file of corresponding described version number.
In the specific implementation, wearable device obtains after the version number information current system version information from this locality, from The described system version configuration file received determine identical with the version number in the system version information of wearable device Differential file, described wearable device records from described system version configuration file and obtains institute in the entry of this differential file State the storage address of differential file, and access the server end described differential file of acquisition by described storage address.
It should be understood that be owing to differential file contains only the difference section changed between two versions, so can only The system of corresponding differential file version is upgraded, such as: differential file is V1.2-1.5, contains only version V1.5 relative The difference section that version V1.2 changes, to be the liter that V1.2-1.5 realizes system version by differential file differential file Level, the system version of wearable device is necessary for V1.2, and the system version of rear wearable device of having upgraded just becomes V1.5.
Owing to the version quantity of differential file is many, the technical scheme of the present embodiment provides a kind of preferred implementation, Under optimal way, according to the version number in current system version information, from described system version configuration file, obtain correspondence Before the differential file of described version number, also need whether the version number judging current system version configures less than described system version The maximum version number of differential file of record in file, if then performing according to the version number in current system version information, The step of the differential file of corresponding described version number is obtained from described system version configuration file;If it is not, then terminate wearable The OTA escalation process of equipment.
Such as: in described system version configuration file, the version number of the differential file of record is vi-j, the value of i and j is 1, 2,3 ..., the version number in current system version information is vn, then judging that version number is first by vnVersion number with highest version vjCompare and judge vnWhether less than vj, the most then v is obtainediWith vnThe v that numerical value is identicali-j
In order to make wearable device when downloading use differential file, reduce the probability made mistakes, the technical side of the present embodiment Case provides a kind of preferred implementation, under optimal way, is performing step S105 according to current system version information from institute State after system version configuration file obtains corresponding differential file, also need to judge the check code of the described differential file of acquisition The most correct, specifically include step S106-1 to S106-2,4 be described further below in conjunction with the accompanying drawings.
Refer to Fig. 4, the flow chart judging check code provided according to embodiments herein is provided.
Described judgement check code, including:
Step S106-1, it is judged that in the check code that the described differential file of acquisition carries and described system version configuration file The check code of the described differential file of record is the most identical.
Step S106-2, the most then perform described execution described differential file and local system carry out the step of edition upgrading Suddenly.
In this step, the judged result in receiving step S106-1, if the verification that the described differential file obtained carries Code is identical with the check code of the described differential file of record in described system version configuration file, then enter step S107 and perform institute State differential file and local system is carried out edition upgrading.
Step S107, performs described differential file and local system is carried out edition upgrading.
In the present embodiment, the described differential file of described execution carries out edition upgrading to local system, can use as follows Mode realizes: use recovery pattern to perform described differential file and local system is carried out edition upgrading.
It should be noted that recovery pattern refers to a kind of to repair the data within Android machine or system The pattern (being similar to windows PE or DOS) changed.Can brush into new Android system under this scheme, or to existing System backs up or upgrades, it is also possible in this factory reset.Can by this reforestation practices interface brush into or standby Part Android system, owing to recovery version updating is very fast, early version only has three options, therefore cannot standby system, also only Update.zip file can be called by one and enter system upgrade.
In the specific implementation, under recovery pattern, perform described differential file and local system carried out edition upgrading, It is, by the updater-script in described differential file, local system is carried out edition upgrading.This script is positioned at/META- Under INFO/com/google/android/ catalogue, generate the when of being to make differential file.
In the above-described embodiment, it is provided that the OTA upgrade method of a kind of wearable device, with above-mentioned wearable device OTA upgrade method is corresponding, present invention also provides the OTA update device of a kind of wearable device.Enforcement due to device Example is substantially similar to the embodiment of method, so describing fairly simple, relevant part sees the part explanation of embodiment of the method ?.Device embodiment described below is only schematically.The OTA update device of described wearable device is implemented such as Under:
Refer to Fig. 5, the showing of OTA update device of the wearable device provided according to embodiments herein is provided It is intended to.
The OTA update device of described wearable device, including: configuration file acquiring unit 501, system version information obtain Unit 503, differential file acquiring unit 505 and edition upgrading unit 507;
Described configuration file acquiring unit 501, for obtaining system version configuration file from server end;
Described system version information acquiring unit 503, is used for obtaining local system version information;
Described differential file acquiring unit 505, for civilian from the configuration of described system version according to current system version information Part obtains the differential file of correspondence;
Described edition upgrading unit 507, is used for performing described differential file and local system is carried out edition upgrading.
Optionally, described configuration file acquiring unit 501, the described system version configuration file obtained from server end, Including: the version information of each differential file, storage address and check code.
Optionally, described configuration file acquiring unit 501, the described system version configuration file obtained from server end is Xml document.
Optionally, described differential file acquiring unit 505, specifically for according to the version in current system version information Number, from described system version configuration file, obtain the differential file of corresponding described version number.
Optionally, the OTA update device of described wearable device, also include: check code judging unit and version liter Level trigger element;
Described check code judging unit, for described civilian from the configuration of described system version according to current system version information After part obtains the differential file of correspondence, it is judged that the check code that the described differential file of acquisition carries is joined with described system version Put the check code of the described differential file of record in file the most identical;
Described edition upgrading trigger element, for receiving the judged result of described check code judging unit, the most then triggers Described edition upgrading unit 507.
Optionally, described edition upgrading unit 507, specifically for using recovery pattern to perform described differential file pair Local system carries out edition upgrading.
Optionally, described configuration file acquiring unit 501, for joining from aerial OTA server acquisition system version of downloading Put file.
Optionally, the OTA update device of described wearable device, also include: AKU acquiring unit and difference list Unit;
Described AKU acquiring unit, was used for described before server end obtains system version configuration file, obtains AKU for upgrade-system version;
Described difference unit, generates differential file for described AKU carries out difference.
Optionally, described difference unit, also include: check code computation subunit;
Described check code computation subunit, for described described AKU carried out difference generate differential file time, to respectively Individual differential file executive summary algorithm calculates check code, and described differential file carries the check code calculated.
Optionally, the OTA update device of described wearable device, also include: differential file transmitting element, storage address Receive unit and system version configuration file signal generating unit;
Described differential file transmitting element, for described AKU being carried out after difference generates differential file described, Each differential file that difference goes out is sent to server end;
Described storage address receives unit, for receiving the storage ground of each differential file of described server end feedback Location;
Described system version configuration file signal generating unit, for recording the version information of each differential file, storage address And check code is as system version configuration file, and send described system version configuration file to described server end.
In a typical configuration, calculating equipment includes one or more processor (CPU), input/output interface, net Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
1, computer-readable medium includes that removable media permanent and non-permanent, removable and non-can be by any side Method or technology realize information storage.Information can be computer-readable instruction, data structure, the module of program or other numbers According to.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only Memorizer (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic rigid disk storage or Other magnetic storage apparatus or any other non-transmission medium, can be used for the information that storage can be accessed by a computing device.According to Defining herein, computer-readable medium does not include non-temporary computer readable media (transitory media), such as modulation Data signal and carrier wave.
2, it will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product Product.Therefore, the embodiment in terms of the application can use complete hardware embodiment, complete software implementation or combine software and hardware Form.And, the application can use and can use at one or more computers wherein including computer usable program code The upper computer program implemented of storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) Form.
Although the application is open as above with preferred embodiment, but it is not for limiting the application, any this area skill Art personnel, without departing from spirit and scope, can make possible variation and amendment, the therefore guarantor of the application The scope of protecting should be defined in the range of standard with the application claim.

Claims (11)

1. the OTA upgrade method of a wearable device, it is characterised in that including:
System version configuration file is obtained from server end;
Obtain local system version information;
From described system version configuration file, the differential file of correspondence is obtained according to current system version information;
Perform described differential file and local system is carried out edition upgrading.
The OTA upgrade method of wearable device the most according to claim 1, it is characterised in that described system version configures File, including:
The version information of each differential file, storage address and check code.
The OTA upgrade method of wearable device the most according to claim 2, it is characterised in that described system version configures File is xml document.
The OTA upgrade method of wearable device the most according to claim 2, it is characterised in that described according to current system Version information obtains the differential file of correspondence from described system version configuration file, including:
According to the version number in current system version information, from described system version configuration file, obtain corresponding described version number Differential file.
The OTA upgrade method of wearable device the most according to claim 2, it is characterised in that be currently in described basis After the step of the differential file that system version information obtains correspondence from described system version configuration file, including:
The check code that the described differential file that judgement obtains carries and the described difference of record in described system version configuration file The check code of file is the most identical;
The most then perform described execution described differential file and local system is carried out the step of edition upgrading.
6. according to the OTA upgrade method of the wearable device described in claim 1-5 any one, it is characterised in that described in hold The described differential file of row carries out edition upgrading to local system, including:
Use recovery pattern to perform described differential file and local system is carried out edition upgrading.
The OTA upgrade method of wearable device the most according to claim 6, it is characterised in that described server end is empty Middle download OTA server.
The OTA upgrade method of wearable device the most according to claim 7, it is characterised in that described from server end Before obtaining the step of system version configuration file, including:
Obtain the AKU for upgrade-system version;
Described AKU is carried out difference and generates differential file.
The OTA upgrade method of wearable device the most according to claim 8, it is characterised in that described to described AKU When carrying out difference generation differential file, also include:
Each differential file executive summary algorithm is calculated check code, and described differential file carries the check code calculated.
The OTA upgrade method of wearable device the most according to claim 9, it is characterised in that described to described upgrading After bag carries out the step that difference generates differential file, including:
Each differential file that difference goes out is sent to server end;
Receive the storage address of each differential file of described server end feedback;
Record the version information of each differential file, storage address and check code as system version configuration file, and to institute State server end and send described system version configuration file.
The OTA update device of 11. 1 kinds of wearable devices, it is characterised in that including: configuration file acquiring unit, system version Information acquisition unit, differential file acquiring unit and edition upgrading unit;
Described configuration file acquiring unit, for obtaining system version configuration file from server end;
Described system version information acquiring unit, is used for obtaining local system version information;
Described differential file acquiring unit, for obtaining from described system version configuration file according to current system version information Corresponding differential file;
Described edition upgrading unit, is used for performing described differential file and local system is carried out edition upgrading.
CN201610607384.2A 2016-07-27 2016-07-27 The OTA upgrade method of a kind of wearable device and device Pending CN106250143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610607384.2A CN106250143A (en) 2016-07-27 2016-07-27 The OTA upgrade method of a kind of wearable device and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610607384.2A CN106250143A (en) 2016-07-27 2016-07-27 The OTA upgrade method of a kind of wearable device and device

Publications (1)

Publication Number Publication Date
CN106250143A true CN106250143A (en) 2016-12-21

Family

ID=57604196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610607384.2A Pending CN106250143A (en) 2016-07-27 2016-07-27 The OTA upgrade method of a kind of wearable device and device

Country Status (1)

Country Link
CN (1) CN106250143A (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193580A (en) * 2017-03-31 2017-09-22 北京元心科技有限公司 Method for updating system and non-of short duration computer-readable medium
CN108039202A (en) * 2017-11-29 2018-05-15 上海联影医疗科技有限公司 A kind of upgrade method of checking list, medical image method for reconstructing and system
CN108323198A (en) * 2017-02-27 2018-07-24 华为技术有限公司 A kind of method and apparatus of configuration external equipment
CN108334344A (en) * 2017-08-07 2018-07-27 北京金山安全管理系统技术有限公司 Client side upgrading method and device
CN109144537A (en) * 2018-07-17 2019-01-04 奇酷互联网络科技(深圳)有限公司 The method, apparatus that mobile terminal and wearable device upgrade automatically
CN110308923A (en) * 2018-03-27 2019-10-08 上海擎感智能科技有限公司 A kind of test method and its system of OTA upgrading
CN110389780A (en) * 2019-07-18 2019-10-29 上海擎感智能科技有限公司 Edition data processing method, system and equipment
WO2020093398A1 (en) * 2018-11-09 2020-05-14 华为技术有限公司 Over-the-air upgrade method and related device
CN111556127A (en) * 2020-04-24 2020-08-18 广东乐心医疗电子股份有限公司 Wearable device upgrading method and related device
CN111552502A (en) * 2020-04-21 2020-08-18 海尔优家智能科技(北京)有限公司 NB module upgrading method and device of intelligent equipment
CN111787100A (en) * 2020-06-30 2020-10-16 上海乾隆节能科技有限公司 Centralized controller, differential upgrading system and upgrading method of centralized controller
CN112015443A (en) * 2019-05-31 2020-12-01 百度在线网络技术(北京)有限公司 Upgrading method and device for electronic equipment, electronic equipment and storage medium
CN112311576A (en) * 2019-07-31 2021-02-02 中兴通讯股份有限公司 OTA upgrade diagnosis method and device, wireless routing equipment and terminal equipment
CN112328293A (en) * 2020-11-05 2021-02-05 歌尔科技有限公司 Differential upgrading method of embedded equipment and related components
CN112667258A (en) * 2020-12-23 2021-04-16 艾体威尔电子技术(北京)有限公司 Remote upgrading method for external equipment program of android POS machine
CN112783541A (en) * 2021-01-21 2021-05-11 成都路行通信息技术有限公司 Equipment upgrading method and device and server
CN113038441A (en) * 2021-03-15 2021-06-25 读书郎教育科技有限公司 Method for upgrading telephone watch without network
CN113312076A (en) * 2021-06-25 2021-08-27 瀚云科技有限公司 Configuration information upgrading method, system, electronic equipment and storage medium
CN114237681A (en) * 2021-12-16 2022-03-25 拟仁智能科技(杭州)有限公司 File differential upgrading method and system based on reverse differential logic
CN114756257A (en) * 2020-12-28 2022-07-15 成都鼎桥通信技术有限公司 Data updating method and device, communication module and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017435A (en) * 2006-04-14 2007-08-15 北京瑞星国际软件有限公司 Method and apparatus used for upgrading software
CN103095838A (en) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 Method for upgrading Android smartphone software through downloading incremental upgrade package
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof
US20150347498A1 (en) * 2012-09-28 2015-12-03 Oracle International Corporation Transparently upgrading derived database objects

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017435A (en) * 2006-04-14 2007-08-15 北京瑞星国际软件有限公司 Method and apparatus used for upgrading software
US20150347498A1 (en) * 2012-09-28 2015-12-03 Oracle International Corporation Transparently upgrading derived database objects
CN103095838A (en) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 Method for upgrading Android smartphone software through downloading incremental upgrade package
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108323198A (en) * 2017-02-27 2018-07-24 华为技术有限公司 A kind of method and apparatus of configuration external equipment
CN108323198B (en) * 2017-02-27 2021-03-23 华为技术有限公司 Method and equipment for configuring external equipment
CN107193580A (en) * 2017-03-31 2017-09-22 北京元心科技有限公司 Method for updating system and non-of short duration computer-readable medium
CN108334344A (en) * 2017-08-07 2018-07-27 北京金山安全管理系统技术有限公司 Client side upgrading method and device
CN108334344B (en) * 2017-08-07 2021-08-17 北京金山安全管理系统技术有限公司 Client upgrading method and device
CN108039202A (en) * 2017-11-29 2018-05-15 上海联影医疗科技有限公司 A kind of upgrade method of checking list, medical image method for reconstructing and system
CN108039202B (en) * 2017-11-29 2021-12-10 上海联影医疗科技股份有限公司 Correction table upgrading method, medical image reconstruction method and system
CN110308923A (en) * 2018-03-27 2019-10-08 上海擎感智能科技有限公司 A kind of test method and its system of OTA upgrading
CN109144537A (en) * 2018-07-17 2019-01-04 奇酷互联网络科技(深圳)有限公司 The method, apparatus that mobile terminal and wearable device upgrade automatically
CN112912847B (en) * 2018-11-09 2022-10-04 华为技术有限公司 Method and related device for over-the-air upgrading
US11947673B2 (en) 2018-11-09 2024-04-02 Huawei Technologies Co., Ltd. Over-the-air upgrade method and related apparatus
US20210256114A1 (en) * 2018-11-09 2021-08-19 Huawei Technologies Co., Ltd. Over-The-Air Upgrade Method and Related Apparatus
WO2020093398A1 (en) * 2018-11-09 2020-05-14 华为技术有限公司 Over-the-air upgrade method and related device
CN112912847A (en) * 2018-11-09 2021-06-04 华为技术有限公司 Method and related device for over-the-air upgrading
CN112015443A (en) * 2019-05-31 2020-12-01 百度在线网络技术(北京)有限公司 Upgrading method and device for electronic equipment, electronic equipment and storage medium
CN110389780A (en) * 2019-07-18 2019-10-29 上海擎感智能科技有限公司 Edition data processing method, system and equipment
CN112311576A (en) * 2019-07-31 2021-02-02 中兴通讯股份有限公司 OTA upgrade diagnosis method and device, wireless routing equipment and terminal equipment
CN112311576B (en) * 2019-07-31 2023-11-24 中兴通讯股份有限公司 OTA upgrading diagnosis method and device, wireless routing equipment and terminal equipment
CN111552502A (en) * 2020-04-21 2020-08-18 海尔优家智能科技(北京)有限公司 NB module upgrading method and device of intelligent equipment
CN111556127B (en) * 2020-04-24 2023-04-07 广东乐心医疗电子股份有限公司 Wearable device upgrading method and related device
CN111556127A (en) * 2020-04-24 2020-08-18 广东乐心医疗电子股份有限公司 Wearable device upgrading method and related device
CN111787100A (en) * 2020-06-30 2020-10-16 上海乾隆节能科技有限公司 Centralized controller, differential upgrading system and upgrading method of centralized controller
CN111787100B (en) * 2020-06-30 2023-09-01 上海乾隆节能科技有限公司 Centralized controller, differential upgrading system and upgrading method of centralized controller
CN112328293A (en) * 2020-11-05 2021-02-05 歌尔科技有限公司 Differential upgrading method of embedded equipment and related components
CN112667258A (en) * 2020-12-23 2021-04-16 艾体威尔电子技术(北京)有限公司 Remote upgrading method for external equipment program of android POS machine
CN112667258B (en) * 2020-12-23 2023-10-31 艾体威尔电子技术(北京)有限公司 Remote upgrading method for external equipment program of android POS machine
CN114756257A (en) * 2020-12-28 2022-07-15 成都鼎桥通信技术有限公司 Data updating method and device, communication module and readable storage medium
CN114756257B (en) * 2020-12-28 2023-09-05 成都鼎桥通信技术有限公司 Data updating method, device, communication module and readable storage medium
CN112783541A (en) * 2021-01-21 2021-05-11 成都路行通信息技术有限公司 Equipment upgrading method and device and server
CN112783541B (en) * 2021-01-21 2024-08-27 成都路行通信息技术有限公司 Equipment upgrading method, device and server
CN113038441A (en) * 2021-03-15 2021-06-25 读书郎教育科技有限公司 Method for upgrading telephone watch without network
CN113312076A (en) * 2021-06-25 2021-08-27 瀚云科技有限公司 Configuration information upgrading method, system, electronic equipment and storage medium
CN114237681A (en) * 2021-12-16 2022-03-25 拟仁智能科技(杭州)有限公司 File differential upgrading method and system based on reverse differential logic

Similar Documents

Publication Publication Date Title
CN106250143A (en) The OTA upgrade method of a kind of wearable device and device
US10827036B2 (en) Version control machine
EP2820539B1 (en) Distribution of application files
US9244673B2 (en) System and method for updating application archive files
US10503482B2 (en) Object mapping using intrinsic persistence metadata and pattern-based rules for mapping transformation
US11328093B1 (en) Protecting sensitive data
US10805115B2 (en) Internet of things (IoT) gateway
US20120102164A1 (en) Deployment of location based applications with crowdsourced structured points of input for data entry
US20210034776A1 (en) Metadata storage architecture and data aggregation
US20150302073A1 (en) Method and system for cross-platform application cloning
US9678723B2 (en) Application programming interface (API) engine
CN104516738A (en) Integrated implementing method for development and release of APP
CN112256321A (en) Static library packaging method and device, computer equipment and storage medium
EP2854048A1 (en) Method of operating a mobile telecommunications device
US9928047B2 (en) System and method for providing application programs to devices
CN103118140A (en) Method, system and device for sharing file with other users out of relationship circle
US20140019951A1 (en) Mobile application translation
US20150280786A1 (en) Near field communication based data transfer
US11620257B2 (en) Data archive release in context of data object
CN110928571A (en) Business program development method and device
US9268561B1 (en) Federated services to dynamically switch features in applications
US10019519B2 (en) Methods and systems for utilizing global entities in software applications
CN110704122A (en) Plug-in loading method and device
US9875092B2 (en) Viral distribution of mobile application software
CN109144843A (en) The method and apparatus for testing environment deployment

Legal Events

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

Application publication date: 20161221

RJ01 Rejection of invention patent application after publication