Charging power supply protection method and device
By detecting whether the charging power source is a vehicle battery and stopping or controlling the charging percentage when there are no input events within a predetermined period, the problem of insufficient power caused by continuous charging of vehicle batteries is solved, ensuring the vehicle's starting capability.
Patent Information
- Application Number
- CN202411099088.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2026-02-13
AI Technical Summary
When using a vehicle battery as an external charging power source, continuously charging external electronic devices may cause the vehicle to fail to start due to insufficient power.
By detecting whether the charging power source is a vehicle battery, a timer is started to count down. If no input event is detected within a predetermined period, the charging power source is controlled to stop or charge at a charging percentage to prevent the battery from being depleted.
This effectively prevents the vehicle battery from running out of power due to continuous charging, ensuring that the vehicle can start normally.
Smart Images

Figure CN121529906A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present invention relates to a protection method, and more particularly, to a protection method and device for a charging power source. BACKGROUND
[0002] When using a notebook computer or other handheld device, once an external power source is connected, the notebook computer or other handheld device will automatically start charging the internal battery using the external power source until the battery is fully charged. However, there are various types of external power sources, not all of which are suitable for continuous charging of the battery. In particular, when using a car battery as a charging power source, since the car battery is mainly used to supply power to the vehicle's electronic devices, once it is depleted, the vehicle will not be able to start due to insufficient power from the car battery.
[0003] Therefore, there is an urgent need for a protection mechanism to prevent the car battery from being depleted during charging. SUMMARY
[0004] One embodiment of the present disclosure provides a charging power source protection method, characterized by comprising: detecting whether a charging power source for charging an electronic device needs to be protected; in response to the charging power source needing to be protected, determining whether the electronic device receives an input event within a predetermined period; in response to the electronic device receiving the input event within the predetermined period, resetting the predetermined period; and in response to the electronic device not receiving the input event within the predetermined period, controlling the charging power source to stop charging the electronic device or charging the electronic device according to a preset charging percentage.
[0005] In some embodiments, the charging power source protection method further comprises: in response to the charging power source not needing to be protected, controlling the charging power source to normally charge the electronic device.
[0006] In some embodiments, the charging power source protection method further comprises: in response to the charging power source needing to be protected, starting a timer and counting down according to the predetermined period.
[0007] In some embodiments, the charging power source protection method further comprises: determining whether the timer countdown time is zero.
[0008] In some embodiments, the charging power source protection method further comprises: in response to the timer countdown time being zero, controlling the charging power source to stop charging the electronic device or charging the electronic device according to the charging percentage.
[0009] In some embodiments, after resetting the predetermined period, the method further comprises: determining whether the input event includes a charging signal.
[0010] In some embodiments, the charging power protection method further comprises: controlling the charging power to charge the electronic device when the input event includes the charging signal.
[0011] In some embodiments, the input event is a keyboard input event, a touch input event, or an acceleration sensor input event of the electronic device.
[0012] An embodiment of the present disclosure provides a charging power protection device, comprising: a memory storing at least one instruction; and a processor coupled to the memory to access the at least one instruction to: detect whether a charging power for charging an electronic device needs to be protected; determine whether the electronic device receives an input event within a predetermined period when the charging power needs to be protected; reset the predetermined period when the electronic device receives the input event within the predetermined period; and control the charging power to stop charging the electronic device or charge the electronic device according to a charging percentage when the electronic device does not receive the input event within the predetermined period.
[0013] In some embodiments, the processor further accesses the at least one instruction to control the charging power to normally charge the electronic device when the charging power does not need to be protected.
[0014] In some embodiments, the charging power protection device further comprises a timer coupled to the processor, and the processor further accesses the at least one instruction to start the timer to count down according to the predetermined period when the charging power needs to be protected.
[0015] In some embodiments, the processor further accesses the at least one instruction to determine whether the timer countdown time is zero.
[0016] In some embodiments, the processor further accesses the at least one instruction to control the charging power to stop charging the electronic device or charge the electronic device according to the charging percentage when the timer countdown time is zero.
[0017] In some embodiments, after the processor resets the predetermined period, the processor further accesses the at least one instruction to determine whether the input event includes a charging signal.
[0018] In some embodiments, the processor further accesses the at least one instruction to control the charging power to charge the electronic device when the input event includes the charging signal.
[0019] In some embodiments, the input event is a keyboard input event, a touch input event, or an acceleration sensor input event of the electronic device.
[0020] One embodiment of the present disclosure provides a non-transitory computer readable storage medium for storing a computer program, the computer program comprising a plurality of program instructions, the computer program performing a charging power protection method when loaded into a charging power protection device, the charging power protection method comprising: detecting whether a charging power for charging an electronic device needs to be protected; in response to the charging power needing to be protected, determining whether the electronic device receives an input event within a predetermined period; in response to the electronic device receiving the input event within the predetermined period, resetting the predetermined period; and in response to the electronic device not receiving the input event within the predetermined period, controlling the charging power to stop charging the electronic device or charging the electronic device according to a preset charging percentage.
[0021] The present disclosure provides a charging power protection method and device thereof, according to whether the charging power needs to be protected, a corresponding charging power protection process is provided, when no input event occurs in the electronic device to be charged within a predetermined period, the charging power is directly terminated or the electronic device is charged according to a charging percentage, so as to avoid the depletion of the charging power due to continuous charging. Therefore, the present disclosure can automatically detect whether the charging power needs to be protected and enable the charging power protection method of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0022] The drawings incorporated in the specification and forming a part thereof illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0023] Figure 1 FIG. 1 is a schematic diagram of a charging power protection device according to some embodiments of the present disclosure.
[0024] Figure 2 FIG. 2 is a flowchart of a charging power protection method according to some embodiments of the present disclosure.
[0025] BRIEF DESCRIPTION OF DRAWINGS
[0026] 100: charging power protection device
[0027] 110: memory
[0028] 120: processor
[0029] 130: timer
[0030] 200: charging power protection method
[0031] 210-290: steps DETAILED DESCRIPTION
[0032] The concept of this disclosure will be clearly explained below with reference to the accompanying drawings and detailed description. Any person skilled in the art who understands the embodiments of this disclosure may make changes and modifications based on the technology taught in this disclosure without departing from the concept and scope of this disclosure.
[0033] The language used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of this disclosure. Singular forms such as “a,” “this,” “this,” “the,” and “the”, as used herein, also include multiple forms.
[0034] The terms "coupled" or "connected" as used in this article can refer to two or more components or devices making direct physical contact with each other, or making indirect physical contact with each other, or to two or more components or devices operating or acting on each other.
[0035] The terms “include,” “including,” “have,” “contain,” etc., used in this article are all open-ended terms, meaning that they include but are not limited to.
[0036] The term "and / or" as used herein includes any or all of the things mentioned.
[0037] Unless otherwise specified, the terms used herein generally have their ordinary meaning in the context of this art, the content of this disclosure, and the specific content thereof. Certain terms used to describe this disclosure will be discussed below or elsewhere in this specification to provide additional guidance to those skilled in the art in describing this disclosure.
[0038] Traditionally, when using automotive batteries as external charging power sources, since these batteries are primarily used to power vehicle electronic devices, continuous charging of these devices can cause the vehicle to fail to start due to insufficient battery power. Therefore, to avoid this situation, this disclosure provides a charging power protection method and apparatus. Depending on whether the charging power requires protection during charging, a corresponding charging power protection procedure is provided. This procedure either directly terminates charging of the electronic device if no input events occur within a predetermined period, or charges the electronic device according to a charging percentage, preventing the charging power from being depleted through continuous charging.
[0039] Please see Figure 1 . Figure 1is a schematic diagram of a charging power protection device 100 according to some embodiments of the present disclosure. The charging power protection device 100 can include a memory 110, a processor 120, and a timer 130. In terms of connection, the memory 110 is coupled to the processor 120, and the processor 120 is coupled to the timer 130. In some embodiments, the charging power protection device 100 can be disposed in a charging power source or in a mobile device to be charged to protect the charging power source. If the charging power protection device 100 is disposed in a mobile device to be charged, the memory, the processor, and the timer of the mobile device can be used to form the charging power protection device 100 of the present disclosure to protect an external charging power source. In some embodiments, the mobile device can be a tablet, a notebook, a mobile phone, or other handheld mobile electronic device.
[0040] Please refer to Figure 2 . Figure 2 is a flowchart of a charging power protection method 200 according to some embodiments of the present disclosure. The charging power protection method 200 can be applied to the charging power protection device 100 in Figure 1 , but it should be noted that the present disclosure is not limited to the application of Figure 1 . In some embodiments, the charging power protection method 200 can be implemented as a computer application program (APP) or instructions, which can be downloaded and stored in the memory 110 by a user, and the processor 120 can read the computer application program or instructions to execute the charging power protection method 200 to protect the charging power source. In some embodiments, the processor 120 can be composed of one or more chips. The memory 110 can be a read-only memory, a flash memory, a floppy disk, a hard disk, an optical disk, a U disk, a magnetic tape, a database accessible via a network, or a non-transitory computer readable recording medium having the same function that can be easily thought of by those skilled in the art.
[0041] The charging power protection method 200 of the present disclosure will be described below using a vehicle battery as an example of a charging power source, but it should be noted that the present disclosure is not limited to protecting vehicle batteries, and other types of batteries can also apply the charging power protection method of the present disclosure for charging protection. In addition, in the present embodiment, the order of the operations of the charging power protection method 200 mentioned above can be adjusted according to actual needs, even if they can be executed simultaneously or partially simultaneously. Furthermore, in different embodiments, these operations can also be adaptively added, replaced, and / or omitted.
[0042] The charging power protection method 200 includes steps 210-290. First, in step 210, it is determined whether the charging needs to be protected. In some embodiments, it is detected whether the charging power source for charging an electronic device needs to be protected from a charging current. For example, when a charging power source is charging an electronic device, the processor 120 detects whether the charging power source is a vehicle battery and needs to be protected from a charging current to avoid the vehicle battery from being insufficient to start the vehicle due to charging the electronic device's built-in battery.
[0043] If the battery as the charging power source does not need to be protected from charging, step 220 is performed to normally charge the electronic device. In an embodiment, when the processor 120 detects that the charging power source is not a vehicle battery and does not need to be protected from a charging current, the processor 120 controls the electronic device to normally charge the electronic device from the charging power source in response to the detection result.
[0044] On the contrary, if the battery as the charging power source needs to be protected from charging, step 212 is performed to start a timer to count down according to a predetermined period. In some embodiments, when the processor 120 detects that the charging power source is a vehicle battery and needs to be protected from a charging current, the processor 120 starts the timer 130 to count down according to a predetermined period in response to the detection result. In some embodiments, the predetermined period is 3 minutes.
[0045] Next, step 230 is performed to determine whether the electronic device receives an input event. In some embodiments, the processor 120 monitors whether the electronic device receives an input event performed by a user through an input element during the predetermined period. In some embodiments, the input element is a keyboard, a mouse, a touch panel, or an acceleration sensor coupled to the electronic device. If the electronic device receives an input event during the predetermined period, it indicates that a user decides to start using the electronic device and thus has a charging demand. On the contrary, if the electronic device does not receive an input event during the predetermined period, it indicates that the user does not use the electronic device and thus does not have a charging demand. In this way, it can be avoided that the electronic device uses the vehicle battery to continuously charge the electronic device when the electronic device does not have a charging demand, causing the vehicle battery to be insufficient to start the vehicle.
[0046] In some embodiments, when the electronic device does not receive an input event, the timer 130 continues to count down according to the predetermined period in step 240. In step 250, it is determined whether the counting time of the timer 130 is zero. That is, whether the counting of the predetermined period is completed. In some embodiments, the processor 120 monitors the timer 130 to determine whether the counting time of the timer 130 is zero. If the counting time is not zero, the processor 120 continues to monitor the timer 130 and determines whether the counting time is zero.
[0047] Once the timer 130 reaches zero, at step 260, the charging of the electronic device is stopped or the electronic device is charged to a predetermined percentage. In some embodiments, when the processor 120 determines that the timer 130 reaches zero, i.e., the predetermined period has been counted down, it means that the electronic device has not received any input event during the predetermined period, which indicates that the user does not use the electronic device. Therefore, the processor 120 controls the charging power source to stop charging the electronic device or to charge the electronic device to a predetermined percentage in response to the detection result. In some embodiments, the predetermined percentage is 80% of full charge. In some embodiments, the user can set the predetermined percentage according to the needs, such as 10%, 20%, 30%, 40%, etc., and the processor 120 controls the charging power source to charge the electronic device according to the predetermined percentage. After the charging of the electronic device is stopped or the charging of the electronic device to the predetermined percentage is completed, step 230 is performed again to determine whether the electronic device receives an input event.
[0048] In some embodiments, when the electronic device receives an input event during a predetermined period, at step 270, the predetermined period is reset. In some embodiments, when the processor 120 detects that the electronic device receives an input event during the predetermined period, the processor 120 resets the timer 130 according to the predetermined period in response to the detection result. In some embodiments, the predetermined period is 3 minutes, i.e., the timer 130 is reset to 3 minutes.
[0049] Then, at step 280, it is determined whether the input event includes a charging signal. In some embodiments, when the processor 120 detects that the input event includes a charging instruction, it means that the user wants to charge the electronic device at the same time, and therefore, at step 290, the charging power source is controlled to charge the electronic device. Step 230 is performed again to determine whether the electronic device receives another input event. Similarly, if no next input event is received within the predetermined period, after the predetermined period, the processor 120 stops the charging of the electronic device or charges the electronic device to a predetermined percentage.
[0050] On the contrary, when the processor 120 detects that the input event does not include a charging instruction, it means that the user does not want to charge the electronic device at the moment, and therefore, step 230 is performed directly to determine whether the electronic device receives another input event. If a next input event is received within the predetermined period, the processor 120 resets the predetermined period again, and the user determines whether to charge the electronic device. If the user thinks that the electronic device must be charged, a charging instruction can be input. The processor 120 controls the charging power source to charge the electronic device in response to the charging instruction.
[0051] In summary, the present disclosure provides a charging power protection method and device thereof. According to whether the charging power needs to be protected, a corresponding charging power protection process is provided. When no input event occurs in the electronic device being charged within a predetermined period, the charging power is directly terminated or the electronic device is charged according to a charging percentage, so as to avoid the depletion of the charging power due to continuous charging. Accordingly, the present disclosure can automatically detect whether the charging power needs to be protected to enable the charging power protection method of the present disclosure.
[0052] Although the present disclosure has been disclosed in the above embodiments, it is not intended to limit the present disclosure, and any person skilled in the art can make some changes and modifications without departing from the concept and scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the scope defined by the claims.
Claims
1. A method of protecting a charging power supply, characterized by, The method comprises: detecting whether a charging power source for charging an electronic device needs to be protected from charging; in response to the charging power source needing to be protected from charging, determining whether the electronic device receives an input event within a predetermined period; in response to the electronic device receiving the input event within the predetermined period, resetting the predetermined period; and in response to the electronic device not receiving the input event within the predetermined period, controlling the charging power source to stop charging the electronic device or to charge the electronic device according to a preset charging percentage.
2. The charging power supply protection method of claim 1, wherein, The method further comprises, in response to the charging power source not needing to be protected from charging, controlling the charging power source to normally charge the electronic device.
3. The charging power supply protection method of claim 1, wherein, The method further comprises, in response to the charging power source needing to be protected from charging, starting a timer and counting down according to the predetermined period.
4. The charging power supply protection method of claim 3, wherein, The method further comprises determining whether the timer countdown time is zero.
5. The charging power supply protection method of claim 4, wherein, The method further comprises, in response to the timer countdown time being zero, controlling the charging power source to stop charging the electronic device or to charge the electronic device according to the charging percentage.
6. The charging power supply protection method of claim 1, wherein, After resetting the predetermined period, the method further comprises determining whether the input event includes a charging signal.
7. The charging power supply protection method of claim 6, wherein, The method further comprises, in response to the input event including the charging signal, controlling the charging power source to charge the electronic device.
8. The charging power supply protection method of claim 1, wherein, The input event is a keyboard input event, a touch input event, or an acceleration sensor input event of the electronic device.
9. A charging power supply protection device characterized by comprising: The method comprises: a memory storing at least one instruction; and a processor coupled to the memory to access the at least one instruction to: detect whether a charging power source for charging an electronic device needs to be protected from charging; in response to the charging power source needing to be protected from charging, determine whether the electronic device receives an input event within a predetermined period; in response to the electronic device receiving the input event within the predetermined period, reset the predetermined period; and in response to the electronic device not receiving the input event within the predetermined period, control the charging power source to stop charging the electronic device or to charge the electronic device according to a charging percentage.
10. The charging power supply protection apparatus of claim 9, wherein, The processor further accesses the at least one instruction to, in response to the charging power source not needing to be protected from charging, control the charging power source to normally charge the electronic device.
11. The charging power supply protection apparatus of claim 9, wherein, The method further comprises a timer coupled to the processor, wherein the processor further accesses the at least one instruction to, in response to the charging power source needing to be protected from charging, start the timer to count down according to the predetermined period.
12. The charging power supply protection apparatus of claim 11, wherein, The processor further accesses the at least one instruction to determine whether the timer countdown time is zero.
13. The charging power supply protection apparatus of claim 12, wherein, The processor further accesses the at least one instruction to, in response to the timer countdown time being zero, control the charging power source to stop charging the electronic device or to charge the electronic device according to the charging percentage.
14. The charging power supply protection apparatus of claim 9, wherein, After the processor resets the predetermined period, the processor further accesses the at least one instruction to determine whether the input event includes a charging signal.
15. The charging power supply protection apparatus of claim 14, wherein, The processor further accesses the at least one instruction to, in response to the input event including the charging signal, control the charging power source to charge the electronic device.
16. The charging power supply protection apparatus of claim 9, wherein, The input event is a keyboard input event, a touch input event, or an acceleration sensor input event of the electronic device.
17. A non-transitory computer-readable storage medium, comprising: A computer program product for storing a computer program including a plurality of program instructions, the computer program performs a charging power protection method when loaded into a charging power protection device, including: detecting whether a charging power for charging an electronic device needs protection; in response to the charging power needing protection, determining whether the electronic device receives an input event within a predetermined period; in response to the electronic device receiving the input event within the predetermined period, resetting the predetermined period; and in response to the electronic device not receiving the input event within the predetermined period, controlling the charging power to stop charging the electronic device or charging the electronic device according to a preset charging percentage.