CN114296757A - Software upgrading method and device for wearable equipment, wearable equipment and medium - Google Patents

Software upgrading method and device for wearable equipment, wearable equipment and medium Download PDF

Info

Publication number
CN114296757A
CN114296757A CN202111564666.6A CN202111564666A CN114296757A CN 114296757 A CN114296757 A CN 114296757A CN 202111564666 A CN202111564666 A CN 202111564666A CN 114296757 A CN114296757 A CN 114296757A
Authority
CN
China
Prior art keywords
partition
software
wearable device
upgrading
upgraded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111564666.6A
Other languages
Chinese (zh)
Inventor
褚夫环
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111564666.6A priority Critical patent/CN114296757A/en
Publication of CN114296757A publication Critical patent/CN114296757A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present disclosure provides a method and an apparatus for upgrading software of a wearable device, a wearable device and a medium, wherein partitions of the wearable device include a first partition, a second partition and a backup partition, and the method includes: receiving a software upgrading package; storing the software upgrade package to the backup area, and restarting the wearable device; under the condition that the restarted wearable equipment needs to be upgraded, determining a partition which does not run a code currently from the first partition and the second partition according to the recorded running area information; and acquiring the software upgrading package from the backup area, and upgrading the partition of the currently non-running code according to the software upgrading package.

Description

Software upgrading method and device for wearable equipment, wearable equipment and medium
Technical Field
The embodiment of the disclosure relates to the technical field of wearable equipment, and more particularly, to a software upgrading method for wearable equipment, a software upgrading device for wearable equipment, and a computer-readable storage medium.
Background
At present, wearable equipment such as smart watch, intelligent bracelet are more and more extensive in the application, and wearable equipment all need carry out the upgrading of software function usually, and in the correlation technique, wearable equipment's software upgrading's realization all is the direct region of operation that upgrades, and under the unsuccessful condition of region of operation upgrading, can lead to wearable equipment to be unable to use.
Disclosure of Invention
An object of the disclosed embodiments is to provide a new technical solution for software upgrade of a wearable device.
According to a first aspect of embodiments of the present disclosure, the partition of the wearable device includes a first partition, a second partition, and a backup area, the method including:
receiving a software upgrading package;
storing the software upgrade package to the backup area, and restarting the wearable device;
under the condition that the restarted wearable equipment needs to be upgraded, determining a partition which does not run a code currently from the first partition and the second partition according to the recorded running area information;
and acquiring the software upgrading package from the backup area, and upgrading the partition of the currently non-running code according to the software upgrading package.
Optionally, after the storing the software upgrade package to the backup area and restarting the wearable device, the method further includes:
acquiring mark information of the recorded system upgrading mark bit;
and determining whether the restarted wearable equipment needs to be upgraded or not according to the mark information.
Optionally, after the upgrading operation is performed on the partition of the currently non-running code according to the software upgrade package, the method includes:
according to the set check item, checking the software version of the upgraded partition without the currently-operated code to obtain a first check result;
and restarting the wearable device under the condition that the first calibration result indicates that the upgraded software version of the partition of the currently-non-running code passes the verification.
Optionally, the setting the check item includes: a check item as to whether the software version of the upgraded partition of currently non-running code is reliable.
Optionally, after the storing the software upgrade package to the backup area and restarting the wearable device, the method further includes:
under the condition that the restarted wearable device does not need to be upgraded, verifying the software version of the first partition and the software version of the second partition according to the set verification item to obtain a second verification result;
taking the first partition as a partition of the current running code under the condition that the second check result shows that the software version of the first partition passes the check and the software version of the second partition does not pass the calibration;
and taking the second partition as the partition of the current running code under the condition that the second check result shows that the software version of the first partition is not checked and the software version of the second partition is calibrated.
Optionally, after the first calibration result indicates that the upgraded software version of the partition of the currently non-running code passes verification, the method further includes:
updating the operation area information;
the updating the running area information includes:
updating the partition identification corresponding to the partition of the current running code
According to a second aspect of the embodiments of the present disclosure, there is provided a control apparatus of a wearable device, the partition of the wearable device including a first partition, a second partition, and a backup area, the apparatus including:
the receiving module is used for receiving the software upgrading package;
the storage module is used for storing the software upgrading package to the backup area and restarting the wearable equipment;
the determining module is used for determining a partition without running codes currently from the first partition and the second partition according to the recorded running area information under the condition that the restarted wearable device needs to be upgraded;
and the upgrading module is used for acquiring the software upgrading package from the backup area and upgrading the partition which is not operated with the codes currently according to the software upgrading package.
Optionally, the determining module is specifically configured to:
acquiring mark information of the recorded system upgrading mark bit;
and determining whether the restarted wearable equipment needs to be upgraded or not according to the mark information.
According to a third aspect of embodiments of the present disclosure, there is provided a wearable device comprising:
a memory for storing executable computer instructions;
a processor for executing the software upgrading method according to the above first aspect, under the control of the executable computer instructions.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, perform the software upgrade method of the first aspect above.
One beneficial effect of the embodiments of the present disclosure is that, the partition of the wearable device includes the first partition, the second partition and the backup area, after receiving the software upgrade package, the partition of the wearable device is not upgraded directly based on the software upgrade package, but the software upgrade package is written into the backup area, and the wearable device is restarted to determine whether the upgrade is needed, which may improve the reliability of the software upgrade. Meanwhile, under the condition that the restarted wearable device needs to be upgraded, the partition without the currently running code is determined from the first partition and the second partition according to the recorded running area information, and the upgrade operation is performed on the partition without the currently running code only according to the software upgrade package obtained from the backup area, so that the code can be normally run based on another partition under the condition that one partition is unsuccessfully upgraded, and the normal running of the wearable device is ensured.
Other features of the present description and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is a hardware configuration schematic diagram of a wearable device according to an embodiment of the present disclosure;
fig. 2 is a flow chart schematic diagram of a method of software upgrade of a wearable device according to an embodiment of the present disclosure;
fig. 3 is a flow diagram of a method of software upgrade of a wearable device according to an example of the present disclosure;
fig. 4 is a functional block diagram of a software upgrade apparatus of a wearable device according to an embodiment of the present disclosure;
fig. 5 is a functional block diagram of a wearable device according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of parts and steps, numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate. .
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
Fig. 1 is a block diagram of a hardware configuration of a wearable device 1000 according to an embodiment of the present disclosure.
As shown in fig. 1, the wearable device 1000 may be, for example, a smart watch, a smart bracelet, a head-mounted display, and the like, which is not limited by the embodiments of the present disclosure.
In one embodiment, as shown in fig. 1, the wearable device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and so forth.
The processor 1100 may include, but is not limited to, a central processing unit CPU, a microprocessor MCU, and the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, various bus interfaces such as a serial bus interface (including a USB interface), a parallel bus interface, and the like. Communication device 1400 is capable of wired or wireless communication, for example. The display device 1500 is, for example, a liquid crystal display, an LED display, a touch display, or the like. The input device 1600 includes, for example, a touch screen, a keyboard, a handle, and the like. Wearable device 1000 may output audio information through speaker 1700 and may capture audio information through microphone 1800.
It should be understood by those skilled in the art that although a plurality of devices of the wearable device 1000 are illustrated in fig. 1, the wearable device 1000 of the present embodiment may only refer to some of the devices, and may also include other devices, which are not limited herein.
In this embodiment, the memory 1200 of the wearable device 1000 is configured to store instructions for controlling the processor 1100 to operate to implement or support a software upgrade method for implementing the wearable device according to any of the embodiments. The skilled person can design the instructions according to the solution disclosed in the present specification. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
In the above description, the skilled person can design the instructions according to the solutions provided in the present disclosure. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
The wearable device shown in fig. 1 is merely illustrative and is in no way intended to limit the present disclosure, its application, or uses.
< method examples >
Fig. 2 illustrates a method for upgrading software of a wearable device according to an embodiment of the present disclosure, which may be implemented, for example, by the wearable device 1000 shown in fig. 1, where the wearable device 1000 may be a smart watch, a smart band, a head-mounted display, and so on. The partition of the wearable device comprises a first partition, a second partition and a backup partition, and usually, one of the first partition and the second partition is an active partition and an inactive partition, wherein the active partition is a partition of currently running code, and the inactive partition is a partition of currently not running code.
As shown in fig. 2, the method for upgrading software of a wearable device provided in this embodiment may include the following steps S2100 to S2400.
Step S2100 receives a software upgrade package.
In this embodiment, when the external device, for example, the server, has the software version upgrade, the external device may send the software upgrade package to the wearable device, and the wearable device may receive the software upgrade package sent by the server.
For example, when the current software version is 3.0, if there is a software version upgrade, for example, software version 4.0, in the server, the software upgrade package corresponding to the software version 4.0 may be sent to the wearable device, and the wearable device may receive the software upgrade package corresponding to the software version 4.0.
After receiving the software upgrade package, entering:
step S2200 is to store the software upgrading package in the backup area and restart the wearable device.
In the related art, after receiving an upgrade software package, the wearable device directly starts a boot program, and performs an upgrade operation based on the software upgrade package. In this embodiment, after the wearable device receives the software upgrade package, the software upgrade package is stored in the backup area, and after the wearable device is restarted, it is determined whether to perform upgrade operation on the partition of the wearable device, where the code is not currently running, according to the software upgrade package.
After storing the software upgrade package to the backup area and restarting the wearable device, entering:
step S2300, determining a partition not currently running a code from the first partition and the second partition according to the recorded running area information under the condition that the restarted wearable device needs to be upgraded.
In this embodiment, after restarting the wearable device, the wearable device may first obtain flag information of a system upgrade flag bit recorded in a partition of the wearable device; and determining whether the restarted wearable equipment needs to be upgraded or not according to the mark information, and determining the partition which does not run the code currently from the first partition and the second partition according to the recorded running area information under the condition that the restarted wearable equipment needs to be upgraded.
Generally, after the software upgrade package is completely and successfully written into the backup area, the wearable device sets the flag information of the system upgrade flag bit to 1, and records the flag information 1 in the partition of the wearable device. Otherwise, the mark information of the system upgrade mark bit is set to 0 in the partition of the wearable device, and the mark information 0 is recorded in the partition of the wearable device. This indicates that, in the case where the flag information is 1, the restarted wearable device needs to be upgraded, and in the case where the flag information is 0, the restarted wearable device does not need to be upgraded.
The above operation area information can indicate a partition identifier corresponding to a partition of the current operation code. For example, in the case that the flag information is 1, it indicates that the restarted wearable device needs to be upgraded, where the wearable device may acquire operation area information recorded in a partition of the wearable device, for example, if a partition corresponding to a partition in which the operation area information is a current operation code is identified as a first partition a, the first partition a is used as a partition in which the current operation code is executed, and a second partition B is used as a partition in which no operation code is executed.
Under the condition that the restarted wearable device needs to be upgraded, according to the recorded operation area information, after determining a partition which does not operate a code currently from the first partition and the second partition, entering:
and step S2400, acquiring the software upgrading package from the backup area, and upgrading the partition which is not currently operated with the code according to the software upgrading package.
In this embodiment, after the partition in which the code is not currently operated is determined from the first partition and the second partition, the software upgrade package may be obtained from the backup area, and then only the partition in which the code is not currently operated is upgraded according to the software upgrade package. In this way, even if the partition of the currently-non-running code fails to be upgraded, since the partition of the currently-running code is the current latest software version, the partition of the currently-running code can be continuously used, so that normal use of the wearable device is ensured. Namely, through the active area and the inactive area, the problem of ensuring normal use of the wearable device under the condition that upgrading of one area fails can be effectively avoided.
Continuing with the above example, the first partition a is a partition in which a code is currently running, and the second partition B is a partition in which a code is not currently running, where the wearable device may obtain a software upgrade package from the backup partition, and perform an upgrade operation on the second partition B according to the software upgrade package, so that it is ensured that the wearable device can use the first partition a even if the upgrade of the second partition B is unsuccessful.
According to the embodiment of the disclosure, the partition of the wearable device comprises the first partition, the second partition and the backup partition, after the software upgrading package is received, the software upgrading package is not directly upgraded on the basis of the partition of the wearable device, but is written into the backup partition, and the wearable device is restarted to determine whether the upgrading is needed, so that the reliability of the software upgrading can be improved. Meanwhile, under the condition that the restarted wearable device needs to be upgraded, the partition without the currently running code is determined from the first partition and the second partition according to the recorded running area information, and the upgrade operation is performed on the partition without the currently running code only according to the software upgrade package obtained from the backup area, so that the code can be normally run based on another partition under the condition that one partition is unsuccessfully upgraded, and the normal running of the wearable device is ensured.
In an embodiment, after the step S2400 is executed to obtain the software upgrade package from the backup area, and perform an upgrade operation on the partition where the code is not currently running according to the software upgrade package, the software upgrade method of the wearable device in the embodiment of the present disclosure may further include the following steps S3100 to S3200:
and step S3100, verifying the software version of the upgraded partition without the running code according to the set verification item to obtain a first verification result.
The set check item comprises a check item about whether the software version of the upgraded partition of the currently non-running code is reliable.
In this embodiment, a set cyclic redundancy check code is stored in a partition of the wearable device, where the set cyclic redundancy check code is a cyclic redundancy check code of a reliable software version, and the wearable device may obtain a cyclic redundancy check code of a partition of an upgraded currently-non-running code, and compare the cyclic redundancy check code with the set cyclic redundancy check code.
Step S3200, in a case that the first calibration result indicates that the upgraded software version of the partition of the currently non-running code passes the verification, restarting the wearable device.
In this embodiment, under the condition that the cyclic redundancy check code of the upgraded partition in which the code is not currently running is the same as the set cyclic redundancy check code, it is indicated that the software version of the upgraded partition in which the code is not currently running is a check pass, and it is determined that the software version of the upgraded partition in which the code is not currently running is a reliable software version, and at this time, the wearable device may be restarted.
According to the embodiment, the wearable device is restarted only when the software version of the partition not currently running the code is checked and passes the check, and the software version of the partition not currently running the code is used as a reliable software version, so that the reliability of software upgrading can be ensured.
In an embodiment, after the step S2200 is executed to store the software upgrade package into the backup area and restart the wearable device, the software upgrade method of the wearable device according to the embodiment of the present disclosure may further include the following steps S4100 to S4300:
step S4100, in a case that the restarted wearable device does not need to be upgraded, verifying the software version of the first partition and the software version of the second partition according to the set verification item, and obtaining a second verification result.
In this embodiment, after the wearable device writes the received software upgrade package into the backup area according to step S2200 and restarts the wearable device, the wearable device may first obtain flag information of a system upgrade flag bit recorded in advance in the partition of the wearable device; and determining whether the restarted wearable equipment needs to be upgraded or not according to the mark information, and verifying the software version of the first partition and the software version of the second partition according to the set verification items under the condition that the restarted wearable equipment does not need to be upgraded.
For example, in the case that the flag information is 0, it indicates that the restarted wearable device does not need to be upgraded, at this time, since a set cyclic redundancy check code is preset in a partition of the wearable device, the set cyclic redundancy check code is a cyclic redundancy check code of a reliable software version, here, the wearable device may obtain the cyclic redundancy check code of the first partition and the cyclic redundancy check code of the second partition, and compare the two cyclic redundancy check codes with the set cyclic redundancy check code respectively.
And step S4200, in the case that the second check result indicates that the software version of the first partition passes the check and the software version of the second partition fails the calibration, taking the first partition as a partition of the current running code.
In this embodiment, when the cyclic redundancy check code of the first partition is the same as the set cyclic redundancy check code, and the cyclic redundancy check code of the second partition is different from the set cyclic redundancy check code, it indicates that the software version of the first partition is a pass check, and also indicates that the software version of the first partition is a reliable software version.
Step S4300, when the second check result indicates that the software version of the first partition does not pass the check, and the software version of the second partition passes the calibration, taking the second partition as a partition of the current running code.
In this embodiment, when the cyclic redundancy check code of the first partition is different from the set cyclic redundancy check code, and the cyclic redundancy check code of the second partition is the same as the set cyclic redundancy check code, it indicates that the software version of the second partition is a pass check, and also indicates that the software version of the second partition is a reliable software version.
According to the embodiment, the software versions in the active area and the inactive area are also checked under the condition that the wearable device does not need to be upgraded, so that the wearable device is ensured to operate in a reliable software version.
In an embodiment, after the performing the above step S3200, when the first calibration result indicates that the upgraded software version of the partition of the currently non-running code passes the verification, the method for upgrading software of a wearable device according to the embodiment of the present disclosure may further include: and updating the running area information.
In this embodiment, the updating the running area information may further include: and updating the partition identification corresponding to the partition of the current running code.
For example, if the partition in which the operation zone information is the current operation code is the first partition a, the wearable device may update the operation zone information to the partition in which the current operation code is the second partition B when the software version in the partition in which the code is not currently operated, that is, the second partition B, is the reliable software version.
According to the embodiment, when the partition of the currently-non-running code is upgraded and the software version of the partition of the currently-non-running code is determined to be the reliable software version, the partition of the currently-non-running code is switched to the partition of the currently-running code, so that the fact that the wearable device runs in the latest software version can be guaranteed.
Next, a software upgrading method for a wearable device is shown, in this example, a partition of the wearable device includes the steps shown in fig. 3, and the software upgrading method for the wearable device includes:
step S501, receiving a software upgrading package.
Step S502, storing the software upgrading package to a backup area.
Step S503, restarting the wearable device.
Step S504, obtaining the flag information of the recorded system upgrade flag bit, and determining whether upgrade is needed according to the flag information, if so, executing step S505, otherwise, executing step S514.
Step S505, when it is determined that the upgrade is needed according to the flag information, further determining whether the partition of the current running code is the first partition a from the first partition a and the second partition B according to the recorded running area information, if so, performing step S506, otherwise, performing step S510.
Step S506, under the condition that the partition of the current running code is the first partition A, acquiring a software upgrading package from the backup partition, and upgrading the partition without the current running code, namely the second partition B according to the software upgrading package.
And step S507, determining whether the software version of the upgraded second partition B is a reliable software version, if so, executing step S508, otherwise, executing step S509.
Step S508, in the case that the software version of the upgraded second partition B is a reliable software version, setting the upgraded partition that is currently not running the code, that is, the software version of the second partition B, as a reliable software version, and executing step S517.
In step S509, in the case that the software version of the upgraded second partition B is not a reliable software version, the partition of the current running code, that is, the software version of the first partition a is set to be a reliable software version, and step S517 is executed.
Step S510, when the partition in which the code is currently operated is the second partition B, obtaining the software upgrade package from the backup area, and performing an upgrade operation on the partition in which the code is not currently operated, that is, the first partition a, according to the software upgrade package.
Step S511, determining whether the software version of the upgraded first partition a is a reliable software version, if so, executing step S512, otherwise, executing step S513.
Step S512, in the case that the software version of the upgraded first partition a is the reliable software version, setting the upgraded partition that is not currently running the code, that is, the software version of the first partition a, as the reliable software version, and executing step S517.
Step S513, in a case that the software version of the upgraded first partition a is not a reliable software version, setting the software version of the current running code partition, that is, the second partition B, as a reliable software version, and executing step S517.
Step S514, if it is determined that the upgrade is not needed according to the flag information, further determining whether the reliable software version is the software version of the first partition a, if so, executing step S515, otherwise, executing step S516.
Step S515, when the reliable software version is the software version of the first partition a, the process jumps to the first partition a, and the process ends.
In step S516, when the reliable software version is not the software version of the first partition a, the process jumps to the second partition B, and the process ends.
And step S517, restarting the head-mounted display device.
< apparatus embodiment >
Fig. 4 is a schematic structural diagram of a software upgrading apparatus of a wearable device according to an embodiment. As shown in fig. 4, the control apparatus 400 of the wearable device includes a receiving module 410, a storage module 420, a determining module 430, and an upgrading module 440.
The receiving module 410 is configured to receive a software upgrade package.
And the storage module 420 is configured to store the software upgrade package in the backup area, and restart the wearable device.
A determining module 430, configured to determine, according to the recorded operation zone information, a zone in which a code is not currently operated from the first zone and the second zone when the restarted wearable device needs to be upgraded.
And the upgrading module 440 is configured to obtain the software upgrading package from the backup area, and perform upgrading operation on the partition in which the code is not currently running according to the software upgrading package.
In an embodiment, the determining module 430 is specifically configured to: acquiring mark information of the recorded system upgrading mark bit; and determining whether the restarted wearable equipment needs to be upgraded or not according to the mark information.
In one embodiment, the apparatus 400 further comprises a verification module (not shown).
The verification module is used for verifying the upgraded software version of the partition without the currently running code according to the set verification item to obtain a first verification result; and restarting the wearable device under the condition that the first calibration result indicates that the upgraded software version of the partition of the currently-non-running code passes the verification.
In one embodiment, the setting the check item includes: a check item as to whether the software version of the upgraded partition of currently non-running code is reliable.
In an embodiment, the verification module is further configured to, when the restarted wearable device does not need to be upgraded, verify the software version of the first partition and the software version of the second partition according to the set verification item to obtain a second verification result; taking the first partition as a partition of the current running code under the condition that the second check result shows that the software version of the first partition passes the check and the software version of the second partition does not pass the calibration; and taking the second partition as the partition of the current running code under the condition that the second check result shows that the software version of the first partition is not checked and the software version of the second partition is calibrated.
In one embodiment, the apparatus further comprises an update module to: and updating the running area information.
The update module is specifically configured to: and updating the partition identification corresponding to the partition of the current running code.
According to the embodiment of the disclosure, the partition of the wearable device comprises the first partition, the second partition and the backup partition, after the software upgrading package is received, the software upgrading package is not directly upgraded on the basis of the partition of the wearable device, but is written into the backup partition, and the wearable device is restarted to determine whether the upgrading is needed, so that the reliability of the software upgrading can be improved. Meanwhile, under the condition that the restarted wearable device needs to be upgraded, the partition without the currently running code is determined from the first partition and the second partition according to the recorded running area information, and the upgrade operation is performed on the partition without the currently running code only according to the software upgrade package obtained from the backup area, so that the code can be normally run based on another partition under the condition that one partition is unsuccessfully upgraded, and the normal running of the wearable device is ensured.
< apparatus embodiment >
Fig. 5 is a hardware configuration diagram of a wearable device according to an embodiment. As shown in fig. 5, the wearable device 500 further includes a processor 510 and a memory 520.
The memory 520 may be used to store executable computer instructions.
The processor 510 may be configured to execute the method for controlling a wearable device according to the method embodiments of the present disclosure, according to the control of the executable computer instructions.
The wearable device 500 may be the wearable device 1000 shown in fig. 1, or may be a device having another hardware structure, which is not limited herein. The wearable device 500 may be, for example, a smart watch, a smart bracelet, a head-mounted display, etc., which are not limited by the embodiments of the present disclosure.
In further embodiments, the wearable device 500 may include the control apparatus 400 of the above wearable device.
In one embodiment, the modules of the software upgrading apparatus 400 of the above wearable device may be implemented by the processor 510 executing computer instructions stored in the memory 520.
According to the embodiment of the disclosure, the partition of the wearable device comprises the first partition, the second partition and the backup partition, after the software upgrading package is received, the software upgrading package is not directly upgraded on the basis of the partition of the wearable device, but is written into the backup partition, and the wearable device is restarted to determine whether the upgrading is needed, so that the reliability of the software upgrading can be improved. Meanwhile, under the condition that the restarted wearable device needs to be upgraded, the partition without the currently running code is determined from the first partition and the second partition according to the recorded running area information, and the upgrade operation is performed on the partition without the currently running code only according to the software upgrade package obtained from the backup area, so that the code can be normally run based on another partition under the condition that one partition is unsuccessfully upgraded, and the normal running of the wearable device is ensured.
< computer-readable storage Medium >
The embodiment of the disclosure also provides a computer readable storage medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the method for controlling the wearable device provided by the embodiment of the disclosure is executed.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims (10)

1. A method for upgrading software of a wearable device, wherein partitions of the wearable device comprise a first partition, a second partition and a backup partition, and the method comprises the following steps:
receiving a software upgrading package;
storing the software upgrade package to the backup area, and restarting the wearable device;
under the condition that the restarted wearable equipment needs to be upgraded, determining a partition which does not run a code currently from the first partition and the second partition according to the recorded running area information;
and acquiring the software upgrading package from the backup area, and upgrading the partition of the currently non-running code according to the software upgrading package.
2. The method of claim 1, further comprising, after said storing the software upgrade package to the backup area and restarting the wearable device:
acquiring mark information of the recorded system upgrading mark bit;
and determining whether the restarted wearable equipment needs to be upgraded or not according to the mark information.
3. The method of claim 1, after the upgrading operation of the partition of currently non-running code according to the software upgrade package, comprising:
according to the set check item, checking the software version of the upgraded partition without the currently-operated code to obtain a first check result;
and restarting the wearable device under the condition that the first calibration result indicates that the upgraded software version of the partition of the currently-non-running code passes the verification.
4. The method of claim 3, wherein setting the check term comprises: a check item as to whether the software version of the upgraded partition of currently non-running code is reliable.
5. The method of claim 3, further comprising, after said storing the software upgrade package to the backup area and restarting the wearable device:
under the condition that the restarted wearable device does not need to be upgraded, verifying the software version of the first partition and the software version of the second partition according to the set verification item to obtain a second verification result;
taking the first partition as a partition of the current running code under the condition that the second check result shows that the software version of the first partition passes the check and the software version of the second partition does not pass the calibration;
and taking the second partition as the partition of the current running code under the condition that the second check result shows that the software version of the first partition is not checked and the software version of the second partition is calibrated.
6. The method of claim 3, wherein after the first calibration result indicates that the upgraded software version of the partition of the currently non-running code passes the verification, the method further comprises:
updating the operation area information;
the updating the running area information includes:
and updating the partition identification corresponding to the partition of the current running code.
7. An apparatus for upgrading software of a wearable device, the partition of the wearable device including a first partition, a second partition, and a backup partition, the apparatus comprising:
the receiving module is used for receiving the software upgrading package;
the storage module is used for storing the software upgrading package to the backup area and restarting the wearable equipment;
the determining module is used for determining a partition without running codes currently from the first partition and the second partition according to the recorded running area information under the condition that the restarted wearable device needs to be upgraded;
and the upgrading module is used for acquiring the software upgrading package from the backup area and upgrading the partition which is not operated with the codes currently according to the software upgrading package.
8. The apparatus of claim 7, wherein the determining module is specifically configured to:
acquiring mark information of the recorded system upgrading mark bit;
and determining whether the restarted wearable equipment needs to be upgraded or not according to the mark information.
9. A wearable device, comprising:
a memory for storing executable computer instructions;
a processor for performing the software upgrade method of any one of claims 1-6 under the control of the executable computer instructions.
10. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, perform the software upgrade method of any one of claims 1-6.
CN202111564666.6A 2021-12-20 2021-12-20 Software upgrading method and device for wearable equipment, wearable equipment and medium Pending CN114296757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111564666.6A CN114296757A (en) 2021-12-20 2021-12-20 Software upgrading method and device for wearable equipment, wearable equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111564666.6A CN114296757A (en) 2021-12-20 2021-12-20 Software upgrading method and device for wearable equipment, wearable equipment and medium

Publications (1)

Publication Number Publication Date
CN114296757A true CN114296757A (en) 2022-04-08

Family

ID=80967171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111564666.6A Pending CN114296757A (en) 2021-12-20 2021-12-20 Software upgrading method and device for wearable equipment, wearable equipment and medium

Country Status (1)

Country Link
CN (1) CN114296757A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115756561A (en) * 2022-10-14 2023-03-07 广州汽车集团股份有限公司 Software upgrading method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115756561A (en) * 2022-10-14 2023-03-07 广州汽车集团股份有限公司 Software upgrading method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110825411B (en) Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium
KR20180077265A (en) Plug-in packaging method, apparatus, terminal and storage medium
CN108897575B (en) Configuration method and configuration system of electronic equipment
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN112099845A (en) Software version updating method, server, vehicle, and computer storage medium
CN110175039A (en) Online upgrading method, equipment, readable storage medium storing program for executing and electronic equipment
CN111708557A (en) Method, device and storage medium for updating configuration file
CN112882734A (en) Upgrading method and device, computer equipment and medium
CN107357619B (en) Method, device, equipment and storage medium for generating card configuration file
CN113900721A (en) Operating system starting method and device and electronic equipment
CN114296757A (en) Software upgrading method and device for wearable equipment, wearable equipment and medium
US8793402B2 (en) Synchronizing time across a plurality of devices connected to a network
CN111596747A (en) Component resetting method, device, equipment and readable storage medium
KR20190021773A (en) Electronic device and method for operating data of the same
KR20190021726A (en) Operation method of operating system and electronic device supporting the same
CN105791514B (en) Application starting monitoring method and device
CN111399926A (en) Method and device for downloading starting program
US10656991B2 (en) Electronic component having redundant product data stored externally
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
US20150121336A1 (en) Screen-oriented computing program refactoring
US20150113501A1 (en) Mobile computing program slicing
CN112306723A (en) Operation information acquisition method and device applied to small program
CN109408120A (en) Os starting optimization
US9692241B2 (en) Method for improving call quality during battery charging and electronic device thereof
CN115686567A (en) OTA (over the air) upgrading method and device in android system, wearable device and 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