Terminal charging method, device, electronic device and storage medium

By monitoring the output power of the terminal charging device in real time and adjusting the safety capacitance, the leakage current problem caused by the increase in safety capacitance is solved, improving user experience and safety.

CN119787530APending Publication Date: 2025-04-08WUHAN XINGJI MEIZU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411680063.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

The increase in safety capacitors in terminal charging devices leads to an increase in leakage current, bringing safety risks and user experience problems.

Method used

By obtaining the real-time output power of the terminal charging device and comparing the set output power, the safety capacitance of the power output end is adjusted to adapt to the changes in charging power.

Benefits of technology

The leakage current size decreases with the reduction of charging power, reduces the numb feel brought by leakage current, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119787530A_ABST
    Figure CN119787530A_ABST
Patent Text Reader

Abstract

The present application provides a terminal charging method, device, electronic device and storage medium, which relates to the field of intelligent terminal technology, including: obtaining the real-time output power of the terminal charging device and comparing it with the set output power; based on the comparison result of the real-time output power and the set output power, adjusting the safety capacitance of the power output end of the terminal charging device. The method and device provided by the present application make the charging power and the safety capacitance compatible, reduce the numbness caused by leakage current when the user touches the terminal, and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart terminals, and in particular to a terminal charging method, device, electronic device and storage medium. Background Art

[0002] As the charging power of smart terminals (such as mobile phones) gradually increases, the electromagnetic interference (EMI) of terminal charging devices is also increasing. In order to suppress electromagnetic interference, terminal charging devices inevitably need to increase safety capacitors (such as Y capacitors) in the circuit. However, the increase in safety capacitors will cause leakage current in terminal charging devices, posing safety risks to smart terminals and users. Summary of the invention

[0003] The present application provides a terminal charging method, comprising: Obtain the real-time output power of the terminal charging device and compare it with the set output power; Based on the comparison result between the real-time output power and the set output power, the safety capacitance of the power output end of the terminal charging device is adjusted.

[0004] In some embodiments, based on the comparison result between the real-time output power and the set output power, adjusting the safety capacitance of the power output end of the terminal charging device includes: When it is determined that the real-time output power is less than the set output power, controlling to reduce the safety capacity of the power output end of the terminal charging device; When it is determined that the real-time output power is greater than the set output power, the safety capacity of the power output end of the terminal charging device is controlled to increase.

[0005] In some embodiments, a plurality of safety capacitors are provided at the power output end of the terminal charging device; the plurality of safety capacitors are connected in series; When it is determined that the real-time output power is greater than the set output power, controlling at least one of the multiple safety capacitors to be short-circuited; When it is determined that the real-time output power is less than the set output power, all the safety capacitors are controlled to be connected in series.

[0006] In some embodiments, the safety capacitor is a Y capacitor.

[0007] The present application provides a terminal charging device, comprising: The power monitoring module is used to obtain the real-time output power of the terminal charging device and compare it with the set output power; The capacitance adjustment module is used to adjust the safety capacitance of the power output end of the terminal charging device based on the comparison result of the real-time output power and the set output power.

[0008] In some embodiments, the capacitance adjustment module includes a first resistor, a second resistor, a transistor, a switch, a relay control unit, a first safety capacitor, and a second safety capacitor; A first end of the first resistor is connected to the output end of the power monitoring module, and a second end is connected to the positive terminal of the power supply; A first end of the second resistor is connected to the collector of the transistor, and a second end of the second resistor is connected to the second end of the first resistor; The base of the transistor is connected to the first end of the first resistor, and the emitter is connected to the input end of the relay control unit; The controlled end of the switch is connected in series with the second safety capacitor, and the control end of the switch is connected to the output end of the relay control unit; The output end of the relay control unit is connected in parallel with the second safety capacitor through the controlled end of the switch; The first end of the first safety capacitor is connected in series with the second safety capacitor, and the second end is connected to the negative electrode of the power supply; The relay control unit is configured to receive a first electrical signal from the power monitoring module to control the disconnection of the switch and to receive a second electrical signal from the power monitoring module to control the conduction of the switch, wherein the first electrical signal indicates that the real-time output power is less than the set output power, and the second electrical signal indicates that the real-time output power is greater than the set output power.

[0009] In some embodiments, the power monitoring module is a protocol controller; the protocol controller includes a voltage monitoring terminal, a current monitoring terminal, and a general input and output terminal; The voltage monitoring terminal is connected to the positive terminal of the power supply; The current monitoring terminal is connected to the negative terminal of the power supply; The universal input-output terminal is connected to the first end of the first resistor; The protocol controller is configured to compare the real-time output power of the terminal charging device with the set output power, and send the first electrical signal when the real-time output power is less than the set output power and send the second electrical signal when the real-time output power is greater than the set output power.

[0010] In some embodiments, the apparatus further comprises: A first rectifier module, a second rectifier module, a clamping circuit module, a voltage conversion module and a PWM control module; The input end of the first rectifier module is connected to the power supply, and the output end is connected to the input end of the clamping circuit module; The output end of the clamping circuit module and the power supply end of the PWM control module are the primary winding of the voltage conversion module; the output end of the PWM control module is connected to the output end of the clamping circuit module, and the feedback end of the PWM control module is connected to the output end of the protocol controller; The secondary winding of the voltage conversion module is the input end of the second rectifier module, and the output end of the second rectifier module is connected to the voltage monitoring end of the protocol controller.

[0011] The present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the terminal charging method when executing the computer program.

[0012] The present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, and the computer program implements the terminal charging method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0014] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0015] Figure 1 This is one of the flow charts of the terminal charging method provided in this application.

[0016] Figure 2 This is one of the structural schematic diagrams of the terminal charging device provided in this application.

[0017] Figure 3 This is the second structural schematic diagram of the terminal charging device provided in this application.

[0018] Figure 4 This is the second flow chart of the terminal charging method provided in this application.

[0019] Figure 5 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0021] It should be noted that the terms "first", "second" etc. in the present application are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units or modules need not be limited to those steps or units or modules clearly listed, but may include other steps or units or modules that are not clearly listed or inherent to these processes, methods, products or equipment.

[0022] When using a charging device to charge a smart terminal, in order to ensure that the charging device has sufficient electromagnetic interference margin (it can still maintain stable performance in the face of electromagnetic interference, and will not malfunction or fail), the relevant technology usually adopts the method of increasing the safety capacitor in the circuit. However, the capacity of the safety capacitor is proportional to the current size of the leakage current. The larger the safety capacitance, the greater the leakage current, and the higher the floating voltage during charging (for example, a 100-watt charging device generally has a floating voltage of more than 100 volts, and the floating voltage of some charging devices can even reach 200 volts to 300 volts). When a charging device with a high floating voltage charges a terminal with a metal frame, the numbness caused by the leakage current will become stronger and stronger, seriously affecting the user's experience.

[0023] In order to solve the shortcomings of related technologies, Figure 1 This is one of the flow charts of the terminal charging method provided by this application, such as Figure 1 As shown, the method includes step 110 and step 120.

[0024] Step 110: Obtain the real-time output power of the terminal charging device and compare it with the set output power.

[0025] Specifically, the execution subject of the terminal charging method provided in the embodiment of the present application is a terminal charging device. The device can be implemented by software, such as a charging control program running in a charger equipped with various smart terminals; it can also be implemented by hardware, such as a charger or mobile charging power supply that executes the terminal charging method.

[0026] Terminals, also known as terminal devices, include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, such as mobile phones, tablets, desktop notebooks, and smart devices that can run applications, including the central console of smart cars, etc. Terminals can also be satellite phones, cellular phones, smart phones, wireless data cards, wireless modems, machine type communication devices; they can be cordless phones, session initiation protocol phones, wireless local loop stations, personal digital processing, handheld devices with wireless communication functions, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices or wearable devices, virtual reality terminal devices, augmented reality terminal devices, wireless terminals in industrial control, wireless terminals in unmanned driving, wireless terminals in telemedicine, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, terminal devices in 5G networks or future communication networks, etc.

[0027] A terminal charging device refers to a charging device that matches the terminal and can provide power for various terminals to ensure the normal operation of the terminal.

[0028] The real-time output power refers to the real-time power output when the terminal charging device is charging the terminal. The set output power refers to the set power set to limit the output of the terminal charging device.

[0029] Step 120: Based on the comparison result between the real-time output power and the set output power, adjust the safety capacitance of the power output end of the terminal charging device.

[0030] Specifically, a safety capacitor is provided at the power output end of the terminal charging device. The safety capacitor, also known as a safety capacitor, can be used to filter the power supply. One end of the safety capacitor needs to be connected to the power output end of the terminal charging device; however, the other end can be connected to the ground end, or to other ends according to actual design requirements. The embodiment of the present application does not specifically limit the connection position of the other end of the safety capacitor.

[0031] The connection of safety capacitors will generate leakage current, and the size of the safety capacitor is proportional to the leakage current. The larger the safety capacitor, the larger the leakage current. Correspondingly, the higher the terminal charging floating voltage, the stronger the numbness the user feels.

[0032] Safety capacitors can be selected as variable capacitors with adjustable capacitance, or multiple capacitors with fixed capacitance can be combined to change the overall capacitance of the capacitor combination by changing the connection method.

[0033] It is understandable that when the safety capacitance of the power output end of the terminal charging device is large, it is conducive to achieving high-power power output, but at the same time the leakage current will increase, the floating pressure will also increase, and the user will feel a strong numbness when touching the terminal; when the safety capacitance of the power output end of the terminal charging device is small, it is conducive to reducing the leakage current, and the floating pressure will also decrease, and the numbness when the user touches the terminal will also decrease.

[0034] Therefore, the set output power can be reasonably set. The real-time output power is compared with the set output power, and the safety capacitance of the power output end of the terminal charging device is adjusted according to the comparison result to achieve the matching of the charging power and the safety capacitance.

[0035] The terminal charging method provided in the embodiment of the present application obtains the real-time output power of the terminal charging device and compares it with the set output power; based on the comparison result of the real-time output power and the set output power, adjusts the size of the safety capacitance of the power output end of the terminal charging device; and adjusts the size of the safety capacitance in the terminal charging device by the real-time output power, so that the charging power and the safety capacitance are adapted, and the leakage current can be reduced as the charging power decreases, reducing the numbness of the leakage current when the user touches the terminal, and improving the user's experience. In addition, since the size of the safety capacitance can be adjusted with the real-time output power, the maximum value of the safety capacitance can be flexibly set, which is conducive to high-power charging of the terminal.

[0036] It should be noted that each implementation method of the present application can be freely combined, the order can be changed, or it can be executed separately, and does not need to rely on or depend on a fixed execution order.

[0037] In some embodiments, based on the comparison result between the real-time output power and the set output power, adjusting the safety capacitance of the power output end of the terminal charging device includes: When it is determined that the real-time output power is less than the set output power, control to reduce the safety capacity of the power output end of the terminal charging device; When it is determined that the real-time output power is greater than the set output power, the safety capacity of the power output end of the terminal charging device is controlled to be increased.

[0038] Specifically, the real-time output power is compared with the set output power. If the real-time output power is less than the set output power, it indicates that the current charging scenario is low-power. At this time, the safety capacitance of the power output end of the terminal charging device can be reduced to reduce leakage current and reduce the numbness of the user when touching the terminal.

[0039] If the real-time output power is greater than the set output power, it indicates that the current charging scenario is high-power. At this time, the safety capacitor at the power output end of the terminal charging device can be controlled to increase, so that the safety capacitor can play a better power filtering effect in the high-power charging scenario. Of course, in the high-power charging scenario, the leakage current will inevitably increase, and the numbness of the user when touching the terminal will be enhanced. At this time, the terminal charging device or the terminal can prompt the user in the form of light, voice, etc., to guide the user to avoid touching the terminal as much as possible in the current scenario.

[0040] The terminal charging method provided in the embodiment of the present application adjusts the safety capacitance of the power output end of the terminal charging device according to the comparison result of the real-time output power and the set output power, so that the safety capacitance is adapted to the real-time output power, and the leakage current can be reduced as the charging power decreases, thereby reducing the numbness caused by the leakage current when the user touches the terminal, and improving the user experience.

[0041] In some embodiments, a plurality of safety capacitors are provided at the power output end of the terminal charging device; the plurality of safety capacitors are connected in series; When it is determined that the real-time output power is greater than the set output power, controlling at least one of the multiple safety capacitors to be short-circuited; When it is determined that the real-time output power is less than the set output power, all safety capacitors are controlled to be connected in series.

[0042] Specifically, a safety capacitor combination can be formed by connecting a plurality of safety capacitors in series, and the connection method of each safety capacitor can be changed to change the overall capacity of the capacitor combination.

[0043] When it is determined that the real-time output power is greater than the set output power, it is determined that the current charging scenario is high-power, and at least one of the multiple safety capacitors can be controlled to be short-circuited. Short-circuit connection refers to connecting the two ends of the safety capacitor together through a wire. After the short-circuit connection, it is equivalent to reducing the number of safety capacitors connected in series. According to relevant circuit theory, compared with the previous series connection of each safety capacitor, the overall capacitance of the safety capacitor combination has increased.

[0044] When it is determined that the real-time output power is less than the set output power, it is determined that the current charging scenario is low-power, and all safety capacitors can be controlled to be connected in series. According to relevant circuit theory, compared with a single safety capacitor, the overall capacitance of the safety capacitor combination after all the series connections is reduced.

[0045] In the terminal charging method provided in the embodiment of the present application, a plurality of safety capacitors are arranged at the power output end of the terminal charging device, and the plurality of safety capacitors are connected in series. The overall capacitance is changed by changing the connection mode, thereby achieving flexibility and convenience in adjusting the safety capacitance.

[0046] In some embodiments, the safety capacitor is a Y capacitor.

[0047] Specifically, safety capacitors can include X capacitors and Y capacitors. X capacitors are mainly used between AC power lines, usually to suppress power noise, which may cause short circuits in the event of a fault; Y capacitors are used between power lines and ground, mainly to improve the safety of equipment.

[0048] In the terminal charging device, the safety capacitor can be selected as a Y capacitor, which can effectively prevent leakage, protect user safety, and reduce the risk of electric shock when the terminal charging device fails.

[0049] The device provided in the embodiment of the present application is described below. The device described below and the method described above can be referenced to each other.

[0050] Figure 2 This is one of the structural schematic diagrams of the terminal charging device provided in this application, such as Figure 2 As shown, the terminal charging device 200 includes: The power monitoring module 210 is used to obtain the real-time output power of the terminal charging device and compare it with the set output power; The capacitance adjustment module 220 is used to adjust the safety capacitance of the power output end of the terminal charging device based on the comparison result between the real-time output power and the set output power.

[0051] The terminal charging device provided in the embodiment of the present application obtains the real-time output power of the terminal charging device and compares it with the set output power; based on the comparison result of the real-time output power and the set output power, adjusts the size of the safety capacitance of the power output end of the terminal charging device; and adjusts the size of the safety capacitance in the terminal charging device by the real-time output power, so that the charging power and the safety capacitance are adapted, and the leakage current can be reduced as the charging power decreases, reducing the numbness of the leakage current when the user touches the terminal, and improving the user's experience. In addition, since the size of the safety capacitance can be adjusted with the real-time output power, the maximum value of the safety capacitance can be flexibly set, which is conducive to high-power charging of the terminal.

[0052] In some embodiments, the capacitance adjustment module includes a first resistor, a second resistor, a transistor, a switch, a relay control unit, a first safety capacitor, and a second safety capacitor; A first end of the first resistor is connected to the output end of the power monitoring module, and a second end is connected to the positive terminal of the power supply; A first end of the second resistor is connected to the collector of the transistor, and a second end is connected to the second end of the first resistor; The base of the transistor is connected to the first end of the first resistor, and the emitter is connected to the input end of the relay control unit; The controlled end of the switch is connected in series with the second safety capacitor, and the control end of the switch is connected with the output end of the relay control unit; The output end of the relay control unit is connected in parallel with the second safety capacitor through the controlled end of the switch; A first end of the first safety capacitor is connected in series with the second safety capacitor, and a second end is connected to the negative electrode of the power supply; The relay control unit is configured to receive a first electrical signal from the power monitoring module to control the disconnection of the switch and to receive a second electrical signal from the power monitoring module to control the conduction of the switch, wherein the first electrical signal indicates that the real-time output power is less than the set output power, and the second electrical signal indicates that the real-time output power is greater than the set output power.

[0053] Specifically, Figure 3 This is the second structural diagram of the terminal charging device provided by this application, such as Figure 3 As shown, from the hardware composition point of view, the capacitance adjustment module includes a first resistor 221 (R1), a second resistor 222 (R2), a transistor 223 (Q2), a switch 224 (K1A), a relay control unit 225, a first safety capacitor 226 (CY1) and a second safety capacitor 227 (CY3).

[0054] The first end of the first resistor 221 is connected to the output end of the power monitoring module 210, and the second end is connected to the positive end of the power supply; the first end of the second resistor 222 is connected to the collector of the transistor 223, and the second end is connected to the second end of the first resistor 221; the base of the transistor 223 is connected to the first end of the first resistor 221, and the emitter is connected to the input end of the relay control unit 225. The circuit formed by the above electronic components can convert the output signal of the power monitoring module into the input signal of the relay control unit.

[0055] The controlled end of the switch 224 is connected in series with the second safety capacitor 227, and the control end of the switch 224 is connected to the output end of the relay control unit 225; the output end of the relay control unit 225 is connected in parallel with the second safety capacitor 227 through the controlled end of the switch 224. The circuit formed by the above electronic components enables the switch to be controlled by the relay control unit, and the second safety capacitor is short-circuited.

[0056] A first end of the first safety capacitor 226 is connected in series with the second safety capacitor 227 , and a second end of the first safety capacitor 226 is connected to the negative electrode of the power supply.

[0057] The function of the power monitoring module is to monitor the real-time output power of the terminal charging device and compare the real-time output power with the set output power. When the real-time output power is less than the set output power, a first electrical signal is output; when the real-time output power is greater than the set output power, a second electrical signal is output.

[0058] Accordingly, the relay control unit is configured to receive a first electrical signal from the power monitoring module to control the disconnection of the switch, and receive a second electrical signal from the power monitoring module to control the conduction of the switch.

[0059] When the switch is off, the first safety capacitor and the second safety capacitor are connected in series to the circuit; when the switch is on, the second safety capacitor is short-circuited, and only the first safety capacitor is connected to the circuit. It can be understood that the series connection of capacitors will reduce the total capacitance, so the switch off is equivalent to reducing the safety capacitance, and the switch on is equivalent to increasing the safety capacitance.

[0060] The terminal charging device provided in the embodiment of the present application constructs a capacitance adjustment module through resistors, transistors, switches, relay control units and safety capacitors, which is easy to implement and reduces production costs.

[0061] In some embodiments, the power monitoring module is a protocol controller; the protocol controller includes a voltage monitoring terminal, a current monitoring terminal, and a general input and output terminal; The voltage monitoring terminal is connected to the positive terminal of the power supply; The current monitoring terminal is connected to the negative terminal of the power supply; The universal input-output terminal is connected to the first end of the first resistor; The protocol controller is configured to compare the real-time output power of the terminal charging device with the set output power, and send a first electrical signal when the real-time output power is less than the set output power and send a second electrical signal when the real-time output power is greater than the set output power.

[0062] Specifically, the protocol controller is a key component responsible for managing and coordinating the communication protocol and data exchange during the charging process. During the charging process, the protocol controller will first communicate with the terminal to understand its charging requirements and charging protocol. Then, based on this information, the protocol controller will adjust the output current and voltage of the charging device to ensure that the charging process meets the requirements of the terminal. At the same time, the protocol controller will also monitor various parameters of the charging process in real time, such as temperature, current and voltage, to ensure the safety and stability of the charging process.

[0063] like Figure 3 As shown, the power monitoring module 210 may use a protocol controller. The protocol controller at least includes a voltage monitoring terminal, a current monitoring terminal, and a general input and output terminal.

[0064] The voltage monitoring terminal (Vbus) is connected to the positive terminal of the power supply to monitor the voltage output by the power supply; the current monitoring terminal (CSP, CSN) is connected to the negative terminal of the power supply to monitor the current output by the power supply. The real-time output power of the terminal charging device can be determined by calculating the signals monitored by the voltage monitoring terminal and the current monitoring terminal.

[0065] The protocol controller is configured to compare the real-time output power of the terminal charging device with the set output power, send a first electrical signal when the real-time output power is less than the set output power, and send a second electrical signal when the real-time output power is greater than the set output power.

[0066] The general purpose input and output terminal (GPIO) is connected to the first end of the first resistor and can send the first electrical signal and the second electrical signal at different levels. For example, the general purpose input and output terminal can output a low level to represent the first electrical signal and a high level to represent the second electrical signal.

[0067] The terminal charging device provided in the embodiment of the present application, the power monitoring module adopts a protocol controller, which can effectively monitor the charging process of the terminal, and output a corresponding electrical signal according to the comparison result between the real-time output power and the set output power, thereby improving the intelligence level of the terminal charging.

[0068] In some embodiments, the device further comprises a first rectifier module, a second rectifier module, a clamping circuit module, a voltage conversion module and a PWM control module; The input end of the first rectifier module is connected to the power supply, and the output end is connected to the input end of the clamping circuit module; The output end of the clamping circuit module and the power supply end of the PWM control module are the primary winding of the voltage conversion module; the output end of the PWM control module is connected to the output end of the clamping circuit module, and the feedback end of the PWM control module is connected to the output end of the protocol controller; The secondary winding of the voltage conversion module is the input end of the second rectifier module, and the output end of the second rectifier module is connected to the voltage monitoring end of the protocol controller.

[0069] Specifically, Figure 3 As shown, the device further includes a first rectifier module 240, a second rectifier module 250, a clamping circuit module 260, a voltage conversion module 270 (T1) and a PWM (Pulse Width Modulation) control module 280 (U1).

[0070] The input end of the first rectifier module 240 is connected to the input power of the terminal charging device, and the output end is connected to the input end of the clamping circuit module 260, which is used to rectify and filter the input power (for example, 100 to 240 volts AC) and then input it into the clamping circuit module 260.

[0071] The output end of the clamping circuit module 260 and the power supply end of the PWM control module 280 are the primary windings of the voltage conversion module 270 .

[0072] The clamping circuit module 260 is used to limit the voltage of the rectified and filtered power supply to protect the electronic components from overvoltage damage. The clamping circuit module can be constructed by three components: a resistor (R), a capacitor (C) and a diode (D). The clamping circuit module constructed by the above three components is also called an RCD clamping circuit.

[0073] The voltage conversion module 270 is used to convert the voltage of the input power supply into a voltage acceptable to the terminal.

[0074] The output end of the PWM control module 280 is connected to the output end of the clamping circuit module 260, and the feedback end of the PWM control module 280 is connected to the output end of the protocol controller, for generating a control signal for the primary winding of the voltage conversion module 270 according to the output signal of the protocol controller.

[0075] The protocol controller generates a charging power control signal according to the charging power demand of the terminal, and sends it to the PWM control module through the optocoupler. The PWM control module changes the duty cycle of the pulse modulation according to the charging power control signal, and generates a control signal for the primary winding of the voltage conversion module, and the control signal is directly proportional to the charging power control signal. The control signal can change the magnetic field energy stored in the primary winding, thereby changing the real-time output power of the terminal charging device. Thereafter, the protocol controller monitors the real-time output power of the terminal charging device and compares the real-time output power with the set output power. The capacitance adjustment module adjusts the safety capacitance of the power output end of the terminal charging device according to the comparison result between the real-time output power and the set output power.

[0076] The secondary winding of the voltage conversion module 270 is the input end of the second rectifier module 250, and the output end of the second rectifier module 250 is connected to the voltage monitoring end of the protocol controller. The second rectifier module is used to perform rectification and filtering on the power supply after voltage conversion.

[0077] The terminal charging device provided in the embodiment of the present application also includes a first rectifier module, a second rectifier module, a clamping circuit module, a voltage conversion module and a PWM control module, which can rectify, filter and convert the voltage of the input power supply, thereby improving the reliability of terminal charging.

[0078] like Figure 3 As shown, the feedback end of the power monitoring module 210 (U3) in the device is connected to the input end (U1) of the PWM control module 280 through the photocoupler 290 (U2). A third safety capacitor (CY2) is also provided between the input end and the output end of the power supply.

[0079] In some specific embodiments, one end of the third safety capacitor (CY2) is connected to the input end of the clamping circuit module 260, and the other end is connected to the output end of the second rectifier module 250. The third safety capacitor (CY2) can be a Y capacitor, which ensures that the charging circuit has a certain number of safety capacitors to suppress electromagnetic interference of the circuit.

[0080] The power monitoring module (U3) needs to select a fast charging protocol chip with a microcontroller unit (MCU) (such as IP2723T, etc.).

[0081] The control circuit of the safety capacitance (Y capacitor) is composed of a switch control circuit (U3, R1, R2, Q2) and a relay control circuit (EC1, EC2, EC3, three-terminal voltage regulator, R3, K1). The three-terminal voltage regulator can use a 7812 chip, etc. EC1, EC2, EC3 are filter capacitors. R3 is a resistor. K1 is a relay.

[0082] The voltage conversion module (magnetic transformer) can be selected according to the required power level. It mainly uses the relay control circuit combined with the software control logic of the protocol controller to control the safety capacitance of the entire circuit when different power outputs are achieved. When the output power is less than a certain set power, the safety capacitance is reduced, and the terminal charging device outputs a smaller leakage current value; when the output power is greater than a certain set power, the safety capacitance is increased, and the terminal charging device outputs a larger leakage current value.

[0083] Figure 4 This is the second flow chart of the terminal charging method provided by this application, such as Figure 4As shown, the general input and output (GPIO) of the power monitoring module is connected to the relay control circuit. Since the protocol controller and the terminal (mobile phone, notebook, etc.) are connected in real time through the fast charging protocol, the charging device can read the charging power of the terminal at any time. Generally, the greater the power, the larger the required Y capacitor (Y capacitor is mainly used to improve the EMI performance of the product). However, in actual applications, the high-power charging time required for small and medium-capacity devices such as mobile phones is generally short (1 to 3 minutes). This is because the charging power of the device changes in stages in the fast charging scenario. The lower the remaining power of the device, the higher the required charging power, and the higher the remaining power of the mobile phone, the lower the required charging power. Therefore, the high-power charging scenario only occurs when the battery power of mobile phones and other devices is low, so large-capacity Y capacitors are not needed in more charging scenarios.

[0084] The terminal charging method mainly controls the safety capacity, including: When the charging device detects that the charging power is lower than a certain set value, the power monitoring module outputs a low level, and the relay circuit does not operate and is in a disconnected state. The first safety capacitor (CY1) and the second safety capacitor (CY3) are connected in series, and the total capacity of the Y capacitors in the entire primary and secondary circuits decreases, so the leakage current also decreases, and the floating pressure decreases. When the charging device detects that the charging power is higher than a certain set value, the power monitoring module (U3) outputs a high level, the relay circuit operates and is in a closed state, the second safety capacitor (CY3) is short-circuited, and the total capacity of the Y capacitors in the entire primary and secondary circuits increases, so the leakage current of the entire charging circuit also increases, and the floating pressure increases.

[0085] Figure 5 is a schematic diagram of the structure of the electronic device provided by this application, such as Figure 5 As shown, the electronic device may include: a processor (Processor) 510, a communication interface (Communications Interface) 520, a memory (Memory) 530 and a communication bus (Communications Bus) 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic command in the memory 530 to execute the method described in the above embodiment, for example: The real-time output power of the terminal charging device is obtained and compared with the set output power; based on the comparison result of the real-time output power and the set output power, the safety capacitance of the power output end of the terminal charging device is adjusted.

[0086] In addition, the logical commands in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several commands to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.

[0087] The processor in the electronic device provided in the embodiment of the present application can call the logic instructions in the memory to implement the above method. Its specific implementation method is consistent with the implementation method of the aforementioned method and can achieve the same beneficial effects, which will not be repeated here.

[0088] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the methods provided in the above embodiments are implemented.

[0089] Its specific implementation is consistent with the aforementioned method implementation and can achieve the same beneficial effects, so it will not be repeated here.

[0090] An embodiment of the present application provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0091] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A terminal charging method, characterized in that: include: Obtain the real-time output power of the terminal charging device and compare it with the set output power; Based on the comparison result between the real-time output power and the set output power, the safety capacitance of the power output end of the terminal charging device is adjusted.

2. The terminal charging method according to claim 1, characterized in that: Based on the comparison result between the real-time output power and the set output power, adjusting the safety capacitance of the power output end of the terminal charging device includes: When it is determined that the real-time output power is less than the set output power, controlling to reduce the safety capacity of the power output end of the terminal charging device; When it is determined that the real-time output power is greater than the set output power, the safety capacity of the power output end of the terminal charging device is controlled to increase.

3. The terminal charging method according to claim 2, characterized in that: The power output end of the terminal charging device is provided with a plurality of safety capacitors; the plurality of safety capacitors are connected in series; When it is determined that the real-time output power is greater than the set output power, controlling at least one of the multiple safety capacitors to be short-circuited; When it is determined that the real-time output power is less than the set output power, all the safety capacitors are controlled to be connected in series.

4. The terminal charging method according to claim 3, characterized in that: The safety capacitor is a Y capacitor.

5. A terminal charging device, characterized in that: include: The power monitoring module is used to obtain the real-time output power of the terminal charging device and compare it with the set output power; The capacitance adjustment module is used to adjust the safety capacitance of the power output end of the terminal charging device based on the comparison result of the real-time output power and the set output power.

6. The terminal charging device according to claim 5, characterized in that: The capacitance adjustment module includes a first resistor, a second resistor, a transistor, a switch, a relay control unit, a first safety capacitor and a second safety capacitor; A first end of the first resistor is connected to the output end of the power monitoring module, and a second end is connected to the positive terminal of the power supply; A first end of the second resistor is connected to the collector of the transistor, and a second end of the second resistor is connected to the second end of the first resistor; The base of the transistor is connected to the first end of the first resistor, and the emitter is connected to the input end of the relay control unit; The controlled end of the switch is connected in series with the second safety capacitor, and the control end of the switch is connected to the output end of the relay control unit; The output end of the relay control unit is connected in parallel with the second safety capacitor through the controlled end of the switch; The first end of the first safety capacitor is connected in series with the second safety capacitor, and the second end is connected to the negative electrode of the power supply; The relay control unit is configured to receive a first electrical signal from the power monitoring module to control the disconnection of the switch and to receive a second electrical signal from the power monitoring module to control the conduction of the switch, wherein the first electrical signal indicates that the real-time output power is less than the set output power, and the second electrical signal indicates that the real-time output power is greater than the set output power.

7. The terminal charging device according to claim 6, characterized in that: The power monitoring module is a protocol controller; the protocol controller includes a voltage monitoring terminal, a current monitoring terminal, and a general input and output terminal; The voltage monitoring terminal is connected to the positive terminal of the power supply; The current monitoring terminal is connected to the negative terminal of the power supply; The universal input-output terminal is connected to the first end of the first resistor; The protocol controller is configured to compare the real-time output power of the terminal charging device with the set output power, and send the first electrical signal when the real-time output power is less than the set output power and send the second electrical signal when the real-time output power is greater than the set output power.

8. The terminal charging device according to claim 7, characterized in that: include: A first rectifier module, a second rectifier module, a clamping circuit module, a voltage conversion module and a PWM control module; The input end of the first rectifier module is connected to the power supply, and the output end is connected to the input end of the clamping circuit module; The output end of the clamping circuit module and the power supply end of the PWM control module are the primary winding of the voltage conversion module; the output end of the PWM control module is connected to the output end of the clamping circuit module, and the feedback end of the PWM control module is connected to the output end of the protocol controller; The secondary winding of the voltage conversion module is the input end of the second rectifier module, and the output end of the second rectifier module is connected to the voltage monitoring end of the protocol controller.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the terminal charging method according to any one of claims 1 to 4 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the terminal charging method according to any one of claims 1 to 4 is implemented.