Reverse leakage protection method, electronic equipment and storage medium
By monitoring the voltage difference between the voltage voltage module in the wireless charging system and turning off the switching module, the problem of reverse leakage in the wireless charging system is solved, and the effective protection of wireless charging chips and electronic equipment is realized.
Patent Information
- Application Number
- CN202310947165.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2025-01-28
AI Technical Summary
The reverse leakage problem of switching modules in wireless charging systems causes the voltage in the battery to be poured back into the wireless charging chip, affecting the service life of the wireless charging chip and the battery life of the electronic equipment.
By obtaining the voltage of the input terminal and output terminal of the voltage voltage module, the difference between the two is calculated, and the switch module is turned off when the difference is greater than the setting threshold to block the circuit of the reverse leakage.
Effectively protect the battery life of wireless charging chips and electronic devices, extend the service life of wireless charging chips, and prevent reverse leakage from damage to the system.
Smart Images

Figure CN119382357A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a reverse leakage protection method, an electronic device, and a storage medium. Background Art
[0002] Some electronic devices (such as mobile phones, wearable devices, tablets, etc.) can be wirelessly charged using a wireless charging system. In order to improve the charging efficiency of wireless charging, some wireless charging systems can set up two charging channels between the battery and the wireless charging chip. One charging channel is a fast charging channel, which realizes high-current charging of the battery by setting a switch module between the battery and the wireless charging chip; the other charging channel is a pre-charging, constant-voltage charging channel, which realizes low-current charging of the battery by setting a step-down module between the battery and the wireless charging chip, thereby realizing fast charging of the battery at different power states.
[0003] However, since some switch modules have the ability to conduct current in both directions, that is, they can conduct current from the wireless charging chip to the battery, and can also conduct current from the battery to the wireless charging chip, when charging is not needed, the switch module may leak reversely, causing the voltage in the battery to flow back into the wireless charging chip, causing the wireless charging chip to be in a working state all the time, affecting the service life of the wireless charging chip and seriously affecting the overall battery life of the electronic device. Summary of the invention
[0004] In order to solve the above problems, the present application provides a reverse leakage protection method, an electronic device, and a storage medium to achieve reverse leakage protection for a wireless charging system, thereby protecting the battery life of a wireless charging chip and an electronic device.
[0005] In a first aspect, an embodiment of the present application provides a reverse leakage protection method, which is applied to a wireless charging system, wherein the wireless charging system includes a wireless charging chip and a switch module, wherein the wireless charging chip includes a charging coil and a voltage stabilizing module, wherein an input end of the voltage stabilizing module is coupled to the charging coil, and an output end of the voltage stabilizing module is coupled to a battery through a switch module, and the switch module has a bidirectional conduction capability for current when in an on state; wherein when the wireless charging system is charging the battery, the switch module is in an on state, and the charging coil is used to provide an input voltage, and the input voltage is sequentially subjected to voltage stabilization processing by the voltage stabilizing module and voltage reduction processing by the switch module, and then output to the battery for charging;
[0006] The reverse leakage protection method includes: obtaining a first voltage at the input end of a voltage stabilizing module and a second voltage at the output end of the voltage stabilizing module; calculating the difference between the second voltage and the first voltage; and turning off the switch module in response to the difference being greater than a first threshold, wherein the first threshold is greater than zero.
[0007] The method provided in the embodiment of the present application can determine whether the second voltage is greater than the first voltage by comparing the difference between the second voltage and the first voltage with the first threshold value, so as to determine whether the switch module has the possibility of reverse leakage. On the other hand, by comparing the difference with the first threshold value, it can be confirmed whether reverse leakage has actually occurred when the switch module has the possibility of reverse leakage, so as to exclude the situation where the second voltage is occasionally greater than the first voltage due to unexpected reasons. After confirming the state of reverse leakage protection, the switch module with bidirectional conduction capability is turned off to block the reverse leakage circuit, thereby protecting the wireless charging chip and the overall endurance of the electronic device.
[0008] In an optional implementation, in response to a difference being greater than a first threshold, turning off the switch module includes: comparing the difference with the first threshold to obtain a comparison result, the comparison result including a first result and a second result, the first result including a difference being greater than the first threshold, and the second result including a difference being less than or equal to the first threshold; in response to the first occurrence of the first result, recording the number of consecutive occurrences of the first result; in response to the number of consecutive occurrences of the first result being greater than the first number, turning off the switch module; in response to the number of consecutive occurrences of the first result being less than or equal to the first number, clearing the number.
[0009] In this implementation, by recording the number of times the first result appears and judging whether the number of times the first result appears meets the requirement, it is judged whether the working state of the wireless charging chip is abnormal, so as to further improve the accuracy of identifying the reverse leakage state, so as to avoid misidentification and affect the normal wireless charging operation.
[0010] In an optional implementation, in response to a difference being greater than a first threshold, the switch module is turned off, including: comparing the difference with the first threshold to obtain a comparison result, the comparison result including a first result and a second result, the first result including a difference being greater than the first threshold, and the second result including a difference being less than or equal to the first threshold; in response to the first occurrence of the first result, recording the duration of continuous occurrence of the first result; in response to the duration of continuous occurrence of the first result being greater than the first duration, turning off the switch module; in response to the duration of continuous occurrence of the first result being less than or equal to the first duration, clearing the duration.
[0011] In this implementation, the duration of the first result is recorded, and when the duration of the first result meets the first duration, it is confirmed that reverse leakage occurs. The accuracy of identifying the reverse leakage state is improved by limiting the duration, thereby improving the accuracy of identification and avoiding affecting the normal wireless charging operation.
[0012] In an optional implementation, obtaining a first voltage at the input end of the voltage stabilizing module and a second voltage at the output end of the voltage stabilizing module includes: detecting whether the wireless charging chip is in a working state, wherein the working state includes that the wireless charging chip is charged; in response to the wireless charging chip being in a working state, starting a timer, wherein the timer is a periodic timer; and obtaining the first voltage and the second voltage.
[0013] In this implementation, when the wireless charging chip is in working state, there may be reverse leakage. At this time, it is necessary to pay attention to the first voltage and the second voltage to achieve timely protection. At the same time, the detection of the first voltage and the second voltage can be triggered regularly by using the periodic timer, that is, it can regularly detect whether it is in a reverse leakage state, thereby improving the stability of the wireless charging system.
[0014] In an optional implementation, before obtaining the first voltage at the input end of the voltage stabilizing module and the second voltage at the output end of the voltage stabilizing module, it also includes: detecting whether the wireless charging chip is in an upgrade state, wherein the upgrade state includes that the wireless charging chip is updating the firmware version; in response to the wireless charging module being in an upgrade state, stopping obtaining the first voltage and the second voltage; in response to the wireless charging module not being in an upgrade state, starting to obtain the first voltage and the second voltage.
[0015] In this implementation, since the wireless charging chip will have the same voltage state as the reverse leakage when it is in the upgrade state, in order to avoid misjudgment and affect the upgrade process, it is possible to prioritize whether the wireless charging chip is in the upgrade state, thereby improving the stability of the wireless charging system.
[0016] In an optional implementation, in response to the difference being greater than a first threshold, the switch module is turned off, and the process also includes: confirming the type of protection device in the internal circuit of the voltage stabilizing module; detecting the temperature of the wireless charging chip; and selecting the corresponding first threshold according to the temperature and the type of protection device.
[0017] In this implementation, by confirming the type of protection device and paying attention to the temperature of the wireless charging chip in real time, it is possible to avoid ignoring the situation where the relationship between the first voltage and the second voltage changes due to the influence of temperature, thereby improving the accuracy of setting the first threshold and further improving the accuracy of the judgment of reverse leakage protection.
[0018] In an optional implementation, after selecting the corresponding first threshold according to the temperature and the type of the protection device, the method further includes: detecting the current of the wireless charging chip; and adjusting the first threshold according to the current.
[0019] In this implementation, since the magnitude of the current will also affect the relationship between the first voltage and the second voltage, the accuracy of the first threshold value can be further improved by further considering the influencing factors of the current.
[0020] In an optional implementation, in response to the difference being greater than a first threshold, the switch module is turned off, and then the method further includes: receiving a wireless charging signal from a wireless charging chip; and turning on the switch module for charging.
[0021] In this implementation, after the switch module is turned off during reverse leakage protection, in order not to affect the subsequent wireless charging process, the switch module can be turned on when the wireless charging signal of the wireless charging chip is received to achieve normal charging.
[0022] In a second aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a touch screen; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes various aspects and various implementation methods thereof.
[0023] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned aspects and methods of each implementation thereof.
[0024] In a fourth aspect, an embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the above-mentioned aspects and methods of each of its implementation methods.
[0025] In a fifth aspect, an embodiment of the present application further provides a chip system, which includes a processor for supporting the above-mentioned terminal device to implement the functions involved in the above-mentioned aspects, for example, generating or processing the information involved in the above-mentioned method. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0027] Figure 1 A simplified diagram of the matching state of a wireless charging base and an electronic device provided in an embodiment of the present application;
[0028] Figure 2 A simplified structural diagram of a wireless charging system and a battery provided in an embodiment of the present application;
[0029] Figure 3A schematic diagram of a wireless charging circuit structure provided in an embodiment of the present application;
[0030] Figure 4 A simplified structural diagram of a wireless charging system, a battery, and a control module provided in an embodiment of the present application;
[0031] Figure 5 A first exemplary flow chart of a reverse leakage protection method provided in an embodiment of the present application;
[0032] Figure 6 A flowchart of an exemplary method for obtaining a first voltage and a second voltage provided in an embodiment of the present application;
[0033] Figure 7 A second exemplary flow chart of a reverse leakage protection method provided in an embodiment of the present application;
[0034] Figure 8 A flowchart of an exemplary method for selecting a first threshold value provided in an embodiment of the present application;
[0035] Fig. 9 A voltage-current-temperature relationship diagram of a diode provided in an embodiment of the present application;
[0036] Fig.10 A first exemplary method flow chart of shutting down a switch module provided in an embodiment of the present application;
[0037] Fig.11 A second exemplary method flow chart of shutting down a switch module provided in an embodiment of the present application;
[0038] Fig.12 A third exemplary flow chart of a reverse leakage protection method provided in an embodiment of the present application;
[0039] Fig.13 A schematic structural diagram of a device for a reverse leakage protection method provided in an embodiment of the present application.
[0040] Description of reference numerals:
[0041] 1-wireless charging chip; 11-receiving coil; 12-diode; 13-capacitor; 14-voltage stabilizing module; 2-switch module; 3-battery; 4-step-down module; 5-control module; 100-electronic device; 200-wireless charging base; 201-transmitting coil. DETAILED DESCRIPTION
[0042] The technical solution of the embodiment of the present application will be clearly described below in conjunction with the drawings in the embodiment of the present application.
[0043] Figure 1A simplified diagram of the matching state of a wireless charging base 200 and an electronic device 100 provided in an embodiment of the present application.
[0044] See also Figure 1 , there is a transmitting coil in the wireless charging base 200, and the wireless charging system in the electronic device 100 has a receiving coil. The transmitting coil can be electromagnetically induced with the receiving coil to achieve current conduction to achieve the wireless charging function. During use, the user can place the electronic device 100 on the wireless charging base 200 to achieve wireless charging. The transmitting coil in the wireless charging base 200 sends an electromagnetic signal to the outside world under the action of power. The wireless charging chip in the electronic device 100 has a receiving coil. When the electronic device 100 is close to the wireless charging base 200, the receiving coil receives the electromagnetic signal and converts the electromagnetic signal into current, thereby achieving the purpose of wireless charging. At this time, current is generated in the wireless charging chip and is in a working state. When the user does not need to charge, the electronic device 100 can be moved away from the wireless charging base 200. This will cause the receiving coil to gradually move away from the transmitting coil, resulting in it being unable to receive the electromagnetic signal emitted by the transmitting coil, thereby causing charging to be terminated. When the electronic device 100 is away from the wireless charging base 200 , the wireless charging system in the electronic device 100 stops working, the wireless charging chip is also in a non-working state, and no current flows through the wireless charging chip.
[0045] Figure 2 A simplified structural diagram of a wireless charging system and a battery provided in an embodiment of the present application.
[0046] like Figure 2 As shown in the figure, in a normal charging state, the receiving coil in the wireless charging chip 1 will receive an electromagnetic signal, thereby generating a current. The current will be transmitted from the wireless charging chip to the battery, thereby achieving charging. In the specific implementation process, a switch module 2 and a step-down module 4 will also be set between the wireless charging chip 1 and the battery 3. When the current in the wireless charging chip 1 flows into the battery 3 through the switch module 2 in the turned-on state, as shown in FIG. Figure 2In the a channel of the wireless charging system, the switch module 2 can realize high voltage power supply, so that a large current can be generated in the a channel, so as to realize fast charging of the battery 3 through the large current, that is, the a channel is the fast charging channel of the wireless charging system. The switch module 2 can proportionally adjust the voltage from the wireless charging chip 1 to obtain the voltage required for fast charging of the battery 3, so as to realize high current charging. Specifically, the adjustment ratio of the switch module 2 is various, such as 2:1 or 4:1, etc. It can adjust the large voltage from the wireless charging chip 1 to a small voltage according to the ratio of 2:1 or 4:1 to output to the battery 3. For example, if the output voltage of the wireless charging chip 1 is 8V, after conversion by the switch module 2, a voltage of 4V can be obtained and output to the battery 3; or if the output voltage of the wireless charging chip 1 is 10V, after conversion by the switch module 2, a voltage of 2.5V can be obtained and output to the battery 3. In order to protect the battery 3, a small current can be selected for charging at the initial stage of charging the battery 3 and when the voltage of the battery 3 reaches a certain condition. At this time, the current in the wireless charging chip 1 can flow into the battery via the step-down module 4. Figure 2 Channel b in the circuit can realize the charging process of pre-charging or constant voltage charging of the battery.
[0047] When not charging, there is no current in the wireless charging chip 1 and it is in a non-working state. At this time, there is no current flowing through the a channel and the b channel, and the battery is in a normal state of discharging to the outside.
[0048] Figure 3 A schematic diagram of the circuit structure of a wireless charging system provided in an embodiment of the present application.
[0049] like Figure 3 The circuit structure shown in FIG. 1 is a schematic diagram of the circuit structure inside the wireless charging base 200. Figure 3 Only the transmitting coil 201 structure is shown, and the other components are not shown. The circuit in the right area is a simplified diagram of the circuit structure of the wireless charging system inside the electronic device 100, and only part of the circuit structure is shown. The coil in the left area is the transmitting coil 201, and the coil in the right area is the receiving coil 11. The current received by the receiving coil 11 is alternating current, and it needs to be converted into direct current before outputting the current to the battery. An AC-DC conversion circuit is also provided between the receiving coil 11 and the voltage stabilizing module 14 to convert the alternating current from the receiving coil 11 into direct current. Among them, Figure 3The AC / DC conversion circuit in the wireless charging system includes a diode 12 with a unidirectional conduction function and a capacitor 13. In other wireless charging systems, the AC / DC conversion circuit can also be composed of other circuits. The voltage of the DC power after the AC / DC conversion circuit is unstable and will fluctuate. If the fluctuating voltage is directly output to the battery 3, it will damage the battery 3 and affect the charging efficiency of the battery 3. Therefore, a voltage stabilizing module 14 is also provided in the circuit structure. The voltage at the input terminal A of the voltage stabilizing module 14 is the fluctuating voltage after conversion by the AC / DC conversion circuit, and the fluctuating voltage comes from the receiving end coil 11. When the fluctuating voltage is input to the voltage stabilizing module 14, the feedback resistor, error amplifier and other devices in the voltage stabilizing module 14 output a stable voltage. At this time, the stable voltage at the output terminal B has a certain voltage drop compared to the fluctuating voltage at the input terminal A, and the voltage drop can be set manually. The above-mentioned receiving end coil 11, AC / DC conversion circuit and voltage stabilizing module 14 all belong to the circuit structure in the wireless charging chip 1.
[0050] The voltage stabilizing module 14 outputs a stable voltage to the switch module 2 , and the switch module 2 proportionally adjusts the stable voltage and outputs the adjusted voltage to the battery 3 , thereby realizing fast charging of the battery 3 .
[0051] It is worth noting that in the pre-charge or constant voltage charging channel, Figure 3 The switch module 2 in the embodiment is adjusted to a step-down module or other modules. In this embodiment, the small current charging channel is not specifically described.
[0052] It is worth noting that in the wireless charging system, the voltage stabilizing module 14 in the wireless charging chip 1, as well as the switch module 2 and the voltage step-down module 4 all have a certain voltage step-down effect. The voltage stabilizing module 14 is designed to convert the fluctuating voltage into a stable voltage. At this time, a certain voltage drop needs to be set to remove the fluctuating voltage and output a specified stable voltage. The voltage step-down in the switch module 2 is to achieve high-current charging, combined with the charging protocol in the switch module 2, to achieve fast charging. The voltage step-down in the voltage step-down module 4 is to achieve low-current charging. In order to achieve the working requirements of low current in the pre-charging and constant-voltage charging stages, the voltage from the wireless charging chip is processed by the voltage step-down module 4 to protect the battery while achieving fast charging.
[0053] As can be seen from the above, the current source of the wireless charging chip 1 is the wireless charging base 200. When charging is not needed, the electronic device 100 will be away from the wireless charging base 200. At this time, the distance between the transmitting end coil 201 and the receiving end coil 11 is relatively far, resulting in the inability to generate electromagnetic induction, so that charging will not be performed, and there will be no current in the wireless charging chip 1. However, since the switch module 2 has a bidirectional conduction function when it is turned on, that is, the current can flow from the wireless charging chip 1 to the battery 3 through the switch module 2, and can also flow from the battery 3 to the wireless charging chip 1 through the switch module 2. When the electronic device 100 is away from the wireless charging base 200, that is, when the wireless charging system is not in a charging state, the voltage in the battery 3 may be fed back into the wireless charging chip 1 through the switch module 2, causing the wireless charging chip 1 to be charged, that is, there is current passing through the wireless charging chip 1, and the wireless charging chip 1 is still in a working state. Among them, the working state of the wireless charging chip 1 means that the wireless charging chip 1 is charged, and the non-working state of the wireless charging chip 1 means that the wireless charging chip 1 is not charged. As Figure 2 When the current flows along the c channel in the wireless charging system, the wireless charging chip 1 that was not in the working state will be charged, causing the wireless charging chip 1 to be in the working state. However, this working state is abnormal, that is, the wireless charging chip 1 that does not need to be charged to work is in the charged working state, which will affect the service life of the wireless charging chip 1 and the working stability of the wireless charging system. In addition, since the battery 3 does not need to supply power to the wireless charging chip 1 during normal discharge, the occurrence of reverse leakage will increase the number of devices that need to be powered by the battery 3, seriously affecting the normal battery life of the electronic device 100.
[0054] In order to solve the above problems, the embodiment of the present application provides a reverse leakage protection method, which can be applied to wireless charging systems and electronic devices with wireless charging systems, such as: mobile phones, tablet computers, smart wearable devices, personal digital assistants (PDAs), augmented reality (AR) and virtual reality (VR) devices, vehicle-mounted devices and other electronic devices. The electronic device can also be wireless charging electric vehicles, wireless charging household appliances, wireless charging headphones, drones and other electronic products. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device.
[0055] Figure 4 A simplified structural diagram of a wireless charging system, a battery, and a control module provided in an embodiment of the present application.
[0056] See also Figure 4, the electronic device 100 may further include a control module 5, which may be a processor in a wireless charging system, or a processor in a battery management system in a battery module, such as a microprocessor (Microcontroller Unit, MCU), or may also be a processor in a main system of an electronic device, such as a system on chip (System on Chip, SoC). In addition, the processor may also be an application processor (Application Processor, AP), a controller, and the like. The reverse leakage protection method provided in this embodiment may be applied to the main system architecture of an electronic device, or to the architecture of a wireless charging system or a battery management system. It is understandable that each step of the method provided in this embodiment can be processed using the control module 5.
[0057] Figure 5 The first exemplary flow chart of a reverse leakage protection method provided in an embodiment of the present application.
[0058] like Figure 5 As shown, in one embodiment, the method may include the following steps:
[0059] Step S200: obtaining a first voltage at an input end of a voltage stabilizing module and a second voltage at an output end of the voltage stabilizing module.
[0060] In this embodiment, since the wireless charging system is in a normal working state, the first voltage at the input end of the voltage stabilizing module will be greater than the second voltage at the output end. However, when reverse leakage occurs, the magnitude relationship between the first voltage and the second voltage will change. Therefore, the control module can obtain the first voltage at the input end of the voltage stabilizing module and the second voltage at the output end of the voltage stabilizing module, and the control module determines whether reverse leakage occurs in the wireless charging system based on the magnitude relationship between the first voltage and the second voltage.
[0061] It is worth noting that, combined with Figure 3 , the input and output of the above-mentioned voltage stabilizing module are the input and output of the wireless charging system in a normal charging state. The first voltage of the input terminal A of the voltage stabilizing module comes from the voltage converted by the charging coil (receiving coil) through the AC-DC conversion circuit. The second voltage of the output terminal B of the voltage stabilizing module is the voltage of the input terminal after the voltage is dropped by the voltage stabilizing module and the output voltage is stabilized. In a normal charging state, the second voltage is less than the first voltage. In the event of reverse leakage, the input and output of the voltage stabilizing module will change, but the first voltage and the second voltage will remain the same. Figure 3 The voltage at point A and the voltage at point B in the diagram.
[0062] In a feasible implementation, some wireless charging chips will detect and record relevant parameters in real time during operation, and the above-mentioned first voltage and second voltage will also be detected and recorded. In order to avoid adding circuit structure, the control module can directly read the first voltage and second voltage recorded by the wireless charging chip. The wireless charging chip can record the relevant data in its own integrated memory, and the control module can send a request to read the instruction to the memory to read the first voltage and the second voltage. Alternatively, the wireless charging chip can also store the relevant data in the memory of the wireless charging system or the memory of the electronic device. At this time, the control module can send a request to read the instruction to the memory of the wireless charging system or the electronic device to obtain the first voltage and the second voltage.
[0063] Exemplarily, the wireless charging chip can detect its relevant parameters, including the first voltage and the second voltage, at regular intervals, and store the data in a memory. When the control module reads the first voltage and the second voltage, the first voltage and the second voltage in the memory can also be read at regular intervals. Specifically, the wireless charging chip can detect relevant parameters and store data every second; when the control module reads, it can read every second, or every two seconds, or even longer. That is, during the reading process of the control module, all the data stored in the memory can be read, or it can be read at intervals, which is not limited in this embodiment.
[0064] In another feasible implementation, the control module can respectively set voltage detection modules at both ends of the voltage stabilizing module to detect the first voltage and the second voltage, thereby obtaining the first voltage and the second voltage. Compared with the control module directly reading the data detected by the wireless charging chip, this implementation requires the setting of an additional circuit structure, which will increase the complexity of the circuit. However, it can reduce the requirements for the control of instructions and the interaction between different devices.
[0065] Figure 6 A flowchart of an exemplary method for obtaining a first voltage and a second voltage is provided in an embodiment of the present application.
[0066] See also Figure 6 Furthermore, the above step S200 may include the following method:
[0067] Step S210: Detect whether the wireless charging chip is in working state.
[0068] Among them, the working state includes the wireless charging chip being charged. Because the wireless charging chip is in a charged state in a normal working state, that is, current flows through it; when it is normally not working, it is not charged, that is, no current flows through it. However, when the wireless charging system is in a reverse leakage state, the wireless charging chip will also be charged, and the wireless charging chip is in an abnormal working state. At this time, the control module of the electronic device will mistakenly think that the wireless charging system is in the charging process and cannot find that it is in an abnormal working state. That is, when the wireless charging chip is charged, it is necessary to determine whether the wireless charging system is in a reverse leakage state.
[0069] For example, the wireless charging chip can be connected to the control module, and the connection can be a two-wire serial bus (Inter-Integrated Circuit, I 2 C) connection, or wireless communication connection. 2 C bus connection, when the charging coil of the wireless charging chip approaches the transmitting coil, a current will be generated inside the wireless charging chip, which will make I 2 The level of the C bus fluctuates. That is, at this time, the control module can detect that the wireless charging chip is in working state, that is, in a charged state, according to the change of the level. If wireless communication connection is adopted, when current is generated inside the wireless charging chip, the wireless charging chip can send an electrical signal or other identification signal to the control module. After receiving the signal, the control module can obtain the status of the wireless charging chip through analysis.
[0070] Step S220: In response to the wireless charging chip being in working state, start the timer.
[0071] In this embodiment, when the wireless charging chip is in working state, it corresponds to two situations: normal charging process and abnormal charging process. Therefore, in order to distinguish the above two situations, it is necessary to start a timer, wherein the timer can be a periodic timer, for example: it times out periodically with a preset time length, so as to periodically determine whether the wireless charging chip is in an abnormal working state, and timely discover the reverse leakage situation.
[0072] The timer may be a hardware timer set inside the control module, such as a timer switch, or a software timer, such as a timer program instruction. The timer may be periodic, and may call a function or calculate an expression according to a specified period, thereby realizing periodic timing.
[0073] It is worth noting that the timing period of the above-mentioned periodic timer can be set according to actual needs and is not limited in this embodiment.
[0074] Step S230: obtaining a first voltage and a second voltage.
[0075] In this embodiment, after the control module establishes a communication connection with the wireless charging chip, the control module can directly read the first voltage and the second voltage data in the wireless charging chip to provide data support for subsequent judgment.
[0076] It is worth noting that the above-mentioned establishment of communication connection can be to establish communication connection between the wireless charging chip and the control module when the working state of the wireless charging chip is detected. 2 C bus, the communication connection can be re-established. The communication connection can be a data protocol connection that meets the matching requirements, or other connections that can transmit signals, instructions or data; it can realize the transmission of signals, instructions and data through only one connection channel, or through multiple channels. The specific connection method is not limited in this embodiment.
[0077] Figure 7 A second exemplary flow chart of a reverse leakage protection method provided in an embodiment of the present application.
[0078] See also Figure 7 In this embodiment, in addition to the situation that the second voltage is greater than the first voltage due to the instability of the electromagnetic signal, when the wireless charging chip is in the upgrade state, that is, when the firmware version of the wireless charging chip is updated, due to the instability of the voltage, the second voltage may be greater than the first voltage for several seconds or even more than ten seconds during the upgrade process. Therefore, in order to avoid affecting the upgrade state of the wireless charging chip, before the above step S200, the following steps are also included:
[0079] Step S110: Detect whether the wireless charging chip is in an upgrade state.
[0080] The upgrade status includes that the wireless charging chip is updating the firmware version. When certain functions are added to the wireless charging system, such as displaying the battery temperature, the wireless charging chip can be upgraded to increase the functions of the wireless charging system. Alternatively, when some problems occur in the wireless charging system, such as unstable charging voltage, the problem can be fixed by upgrading the wireless charging chip firmware.
[0081] Specifically, when the wireless charging chip is upgraded, the wireless charging chip can be set to send an identification signal to the control module, and the control module receives the identification signal and parses it to obtain the status of the wireless charging chip. The identification signal can also be other signals. Alternatively, the control module can send a detection instruction to the wireless charging chip, and when the wireless charging chip receives the instruction and is in an upgraded state, it can reply a signal to the control module; if the wireless charging chip receives the instruction and is in an upgraded state, it can reply another instruction to the control module or not reply, so as to confirm whether the wireless charging chip is in an upgraded state.
[0082] Step S120: In response to the wireless charging chip being in an upgrade state, stop acquiring the first voltage and the second voltage.
[0083] In this embodiment, when the wireless charging chip is in the upgrade state, the first voltage and the second voltage may be stopped from being acquired, that is, the reverse leakage state is not determined, so as to avoid affecting the upgrade process.
[0084] For example, when the control module receives a signal that the wireless charging chip is in an upgraded state, the control module may stop requesting the wireless charging chip to read the first voltage and the second voltage. Alternatively, the wireless charging chip may automatically shut down the instruction when receiving a signal that the wireless charging chip is in an upgraded state, so as to avoid misjudgment.
[0085] Step S130: In response to the wireless charging chip not being in an upgraded state, start acquiring the first voltage and the second voltage.
[0086] In this embodiment, when the wireless charging chip is not in the upgraded state, it is necessary to monitor the reverse leakage state of the wireless charging system, so it is necessary to obtain the first voltage and the second voltage.
[0087] For example, when the control module receives a signal that the wireless charging chip is not in an upgraded state, the control module may start to request the wireless charging chip to read the first voltage and the second voltage. Alternatively, the signal that the wireless charging chip replies that it is not in an upgraded state may automatically trigger the instruction to determine whether reverse leakage occurs.
[0088] Step S400: calculating the difference between the second voltage and the first voltage.
[0089] In this embodiment, when the wireless charging system is in a reverse leakage state, the second voltage may be greater than the first voltage. At this time, by calculating the difference between the second voltage and the first voltage, that is, calculating the value of the second voltage minus the first voltage, on the one hand, it is possible to determine whether the second voltage is greater than the first voltage based on the positive or negative value of the difference; on the other hand, in the subsequent judgment of the reverse leakage situation, the difference needs to be used as a judgment basis.
[0090] Exemplarily, the above calculation process can be implemented by a function of the control module, or by a calculator of the control module. In this embodiment, the calculation method is not limited. At the same time, the result obtained after the calculation can be stored in a specified location for subsequent reading. Or the control module can directly send it to the subsequent processing module, thereby saving storage space. Alternatively, it can be stored and sent at the same time, and archiving can be achieved while supporting subsequent work, so as to facilitate reading and analysis when needed.
[0091] Step S600: in response to the difference being greater than a first threshold, turning off the switch module.
[0092] Among them, the first threshold is greater than zero. The first threshold can be set artificially, and can be used to determine whether the difference between the second voltage and the first voltage meets the benchmark for reverse leakage. In order to avoid the influence of reverse current on devices such as the error amplifier, a protection device with a reverse conduction function is also provided inside the voltage stabilizing module. The setting of the protection device can make the current flow from the original output terminal B of the voltage stabilizing module to the original input terminal A through the protection device, thereby realizing reverse leakage protection for the voltage stabilizing module. However, since the protection device has a certain voltage drop effect, the original input terminal voltage of the voltage stabilizing module will be lower than the original output terminal voltage. Therefore, this phenomenon can be used to determine whether the wireless charging chip has reverse leakage, and the first threshold can be selected based on the size of the voltage drop.
[0093] In this embodiment, when the calculated difference is greater than the first threshold, it indicates that the wireless charging system is in a reverse leakage state. At this time, the control module needs to turn off the switch module to shut down the reverse leakage circuit, thereby achieving effective protection of the circuit and related devices in the wireless charging system (such as a wireless charging chip).
[0094] Exemplarily, the above-mentioned comparison of the difference value with the first threshold value can be implemented by a comparator of the control module, or by a function in the control module, which is not limited in this embodiment. At the same time, the difference value and the first threshold value can both be read from a specified position by the control module, that is, the difference value and the first threshold value can be stored in advance at a specified position and read by the control module. Or the difference value and the first threshold value can be obtained in the aforementioned process and sent directly to the comparator for comparison, which is not limited in this embodiment.
[0095] It is worth noting that, although reverse leakage may occur when the second voltage is greater than the first voltage, it cannot be judged solely based on the magnitude relationship between the second voltage and the first voltage. Because, when the wireless charging system is performing normal charging, due to the difference in output capacity between different wireless charging bases, and in the process of bringing the electronic device close to and away from the wireless charging base, the electromagnetic signal is not stable, which may trigger the second voltage to be greater than the first voltage. If the control module determines that the wireless charging system is in a state of reverse leakage at this time and turns off the switch module, the normal charging work will be interrupted, affecting the working stability of the wireless charging system. Based on this, the protection against reverse leakage cannot be established on the premise of destroying the normal charging work. In order to avoid misjudgment, by using the control module to compare the difference and the magnitude relationship between the first threshold, the reliability of the reverse leakage state judgment can be effectively improved to avoid affecting the normal charging work of the wireless charging system and effectively improve the working stability of the wireless charging system.
[0096] Figure 8 A flowchart of a first exemplary method for selecting a first threshold provided in an embodiment of the present application.
[0097] See also Figure 8 In some embodiments, since the selection of the first threshold value will directly affect the determination of subsequent results, a suitable first threshold value can improve the accuracy of the determination result.
[0098] Before the above step S600, the following method may also be included:
[0099] Step S510: confirming the type of protection device of the internal circuit of the voltage stabilizing module.
[0100] Among them, the type of protection device can be a diode of different materials, such as a silicon diode, a germanium diode, etc., or it can also be other unidirectional conduction devices, such as a metal-oxide-semiconductor field-effect transistor (MOSFET), etc. Since the size of the difference between the second voltage and the first voltage will be affected by the characteristics of the protection device itself, the characteristics can refer to the type and material of the protection device. Different protection devices have different voltage drops, and the difference between the second voltage and the first voltage will also change. For example, when the protection device is a diode, the voltage drop of diodes of different materials is different. The forward conduction voltage drop of a silicon diode is about 0.7V, while the forward conduction voltage drop of a germanium diode is about 0.3V. When different protection devices are reversely conducted, the reverse voltage drop they generate is also different. Therefore, when selecting the first threshold, it is necessary to first consider the characteristics of the protection device in the voltage stabilizing module.
[0101] Exemplarily, the type of the protection device in the voltage stabilizing module is fixed when the electronic device leaves the factory, and the relevant parameters are recorded in the wireless charging chip. Therefore, the control module can directly confirm the type of the protection device to the wireless charging chip to facilitate the selection of an appropriate first threshold.
[0102] Step S520: Detect the temperature of the wireless charging chip.
[0103] In this embodiment, in addition to the inherent characteristics of the protection device affecting the magnitude of the voltage drop, the circuit temperature also affects the magnitude of the voltage drop. Therefore, after obtaining the difference, the control module is required to detect the temperature of the wireless charging chip and select an appropriate first threshold value according to the temperature, thereby improving the accuracy of the comparison result.
[0104] Specifically, the wireless charging chip itself can have a temperature detection function, that is, it can integrate components such as temperature sensors, so that the control module can detect its temperature in real time. In this case, the control module can directly read the temperature of the wireless charging chip. Alternatively, an additional temperature sensor can be provided and coupled to the control module, so that the temperature of the wireless charging chip can be directly obtained.
[0105] Step S530: selecting a corresponding first threshold according to the temperature and the type of the protection device.
[0106] In this embodiment, in order to improve the accuracy of the comparison result, the voltage drop at different temperatures can be confirmed for different protection devices, thereby forming a corresponding relationship between the first thresholds of different protection devices at different temperatures, which can be formed into a corresponding table and stored in the memory to facilitate reading when selecting the first threshold, thereby improving the accuracy of the reverse leakage state judgment, and further improving the working stability of the wireless charging system.
[0107] In an optional implementation, the voltage drop of a specified type of protection device at different temperatures can be measured in advance, and the corresponding first threshold value can be set. The first threshold values corresponding to different types of protection devices are counted, and a corresponding relationship table is formed and stored in the control module. When the control module obtains the type of protection device and the temperature of the wireless charging chip, the corresponding first threshold value is obtained by looking up the table to obtain the first threshold value in this state.
[0108] Furthermore, the above method may also include:
[0109] Step S540: Detect the current of the wireless charging chip.
[0110] It is worth noting that the current detection method in the wireless charging chip can refer to the method for obtaining the first voltage and the second voltage, or can refer to the method for detecting the temperature of the wireless charging chip, which will not be repeated here.
[0111] Step S550: adjusting the first threshold according to the current.
[0112] In this embodiment, in addition to the above-mentioned characteristics of the protection device and the temperature affecting the voltage drop, the current will also affect the voltage drop, that is, the voltage drop will be affected by the temperature of the wireless charging chip and the conduction current of the protection device. In order to select a more accurate first threshold, devices with large charging and discharging currents (such as mobile phones, tablet computers, etc.) can also take the current factor into consideration. Fig. 9 As shown, Fig. 9 The figure shows the corresponding relationship between the current and voltage of a diode at different temperatures. The horizontal axis is the diode's conduction voltage, in V; the vertical axis is the diode's conduction current, in mA. Specifically, Fig. 9 It shows that the on-state voltage, that is, the voltage drop of the diode is different at different currents at 60°C. For example, when the current is 10mA, the on-state voltage (voltage drop) is 0.6V; when the current is 40mA, the on-state voltage (voltage drop) is 0.7V. Fig. 9 The corresponding relationship between the current and the conduction voltage of the diode at 25℃ and -20℃ is also shown.
[0113] It is understandable that in some cases, such as when the electronic device is a smart wearable device, the charging and discharging current is relatively small, on the order of several hundred milliamperes. Taking into account the workload and implementation cost, etc., only the influence of temperature factors can be considered. In this embodiment, the specific implementation of the above steps is not limited.
[0114] Fig.10 A first exemplary method flow chart of shutting down a switch module provided in an embodiment of the present application.
[0115] See also Fig.10 In one example, the above step S600 may include the following method:
[0116] Step S610: Compare the difference value with a first threshold value to obtain a comparison result, the comparison result including a first result and a second result, the first result including a difference value greater than the first threshold value, and the second result including a difference value less than or equal to the first threshold value.
[0117] In this embodiment, after obtaining the difference between the second voltage and the first voltage, the control module compares the difference with the first threshold value. If the difference is greater than the first threshold value, the control module records the comparison result as the first result; if the difference is less than or equal to the first threshold value, the control module records the comparison result as the second result, thereby facilitating subsequent judgment.
[0118] Exemplarily, a comparator may be used to compare the difference with a first threshold value, and the comparison result may be recorded. When the difference is greater than the first threshold value, the control module may record the comparison result as a first result, which may be an identification signal, such as a high level, or may be recorded as 1; when the difference is less than or equal to the first threshold value, the control module may record the comparison result as a first result, which may be another identification signal, such as a low level, or may be recorded as 0.
[0119] Step S620: In response to the first occurrence of the first result, the number of consecutive occurrences of the first result is recorded.
[0120] In this embodiment, when the first result appears for the first time, there is a high probability that reverse leakage occurs. Therefore, after the first result appears, the control module needs to continue to pay attention to the voltage data, and after continuous comparison, record the number of times the first result appears.
[0121] Specifically, when the first result appears for the first time, the control module may use the signal of the first result to trigger the number recorder to start counting the first result.
[0122] Step S630: in response to the first result continuously appearing for a number of times greater than the first number, turning off the switch module.
[0123] In this embodiment, since the first result may occur in unexpected circumstances or during normal charging operation, in order to further improve the determination of the reverse leakage state, the control module limits the number of consecutive occurrences of the first result to be greater than the first number, and then it can be considered that a reverse leakage state has occurred. At this time, the switch module can be turned off to protect the wireless charging system.
[0124] Specifically, when counting the first result, the control module can accumulate it one by one, and when the number is greater than the first number, trigger a shutdown signal to shut down the switch module. The first number is a set reference number, and when the counted number is greater than the reference number, it can be determined that the wireless charging system is in a reverse leakage state.
[0125] Step S640: In response to the number of consecutive occurrences of the first result being less than or equal to the first number, the number is cleared.
[0126] In this embodiment, if the number of consecutive occurrences of the first result is less than or equal to the first number, it means that the wireless charging system does not have reverse leakage. Therefore, the control module can clear the record of this number to avoid affecting the next determination.
[0127] Specifically, when counting the first result, the control module can continuously accumulate, and when the number is less than or equal to the first number, a reset signal is triggered, and the control module can reset the count. In the process of continuously counting the first result, if the second result appears, the control module stops counting. At this time, the number when counting stops is compared with the first number.
[0128] Fig.11 A second exemplary method flow chart of shutting down a switch module provided in an embodiment of the present application.
[0129] See also Fig.11 In another example, in addition to the above method, the above step S600 can also be implemented by the following method, including:
[0130] Step S650: Compare the difference value with the first threshold value to obtain a comparison result, the comparison result including a first result and a second result, the first result including a difference value greater than the first threshold value, and the second result including a difference value less than or equal to the first threshold value.
[0131] In this embodiment, after obtaining the difference between the second voltage and the first voltage, the control module compares the difference with the first threshold value. If the difference is greater than the first threshold value, the control module records the comparison result as the first result; if the difference is less than or equal to the first threshold value, the control module records the comparison result as the second result, thereby facilitating subsequent judgment.
[0132] Exemplarily, a comparator may be used to compare the difference with a first threshold value, and the comparison result may be recorded. When the difference is greater than the first threshold value, the control module may record the comparison result as a first result, which may be an identification signal or may be recorded as 1; when the difference is less than or equal to the first threshold value, the control module may record the comparison result as a first result, which may be another identification signal or may be recorded as 0.
[0133] Step S660: In response to the first occurrence of the first result, the duration of continuous occurrence of the first result is recorded.
[0134] In this embodiment, when the first result appears for the first time, there is a high probability that reverse leakage occurs. Therefore, after the first result appears, the control module needs to continue to pay attention to the voltage data, and after continuous comparison, record the duration of the first result.
[0135] Specifically, when the first result appears for the first time, the control module can use the signal of the first result to trigger the timer to start timing the first result and obtain the duration of the continuous appearance of the first result, wherein, during the continuous timing of the first result, if the second result appears, the timing is stopped. At this time, the duration when the timing is stopped is compared with the first duration.
[0136] Step S670: In response to the first result continuously appearing for a time period greater than a first time period, turning off the switch module.
[0137] In this embodiment, in unexpected circumstances, there is also a probability that the first result will occur during normal charging operation. In order to further improve the determination of the reverse leakage state, the control module limits the duration of continuous appearance of the first result to be greater than the first duration. In this case, it can be considered that a reverse leakage situation has occurred. At this time, the switch module can be turned off to protect the wireless charging system.
[0138] Specifically, when timing the first result, the control module can accumulate time by time, and when the time length is greater than the first time length, trigger a shutdown signal to turn off the switch module. The first time length is a set reference time length, and when the timing time length is greater than the reference time length, it can be determined that the wireless charging system is in a reverse leakage state.
[0139] Step S680: In response to the first result continuously appearing for a time period that is less than or equal to the first time period, the time period is cleared.
[0140] In this embodiment, if the duration for which the first result appears continuously is less than or equal to the first duration, it indicates that the wireless charging system does not have reverse leakage. Therefore, the control module may clear the record of the duration to avoid affecting the next determination.
[0141] Specifically, when timing the first result, the control module may continuously accumulate, and when the duration is less than or equal to the first duration, a reset signal is triggered, and the control module may reset the count.
[0142] It is worth noting that the above-mentioned steps S610-S640 and steps S650-S680 are two ways of processing the comparison results. In actual application, one of them can be selected, or both can be selected in parallel. At this time, any one of them can be determined to be in a reverse leakage situation if it meets the conditions, or both can be determined only if they meet the conditions. In this embodiment, the application of the above-mentioned steps S610 to S680 is not limited.
[0143] It can be understood that when determining the number of consecutive appearances of the first result and the length of time the first result appears continuously, the timing period of the above-mentioned periodic timer should be able to cover the entire comparison process to avoid the next determination being triggered before a complete comparison process is completed, thereby failing to complete a complete comparison process normally.
[0144] In some embodiments, after step S600, the method further includes:
[0145] Step S710: receiving a wireless charging signal from a wireless charging chip.
[0146] In this embodiment, since the normal charging process cannot be performed after the switch module is turned off, the wireless charging chip can send a wireless charging signal to the control module when wireless charging is required.
[0147] Exemplarily, when the charging coil of the wireless charging chip is close to the transmitting end coil, a current will be generated in the wireless charging chip, and the current can be used to trigger a wireless charging signal and send it to the control module.
[0148] Step S720: Turn on the switch module to start charging.
[0149] In this embodiment, after the control module receives the wireless charging signal, the control module may turn on the switch module to implement a normal charging process and improve the working stability of the wireless charging system.
[0150] After receiving the wireless charging signal, the control module can trigger the action of turning on the switch module, thereby turning on the switch module.
[0151] Fig.12 A third exemplary flow chart of a reverse leakage protection method provided in an embodiment of the present application.
[0152] See also Fig.12 The following will give examples and introduce the application of the above method in combination with specific processes:
[0153] When the control module performs reverse leakage detection on the wireless charging system, it first needs to determine whether the wireless charging chip is in an upgraded state. If the wireless charging chip is in an upgraded state, reverse leakage detection is not performed; if the wireless charging chip is not in an upgraded state, reverse leakage detection is started. The specific process includes:
[0154] The control module determines whether the wireless charging chip is in a working state. If the wireless charging chip is not in a working state, the detection ends. If the wireless charging chip is in a working state, the next step is performed.
[0155] First, the control module needs to check each component of the wireless charging system to confirm the wireless charging stage and wireless charging parameter configuration. The above wireless charging stage can be divided into a constant voltage stage and a pre-charging stage for low current charging and a constant current charging stage for high current charging. In the above charging stage, reverse leakage will occur in the conduction channel of constant current charging.
[0156] After the above basic inspection work is completed, the periodic timer is started, wherein the timing period of the periodic timer can be adjusted according to the judgment conditions required for the subsequent first result.
[0157] The cycle timer triggers the reverse leakage detection every other cycle, including:
[0158] The control module establishes a communication connection with the wireless charging chip to facilitate reading of existing data inside the wireless charging chip. The first voltage and the second voltage at both ends of the voltage stabilizing module are obtained to facilitate subsequent difference calculation.
[0159] The control module calculates the difference between the second voltage and the first voltage, and compares the difference with the first threshold. If the difference is less than or equal to the first threshold, the comparison result is the second result, and the detection process ends; if the difference is greater than the first threshold, the comparison result is the first result, and the first result is recorded.
[0160] In one case, the control module continuously records the number of times the first result appears. If the number of times the first result appears is greater than the first number, it can be determined that it is in a reverse leakage state. At this time, the control module needs to turn off the switch module; if the number of times the first result appears is less than or equal to the first number, it can be determined that it is not in a reverse leakage state, and the detection process ends.
[0161] It is worth noting that the above-mentioned first number can be 3 times, 4 times, 5 times, etc., which is not limited in this embodiment.
[0162] In another case, the control module continuously records the duration of the appearance of the first result. If the duration of the appearance of the first result is greater than the first duration, it can be determined that it is in a reverse leakage state. At this time, the control module needs to turn off the switch module; if the duration of the appearance of the first result is less than or equal to the first duration, it can be determined that it is not in a reverse leakage state, and the detection process ends.
[0163] It is worth noting that the above-mentioned first duration can be 3s, 4s, 5s, etc., which is not limited in this embodiment.
[0164] Among them, when the first duration is 3s, the period of the periodic timer can be 4s, 6s, etc., which needs to cover the execution process of all steps after the timer is triggered to avoid failing to complete the judgment of the limited time within one cycle, affecting the judgment result.
[0165] In addition, in order to select a more accurate first threshold, before subtracting the second voltage from the first voltage, it is necessary to confirm the characteristics of the protection device in the voltage stabilization module, and it is also necessary to detect the temperature, current and other parameters of the wireless charging chip to select a suitable first threshold in combination with the voltage drop that matches the temperature and current.
[0166] It is worth noting that each process of comparing the difference with the first threshold is independent, so the value of the first threshold selected for each comparison can be different, that is, the first threshold can change with the change of parameters, thereby effectively improving the accuracy of the comparison result.
[0167] The embodiments provided in the present application above introduce the various schemes of the reverse leakage protection method provided in the present application. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0168] Fig.13 is a schematic diagram of a reverse leakage protection method provided by an embodiment of the present application. In one embodiment, the electronic device can be Fig.13 The hardware devices shown in the figure implement the corresponding functions. Fig.13 As shown, the device may include: a memory 702, a processor 703, and a power module 705. The above components may be connected via one or more communication buses.
[0169] In one embodiment, the processor 703 may include one or more processing units, for example, the processor 703 may include a system-on-chip SoC, an application processor AP, a controller, a microprocessor MCU, a power management chip, etc. Among them, different processing units may be independent devices or integrated into one or more processors. The memory 702 is coupled to the processor 703 and is used to store various software programs, capacitance data, etc. The memory 702 may include a volatile memory and / or a non-volatile memory.
[0170] The power module 705 may include a wired charging system 7051, a wireless charging system 7052 and a battery 7053, wherein the wired charging system 7051 is used to charge the battery 7053 through a conductive wire, and the wireless charging system 7052 is used to charge the battery 7053 using a wireless charging base. And the above-mentioned reverse leakage protection method is mainly applied to the wireless charging system 7052. The execution subject of the above-mentioned method can be a processor 703, or a processor in a battery management system; at the same time, the above-mentioned method can be stored in a memory 702, and can be stored in a memory integrated in a battery management system. In this embodiment, the execution subject and storage location of the above-mentioned method are not limited.
[0171] When the software program and / or multiple groups of instructions in the memory 702 are executed by the processor 703, the electronic device implements the following method steps: obtaining a first voltage at the input end of the voltage stabilizing module and a second voltage at the output end of the voltage stabilizing module; calculating the difference between the second voltage and the first voltage; in response to the difference being greater than a first threshold, turning off the switch module, wherein the first threshold is greater than zero.
[0172] When the software program and / or multiple groups of instructions in the memory 702 are executed by the processor 703, the electronic device specifically implements the following method steps: compare the difference with the first threshold to obtain a comparison result, the comparison result includes a first result and a second result, the first result includes a difference greater than the first threshold, and the second result includes a difference less than or equal to the first threshold; in response to the first occurrence of the first result, record the number of consecutive occurrences of the first result; in response to the number of consecutive occurrences of the first result being greater than the first number, turn off the switch module; in response to the number of consecutive occurrences of the first result being less than or equal to the first number, clear the number.
[0173] When the software program and / or multiple groups of instructions in the memory 702 are executed by the processor 703, the electronic device specifically implements the following method steps: compare the difference with the first threshold to obtain a comparison result, the comparison result includes a first result and a second result, the first result includes a difference greater than the first threshold, and the second result includes a difference less than or equal to the first threshold; in response to the first occurrence of the first result, record the duration of continuous occurrence of the first result; in response to the duration of continuous occurrence of the first result being greater than the first duration, turn off the switch module; in response to the duration of continuous occurrence of the first result being less than or equal to the first duration, clear the duration.
[0174] When the software program and / or multiple groups of instructions in the memory 702 are executed by the processor 703, the electronic device specifically implements the following method steps: detecting whether the wireless charging chip is in a working state, wherein the working state includes that the wireless charging chip is charged; in response to the wireless charging chip being in a working state, starting a timer, wherein the timer is a periodic timer; and obtaining a first voltage and a second voltage.
[0175] When the software program and / or multiple groups of instructions in the memory 702 are executed by the processor 703, the electronic device specifically implements the following method steps: detecting whether the wireless charging chip is in an upgrade state, wherein the upgrade state includes that the wireless charging chip is updating the firmware version; in response to the wireless charging module being in an upgrade state, stopping obtaining the first voltage and the second voltage; in response to the wireless charging module not being in an upgrade state, starting to obtain the first voltage and the second voltage.
[0176] When the software program and / or multiple groups of instructions in the memory 702 are executed by the processor 703, the electronic device also implements the following method steps: confirming the type of protection device in the internal circuit of the voltage stabilizing module; detecting the temperature of the wireless charging chip; and selecting a corresponding first threshold value according to the temperature and the type of protection device.
[0177] When the software program and / or the multiple groups of instructions in the memory 702 are executed by the processor 703, the electronic device further implements the following method steps: detecting the current of the wireless charging chip; and adjusting the first threshold value according to the current.
[0178] When the software program and / or multiple groups of instructions in the memory 702 are executed by the processor 703, the electronic device further implements the following method steps: receiving a wireless charging signal from the wireless charging chip; turning on the switch module to charge.
[0179] An embodiment of the present application also provides an electronic device, which includes a processor, a memory and a touch screen; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the above-mentioned methods.
[0180] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer is enabled to execute the above-mentioned methods.
[0181] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the above-mentioned methods.
[0182] The embodiment of the present application also provides a chip system, which includes a processor for supporting the above-mentioned device to implement the functions involved in the above-mentioned aspects, for example, generating or processing the information involved in the above-mentioned method. In a possible design, the chip system also includes a memory for storing necessary computer instructions and data. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0183] The above specific implementation methods further explain in detail the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above are only specific implementation methods of the embodiments of the present application and are not used to limit the protection scope of the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.
Claims
1. A reverse leakage protection method, characterized in that: Applied to a wireless charging system, the wireless charging system includes a wireless charging chip and a switch module, the wireless charging chip includes a charging coil and a voltage stabilizing module, the input end of the voltage stabilizing module is coupled to the charging coil, the output end of the voltage stabilizing module is coupled to the battery through the switch module, and the switch module has a bidirectional conduction capability when it is turned on; wherein, when the wireless charging system is charging the battery, the switch module is turned on, the charging coil is used to provide an input voltage, and the input voltage is sequentially stabilized by the voltage stabilizing module and stepped down by the switch module before being output to the battery for charging; The reverse leakage protection method comprises: Acquire a first voltage at an input end of the voltage stabilizing module and a second voltage at an output end of the voltage stabilizing module; calculating a difference between the second voltage and the first voltage; In response to the difference being greater than a first threshold, the switch module is turned off, wherein the first threshold is greater than zero.
2. The reverse leakage protection method according to claim 1, characterized in that: In response to the difference being greater than a first threshold, turning off the switch module comprises: Comparing the difference with the first threshold to obtain a comparison result, the comparison result comprising a first result and a second result, the first result comprising that the difference is greater than the first threshold, and the second result comprising that the difference is less than or equal to the first threshold; In response to the first occurrence of the first result, recording the number of consecutive occurrences of the first result; In response to the first result continuously appearing for a greater number than the first number, turning off the switch module; In response to the first result appearing consecutively a number of times being less than or equal to the first number of times, the number of times is cleared.
3. The reverse leakage protection method according to claim 1, characterized in that: In response to the difference being greater than a first threshold, turning off the switch module comprises: Comparing the difference with the first threshold to obtain a comparison result, the comparison result comprising a first result and a second result, the first result comprising that the difference is greater than the first threshold, and the second result comprising that the difference is less than or equal to the first threshold; In response to the first occurrence of the first result, recording a duration for which the first result continuously occurs; In response to the first result continuously appearing for a time period longer than a first time period, turning off the switch module; In response to a time duration during which the first result continuously appears being less than or equal to the first time duration, the time duration is cleared.
4. The reverse leakage protection method according to any one of claims 1 to 3, characterized in that: The obtaining of a first voltage at an input end of the voltage stabilizing module and a second voltage at an output end of the voltage stabilizing module comprises: Detecting whether the wireless charging chip is in a working state, wherein the working state includes that the wireless charging chip is charged; In response to the wireless charging chip being in a working state, starting a timer, wherein the timer is a periodic timer; The first voltage and the second voltage are acquired.
5. The reverse leakage protection method according to any one of claims 1 to 3, characterized in that: Before obtaining the first voltage at the input end of the voltage stabilizing module and the second voltage at the output end of the voltage stabilizing module, the method further includes: Detecting whether the wireless charging chip is in an upgrade state, wherein the upgrade state includes that the wireless charging chip is updating a firmware version; In response to the wireless charging chip being in the upgrade state, stopping obtaining the first voltage and the second voltage; In response to the wireless charging chip not being in the upgraded state, starting to obtain the first voltage and the second voltage.
6. The reverse leakage protection method according to any one of claims 1 to 3, characterized in that: In response to the difference being greater than a first threshold, turning off the switch module, the method further comprises: Confirm the type of protection device of the internal circuit of the voltage stabilizing module; Detecting the temperature of the wireless charging chip; The corresponding first threshold is selected according to the temperature and the type of the protection device.
7. The reverse leakage protection method according to claim 6, characterized in that: The step of selecting the first threshold value corresponding to the temperature and the type of the protection device further comprises: Detecting the current of the wireless charging chip; The first threshold is adjusted according to the current.
8. The reverse leakage protection method according to any one of claims 1 to 3, characterized in that: In response to the difference being greater than a first threshold, turning off the switch module, and then further comprising: Receiving a wireless charging signal from the wireless charging chip; Turn on the switch module to start charging.
9. An electronic device, characterized in that: include: Processor, memory and display; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 8.