CN110221856B - Wearable device upgrading method, wearable device and storage medium - Google Patents

Wearable device upgrading method, wearable device and storage medium Download PDF

Info

Publication number
CN110221856B
CN110221856B CN201910557136.5A CN201910557136A CN110221856B CN 110221856 B CN110221856 B CN 110221856B CN 201910557136 A CN201910557136 A CN 201910557136A CN 110221856 B CN110221856 B CN 110221856B
Authority
CN
China
Prior art keywords
wearable device
sub
upgrade
package
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.)
Active
Application number
CN201910557136.5A
Other languages
Chinese (zh)
Other versions
CN110221856A (en
Inventor
寇洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910557136.5A priority Critical patent/CN110221856B/en
Publication of CN110221856A publication Critical patent/CN110221856A/en
Application granted granted Critical
Publication of CN110221856B publication Critical patent/CN110221856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

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 wearable device upgrading method, which comprises the following steps: the wearable device detects an upgrade package; the wearable device downloads the upgrade package and verifies the size of the residual space of the system partition; if the residual space of the system partition is greater than or equal to a preset value A, normal upgrading is executed; if the residual space of the system partition is smaller than the preset value A, the wearable device acquires the size of the residual space and executes the following steps; the wearable device decompresses the upgrade package to the cache partition, and decomposes the upgrade package into a plurality of decomposition sub-packages; the wearable device dynamically processes the update_script upgrade script according to the number of the sub-packets; the wearable device upgrades each of the decomposed sub-packages separately. According to the method and the device, aiming at the characteristic of small storage space of the wrist machine, the size of the upgrade package is reduced by decomposing the upgrade package, the size of the residual space of the system partition required by upgrade is obviously reduced, the probability of upgrade failure caused by insufficient residual space of the system partition is further reduced, and the use efficiency of users is improved.

Description

Wearable device upgrading method, wearable device and storage medium
Technical Field
The application relates to the technical field of wearable equipment, in particular to a FOTA upgrading method, wearable equipment and a storage medium.
Background
With the popularization of intelligent terminals, wearable electronic devices such as intelligent watches, intelligent bracelets and the like have great market prospects. In order to provide better functionality, security, etc. to users, wearable device manufacturers need to often push out operating system upgrade packages to optimize the performance of the wearable device, provide new functionality, or address known potential safety hazards, etc.
Air Firmware upgrade (Firmware Over-The-Air, FOTA for short) mobile terminal, namely through cloud upgrade technology, is a device with networking function: for example, a mobile phone, a tablet computer, a portable media player, a mobile internet device, a wearable device and the like provide firmware upgrade services, a user uses a network to obtain an intelligent terminal system upgrade package in an on-demand and easily-extensible mode, and cloud upgrade is performed through a FOTA, so that system repair and optimization are completed.
In the process that a user uses wearable equipment (for example, a wrist machine is a mobile phone model in the form of a smart watch, the appearance is more similar to that of the smart watch, but the front surface of the mobile phone model is almost completely covered by a long and thin flexible material screen, and the characteristics of the wearable equipment and the mobile phone are integrated), as the use time is longer and longer, the storage space of the wearable equipment is smaller and smaller, and currently, when the FOTA is adopted, the system partition (system partition for short) is required to ensure that the residual space exceeds a certain threshold (for example, 200 Mb), otherwise, the upgrade is not allowed.
1) Because the memory of the wrist machine is smaller than that of the mobile phone, the residual space of the system partition is often smaller than the threshold value, and the upgrade is failed, so that the upgrade can be continuously completed only after the user manually cleans the storage space, the operation is troublesome, and the user experience is poor. Even though the storage space of the wrist machine is larger and larger along with the development of the technology, on one hand, the volume of the wrist machine is smaller, the memory space of the wrist machine is still smaller than that of a mobile phone, on the other hand, the scale of a system upgrade package is also larger and larger, and in addition, the storage space of the wrist machine sold earlier is smaller than that of the wrist machine of the current model, when a manufacturer pushes the upgrade package, the wrist machine of the early version in the support period needs to be considered, so that the shortage of the storage space of the wrist machine is a problem to be solved when the manufacturer provides the system upgrade.
2) Moreover, some mobile phones with poor configuration or older mobile phones are generally poorer in storage space than the current mainstream mobile phones, and the mobile phones are likely to suffer from system partition space deficiency to cause system upgrade failure.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a wearable equipment upgrading method, aiming at the characteristic of small storage space of a wrist machine, the size of an upgrading packet is reduced by decomposing the upgrading packet, the size of the residual space of a system partition required by upgrading is obviously reduced, the probability of upgrading failure caused by the insufficient residual space of the system partition is further reduced, and the use efficiency of a user is improved.
In order to achieve the purpose of the invention, the invention provides a wearable device upgrading method, which comprises the following steps:
the wearable device detects an upgrade package;
the wearable device downloads an upgrade package, and the wearable device checks the residual space size of the system partition;
if the residual space of the system partition is larger than or equal to a preset value A, the wearable device executes normal upgrading; if the residual space of the system partition is smaller than the preset value A, the wearable device acquires the size of the residual space and executes the following steps;
the wearable device decompresses the upgrade package to the cache partition, and the wearable device decomposes the upgrade package into a plurality of decomposition sub-packages;
if half of the residual space of the system partition is larger than or equal to the positive integer times of the maximum space of the decomposition sub-package, the wearable device dynamically processes the update_script upgrading script according to the number of the sub-packages;
According to the upgrade script, the wearable device upgrades each decomposition sub-packet respectively, and immediately clears the decomposition sub-packet after the upgrade of each decomposition sub-packet is completed.
Optionally, the decomposing the upgrade package into a plurality of decomposed sub-packages includes:
the wearable device breaks up the upgrade package into a first break-up sub-package comprising a patch package, an img package, and an add package.
Optionally, the wearable device decomposes the upgrade package into a plurality of decomposition sub-packages, including:
the wearable device decomposes the upgrade package into a plurality of first decomposition sub-packages;
the wearable device decomposes the first decomposition sub-packet with the occupied space being larger than or equal to a preset value B for one or more times until the occupied space of all the decomposition sub-packets is smaller than the preset value B or the decomposition sub-packets can not be decomposed continuously.
Optionally, after the space occupied by all the decomposed sub-packets is smaller than the preset value B or the decomposed sub-packets cannot be decomposed continuously, the method further includes:
if the largest space occupied by the decomposed sub-package is greater than half of the rest space of the system partition, the wearable device prompts a user to clear the space;
if the space of the decomposition sub-packet with the largest space is less than or equal to half of the rest space of the system partition, the wearable device upgrades each decomposition sub-packet respectively, and immediately clears the decomposition sub-packet after the completion of the upgrade of each decomposition sub-packet until the upgrade of all the decomposition sub-packets is completed.
Optionally, after dynamically processing the update_script upgrade script according to the number of the sub-packets, the method further includes:
the wearable device receives a touch operation confirming the system update, or,
and the wearable equipment determines the system updating time according to rules preset by a user.
Optionally, the wearable device detects an upgrade package, including:
the wearable device sends a request for acquiring an upgrade package to the FOTA server through a network at regular time;
the wearable device receives a notification that an upgrade package sent by the FOTA server is updated;
the wearable device downloads the upgrade package from the FOTA server.
Optionally, after the wearable device upgrades each of the disassembled sub-packages separately and immediately clears the disassembled sub-package after each of the disassembled sub-packages is upgraded, the method further includes:
the wearable device notifies the FOTA server that the upgrade is complete.
Optionally, before the wearable device upgrades each of the disassembled sub-packages separately, the method further includes:
the wearable device performs an integrity check on each of the disassembled subpackets.
To achieve the second object of the present invention, the present invention also provides a wearable device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
The computer program when executed by the processor implements the steps of the wearable device upgrade method of any of the above.
To achieve the third object of the present invention, the present invention also provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the wearable device upgrade method described in any one of the above.
The beneficial effects of the invention are as follows:
1. because the current system upgrade package is larger, the system partition is generally required to ensure that the residual space is 2 times larger than that of the upgrade package, so that normal upgrade can be performed. According to the scheme, the whole upgrade package is sub-packaged by decomposing the upgrade package, the size of each package is reduced, and the residual space of the system partition required by upgrade can be reduced. By reducing the required system partition size, the user can be given more application functionality to install.
2. By adopting the upgrading method of the invention, the wrist machine can be normally upgraded although the storage space is smaller. The wrist machine with lower storage space can also be updated and maintained by manufacturers in a longer period of time, so that the service life of the wrist machine is greatly prolonged, the manufacturing cost of the wrist machine is reduced, and the market competitiveness of the wrist machine is improved.
3. The upgrading method of the invention can also be used for mobile phones with lower configuration, so that the mobile phones with lower configuration (mainly with smaller storage space) can continuously obtain the updating service of mobile phone manufacturers in a longer period of time, and the service time of the mobile phones is prolonged.
4. The upgrading method of the invention can also be used for early purchased mobile phones of users to enable the stored mobile phones to be restarted, and the storage space of the early purchased mobile phones is smaller than that of the current main mobile phone model, so that the early purchased mobile phones cannot be upgraded slowly due to the limitation of the storage space, and if the early purchased mobile phones are continuously used by the users, the users cannot enjoy new functionality, and the safety such as the installation of security patches is poor. By adopting the upgrading method of the invention, the updating service period of the mobile phone can be greatly prolonged, thereby obtaining longer service time and higher cost performance than that of a competitive mobile phone.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic hardware structure of an implementation manner of a wearable device according to an embodiment of the present invention;
fig. 2 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 3 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 4 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 5 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
FIG. 6 is a schematic flow chart 1 of example 1 of the present application;
FIG. 7 is a further schematic illustration 1 of FIG. 6;
FIG. 8 is a further schematic view of FIG. 6;
FIG. 9 is a schematic flow chart 2 in example 1 of the present application;
FIG. 10 is a schematic flow chart 3 in example 1 of the present application;
FIG. 11 is a schematic flow chart 4 in example 1 of the present application;
FIG. 12 is a schematic flow chart 5 in example 1 of the present application;
FIG. 13 is a schematic flow chart 6 in example 1 of the present application;
FIG. 14 is a schematic flow chart 7 in example 1 of the present application;
FIG. 15 is a schematic flow chart 8 in example 1 of the present application;
FIG. 16 is a schematic flow chart 9 in example 1 of the present application;
FIG. 17 is a schematic flow chart 9 in example 1 of the present application;
FIG. 18 is a schematic flow chart 10 in example 1 of the present application;
FIG. 19 is a schematic flow chart 11 in example 1 of the present application;
FIG. 20 is a schematic flow chart 12 in example 1 of the present application;
FIG. 21 is a diagram illustrating the connection between the wrist machine and the server in embodiment 1 of the present application;
FIG. 22 is a schematic view 1 of example 2 of the present application;
fig. 23 is a schematic diagram 2 in example 2 of the present application.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The wearable device provided by the embodiment of the invention comprises a mobile terminal such as an intelligent bracelet, an intelligent watch and an intelligent mobile phone. With the continuous development of screen technology, mobile terminals such as smart phones and the like can also be used as wearable devices due to the appearance of screen forms such as flexible screens, folding screens and the like. The wearable device provided in the embodiment of the invention can comprise: RF (Radio Frequency) unit, wiFi module, audio output unit, A/V (audio/video) input unit, sensor, display unit, user input unit, interface unit, memory, processor, and power supply.
In the following description, a wearable device will be taken as an example, please refer to fig. 1, which is a schematic hardware structure of a wearable device implementing various embodiments of the present invention, where the wearable device 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the wearable device structure shown in fig. 1 does not constitute a limitation of the wearable device, and that the wearable device may include more or fewer components than shown, or certain components in combination, or a different arrangement of components.
The following describes the various components of the wearable device in detail with reference to fig. 1:
the radio frequency unit 101 may be used to send and receive information or send signals in a call process, specifically, the radio frequency unit 101 may send uplink information to the base station, or may send downlink information sent by the base station to the processor 110 of the wearable device to process the downlink information, where the downlink information sent by the base station to the radio frequency unit 101 may be generated according to the uplink information sent by the radio frequency unit 101, or may be actively pushed to the radio frequency unit 101 after detecting that the information of the wearable device is updated, for example, after detecting that the geographic position where the wearable device is located changes, the base station may send a notification of the change of the geographic position to the radio frequency unit 101 of the wearable device, after receiving the notification of the message, the radio frequency unit 101 may send the notification of the message to the processor 110 of the wearable device to process, and the processor 110 of the wearable device may control the notification of the message to be displayed on the display panel 1061 of the wearable device; typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication, which may specifically include: through wireless communication with a server in a network system, for example, the wearable device can download file resources from the server through wireless communication, for example, an application program can be downloaded from the server, after the wearable device finishes downloading a certain application program, if the file resources corresponding to the application program in the server are updated, the server can push a message notification of the resource update to the wearable device through wireless communication so as to remind a user to update the application program. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
In one embodiment, the wearable device 100 may access an existing communication network by inserting a SIM card.
In another embodiment, the wearable device 100 may access an existing communication network by setting an esim card (Embedded-SIM), and by adopting the esim card, the internal space of the wearable device may be saved and the thickness may be reduced.
It will be appreciated that although fig. 1 shows a radio frequency unit 101, it will be appreciated that the radio frequency unit 101 is not an essential component of a wearable device and may be omitted entirely as required within the scope of not changing the essence of the invention. The wearable device 100 may implement communication connection with other devices or communication networks through the wifi module 102 alone, which is not limited by the embodiment of the present invention.
WiFi belongs to a short-distance wireless transmission technology, and the wearable device can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of the wearable device, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the wearable device 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., call signal reception sound, message reception sound, etc.) related to a specific function performed by the wearable device 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
In one embodiment, the wearable device 100 includes one or more cameras, and by opening the cameras, capturing of images, photographing, video recording and other functions can be achieved, and the positions of the cameras can be set as required.
The wearable device 100 further comprises at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the wearable device 100 moves to the ear. As one type of motion sensor, the accelerometer sensor can detect the acceleration in all directions (typically three axes), and can detect the gravity and direction when stationary, and can be used for applications for recognizing the gesture of a mobile phone (such as horizontal-vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer, knocking), and the like.
In one embodiment, the wearable device 100 further comprises a proximity sensor, by employing the proximity sensor, the wearable device is able to achieve non-contact manipulation, providing more modes of operation.
In one embodiment, the wearable device 100 further comprises a heart rate sensor, which when worn, enables detection of heart rate by being in close proximity to the user.
In one embodiment, the wearable device 100 may further include a fingerprint sensor, by reading a fingerprint, security verification or the like can be achieved.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
In one embodiment, the display panel 1061 employs a flexible display screen, and the wearable device employing the flexible display screen is capable of bending when worn, thereby fitting more. Optionally, the flexible display screen may be an OLED screen body and a graphene screen body, and in other embodiments, the flexible display screen may also be other display materials, which is not limited to this embodiment.
In one embodiment, the display panel 1061 of the wearable device may take a rectangular shape for ease of wrapping when worn. In other embodiments, other approaches may be taken as well.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the wearable device. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
In one embodiment, the sides of the wearable device 100 may be provided with one or more buttons. The button can realize a plurality of modes such as short pressing, long pressing, rotation and the like, thereby realizing a plurality of operation effects. The number of the buttons can be multiple, and different buttons can be combined for use, so that multiple operation functions are realized.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the wearable device, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the wearable device, which is not limited herein. For example, when a message notification of a certain application is received through the rf unit 101, the processor 110 may control the message notification to be displayed in a certain preset area of the display panel 1061, where the preset area corresponds to a certain area of the touch panel 1071, and may control the message notification displayed in the corresponding area on the display panel 1061 by performing a touch operation on the certain area of the touch panel 1071.
The interface unit 108 serves as an interface through which at least one external device can be connected with the wearable apparatus 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the wearable apparatus 100 or may be used to transmit data between the wearable apparatus 100 and the external device.
In one embodiment, the interface unit 108 of the wearable device 100 adopts a contact structure, and is connected with other corresponding devices through the contact, so as to realize functions of charging, connection and the like. The contact can also be waterproof.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the wearable device, connects various parts of the entire wearable device with various interfaces and lines, performs various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 109, and invoking data stored in the memory 109, thereby performing overall monitoring of the wearable device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The wearable device 100 may further include a power source 111 (such as a battery) for powering the various components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the wearable device 100 may further include a bluetooth module or the like, which is not described herein. The wearable device 100 can be connected with other terminal devices through bluetooth to realize communication and information interaction.
Fig. 2 to fig. 4 are schematic structural diagrams of a wearable device according to an embodiment of the present invention. The wearable device comprises a flexible screen. When the wearable device is unfolded, the flexible screen is in a strip shape; when the wearable device is in a wearing state, the flexible screen is bent to be annular. Fig. 2 and 3 show schematic structural diagrams of the wearable device screen when unfolded, and fig. 4 shows schematic structural diagrams of the wearable device screen when bent.
Based on the above embodiments, it can be seen that if the device is a wristwatch, a bracelet, or a wearable device, the screen of the device may not cover the watchband area of the device, or may cover the watchband area of the device. Here, the application proposes an alternative embodiment, in which the device may be a wristwatch, a bracelet or a wearable device, the device comprising a screen and a connection. The screen may be a flexible screen and the connection may be a wristband. Alternatively, the screen of the device or the display area of the screen may be partially or fully overlaid on the wristband of the device. Fig. 5 is a schematic hardware diagram of an implementation manner of a wearable device according to an embodiment of the present application, where a screen of the device extends to two sides, and a part of the screen is covered on a watchband of the device. In other embodiments, the screen of the device may also be entirely covered on the watchband of the device, which is not limited to this embodiment.
Based on the wearable device, various embodiments of the method of the invention are presented.
Example 1
Please refer to fig. 6, 7 and 8. The invention provides a method for upgrading wearable equipment, which comprises the following steps:
s101, the wearable device detects an upgrade package;
s102, the wearable device downloads an upgrade package, and the wearable device checks the size of the residual space of the system partition;
s103, if the residual space of the system partition is larger than or equal to a preset value A, the wearable device executes a normal upgrading process; if the residual space of the system partition is smaller than the preset value A, the wearable device acquires the size of the residual space and executes the following steps;
s104, decompressing the upgrade package to a cache partition by the wearable device, and decomposing the upgrade package into a plurality of decomposition sub-packages by the wearable device;
s105, if half of the residual space of the system partition is larger than or equal to the positive integer times of the space of the decomposition sub-package with the largest occupied space, the wearable device dynamically processes the update_script upgrading script according to the number of the sub-packages;
s106, the wearable device upgrades each decomposition sub-packet respectively, and immediately clears the decomposition sub-packet after the completion of the upgrade of each decomposition sub-packet.
In the above scheme: step S101, the wearable device periodically inquires whether an upgrade package adapting to the current wearable device exists at a server side, and if the upgrade package adapting to the current wearable device is checked, the server sends a message to the wearable device. Step S102, the wearable device downloads an upgrade package from a server side, and can access the Internet through WiFi or wireless cellular networks and the like, and downloads the upgrade package from the server side; of course, to accelerate the download, the wearable device may also download the upgrade package from an adjacent mirror server; after the upgrade package is downloaded, the integrity and the like of the upgrade package also need to be verified, a private key is arranged on the wearable device, a public key is arranged on the server, and whether the upgrade package is legal or not can be confirmed by verifying the digital signature of the upgrade package. In step S103, a sufficient memory space margin needs to be ensured during the system upgrade, otherwise, the upgrade may fail due to insufficient memory space, and it needs to be determined that the remaining space size of the system partition is higher than a preset value a (as shown in step S103A), where the preset value a is specified by the operating system or set by a user, for example: preset value a=200m; if the remaining space of the system partition is large enough, the normal upgrade process (see step S103B) may be directly entered, and if the remaining space of the system partition is insufficient, the upgrade method of the present invention is needed for processing. In step S104, the upgrade package is decomposed for several times in the cache partition, and a plurality of decomposition packages with reduced volumes are obtained from one upgrade package (compressed package file), so that the residual space of the system partition required in the upgrade process is reduced. The decomposition operation in step S104 may be performed once or several times, but is not limited to infinite decomposition, and the minimum unit of subcontracting is to obtain a patch file with an independent upgrade function, and the patch file may be used in the upgrade process. After the packetizing operation is finished, it is further required to determine that the volume of the largest space occupied by the current decomposed sub-packet is less than half of the system partition, if the assumption is true, step S106 is executed to perform packetizing upgrade, and if the assumption is false, the user is prompted to perform a space cleaning operation.
That is, the upgrade method of the present invention can reduce the possibility of upgrade failure caused by insufficient storage space, but if the operation of decomposing the upgrade package is performed, the unrewritable decomposed sub-package still cannot fail due to the file volume exceeding the preset value a (e.g. 200M), and at this time, the user needs to be prompted to manually perform space cleaning.
Preferably, the wearable device comprises a wrist machine. The wearable device can operate an Android (English: android) system.
Preferably, in step S105, the positive integer multiple is 1 time, 2 times, 3 times, … …, or the like.
When the wearable device downloads the upgrade package from the server or the mirror server, the downloading time can be determined according to the size of the upgrade package, for example: and when the file volume of the upgrade package is larger than a preset value C (for example, the preset value C=100deg.M), the upgrade package is downloaded by adopting a WiFi network, and when the file volume is smaller than or equal to the preset value C, the upgrade package is downloaded by adopting a WiFi or wireless cellular network. During the download process, if a network change occurs, for example: downloading is suspended when switching from the WiFi network to the wireless cellular network (e.g., 2G network, 3G network, 4G network, 5G network, etc.), and the download task continues when switching from the wireless cellular network to the WiFi network. The preset value C can be specified by an operating system or can be manually set by a user for specification or modification.
Preferably, the upgrade package is a FOTA upgrade package. The server is a FOTA server.
Please refer to fig. 9. Preferably, before step S104, that is, before the wearable device decompresses the upgrade package to the cache partition, the method further includes:
S104A, the wearable device cleans up garbage files of the cache partition.
By cleaning the junk files, the residual space of the cache partition is increased as much as possible. The garbage cleaning program can be started and operated automatically by the operating system, and can also be started and operated manually by a user.
Please refer to fig. 10. Further, the wearable device in step S104 decomposes the upgrade package into a plurality of decomposed sub-packages, specifically including:
S104B, the wearable device decomposes the upgrade package into a first decomposition sub-package, wherein the first decomposition sub-package comprises a patch package, an img package and an add package.
The upgrade package is decomposed into a plurality of first decomposition sub-packages by decomposing the upgrade package.
Please refer to fig. 11. Further, step S104, namely, the wearable device decompresses the upgrade package to the cache partition (see step S1040), and decomposes the upgrade package into a plurality of decomposition sub-packages, which specifically includes:
S104B, the wearable device decomposes the upgrade package into a plurality of first decomposition sub-packages;
And S104C, the wearable device decomposes the first decomposition sub-packet with the occupied space being larger than or equal to a preset value B for one or more times until the occupied space of all the decomposition sub-packets is smaller than the preset value B or the decomposition sub-packets cannot be decomposed continuously.
It should also be noted that: the preset value B can also be the same as the preset value A; the preset value B is less than or equal to the preset value A; the preset value C is less than or equal to the preset value A.
For example: the img package and the add package are larger in general, and the img package and the add package can be subjected to a second decomposition operation according to conditions.
If the file volumes of all the first decomposition sub-packages are smaller than the preset value a, the upgrade package decomposition operation is finished, and step S105 is performed next; if the first decomposition packet is traversed after one decomposition, and one or a plurality of file volumes are found to be larger than the preset value B, the decomposition operation is further required to be continued until the file volumes of all the decomposition sub-packets are smaller than or equal to the preset value B or all the decomposition sub-packets are already divided into the minimum units.
If the volume of the file in the sub-package is still greater than half of the remaining space in the system partition after the disassembly operation, the user is required to manually clean the file or clean the file in the storage space based on rules established by the user.
When the garbage files (such as garbage files of the system partition) are cleaned, and the file volume of the decomposed sub-package is still more than half of the residual space of the system partition, a notification that the upgrade operation is not recommended should be sent to the user.
And, the wearable device should also send a notification to the server, the server will reduce the frequency of pushing the upgrade package to the machine type after receiving the notification, if the server receives a certain number of such notifications in a cumulative way, the server temporarily closes the upgrade package automatic download service of the wearable device until the user downloads the upgrade package or the upgrade package manually.
Please refer to fig. 12. Further, after step S104C, that is, after the space occupied by all the decomposed sub-packets is smaller than the preset value B or the decomposed sub-packets cannot continue to be decomposed, the method further includes:
S105A, if the largest space occupied by the decomposition sub-package is more than half of the rest space of the system partition, the wearable device prompts a user to clear the space;
and S105B, if the space of the decomposition sub-packet with the largest space is less than or equal to half of the rest space of the system partition, the wearable device upgrades each decomposition sub-packet respectively, and immediately clears the decomposition sub-packet after the upgrade of each decomposition sub-packet is finished until all the decomposition sub-packets are upgraded.
It is easily understood that when the space of the largest decomposition sub-packet is equal to or less than half of the remaining space of the system partition, the space of all the decomposition sub-packets is equal to or less than half of the remaining space of the system partition.
Preferably, when generating the split sub-packages, the wearable device assigns a unique file tag or number to each split sub-package.
After each decomposition sub-packet is upgraded, the wearable device releases the storage space occupied by the decomposition sub-packet by clearing the decomposition sub-packet, so that the consumption of the storage space can be saved as much as possible.
Please refer to fig. 13. Further, before step S104, the method further includes:
and S103C, the wearable device sends a message to the server, so that the server simulates the upgrade package into packages.
The S103C specifically includes:
S103C1, the wearable device sends a request to a server, so that the server virtually generates a virtual wearable device which is the same as or similar to the situation of the residual space of the system partition of the wearable device;
S103C2, the wearable device sends a notification to the server, so that the server performs subcontracting operation on the virtual wearable device;
S103C3, the wearable device receives a message that the subpackaging operation sent by the server is completed, and judges whether the situation that twice the file volume is larger than the residual space size of the system partition exists in the decomposed subpacket or not, if so, the wearable device continues to execute the following steps;
And S103D, the wearable device receives the message sent by the server, and the wearable device interrupts the upgrading operation or notifies the user to manually clear the storage space.
Preferably, the virtual wearable device may be generated by a virtual machine or the like. After the simulation sub-packaging is finished, the server deletes the virtual wearable device.
By simulating sub-package operation in advance at the server, the possibility of upgrading failure is discovered in advance as much as possible, so that the upgrading success rate is improved.
Please refer to fig. 14. Further, after step S105, that is, after dynamically processing the update_script upgrade script according to the number of packets, the method further includes:
s1051, the wearable device receives a touch operation confirming the system update, or,
s1052, the wearable device determines the time of system update according to rules preset by a user. For example: the user preset 00 per monday: 30-01: 30.
Step S1051 corresponds to a manual mode, in which the user determines whether to agree with the current update by touching the interactive operation; the above step S1052 corresponds to an automatic mode which is automatically handled by the wrist machine operating system. The wrist machine may send out a confirmation popup window to the user on the display screen, if the user clicks the confirmation button in the popup window, step S1052 is not performed any more, and if the user ignores the popup window, the wrist machine performs step S1052.
Since the wearable device has a period of time that is not available during the system upgrade, the user performs the upgrade by confirming the upgrade operation or selecting an appropriate time.
The following will further explain the step S1052 as an example.
Please refer to fig. 15. Further, before step S1052, the method further includes:
s1053, the wearable device monitors the motion state, and if the wearable device is in motion (for example, a user wears a wrist machine to walk, run, play ball and the like), the time for executing the step S106 is automatically delayed; if the wearable device is in rest, the wearable device performs step S1052.
The intervals of the automatic deferral time may be in the form of fibonacci sequences or other forms. If in the form of a fibonacci sequence, the first time is deferred for 1 hour, the second time is deferred for 2 hours, the third time is deferred for 3 hours, the fourth time is deferred for 5 hours, the fifth time is deferred for 8 hours, the sixth time is deferred for 13 hours, the seventh time is deferred for 21 hours … …, and so on. In this way, the user is prevented from being disturbed as much as possible. It should also be noted that in other embodiments of the present invention, if the step of automatically deferring time occurs, reference may also be made to the scheme of automatically deferring time herein.
Further, when the user of the wearable device is in a sleep state, the system automatically performs step S106. The user wears the wearable device (such as the wrist machine) to sleep, and meanwhile, the current time is judged, so that whether the user is in noon break or in the evening is judged, and wrist machine upgrading is carried out in the evening sleeping time period of the user. Detecting whether the user is in a sleep state may use existing sleep detection methods, such as: and judging whether the user enters a sleep state or not by monitoring the heart rate of the user and the like. More preferably, the updating operation of the wearable device is performed after the user enters the deep sleep state. Of course, if the user enters a light sleep, an update operation of the wearable device may also be performed.
In order to more accurately evaluate the time of the upgrade operation, the wrist machine can establish a sleep model of the user, establish a model of sleep habit of the user by collecting physical sign data of the user, predict sleep time of the user by using the model, and set the wrist machine upgrade time within the predicted time range by calling the predicted sleep time data.
For example: by analyzing the sign data of user a for several consecutive days, it follows: 23:30-7: 30, the user is in an evening sleep state, wherein the deep sleep time is 2:00-5:00; and the space between 13:00 and 14:00 is in a noon break state. The wrist machine operating system can set the time for system upgrade to be 2:00-5:00.
When the sleeping habits of the user change, the upgrading time of the wrist machine also changes. For example: user a: and the sleeping state is between 8:00 and 16:00, wherein the deep sleeping time is between 10:00 and 11:30. Then the wrist machine operating system may set the system upgrade time to 10:00-11:30. Such a change in sleep habits may occur when the user needs a shift between day shift and night shift, and the sleep time of the user may be changed accordingly.
Please refer to fig. 16. Further, before step S1052, the method further includes:
s1054, the wearable device monitors the noise intensity in the current environment, and if the noise intensity is lower than a preset value E, the step S1053 is executed; if the noise intensity is higher than the preset value E, the execution of the step S106 is automatically delayed.
The preset value E is a noise measurement index, for example: preset value e=70 db.
Step S1054 mainly considers: if the wearable device is in a noisy environment, it may be due to the fact that the user is working (e.g. meeting, negotiating), working outdoors (e.g. shopping, participating in concert), taking a vehicle (e.g. sitting on train, high-speed rail, subway, airplane, ship), etc., and it is not appropriate to upgrade the system of the wearable device.
Further, even if the user is in deep sleep at this time, the user may have poor sleep quality if the user is in a loud noise, and thus the user may wake up at any time, so even if the user is in a deep sleep state as determined by S1053, the operating system of the wrist machine will automatically delay the upgrade time if the user is in a noisy noise environment as determined by S1054. For example: the deep sleep time of the user A is 2:00-5:00, the user A is riding on a train sleeper at 3:00, and the user enters deep sleep at the moment, but the user possibly wakes up at any time on the train, so that the wrist machine automatically delays the upgrade plan at the moment.
Please refer to fig. 17. Further, after step S1052, further including:
s1055, the wearable device monitors the residual electric quantity, and if the residual electric quantity is higher than a preset value D, step S1054 is executed; if the remaining power is lower than the preset value D, the wearable device prompts the user to charge, and automatically delays the execution of step S106.
The preset value D may be an absolute remaining power value or a ratio of the remaining power to the actual capacity of the battery, for example: the preset value D is 50%.
Step S1055 mainly considers that the wearable device needs to maintain a sufficient amount of power when performing the upgrade operation.
Preferably, the wearable device performs S1055 first, then S1054, then S1053, and then S1052. That is, if the remaining power of the wearable device meets the upgrade requirement, further judging whether the environment where the wearable device is located is suitable for upgrade, if the environmental noise is low, indicating that the user is in a quieter environment, further judging whether the wearable device is in a motion state, and if the wearable device is in a quieter state, determining the upgrade time by the wearable device according to rules preset by the user.
For example:
1. the residual electric quantity of the wearable device is 70%, the wearable device is positioned in a gymnasium with environmental noise of 40 dB, and the wearable device delays the upgrading time because the wearable device is in a motion state;
2. the residual electric quantity of the wearable device is 75%, and the wearable device is in a bedroom with environmental noise of 30 dB, and the wearable device monitors that the user is in a sleep state; and according to the sleeping habit of the user, the wearable device judges that the user still sleeps for a period of time, and the wearable device executes system upgrading.
Further, the wearable device may sequentially perform one of steps S1055, S1054, S1053
Or two steps or all three steps, and then step S1052 is performed.
The wearable device performs steps S1055, S1054, S1053 to reduce the impact of system upgrade
The chance that the user is using the wearable device normally.
Of course, if the wearable device is in a charged state and the remaining power is higher than the preset value F (e.g., preset value d=30%), the wearable device also meets the power condition required for upgrading. That is, an alternative step of S1055:
s1056, the wearable device monitors whether the wearable device is in a charging state, if so, the wearable device periodically checks (for example, checks every 5 minutes) whether the residual electric quantity of the self-charging battery is higher than a preset value F, and if so, the step S106 is executed.
Please refer to fig. 18. Further, step S101, that is, the wearable device detects an upgrade package, includes:
s1011, the wearable device sends a request for acquiring an upgrade package to the FOTA server through a network at regular time;
s1012, the wearable device receives a notification that an upgrade package sent by the FOTA server is updated;
S1013, the wearable device downloads the upgrade package from the FOTA server.
Referring to fig. 21, the wrist machine is connected to the server through an intermediate network, where the intermediate network is the internet.
The wearable device can periodically check whether an upgrade package or an update package of the current model adaptation exists or not to the FOTA server (a background server of a manufacturer), and if the upgrade package exists, the FOTA server sends a corresponding notification to the wearable device.
Please refer to fig. 19. Further, step S106, after upgrading each of the split sub-packets, and immediately clearing the split sub-packets by the wearable device after the upgrading of each of the split sub-packets is completed, further includes:
and S107, the wearable device informs the FOTA server that the upgrading is completed.
Please refer to fig. 20. Further, before step S106, that is, before each of the decomposed sub-packets is upgraded separately, the method further includes:
S106A, carrying out integrity check on each decomposed sub-packet.
The integrity check ensures that the decomposed subpacket is complete and free of data loss.
Further, the wrist machine may generate a check code (such as MD5 code) for each sub-packet, then transmit the check code to the server through the network, and the server determines whether the sub-packet is complete by verifying the check code, and if the sub-packet is incomplete, the server notifies the wrist machine to regenerate the sub-packet and perform the verification again.
Example 2
According to embodiment 1, the upgrade package may be decomposed to obtain a plurality of decomposed sub-packages. If the file volume of all the sub-packages is smaller than half of the residual space of the system partition, the sub-packages can be upgraded one by one according to the upgrade script.
In the upgrading process of the sub-packages, the execution sequence of the sub-packages can be further optimized. While a split sub-packet is deleted immediately every time it is upgraded as the upgrade proceeds, the remaining space of the system partition may also exhibit a gradual trend as the system is running. Therefore, it is preferable to preferentially upgrade the large-size sub-package of the file.
Please refer to fig. 22. In fig. 22, the upgrade package is 455M (english: MByte, megabyte), and since the space occupied by the upgrade package is larger than the preset value a (the preset value a takes 200M), the 1 st decomposition is performed, and the 1 st classification results: a patch package of 10M, an img package of 350M, an add package of 95M; because the space occupied by the img packet is larger than the preset value B (the preset value B takes 100M), the 2 nd decomposition is executed, and the method is obtained through the 2 nd decomposition: a decomposition sub-packet 1 of 250M, a decomposition sub-packet 2 of 100M; because the space occupied by the decomposition sub-packet 1 is larger than the preset value B (the preset value B takes 100M), the 3 rd decomposition is executed, and the 3 rd decomposition is carried out to obtain: 200M of a decomposition sub-packet 3, 50M of a decomposition sub-packet 4; because the space occupied by the decomposition sub-packet 3 is larger than the preset value B (the preset value B takes 100M), the 4 th decomposition is executed, and the 4 th decomposition is performed to obtain: 160M of decomposed subpackets 5, 40M of decomposed subpackets 6; because the space occupied by the decomposition sub-packet 5 is larger than the preset value B (the preset value B takes 100M), the 5 th decomposition is executed, and the 5 th decomposition is carried out to obtain: 70M split sub-packet 7, 90M split sub-packet 8.
When the upgrade package is decomposed, a tree structure is formed, all leaf nodes on the tree are decomposition sub-packages, and the wearable equipment upgrades each decomposition sub-package respectively.
Please refer to fig. 23. In order to optimize the upgrading sequence of the decomposed sub-packets, huffman tree is adopted for optimization. And taking the file volume as a weight, so that the decomposition sub-packet with larger file volume is closer to the root node. That is, at the time of upgrading, the upgrading order of the respective decomposed sub-packages is: the sub-package 2, add package, sub-package 8, sub-package 7, sub-package 4, sub-package 6 and patch package.
The decomposition tree is constructed into a Huffman binary tree, so that the upgrade operation can be smoother. By preferentially upgrading the decomposition sub-package with larger file volume, the problem that the decomposition sub-package with larger file volume cannot be upgraded due to upgrading of the decomposition sub-package with smaller file volume is avoided. In particular, if the update sequence of the sub-packet is relatively low, the remaining space of the system partition may change during the update process, so that the update packet cannot be updated successfully. Embodiment 2 optimizes the upgrade order of the decomposed sub-packages by constructing an optimal tree, and further provides the probability of successful upgrade of the wrist machine.
Example 3
The invention also provides a wearable device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the steps of the wearable device upgrade method described in embodiments 1 and/or 2 are implemented when the computer program is executed by the processor.
It should be further noted that the wearable device upgrade program stored on the memory of the wearable device belongs to the same concept as that of embodiments 1 and 2, the specific implementation process of the wearable device is detailed in embodiments 1 and 2, and the technical features in embodiments 1 and 2 are correspondingly applicable in embodiment 3, which is not described herein.
The method disclosed by the embodiment of the invention can be applied to the processor or realized by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor or an instruction in software form. The processor may be a general purpose processor, DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the invention can be directly embodied in the hardware of the decoding processor or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium having memory, the processor reading information in the memory and performing the steps of the method in combination with hardware. It will be appreciated that the memory of embodiments of the invention may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The nonvolatile Memory may be Read-Only Memory (ROM), programmable Read-Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read-Only Memory (EPROM), electrically Erasable Read-Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic Random Access Memory), flash Memory (Flash Memory) or other Memory technology, compact disc Read-Only Memory (CD-ROM, compact Disk Read-Only Memory), digital versatile disc (DVD, digital VideoDisk) or other optical disc storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices; volatile memory can be random access memory (RAM, random Access Memory), many forms of RAM being available by way of example and not limitation, 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 rate synchronous dynamic random access memory (ddr sdram, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory described by embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
Example 4
The present invention also provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the wearable device upgrading method described in embodiments 1 and 2.
It should be further noted that the wearable device upgrade program stored on the memory of the wearable device belongs to the same concept as that of embodiments 1 and 2, the specific implementation process of the wearable device is detailed in embodiments 1 and 2, and the technical features in embodiments 1 and 2 are correspondingly applicable in embodiment 3, which is not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (10)

1. The method for upgrading the wearable device is characterized by comprising the following steps of:
the wearable device detects an upgrade package;
the wearable device downloads an upgrade package; the wearable device checks the size of the residual space of the system partition;
if the residual space of the system partition is larger than or equal to a preset value A, the wearable device executes normal upgrading; if the system partition remaining space is smaller than the preset value A, the wearable device acquires the system partition remaining space size and performs the following steps;
the wearable device decompresses the upgrade package to the cache partition, and the wearable device decomposes the upgrade package into a plurality of decomposition sub-packages;
if half of the residual space of the system partition is larger than or equal to the positive integer times of the maximum space of the decomposition sub-package, the wearable device dynamically processes the update_script upgrading script according to the number of the sub-packages;
the wearable device upgrades each decomposition sub-package respectively, and the wearable device immediately clears the decomposition sub-package after the upgrade of each decomposition sub-package is completed.
2. The method for upgrading a wearable device according to claim 1, wherein the decomposing the upgrade package into a plurality of decomposed sub-packages comprises:
The wearable device breaks up the upgrade package into a first break-up sub-package comprising a patch package, an img package, and an add package.
3. The method for upgrading a wearable device according to claim 1, wherein the upgrade package is decomposed into a plurality of decomposed sub-packages, comprising:
the wearable device decomposes the upgrade package into a plurality of first decomposition sub-packages;
the wearable device decomposes the first decomposition sub-packet with the occupied space being larger than or equal to the preset value B for one or more times until the occupied space of all the decomposition sub-packets is smaller than the preset value B or the decomposition sub-packets can not be decomposed continuously.
4. The method for upgrading a wearable device according to claim 3, comprising, after the step of until the space occupied by all the decomposed sub-packets is smaller than a preset value B or the decomposed sub-packets cannot continue to be decomposed:
if the largest space occupied by the decomposed sub-package is greater than half of the rest space of the system partition, the wearable device prompts a user to clear the space;
if the space of the decomposition sub-packet with the largest space is less than or equal to half of the rest space of the system partition, the wearable device upgrades each decomposition sub-packet respectively, and immediately clears the decomposition sub-packet after the completion of the upgrade of each decomposition sub-packet until the upgrade of all the decomposition sub-packets is completed.
5. The method for upgrading a wearable device according to claim 1, wherein after the wearable device dynamically processes the update_script upgrade script according to the number of sub packets, the method further comprises:
the wearable device receives a touch operation confirming the system update, or,
and the wearable equipment determines the system updating time according to rules preset by a user.
6. The wearable device upgrade method of claim 1, wherein the wearable device detects an upgrade package, comprising:
the wearable device sends a request for acquiring an upgrade package to the FOTA server through a network at regular time;
the wearable device receives a notification that an upgrade package sent by the FOTA server is updated;
the wearable device downloads the upgrade package from the FOTA server.
7. The method for upgrading a wearable device according to claim 6, wherein after the wearable device upgrades each of the disassembled sub-packages separately, the wearable device clears the disassembled sub-package immediately after each of the disassembled sub-packages is upgraded, further comprising:
the wearable device notifies the FOTA server that the upgrade is complete.
8. The method of upgrading a wearable device according to claim 1, further comprising, before upgrading each of the decomposed sub-packages separately:
The wearable device performs an integrity check on each of the disassembled subpackets.
9. A wearable device, the wearable device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program, when executed by the processor, implements the steps of the wearable device upgrade method of any of claims 1 to 8.
10. A computer readable storage medium storing one or more programs executable by one or more processors to implement the steps of the wearable device upgrade method of any of claims 1-8.
CN201910557136.5A 2019-06-25 2019-06-25 Wearable device upgrading method, wearable device and storage medium Active CN110221856B (en)

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 CN110221856A (en) 2019-09-10
CN110221856B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
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
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
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
CN114461240B (en) * 2021-06-30 2023-04-14 荣耀终端有限公司 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
CN114217838B (en) * 2022-02-22 2022-05-13 深圳市微克科技有限公司 Intelligent wearable dial plate updating method and system
CN116737195A (en) * 2022-03-11 2023-09-12 荣耀终端有限公司 Upgrade method of operating system, electronic equipment and storage medium

Citations (8)

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

Patent Citations (9)

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

Also Published As

Publication number Publication date
CN110221856A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN110221856B (en) Wearable device upgrading method, wearable device and storage medium
CN109938720B (en) Heart rate-based reminding method, wearable device and computer-readable storage medium
CN104093123A (en) Application program information pushing method, device and system and mobile terminal
CN110109725A (en) A kind of interface color method of adjustment and wearable device
CN110083220A (en) A kind of power-saving processing method and wearable device
CN110262849A (en) Using starting method, wearable device and computer readable storage medium
CN110069333A (en) Backstage management-control method, mobile terminal and the computer readable storage medium of application
CN103634468A (en) Method, device and terminal equipment for processing alarm clock
CN110062279A (en) Video method of cutting out, wearable device and computer readable storage medium
CN107341052A (en) A kind of message treatment method and device
CN110399195B (en) Desktop icon dynamic replacement method, equipment and computer readable storage medium
CN110083331A (en) Wearable device play mode control method, device, wearable device and medium
CN110399196B (en) Wearable device, interface switching implementation method thereof and computer readable storage medium
CN109874165B (en) Method for timely closing sensor of wearable device, wearable device and storage medium
CN110083205B (en) Page switching method, wearable device and computer-readable storage medium
CN110532050B (en) Motion data refreshing method, wearable device and computer readable storage medium
CN110149683B (en) Application notification processing method, wearable device and computer-readable storage medium
CN109947325B (en) Application icon display method, wearable device and computer-readable storage medium
CN110096208A (en) A kind of apparatus control method, device and computer readable storage medium
CN110213442A (en) Speech playing method, terminal and computer readable storage medium
CN110167113A (en) A kind of apparatus control method, wearable device and computer readable storage medium
CN110120208B (en) Method for automatically adjusting screen display, wearable device and storage medium
CN110018775B (en) Content display method, terminal and computer readable storage medium
CN110083244B (en) Anti-false touch method for wearable device, wearable device and storage medium
CN109947448B (en) Time updating method, device and computer readable storage medium

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