Battery electric quantity display method and device, wearable equipment and storage medium
By temporarily powering with the secondary battery when the main battery is removed in the wearable device and clearing the accumulated power of the Coulomb after reconnecting the main battery, the problem of inaccurate battery display after replacement is solved and accurate battery power is achieved Display improves user experience.
Patent Information
- Application Number
- CN202411136906.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-12
AI Technical Summary
After replacing the main battery of the wearable device, the accumulated battery capacity of the Coulomb count is inaccurate, causing the user to incorrectly judge the device's battery life and affect the user experience.
When the main battery is removed, it temporarily powers through the secondary battery to clear the accumulated power of the Coulomb meter; when the main battery is reconnected, it is re-powered through the main battery to accumulate and obtain the current power and display it dynamically.
It avoids inaccurate display caused by excessive battery differences before and after replacement by the Coulomb meter accumulated, ensuring that the user obtains real and accurate battery power after replacing the battery to meet the user experience.
Smart Images

Figure CN118938027A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of battery power display, and in particular to a battery power display method, device, wearable device and storage medium. Background Art
[0002] With the development of science and technology, virtual reality technology has become one of the most popular major technological innovation directions in recent years. For wearable devices such as AR, VR, and XR, due to the large amount of calculations required when the devices are working, they consume power quickly, and the batteries need to be replaced every once in a while to ensure their battery life. However, after replacing the battery, the coulomb meter used to calculate the battery power inside the head-mounted display device currently calculates the battery power corresponding to the removed battery, which is significantly different from the actual battery power corresponding to the replaced battery. This will cause the battery power displayed on the wearable device after the battery is replaced to be inaccurate, which may cause the user to misjudge the time the current device can continue to work, resulting in sudden power outages during device operation, and poor user experience. Summary of the invention
[0003] The main purpose of this application is to provide a battery power display method, device, wearable device and storage medium, aiming to solve the technical problem of how to accurately display the current battery power of the main battery after replacing the main battery without shutting down the device.
[0004] To achieve the above object, the present application provides a battery power display method, the steps of the battery power display method comprising:
[0005] When 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 temporarily powered, clearing the remaining first main battery power of the main battery currently accumulated by the coulomb counter;
[0007] When it is detected that the main battery access terminal is reconnected to the main battery, the power supply battery is switched from the auxiliary battery to the main battery;
[0008] When the main battery is used for power supply, the remaining second battery power corresponding to the currently connected main battery is accumulated and acquired through the coulomb counter, and the displayed power is dynamically displayed based on the second main battery power.
[0009] In one embodiment, before the step of switching the power supply battery from the main battery to the secondary battery when it is detected that the main battery access terminal is not connected to the main battery, the step further includes:
[0010] Acquiring the power of the first main battery through the coulomb counter;
[0011] When the power level of the first main battery is lower than a preset power threshold, the user is prompted that the remaining power level of the current main battery is insufficient, and the user is guided to replace the main battery.
[0012] In one embodiment, before the step of switching the power supply battery from the main battery to the secondary battery when it is detected that the main battery access terminal is not connected to the main battery, the step further includes:
[0013] The main battery supply voltage at the main battery access terminal is obtained, and when the main battery supply voltage is lower than a first preset voltage threshold, it is determined that the main battery access terminal is not currently connected to the main battery.
[0014] In one embodiment, when the secondary battery is temporarily powered, the step of clearing the remaining first main battery power currently accumulated by the coulomb counter comprises:
[0015] When the secondary battery is used for temporary power supply, the power level of the first main battery currently recorded by the coulomb meter is used as the displayed power level;
[0016] The power level is statically displayed to the user, the coulomb meter is stopped, and the power level of the first main battery accumulated by the coulomb meter is cleared.
[0017] In one embodiment, when the main battery is used for power supply, the steps of accumulating and obtaining the remaining second battery power corresponding to the currently connected main battery through the coulomb counter, and dynamically displaying the display power based on the second main battery power include:
[0018] When the main battery is used for power supply, restarting the coulomb meter, and accumulating the power of the second main battery through the coulomb meter;
[0019] The power level of the second main battery is used as the displayed power level, and the displayed power level is dynamically displayed to the user.
[0020] In one embodiment, after the step of switching the power supply battery from the secondary battery to the main battery when detecting that the main battery access terminal is reconnected to the main battery, the method further includes:
[0021] When the main battery is used for power supply, obtaining a secondary battery power supply voltage corresponding to the secondary battery;
[0022] When the supply voltage of the secondary battery is lower than a second preset voltage threshold, the secondary battery is charged by the main battery.
[0023] In one embodiment, after the step of switching the power supply battery from the main battery to the secondary battery when it is detected that the main battery access terminal is not connected to the main battery, the method further includes:
[0024] When the secondary battery is temporarily powered, obtaining a secondary battery power supply voltage corresponding to the secondary battery;
[0025] When it is detected that the power supply voltage of the secondary battery is lower than the third preset voltage threshold, the user is prompted that the power of the secondary battery is low.
[0026] In addition, to achieve the above-mentioned purpose, the present application also provides a battery power display device, the battery power display device comprising:
[0027] A battery management module, configured to switch the power supply battery from the main battery to the auxiliary battery when detecting that the main battery access terminal is not connected to the main battery;
[0028] A power display module, used for clearing the remaining first main battery power of the main battery currently accumulated by the coulomb meter when the auxiliary battery is temporarily powered;
[0029] The battery management module is further configured to switch the power supply battery from the auxiliary battery to the main battery when detecting that the main battery access terminal is reconnected to the main battery;
[0030] The power display module is also used to accumulate and obtain the remaining second battery power corresponding to the currently connected main battery through the coulomb counter when the main battery is used for power supply, and dynamically display the display power based on the second main battery power.
[0031] In addition, to achieve the above-mentioned purpose, the present application also provides a wearable device, which includes: a memory, a processor, and a battery power display program stored in the memory and executable on the processor, wherein the battery power display program is configured to implement the steps of the battery power display method described above.
[0032] 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 battery power display program is stored on the computer-readable storage medium. When the battery power display program is executed by the processor, the steps of the battery power display method described above are implemented.
[0033] The present application provides a battery power display method, device, wearable device and storage medium, the steps of the battery power display method include: when 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 the secondary battery is temporarily powered, the remaining first main battery power currently accumulated by the coulomb meter is cleared; when it is detected that the main battery access terminal is reconnected to the main battery, the power supply battery is switched from the secondary battery to the main battery; when the main battery is powered, the remaining second battery power corresponding to the currently connected main battery is accumulated by the coulomb meter, and the display power is dynamically displayed based on the second main battery power.
[0034] When it is detected that the user has removed the main battery, the auxiliary battery is used for temporary power supply, the remaining first main battery power corresponding to the main battery at the moment of main battery removal is cleared, and when it is detected that the main battery is reconnected, the main battery is used for power supply again, the coulomb meter is controlled to accumulate and obtain the second main battery power corresponding to the currently connected main battery, and the display circuit is dynamically displayed through the second main battery power. This can avoid the situation where the power display is inaccurate due to the large difference between the two main battery powers accumulated by the coulomb meter before and after the main battery is replaced when the battery is replaced, so that the user can obtain the real and accurate main battery power after replacing the battery, satisfying the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] 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.
[0036] 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.
[0037] Figure 1 A flowchart of the first embodiment of the battery power display method of the present application is provided;
[0038] Figure 2 A flowchart of the second embodiment of the battery power display method of the present application is provided;
[0039] Figure 3 A flowchart of the third embodiment of the battery power display method of the present application is provided;
[0040] Figure 4 This is a schematic diagram of the module structure of the battery power display device according to an embodiment of the present application;
[0041] Figure 5 This is a schematic diagram of the structure of a wearable device according to an embodiment of the present application.
[0042] 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
[0043] 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.
[0044] 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.
[0045] The main solution of this application is: when the user replaces the main battery used for power supply, the auxiliary battery is used for temporary power supply, and the coulomb meter currently records the remaining power of the first main battery when the main battery is removed. After the user completes the replacement of the main battery, the power supply is switched back to the main battery, and the remaining power of the second main battery corresponding to the currently connected main battery is accumulated and obtained by the coulomb meter as the display power for dynamic display.
[0046] At present, some wearable devices with high power consumption are generally equipped with multiple batteries. When the battery power is low, the required battery life can be met by directly replacing the battery. Such wearable devices usually use a coulomb meter to calculate the remaining battery power. Since the coulomb meter itself accumulates the power obtained by integrating the current in the circuit, and there is a large difference between the remaining battery power of the battery after replacing the battery and the remaining battery power of the battery before replacing the battery, the coulomb meter will obtain an incorrect value, which will cause the display of the wrong remaining power. Therefore, how to ensure that the current battery power of the main battery can be accurately displayed after replacing the main battery without shutting down is a problem that needs to be solved urgently.
[0047] This application uses the auxiliary battery to temporarily supply power when it detects that the user has removed the main battery, clears the remaining first main battery power corresponding to the main battery at the moment the main battery is removed, and when it detects that the main battery is reconnected, it supplies power again through the main battery, controls the coulomb meter to accumulate and obtain the second main battery power corresponding to the currently connected main battery, and dynamically displays the display circuit through the second main battery power. This can avoid the situation where the displayed power is inaccurate due to the large difference between the two main battery powers accumulated by the coulomb meter before and after the main battery is replaced when the battery is replaced, so that the user can obtain the real and accurate main battery power after replacing the battery, satisfying the user experience.
[0048] It should be noted that the execution subject of this embodiment can be a battery power display device, or 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 battery power display device as the execution subject as an example to illustrate this embodiment and the following embodiments.
[0049] Based on this, the present application proposes a battery power display method of the first embodiment, please refer to Figure 1 The battery power display method includes steps S10-S40:
[0050] Step S10, when 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;
[0051] It should be noted that the main battery and the secondary battery can be installed in the same device at the same time, and both the main battery and the secondary battery serve as the power supply battery of the device to provide power for the normal operation of the device. In this way, when the main battery stops supplying power to the device, the secondary battery can continue to supply power to the device, so as to complete the replacement of the main battery without shutting down the device. Among them, when it is detected that the current main battery access terminal has been connected to the main battery, the device is only powered by the main battery; when it is detected that the current main battery access terminal is not temporarily connected to the main battery, the device can be temporarily powered by the secondary battery.
[0052] It should be understood that in this embodiment, the device is an electrical device that needs to be powered by a main battery or a secondary battery to perform a certain task, and specifically can be a wearable device with high power consumption, such as VR, AR, XR, etc.
[0053] It is easy to understand that in this embodiment, if the user is currently using the device and the power of the main battery that mainly powers the device is low, the user replaces the main battery. When the user removes the main battery originally installed on the device, the main battery access signal generated by the main battery access terminal being connected to the main battery cannot be detected. Correspondingly, the current power supply battery can be switched from the original main battery to the auxiliary battery to temporarily power the device.
[0054] It is worth noting that in order to reduce the overall size of the device, the secondary battery is generally small in size and can only store a small amount of electrical energy. It can only provide temporary power to the device but cannot provide power for a long time.
[0055] Step S20, when the auxiliary battery is temporarily powered, clearing the remaining first main battery power currently accumulated by the coulomb counter;
[0056] It should be noted that the coulomb meter can be used to calculate the remaining power of the main battery of the connected device. The coulomb meter has a sampling resistor inside, which can collect the current value flowing through the circuit. By integrating the current value, the amount of charge currently released by the battery can be obtained, and the remaining first main battery power of the current main battery can be calculated based on the charge amount.
[0057] It is easy to understand that in this embodiment, when the auxiliary battery is used for temporary power supply, it indicates that the main battery has been removed by the user, and the remaining first main battery power of the main battery currently accumulated by the coulomb counter has become invalid. If it is necessary to accumulate the remaining battery power corresponding to the main battery connected next time, it is necessary to clear the currently acquired first main battery power first to prevent the currently accumulated first main battery power from interfering with the subsequent calculation of the main battery power.
[0058] Step S30, when it is detected that the main battery access terminal is reconnected to the main battery, the power supply battery is switched from the auxiliary battery to the main battery;
[0059] It is easy to understand that when the user reinstalls the charged main battery or another main battery into the main battery access terminal of the device, the main battery access signal generated by the main battery access terminal due to the access to the main battery can be detected. At this time, the power supply battery used to power the device can be switched from the secondary battery to the main battery.
[0060] Step S40, when the main battery is used for power supply, the remaining second battery power corresponding to the currently connected main battery is accumulated and acquired by the coulomb counter, and the display power is dynamically displayed based on the second main battery power.
[0061] It should be noted that the displayed power level refers to the remaining battery power of the currently connected main battery displayed to the user by the current device.
[0062] It is easy to understand that when the device is powered by the main battery again, the remaining power of the currently connected main battery can be accumulated again by the coulomb meter, so as to obtain the remaining power of the second main battery corresponding to the currently connected main battery. And the power can be dynamically displayed in real time through the obtained second main battery power.
[0063] It is worth noting that when temporary power is supplied by the secondary battery, the remaining first main battery power before removal accumulated by the coulomb meter has been cleared. Therefore, when power is supplied by the main battery again, the power in the current circuit needs to be integrated again to obtain the accurate and true second main battery power corresponding to the currently connected main battery.
[0064] The present application provides a battery power display method, the steps of which include: when 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 auxiliary battery is temporarily powered, the remaining first main battery power of the main battery currently accumulated by the coulomb meter is cleared; when it is detected that the main battery access terminal is reconnected to the main battery, the power supply battery is switched from the auxiliary battery to the main battery; when the main battery is powered, the remaining second battery power corresponding to the currently connected main battery is accumulated by the coulomb meter, and the displayed power is dynamically displayed based on the second main battery power. When it is detected that the user removes the main battery, the auxiliary battery is temporarily powered, the remaining first main battery power corresponding to the main battery at the moment of main battery removal is cleared, and when it is detected that the main battery is reconnected, the main battery is powered again, and the coulomb meter is controlled to accumulate and obtain the second main battery power corresponding to the currently connected main battery, and the display circuit is dynamically displayed by the second main battery power. This can avoid the situation where the displayed power is inaccurate due to the large difference between the two main battery powers accumulated by the coulomb meter before and after the main battery is replaced when the battery is replaced, so that the user can obtain the real and accurate main battery power after replacing the battery, satisfying the user experience.
[0065] 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 it is detected that the main battery access terminal is not connected to the main battery, it also includes:
[0066] Step S01, obtaining the power of the first main battery through the coulomb counter;
[0067] It should be noted that, in this embodiment, the current device is in a state of being powered by a main battery. In this case, the real-time first main battery power of the main battery can be accumulated and acquired by a coulomb counter.
[0068] Step S02: when the power level of the first main battery is lower than a preset power threshold, prompt the user that the remaining power of the current main battery is insufficient, and guide the user to replace the main battery.
[0069] It should be noted that the preset power threshold refers to the power value corresponding to the current main battery remaining power is about to run out. In a specific implementation, if the current real-time acquired first main battery power is lower than the preset power threshold, it means that the remaining power of the main battery of the current connected device is about to run out, and the user can be reminded in time that the remaining power of the current main battery is insufficient, and the user can be guided to replace the main battery by voice or image.
[0070] Furthermore, in this embodiment, before the step of switching the power supply battery from the main battery to the auxiliary battery when it is detected that the main battery access terminal is not connected to the main battery, the method further includes:
[0071] Step S03, obtaining the main battery supply voltage at the main battery access terminal, and when the main battery supply voltage is lower than a first preset voltage threshold, determining that the main battery access terminal is not currently connected to the main battery.
[0072] It should be noted that the first preset voltage threshold refers to the voltage threshold used to determine whether the main battery is connected to the device. If the main battery is connected to the circuit of the device, a corresponding voltage will be generated. The first preset voltage threshold can also be understood as the minimum voltage value generated when the main battery is connected to the circuit of the device. The main battery supply voltage refers to the voltage value output in real time when the main battery is connected to the device. In this embodiment, the main battery supply voltage at the main battery access terminal can also be collected. When the collected main battery supply voltage is lower than the first preset voltage threshold, it can be determined that the current main battery access terminal is actually not connected to the main battery, or the connected main battery has been exhausted.
[0073] It is worth noting that, generally speaking, if there is still residual power in the main battery, the generated voltage value will be higher than 0V. Therefore, in this embodiment, the first preset voltage threshold may be 0V.
[0074] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the above-mentioned first and second embodiments can refer to the above introduction, and will not be repeated later. Figure 3 , when the secondary battery is temporarily powered, the step of clearing the remaining first main battery power currently accumulated by the coulomb meter comprises:
[0075] Step S21, when the secondary battery is temporarily powered, the power level of the first main battery currently recorded by the coulomb counter is used as the displayed power level;
[0076] Step S22, statically displaying the power to the user through the power display, stopping the coulomb counter, and clearing the first main battery power accumulated by the coulomb counter.
[0077] It is easy to understand that if it is detected that the current user has removed the main battery and temporarily powered the device with the auxiliary battery, the remaining first main battery power of the main battery obtained at the last moment before the main battery was removed can be saved, and the first main battery power at that moment can be used as the displayed power in this state (the state of temporary power supply by the auxiliary battery). And the displayed power is displayed statically, that is, the fixed and unchanged last remaining first main battery power of the removed main battery obtained above is always displayed to the user. Subsequently, the coulombmeter is stopped so that it no longer continues to integrate the current in the circuit, and the accumulated charge remains unchanged. Finally, the accumulated charge calculated by the coulombmeter is cleared (that is, the currently accumulated first main battery power is cleared) to handle the accumulated calculation of the remaining power of the main battery that is subsequently reconnected.
[0078] Further, in this embodiment, when the main battery is used for power supply, the steps of accumulating and obtaining the remaining second battery power corresponding to the currently connected main battery through the coulomb counter, and dynamically displaying the display power based on the second main battery power include:
[0079] Step S41, when the main battery is used for power supply, restarting the coulomb counter, and accumulating the power of the second main battery through the coulomb counter;
[0080] It is easy to understand that in this embodiment, when it is detected that the user has reinstalled the main battery, the power supply battery can be switched from the secondary battery to the main battery, and the main battery can be used to supply power again. When the device is powered by the main battery again, the coulomb meter can be controlled to restart, so that the coulomb meter collects the amount of charge released by the main battery currently connected to the circuit, thereby obtaining the remaining second main battery power of the main battery currently connected to the device.
[0081] Step S42: Using the second main battery power as the display power, and dynamically displaying the display power to the user.
[0082] It is easy to understand that in this embodiment, the remaining second main battery power of the main battery of the reconnected device currently obtained by the coulomb meter is used as the displayed power, and the displayed power is updated in real time, so that the real-time power of the main battery of the currently connected device, that is, the second main battery power, can be easily displayed to the user in real time.
[0083] 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 main battery access terminal is reconnected to the main battery, the method further includes:
[0084] Step S51, when the main battery is used for power supply, obtaining a secondary battery power supply voltage corresponding to the secondary battery;
[0085] Step S52: When the power supply voltage of the secondary battery is lower than a second preset voltage threshold, the secondary battery is charged by the main battery.
[0086] It is easy to understand that the second preset voltage threshold refers to the voltage value output when the secondary battery is about to be fully charged. The secondary battery supply voltage refers to the voltage value output by the current secondary battery in real time. In this embodiment, when the device is powered by the main battery again, the secondary battery supply voltage corresponding to the current secondary battery can also be obtained. If the current secondary battery supply voltage is lower than the second preset voltage threshold, it indicates that the current secondary battery voltage is not full. In order to ensure that the secondary battery can provide sufficient power when the main battery is replaced next time to maintain the minimum time required to replace the main battery, it is necessary to charge the secondary battery while the device is powered by the main battery.
[0087] Further, in this embodiment, after the step of switching the power supply battery from the main battery to the auxiliary battery when it is detected that the main battery access terminal is not connected to the main battery, the method further includes:
[0088] Step S101, when the secondary battery is temporarily powered, obtaining the secondary battery power supply voltage corresponding to the secondary battery;
[0089] Step S102: when it is detected that the power supply voltage of the secondary battery is lower than a third preset voltage threshold, prompting the user that the power of the secondary battery is low.
[0090] It is easy to understand that the third preset voltage threshold refers to the voltage value output by the secondary battery when it is about to run out of power. In this embodiment, when it is detected that the user removes the main battery and temporarily powers the device with the secondary battery, the secondary battery power supply voltage corresponding to the current secondary battery can also be obtained. If the secondary battery power supply voltage is lower than the third preset voltage threshold, it indicates that the power of the current secondary battery is about to run out. The user can be prompted in the form of an image or voice that the power of the current secondary battery is insufficient and the main battery needs to be installed as soon as possible to power the device and charge the secondary battery.
[0091] The present application also provides a battery power display device, please refer to Figure 4 , the battery power display device comprises:
[0092] The battery management module 10 is used to switch the power supply battery from the main battery to the auxiliary battery when it is detected that the main battery access terminal is not connected to the main battery;
[0093] The power display module 20 is used to clear the remaining first main battery power of the main battery currently accumulated by the coulomb meter when the auxiliary battery is temporarily powered;
[0094] The battery management module 10 is further configured to switch the power supply battery from the secondary battery to the main battery when it is detected that the main battery access terminal is reconnected to the main battery;
[0095] The power display module 20 is also used to accumulate and obtain the remaining second battery power corresponding to the currently connected main battery through the coulomb counter when the main battery is used for power supply, and dynamically display the display power based on the second main battery power.
[0096] The battery power display device provided in the embodiment of the present application adopts the battery power display method in the above embodiment, which can solve the technical problem of accurately displaying the battery power of the current main battery after replacing the main battery without shutting down the computer. Compared with the prior art, the beneficial effects of the battery power display device provided in the embodiment of the present application are the same as the beneficial effects of the battery power display method provided in the above embodiment, and other technical features in the battery power display device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0097] 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 battery power display method in the above-mentioned embodiment 1.
[0098] Reference below Figure 5 , 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 5 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.
[0099] like Figure 5As 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.
[0100] 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.
[0101] The wearable device provided by the present application adopts the battery power display method in the above embodiment, which can solve the technical problem of how to accurately display the battery power of the current main battery after replacing the main battery without shutting down the device. 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 battery power display 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.
[0102] 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.
[0103] 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.
[0104] 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 battery power display method in the above-mentioned embodiment.
[0105] 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.
[0106] The computer-readable storage medium may be included in the wearable device; or may exist independently without being assembled into the wearable device.
[0107] 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 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 temporarily powered by the secondary battery, the remaining first main battery power currently accumulated by the coulomb meter is cleared; when it is detected that the main battery access terminal is reconnected to the main battery, the power supply battery is switched from the secondary battery to the main battery; when power is supplied by the main battery, the remaining second battery power corresponding to the currently connected main battery is accumulated by the coulomb meter, and the display power is dynamically displayed based on the second main battery power.
[0108] 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).
[0109] 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.
[0110] 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.
[0111] 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 battery power display method, and can solve the technical problem of how to accurately display the battery power of the current main battery after replacing the main battery without shutting down the computer. 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 battery power display method provided by the above-mentioned embodiment, and will not be repeated here.
[0112] 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 battery power display method, characterized in that: The steps of the battery power display method include: When 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 temporarily powered, clearing the remaining first main battery power of the main battery currently accumulated by the coulomb counter; When it is detected that the main battery access terminal is reconnected to the main battery, the power supply battery is switched from the auxiliary battery to the main battery; When the main battery is used for power supply, the remaining second battery power corresponding to the currently connected main battery is accumulated and acquired through the coulomb counter, and the displayed power is dynamically displayed based on the second main battery power.
2. The battery power display method according to claim 1, characterized in that: Before the step of switching the power supply battery from the main battery to the auxiliary battery when it is detected that the main battery access terminal is not connected to the main battery, the step further includes: Acquiring the power of the first main battery through the coulomb counter; When the power level of the first main battery is lower than a preset power threshold, the user is prompted that the remaining power level of the current main battery is insufficient, and the user is guided to replace the main battery.
3. The battery power display method according to claim 2, characterized in that: Before the step of switching the power supply battery from the main battery to the auxiliary battery when it is detected that the main battery access terminal is not connected to the main battery, the step further includes: The main battery supply voltage at the main battery access terminal is obtained, and when the main battery supply voltage is lower than a first preset voltage threshold, it is determined that the main battery access terminal is not currently connected to the main battery.
4. The battery power display method according to claim 1, characterized in that: The step of clearing the remaining first main battery power currently accumulated by the coulomb counter of the main battery when the auxiliary battery is temporarily powered includes: When the secondary battery is used for temporary power supply, the power level of the first main battery currently recorded by the coulomb meter is used as the displayed power level; The power level is statically displayed to the user, the coulomb meter is stopped, and the power level of the first main battery accumulated by the coulomb meter is cleared.
5. The battery power display method according to claim 4, characterized in that: The step of accumulating and obtaining the remaining second battery power corresponding to the currently connected main battery by the coulomb counter when the main battery is powered, and dynamically displaying the display power based on the second main battery power includes: When the main battery is used for power supply, restarting the coulomb meter, and accumulating the power of the second main battery through the coulomb meter; The power level of the second main battery is used as the displayed power level, and the displayed power level is dynamically displayed to the user.
6. The battery power display method according to claim 1, characterized in that: After the step of switching the power supply battery from the secondary battery to the main battery when it is detected that the main battery access terminal is reconnected to the main battery, the method further includes: When the main battery is used for power supply, obtaining a secondary battery power supply voltage corresponding to the secondary battery; When the supply voltage of the secondary battery is lower than a second preset voltage threshold, the secondary battery is charged by the main battery.
7. The battery power display method according to claim 1, characterized in that: After the step of switching the power supply battery from the main battery to the auxiliary battery when it is detected that the main battery access terminal is not connected to the main battery, the method further includes: When the secondary battery is temporarily powered, obtaining a secondary battery power supply voltage corresponding to the secondary battery; When it is detected that the power supply voltage of the secondary battery is lower than a third preset voltage threshold, the user is prompted that the power of the secondary battery is low.
8. A battery power display device, characterized in that: The battery capacity display device comprises: A battery management module, configured to switch the power supply battery from the main battery to the auxiliary battery when detecting that the main battery access terminal is not connected to the main battery; A power display module, used for clearing the remaining first main battery power of the main battery currently accumulated by the coulomb meter when the auxiliary battery is temporarily powered; The battery management module is further configured to switch the power supply battery from the auxiliary battery to the main battery when detecting that the main battery access terminal is reconnected to the main battery; The power display module is also used to accumulate and obtain the remaining second battery power corresponding to the currently connected main battery through the coulomb counter when the main battery is used for power supply, and dynamically display the display power based on the second main battery power.
9. A wearable device, characterized in that: The wearable device comprises: a memory, a processor, and a battery power display program stored in the memory and executable on the processor, wherein the battery power display program is configured to implement the steps of the battery power display method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a battery power display program is stored on the computer-readable storage medium. When the battery power display program is executed by a processor, the steps of the battery power display method according to any one of claims 1 to 7 are implemented.
