Wearable device battery replacement processing method, wearable device and storage medium
The method addresses the lengthy battery replacement process in high-power wearable devices by using an auxiliary battery to store data and switch back to the main battery, ensuring seamless software restoration and improved user experience.
Patent Information
- Application Number
- CN202411136904.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-12-31
AI Technical Summary
Existing wearable devices with high power consumption, such as AR, VR, and XR, require battery replacement, leading to a lengthy process of shutting down, storing data, and re-initializing software, resulting in poor user experience.
A method that switches power supply from a main battery to an auxiliary battery during replacement, stores operation data, enters a low power consumption mode, and switches back to the main battery upon reconnection, allowing direct software restoration without re-initialization.
Saves time by preventing software re-initialization during battery replacement, enhancing user experience by allowing immediate continuation of tasks.
Smart Images

Figure CN119225843A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent wearable technology, and in particular to a wearable device battery replacement processing method, a wearable device and a storage medium. Background Art
[0002] With the development of science and technology, people's demand for convenience and intelligence in life is getting higher and higher, and more and more smart wearable products with multiple functions are gradually being developed. As the number of functions of smart wearable products increases, their power consumption also increases, especially for large wearable devices such as AR, VR, and XR, which consume a lot of power and often need to be shut down for battery replacement after a period of time. At this time, the user needs to actively store the data of the current software and actively shut down to replace the battery. After the battery is replaced, the power must be turned on again and the software must be re-initialized to continue the work that the user has not completed before. In this process, it takes a long time to turn on the power again and initialize the software, and the user experience is poor. Summary of the invention
[0003] The main purpose of this application is to provide a wearable device battery replacement processing method, a wearable device and a storage medium, aiming to solve the technical problem of how to prevent the software of the wearable device from initializing during the battery replacement process, thereby saving the user's time spent in the process of replacing the battery and officially using the device again.
[0004] To achieve the above-mentioned purpose, the present application provides a wearable device battery replacement processing method, the steps of the wearable device battery replacement processing method include:
[0005] When a battery replacement request triggered by a user is detected and it is detected that the main battery access terminal is not connected to the main battery, the power supply battery used for power supply is switched from the main battery to the auxiliary battery;
[0006] When the secondary battery is used for temporary power supply, the operation data corresponding to the current software operation is stored and a low power consumption mode is entered;
[0007] When the device is in the low power consumption mode and detects that the main battery access terminal is connected to the main battery, the power supply battery is switched from the secondary battery to the main battery;
[0008] When the main battery is used for power supply, the low power consumption mode is exited, the operation data is read, and the software is restored by the operation data to prevent the software from entering an initialization state.
[0009] In one embodiment, before the step of switching the power supply battery from the main battery to the secondary battery when detecting a battery replacement request triggered by a user and detecting that the main battery access terminal is not connected to the main battery, the step further includes:
[0010] Power is supplied by the main battery, and the main battery power of the main battery is obtained by a coulomb meter;
[0011] When the power level of the main battery is lower than a first preset power level threshold, the user is prompted that the power level of the main battery is low, and the user is guided to trigger the battery replacement request so that the user can replace the main battery.
[0012] In one embodiment, when the low power consumption mode is in effect and it is detected that the main battery access terminal is connected to the main battery, the step of switching the power supply battery from the secondary battery to the main battery includes:
[0013] When the main battery is in the low power consumption mode and it is detected that the main battery access terminal is connected to the main battery, obtaining the main battery power of the main battery by using a coulomb meter;
[0014] When it is detected that the power level of the main battery is higher than a first preset power level threshold, the power supply battery is switched from the secondary battery to the main battery.
[0015] In one embodiment, after the step of obtaining the main battery power of the main battery by using a coulomb counter when the main battery is in the low power consumption mode and the main battery access terminal is detected to be connected to the main battery, the method further includes:
[0016] When it is detected that the power level of the main battery is not higher than the first preset power level threshold, the user is prompted that the power level of the main battery is low.
[0017] In one embodiment, after the step of switching the power supply battery from the secondary battery to the main battery when detecting that the power level of the main battery is higher than a first preset power level threshold, the method further includes:
[0018] detecting the secondary battery power of the secondary battery;
[0019] When the power level of the secondary battery is lower than a second preset power threshold, the secondary battery is charged by the main battery.
[0020] In one embodiment, after the step of exiting the low power consumption mode, reading the operation data, and restoring the software through the operation data to prevent the software from entering the initialization state when the main battery is used for power supply, the method further includes:
[0021] The image screen corresponding to the operation data is displayed to the user.
[0022] In one embodiment, after the step of displaying the image screen corresponding to the operation data to the user, the method further includes:
[0023] Guide the user to stop triggering the battery replacement request.
[0024] In addition, to achieve the above-mentioned purpose, the present application also provides a wearable device, which includes: a memory, a processor, and a wearable device battery replacement processing program stored on the memory and executable on the processor, wherein the wearable device battery replacement processing program is configured to implement the steps of the wearable device battery replacement processing method described above.
[0025] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a wearable device battery replacement processing program is stored on the computer-readable storage medium. When the wearable device battery replacement processing program is executed by the processor, the steps of the wearable device battery replacement processing method described above are implemented.
[0026] The present application provides a wearable device battery replacement processing method, a wearable device and a storage medium, the steps of the wearable device battery replacement processing method include: when a battery replacement request triggered by a user is detected and it is detected that the main battery access terminal is not connected to the main battery, the power supply battery used for power supply is switched from the main battery to the secondary battery; when temporary power supply is provided by the secondary battery, the operation data corresponding to the current software operation is stored, and a low power consumption mode is entered; when in the low power consumption mode and it is detected that the main battery access terminal is connected to the main battery, the power supply battery is switched from the secondary battery to the main battery; when power is provided by the main battery, the low power consumption mode is exited, the operation data is read, and the software is restored through the operation data to prevent the software from entering an initialization state.
[0027] When it is detected that the user needs to replace the main battery, the secondary battery is temporarily used for power supply, the operating data corresponding to the current software operation is stored, and the low-power consumption mode is entered until the main battery is detected to be reinstalled. After the main battery is detected to be reinstalled, it is switched back to power supply through the main battery and returns to the normal working mode, and the operating data stored in the original normal working mode is read, so that the software can be used directly through the read operating data without re-initializing the software, which saves a lot of time for initializing the software and satisfies the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0030] Figure 1 A flowchart of the first embodiment of the wearable device battery replacement method provided in this application;
[0031] Figure 2 A flowchart of the second embodiment of the battery replacement method for a wearable device provided in this application;
[0032] Figure 3 This is a schematic diagram of the structure of a wearable device according to an embodiment of the present application.
[0033] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0034] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0035] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0036] The main solution of this application is: when it is detected that the user needs to replace the battery, the auxiliary battery is used for temporary power supply, and the corresponding operating data of the software in the current operating state is stored, and the low power consumption mode is entered. In the low power mode, if it is detected that the user has reinstalled the main battery, the power supply battery is switched from the auxiliary battery to the main battery, and the low power mode is exited, returning to the normal working mode, and the operating data stored in the original normal working mode is read to return the software to the state before the battery was replaced.
[0037] At present, the existing high-power consumption wearable devices need to replace the battery during long-term operation due to their fast power consumption. Generally, when replacing the battery for the wearable device, due to the loss of power provided by the battery, it is necessary to actively store the operating data corresponding to the current software operation and shut down the device. After replacing the battery, the device needs to be restarted, the software needs to be initialized and the stored operating data needs to be extracted to enable the software to continue to run. Among them, in the process of reinstalling the battery to re-enabling the software to continue running, there is a process of software reinitialization, which takes a long time and poor user experience. Therefore, how to prevent the software of the wearable device from being initialized during the battery replacement process, thereby saving the time spent by the user in the process of replacing the battery to officially using the device again, is a problem that urgently needs to be solved.
[0038] When the application detects that the user needs to replace the main battery, it temporarily supplies power through the secondary battery, stores the operating data corresponding to the current software operation, and enters a low-power consumption mode until the main battery is detected to be reinstalled. After the main battery is detected to be reinstalled, it switches back to power supply through the main battery and returns to the normal working mode, reading the operating data stored in the original normal working mode, so that the software can be used directly through the read operating data without re-initializing the software, saving a lot of time for initializing the software and satisfying the user experience.
[0039] It should be noted that the execution subject of this embodiment can be a wearable device with data processing, network communication and program running functions, etc., and this embodiment does not specifically limit this. The following takes the wearable device battery replacement processing device as an example to illustrate this embodiment and the following embodiments.
[0040] Based on this, this application proposes a wearable device battery replacement processing method of the first embodiment, please refer to Figure 1 The wearable device battery replacement processing method includes steps S10-S40:
[0041] Step S10, when a battery replacement request triggered by a user is detected and it is detected that the main battery access terminal is not connected to the main battery, the power supply battery used for power supply is switched from the main battery to the auxiliary battery;
[0042] It should be noted that in this embodiment, the specific application scenario is the situation where the user needs to replace the battery due to insufficient battery power in the smart wearable product during the use of the smart wearable product. In this case, if the user needs to replace the main battery used to power the entire smart wearable product, the corresponding battery replacement instruction can be triggered by a physical button or a virtual button, so that the power supply battery for the smart wearable product is changed from the original main battery to the secondary battery.
[0043] It is easy to understand that the main battery access terminal is the port on the wearable device for installing the main battery. After the main battery is connected, the main battery can power the wearable device. The secondary battery refers to a battery with a small energy storage capacity, which can temporarily power the wearable device in this embodiment for a short time. In this embodiment, if the execution subject detects a battery replacement request triggered by the user and detects that the main battery access terminal is not connected to the main battery (the main battery has been removed), in order to ensure that the wearable device will not shut down, the secondary battery can be used to temporarily power the wearable device. Among them, in order to reduce the space volume and weight of the wearable device, the size of the secondary battery will not be set very large, so the electrical energy it can store is small. Since the maximum electrical energy storage capacity of the secondary battery is small, it cannot support the wearable device to work for a long time.
[0044] Step S20, when the secondary battery is temporarily powered, storing the operation data corresponding to the current software operation and entering a low power consumption mode;
[0045] It is easy to understand that if the power supply battery currently used for power supply is switched from the main battery to the secondary battery, the power can be supplied only by the secondary battery for a short period of time. During this process, in order to ensure that the user has sufficient time to complete the replacement operation of the main battery, the operating data corresponding to the current software operation can be stored first, and then the entire wearable device can enter low power consumption mode to reduce power consumption.
[0046] More specifically, the software mentioned in this embodiment includes system software for configuring the operating system inside the wearable device, and also includes application software for performing certain tasks, but does not include related software that enables the wearable device to perform the most basic operations (such as basic functions such as voice prompts) in low-power mode. In order to ensure that the data corresponding to the current software operation is not lost, the operation data corresponding to the current software operation can be automatically stored at this time, and the software can be switched to the background to continue running. At the same time, all functional modules with high power consumption inside the wearable device are controlled to stop working, and the entire wearable device enters low-power mode.
[0047] It is worth noting that in the present embodiment, the wearable device can access the Internet through the internal wireless network module, and the low power consumption mode may include an airplane mode. In the airplane mode, the functional modules that can interact with the outside through, for example, the wireless network module, stop working, and cannot receive various types of information transmitted from the outside, such as global positioning system (GPS) information. Only some signals or instructions generated by the wearable device can be received, such as the main battery access signal generated by the main battery access terminal connecting to the main battery.
[0048] Step S30, when the low power consumption mode is in effect and it is detected that the main battery access terminal is connected to the main battery, switching the power supply battery from the secondary battery to the main battery;
[0049] It is easy to understand that in this embodiment, when the wearable device is in low power consumption mode, if it is detected that the user reconnects the main battery to the main battery access terminal on the wearable device, the power supply battery currently powering the wearable device is switched from the secondary battery to the currently connected main battery.
[0050] It should be noted that, in the present embodiment, the main battery reconnected by the user may be a main battery previously removed, or may be another new main battery selected by the user, which is not limited here.
[0051] Step S40, when the main battery is used for power supply, exit the low power consumption mode, read the operation data, and restore the software through the operation data to prevent the software from entering the initialization state.
[0052] It is easy to understand that in this embodiment, when the power is supplied by the main battery newly installed by the user, since the current main battery has sufficient power to meet the power required for the normal operation of the wearable device, the wearable device can exit the low-power mode with slow power consumption, and switch the software back to the foreground from the background, and read the operation data stored when the user entered the low-power mode after removing the main battery last time, so that the current running state of the software can be directly restored to the running state before the battery was replaced through the read operation data. In the above manner, the data of the software operation will not be lost during the whole process of battery replacement, the host does not need to be restarted, and the software does not need to be reinitialized for use, so the time for restarting the host and initializing the software after replacing the battery can be saved, so that the user can continue to complete the work that was not completed before the battery was replaced directly through the wearable device after replacing the battery, thereby improving the user experience.
[0053] The present application provides a wearable device battery replacement processing method, the steps of the wearable device battery replacement processing method include: when the power is supplied by the auxiliary battery, the operation data corresponding to the current software operation is stored, and the low power consumption mode is entered; when the power is in the low power consumption mode and the main battery access terminal is detected to be connected to the main battery, the power supply battery used for power supply is switched from the auxiliary battery to the main battery; when the power is supplied by the main battery, the low power consumption mode is exited and the operation data is read to prevent the software from entering the initialization state. When the main battery is replaced, the auxiliary battery is temporarily used for power supply, the operation data corresponding to the current software operation is stored, and the low power consumption mode with low power consumption is entered until the main battery is detected to be reinstalled. After the main battery is detected to be reinstalled, it is switched to be powered by the main battery again, and the normal working mode is returned to read the operation data stored in the original normal working mode, so that the software can be used directly through the read operation data, without the need to reinitialize the software, saving a lot of time for initializing the software and satisfying the user experience.
[0054] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 , before the step of switching the power supply battery from the main battery to the auxiliary battery when detecting a battery replacement request triggered by a user and detecting that the main battery access terminal is not connected to the main battery, the step also includes:
[0055] Step S01, supplying power through the main battery, and obtaining the main battery power of the main battery through a coulomb meter;
[0056] It is easy to understand that the coulomb meter can calculate the capacitance by calculating the current and time flowing through the circuit, that is, the current can be integrated over time to obtain the remaining main battery power of the main battery. In this embodiment, the initial state can be defaulted to the state of connecting to the main battery and powering the main battery. When the main battery is used to power the functional modules inside the wearable device, the power of the main battery can also be measured by the coulomb meter to obtain the remaining main battery power of the main battery.
[0057] Step S02, when the power level of the main battery is lower than a first preset power threshold, prompting the user that the power level of the main battery is low, and guiding the user to trigger the battery replacement request so that the user can replace the main battery.
[0058] It is easy to understand that the first preset power threshold is a power value used to determine whether the current main battery is about to run out of power. In this embodiment, if it is detected that the main battery power of the currently connected main battery is lower than the first preset power value, the user will be automatically prompted that the current main battery power is low, and the user can be guided to trigger the corresponding physical button or virtual button through images or voice, thereby generating a battery replacement request and allowing the user to replace the main battery for the wearable device.
[0059] Further, in this embodiment, when the low power consumption mode is in place and it is detected that the main battery access terminal is connected to the main battery, the step of switching the power supply battery from the secondary battery to the main battery includes:
[0060] Step S21, when the main battery is in the low power consumption mode and it is detected that the main battery access terminal is connected to the main battery, obtaining the main battery power of the main battery by using a coulomb counter;
[0061] Step S22: when it is detected that the power level of the main battery is higher than a first preset power level threshold, the power supply battery is switched from the secondary battery to the main battery.
[0062] It is easy to understand that in this embodiment, in the low power consumption mode, if it is detected that the main battery access terminal is reconnected to the main battery, in order to ensure that the newly replaced main battery can meet the power supply required by the wearable device, the main battery power corresponding to the currently connected main battery can be re-obtained through the coulomb counter. When it is detected that the main battery power obtained is higher than the first preset power threshold, it indicates that the current main battery power is sufficient, and the power supply battery for the wearable device can be switched from the auxiliary battery to the main battery through the battery management module.
[0063] It is worth noting that in this embodiment, the re-connected main battery can be the originally removed main battery, which is charged after the user removes the original main battery, and after a period of charging, the charged main battery is re-connected to the wearable device; in addition, the re-connected main battery can also be another brand-new main battery, which can be directly connected to the wearable device after the user removes the original main battery.
[0064] Further, in this embodiment, after the step of obtaining the main battery power of the main battery by using a coulomb counter when the main battery is in the low power consumption mode and the main battery access terminal is detected to be connected to the main battery, the method further includes:
[0065] Step S23: When it is detected that the power level of the main battery is not higher than the first preset power threshold, prompt the user that the power level of the main battery is low.
[0066] It is easy to understand that in this embodiment, if the main battery power corresponding to the replaced main battery is not higher than the first preset power threshold, it means that the power of the currently replaced main battery is still insufficient and cannot meet the power consumption requirements of the wearable device. It is still necessary to replace a new main battery with sufficient power to power the wearable device. In this case, the user can be reminded again that the current main battery power is low.
[0067] Further, in this embodiment, after the step of switching the power supply battery from the secondary battery to the main battery when detecting that the power level of the main battery is higher than a first preset power threshold, the method further includes:
[0068] Step S241, detecting the secondary battery power of the secondary battery;
[0069] Step S242: When the power level of the secondary battery is lower than a second preset power threshold, the secondary battery is charged by the main battery.
[0070] It should be understood that in order to reduce the size and weight of wearable devices, the secondary battery is usually designed to be smaller and its energy storage capacity is also smaller. If you want to successfully use the secondary battery to temporarily power the wearable device when the main battery is low on power, you need to ensure that the remaining power of the secondary battery is sufficient every time the main battery is used to power the device.
[0071] It should be noted that the second preset power threshold refers to the power value corresponding to the secondary battery power being close to the upper limit value. To ensure that the secondary battery is not overcharged, the second preset power threshold is generally not full, and can be set within the range of 95-99% of the upper limit value of the secondary battery power. In this embodiment, if the power supply has been switched back to the main battery, and when it is detected that the current remaining power of the secondary battery is lower than the second preset power threshold, the secondary battery can also be charged by the power provided by the main battery to ensure that it can be temporarily powered at any time.
[0072] Further, in this embodiment, after the step of exiting the low power consumption mode, reading the operation data, and restoring the software through the operation data to prevent the software from entering the initialization state when the main battery is used for power supply, the method further includes:
[0073] Step S50, displaying an image screen corresponding to the operation data to the user.
[0074] It is easy to understand that in this embodiment, the wearable device can be an electronic device with a display function, which can specifically be a head-mounted electronic device that uses virtual reality hybrid technology such as AR, VR, and XR. After reading the operating data stored before replacing the battery and switching the software from the background back to the foreground, the software can continue to run through the operating data. During the operation process, the software cooperates with the hardware of the wearable device to display the information corresponding to the application data in the operating data to the user in the form of an image screen, so that the user can view the content displayed before replacing the battery after updating the battery, without waiting for the software to initialize.
[0075] Furthermore, in this embodiment, after the step of displaying the image screen corresponding to the operation data to the user, it also includes:
[0076] Step S60, guiding the user to stop triggering the battery replacement request.
[0077] It is easy to understand that in this embodiment, since the user has pressed the corresponding physical button or virtual button before removing the main battery for the first time to trigger the generation of a battery replacement request, the user will receive prompts or guidance information such as how to replace the main battery from the wearable device at regular intervals. In order to prevent the user from repeatedly receiving such information after the wearable device returns to the normal working mode, after the image screen is restored, the user will be guided to stop pressing the corresponding physical button or virtual button to stop triggering the generation of the corresponding battery replacement request.
[0078] The present application provides a wearable device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the wearable device battery replacement processing method in the above-mentioned embodiment one.
[0079] Reference below Figure 3 , which shows a schematic diagram of the structure of a wearable device suitable for implementing the embodiment of the present application. The wearable device in the embodiment of the present application may include but is not limited to a fixed terminal such as a vehicle-mounted terminal. Figure 3 The wearable device shown is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
[0080] like Figure 3 As shown, the wearable device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the wearable device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the wearable device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a wearable device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0081] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0082] The wearable device provided by the present application adopts the wearable device battery replacement processing method in the above embodiment, which can solve the technical problem of how to prevent the wearable device software from being initialized during the battery replacement process, thereby saving the user's time spent in the process from replacing the battery to officially using the device again. Compared with the prior art, the beneficial effects of the wearable device provided by the present application are the same as the beneficial effects of the wearable device battery replacement processing method provided by the above embodiment, and the other technical features in the wearable device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0083] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0084] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0085] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the wearable device battery replacement processing method in the above-mentioned embodiment.
[0086] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0087] The computer-readable storage medium may be included in the wearable device; or may exist independently without being assembled into the wearable device.
[0088] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the wearable device, the wearable device: when powered by a secondary battery, stores the running data corresponding to the current software running and enters a low power consumption mode; when in the low power consumption mode and detects that the main battery access terminal is connected to the main battery, switches the power supply battery from the secondary battery to the main battery; when powered by the main battery, exits the low power consumption mode and reads the running data to prevent the software from entering an initialization state.
[0089] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0090] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0091] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0092] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned wearable device battery replacement processing method, and can solve the technical problem of how to prevent the wearable device software from being initialized during the battery replacement process, thereby saving the user's time spent in the process from replacing the battery to officially using the device again. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the wearable device battery replacement processing method provided by the above-mentioned embodiment, and will not be repeated here.
[0093] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for replacing a battery of a wearable device, characterized in that: The steps of the wearable device battery replacement processing method include: When a battery replacement request triggered by a user is detected and it is detected that the main battery access terminal is not connected to the main battery, the power supply battery used for power supply is switched from the main battery to the auxiliary battery; When the secondary battery is used for temporary power supply, the operation data corresponding to the current software operation is stored and a low power consumption mode is entered; When the device is in the low power consumption mode and detects that the main battery access terminal is connected to the main battery, the power supply battery is switched from the secondary battery to the main battery; When the main battery is used for power supply, the low power consumption mode is exited, the operation data is read, and the software is restored by the operation data to prevent the software from entering an initialization state.
2. The wearable device battery replacement method according to claim 1, characterized in that: Before the step of switching the power supply battery from the main battery to the secondary battery when detecting a battery replacement request triggered by a user and detecting that the main battery access terminal is not connected to the main battery, the step also includes: Power is supplied by the main battery, and the main battery power of the main battery is obtained by a coulomb meter; When the power level of the main battery is lower than a first preset power level threshold, the user is prompted that the power level of the main battery is low, and the user is guided to trigger the battery replacement request so that the user can replace the main battery.
3. The wearable device battery replacement method according to claim 1, characterized in that: The step of switching the power supply battery from the secondary battery to the main battery when the main battery access terminal is detected to be connected to the main battery in the low power consumption mode comprises: When the main battery is in the low power consumption mode and it is detected that the main battery access terminal is connected to the main battery, obtaining the main battery power of the main battery by using a coulomb meter; When it is detected that the power level of the main battery is higher than a first preset power level threshold, the power supply battery is switched from the secondary battery to the main battery.
4. The wearable device battery replacement processing method according to claim 3, characterized in that: After the step of obtaining the main battery power of the main battery by using a coulomb counter when the main battery is in the low power consumption mode and the main battery access terminal is detected to be connected to the main battery, the method further includes: When it is detected that the power level of the main battery is not higher than the first preset power level threshold, the user is prompted that the power level of the main battery is low.
5. The wearable device battery replacement method according to claim 3, characterized in that: After the step of switching the power supply battery from the secondary battery to the main battery when detecting that the power level of the main battery is higher than a first preset power level threshold, the method further includes: detecting the secondary battery power of the secondary battery; When the power level of the secondary battery is lower than a second preset power threshold, the secondary battery is charged by the main battery.
6. The wearable device battery replacement method according to claim 1, characterized in that: After the step of exiting the low power consumption mode, reading the operation data, and restoring the software through the operation data to prevent the software from entering the initialization state when the main battery is used for power supply, the method further includes: The image screen corresponding to the operation data is displayed to the user.
7. The wearable device battery replacement method according to claim 1, characterized in that: After the step of displaying the image screen corresponding to the operation data to the user, the method further includes: Guide the user to stop triggering the battery replacement request.
8. A wearable device, characterized in that: The wearable device includes: a memory, a processor, and a wearable device battery replacement processing program stored in the memory and executable on the processor, wherein the wearable device battery replacement processing program is configured to implement the steps of the wearable device battery replacement processing method as described in any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a wearable device battery replacement processing program is stored. When the wearable device battery replacement processing program is executed by a processor, the steps of the wearable device battery replacement processing method as described in any one of claims 1 to 7 are implemented.
