Short circuit protection method during charging and charger
By using a second voltage, lower than the minimum charging voltage, to perform a short-circuit self-test in the charger, the problems of charger aging and short circuits during frequent charging are solved, thus improving charging safety and equipment protection.
Patent Information
- Application Number
- CN202010845523.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-01-09
- Filing Date
- 2020-08-20
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2040-08-20
AI Technical Summary
Chargers are prone to aging and damage during frequent charging, which can lead to short circuits, potentially causing equipment damage or fire, and affecting charging safety.
By controlling the charger to output a preset first voltage, detecting the charging current and switching to a second voltage lower than the minimum charging voltage, a short-circuit self-test is performed to ensure that the charger does not charge when no device is connected, forming a protection period until it is confirmed that there is no short circuit before resuming normal charging.
It effectively avoids short circuits in the charger during charging, improves the safety of charging electronic devices, prevents equipment damage and fires, and reduces the charger's failure rate.
Smart Images

Figure CN113113960B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of short circuit protection, in particular to a short circuit protection method in a charging process and a charger. BACKGROUND
[0002] With the increasing dependence on electronic devices, users use electronic devices more and more frequently, which leads to the need for frequent charging of electronic devices.
[0003] However, in practice, it is found that the aging and damage of the charger caused by frequent charging may lead to a short circuit in the charging process of the electronic device, which may cause damage to the device, or even a fire, thereby adversely affecting the safety of the charging process of the charger. SUMMARY
[0004] The embodiments of the present application disclose a short circuit protection method in a charging process and a charger, which can avoid short circuit in the charging process of the electronic device, thereby improving the safety of the charging process of the electronic device.
[0005] The first aspect of the embodiments of the present application discloses a short circuit protection method in a charging process, which comprises:
[0006] controlling the charger to output a preset first voltage, the preset first voltage being used to charge the first charged device with the charging current output by the charger when the charger is connected to the first charged device;
[0007] controlling the charger to output a preset second voltage and detecting whether the charger has a short circuit when detecting that the charger outputs the charging current, the preset second voltage being less than the first minimum charging voltage for charging the first charged device;
[0008] if it is detected that the charger does not have a short circuit, controlling the charger to output the preset first voltage again to charge the first charged device.
[0009] As an optional implementation, in the first aspect of the embodiments of the present application, after controlling the charger to output the preset first voltage again to charge the first charged device, the method further comprises:
[0010] if it is detected that the first charged device is disconnected from the charger, controlling the voltage output by the charger to switch from the preset first voltage to the preset second voltage;
[0011] Alternatively, if it is detected that the first charged device is disconnected from the charger, the charger is prohibited from outputting the preset first voltage.
[0012] As an optional implementation, in the first aspect of the embodiment of the present application, after detecting that the first charged device is disconnected from the charger, the method further comprises:
[0013] If a second charged device is detected to be connected to the charger, a preset third voltage is determined according to a second lowest charging voltage when the second charged device is charged, and the preset third voltage is less than the second lowest charging voltage;
[0014] The voltage output by the charger is switched from the preset first voltage to the preset third voltage.
[0015] As an optional implementation, in the first aspect of the embodiment of the present application, when detecting that the charger outputs the charging current, controlling the charger to output a preset second voltage and detecting whether the charger has a short circuit comprises:
[0016] Collecting a target humidity value inside the charger by a humidity sensor built in the charger;
[0017] Determining whether the target humidity value is within a preset humidity range;
[0018] If the target humidity value is within the preset humidity range, controlling the charger to output a preset second voltage and detecting whether the charger has a short circuit.
[0019] As an optional implementation, in the first aspect of the embodiment of the present application, detecting whether the charger has a short circuit comprises:
[0020] Obtaining an output current of the charger according to the preset second voltage, and determining whether the output current is less than a preset current threshold within a preset first time length;
[0021] If the output current is less than the preset current threshold within the preset first time length, it is determined that the charger does not have a short circuit;
[0022] If there is a time point at which the output current is greater than or equal to the preset current threshold within the first time length, it is determined that the charger has a short circuit.
[0023] As an optional implementation, in the first aspect of the embodiment of the present application, detecting whether the charger has a short circuit comprises:
[0024] Obtaining a temperature of the charger according to the preset second voltage, and determining whether the temperature of the charger is lower than a preset temperature threshold within a preset second time length;
[0025] if the charger temperature is lower than the preset temperature threshold within a preset second time length, it is determined that the charger does not exist short circuit;
[0026] if there is a time point at which the charger temperature is greater than or equal to the preset temperature threshold within the second time length, it is determined that the charger exists short circuit.
[0027] As an optional implementation, in the first aspect of the embodiment of the present application, the method further comprises:
[0028] if it is detected that the charger exists short circuit, the charger is prohibited from outputting voltage.
[0029] As an optional implementation, in the first aspect of the embodiment of the present application, after the charger is prohibited from outputting voltage, the method further comprises:
[0030] after an interval of a preset waiting time, the charger is controlled to output the preset second voltage again and it is detected whether the charger exists short circuit;
[0031] if it is detected that the charger exists short circuit, the charger is prohibited from outputting voltage;
[0032] if it is detected that the charger does not exist short circuit, the charger is controlled to output the preset first voltage to charge the charged device.
[0033] As an optional implementation, in the first aspect of the embodiment of the present application, after the charger is prohibited from outputting voltage, the method further comprises:
[0034] if it is detected that the charger is powered off and reset, the charger is controlled to output the preset first voltage again, and the step of controlling the charger to output the preset second voltage and detecting whether the charger exists short circuit when it is detected that the charger outputs the charging current is executed.
[0035] The second aspect of the embodiment of the present application discloses a charger, which at least comprises a control module and a current detection resistor, the control module is electrically connected with the current detection resistor, wherein:
[0036] the control module is used to control the charger to output a preset first voltage, the preset first voltage is used to make the charger output a charging current to charge a charged device when the charger is connected to the charged device;
[0037] the control module is further used to control the charger to output a preset second voltage when it is detected that the charger outputs the charging current, the preset second voltage is less than a minimum charging voltage for charging the charged device.
[0038] The current detection resistor is configured to detect an output current of the charger according to a second voltage preset for an output of the charger, the output current being used by the control module to determine whether the charger has a short circuit according to the output current;
[0039] The control module is further configured to control the charger to output the preset first voltage to charge the charged device again when it is determined that the charger does not have a short circuit according to the output current.
[0040] A third aspect of the embodiments of the present application discloses an electronic device, comprising:
[0041] a memory storing executable program codes;
[0042] a processor coupled to the memory;
[0043] The processor invokes the executable program codes stored in the memory to execute the short circuit protection method in the charging process disclosed in the first aspect of the embodiments of the present application.
[0044] A fourth aspect of the embodiments of the present application discloses a computer readable storage medium storing a computer program, wherein the computer program causes a computer to execute the short circuit protection method in the charging process disclosed in the first aspect of the embodiments of the present application.
[0045] A fifth aspect of the embodiments of the present application discloses a computer program product, when the computer program product runs on a computer, causes the computer to execute part or all steps of any one method of the first aspect of the embodiments of the present application.
[0046] A sixth aspect of the embodiments of the present application discloses an application publishing platform, the application publishing platform is used to publish a computer program product, when the computer program product runs on a computer, causes the computer to execute part or all steps of any one method of the first aspect of the embodiments of the present application.
[0047] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0048] In the embodiment of the present application, the charger can output a first voltage by default, which can charge the charged device. When the charger is connected to the charged device, the first voltage can make the charger output a charging current to charge the charged device. Therefore, based on the first voltage output by the charger, the short-circuit protection device can determine whether the charged device is connected by checking whether the charger outputs a charging current to the charged device. Then, the short-circuit protection device can output a second voltage when the charged device is connected. Since the second voltage does not reach the minimum voltage required to charge the charged device, the charger will not charge the charged device. Thus, a charging protection period is formed. During the protection period, the charger can be self-checked for short circuit. When it is determined that the charger does not have a short circuit, the charger is controlled to output the preset first voltage to charge the charged device. Thus, the charger can be prevented from being damaged due to short circuit during charging, and even a fire can be avoided. The safety of the electronic device charging process is improved. BRIEF DESCRIPTION OF DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.
[0050] Figure 1 is a structural schematic diagram of a charger disclosed in an embodiment of the present application;
[0051] Figure 2 is a flowchart of a short-circuit protection method in a charging process disclosed in an embodiment of the present application;
[0052] Figure 3 is a flowchart of another short-circuit protection method in a charging process disclosed in an embodiment of the present application;
[0053] Figure 4 is a flowchart of still another short-circuit protection method in a charging process disclosed in an embodiment of the present application;
[0054] Figure 5 is a structural schematic diagram of a short-circuit protection device in a charging process disclosed in an embodiment of the present application;
[0055] Figure 6 is a structural schematic diagram of another short-circuit protection device in a charging process disclosed in an embodiment of the present application;
[0056] Figure 7 is an internal circuit schematic diagram of a charger disclosed in an embodiment of the present application;
[0057] Figure 8is a structural schematic diagram of an electronic device disclosed by an embodiment of the present application. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0059] It should be noted that the terms "first", "second", "third", and "fourth" and the like in the specification and claims of the present application are used to distinguish different objects, and are not used to describe a specific order. The terms "include" and "have" and any variations of them in the embodiments of the present application are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.
[0060] The embodiments of the present application disclose a short-circuit protection method in a charging process and a charger, which can avoid the short-circuit phenomenon in the charging process of an electronic device, thereby improving the safety of the charging process of the electronic device.
[0061] The technical solutions of the present application will be described in detail below with reference to specific embodiments.
[0062] In order to more clearly illustrate the short-circuit protection method disclosed by the embodiments of the present application, first, a charger suitable for the short-circuit protection method (optionally, the charger can include a charging head, a power strip, etc., which is not limited here) is introduced. As shown in Figure 1 Figure 1 is a structural schematic diagram of a charger disclosed by an embodiment of the present application; the charger can include a control module 101 (for example: a control chip, a single-chip microcomputer, etc., which has a logic calculation and logic control ability, and is used to control the charger to output different voltages, and perform short-circuit detection, charged device access detection, etc., which is not limited here), a switch 102 (for example: a MOS tube, a triode, etc., which is used to realize the conduction and cut-off of the output voltage of the charger), and a current detection resistor 103 (for example: a current sensing resistor, which is used to detect the current of the internal circuit of the charger); wherein the control module 101 can be electrically connected with the switch 102 and the current detection resistor 103 respectively.
[0063] Optionally, the charger can further include a temperature detection resistor 104 (for example, a general thermal resistor, an end face thermal resistor, etc., which is used to detect the temperature of the charger), and the temperature detection resistor 104 is electrically connected with the control module 101.
[0064] It should be noted that the charger can include both the current detection resistor 103 and the temperature detection resistor 104, so as to feed back the internal circuit current of the charger and the temperature of the charger to determine whether the charger is short-circuited, thereby improving the accuracy of short-circuit determination; optionally, the charger can include only one of the current detection resistor 103 or the temperature detection resistor 104, so as to save the internal space of the charger.
[0065] Please refer to Figure 2 , Figure 2 is a flowchart of a short-circuit protection method in a charging process disclosed by the embodiment of the present application, the short-circuit protection method can be applied to the control module described above, and the short-circuit protection method can include the following steps:
[0066] 202, controlling the charger to output a preset first voltage, the preset first voltage is used to charge the first charged device with a charging current output by the charger when the charger is connected to the first charged device.
[0067] In the embodiment of the present application, the charger can include a charging head or a power strip and the like charging device, and an AC-DC conversion device can be arranged in the charger, which is used to convert the alternating current output by the power supply into direct current suitable for electronic devices (i.e. charged devices). Therefore, when the charger is connected to the power supply but not connected to the charged device (for example, a mobile phone, a tablet computer, a smart watch and the like electronic device), the control module can control the AC-DC conversion device to convert the alternating current output by the power supply into a preset first voltage and output.
[0068] Optionally, the preset first voltage can be equal to the minimum charging voltage of the first charged device, or greater than the minimum charging voltage of the first charged device (for example, the rated charging voltage of the charged device, the fast charging voltage of the charged device, etc., which is not limited here).
[0069] 204, when it is detected that the charger outputs a charging current, controlling the charger to output a preset second voltage and detecting whether the charger is short-circuited, the preset second voltage is less than the first minimum charging voltage for charging the first charged device.
[0070] In the embodiments of the present application, since the preset first voltage output by the charger by default can output a charging current to the first charged device when charging the first charged device, the charger can determine whether a charged device is connected by detecting whether a charging current is output to the first charged device. That is, when the control module detects that the charger outputs a charging current, the control module determines that a charged device is connected to the charger. At this time, in order to avoid the first charged device being damaged due to a short circuit of the charger when charging the first charged device, the control module can control the voltage output by the charger to switch from the preset first voltage to the preset second voltage (optionally, the preset second voltage is less than the preset first voltage) to avoid the charged device being damaged due to a short circuit.
[0071] It should be noted that the preset second voltage can be less than the first minimum charging voltage of the first charged device (for example, if the first minimum charging voltage of the first charged device is 3V, the preset second voltage can be set to 2.5V, 2V, etc.), and the preset second voltage is set to be less than the first minimum charging voltage of the first charged device because the first charged device usually needs to input a charging voltage reaching a certain voltage threshold (i.e., the first minimum charging voltage) to charge. Therefore, when the preset second voltage is set to be less than the first minimum charging voltage of the first charged device, the charger does not charge the first charged device; thus, by taking advantage of the characteristic that the charger does not charge the first charged device when outputting a low voltage, the charger can form a charging protection period during the charging process of the first charged device, and the control module can use this protection period to detect a short circuit of the charger to avoid accidents caused by using a short-circuited charger to charge.
[0072] It should be further noted that the charger can be built-in with a transformer or a voltage conversion circuit, so that the control module can adjust the size of the voltage generated by the AC-DC converter through these voltage conversion devices. Therefore, optionally, the control module can control the voltage conversion device to switch the voltage output by the charger from the preset first voltage to the preset second voltage through a control circuit.
[0073] In the embodiments of the present application, when the control module detects that the first charged device is connected to the charger, the control module can determine whether the charger is short-circuited according to the current value generated by the preset second voltage applied to the internal circuit of the charger. It should be noted that although the preset second voltage output by the charger cannot charge the first charged device, it can still generate a certain value of current when applied to the internal circuit of the charger, so that the control module can determine whether the charger is short-circuited by determining whether the current exceeds a normal current threshold.
[0074] As an optional implementation, when it is detected that the charger outputs the charging current, the control module can control the charger to output a preset second voltage, and acquire the output current of the charger according to the preset second voltage, and determine whether the output current is less than a preset current threshold in a preset first time length; if the output current is less than the preset current threshold in the preset first time length, the control module determines that the charger does not exist short circuit; if there is a time point in the first time length at which the output current is greater than or equal to the preset current threshold, the control module determines that the charger exists short circuit.
[0075] It should be noted that the preset current threshold can be set by the developer according to a large amount of development data, which represents the current of the internal circuit of the charger, and is a critical value between the short circuit state and the non-short circuit state. The typical value can include 200 mA, 300 mA, etc., which is not limited herein; the preset first time length can be any time length in the process of charging the charged device by the charger.
[0076] Optionally, the internal circuit of the charger can be provided with a current detection resistor, and then the control module can acquire the output current of the charger by detecting the voltage difference (i.e., the preset second voltage) between the two ends of the current detection resistor (wherein the output current can be equal to the voltage difference between the two ends of the current detection resistor divided by the resistance value of the current detection resistor).
[0077] By implementing the above method, the control module can determine whether the charger is short-circuited by the current value fed back by the current detection resistor. Since the current detection resistor is cheap and the method of determining short circuit by current value is relatively simple, the cost of the charger is reduced, and the implementation difficulty of the short circuit protection method is also reduced.
[0078] 206、If it is detected that the charger does not exist short circuit, the control module controls the charger to output the preset first voltage to charge the first charged device again.
[0079] In the embodiment of the application, when the control module detects that the charger does not exist short circuit, it means that the charger can be used normally. At this time, the control module controls the charger to output the preset first voltage to charge the first charged device again, which can reduce the occurrence of short circuit in the subsequent charging process and improve the safety of the charging process.
[0080] As an optional implementation, when the charger is connected to the power supply but not connected to the first charged device, the preset first voltage output by the control module can include the first minimum charging voltage of the first charged device (wherein, because the charger can output the charging current to the first charged device as long as the first minimum charging voltage of the first charged device is output, and the control module can detect whether the charged device is connected to the charger according to the charging current as long as the charging current is output; in addition, because the first minimum charging voltage is the minimum voltage at which the charger can output the charging current, maintaining the output of the first minimum charging voltage can reduce the power consumption of the charger before it is determined that the charger does not have a short circuit); and when it is detected that the charger does not have a short circuit, the control module can control the charger to output the rated charging voltage of the first charged device, or the control module can control the charger to output the fast charging voltage of the first charged device, because the rated charging voltage or the fast charging voltage is obviously higher than the minimum charging voltage, so the subsequent charging efficiency can be improved.
[0081] The charger can output the first voltage for charging the charged device by default according to the method disclosed in the above embodiments, and the first voltage can make the charger output the charging current to charge the charged device when the charger is connected to the charged device. Therefore, based on the output of the first voltage by the charger, the short circuit protection device can determine whether the charged device is connected by whether the charger has output the charging current to the charged device, and then output the second voltage when the charged device is connected. Because the second voltage does not reach the minimum voltage for charging the charged device, the charger will not charge the charged device, thereby forming a charging protection period. During the protection period, the charger can be self-checked for short circuit, and when it is determined that the charger does not have a short circuit, the charger is controlled to output the preset first voltage again to charge the charged device, thereby avoiding the charger from being damaged or even causing a fire due to a short circuit during charging, and improving the safety of the electronic device charging process.
[0082] Please refer to Figure 3 , Figure 3 is another flowchart of a short circuit protection method in a charging process disclosed in the embodiments of the present application. The short circuit protection method can be applied to the control module described above. The short circuit protection method can include the following steps:
[0083] 302, control the charger to output a preset first voltage, the preset first voltage being used to make the charger output a charging current to charge the first charged device when the charger is connected to the first charged device.
[0084] 304. When the charger outputs a charging current, the charger outputs a preset second voltage and the charger is checked for short circuit. The preset second voltage is less than the first minimum charging voltage that charges the first device being charged.
[0085] In this embodiment, the minimum charging voltage for different types of devices can be different (optionally, the minimum charging voltage for different types of devices can be obtained through the device's identification information (e.g., production code, product name, etc.) or instruction manual). Therefore, when charging different devices, the preset second voltage output by the charger can also be different. Optionally, the preset second voltage output by the charger can be set by the developer based on the minimum charging voltage of the device, or it can be adjusted by the charger based on input control commands; this is not limited here.
[0086] Optionally, the charger may be equipped with an identification module (e.g., a barcode scanner, a QR code scanner, or a camera). The charger can then identify the identification information of the device being charged through the identification module, determine the minimum charging voltage of the device being charged based on the identified identification information, and then determine a preset second charging voltage based on the minimum charging voltage of the device being charged.
[0087] Optionally, the charger may have an external adjustment button that communicates with the internal control module. When the adjustment button is pressed, it sends a voltage control signal to the control module, which then adjusts the preset second voltage output by the charger based on the received signal. In other words, this preset second voltage can be obtained through the adjustment command of the external adjustment button, and this command matches the minimum charging voltage of the device being charged.
[0088] By implementing the methods disclosed in the above embodiments, a preset second voltage lower than the minimum charging voltage of the device being charged can be determined more accurately. This ensures that the charger does not charge the device being charged before the device is connected to the charger and the charger performs a short-circuit self-test, thus achieving short-circuit protection for the device being charged.
[0089] As an optional implementation, the control module can also collect the target humidity value inside the charger through the built-in humidity sensor; and determine whether the target humidity value is within a preset humidity range (this humidity range indicates that the inside of the charger is in a humid state, and its specific value can be set by the developers based on a large amount of development data, and is not limited here); if the target humidity value is within the preset humidity range, the control module can control the charger to output a preset second voltage and detect whether there is a short circuit in the charger.
[0090] In practice, it is found that a humid environment is prone to cause a short circuit of a circuit, so the above method can be implemented to determine whether the inside of the charger is humid through the data collected by the humidity sensor before the charged device is connected to the charger, and then the short circuit detection can be performed when the inside of the charger is humid, so as to ensure the safety of the subsequent charging process.
[0091] 306、If it is detected that the charger does not have a short circuit, the control module controls the charger to output the preset first voltage to charge the first charged device again.
[0092] 308、If it is detected that the first charged device is disconnected from the charger, the control module controls the voltage output by the charger to be switched from the preset first voltage to the preset second voltage.
[0093] In the embodiments of the present application, since the control module controls the charger to output the preset first voltage to charge the first charged device again when it is detected that the charger does not have a short circuit, that is, the charging current output to the first charged device at this time. Therefore, optionally, the control module can determine that the first charged device is disconnected from the charger when it is detected that the charging current output according to the preset first voltage is not output to the first charged device.
[0094] After it is determined that the first charged device is disconnected from the charger, the control module can control the voltage output by the charger to be switched from the preset first voltage to the preset second voltage (i.e., low voltage that does not charge the first charged device), so that the short circuit phenomenon can be avoided when the charged device is connected again next time, and the charger directly charges the charged device.
[0095] In some other optional embodiments, when the detection module detects that the first charged device is disconnected from the charger, the detection module can also prohibit the charger from outputting the preset first voltage.
[0096] It should be noted that: the internal circuit of the charger can be provided with a switch (for example, a MOS tube, a triode, etc.), which is in an open state by default, so that the charger can output a voltage to the charged device. When the detection module detects that the first charged device is disconnected from the charger, the detection module can control the switch to be closed, so as to prohibit the charger from outputting the preset first voltage to the first charged device, so as to avoid damage to the charger or the charged device due to a short circuit of the device.
[0097] As an optional implementation, after detecting that the first charged device is disconnected from the charger, if the second charged device is detected to be connected to the charger, the control module can determine a preset third voltage according to a second lowest charging voltage when the second charged device is being charged, the preset third voltage being less than the second lowest charging voltage; and then the control module can control the voltage output by the charger to be switched from the preset first voltage to the preset third voltage, so that when the second charged device is connected to the charger, the charger can directly charge the second charged device without short circuit phenomenon.
[0098] Since the lowest charging voltages of different charged devices are different, the charging protection voltages of different charged devices are also different, and by implementing the above method, the control module can determine a charging protection voltage suitable for other charged devices according to the lowest charging voltage of the other charged device when the charger is connected to the other charged device, so as to ensure that the charger does not charge the other charged device before the short circuit self-checking, and achieve the effect of charging protection.
[0099] By implementing the method disclosed in the above embodiments, the charger can output a first voltage by default to charge the charged device, and the first voltage can make the charger output a charging current to charge the charged device when the charger is connected to the charged device. Therefore, on the basis of the first voltage output by the charger, the short circuit protection device can determine whether the charged device is connected by whether the charger outputs the charging current to the charged device, and then output a second voltage when the charged device is connected. Since the second voltage does not reach the lowest voltage for charging the charged device, the charger will not charge the charged device, thereby forming a charging protection period. During the protection period, the charger can be self-checked for short circuit, and when it is determined that the charger does not have short circuit, the charger is controlled to output the preset first voltage again to charge the charged device, so that the charger can be prevented from being damaged due to short circuit during charging, and even cause a fire, thereby improving the safety of the charging process of the electronic device. In addition, the preset second voltage lower than the lowest charging voltage of the charged device can be more accurately determined, so that the charger can be prevented from charging the charged device before the charger is self-checked for short circuit, and the short circuit protection of the charged device is achieved. Furthermore, when the charger is connected to other charged devices, a charging protection voltage suitable for the other charged devices can be determined according to the lowest charging voltage of the other charged devices, so that the charger can be prevented from charging the other charged devices before the charger is self-checked for short circuit, thereby achieving the effect of charging protection.
[0100] Please refer to Figure 4 , Figure 4is a flowchart of another short-circuit protection method in a charging process disclosed by the embodiments of the present application, which can be applied to the control module mentioned above. The short-circuit protection method can include the following steps:
[0101] 402, controlling the charger to output a preset first voltage, which is used to make the charger output a charging current to charge the first charged device when the charger is connected to the first charged device.
[0102] 404, when the charging current output by the charger is detected, controlling the charger to output a preset second voltage, which is less than the first minimum charging voltage used to charge the first charged device, and detecting whether there is a short circuit in the charger. If there is no short circuit, step 406 is performed; if there is a short circuit, step 408 is performed.
[0103] It should be noted that the short-circuit protection method disclosed by the embodiments of the present application can be applied to wired chargers (i.e. charging devices that need to be connected to the charger through a data line or a charging line for charging) and wireless chargers (i.e. various charging devices that use electromagnetic induction principle for charging). That is, the charger can include a wired charger and a wireless charger, which is not limited here.
[0104] Similarly, whether it is a wired charger or a wireless charger, when the charging current output by the charger is detected (i.e. there is a charged device connected to the charger), a preset second voltage lower than the minimum charging voltage of the charged device can be output to form a charging protection period. Then, the charger can use the protection period for various line detection (including but not limited to short-circuit detection, overload detection, etc., which is not limited here), thereby ensuring the safety of the subsequent charging process.
[0105] As an optional implementation, when the charging current output by the charger is detected, the control module can control the charger to output a preset second voltage, and obtain the temperature of the charger according to the preset second voltage, and determine whether the temperature of the charger is lower than a preset temperature threshold within a preset second time period. If the temperature of the charger is lower than the preset temperature threshold within the preset second time period, the control module determines that there is no short circuit in the charger. If there is a time point within the second time period when the temperature of the charger is greater than or equal to the preset temperature threshold, the control module determines that there is a short circuit in the charger.
[0106] It should be noted that the preset temperature threshold can be set by the developer according to a large amount of development data, and its typical value can include 55℃, 60℃ or 65℃, etc., which is not limited here. The preset second time period can be any time period in the process of charging the charged device by the charger.
[0107] The control module can determine whether the charger is short-circuited by the charger temperature feedback of the temperature detection resistor. Since the temperature detection resistor is cheap and the method of determining short-circuit by the charger temperature is simple, the cost of the charger is reduced and the difficulty of implementing the short-circuit protection method is also reduced.
[0108] In practice, it is found that when the control module controls the charger to output the preset second voltage and detects whether the charger is short-circuited, the charger does not charge the charged device, and the process usually needs to last for a certain period of time (tens of seconds or even minutes). However, the user does not know whether the charger is detecting short-circuit or simply thinks that the charger is broken because the charged device is not being charged during this process.
[0109] Therefore, optionally, the control module can collect a real-time voltage value output by the charger in real time and output the real-time voltage value through the display module for the user to refer to.
[0110] Optionally, the control module can also determine whether the real-time voltage value can charge the charged device according to the real-time voltage value and the minimum charging voltage of the charged device, and output the determination result through the display module.
[0111] Optionally, when the real-time voltage value output by the charger is greater than or equal to the minimum charging voltage of the charged device, the control module can output the reminding information that the charging is currently being performed through the display module.
[0112] Correspondingly, when the real-time voltage value output by the charger is less than the minimum charging voltage of the charged device, the control module can output the reminding information that the charging is not currently being performed through the display module.
[0113] By implementing the above method, the user can determine the state information of the charger through the information feedback by the display module, and when the user finds that the charged device is not being charged, if it is determined according to the state information that the charger is not charging the charged device, it means that the charger can be performing short-circuit self-checking; otherwise, if it is determined according to the displayed state information that the charger is charging the charged device, it means that the charger can be broken. That is, the above method can feedback the charging information of the charged device to the user, and the user experience is improved.
[0114] As another optional implementation, the control module can also display the detection result through the display module after detecting whether the charger is short-circuited, so that the user can replace the charger when the charger is short-circuited, thereby avoiding damage to the charged device caused by short-circuit during charging.
[0115] It should be noted that the display module can be a liquid crystal screen, a digital screen or a touch screen arranged outside the charger, or a display screen of a user device (for example, a mobile phone, a smart watch or a computer) in communication connection with the charger, which is not limited herein.
[0116] 406. The charger is controlled to output the preset first voltage to charge the first charged device.
[0117] 408. The charger is controlled to output the preset first voltage to charge the first charged device.
[0118] In the embodiment, the internal circuit of the charger can be provided with a switch (for example, a MOS tube or a triode), which is in an open state by default, so that the charger can output a voltage to the charged device. When the control module detects that the charger has a short circuit, the switch can be controlled to be closed, so that the charger is prohibited from outputting any voltage, to avoid damage to the charger.
[0119] As an optional implementation, after the charger is prohibited from outputting the voltage, the charger can be controlled to output the preset second voltage after a preset waiting time interval (the specific time interval can be set by the developer according to a large amount of development data, which is not limited herein), and it is detected whether the charger has a short circuit. If it is detected that the charger has a short circuit, the charger is prohibited from outputting the voltage. If it is detected that the charger does not have a short circuit, the charger is controlled to output the preset first voltage to charge the charged device.
[0120] Optionally, after the charger is prohibited from outputting the voltage for the second time and after a preset waiting time interval, the charger can be controlled to output the preset second voltage and detect whether the charger has a short circuit. Similarly, if it is detected that the charger has a short circuit, the charger is prohibited from outputting the voltage. If it is detected that the charger does not have a short circuit, the charger is controlled to output the preset first voltage to charge the charged device, to cyclically detect whether the charger has overcome the short circuit fault.
[0121] The above method can also be implemented by polling to detect whether the charger has overcome the short circuit fault, so that the charger can be used to charge the charged device when the charger returns to normal, to avoid the charger being in a state of being prohibited from outputting the voltage all the time.
[0122] As another optional implementation, if it is detected that the charger is reset by power-off (optionally, after it is detected that the charger is disconnected from the power supply, if it is detected again that the charger is connected to the power supply, it is determined that the charger is reset by power-off), the charger can be controlled to output the preset first voltage, and when it is detected that the charger outputs a charging current, the step of controlling the charger to output the preset second voltage and detecting whether the charger has a short circuit is performed again.
[0123] The method can also control the charger to output low voltage again and detect short circuit of the charger when the charger is powered off and reset, so that short circuit protection can be provided when the device to be charged is connected again.
[0124] The method disclosed by the above embodiments can be implemented to control the charger to output a first voltage by default, and the first voltage can cause the charger to output charging current to charge the device to be charged when the charger is connected to the device to be charged. Therefore, the short circuit protection device can determine whether the device to be charged is connected by determining whether the charger outputs charging current to the device to be charged based on the first voltage output by the charger. The short circuit protection device can output a second voltage when the device to be charged is connected. Since the second voltage is lower than the minimum voltage required to charge the device to be charged, the charger does not charge the device to be charged, thereby forming a charging protection period. During the protection period, the charger can be self-detected for short circuit. When it is determined that the charger is not short-circuited, the charger is controlled to output the preset first voltage to charge the device to be charged again. Thus, the charger can be prevented from being short-circuited during charging, which can damage the device to be charged or even cause a fire, thereby improving the safety of the charging process of the electronic device. In addition, the charger can be determined to be short-circuited by detecting the temperature of the charger through the temperature detection resistor. Since the temperature detection resistor is inexpensive and the method of determining short circuit by the temperature of the charger is relatively simple, the cost of the charger is reduced, and the difficulty of implementing the short circuit protection method is also reduced.
[0125] Please refer to Figure 5 , Figure 5 is a structure diagram of a short circuit protection device in a charging process disclosed by the embodiments of the present application. The short circuit protection device can include a first output unit 501, a detection unit 502, and a second output unit 503, wherein:
[0126] The first output unit 501 is configured to control the charger to output a preset first voltage. The preset first voltage is used to cause the charger to output charging current to charge the first device to be charged when the charger is connected to the first device to be charged.
[0127] The detection unit 502 is configured to control the charger to output a preset second voltage and detect whether the charger is short-circuited when it is detected that the charger outputs charging current. The preset second voltage is lower than the first minimum charging voltage required to charge the first device to be charged.
[0128] The second output unit 503 is configured to control the charger to output the preset first voltage to charge the first device to be charged when the detection unit 502 detects that the charger is not short-circuited.
[0129] The short-circuit protection device can make the charger output a first voltage by default to charge the charged device, and the first voltage can make the charger output a charging current to charge the charged device when the charger is connected to the charged device. Therefore, the short-circuit protection device can determine whether the charged device is connected by judging whether the charger outputs the charging current to the charged device on the basis of the first voltage output by the charger. Then, the short-circuit protection device can output a second voltage when the charged device is connected. Since the second voltage does not reach the minimum voltage for charging the charged device, the charger does not charge the charged device, thereby forming a charging protection period. During the protection period, the charger can be self-checked for short circuit. When it is determined that the charger does not have a short circuit, the charger is controlled to output the preset first voltage again to charge the charged device. Therefore, the charger can avoid short circuit during charging, which can damage the device and even cause a fire, thereby improving the safety of the charging process of the electronic device.
[0130] Please refer to Figure 6 , Figure 6 is another structure diagram of the short-circuit protection device in the charging process disclosed by the embodiment of the present application, Figure 6 The short-circuit protection device shown in Figure 5 The short-circuit protection device shown in Figure 5 The short-circuit protection device shown in Figure 6 The short-circuit protection device shown in
[0131] The first switching unit 504 is configured to, after the second output unit 503 controls the charger to output the preset first voltage to charge the first charged device, switch the voltage output by the charger from the preset first voltage to the preset second voltage if it is detected that the first charged device is disconnected from the charger.
[0132] The first disabling unit 505 is configured to, after the second output unit 503 controls the charger to output the preset first voltage to charge the first charged device, disable the charger to output the preset first voltage if it is detected that the first charged device is disconnected from the charger.
[0133] The short-circuit protection device can avoid the charger from directly charging the charged device and causing short circuit when the charged device is connected again next time.
[0134] As an optional implementation, Figure 6 The short-circuit protection device shown in
[0135] The determining unit 506 is configured to, after detecting that the first charged device is disconnected from the charger, if it is detected that the second charged device is connected to the charger, determine a preset third voltage according to a second lowest charging voltage when the second charged device is being charged, the preset third voltage being less than the second lowest charging voltage.
[0136] The second switching unit 507 is configured to control the voltage output by the charger to switch from the preset first voltage to the preset third voltage.
[0137] The short-circuit protection device can determine a charging protection voltage suitable for other charged devices according to the lowest charging voltage of the other charged devices when the charger is connected to the other charged devices, so that the charger does not charge the other charged devices before the short-circuit detection, and the charging protection effect is achieved.
[0138] As an optional implementation, the detecting unit 502 can control the charger to output the preset second voltage and detect whether the charger has a short circuit in the following manner:
[0139] The detecting unit 502 is configured to collect a target humidity value inside the charger by using a humidity sensor built in the charger, and determine whether the target humidity value is within a preset humidity range, and control the charger to output the preset second voltage and detect whether the charger has a short circuit if the target humidity value is within the preset humidity range.
[0140] The short-circuit protection device can determine whether the inside of the charger is humid by using the data collected by the humidity sensor before the charged device is connected to the charger, and then perform the short-circuit detection when the inside of the charger is humid, so as to ensure the safety of the subsequent charging process.
[0141] As an optional implementation, the detecting unit 502 can determine whether the charger has a short circuit in the following manner:
[0142] The detecting unit 502 is configured to obtain an output current of the charger according to the preset second voltage, and determine whether the output current is less than a preset current threshold within a preset first time length, and determine that the charger does not have a short circuit if the output current is less than the preset current threshold within the preset first time length, and determine that the charger has a short circuit if the output current is not less than the preset current threshold within the preset first time length.
[0143] The short-circuit protection device can determine whether the charger is short-circuited by the current value fed back by the current detection resistor, and the current detection resistor is cheap and the method of determining short-circuit by the current value is simple, so that the cost of the charger is reduced and the difficulty of implementing the short-circuit protection method is reduced.
[0144] As another optional implementation, the detection unit 502 is configured to determine whether the charger is short-circuited in the following manner:
[0145] The detection unit 502 is configured to obtain the temperature of the charger according to the preset second voltage, determine whether the temperature of the charger is lower than the preset temperature threshold within the preset second time length, determine that the charger is not short-circuited if the temperature of the charger is lower than the preset temperature threshold within the preset second time length, and determine that the charger is short-circuited if the temperature of the charger is not lower than the preset temperature threshold within the preset second time length.
[0146] The short-circuit protection device can determine whether the charger is short-circuited by the temperature of the charger fed back by the temperature detection resistor, and the temperature detection resistor is cheap and the method of determining short-circuit by the temperature of the charger is simple, so that the cost of the charger is reduced and the difficulty of implementing the short-circuit protection method is reduced.
[0147] As an optional implementation, Figure 6 The short-circuit protection device can further include a second inhibition unit 508, wherein:
[0148] The second inhibition unit 508 is configured to inhibit the output voltage of the charger when the detection unit 502 detects that the charger is short-circuited.
[0149] The short-circuit protection device can detect that the charger is short-circuited and inhibit the output voltage of the charger to avoid damage to the charger.
[0150] The short-circuit protection device disclosed in the above-mentioned embodiments can make the charger output a first voltage by default to charge the charged device, and the first voltage can make the charger output a charging current to charge the charged device when the charger is connected to the charged device. Therefore, the short-circuit protection device can determine whether the charged device is connected to the charger by whether the charger outputs the charging current to the charged device, and then output a second voltage when the charged device is connected to the charger. Since the second voltage is lower than the minimum voltage for charging the charged device, the charger does not charge the charged device, thereby forming a charging protection period. During the protection period, the charger can be self-checked for short circuit, and when it is determined that the charger does not have a short circuit, the charger is controlled to output the preset first voltage to charge the charged device again, thereby avoiding damage to the device and even fire caused by short circuit of the charger during charging, and improving the safety of the electronic device charging process.
[0151] Correspondingly, the application further discloses a charger, which can comprise a control module and a current detection resistor, wherein the control module is electrically connected to the current detection resistor.
[0152] The control module is configured to control the charger to output a preset first voltage, and the preset first voltage is used to make the charger output a charging current to charge the charged device when the charger is connected to the charged device.
[0153] The control module is further configured to control the charger to output a preset second voltage when it is detected that the charger outputs the charging current, and the preset second voltage is lower than the minimum charging voltage for charging the charged device.
[0154] The current detection resistor is configured to detect the output current of the charger according to the second voltage when the charger outputs the preset second voltage, and the output current is used by the control module to determine whether the charger has a short circuit.
[0155] The control module is further configured to control the charger to output the preset first voltage to charge the charged device again when it is determined that the charger does not have a short circuit according to the output current.
[0156] The charger can make the default output the first voltage for charging the charged device, and the first voltage can make the charger output the charging current to charge the charged device when the charger is connected to the charged device. Therefore, the short-circuit protection device can determine whether the charged device is connected by whether the charger outputs the charging current to the charged device based on the first voltage output by the charger. Then, the second voltage can be output when the charged device is connected. Since the second voltage is lower than the minimum voltage for charging the charged device, the charger cannot charge the charged device, thereby forming a charging protection period. During the protection period, the charger can be self-checked for short circuit. When it is determined that the charger does not have short circuit, the charger is controlled to output the preset first voltage to charge the charged device again. Therefore, the charger can avoid short circuit during charging, which can damage the device and even cause fire. The safety of the electronic device charging process is improved.
[0157] Optionally, refer to Figure 7 , Figure 7 is a schematic diagram of an internal circuit of a charger. The internal circuit of the charger can include a control detection unit U1 (for example, a control chip, a single-chip microcomputer, used for realizing logical control and logical operation functions), a MOS tube Q1 (for example, a P-channel MOS tube or an N-channel MOS tube, used for realizing switching of the output voltage of the charger), a current detection resistor R1 (used for detecting the current of the internal circuit), a temperature detection resistor R2 (for example, an NTC type thermistor, a PTC type thermistor, etc., used for detecting the temperature of the internal circuit), a modulation unit U2 (used for adjusting the output voltage of the charger), and a transformer module T1 (used for transforming the input voltage of the charger, so that the output voltage of the charger can be adapted to the charged device).
[0158] As Figure 7 shown, the control detection unit U1 can be electrically connected with the modulation unit U2 and the transformer module T1 respectively, and the modulation unit U2 and the transformer module T1 are electrically connected. Then, the control detection unit U1 can control the transformer module T1 to output a preset first voltage (the preset first voltage is used to make the charger output the charging current to charge the first charged device when the charger is connected to the first charged device) through the modulation unit U2. Then, when the control detection unit U1 detects that the charger outputs the charging current (that is, when the charged device is connected to the charger), the control detection unit U1 can control the transformer module T1 to output a preset second voltage (the preset second voltage is lower than the minimum charging voltage for charging the charged device) through the modulation unit U2, so as to form a charging protection period.
[0159] Optionally, the control detection unit U1 can also be electrically connected with the current detection resistor R1 and / or the temperature detection resistor R2. Figure 7Exemplarily, it is shown that the detection control unit U1 is electrically connected with the current detection resistor R1 and the temperature detection resistor R2 respectively, which should not be regarded as a limitation to the embodiments of the present application. Further, after the detection control unit U1 controls the voltage conversion module T1 to output the preset second voltage through the adjusting unit U2, the detection control unit U1 can determine whether the charger is short-circuited by the circuit current and the circuit temperature fed back through the current detection resistor R1 and the temperature detection resistor R2. If the detection control unit U1 determines that the charger is not short-circuited, the detection control unit U1 can control the voltage conversion module T1 to output the preset first voltage again through the adjusting unit U2. Optionally, the detection control unit U1 can also be electrically connected with the MOS tube Q1. Further, when the detection control unit U1 determines that the charger is short-circuited, the detection control unit U1 can control the MOS tube Q1 to be turned off to prohibit the charger from outputting voltage.
[0160] It should be noted that: Figure 7 GND in the above formula is a ground pin in the interface of the charger, and VBUS is a power pin in the interface of the charger. The connecting device can include a data line, a power line and the like, and the connecting device can include a positive electrode and a negative electrode, which are not limited herein. The charged device can include a mobile phone, a tablet computer, a learning machine or a smart watch and the like, which are not limited herein.
[0161] Please refer to Figure 8 , Figure 8 is a structural schematic diagram of an electronic device disclosed by the embodiments of the present application. As shown in Figure 8 , the electronic device can include:
[0162] a memory 801 in which executable program codes are stored;
[0163] a processor 802 coupled with the memory 801;
[0164] The processor 802 calls the executable program codes stored in the memory 801 to execute the short-circuit protection method in the charging process disclosed by the above embodiments.
[0165] The embodiments of the present application disclose a computer readable storage medium which stores a computer program. The computer program causes a computer to execute the short-circuit protection method in the charging process disclosed by the above embodiments.
[0166] The embodiments of the present application also disclose an application publishing platform. The application publishing platform is used to publish a computer program product. When the computer program product runs on a computer, the computer program product causes the computer to execute part or all steps of the method in the above method embodiments.
[0167] It should be understood that every feature, structure, or characteristic described herein is within a preferred embodiment of the present application. It should be noted that the features, structures, or characteristics described in connection with one embodiment can be combined in any manner with features, structures, or characteristics of other embodiments. For the purposes of the present application, the phrase "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described is included in at least one embodiment of the present application. Thus, appearances of the phrases "in one embodiment" or "in an embodiment" not necessarily refer to the same embodiment. Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It will be appreciated by persons skilled in the art that the embodiments described herein represent preferred embodiments of the present application. The features, structures, or characteristics described in connection with one embodiment can be combined in any manner with features, structures, or characteristics of other embodiments. The skilled person will also appreciate that the described embodiments are optional and that the described acts and modules are not necessarily required for the present application.
[0168] In various embodiments of the present application, it should be understood that the magnitude of the serial number of the above processes does not mean the inevitable sequence of execution, and the execution sequence of the processes should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0169] The units described above as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. can be located in one place, or can be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0170] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0171] The integrated unit described above, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer accessible memory. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a memory and includes a number of steps for causing a computer device (which can be a personal computer, a server or a network device, etc., and specifically can be a processor in the computer device) to execute the above-mentioned methods of the embodiments of the present application.
[0172] Those skilled in the art can understand that all or part of the steps of various methods in the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer readable storage medium, including Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically-Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other medium that can be used to carry or store data in a computer readable manner.
[0173] The short-circuit protection method in the charging process and the charger disclosed in the embodiments of the present application are described in detail above, and the principles and implementation manners of the present application are described by applying specific examples in the present text. The above embodiment descriptions are only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, the specific implementation manners and application ranges will be changed according to the idea of the present application, and the above descriptions should not be understood as limiting the present application.
Claims
1. A short-circuit protection method during charging, characterized in that, The method includes: The charger is controlled to output a preset first voltage, which is used to enable the charger to output a charging current to charge the first device when the charger is connected to the first device being charged. When the charger outputs the charging current, the charger is controlled to output a preset second voltage, and the charger is checked for short circuit. The preset second voltage is less than the first minimum charging voltage that charges the first device being charged. The detection of whether the charger is short-circuited is determined by one of the following parameters: the target humidity value inside the charger, the output current within a preset first time period, and the temperature within a preset second time period. If it is detected that there is no short circuit in the charger, control the charger to output the preset first voltage again to charge the first device being charged; The preset second voltage is different when charging different charging devices, and the preset second voltage is obtained by the charger according to the control command; After detecting that the first device being charged is disconnected from the charger, if a second device being charged is detected to be connected to the charger, a preset third voltage is determined based on the second minimum charging voltage when the second device being charged is charging. The preset third voltage is less than the second minimum charging voltage. The voltage output by the charger is controlled to switch from the preset first voltage to the preset third voltage; The charger includes wired chargers and wireless chargers; If a short circuit is detected in the charger, the charger's output voltage will be disabled. After a preset waiting time, the charger is controlled to re-output the preset second voltage and the short circuit of the charger is detected. If a short circuit is detected in the charger, the charger's output voltage will be disabled. If a short circuit is detected in the charger, the charger is controlled to output the preset first voltage to charge the device being charged.
2. The method according to claim 1, characterized in that, After controlling the charger to re-output the preset first voltage to charge the first device being charged, the method further includes: If the first device being charged is detected to be disconnected from the charger, the voltage output by the charger is controlled to switch from the preset first voltage to the preset second voltage; Alternatively, if the first device being charged is detected to be disconnected from the charger, the charger is prohibited from outputting the preset first voltage.
3. The method according to claim 1, characterized in that, The step of controlling the charger to output a preset second voltage and detecting whether the charger has a short circuit when the charger outputs the charging current includes: The target humidity value inside the charger is collected by the humidity sensor built into the charger; Determine whether the target humidity value is within a preset humidity range; If the target humidity value is within the preset humidity range, control the charger to output a preset second voltage and detect whether the charger has a short circuit.
4. The method according to claim 1, characterized in that, The determination and detection of whether the charger has a short circuit includes: The output current of the charger is obtained based on the preset second voltage, and it is determined whether the output current is less than a preset current threshold within a preset first time period. If the output current is less than a preset current threshold within a preset first time period, it is determined that the charger is not short-circuited. If, within the first time period, there is a moment when the output current is greater than or equal to a preset current threshold, it is determined that the charger has a short circuit.
5. The method according to claim 1, characterized in that, The determination and detection of whether the charger has a short circuit includes: The charger temperature is obtained based on the preset second voltage, and it is determined whether the charger temperature is lower than the preset temperature threshold within a preset second time period. If the charger temperature remains below a preset temperature threshold for a preset second duration, it is determined that the charger is not short-circuited. If, during the second time period, there is a moment when the charger temperature is greater than or equal to a preset temperature threshold, it is determined that the charger has a short circuit.
6. The method according to claim 1, characterized in that, After disabling the charger's output voltage, the method further includes: If the charger is detected to be powered off and reset, the charger is controlled to output the preset first voltage again, and the steps of controlling the charger to output the preset second voltage and detecting whether the charger has a short circuit are executed when the charger outputs the charging current.
7. A charger, characterized in that, The charger includes at least: a control module and a current sensing resistor, a humidity sensor, and a temperature sensing resistor. The control module is electrically connected to the current sensing resistor, and the control module is also connected to the humidity sensor and the temperature sensing resistor. The charger includes a wired charger and a wireless charger, wherein: The control module is used to control the charger to output a preset first voltage. The preset first voltage is used to enable the charger to output a charging current to charge the device when the charger is connected to the device being charged. The control module is also used to control the charger to output a preset second voltage when the charger outputs the charging current, the preset second voltage being less than the minimum charging voltage required to charge the device being charged; The current sensing resistor is used to detect the output current of the charger based on the second voltage when the charger outputs a preset second voltage. The output current within the preset first time period is used by the control module to determine whether the charger has a short circuit based on the output current. The humidity sensor is used to collect the target humidity value inside the charger, and the target humidity value is used by the control module to determine whether the charger has a short circuit. The temperature sensing resistor is used to detect the temperature of the charger, and the temperature is used by the control module to determine whether the charger has a short circuit based on the temperature within the preset second time period. The control module is also used to control the charger to re-output the preset first voltage to charge the device being charged when it is determined from the output current that there is no short circuit in the charger. The preset second voltage is different when charging different charging devices, and the preset second voltage is obtained by the charger according to the control command; The control module is further configured to, after detecting that the first device being charged is disconnected from the charger, if a second device being charged is detected connected to the charger, determine a preset third voltage based on a second minimum charging voltage when the second device being charged is charging, wherein the preset third voltage is less than the second minimum charging voltage; and control the voltage output by the charger to switch from the preset first voltage to the preset third voltage; and, if a short circuit is detected in the charger, disable the charger from outputting voltage; and, after a preset waiting time interval, control the charger to re-output the preset second voltage and detect whether a short circuit exists in the charger; and, if a short circuit is detected in the charger, disable the charger from outputting voltage; and, if no short circuit is detected in the charger, control the charger to output the preset first voltage to charge the device being charged.
8. An electronic device, characterized in that, The electronic device includes a memory storing executable program code and a processor coupled to the memory; wherein the processor calls the executable program code stored in the memory to execute the short-circuit protection method during the charging process according to any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, wherein, The computer program causes the computer to execute the short-circuit protection method during the charging process as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Electronic equipment and charging control system thereof
CN106487060A
Short circuit protection charging interface and control method thereof
CN106602513A
Charging method and charger
CN108270266A
Mobile terminal charger detection control method, mobile terminal and storage medium
CN109617175A