CN110221856A - A kind of wearable device upgrade method, wearable device and storage medium - Google Patents
A kind of wearable device upgrade method, wearable device and storage medium Download PDFInfo
- Publication number
- CN110221856A CN110221856A CN201910557136.5A CN201910557136A CN110221856A CN 110221856 A CN110221856 A CN 110221856A CN 201910557136 A CN201910557136 A CN 201910557136A CN 110221856 A CN110221856 A CN 110221856A
- Authority
- CN
- China
- Prior art keywords
- wearable device
- attached bag
- upgrade
- decomposition
- space
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000003860 storage Methods 0.000 title claims description 18
- 238000000354 decomposition reaction Methods 0.000 claims abstract description 101
- 230000015654 memory Effects 0.000 claims abstract description 64
- 238000012545 processing Methods 0.000 claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012790 confirmation Methods 0.000 claims description 5
- 210000000707 wrist Anatomy 0.000 abstract description 35
- 238000010586 diagram Methods 0.000 description 24
- 230000007958 sleep Effects 0.000 description 21
- 230000006870 function Effects 0.000 description 19
- 230000006854 communication Effects 0.000 description 14
- 238000004891 communication Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 11
- 230000001360 synchronised effect Effects 0.000 description 8
- 230000033001 locomotion Effects 0.000 description 7
- 230000003068 static effect Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000005291 magnetic effect Effects 0.000 description 5
- 230000006399 behavior Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004140 cleaning Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 3
- 238000005452 bending Methods 0.000 description 3
- 230000001413 cellular effect Effects 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000004622 sleep time Effects 0.000 description 3
- 230000036578 sleeping time Effects 0.000 description 3
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000004378 air conditioning Methods 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 239000012769 display material Substances 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000005294 ferromagnetic effect Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 229910052742 iron Inorganic materials 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003860 sleep quality Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—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)
- Telephone Function (AREA)
Abstract
The application discloses a kind of wearable device upgrade method, and the wearable device upgrade method is the following steps are included: wearable device detects upgrade package;Wearable device downloads upgrade package, and verifies system subregion remaining space size;If system subregion remaining space is more than or equal to preset value A, normal upgrading is executed;If system subregion remaining space is less than preset value A, wearable device obtains remaining space size and executes following steps;Upgrade package is unziped to cache subregion by wearable device, and upgrade package is decomposed into several and decomposes attached bag;Wearable device is according to subpackage number dynamic processing update_script upgrade script;Wearable device upgrades each decomposition attached bag respectively.The application feature small for wrist machine memory space, by upgrade package being decomposed to reduce the size of upgrade package, the size of system subregion remaining space needed for significantly reducing upgrading, the probability for causing upgrading to fail because system subregion remaining space is insufficient is thereby reduced, user's service efficiency is improved.
Description
Technical field
This application involves wearable device technical field more particularly to a kind of FOTA upgrade method, wearable device and deposit
Storage media.
Background technique
With the popularization of intelligent terminals, the wearable electronics such as smartwatch, Intelligent bracelet show huge market
Prospect.In order to provide the user with better functionality, safety etc., wearable device manufacturer needs often to release operating system liter
Grade packet, to optimize the performance of wearable device, provide new function or solve known security risk etc..
The aerial downloading software liter of aerial firmware upgrade (Firmware Over-The-Air, abbreviation FOTA) mobile terminal
Grade refers to that, by cloud upgrade technique, for the equipment with networking function: for example mobile phone, tablet computer, portable media play
Device, mobile internet device, wearable device etc. provide firmware update services, and user is using network with side that is on-demand, easily extending
Formula obtains intelligent terminal system upgrade package, and carries out cloud upgrading by FOTA, completes system reparation and optimization.
User using wearable device (such as: wrist machine, it be it is a collection smartwatch form mobile phone type, outside
It sees closer to smartwatch, but its front is almost covered by one piece of elongated flexible material screen, is integrated with wearable
With two kinds of equipment features of mobile phone) during, with using the time increasingly longer, wearable device memory space can be increasingly
It is few, currently, when being upgraded using FOTA, therefore, to assure that system partitioning (abbreviation system subregion) remaining space is more than some threshold value
(such as 200Mb) does not otherwise allow to upgrade.
1) since wrist machine memory is smaller than mobile phone, it often will lead to system subregion remaining space less than the threshold value, cause to rise
Grade failure, upgrading can just be continued to complete by this moment needing user to clear up manually after memory space, more troublesome, user experience is poor.
Even as the development of technology, the memory space of wrist machine can be increasing, still, on the one hand since the small volume of wrist machine is in it
It is still smaller than mobile phone to deposit space, on the other hand, the scale of system upgrade packet also can be increasing, in addition, the wrist more early sold
Its memory space of machine is confidential compared to the wrist of current versions small, when manufacturer pushes upgrade package, it is also necessary to consider these Shang Zhi
The wrist machine of the earlier version in the period is held, so, when manufacturer provides system upgrade, wrist machine memory space inadequate is one and needs to solve
Certainly the problem of.
2) moreover, the poor mobile phone of some configurations or more old mobile phone, memory space are generally also relatively worked as
The mobile phone configuration of preceding mainstream wants poor, these mobile phones are also possible to encounter system partition space deficiency and system upgrade is caused to lose
It loses, if can solve the system upgrade problem of these mobile phones with less memory space, opposite can extend these mobile phones
Active time is preferably customer service, promotes the competitiveness of manufacturer.
Summary of the invention
A kind of wearable device upgrade method is provided it is an object of the invention to overcome the deficiency of the above-mentioned prior art, this
The application feature small for wrist machine memory space significantly reduces liter by decomposing upgrade package to reduce the size of upgrade package
The size of system subregion remaining space needed for grade, thereby reduce causes to upgrade because system subregion remaining space is insufficient
The probability of failure improves user's service efficiency.
To achieve the purpose of the present invention, the present invention provides a kind of wearable device upgrade method, the wearable device liter
Grade method the following steps are included:
Wearable device detects upgrade package;
Wearable device downloads upgrade package, and wearable device verifies system subregion remaining space size;
If system subregion remaining space is more than or equal to preset value A, wearable device executes normal upgrading;If
System subregion remaining space is less than preset value A, then wearable device obtains remaining space size and executes following steps;
Upgrade package is unziped to cache subregion by wearable device, and upgrade package is decomposed into several decomposition by wearable device
Attached bag;
If the half of system subregion remaining space, which is more than or equal to, is taking up space the maximum space for decomposing attached bag just
Integral multiple, then wearable device is according to subpackage number dynamic processing update_script upgrade script;
According to the upgrade script, wearable device upgrades each decomposition attached bag respectively, upgrades in each decomposition attached bag
The decomposition attached bag is removed after completing immediately.
It is optionally, described that upgrade package is decomposed into several decomposition attached bags, comprising:
Upgrade package is decomposed into the first decomposition attached bag by wearable device, and the first decomposition attached bag includes patch packet, img
Packet and add packet.
Optionally, upgrade package is decomposed into several and decomposes attached bag by the wearable device, comprising:
Upgrade package will be decomposed into several the first decomposition attached bags by wearable device;
Wearable device will will take up space more than or equal to preset value B first decompose attached bag decompose it is one or many, directly
It takes up space less than preset value B or until decomposition attached bag cannot continue decomposition to all decomposition attached bags.
Optionally, cannot continue until all decomposition attached bags take up space less than preset value B or decomposition attached bag described
After until decomposition, further includes:
If the maximum space for decomposing attached bag that takes up space is greater than the half of system subregion remaining space, wearable
Device prompts user clears up space;
If the maximum space for decomposing attached bag that takes up space is less than or equal to the half of system subregion remaining space, can
Wearable device upgrades each decomposition attached bag respectively, and wearable device is removed immediately after the upgrading of each decomposition attached bag is completed is somebody's turn to do
Attached bag is decomposed, is completed until all decomposition attached bags upgrade.
Optionally, it is described then according to subpackage number dynamic processing update_script upgrade script after, further includes:
Wearable device receives the touch operation of confirmation system update, alternatively,
Wearable device determines the time of system update according to the preset rule of user.
Optionally, the wearable device detects upgrade package, comprising:
Wearable device timing passes through network and sends the request for obtaining upgrade package to FOTA server;
Wearable device receives the updated notice of upgrade package of FOTA server sending;
Wearable device downloads upgrade package from FOTA server.
Optionally, each decomposition attached bag is upgraded in the wearable device respectively, upgrades in each decomposition attached bag and completes
After wearable device removes the decomposition attached bag immediately later, further includes:
Wearable device notifies FOTA server updating to complete.
Optionally, before the wearable device upgrades each decomposition attached bag respectively, further includes:
Wearable device carries out completeness check to each decomposition attached bag.
The second purpose to realize the present invention, the present invention also provides a kind of wearable device, the wearable device includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
The computer program realizes wearable device upgrading side described in any of the above embodiments when being executed by the processor
The step of method.
Third purpose to realize the present invention, the present invention also provides a kind of computer readable storage medium, the computer
Readable storage medium storing program for executing is stored with one or more program, and one or more of programs can be by one or more processor
It executes, the step of to realize wearable device upgrade method described in any of the above embodiments.
The beneficial effects of the present invention are:
1. generally requiring since current system upgrade backpack body product is larger and guaranteeing that system subregion remaining space is greater than upgrading
2 times of packet just can normally be upgraded.One complete upgrade package is carried out subpackage by decomposing upgrade package by this programme, is reduced
The size of each packet, then system subregion remaining space required for upgrading can reduce.By reducing the system needed
Partition size can allow user installation to use more application functions.
2. can also normally be upgraded using upgrade method of the invention although the memory space of wrist machine is smaller.Compared with
The wrist machine of low memory space can also obtain the updating maintenance of producer in longer time section, to substantially prolong wrist machine
Service life, also, also help reduce wrist machine manufacturing cost, promoted wrist machine the market competitiveness.
3. upgrade method of the invention can be also used for the mobile phone of lower configuration, lower configuration can be made (mainly to store
Space is smaller) mobile phone can continue in longer time section obtain cell phone manufacturer more new demand servicing, the military service of extending cell phone
Time.
4. upgrade method of the invention can be also used for the mobile phone of user's up-front buys, shine these storage mobile phones again
Life, its memory space of the mobile phone more early bought are less than current mainstream mobile phone type, so the mobile phone more early bought is just slowly
Due to memory space limitation and system upgrade can not be carried out, if user continues to use these mobile phones more early bought, nothing
Method enjoys new functionality, and also poor due to that can not install the safeties such as security patch.Using upgrading side of the invention
Method, can significantly extending cell phone the update seeervice cycle, thus obtain it is longer than competing product mobile phone use the time, cost performance is more
It is high.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of hardware structural diagram of embodiment of wearable device provided in an embodiment of the present invention;
Fig. 2 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 3 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 4 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 5 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 6 is the flow diagram 1 of the embodiment of the present application 1;
Fig. 7 is the further schematic diagram 1 of Fig. 6;
Fig. 8 is the further schematic diagram 2 of Fig. 6;
Fig. 9 is the flow diagram 2 in the embodiment of the present application 1;
Figure 10 is the flow diagram 3 in the embodiment of the present application 1;
Figure 11 is the flow diagram 4 in the embodiment of the present application 1;
Figure 12 is the flow diagram 5 in the embodiment of the present application 1;
Figure 13 is the flow diagram 6 in the embodiment of the present application 1;
Figure 14 is the flow diagram 7 in the embodiment of the present application 1;
Figure 15 is the flow diagram 8 in the embodiment of the present application 1;
Figure 16 is the flow diagram 9 in the embodiment of the present application 1;
Figure 17 is the flow diagram 9 in the embodiment of the present application 1;
Figure 18 is the flow diagram 10 in the embodiment of the present application 1;
Figure 19 is the flow diagram 11 in the embodiment of the present application 1;
Figure 20 is the flow diagram 12 in the embodiment of the present application 1;
Figure 21 is wrist machine and server connection schematic diagram in the embodiment of the present application 1;
Figure 22 is the schematic diagram 1 in the embodiment of the present application 2;
Figure 23 is the schematic diagram 2 in the embodiment of the present application 2.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
The wearable device provided in the embodiment of the present invention includes that Intelligent bracelet, smartwatch and smart phone etc. move
Dynamic terminal.With the continuous development of Screen Technology, the appearance of the screens form such as flexible screen, Folding screen, smart phone etc. is mobile eventually
End can also be used as wearable device.The wearable device provided in the embodiment of the present invention may include: RF (Radio
Frequency, radio frequency) unit, WiFi module, audio output unit, A/V (audio/video) input unit, sensor, display
The components such as unit, user input unit, interface unit, memory, processor and power supply.
It will be illustrated by taking wearable device as an example in subsequent descriptions, referring to Fig. 1, its each implementation to realize the present invention
A kind of hardware structural diagram of wearable device of example, which may include: RF (Radio
Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104,
Sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, Yi Ji electricity
The components such as source 111.It will be understood by those skilled in the art that wearable device structure shown in Fig. 1 is not constituted to wearable
The restriction of equipment, wearable device may include perhaps combining certain components or difference than illustrating more or fewer components
Component layout.
It is specifically introduced below with reference to all parts of the Fig. 1 to wearable device:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, radio frequency list
Uplink information can be sent to base station by member 101, and after the downlink information that in addition can also be sent base station receives, being sent to can be worn
The processor 110 for wearing equipment is handled, and base station can be to the downlink information that radio frequency unit 101 is sent and be sent out according to radio frequency unit 101
What the uplink information sent generated, it is also possible to actively push away to radio frequency unit 101 after the information update for detecting wearable device
It send, for example, base station can penetrating to wearable device after detecting that geographical location locating for wearable device changes
Frequency unit 101 sends the message informing of geographical location variation, and radio frequency unit 101, can should after receiving the message informing
The processor 110 that message informing is sent to wearable device is handled, and it is logical that the processor 110 of wearable device can control the message
Know on the display panel 1061 for being shown in wearable device;In general, radio frequency unit 101 include but is not limited to antenna, at least one
Amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also pass through channel radio
Letter communicated with network and other equipment, specifically may include: by wireless communication with the server communication in network system, example
Such as, wearable device can download file resource from server by wireless communication, for example can download and answer from server
With program, after wearable device completes the downloading of a certain application program, if the corresponding file of the application program in server
Resource updates, then the server can be by wireless communication to the message informing of wearable device push resource updates, to remind
User is updated the application program.Any communication standard or agreement can be used in above-mentioned wireless communication, including but not limited to
GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General
Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access
2000, CDMA 2000), (Wideband Code Division Multiple Access, wideband code division are more by WCDMA
Location), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time division synchronous
CDMA), (Frequency Division Duplexing-Long Term Evolution, frequency division duplex are long by FDD-LTE
Phase evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex are drilled for a long time
Into) etc..
In one embodiment, wearable device 100 can access existing communication network by insertion SIM card.
In another embodiment, wearable device 100 can be come real by the way that esim card (Embedded-SIM) is arranged
Existing communication network is now accessed, by the way of esim card, the inner space of wearable device can be saved, reduce thickness.
It is understood that although Fig. 1 shows radio frequency unit 101, but it is understood that, radio frequency unit 101 its
And it is not belonging to must be configured into for wearable device, it can according to need within the scope of not changing the essence of the invention and save completely
Slightly., wearable device 100 can realize the communication connection with other equipment or communication network separately through wifi module 102,
The embodiment of the present invention is not limited thereto.
WiFi belongs to short range wireless transmission technology, and wearable device can help user to receive and dispatch by WiFi module 102
Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1
WiFi module 102 is shown, but it is understood that, and it is not belonging to must be configured into for wearable device, it completely can root
It is omitted within the scope of not changing the essence of the invention according to needs.
Audio output unit 103 can be in call signal reception pattern, call mode, record in wearable device 100
When under the isotypes such as mode, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit
103 can also provide audio output relevant to the specific function that wearable device 100 executes (for example, call signal reception sound
Sound, message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
In one embodiment, wearable device 100 includes one or more cameras, by opening camera,
It can be realized the capture to image, realize the functions such as take pictures, record a video, the position of camera, which can according to need, to be configured.
Wearable device 100 further includes at least one sensor 105, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 1061, proximity sensor can when wearable device 100 is moved in one's ear,
Close display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions
The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static
It (for example pedometer, is struck using (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function
Hit) etc..
In one embodiment, wearable device 100 further includes proximity sensor, can by using proximity sensor
Wearable device can be realized non-contact manipulation, provide more modes of operation.
In one embodiment, wearable device 100 further includes heart rate sensor, when wearing, by close to using
Person can be realized the detecting of heart rate.
In one embodiment, wearable device 100 can also include that fingerprint sensor can by reading fingerprint
Realize the functions such as safety verification.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
In one embodiment, display panel 1061 uses flexible display screen, and wearable using flexible display screen sets
For when wearing, screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED screen
Body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, the present embodiment
It is not limited thereto.
In one embodiment, the display panel 1061 of wearable device can take rectangle, ring when convenient for wearing
Around.In other embodiments, other modes can also be taken.
User input unit 107 can be used for receiving the number or character information of input, and generate and wearable device
User setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch behaviour of user on it or nearby
Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel
Operation near 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touching
Two parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch behaviour
Make bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.This
Outside, touch panel 1071 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching
Panel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072
It can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation
One of bar etc. is a variety of, specifically herein without limitation.
In one embodiment, one or more buttons have can be set in the side of wearable device 100.Button can be with
The various ways such as short-press, long-pressing, rotation are realized, to realize a variety of operating effects.The quantity of button can be different to be multiple
It can be applied in combination between button, realize a variety of operating functions.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing wearable device as two independent components, but in certain embodiments,
Touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of wearable device, specifically herein
Without limitation.For example, processor 110 can be controlled when receiving the message informing of a certain application program by radio frequency unit 101
The message informing show in a certain predeterminable area of display panel 1061 by system, the predeterminable area and touch panel 1071 certain
One region is corresponding, can be to corresponding to area on display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071
The message informing shown in domain is controlled.
Interface unit 108 be used as at least one external device (ED) connect with wearable device 100 can by interface.Example
Such as, external device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, You Xianhuo
Wireless data communications port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in wearable device 100 or can
For transmitting data between wearable device 100 and external device (ED).
In one embodiment, wearable device 100 interface unit 108 using contact structure, by contact with
Corresponding other equipment connection, realizes the functions such as charging, connection.Use contact can be with waterproof.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of wearable device, utilizes various interfaces and the entire wearable device of connection
Various pieces, by running or execute the software program and/or module that are stored in memory 109, and call and be stored in
Data in memory 109 execute the various functions and processing data of wearable device, to carry out to wearable device whole
Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation
Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing
Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Wearable device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply
111 can be logically contiguous by power-supply management system and processor 110, thus charged by power-supply management system realization management,
The functions such as electric discharge and power managed.
Although Fig. 1 is not shown, wearable device 100 can also be including bluetooth module etc., and details are not described herein.It is wearable to set
Standby 100, by bluetooth, can connect with other terminal devices, realize communication and the interaction of information.
Fig. 2-Fig. 4 is please referred to, is the structure under a kind of a kind of embodiment of wearable device provided in an embodiment of the present invention
Schematic diagram.Wearable device in the embodiment of the present invention, including flexible screen.In wearable device expansion, flexible screen is in
Strip;When wearable device is in wearing state, flexible screen bending is annular in shape.Fig. 2 and Fig. 3 show wearable device
Structural schematic diagram when screen is unfolded, Fig. 4 show structural schematic diagram when wearable device screen-bending.
Based on above-mentioned each embodiment, it can be seen that if the equipment is wrist-watch, bracelet or can wearable device
When, the screen of the equipment can not overlay device watchband region, can also be with the watchband region of overlay device.Here, this Shen
It please propose a kind of optional embodiment, in the present embodiment, the equipment can be wrist-watch, bracelet or wearable can set
Standby, the equipment includes screen and interconnecting piece.The screen can be flexible screen, and the interconnecting piece can be watchband.It can
Choosing, the screen of the equipment or the viewing area of screen can be partly or completely covered on the watchband of equipment.Such as Fig. 5
Shown, Fig. 5 is a kind of a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application, the equipment
Screen extends to two sides, and part is covered on the watchband of equipment.In other embodiments, the screen of the equipment can also be with
It is all covered on the watchband of the equipment, the embodiment of the present application is not limited thereto.
Based on above-mentioned wearable device, each embodiment of the method for the present invention is proposed.
Embodiment 1
Please refer to Fig. 6, Fig. 7 and Fig. 8.The present invention provides a kind of wearable device upgrade method, the wearable device liter
Grade method the following steps are included:
S101, wearable device detect upgrade package;
S102, wearable device download upgrade package, and wearable device simultaneously verifies system subregion remaining space size;
If S103, system subregion remaining space are more than or equal to preset value A, wearable device executes normal upgrading stream
Journey;If system subregion remaining space is less than preset value A, wearable device obtains remaining space size and executes following step
Suddenly;
Upgrade package is unziped to cache subregion by S104, wearable device, and upgrade package is decomposed into several by wearable device
Decompose attached bag;
If the half of S105, system subregion remaining space is more than or equal to the maximum space for decomposing attached bag that takes up space
Positive integer times, then wearable device is according to subpackage number dynamic processing update_script upgrade script;
S106, wearable device upgrade each decomposition attached bag respectively, can wear after the upgrading of each decomposition attached bag is completed
It wears equipment and removes the decomposition attached bag immediately.
In the above scheme: step S101, wearable device periodically inquire that server end can currently be worn with the presence or absence of adaptation
The upgrade package of equipment is worn, if checking the upgrade package of adaptation contemporary wearable equipment, server sends message to wearable device.
Step S102, wearable device download upgrade package from server end, can pass through WiFi or radio honeycomb with wearable device
The modes such as network access internet, download the upgrade package from server end;Certainly, in order to accelerate to download, wearable device may be used also
To download the upgrade package from the mirror image server closed on;After upgrade package is downloaded, it is also necessary to the integrality etc. of upgrade package is verified,
Wearable device is equipped with private key, server is equipped with public key, and by verifying the digital signature of upgrade package, upgrade package can be confirmed
It is whether legal.In step S103, needs to guarantee enough memory space surpluses during system upgrade, be otherwise possible to because depositing
It stores up insufficient space and upgrading is caused to fail, need to determine that the remaining space size of system subregion is higher than preset value A (such as step
Shown in S103A), the preset value A is specified or is set by the user by operating system, such as: preset value A=200M;If
The remaining space of system subregion is sufficiently large, then can be directly entered normal upgrading process (referring to step S103B), if
The remaining space of system subregion is insufficient, then needs to be handled using upgrade method of the invention.Step S104, upgrade package exist
Cache subregion carries out decomposition several times, obtains the decomposition packet of several volume-diminisheds by a upgrade package (compressed package files),
Thus system subregion remaining space needed for reducing escalation process.Operation splitting in step S104 can operate once,
It can operate for several times, but decomposition that can not be unlimited, the minimum unit of subpackage is to obtain the patch text with standalone upgrade function
Part, the patch file can be used for escalation process.After subpackage operation, it is also necessary to determine shared by current decomposition attached bag
The volume of space the maximum is less than the half of system subregion, if this is assumed to be very, thens follow the steps S106, carries out subpackage liter
Grade prompts user to carry out space cleaning operation if this is assumed to be vacation.
That is, upgrade method of the invention can reduce the possibility for causing upgrading to fail because of memory space inadequate
Property, still, if not subdivisible decomposition attached bag is still since file size is more than default after the operation for decomposing upgrade package
Value A (such as: 200M), then, upgrading can not still will fail, at this time, it may be necessary to which user is prompted manually to carry out space cleaning.
Preferably, the wearable device includes wrist machine.The wearable device can run Android (English:
Android) system.
Preferably, in step S105, the positive integer times refer to 1 times, 2 times, 3 times ... etc..
When wearable device downloads upgrade package from server or mirror image server, under being determined according to the size of upgrade package
The opportunity of load, such as: when the file size of upgrade package be greater than preset value C (such as: when preset value C=100M), using WiFi net
Network downloading is downloaded when file size is less than or equal to preset value C using WiFi or wireless cellular network.In downloading process, such as
Fruit occur network change, such as: when from WiFi network be switched to wireless cellular network (such as: 2G network, 3G network, 4G network,
5G network etc.) when, pause downloading continues downloading task when being switched to WiFi network from wireless cellular network.The preset value
C can be specified by operating system, can also be specified or be modified by user's manual setting.
Preferably, the upgrade package is FOTA upgrade package.The server is FOTA server.
Please refer to Fig. 9.Preferably, before step S104, that is, unzip to upgrade package in the wearable device
Before cache subregion, further includes:
The garbage files of S104A, wearable device cleaning cache subregion.
By clearing up garbage files, increase the remaining space of cache subregion as far as possible.The rubbish liquidation procedures can be by
Operating system initiate by its own and automatic running, can also be started manually by the user and run.
Please refer to Figure 10.Further, upgrade package is decomposed into several points by the wearable device in step S104
Attached bag is solved, is specifically included:
Upgrade package is decomposed into the first decomposition attached bag by S104B, wearable device, and the first decomposition attached bag includes patch
Packet, img packet and add packet.
By decomposing upgrade package, upgrade package is decomposed into several the first decomposition attached bags.
Please refer to Figure 11.Further, upgrade package is unziped to cache points by step S104, i.e., the described wearable device
Upgrade package is decomposed into several and decomposes attached bag, specifically included by area's (referring to step S1040):
Upgrade package is decomposed into several the first decomposition attached bags by S104B, wearable device;
S104C, wearable device will take up space primary or more more than or equal to the first decomposition attached bag decomposition of preset value B
It is secondary, until all decomposition attached bags take up space less than preset value B or decomposition attached bag cannot continue decomposition.
It is also pointed out that: preset value B can also take identical value with preset value A;Preset value B≤preset value A;Preset value C≤pre-
If value A.
Such as: general img packet and add packet are bigger, according to circumstances can carry out second to img packet and add packet and decompose behaviour
Make.
If the file size of the first whole decomposition attached bags is both less than preset value A, upgrade package operation splitting is with regard to this knot
Next beam executes step S105;If being decomposed and being wrapped by traversal first after once decomposing, discovery wherein contains one
A or several file sizes are greater than preset value B, then also need to continue operation splitting, until the file size of whole decomposition attached bags
Less than or equal to preset value B or whole decomposes attached bag subpackage to minimum unit.
If still remaining the file size for decomposing attached bag greater than system subregion remaining space after operation splitting
Half, this just needs user to clear up the file in file or the rule cleaning memory space by formulating based on user manually.
After clearing up garbage files (garbage files as cleared up system subregion), the file body for decomposing attached bag is still remained
Product is greater than the half of system subregion remaining space, then should issue the user with the notice it is not recommended that updating operation.
Also, wearable device should also send to server and notify, server will be reduced upon receipt of a notification to the machine
Type pushes the frequency of upgrade package, if server is accumulative receive such a certain number of notice after, temporary close this can wear
The automatic download service of upgrade package for wearing equipment, until user manually downloads upgrade package or updates packet.
Please refer to Figure 12.Further, after step S104C, that is, described until all decomposition attached bag institute duties
Between be less than preset value B or decompose attached bag cannot continue decompose until after, further includes:
If S105A, the maximum space for decomposing attached bag that takes up space are greater than the half of system subregion remaining space,
Wearable device prompts user to clear up space;
If S105B, the maximum space for decomposing attached bag that takes up space are less than or equal to the one of system subregion remaining space
Half, then wearable device upgrades each decomposition attached bag respectively, and wearable device is vertical after the upgrading of each decomposition attached bag is completed
The decomposition attached bag is removed, is completed until all decomposition attached bags upgrade.
It is easy to learn, when the taken up space maximum space for decomposing attached bag is less than or equal to system subregion remaining space
When half, space shared by whole decomposition attached bags is both less than the half for being equal to system subregion remaining space.
Preferably, generate decompose attached bag when, wearable device be each decompositions attached bag unique file label of distribution or
Number.
After the completion of the upgrading of each decomposition attached bag, wearable device discharges the decomposition attached bag by removing the decomposition attached bag
Occupied memory space can save the consumption of memory space as far as possible.
Please refer to Figure 13.Further, before step S104, further includes:
S103C, wearable device send message to server, make server that upgrade package is simulated subpackage.
The S103C, specifically includes:
S103C1, wearable device send to server and request, and server end is made to fictionalize one and this wearable device
The same or similar virtual wearable device of system subregion remaining space situation;
S103C2, wearable device send to server and notify, divide server on virtual wearable device
Package operation;
The subpackage that S103C3, wearable device receive server transmission operates completed message, and wearable device is sentenced
Disconnected the case where decomposing twice that whether there is file size in attached bag greater than system subregion remaining space size, if there is this
Class decomposes attached bag, then continues to execute following steps;
S103D, wearable device receive the message of server transmission, and wearable device interrupts updating operation, alternatively, can
Wearable device notifies user to clear up memory space manually.
Preferably, the virtual wearable device can be generated by technologies such as virtual machines.Terminate in simulation subpackage
Afterwards, server end deletes the virtual wearable device.
By simulating subpackage operation, the as far as possible possibility of the failure of discovery upgrading in advance in advance in server end, to mention
Rise success rate for upgrading.
Please refer to Figure 14.Further, after step S105, that is, then handled according to subpackage number dynamic described
After update_script upgrade script, further includes:
S1051, wearable device receive the touch operation of confirmation system update, alternatively,
S1052, wearable device determine the time of system update according to the preset rule of user.Such as: user is pre-
It first sets and is updated between 00:30~01:30 on every Mondays.
Above-mentioned steps S1051 corresponding is manual mode, and the manual mode is user by touching interactive operation, is determined
Whether agree to currently update;Above-mentioned steps S1052 corresponding is automatic mode, the automatic mode be by wrist machine operating system from
Dynamic processing.Wrist machine can issue the user with confirmation pop-up on a display screen, if user clicks the ACK button in pop-up,
Step S1052 is no longer executed, if user has ignored the pop-up, wrist machine executes step S1052.
Since during system upgrade, wearable device has one unusable time, user is risen by confirmation
Grade operation, or selection suitable time are upgraded.
It is further that explanation is unfolded below by taking step S1052 as an example.
Please refer to Figure 15.Further, before step S1052, further includes:
S1053, wearable device monitor motion state, if wearable device be in movement in (such as: user wear wrist
Machine carry out on foot, other movements such as run, play ball), then it is automatic to postpone the time for executing step S106;If wearable device is in
In static, then wearable device executes step S1052.
It the interval of above-mentioned automatic retardation time can be according to the form or other forms of Fibonacci sequence.If pressed
It according to the form of Fibonacci sequence, postpones 1 hour, postpones 2 hours for the first time for second, third time postpones 3 hours, pushes away for the 4th time
Slow 5 hours, the 5th postponement 8 hours, the 6th postponement 13 hours, the 7th postponement 21 hours ..., and so on.In this way,
It can avoid bothering user as far as possible.It is also pointed out that in other embodiments of the invention, in the event of automatic
The step of retardation time, is also referred to the scheme of automatic retardation time herein.
Further, when the user of wearable device is in sleep state, system executes step S106 automatically.With
Family wears wearable device (such as wrist machine) and enters sleep, while determining current time, to judge that user is lunch break or evening
Between sleep, within user's night sleep period carry out the upgrading of wrist machine.Whether detection user is in sleep state, can be used existing
Some sleep detection methods, such as: the heart rate etc. by monitoring user judges whether user enters sleep state.It is more highly preferred to
, after user enters deep sleep, carry out the update operation of wearable device.Certainly, if user's entrance is shallow
Degree sleep can also carry out the update operation of wearable device.
In order to which more accurately the opportunity of assessment updating operation, wrist machine can establish the sleep model of user, pass through collection
The sign data of user establishes the model of user's sleep habit, and with the sleeping time of model prediction user, wrist machine passes through calling
Wrist machine update time is arranged within the time range of the prediction sleeping time data of the prediction.
Such as: by the sign data of continuous several days analysis user A, obtain: between 23:30~7:30, user is in
Night sleep state, wherein the deep sleep time is 2:00~5:00;Lunch break state is between 13:00~14:00.Wrist machine
Operating system the time of system upgrade can be arranged in 2:00~5:00.
When the sleep habit of user changes, the update time of wrist machine also changes therewith.Such as: user A:8:
Sleep state is between 00~16:00, wherein the deep sleep time is 10:00~11:30.So, wrist machine operating system can
Being arranged the time of system upgrade in 10:00~11:30.The case where this sleep habit changes, it is possible to occur
When user needs day shift, night shift rotation, therefore the sleeping time of user can also change.
Please refer to Figure 16.Further, before step S1052, further includes:
Noise intensity under S1054, wearable device monitoring current environment is held if noise intensity is lower than preset value E
Row step S1053;If noise intensity is higher than preset value E, automatic to postpone the time for executing step S106.
The preset value E is a measurement noise index, such as: E=70 decibels of preset value.
Step S1054 is mainly considered: if wearable device is in noisy environment, it may be possible to since user exists
Work (such as meeting is consulted, negotiated), rides public transportation means and (such as rides on a train, is high at outdoor activity (concert is participated in such as shopping)
Iron, subway, aircraft, steamer) etc., wearable device is carried out at this time carries out system upgrade and improper.
Further, even if user is now in deep sleep, if but since user is in stronger noise
In the middle, the sleep quality of user is possible to poor, therefore user is likely to wake up at any time, so, sentence even by S1053
It makes user and is in deep sleep, but determine user by S1054 and be under noisy noisy environment, also the behaviour of wrist machine
Make system also for the automatic time for postponing upgrading.Such as: user's A deep sleep time is 2:00~5:00, and user A is in 3:00
Just in used during taking train sleeping berth, although user enters deep sleep at this time, since aboard user is likely to wake up at any time
Come over, so, wrist machine is by upgrading plan automatically delaying at this time.
Please refer to Figure 17.Further, after step S1052, further includes:
S1055, wearable device monitor remaining capacity, if remaining capacity is higher than preset value D, then follow the steps S1054;If
Remaining capacity be lower than preset value D, then wearable device prompt user charge, and automatically postpone execute step S106 when
Between.
Wherein, the preset value D, which can be absolute residual charge value and be also possible to remaining capacity, accounts for battery actual capacity
Ratio, such as: preset value D is 50%.
Step S1055 mainly considers wearable device when executing updating operation, needs to keep sufficient electricity.
Preferably, wearable device first carries out S1055, then executes S1054, then executes S1053, then executes step
S1052.That is, further judging environment locating for wearable device if the remaining capacity of wearable device meets upgrading and requires
If appropriate for upgrading, if environmental noise is lower, illustrates that user is in relatively quiet environment, then further judge wearable
Whether equipment is kept in motion, if wearable device is in rest state, wearable device is according to the rule of user preset
Determine update time.
Such as:
1. the remaining capacity of wearable device is 70%, and wearable device is in the gymnasium that environmental noise is 40 decibels
Interior, since wearable device is kept in motion, wearable device postpones update time;
2. the remaining capacity of wearable device is 75%, and wearable device is in the bedroom that environmental noise is 30 decibels
It is interior, since wearable device monitors that user is in sleep state;And according to the sleep habit of user, wearable device is judged
User will also continue sleep a period of time, and wearable device executes system upgrade.
Further, wearable device can successively execute a step in step S1055, S1054, S1053
Or three steps of two steps or whole, then execute step S1052.
Wearable device executes step S1055, S1054, S1053, is to reduce and influence to use because of system upgrade
The probability of family normal use wearable device.
Certainly, if wearable device is in charged state, and remaining capacity be higher than preset value F (such as: preset value D=
30%) battery condition needed for, wearable device also complies with upgrading.That is, the alternative steps of S1055:
S1056, wearable device monitor whether under charged state, if being in charged state, the week of wearable device
The inspection of phase property (such as: check within every 5 minutes primary) carry whether battery dump energy is higher than preset value F, once remaining capacity is high
In preset value F, S106 is thened follow the steps.
Please refer to Figure 18.Further, step S101, i.e., the described wearable device detect upgrade package, comprising:
S1011, wearable device timing pass through network and send the request for obtaining upgrade package to FOTA server;
S1012, wearable device receive the updated notice of upgrade package of FOTA server sending;
S1013, wearable device download upgrade package from FOTA server.
Figure 21 is please referred to, wrist machine is connect with server by go-between, and the go-between refers to internet.
Wearable device regularly can check whether there is current versions to FOTA server (background server of producer)
The upgrade package of adaptation updates packet, and if there is suitable upgrade package, FOTA server sends corresponding notice to wearable device.
Please refer to Figure 19.Further, step S106 upgrades each decomposition attached bag described, respectively at each point
After wearable device removes the decomposition attached bag immediately after solution attached bag upgrading is completed, further includes:
S107, wearable device notice FOTA server updating are completed.
Please refer to Figure 20.Further, before step S106, i.e., each decomposition attached bag is upgraded it respectively described
Before, further includes:
S106A, completeness check is carried out to each decomposition attached bag.
By completeness check ensure to decompose attached bag be it is complete, without shortage of data.
Further, each decomposition attached bag can be generated check code (such as MD5 code) by wrist machine, then by the check code
By transmission of network to server end, server end judges whether the decomposition attached bag is complete, if this point by verifying check code
It is imperfect to solve attached bag, server notice wrist machine regenerates the decomposition attached bag, and re-starts verification.
Embodiment 2
According to embodiment 1, upgrade package can be decomposed, decomposition obtains several and decomposes attached bag.If all points
The file size of solution attached bag is both less than the half of system subregion remaining space, then will can decompose attached bag one by one according to upgrading
Script carries out updating operation.
These decompose attached bag in escalation process, and decomposing the sequencing that attached bag executes can also further optimize.With
The progress of upgrading, although one decomposition attached bag of every upgrading just immediately by decomposition attached bag deletion, with the operation of system,
The remaining space of system subregion is also possible to that the trend gradually decreased can be presented.Therefore, it is preferable to preferentially that file size is biggish
Attached bag is decomposed preferentially to upgrade.
Please refer to Figure 22.In Figure 22, upgrade package is 455M (English: MByte, Mbytes), by upgrade package institute duty
Between be greater than preset value A (preset value A takes 200M), execute the 1st time decomposition, obtained by the 1st classification: the patch packet of 10M,
The add packet of the img packet of 350M, 95M;Since img packet takes up space greater than preset value B (preset value B takes 100M), execute the 2nd time
It decomposes, is obtained by the 2nd decomposition: decomposition attached bag 1, the decomposition attached bag 2 of 100M of 250M;It is taken up space by decomposing attached bag 1
Greater than preset value B (preset value B takes 100M), the 3rd decomposition is executed, is obtained by the 3rd decomposition: the decomposition attached bag 3 of 200M,
The decomposition attached bag 4 of 50M;It takes up space by decomposing attached bag 3 greater than preset value B (preset value B takes 100M), executes the 4th and decompose,
It decomposes to obtain by the 4th: decomposition attached bag 5, the decomposition attached bag 6 of 40M of 160M;It is greater than in advance by decomposing attached bag 5 and taking up space
If value B (preset value B takes 100M), executes the 5th and decompose, decompose to obtain by the 5th: the decomposition of the decomposition attached bag 7,90M of 70M
Attached bag 8.
When being decomposed upgrade package, a tree construction is formd, all leaf nodes are all to decompose attached bag on tree,
Wearable device upgrades each decomposition attached bag respectively.
Please refer to Figure 23.For the upgrading sequence of Optimal Decomposition attached bag, optimized using Huffman tree.With file size
For weight, the decomposition attached bag for keeping file size bigger is closer from root node.That is, each upgrading for decomposing attached bag is suitable in upgrading
Sequence is: decomposing attached bag 2, add packet, decomposes attached bag 8, decompose attached bag 7, decompose attached bag 4, decompose attached bag 6, patch packet.
By the way that decomposition tree is built into Huffman binary tree, so as to so that updating operation is more smooth.By preferentially will
File size biggish decomposition attached bag upgrading, avoid first lesser the decompositions attached bag of file size is upgraded cause file size compared with
Big decomposition attached bag can not upgrade.Especially some file sizes are slightly less than the decomposition attached bag of preset value B, if its upgrading sequence
More rearward, it may be changed in escalation process again due to system subregion remaining space, and lead to this kind of upgrade package
It can not upgrade successfully.Embodiment 2 optimizes the upgrading sequence for decomposing attached bag, it is further provided wrist machine by building optimal tree
The probability upgraded successfully.
Embodiment 3
The present invention also provides a kind of wearable device, the wearable device includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
When the computer program is executed by the processor realize embodiment 1 and or embodiment 2 described in it is wearable
The step of device updating method.
It should also be noted that, the wearable device upgrade procedure stored on the memory of the wearable device and implementation
Example 1 and embodiment 2 belong to same design, implement process detailed in Example 1 and embodiment 2, and embodiment 1 and embodiment
Technical characteristic in 2 is corresponding applicable in embodiment 3, and details are not described herein.
The method that the embodiments of the present invention disclose can be applied in the processor, or real by the processor
It is existing.The processor may be a kind of IC chip, have signal handling capacity.During realization, the above method
Each step can be completed by the integrated logic circuit of the hardware in the processor or the instruction of software form.The processor
It can be general processor, DSP or other programmable logic device, discrete gate or transistor logic, discrete hardware
Component etc..The processor may be implemented or execute disclosed each method, step and logic diagram in the embodiment of the present invention.
General processor can be microprocessor or any conventional processor etc..The method in conjunction with disclosed in the embodiment of the present invention
Step can be embodied directly in hardware decoding processor and execute completion, or with the hardware and software module in decoding processor
Combination executes completion.Software module can be located in storage medium, which is located at memory, and the processor reading is deposited
Information in reservoir, in conjunction with the step of its hardware completion preceding method.It is appreciated that the memory of the embodiment of the present invention can be
Volatile memory or nonvolatile memory also may include both volatile and non-volatile memories.Wherein, non-easy
Lose property memory can be read-only memory (ROM, Read-Only Memory), programmable read only memory (PROM,
Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM (EPROM, Erasable Read-
Only Memory), electricallyerasable ROM (EEROM) (EEPROM, Electrically Erasable Programmable
Read-Only Memory), magnetic RAM (FRAM, Ferromagnetic Random Access
Memory), flash memory (Flash Memory) or other memory technologies, compact disc read-only memory (CD-ROM, Compact Disk
Read-Only Memory), digital versatile disc (DVD, Digital VideoDisk) or other optical disc storages, magnetic holder, magnetic
Band, disk storage or other magnetic memory apparatus;Volatile memory can be random access memory (RAM, Random
Access Memory), by exemplary but be not restricted explanation, the RAM of many forms is available, such as static random-access
Memory (SRAM, Static Random Access Memory), static random access memory (SSRAM, Synchronous
Static Random Access Memory), dynamic random access memory (DRAM, Dynamic Random Access
Memory), Synchronous Dynamic Random Access Memory (SDRAM, SynchronousDynamic Random Access
Memory), double data speed synchronous dynamic RAM (DDRSDRAM, Double Data Rate
Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory
(ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links dynamic random are deposited
Access to memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus arbitrary access are deposited
Reservoir (DRRAM, Direct Rambus Random Access Memory).The memory of description of the embodiment of the present invention is intended to wrap
Include but be not limited to the memory of these and any other suitable type.
Embodiment 4
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage have one or
The multiple programs of person, one or more of programs can be executed by one or more processor, to realize embodiment 1 and implement
Described in example 2 the step of wearable device upgrade method.
It should also be noted that, the wearable device upgrade procedure stored on the memory of the wearable device and implementation
Example 1 and embodiment 2 belong to same design, implement process detailed in Example 1 and embodiment 2, and embodiment 1 and embodiment
Technical characteristic in 2 is corresponding applicable in embodiment 3, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium (such as
ROM/RAM, magnetic disk, CD) in, including some instructions use is so that a terminal (can be mobile phone, computer, server, air-conditioning
Device or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of wearable device upgrade method, which is characterized in that the wearable device upgrade method the following steps are included:
Wearable device detects upgrade package;
Wearable device downloads upgrade package;Wearable device verifies system subregion remaining space size;
If system subregion remaining space is more than or equal to preset value A, wearable device executes normal upgrading;If system
Subregion remaining space is less than preset value A, then wearable device obtains system subregion remaining space value and executes following steps;
Upgrade package is unziped to cache subregion by wearable device, and upgrade package is decomposed into several and decomposes attached bag by wearable device;
If the half of system subregion remaining space is more than or equal to the positive integer in the maximum space for decomposing attached bag that takes up space
Times, then wearable device is according to subpackage number dynamic processing update_script upgrade script;
Wearable device upgrades each decomposition attached bag respectively, each decomposition attached bag upgrading complete after wearable device immediately
Remove the decomposition attached bag.
2. wearable device upgrade method according to claim 1, which is characterized in that it is described upgrade package is decomposed into it is several
A decomposition attached bag, comprising:
Upgrade package is decomposed into the first decomposition attached bag by wearable device, the first decomposition attached bag include patch packet, img packet and
Add packet.
3. wearable device upgrade method according to claim 1, which is characterized in that the upgrade package is decomposed into several
Decompose attached bag, comprising:
Upgrade package is decomposed into several the first decomposition attached bags by wearable device;
Wearable device will take up space decomposed more than or equal to the first of preset value B attached bag decompose it is one or many, until all
Decomposition attached bag take up space less than preset value B or decompose until attached bag cannot continue decomposition.
4. wearable device upgrade method according to claim 3, which is characterized in that described until all decomposition
After packet takes up space less than preset value B or until decomposition attached bag cannot continue to decompose, comprising:
If the maximum space for decomposing attached bag that takes up space is greater than the half of system subregion remaining space, wearable device
User is prompted to clear up space;
If the maximum space for decomposing attached bag that takes up space is less than or equal to the half of system subregion remaining space, wearable
Equipment upgrades each decomposition attached bag respectively, and wearable device removes the decomposition immediately after the upgrading of each decomposition attached bag is completed
Attached bag is completed until all decomposition attached bags upgrade.
5. wearable device upgrade method according to claim 1, which is characterized in that the wearable device is according to subpackage
After number dynamic processing update_script upgrade script, further includes:
Wearable device receives the touch operation of confirmation system update, alternatively,
Wearable device determines the time of system update according to the preset rule of user.
6. wearable device upgrade method according to claim 1, which is characterized in that the wearable device detects liter
Grade packet, comprising:
Wearable device timing passes through network and sends the request for obtaining upgrade package to FOTA server;
Wearable device receives the updated notice of upgrade package of FOTA server sending;
Wearable device downloads upgrade package from FOTA server.
7. wearable device upgrade method according to claim 6, which is characterized in that the wearable device will be each
Attached bag is decomposed to upgrade respectively, after wearable device removes the decomposition attached bag immediately after the upgrading of each decomposition attached bag is completed,
Further include:
Wearable device notifies FOTA server updating to complete.
8. wearable device upgrade method according to claim 1, which is characterized in that risen respectively by each decomposition attached bag
Before grade, further includes:
Wearable device carries out completeness check to each decomposition attached bag.
9. a kind of wearable device, which is characterized in that the wearable device includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
It realizes when the computer program is executed by the processor and wearable is set as described in any item of the claim 1 to 8
The step of standby upgrade method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8
The step of described in any item wearable device upgrade methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910557136.5A CN110221856B (en) | 2019-06-25 | 2019-06-25 | Wearable device upgrading method, wearable device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910557136.5A CN110221856B (en) | 2019-06-25 | 2019-06-25 | Wearable device upgrading method, wearable device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110221856A true CN110221856A (en) | 2019-09-10 |
CN110221856B CN110221856B (en) | 2024-03-19 |
Family
ID=67814821
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910557136.5A Active CN110221856B (en) | 2019-06-25 | 2019-06-25 | Wearable device upgrading method, wearable device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110221856B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061506A (en) * | 2019-12-17 | 2020-04-24 | 努比亚技术有限公司 | Application management and control method, wearable device and computer-readable storage medium |
CN111352730A (en) * | 2020-02-11 | 2020-06-30 | 浙江大华技术股份有限公司 | Caching method and device for application program upgrading, computer equipment and storage medium |
CN111562887A (en) * | 2020-05-09 | 2020-08-21 | 青岛海信传媒网络技术有限公司 | Display device and partition capacity expansion method |
CN111787541A (en) * | 2020-07-30 | 2020-10-16 | 杭州妙联物联网技术有限公司 | Wireless equipment rapid network distribution method and system based on multi-sub-packet independent record |
CN112579114A (en) * | 2019-09-27 | 2021-03-30 | 阿里巴巴集团控股有限公司 | Program upgrading method and device for Internet of things equipment and Internet of things equipment |
CN113495745A (en) * | 2020-04-01 | 2021-10-12 | 杭州萤石软件有限公司 | Upgrading method and device for electronic equipment |
CN113778490A (en) * | 2021-09-16 | 2021-12-10 | 深圳市易平方网络科技有限公司 | Software upgrading processing method and device based on intelligent terminal and intelligent terminal |
CN114217838A (en) * | 2022-02-22 | 2022-03-22 | 深圳市微克科技有限公司 | Intelligent wearable dial plate updating method and system |
CN114461240A (en) * | 2021-06-30 | 2022-05-10 | 荣耀终端有限公司 | Software upgrading method, software upgrading system and electronic equipment |
CN114661322A (en) * | 2022-03-11 | 2022-06-24 | 荣耀终端有限公司 | Upgrading method of operating system, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843656A (en) * | 2016-04-22 | 2016-08-10 | Tcl集团股份有限公司 | System upgrading method for insufficient disk space, terminal device and server |
CN106528249A (en) * | 2016-11-30 | 2017-03-22 | 北京小米移动软件有限公司 | Storage method and device of upgrade package, and terminal |
CN106970816A (en) * | 2017-03-31 | 2017-07-21 | 广东欧珀移动通信有限公司 | A kind of software upgrading processing method, device and audio-frequence player device |
CN107817997A (en) * | 2017-11-24 | 2018-03-20 | 四川长虹电器股份有限公司 | Solves the method for upgrading software for causing upgrading to fail for Insufficient disk space |
WO2018076755A1 (en) * | 2016-10-25 | 2018-05-03 | 西安中兴新软件有限责任公司 | Method and apparatus for issuing upgrade package |
CN108228218A (en) * | 2018-01-31 | 2018-06-29 | 青岛海信移动通信技术股份有限公司 | A kind of electric terminal method for upgrading system and device |
CN108399079A (en) * | 2017-02-07 | 2018-08-14 | 中兴通讯股份有限公司 | Difference upgrade method and device, terminal |
CN109144541A (en) * | 2018-08-02 | 2019-01-04 | 广东小天才科技有限公司 | Upgrade method, update device and the terminal of wearable device |
-
2019
- 2019-06-25 CN CN201910557136.5A patent/CN110221856B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843656A (en) * | 2016-04-22 | 2016-08-10 | Tcl集团股份有限公司 | System upgrading method for insufficient disk space, terminal device and server |
WO2018076755A1 (en) * | 2016-10-25 | 2018-05-03 | 西安中兴新软件有限责任公司 | Method and apparatus for issuing upgrade package |
CN107992312A (en) * | 2016-10-25 | 2018-05-04 | 中兴通讯股份有限公司 | A kind of upgrade package delivery method and device |
CN106528249A (en) * | 2016-11-30 | 2017-03-22 | 北京小米移动软件有限公司 | Storage method and device of upgrade package, and terminal |
CN108399079A (en) * | 2017-02-07 | 2018-08-14 | 中兴通讯股份有限公司 | Difference upgrade method and device, terminal |
CN106970816A (en) * | 2017-03-31 | 2017-07-21 | 广东欧珀移动通信有限公司 | A kind of software upgrading processing method, device and audio-frequence player device |
CN107817997A (en) * | 2017-11-24 | 2018-03-20 | 四川长虹电器股份有限公司 | Solves the method for upgrading software for causing upgrading to fail for Insufficient disk space |
CN108228218A (en) * | 2018-01-31 | 2018-06-29 | 青岛海信移动通信技术股份有限公司 | A kind of electric terminal method for upgrading system and device |
CN109144541A (en) * | 2018-08-02 | 2019-01-04 | 广东小天才科技有限公司 | Upgrade method, update device and the terminal of wearable device |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112579114A (en) * | 2019-09-27 | 2021-03-30 | 阿里巴巴集团控股有限公司 | Program upgrading method and device for Internet of things equipment and Internet of things equipment |
WO2021057880A1 (en) * | 2019-09-27 | 2021-04-01 | 阿里巴巴集团控股有限公司 | Program upgrade method and apparatus for internet of things device, and internet of things device |
CN111061506A (en) * | 2019-12-17 | 2020-04-24 | 努比亚技术有限公司 | Application management and control method, wearable device and computer-readable storage medium |
CN111352730B (en) * | 2020-02-11 | 2023-07-14 | 浙江大华技术股份有限公司 | Caching method and device for application program upgrade, computer equipment and storage medium |
CN111352730A (en) * | 2020-02-11 | 2020-06-30 | 浙江大华技术股份有限公司 | Caching method and device for application program upgrading, computer equipment and storage medium |
CN113495745A (en) * | 2020-04-01 | 2021-10-12 | 杭州萤石软件有限公司 | Upgrading method and device for electronic equipment |
CN111562887A (en) * | 2020-05-09 | 2020-08-21 | 青岛海信传媒网络技术有限公司 | Display device and partition capacity expansion method |
CN111562887B (en) * | 2020-05-09 | 2023-10-27 | 青岛海信传媒网络技术有限公司 | Display device and partition capacity expansion method |
CN111787541A (en) * | 2020-07-30 | 2020-10-16 | 杭州妙联物联网技术有限公司 | Wireless equipment rapid network distribution method and system based on multi-sub-packet independent record |
CN114461240A (en) * | 2021-06-30 | 2022-05-10 | 荣耀终端有限公司 | Software upgrading method, software upgrading system and electronic equipment |
CN113778490A (en) * | 2021-09-16 | 2021-12-10 | 深圳市易平方网络科技有限公司 | Software upgrading processing method and device based on intelligent terminal and intelligent terminal |
CN114217838A (en) * | 2022-02-22 | 2022-03-22 | 深圳市微克科技有限公司 | Intelligent wearable dial plate updating method and system |
CN114661322A (en) * | 2022-03-11 | 2022-06-24 | 荣耀终端有限公司 | Upgrading method of operating system, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110221856B (en) | 2024-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110221856A (en) | A kind of wearable device upgrade method, wearable device and storage medium | |
CN110262849A (en) | Using starting method, wearable device and computer readable storage medium | |
CN110083220A (en) | A kind of power-saving processing method and wearable device | |
CN109947327A (en) | A kind of interface inspection method, wearable device and computer readable storage medium | |
CN110109725A (en) | A kind of interface color method of adjustment and wearable device | |
CN110062279A (en) | Video method of cutting out, wearable device and computer readable storage medium | |
CN110362368A (en) | Picture customization display methods, relevant device and the storage medium of wearable device | |
CN110099176A (en) | Breath screen display methods, wearable device and computer readable storage medium | |
CN109947227A (en) | Screen lighting method, wearable device and computer readable storage medium | |
CN110399195A (en) | A kind of desktop icons dynamic replacement method, equipment and computer readable storage medium | |
CN110308883A (en) | Method for splitting, wearable device and the computer readable storage medium of screen | |
CN110139270A (en) | Wearable device matching method, wearable device and computer readable storage medium | |
CN109933400A (en) | Display interface layout method, wearable device and computer readable storage medium | |
CN110058915A (en) | Interface adaptation adaptation method, device, wearable device and storage medium | |
CN110213637A (en) | Method, wearable device and the readable storage medium storing program for executing of video file increase watermark | |
CN110167113A (en) | A kind of apparatus control method, wearable device and computer readable storage medium | |
CN110058760A (en) | A kind of display methods, wearable device and computer readable storage medium | |
CN110399196A (en) | Wearable device and its changing interface implementation method and computer readable storage medium | |
CN110175593A (en) | Suspect object processing method, wearable device and computer readable storage medium | |
CN110071866A (en) | A kind of instant messaging application control method, wearable device and storage medium | |
CN110109721A (en) | A kind of wearable device control method, system, wearable device and storage medium | |
CN110149683A (en) | Applicative notifications processing method, wearable device and computer readable storage medium | |
CN110187978A (en) | Using mutual exclusion solution, wearable device and computer readable storage medium | |
CN110058671A (en) | A kind of electricity saving method, wearable device and storage medium cached based on HUB layers | |
CN110430560A (en) | Method, wearable device and the storage medium of wearable device upload data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |