Mobile equipment, battery switching method and equipment thereof and computer readable storage medium
By introducing the main battery and the secondary battery into the smart glasses and realizing automatic switching power supply control module, the problem of short battery life of the smart glasses is solved, extending the device's usage time and improving the user experience.
Patent Information
- Application Number
- CN202380009868.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2025-05-02
AI Technical Summary
The built-in battery life of smart glasses is short, which limits the user's continuous use time and affects the user experience.
Design a mobile device, including the main battery and the secondary battery, and detects the power-on state or the power-off state between the main battery and the device through the power supply control module, and automatically switches to the secondary battery to extend the battery life.
It realizes replacing the main battery without shutting down, extending the battery life of the mobile device and improving the user experience.
Smart Images

Figure CN119923779A_ABST
Abstract
Description
Mobile device, battery switching method, device and computer-readable storage medium thereof
[0001] The present disclosure relates to the field of display technology, and in particular to a mobile device and a battery switching method, device and computer-readable storage medium thereof.
[0002] Smart glasses integrate the main control chip, communication module, display module, camera, integrated circuit and power supply system into the glasses device, forming an independent operating device without the need to connect other external devices. Usually, the power supply system of smart glasses uses a built-in battery.
[0003] In the related art, when the battery of smart glasses runs out, they can only stop working and recharge the built-in battery through the charging port of the smart glasses before they can be turned on and used again. In addition, due to the shape, volume and wearing weight of smart glasses, as well as the consideration of safety, high-density batteries cannot be used, which greatly limits the battery capacity of the built-in battery, and thus limits the battery life of the smart glasses.
[0004] In summary, the limited battery life makes it impossible for users to use smart glasses continuously for a long time, affecting the user experience.
[0005]
[0006] Embodiments of the present disclosure provide a mobile device and a battery switching method, device, and computer-readable storage medium thereof.
[0007] In a first aspect, an embodiment of the present disclosure provides a mobile device, the mobile device comprising a main battery and a secondary battery, the mobile device further comprising: a power supply control module and a main control module connected to each other, wherein:
[0008] The power supply control module is connected to the main battery and the auxiliary battery respectively, and the power supply control module is configured to detect whether the main battery and the mobile device are in a power-on state or a power-off state, and send the information to the main control module;
[0009] The main control module is configured to control the main battery to supply power to the mobile device when it is determined that the main battery and the mobile device are in a power-on state; and to control the power supply of the mobile device to switch from the main battery to the auxiliary battery when it is determined that the main battery and the mobile device are in a power-off state.
[0010] In some embodiments, the mobile device further includes smart glasses, and the main battery and the secondary battery are configured to provide power for the smart glasses.
[0011] The mobile device further comprises a processing module connected to the main control module.
[0012] The main control module is further configured to: generate a first switching instruction under the triggering of a first external operation and send it to the processing module before controlling the power supply of the mobile device to switch from the main battery to the secondary battery; and generate a second switching instruction under the triggering of a second external operation and send it to the processing module after controlling the main battery to power the mobile device;
[0013] The processing module is configured to: control the smart glasses to operate in a first working mode in response to the first switching instruction; and control the smart glasses to operate in a second working mode in response to the second switching instruction; the power consumption of the smart glasses in the first working mode is less than the power consumption in the second working mode.
[0014] In some embodiments, the mobile device further comprises a power monitoring module connected to the main battery, the power monitoring module being configured to monitor the power of the main battery;
[0015] The mobile device further comprises an event notification module, wherein the event notification module is connected to the main control module and the power monitoring module respectively.
[0016] The main control module is further configured to: upon detecting that the main battery is reconnected with the mobile device, generate a first event instruction and send it to the event notification module;
[0017] The event notification module is configured to: under the triggering of the first event instruction, control the power monitoring module to reset the power of the main battery.
[0018] In some embodiments, the power monitoring module is specifically configured as follows:
[0019] Under the control of the event notification module, the power reset thread is called to detect and reset the power of the main battery. Under the power reset thread, the current variation range generated by the main battery within a preset time period is allowed to be greater than 0.5A, and / or, the voltage variation range generated by the main battery within a preset time period is allowed to be greater than 1V, wherein the preset time period is less than 10s.
[0020] In some embodiments, the main control module is further configured to monitor the power level of the secondary battery;
[0021] When it is determined that the power level of the secondary battery is lower than a preset power threshold, the first signal light is controlled to be always on to indicate that the power level of the secondary battery is low, and the preset power threshold is the minimum power level required by the mobile device during the main battery replacement process;
[0022] When it is determined that the power level of the secondary battery is not lower than the preset power level threshold, the first signal light is controlled to be turned off.
[0023] In some embodiments, before controlling the power supply of the mobile device to switch from the main battery to the secondary battery, the main control module is further configured to:
[0024] The second switching instruction is generated in response to the second external operation when the second signal lamp is off.
[0025] In some embodiments, the main control module is further configured to: monitor the voltage value of the main battery and the voltage value of the secondary battery respectively; when the second signal light is always on and it is determined that the voltage value of the main battery is greater than the voltage value of the secondary battery, send a charging instruction to the power supply control module;
[0026] The power supply control module is further configured to charge the sub-battery through the main battery based on the control of the charging instruction.
[0027] In some embodiments, the main control module is further configured to control the first signal light to flash during the charging process of the secondary battery.
[0028] In some embodiments, the mobile device further comprises a charging module, the charging module is respectively connected to the smart glasses, the main battery and the power supply control module, the charging module is provided with a charging port, and the charging port is configured to connect the smart glasses and one of the external power supply terminals;
[0029] The charging module is configured as follows:
[0030] When the charging port is connected to the smart glasses, power is provided to the smart glasses; or,
[0031] When the charging port is connected to the external power supply end, the power provided by the external power supply end is received, and the secondary battery is charged through the main battery.
[0032] In some embodiments, before sending the charging instruction to the power supply control module, the main control module is further configured to:
[0033] Detecting the power-on status between the charging module and the external power supply terminal;
[0034] When the charging module is connected to the external power supply terminal, the charging instruction is used to instruct the power supply control module to receive the power provided by the external power supply terminal and output it to the auxiliary battery through the main battery;
[0035] When the charging module is not connected to the external power supply terminal, the charging instruction is used to instruct the power supply control module to directly output the power of the main battery to the auxiliary battery.
[0036] In some embodiments, the charging module is further configured to:
[0037] When the main battery and the mobile device are powered on, the power of the main battery is provided to the smart glasses; and when the main battery and the mobile device are powered off, the power of the secondary battery is provided to the smart glasses through the power supply control module.
[0038] In some embodiments, the power supply control module is further configured to:
[0039] The power of the main battery or the auxiliary battery is provided to the main control module and the power monitoring module.
[0040] In a second aspect, an embodiment of the present disclosure provides a battery switching method for a mobile device, which is used for the mobile device described in the first aspect, wherein the mobile device includes a main battery and a secondary battery, and the method includes:
[0041] Detecting whether a main battery and the mobile device are in a powered-on state or a powered-off state;
[0042] When it is determined that the main battery and the mobile device are in a power-on state, the main battery is controlled to supply power to the mobile device; and when it is determined that the main battery and the mobile device are in a power-off state, the power supply of the mobile device is controlled to switch from the main battery to the secondary battery.
[0043] In some embodiments, the mobile device includes smart glasses, and the main battery and the secondary battery are configured to provide power for the smart glasses.
[0044] Before controlling the power supply of the mobile device to switch from the main battery to the secondary battery, the method further includes:
[0045] generating a first switching instruction triggered by a first external operation, and controlling the smart glasses to operate in a first working mode in response to the first switching instruction; and
[0046] After controlling the power supply of the mobile device to switch from the secondary battery back to the main battery, the method further includes:
[0047] generating a second switching instruction triggered by a second external operation, and controlling the smart glasses to operate in a second working mode in response to the second switching instruction;
[0048] The power consumption of the smart glasses in the first working mode is less than the power consumption in the second working mode.
[0049] In a third aspect, an embodiment of the present disclosure provides a battery switching device for a mobile device, including:
[0050] at least one processor; and
[0051] a memory communicatively connected to the at least one processor; wherein,
[0052] The memory stores one or more computer programs that can be executed by the at least one processor, and the one or more computer programs are executed by the at least one processor so that the at least one processor can execute the battery switching method of the mobile device as described in the second aspect.
[0053] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the battery switching method for a mobile device as described in the second aspect.
[0054] In the mobile device provided by the embodiment of the present disclosure, both the main battery and the auxiliary battery are used to provide power, and the power supply control module is configured to detect whether the main battery is connected to the mobile device. When both are powered on, the main battery is used to provide power to the mobile device, and when both are powered off, the auxiliary battery is used to provide power to the mobile device. The above-mentioned "the main battery and the mobile device are powered off" refers to the situation where the main battery is low on power and needs to be replaced. At this time, during the replacement of the main battery, the auxiliary battery can be used to power the mobile device, so that the mobile device can always remain in operation. The main battery can be replaced without shutting down, thereby increasing the battery life of the mobile device and improving the user experience.
[0055] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0056] FIG1 is a schematic diagram of the structure of a mobile device provided by an embodiment of the present disclosure.
[0057] FIG. 2 is a schematic flow chart of resetting power provided in an embodiment of the present disclosure.
[0058] FIG. 3 a is a schematic flow chart of a battery switching method for a mobile device provided in an embodiment of the present disclosure.
[0059] FIG. 3 b is a schematic diagram of a battery switching process of another mobile device provided in an embodiment of the present disclosure.
[0060] FIG. 4 is a schematic diagram of a specific flow chart of step S02 in FIG. 3 b .
[0061] FIG. 5 is a schematic diagram of a specific flow chart of step S21 in FIG. 4 .
[0062] FIG. 6 is a schematic diagram of a specific flow chart of step S04 in FIG. 3 b .
[0063] FIG. 7 is a schematic diagram of a specific flow chart of step S06 in FIG. 3 b .
[0064] FIG8 is a schematic diagram of the structure of a battery switching device for a mobile device provided in an embodiment of the present disclosure.
[0065] FIG. 9 is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present disclosure.
[0066] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0067] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0068] Unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not represent any order, quantity or importance, but are only used to distinguish different components. Similarly, "including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0069] Smart glasses integrate the main control chip, communication module, display module, camera, integrated circuit and power supply system into the glasses device, forming an independent operating device without the need to connect other external devices. Usually, the power supply system of smart glasses uses a built-in battery.
[0070] In the related art, since smart glasses are wearable devices that are in close contact with the human body, in order to reduce the potential risks of spontaneous combustion, explosion, etc. that may occur during battery charging and cause harm to the human body, after the battery of the smart glasses is exhausted, it is not allowed to charge the built-in battery while wearing and using them. They can only stop working and recharge the built-in battery through the charging port of the smart glasses before they can be turned on and used again.
[0071] In addition, due to the shape, volume, and weight of smart glasses, as well as safety considerations, the density and unit volume capacity of the built-in batteries in smart glasses must be within a safe and controllable range, and high-density batteries cannot be used, which greatly limits the battery capacity of the built-in batteries, and thus limits the battery life of smart glasses. Under this premise, the limited battery life makes it impossible for users to use smart glasses continuously for a long time, affecting the user experience.
[0072] In order to solve at least one of the above technical problems, an embodiment of the present disclosure provides a mobile device, which can replace the battery in the running state to extend the battery life of the mobile device.
[0073] FIG1 is a schematic diagram of the structure of a mobile device provided by an embodiment of the present disclosure. As shown in FIG1 , the mobile device includes a main battery 2a, a secondary battery 2b, and a power supply control module 2 and a main control module 1 that are connected to each other.
[0074] The power supply control module 2 is connected to the main battery 2a and the sub-battery 2b respectively. The power supply control module 2 is configured to detect whether the main battery 2a and the mobile device are in a powered-on state or a powered-off state, and send it to the main control module 1; the main control module 1 is configured to control the main battery 2a to supply power to the mobile device when it is determined that the main battery 2a and the mobile device are in a powered-on state; and when it is determined that the main battery 2a and the mobile device are in a powered-off state, control the power supply of the mobile device to switch from the main battery 2a to the sub-battery 2b.
[0075] In the mobile device provided by the embodiment of the present disclosure, the main battery 2a and the auxiliary battery 2b are both used to provide power, and the power supply control module 2 is configured to detect whether the main battery 2a is connected to the mobile device. When both are powered on, the main battery 2a is used to provide power to the mobile device, and when both are powered off, the auxiliary battery 2b is used to provide power to the mobile device. The above-mentioned "the main battery 2a and the mobile device are powered off" means that the main battery 2a is low on power and needs to be replaced. At this time, the auxiliary battery 2b can be used to power the mobile device during the replacement of the main battery 2a, so that the mobile device can always remain in operation. The main battery 2a can be replaced without shutting down, thereby increasing the battery life of the mobile device and improving the user experience.
[0076] It should be understood that the main battery 2a is a removable battery, and the secondary battery 2b is a non-removable battery built into the mobile device. In addition, the "power-on state" means that the main battery is electrically connected to the mobile device; the "power-off state" means that the electrical connection between the main battery and the mobile device is interrupted, for example, the main battery is exhausted and cannot provide power to the mobile device, and there is no current between the main battery and the power supply control module; or, the main battery is removed from the mobile device and there is no physical connection between it and the mobile device.
[0077] In addition, the power supply control module 2 in the embodiment of the present disclosure is connected to the main battery 2a and the auxiliary battery 2b respectively to prevent a sudden drop in one of the power supplies, which causes the system to shut down directly. However, such a setting also brings a problem, that is, it is necessary to prevent current backflow. Normally, the anti-current backflow circuit will use transistor devices, and use the unidirectional conductive characteristics of the transistor to maintain the stability of the circuit. However, the addition of the transistor will cause a large voltage drop at the output end of the battery, which will lead to a loss of battery power. Based on the above considerations, the power supply control module 2 in the embodiment of the present disclosure adopts the AW3312 model chip, which has a small size and internal resistance, and a small output voltage drop. Therefore, it can prevent the problem of current backflow when the main battery 2a is disassembled, and will not cause a loss of battery power.
[0078] In some embodiments, the main control module 1 can be a chip of model RK3399Pro, which can run the Android 9 operating system and is equipped with a six-core ARM architecture CPU with a main frequency of 1.8GHz, serving as the data processing and control module of the entire mobile device.
[0079] In some embodiments, the mobile device includes smart glasses 4 , and the main battery 2 a and the secondary battery 2 b are both configured to provide power for the smart glasses 4 .
[0080] In other embodiments of the present disclosure, the mobile device used may also be a camera, an intercom, a recorder, etc. The embodiments of the present disclosure do not limit the specific type of mobile device.
[0081] The mobile device also includes a charging module 3, which is respectively connected to the smart glasses 4, the main battery 2a and the power supply control module 2. The charging module 3 is configured to: when the main battery 2a and the mobile device are in a power-on state, provide the power of the main battery 2a to the smart glasses 4; and when the main battery 2a and the mobile device are in a power-off state, provide the power of the auxiliary battery 2b to the smart glasses 4 through the power supply control module 2.
[0082] Further, as shown in FIG1 , when the main battery 2a and the mobile device are powered on, that is, the main battery 2a supplies power to the mobile device, its power supply path is divided into two paths, one path directly supplies power to the smart glasses 4 through the charging module 3, and the other path supplies power to other functional modules in the mobile device except the charging module 3 through the power supply control module 2. When the main battery 2a and the mobile device are powered off, that is, the auxiliary battery 2b supplies power to the mobile device, the auxiliary battery 2b cannot directly supply power to the charging module 3, and can only connect to the charging module 3 through the power supply control module 2 and supply power to it.
[0083] In the above embodiment, it has been explained that in order to prevent the problem of current backflow and power loss caused by power drop, a power supply control module 2 with a small volume and internal resistance and a low output voltage drop is used, that is, the output power of the power supply control module 2 is also relatively small. At this time, when the secondary battery 2b supplies power to the mobile device, since the output power of the power supply control module 2 is relatively small, even if it can provide enough power to the charging module 3, the power is not enough to support the operation of the smart glasses 4, and the smart glasses 4 are only kept in the power-on state.
[0084] In view of this, in some embodiments, the mobile device further includes a processing module 11 connected to the main control module 1 .
[0085] The main control module 1 is also configured to: before controlling the power supply of the mobile device to switch from the main battery 2a to the auxiliary battery 2b, generate a first switching instruction under the triggering of a first external operation and send it to the processing module 11; and after controlling the power supply of the mobile device to switch from the auxiliary battery 2b back to the main battery 2a, generate a second switching instruction under the triggering of a second external operation and send it to the processing module 11.
[0086] The processing module 11 is configured to: control the smart glasses 4 to operate in a first working mode in response to a first switching instruction; and control the smart glasses 4 to operate in a second working mode in response to a second switching instruction; the power consumption of the smart glasses 4 in the first working mode is less than that in the second working mode.
[0087] The processing module 11 may be a chip structure built into a mobile device, or may be a software system capable of communicating with the main control module 1 , which is not limited in the embodiments of the present disclosure.
[0088] When the auxiliary battery 2b is powering the mobile device, the processing module 11 controls the smart glasses 4 to switch to the first working mode with lower power consumption, and then switch back to the second working mode after the main battery 2a is replaced.
[0089] In one example, the smart glasses 4 have functions such as image (video) acquisition, image (video) processing, and image (video) display. In the second working mode, the smart glasses 4 can call the above functional functions normally. In the first working mode, the smart glasses 4 are adjusted to a low power consumption state, and the above functions are temporarily turned off.
[0090] In the same example as the above example, the first external operation may be that the operator double-clicks the volume minus key on the mobile device, and the second external operation may be that the operator double-clicks the volume plus key on the mobile device. Of course, the two external operations may also be to trigger other function keys on the mobile device, and the action of the triggering operation is not limited to double-clicking, but may also be long pressing, clicking three times, etc., which is not limited to the embodiments of the present disclosure.
[0091] In some embodiments, the operator double-clicks the volume down button before replacing the main battery 2a. The main control module 1 generates a first switching instruction under the triggering of the operation and sends it to the processing module 11. The processing module 11 responds to the first switching instruction and controls the working mode of the smart glasses 4 to the second working mode. At this time, the smart glasses 4 are in a low power consumption mode; further, the operator performs the operation of replacing the main battery 2a, and double-clicks the volume up button after the replacement is completed. The main control module 1 generates a second switching instruction under the triggering of the operation and sends it to the processing module 11. The processing module 11 responds to the second switching instruction and controls the working mode of the smart glasses 4 to the first working mode. At this time, the switching action of the entire main battery 2a is completed to extend the battery life of the smart glasses 4.
[0092] In addition, it has been explained in the above embodiments that the power supply control module 2 uses the AW3312 model chip, the maximum load current of which is 2A. If the battery voltage is 3.7V, the system power that can be driven is about 7.4W. In the mobile device, the power of the smart glasses 4 is 8W, and the total power of the functional modules (main control module 1, charging module 3, etc.) in the mobile device other than the smart glasses 4 is 6.8W. When the smart glasses 4 are placed in the second working mode, the power supply control module 2 can cover the power demand of the entire mobile device, solve the problem of insufficient power supply of the power supply control module 2, and realize the low-power power supply control module 2 to complete the battery switching of the high-power mobile device.
[0093] Furthermore, since the main battery 2a is replaced without shutting down the mobile device / smart glasses 4, the replacement time is extremely short. Compared with the solution in the related art that requires shutting down the mobile device / smart glasses 4, restarting the built-in system environment, and replacing the battery takes about 20 seconds, in the embodiment of the present disclosure, the operator only needs to remove the exhausted battery and install a fully charged battery, which takes less than 5 seconds, greatly shortening the battery replacement time, not affecting the user's continuous use, and improving the user experience.
[0094] In some embodiments, the charging module 3 is provided with a charging port, and the charging port is configured to connect to one of the smart glasses 4 and the external power supply terminal 5 .
[0095] As a wearable device, the smart glasses 4 are in close contact with the human body. In order to reduce the potential risks of spontaneous combustion, explosion, etc. that may occur during battery charging, it is not allowed to charge the built-in battery while wearing the smart glasses 4 after the battery is exhausted. The above-mentioned "charging the built-in battery" refers to charging the main battery 2a through the external power supply terminal 5. In view of this, there will be no application scenario of charging while using the smart glasses 4. Therefore, only one charging port is provided on the charging module 3 to simplify the hardware design.
[0096] In one example, the charging port may be a Type-C interface.
[0097] In some embodiments, the charging module 3 is specifically configured to: provide power to the smart glasses 4 when the charging port is connected to the smart glasses 4; or, when the charging port is connected to the external power supply terminal 5, receive the power provided by the external power supply terminal 5, and charge the auxiliary battery 2b through the main battery 2a.
[0098] Of course, the external power supply terminal 5 can directly charge the main battery 2a, but the disclosed embodiment only describes the process of replacing the main battery 2a when the smart glasses 4 are not turned off, and does not elaborate on the process of the main battery 2a being built into the mobile device and charged through the external power supply terminal 5.
[0099] The following describes in detail the charging process of the auxiliary battery 2 b through a specific embodiment in combination with the functions of the charging module 3 and the power supply control module 2 .
[0100] In some embodiments, the main control module 1 is further configured to: detect the voltage value of the main battery 2a and the voltage value of the auxiliary battery 2b respectively at every first preset time interval; when it is determined that the voltage value of the main battery 2a is greater than the voltage value of the auxiliary battery 2b, send a charging instruction to the power supply control module 2; the power supply control module 2 is further configured to: charge the auxiliary battery 2b through the main battery 2a based on the control of the charging instruction.
[0101] It should be understood that since the secondary battery 2b is only used to temporarily switch to the power supply end of the mobile device during the replacement of the main battery 2a, the power saturation value of the main battery 2a is much greater than the power saturation value of the secondary battery 2b. In addition, in the embodiment of the present disclosure, when the power of the main battery 2a is sufficient, the secondary battery 2b is charged to prepare for replacement when the power of the main battery 2a is insufficient.
[0102] In an example, the power saturation value of the main battery 2a may be 10000-15000 mA, and the power saturation value of the secondary battery 2b may be 1000-2500 mA, which is not limited in the embodiment of the present disclosure.
[0103] Furthermore, the voltage values of the main battery 2a and the sub-battery 2b can be detected to determine whether the charging conditions are met, that is, to determine whether the power of the main battery 2a can support the charging of the sub-battery 2b. Under the premise that the charging conditions are met, the main control module 1 sends a charging instruction to the power supply control module 2, so that the power supply control module 2 charges the sub-battery 2b through the main battery 2a. There can be two charging paths for the sub-battery 2b, as follows.
[0104] In some embodiments, when it is determined that the voltage value of the main battery 2a is greater than the voltage value of the secondary battery 2b, before sending the charging instruction to the power supply control module 2, the main control module 1 is further configured as follows:
[0105] Detect the power-on status between the charging module 3 and the external power supply terminal 5; when the charging module 3 is connected to the external power supply terminal 5, the charging instruction is used to instruct the power supply control module 2 to receive the power provided by the external power supply terminal 5 and output it to the auxiliary battery 2b through the main battery 2a; when the charging module 3 is not connected to the external power supply terminal 5, the charging instruction is used to instruct the power supply control module 2 to output the power of the main battery 2a directly to the auxiliary battery 2b.
[0106] As described in the above embodiment, the charging module 3 is provided with a charging port, which is configured to connect to one of the smart glasses 4 and the external power supply terminal 5. When the charging port is connected to the external power supply terminal 5, the charging path of the secondary battery 2b is: external power supply terminal 5→charging module 3→main battery 2a→power supply control module 2→secondary battery 2b; when the charging port is vacant and not connected to the external power supply terminal 5, the charging path of the secondary battery 2b is: main battery 2a→power supply control module 2→secondary battery 2b.
[0107] In some embodiments, as shown in FIG. 1 , the mobile device further includes a first signal light 21 configured to reflect the power status of the secondary battery 2 b.
[0108] Specifically, the main control module 1 is further configured to detect the power level of the secondary battery 2b at every second preset time interval.
[0109] When it is determined that the power of the auxiliary battery 2b is lower than the preset power threshold, the first signal light 21 is controlled to be always on to prompt that the auxiliary battery 2b is low on power. The preset power threshold is the minimum power value required by the mobile device during the replacement of the main battery 2a; when it is determined that the power of the auxiliary battery 2b is not lower than the preset power threshold, the first signal light 21 is controlled to be turned off; when the power supply control module 2 is controlling the charging instruction to charge the auxiliary battery 2b, the first signal light 21 is controlled to flash.
[0110] It should be understood that the premise for replacing the main battery 2a is to ensure that the secondary battery 2b has sufficient power so that the mobile device is not powered off during the replacement of the main battery 2a. Therefore, the main control module 1 needs to monitor the power of the secondary battery 2b to ensure that the mobile device can be supported at any time to replace the main battery 2a without being powered off.
[0111] In the disclosed embodiment, the state of the first signal light 21 can reflect the power level of the auxiliary battery 2b, so that the user can intuitively determine whether the conditions for replacing the main battery 2a are met. Specifically, when the power level of the auxiliary battery 2b is lower than the preset power threshold, it cannot power the mobile device alone, so it is necessary to remind the operator through the first signal light 21 when the auxiliary battery 2b is lower than the preset power threshold, and the main battery 2a can only be replaced after charging. At this time, the operator is reminded by keeping the first signal light 21 always on; when charging, the first signal light 21 flashes to indicate that charging is in progress; the indicator light goes out to indicate that the battery is fully charged.
[0112] The power monitoring process of the main battery 2a is described in detail below in conjunction with a specific embodiment.
[0113] In some embodiments, as shown in FIG. 1 , the mobile device further includes a power monitoring module 20 connected to the main battery 2 a , and the power monitoring module 20 is configured to monitor the power of the main battery 2 a .
[0114] It should be noted that the power of the main battery 2a is measured by the power monitoring module 20 built into the mobile device, but it is found in the actual measurement process that when the system is in standby mode, after replacing the main battery 2a, the battery power still maintains the power display of the previous main battery 2a, and the power of the main battery 2a cannot be updated in time. This is because the strategy of the power meter to measure power includes an algorithm to prevent sudden changes in power, and the basis for the power meter to measure power is to test the battery output voltage. When the system load peak current is very large, the battery voltage will be lowered. In order to prevent this situation from misjudging the battery power, the power monitoring module 20 will prevent the occurrence of sudden changes in power when the battery output voltage changes greatly. At this time, it is necessary to implement the function of forced power reset after replacing the battery, as follows.
[0115] The above-mentioned large battery output voltage mutation refers to the case where the voltage variation range generated by the main battery within the preset period is greater than 1V, and the above-mentioned preset period may be less than 10s. The voltage variation range value generated by the above-mentioned voltage mutation and the duration of the preset period may also be other values, which are not limited by the present disclosure.
[0116] In some embodiments, the mobile device also includes an event notification module 12, which is connected to the main control module 1 and the power monitoring module 20 respectively. The main control module 1 is also configured to: when it is detected that the main battery 2a re-establishes a connection with the mobile device, generate a first event instruction and send it to the event notification module 12; the event notification module 12 is configured to: under the triggering of the first event instruction, control the power monitoring module 20 to reset the power of the main battery 2a.
[0117] Furthermore, the power monitoring module 20 is specifically configured as follows: under the control of the event notification module 12, calling the reset power thread to detect and reset the power of the main battery 2a, under the reset power thread, allowing the current variation range generated by the main battery within a preset time period to be greater than 0.5A, and / or, allowing the voltage variation range generated by the main battery within a preset time period to be greater than 1V, wherein the preset time period is less than 10s.
[0118] That is to say, under the control of the event notification module 12, the power monitoring module 20 no longer follows the monitoring path to prevent current mutations, but calls the reset power thread to monitor the power of the main battery 2a. At this time, the actual power of the main battery 2a can be monitored and recorded without being affected by current mutations.
[0119] In the disclosed embodiment, the main control module in the mobile device can be a main control chip using the Linux kernel operating system, and the system architecture is divided into five layers, from bottom to top, Linux kernel layer, hardware abstraction layer, system runtime layer, application framework layer and application layer. The core system service of the system is based on the Linux kernel, and the program security, network protocol, memory management, process management and driver are all provided by the Linux kernel.
[0120] The Linux kernel uses the notifier chains mechanism to notify events between kernel subsystems. There are four types of notifier chains: 1) Atomic notifier chains: The callback function of the notification chain runs in the interrupt or atomic context, and blocking is not allowed. 2) Blocking notifier chains: The callback function of the notification chain runs in the process context, and blocking is allowed. 3) Raw notifier chains: There are no restrictions on the callback function of the notification chain, and the caller maintains locks and protection. 4) SRCU notifier chains: A variant of blocking notifier chains.
[0121] The above-mentioned event notification module can be implemented in the system kernel layer driver. On the basis of the power monitoring module 20 and the main control module 1, an event notification module 12 is added, which adopts the Linux kernel notifier mechanism program - blocking notifier chains. The notifier mechanism performs event notifications between the kernel subsystems. Using this mechanism, when the main control module 1 determines that the main battery has been replaced, the event is notified to the power monitoring module 20, and the forced reset of the power is completed in the power monitoring module 20.
[0122] FIG2 is a schematic flow chart of resetting power provided by an embodiment of the present disclosure. As shown in FIG2 , the method includes steps S201-S209, which are specifically as follows:
[0123] Step S201, the main control module 1 initializes the blocking notifier chains according to the notifier mechanism provided by the event notification module 12, and the notifier mechanism performs event notification between modules. Step S201' and step S202 are performed respectively.
[0124] Step S201 ′, the main control module 1 is initialized and returns the notifier kernel function to the event notification module 12 .
[0125] Step S202: the main control module 1 defines a notifier registration function.
[0126] Step S203, the main control module 1 defines a notifier deregistration function.
[0127] Specifically, the main control module 1 uses the notifier API provided by the event notification module 12 to define the notifier registration function and the deregistration function, and these functions serve as the entry for other drivers to bind the main control module notifier event.
[0128] Step S204: the main control module 1 defines a notifier event notification function. When the main control module 1 determines that the new main battery has reestablished a connection with the mobile device, the notifier event notification function is called.
[0129] In step S205, the event notification module 12 triggers the notifier callback function entry in the power monitoring module 20 through the notifier event notification function, and then executes steps S206 and S207.
[0130] Step S206 , the power monitoring module 20 calls the power reset thread to detect and reset the power of the main battery 2 a.
[0131] In step S207 , the power monitoring module 20 simultaneously initializes the notifier block structure.
[0132] Step S208 , calling the notifier function defined by the main control module 1 through the event notification module 12 , registering the notifier chains event, and feeding back the reset power to the main control module 1 .
[0133] In a specific example, when the secondary battery is sufficiently charged, the operator can trigger a first external operation. The main control chip responds to the first external operation and sends a first switching instruction to the processing module. The processing module responds to the first switching instruction and controls the smart glasses to operate in a first working mode, that is, controls the smart glasses to operate in a low power consumption mode. At this time, the smart glasses are in operation, but the image / video acquisition, processing, display and other functions are turned off by the processing module.
[0134] Furthermore, the operator removes the main battery with insufficient power and replaces it with a main battery with sufficient power. In this process, the auxiliary battery 2b provides power to various functional modules in the mobile device through the power supply control module 2 to maintain the operating state of the mobile device, so that the main battery of the mobile device can be replaced without powering off, thereby improving the efficiency of battery replacement and extending the battery life of the mobile device.
[0135] Furthermore, the operator can trigger a second external operation. The main control module responds to the second external operation, generates a second switching instruction, and sends it to the processing module. The processing module responds to the second switching instruction to control the smart glasses to operate under the second working module. At this time, the image function of the smart glasses is turned on.
[0136] Specifically, the processing module can be a host computer software that is communicatively connected to the main control module, and the processing module is configured to control the operation of the smart glasses. Specifically, it can be configured with application programs corresponding to the various functions of the smart glasses, and screen out programs that can be turned off during the replacement of the main battery to reduce the power consumption redundancy brought by the smart glasses, so that when the power supply is switched from the main battery to the secondary battery, the entire mobile device can remain in an uninterrupted power state.
[0137] In addition, the main battery is reconnected to the mobile device, that is, after the main battery is replaced, the power supply of the mobile device is switched from the auxiliary battery back to the main battery. At this time, the load current of the mobile device suddenly changes and the battery voltage is lowered. In order to prevent the power monitoring module from misjudging the main battery power, the forced power reset function needs to be enabled.
[0138] Based on this, after detecting that the main battery has been replaced, the main control module generates a first event instruction and sends it to the event notification module. In response to the above first event instruction, the event notification module controls the power monitoring module to call the reset power thread to detect the power of the main battery. At this time, the power monitoring module detects the actual power of the main battery.
[0139] In one example, the main control module generates a first event instruction while generating a second switching instruction in response to a second external operation, and sends it to the event notification module. In another example, the power supply control module detects whether the main battery and the mobile device are in a powered-on state or a powered-off state, and sends the on-off information of the main battery and the mobile device to the main control module. Based on this, the main control module can determine that the main battery and the mobile device are reconnected according to the on-off information sent by the power supply control module, and generate a first event instruction. In the disclosed embodiment, the manner in which the main control chip detects the reconnection between the main battery and the mobile device is not limited.
[0140] Based on the same inventive concept described above, an embodiment of the present disclosure further provides a battery switching method for a mobile device, and the method is used for the mobile device described in any of the above embodiments.
[0141] FIG3a is a flow chart of a battery switching method for a mobile device provided in an embodiment of the present disclosure. Specifically, the mobile device includes a main battery 2a and a secondary battery 2b. The method includes steps S1 and S2, wherein step S2 includes steps S21 and S22:
[0142] Step S1, detecting whether the main battery 2a and the mobile device are in a powered-on state or a powered-off state.
[0143] The above-mentioned "power-on state" means that the main battery is electrically connected to the mobile device; the "power-off state" means that the electrical connection between the main battery and the mobile device is interrupted, for example, the main battery is exhausted and cannot provide power to the mobile device, and there is no current between the main battery and the power supply control module; or, the main battery is removed from the mobile device and there is no physical connection between it and the mobile device.
[0144] Step S21, when it is determined that the main battery 2a and the mobile device are powered on, controlling the main battery 2a to supply power to the mobile device.
[0145] Step S22, when it is determined that the power supply between the main battery 2a and the mobile device is in a power-off state, control the power supply of the mobile device to switch from the main battery 2a to the auxiliary battery 2b.
[0146] In the battery switching method of the mobile device provided by the embodiment of the present disclosure, both the main battery 2a and the auxiliary battery 2b are used to provide power. When the main battery 2a and the mobile device are in a powered-on state, the main battery 2a is used to provide power to the mobile device. When the main battery 2a and the mobile device are in a powered-off state, the auxiliary battery 2b is used to provide power to the mobile device. The above-mentioned "the main battery 2a and the mobile device are powered-off" means that the main battery 2a is low on power and needs to be replaced. At this time, the auxiliary battery 2b can be used to power the mobile device during the replacement of the main battery 2a, so that the mobile device can always remain in operation. The main battery 2a can be replaced without shutting down, thereby increasing the battery life of the mobile device and improving the user experience.
[0147] In some embodiments, the mobile device includes smart glasses 4 , and the main battery 2 a and the secondary battery 2 b are both configured to provide power for the smart glasses 4 .
[0148] As shown in FIG. 3a , in step S2 and before step S21 , the method further includes step S20 : generating a first switching instruction triggered by a first external operation, and controlling the smart glasses 4 to operate in a first working mode in response to the first switching instruction.
[0149] And, in step S2, after step S22, the method further includes step S23: generating a second switching instruction under the triggering of a second external operation, and in response to the second switching instruction, controlling the smart glasses 4 to switch from the first working mode back to the second working mode. The power consumption of the smart glasses 4 in the first working mode is less than the power consumption in the second working mode.
[0150] In one example, the smart glasses 4 have functions such as image (video) acquisition, image (video) processing, and image (video) display. In the second working mode, the smart glasses 4 can call the above functions normally. In the first working mode, the smart glasses 4 are adjusted to a low power consumption state, and the above functions are temporarily turned off. When the smart glasses 4 are placed in the first working mode, the power demand of the entire mobile device can be covered during the battery replacement process, so that the mobile device can always remain in operation. Without shutting down, the main battery 2a can be replaced, thereby increasing the battery life of the mobile device and improving the user experience.
[0151] The following is a detailed description of the replacement process of the main battery 2a in conjunction with the built-in functional module structure of the mobile device in FIG1 , and it should be noted that the process depends on the processor structure carried by the main control module 1. FIG3b is a flowchart of battery switching of another mobile device provided by an embodiment of the present disclosure. As shown in FIG3b , the method includes steps S01 to S09:
[0152] Step S01, controlling the power supply control module 2 to perform initialization processing, including: allocating memory, configuring IO resources, etc.
[0153] Step S02, configuring an interrupt processing function, which is used to be triggered when it is detected that the main battery 2a is disconnected or reconnected with the mobile device.
[0154] Step S03, registering the character device and setting the kernel timer.
[0155] Step S04, initializing USB processing work and registering USB notification events.
[0156] Step S05, initializing the delay work.
[0157] Step S06, scheduling the kernel main work.
[0158] The above kernel means that the chip used by the main control module works based on the Linux kernel, and the program security, network protocol, memory management, process management, and driver are all provided by the Linux kernel.
[0159] Step S07, determining whether the main battery 2a is connected to the mobile device, if so, executing step S08, otherwise, executing step S09.
[0160] Step S08: using the main battery 2a to power the mobile device.
[0161] Step S09: using the secondary battery 2b to power the mobile device.
[0162] FIG. 4 is a schematic diagram of a specific flow chart of step S02 in FIG. 3 b . As shown in FIG. 4 , step S02 may include steps S21 to S24 , which are specifically as follows:
[0163] Step S21, determine whether the main battery 2a has been replaced, if so, execute step S22, otherwise, execute step S23.
[0164] Step S22, using the main battery 2a to power the mobile device, and jumping to step S24.
[0165] Step S23: using the secondary battery 2b to power the mobile device.
[0166] Step S24, controlling the power monitoring module 20 to forcibly reset the power of the main battery 2a.
[0167] It should be noted that step S02 corresponds to the interrupt processing function configured in the main control module 1, that is, determining the status of the main battery 2a does not mean determining whether the main battery 2a is powered on by the mobile device, but determining whether the main battery 2a is reconnected with the mobile device, that is, whether the replacement is completed, and resetting the power through the power monitoring module 20 after the replacement is completed.
[0168] In addition, in the process of controlling the power monitoring module 20 to forcibly reset the power of the main battery 2a, the event notification module 12 can be a notifier mechanism program configured in the Linux kernel - blocking notifier chains. The notifier mechanism performs event notifications between the modules of the kernel. Using this mechanism, when it is determined in the main control module 1 that the replacement of the main battery 2a has been completed, the event is notified to the power monitoring module 20, so that the power monitoring module 20 starts to forcibly reset the power. Specifically, the main control module 1 uses the notifier API provided by the kernel to define its own notifier registration and deregistration functions, and defines the notifier event notification function. These functions bind the entry of the notifier event, so that the power monitoring module 20 uses the notified registration function to bind the notifier event. When a new main battery 2a is inserted, the notifier event notification function is called. At this time, because the power monitoring module 20 has bound the notifier event, the reset power thread can be immediately called to reset the power of the main battery 2a.
[0169] FIG. 5 is a schematic diagram of a specific flow chart of step S21 in FIG. 4 . As shown in FIG. 5 , step S21 may include steps S211 to S214:
[0170] Step S211 : the main control module 1 generates a first switching instruction under the triggering of a first external operation.
[0171] The first external operation may be triggered by an operator double-clicking the volume down button on the mobile device.
[0172] Step S212: the processing module 11 controls the smart glasses 4 to switch from the second working mode to the first working mode in response to the first switching instruction.
[0173] At this time, the operator removes the exhausted main battery 2a, installs a fully charged main battery 2a, and triggers a second external operation. Specifically, the second external operation can be triggered by the operator double-clicking the volume up button on the mobile device.
[0174] Step S213: the main control module 1 generates a second switching instruction under the triggering of a second external operation.
[0175] In step S214 , the processing module 11 controls the smart glasses 4 to restore from the first working mode to the second working mode in response to the second switching instruction.
[0176] FIG. 6 is a schematic diagram of a specific flow chart of step S04 in FIG. 3b. As shown in FIG. 6, step S04 may include steps S41 to S43, which are specifically as follows:
[0177] Step S41, detecting whether the charging port is connected to the external power supply terminal 5, if so, executing step S42, otherwise, executing step S43.
[0178] In step S42, the first signal light 21 flashes periodically to indicate that the secondary battery 2b is being charged.
[0179] Step S43: the first signal light 21 maintains the original state.
[0180] FIG7 is a schematic diagram of a specific flow of step S06 in FIG3b. As shown in FIG6, step S06 may include steps S61 to S69. It should be noted that step S06 is a periodic execution operation of the kernel layer, and its execution period may be 10s, as follows:
[0181] In step S61, the voltage values of the main battery 2a and the sub-battery 2b are read respectively.
[0182] Step S62, determining whether the main battery 2a is capable of charging the sub-battery 2b, if so, executing step S63, otherwise returning to step S61.
[0183] In step S63, the main control module 1 generates a charging instruction and sends it to the power supply control module 2, so that the power supply control module 2 allows the power of the main battery 2a to be output to the auxiliary battery 2b.
[0184] Step S64, determining whether the charging port of the charging module 3 is connected to the external power supply terminal 5, if so, executing step S65, otherwise executing step S67.
[0185] Step S65, charging the secondary battery and determining whether the secondary battery 2b is fully charged. If so, executing step S69, otherwise executing step S66.
[0186] Step S66, controlling the first signal light 21 to flash to indicate that the secondary battery 2b is being charged.
[0187] Step S67, determining whether the power level of the secondary battery 2b is less than a preset power level threshold, if so, executing step S68, otherwise executing step S69.
[0188] Step S68, controlling the first signal light 21 to be always on to indicate that the power of the secondary battery 2b is low.
[0189] Step S69, controlling the first signal light 21 to be turned off to indicate that the main battery 2a replacement operation can be performed now.
[0190] Figure 8 is a structural diagram of a battery switching device for a mobile device provided in an embodiment of the present disclosure. As shown in Figure 8, the electronic device 100 includes: a memory 101 and a processor 102, and the memory 101 stores a computer program, wherein the computer program, when executed by the processor 102, implements the above-mentioned battery switching method for the mobile device, for example, implementing steps S1 to S2 in Figure 3a.
[0191] The electronic device 100 may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The electronic device 100 may include, but is not limited to, a processor 102 and a memory 101. Those skilled in the art may understand that FIG8 is only an example of the electronic device 100 and does not constitute a limitation on the electronic device 100. The electronic device 100 may include more or fewer components than shown in the figure, or may combine certain components, or different components. For example, the electronic device 100 may also include input and output devices, network access devices, buses, etc.
[0192] The processor 102 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor 102 may be a microprocessor or any conventional processor, etc.
[0193] The memory 101 may be an internal storage unit of the electronic device 100, such as a hard disk or memory of the electronic device 100. The memory 101 may also be an external storage device of the electronic device 100, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 100. Further, the memory 101 may also include both an internal storage unit of the electronic device 100 and an external storage device. The memory 101 is used to store the computer program and other programs and data required by the terminal device. The memory 101 may also be used to temporarily store data that has been output or is to be output.
[0194] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0195] FIG9 is a schematic diagram of the structure of a computer-readable storage medium provided by an embodiment of the present disclosure. As shown in FIG9 , a computer program 201 is stored on a computer-readable storage medium 200, wherein the computer program 201 implements the battery switching method of the mobile device described above when executed by a processor, for example, implementing steps S1 to S2 in FIG3a. The computer-readable storage medium 200 includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media generally contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier or other transmission mechanism, and may include any information delivery medium.
[0196] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.
Claims
A mobile device, wherein The mobile device includes a main battery and a secondary battery, and the mobile device also includes: a power supply control module and a main control module connected to each other, wherein the power supply control module is connected to the main battery and the secondary battery respectively, and the power supply control module is configured to detect whether the main battery and the mobile device are in a power-on state or a power-off state, and send it to the main control module; the main control module is configured to control the main battery to supply power to the mobile device when it is determined that the main battery and the mobile device are in a power-on state; and when it is determined that the main battery and the mobile device are in a power-off state, control the power supply of the mobile device to be switched from the main battery to the secondary battery. The mobile device according to claim 1, wherein: The mobile device further includes smart glasses, the main battery and the secondary battery are both configured to provide power for the smart glasses, the mobile device further includes a processing module connected to the main control module, and the main control module is further configured to: before controlling the power supply of the mobile device to switch from the main battery to the secondary battery, generate a first switching instruction under the triggering of a first external operation, and send the first switching instruction to the processing module; and, after controlling the main battery to power the mobile device, generating a second switching instruction under the triggering of a second external operation and sending the second switching instruction to the processing module; The processing module is configured to: in response to the first switching instruction, control the smart glasses to operate in the first working mode; and, in response to the second switching instruction, controlling the smart glasses to operate in a second working mode; The power consumption of the smart glasses in the first working mode is less than the power consumption in the second working mode. The mobile device according to claim 1, wherein: The mobile device also includes a power monitoring module connected to the main battery, and the power monitoring module is configured to monitor the power of the main battery; the mobile device also includes an event notification module, and the event notification module is connected to the main control module and the power monitoring module respectively, and the main control module is further configured to: when it is detected that the main battery and the mobile device are reconnected, generate a first event instruction and send it to the event notification module; the event notification module is configured to: under the triggering of the first event instruction, control the power monitoring module to reset the power of the main battery. The mobile device according to claim 3, wherein: The power monitoring module is specifically configured as follows: under the control of the event notification module, calling the reset power thread to detect and reset the power of the main battery, and under the reset power thread, allowing the current variation range generated by the main battery within a preset time period to be greater than 0.5A, and / or allowing the voltage variation range generated by the main battery within a preset time period to be greater than 1V, wherein the preset time period is less than 10s. The mobile device according to claim 2, wherein: The main control module is also configured to monitor the power level of the secondary battery; when it is determined that the power level of the secondary battery is lower than a preset power threshold, the first signal light is controlled to be always on to indicate that the power level of the secondary battery is low, and the preset power threshold is the minimum power value required by the mobile device during the main battery replacement process; when it is determined that the power level of the secondary battery is not lower than the preset power threshold, the first signal light is controlled to be turned off. The mobile device according to claim 5, wherein: Before controlling the power supply of the mobile device to switch from the main battery to the secondary battery, the main control module is further configured to: generate the second switching instruction in response to the second external operation when the second signal light is turned off. The mobile device according to claim 5, wherein: The main control module is further configured to: monitor the voltage value of the main battery and the voltage value of the auxiliary battery respectively; when the second signal light is always on and it is determined that the voltage value of the main battery is greater than the voltage value of the auxiliary battery, send a charging instruction to the power supply control module; The power supply control module is further configured to charge the sub-battery through the main battery based on the control of the charging instruction. The mobile device according to claim 7, wherein: The main control module is also configured to control the first signal light to flash during the charging process of the secondary battery. The mobile device according to claim 7, wherein: The mobile device also includes a charging module, which is respectively connected to the smart glasses, the main battery and the power supply control module, and the charging module is provided with a charging port, and the charging port is configured to connect the smart glasses and one of the external power supply terminals; the charging module is configured to: when the charging port is connected to the smart glasses, provide power to the smart glasses; or, when the charging port is connected to the external power supply terminal, receive the power provided by the external power supply terminal and charge the auxiliary battery through the main battery. The mobile device according to claim 9, wherein: Before sending a charging instruction to the power supply control module, the main control module is further configured to: detect the power-on status between the charging module and the external power supply terminal; when the charging module is connected to the external power supply terminal, the charging instruction is used to instruct the power supply control module to receive the power provided by the external power supply terminal and output it to the sub-battery through the main battery; when the charging module is not connected to the external power supply terminal, the charging instruction is used to instruct the power supply control module to output the power of the main battery directly to the sub-battery. The mobile device according to claim 9, wherein: The charging module is also configured to: when the power is on between the main battery and the mobile device, provide the power of the main battery to the smart glasses; and when the power is off between the main battery and the mobile device, provide the power of the secondary battery to the smart glasses through the power supply control module. The mobile device according to claim 3, wherein: The power supply control module is further configured to provide the power of the main battery or the auxiliary battery to the main control module and the power monitoring module. A battery switching method for a mobile device, used for the mobile device according to any one of claims 1 to 12, wherein the mobile device comprises a main battery and a secondary battery, wherein: The method comprises: detecting whether a main battery and the mobile device are in a powered-on state or a powered-off state; when it is determined that the main battery and the mobile device are in a powered-on state, controlling the main battery to supply power to the mobile device; and when it is determined that the main battery and the mobile device are in a powered-off state, controlling the power supply of the mobile device to switch from the main battery to the secondary battery. The battery switching method according to claim 13, wherein: The mobile device includes smart glasses, and the main battery and the secondary battery are both configured to provide power for the smart glasses. Before controlling the power supply of the mobile device to switch from the main battery to the secondary battery, the method also includes: generating a first switching instruction under the triggering of a first external operation, and controlling the smart glasses to operate in a first working mode in response to the first switching instruction; and after controlling the power supply of the mobile device to switch from the secondary battery back to the main battery, the method also includes: generating a second switching instruction under the triggering of a second external operation, and controlling the smart glasses to operate in a second working mode in response to the second switching instruction; the power consumption of the smart glasses in the first working mode is less than the power consumption in the second working mode. A battery switching device for a mobile device, wherein: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores one or more computer programs executable by the at least one processor, and one or more of the computer programs are executed by the at least one processor so that the at least one processor can execute the battery switching method of the mobile device as described in claim 13 or 14. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the computer program implements the battery switching method of the mobile device as claimed in claim 13 or 14.