Charging method and charging device

By supporting multiple charging modes in the terminal device and dynamically adjusting the charging protocol, the problem of wireless charging device protocol mismatch or lack of BPP mode is solved, and normal charging and charging flexibility of the terminal device are achieved.

CN117154865BActive Publication Date: 2024-10-29HONOR DEVICE CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202310189985.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-10-29
Estimated Expiration
2043-02-22

AI Technical Summary

Technical Problem

When the terminal device needs to be charged, if there is no wireless charging device deployed with a specific protocol or does not support the BPP charging mode, it will not be able to charge normally, affecting the use of the device.

Method used

The terminal device supports BPP, EPP and high-power charging modes, and dynamically adjusts the charging protocol to ensure charging according to the mode supported by the wireless charging device, including instructing the wireless charging device to charge based on BPP, EPP or high-power mode, and if necessary, by reducing voltage circuit or switched capacitor SC circuit to adapt to different power scenarios.

Benefits of technology

It improves the charging flexibility and reliability of terminal equipment, ensures normal charging under various wireless charging equipment conditions, and improves charging speed and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117154865B_ABST
    Figure CN117154865B_ABST
Patent Text Reader

Abstract

The present application provides a charging method and a charging device, which can be applied to a terminal device. The charging modes supported by the terminal device include BPP charging mode, EPP charging mode and high-power charging mode. The high-power charging mode is a charging mode based on a private protocol, and the private protocol is a non-QI standard protocol. The charging method provided by the present application includes: if the charging mode supported by the wireless charging device includes at least one of the BPP charging mode, EPP charging mode and high-power charging mode, the terminal device instructs the wireless charging device to charge the terminal device based on at least one charging mode. The charging method provided by the present application is conducive to ensuring the normal charging of the terminal device and improving the charging flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a charging method and a charging device. Background Art

[0002] With the development of terminal devices, terminal devices can support wireless charging, that is, when the terminal device is placed on a wireless charging device, the wireless charging device can transmit power to the terminal device through electromagnetic induction. In order to increase the charging speed, one way is to deploy the same protocol on the terminal device and the wireless charging device to achieve high-power output through the protocol. However, there is often a problem that the terminal device cannot be charged when it needs to be charged because there is no wireless charging device deployed with the protocol, which affects the use of the terminal device.

[0003] A method for solving the above technical problem is as follows: while deploying the protocol that can achieve high-power charging on the terminal device, the terminal device also supports the BPP charging mode of the Qi standard protocol. In this way, when the terminal device needs to be charged and there is no wireless charging device with the protocol deployed, the terminal device can be charged by a wireless charging device that supports the BPP charging mode.

[0004] However, the charging method of the above terminal device has the following problem: when the terminal device needs to be charged, if there is no wireless charging device deployed with the protocol, and there is no wireless charging device that supports the BPP charging mode, the terminal device still cannot be charged, thereby failing to ensure the normal use of the terminal device. Summary of the invention

[0005] The present application provides a charging method and a charging device, which are conducive to ensuring normal charging of terminal equipment and improving charging flexibility.

[0006] In a first aspect, a charging method is provided, which is applied to a terminal device, and the charging modes supported by the terminal device include a BPP charging mode, an EPP charging mode, and a high-power charging mode. The high-power charging mode is a charging mode based on a private protocol, and the private protocol is a non-QI standard protocol. The charging method includes: if the charging modes supported by the wireless charging device include at least one of the BPP charging mode, the EPP charging mode, and the high-power charging mode, instructing the wireless charging device to charge the terminal device based on at least one charging mode.

[0007] The charging power of the BPP charging mode is generally 5 watts (watt, W), that is, the voltage is 5 volts (voltage, V) and the current is 1 ampere (A). The charging power of the EPP charging mode is generally between 10W and 25W. In specific applications, the specific charging power of the EPP charging mode can be negotiated and determined by the terminal device and the wireless charging device. The high-power charging mode is a charging mode based on a private protocol. That is to say, when the terminal device and the wireless charging device are deployed with the same protocol, the terminal device and the wireless charging device can perform high-power charging according to the deployed protocol. The charging mode can be called a high-power charging mode. The charging power of the high-power charging mode is generally 50W or 100W, but the embodiments of the present application are not limited to this. The BPP charging mode and the EPP charging mode are charging modes of standard protocols, and the private protocol is a non-QI standard protocol.

[0008] The charging modes supported by the wireless charging device may include a variety of possible situations. For example, the wireless charging device supports the BPP charging mode; the wireless charging device supports the EPP charging mode; the wireless charging device supports the high-power charging mode; the wireless charging device supports the BPP charging mode and the EPP charging mode; the wireless charging device supports the BPP charging mode and the high-power charging mode; the wireless charging device supports the EPP charging mode and the high-power charging mode; or the wireless charging device supports the BPP charging mode, the EPP charging mode, and the high-power charging mode.

[0009] The terminal device may instruct the wireless charging device to charge the terminal device based on a charging mode in at least one supported charging mode. The terminal device may instruct the wireless charging device to charge the terminal device based on one or more charging modes.

[0010] Exemplarily, the terminal device is deployed with a protocol that can achieve high-power charging, and can also support the BPP charging mode and the EPP charging mode. After the terminal device establishes a wireless communication connection with the wireless charging device, the terminal device can instruct the wireless charging device to charge the terminal device based on the BPP charging mode; the terminal device can also determine whether the wireless charging device is deployed with a protocol that can achieve high-power charging. If the wireless charging device is deployed with a protocol that can achieve high-power charging, the terminal device can instruct the wireless charging device to charge the terminal device based on the high-power charging mode. At this time, the charging mode may include the BPP charging mode and / or the high-power charging mode; if the wireless charging device is not deployed with a protocol that can achieve high-power charging, the terminal device can instruct the wireless charging device to charge the terminal device based on the EPP charging mode.

[0011] The charging method provided in the present application can instruct the wireless charging device to charge the terminal device based on at least one of the supported charging modes when the terminal device needs to be charged, which is conducive to ensuring normal charging of the terminal device and improving charging flexibility.

[0012] In combination with the first aspect, in certain implementations of the first aspect, when at least one charging mode includes a BPP charging mode, an EPP charging mode, and a high-power charging mode, or includes a BPP charging mode and a high-power charging mode, or includes an EPP charging mode and a high-power charging mode, the above-mentioned instructing the wireless charging device to charge the terminal device based on at least one charging mode includes: instructing the wireless charging device to charge the terminal device based on the high-power charging mode.

[0013] The charging power of the high-power charging mode is generally greater than the charging power of the BPP charging mode, and also greater than the charging power of the EPP charging mode. When the wireless terminal device supports the high-power charging mode, the terminal device can instruct the wireless terminal device to charge the terminal device based on the high-power charging mode. Among them, the wireless terminal device supports the high-power charging mode and can include three possible situations. In one possible situation, the wireless terminal device supports the BPP charging mode, the EPP charging mode, and the high-power charging mode. In another possible situation, the wireless terminal device supports the BPP charging mode and the high-power charging mode. In another possible situation, the wireless terminal device supports the EPP charging mode and the high-power charging mode.

[0014] It is understandable that the wireless terminal device supporting the high-power charging mode also includes: the wireless terminal device only supports the high-power charging mode. In this case, the terminal device can instruct the wireless terminal device to charge the terminal device based on the high-power charging mode.

[0015] The charging method provided in the present application instructs the wireless charging device to charge the terminal device based on the high-power charging mode when the wireless terminal device supports the high-power charging mode, which is conducive to improving the charging speed.

[0016] In combination with the first aspect, in certain implementations of the first aspect, when at least one charging mode includes a BPP charging mode and an EPP charging mode, the above-mentioned instructing the wireless charging device to charge the terminal device based on a charging mode in at least one charging mode includes: instructing the wireless charging device to charge the terminal device based on the EPP charging mode.

[0017] In the case where the wireless charging device supports the BPP charging mode and the EPP charging mode, if the terminal device can instruct the wireless charging device to charge the terminal device based on the BPP charging mode, and the terminal device can instruct the wireless charging device to charge the terminal device based on the EPP charging mode, the charging power of the EPP charging mode is generally greater than the charging power of the BPP charging mode, and the terminal device can instruct the wireless charging device to charge the terminal device based on the EPP charging mode. In addition to supporting the BPP charging mode and the EPP charging mode, the wireless charging device can also support other charging modes, which is not limited in this application.

[0018] The charging method provided in the present application, when the wireless terminal device supports the BPP charging mode and the EPP charging mode, instructs the wireless charging device to charge the terminal device based on the EPP charging mode, which is conducive to improving the charging speed.

[0019] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: when the wireless charging device charges the terminal device based on the EPP charging mode, if the number of times the wireless charging device is disconnected from the terminal device is greater than or equal to a number threshold, and the duration between the last disconnection moment and the first disconnection moment is greater than a duration threshold, then instructing the wireless charging device to charge the terminal device based on the BPP charging mode.

[0020] The number threshold can be preset by the developer, which can be 2 or 3 times, and this application does not limit this. The duration threshold can be preset by the developer, which can be 40 seconds or 45 seconds, and this application does not limit this. The number of disconnections can also be called the number of disconnections, and this application does not limit this.

[0021] When the wireless charging device charges the terminal device based on the EPP charging mode, there may be a disconnection phenomenon, that is, the wireless communication between the wireless charging device and the terminal device is disconnected, resulting in charging stopping. If during the charging process, the number of disconnections between the wireless charging device and the terminal device is greater than or equal to the number threshold, and the time between the last disconnection and the first disconnection is greater than the time threshold, it can be explained that the charging is frequently disconnected within the time threshold, and the terminal device can instruct the wireless charging device to charge the terminal device based on the BPP charging mode.

[0022] The charging method provided in the present application, in the EPP charging mode, if charging is frequently interrupted, will no longer attempt to enter the BPP charging mode, and instruct the wireless charging device to charge the terminal device based on the BPP charging mode, which is conducive to ensuring charging stability.

[0023] In combination with the first aspect, in certain implementations of the first aspect, the terminal device includes a step-down circuit and a switched capacitor SC circuit; wherein the above-mentioned instruction for the wireless charging device to charge the terminal device based on the EPP charging mode includes: when the charging power provided by the wireless charging device to the terminal device based on the EPP charging mode is greater than or equal to a power threshold, charging the terminal device through the SC circuit; or, when the charging power is less than the power threshold, charging the terminal device through the step-down circuit.

[0024] The step-down circuit is a Buck circuit, which is used to charge the battery in the terminal device and is suitable for low-power charging scenarios. The switched capacitor converter (SC) circuit is used to charge the battery in the terminal device and is suitable for high-power charging scenarios. The power threshold can be preset by the developer and can be 12W or 15W, which is not limited in this application.

[0025] When the terminal device instructs the wireless charging device to charge the terminal device based on the EPP charging mode, the terminal device can charge the battery based on the Buck circuit or the SC circuit. In one example, the terminal device can determine whether the charging power provided by the wireless charging device to the terminal device based on the EPP charging mode is greater than or equal to the power threshold. If the charging power provided by the wireless charging device to the terminal device based on the EPP charging mode is greater than or equal to the power threshold, the terminal device charges the terminal device through the SC circuit; if the charging power is less than the power threshold, the terminal device charges the terminal device through the Buck circuit.

[0026] In another example, the terminal device can be set to instruct the wireless charging device to charge the terminal device through the SC circuit when the charging power provided by the wireless charging device to the terminal device based on the EPP charging mode is a first power, such as 15 W; the terminal device can be set to instruct the wireless charging device to charge the terminal device through the Buck circuit when the charging power provided by the wireless charging device to the terminal device based on the EPP charging mode is a second power, such as 10 W.

[0027] The charging method provided in the present application can select a suitable charging circuit (Buck circuit or SC circuit) when the charging power provided by the wireless charging device to the terminal device based on the EPP charging mode meets different requirements (greater than or equal to the power threshold or less than the power threshold). It can be suitable for different charging scenarios and can also improve the charging speed in different charging scenarios.

[0028] In combination with the first aspect, in certain implementations of the first aspect, the above-mentioned instructing the wireless charging device to charge the terminal device based on at least one charging mode includes: handshaking with the wireless charging device based on a private protocol; if the handshake is successful, instructing the wireless charging device to charge the terminal device based on the high-power charging mode; if the handshake fails, instructing the wireless charging device to charge the terminal device based on the EPP charging mode; if the instructing the wireless charging device to charge the terminal device based on the EPP charging mode fails, instructing the wireless charging device to charge the terminal device based on the BPP charging mode.

[0029] The terminal device can select different charging modes to charge the terminal device in different situations.

[0030] In one example, the terminal device can perform a handshake with the wireless charging device based on a private protocol to determine whether the wireless charging device is deployed with the same protocol as the terminal device; if the handshake is successful, it can be indicated that the wireless charging device is deployed with the same protocol as the terminal device, and the terminal device can instruct the wireless charging device to charge the terminal device based on the high-power charging mode. If the handshake fails, it can be indicated that the wireless charging device is not deployed with the same protocol as the terminal device, and the terminal device can instruct the wireless charging device to charge the terminal device based on the EPP charging mode. If the instruction to the wireless charging device to charge the terminal device based on the EPP charging mode fails, it can be indicated that the wireless charging device does not respond to the instruction or does not support the EPP charging mode, and the terminal device can instruct the wireless charging device to charge the terminal device based on the BPP charging mode.

[0031] The charging method provided in the present application can, when the wireless charging device is deployed with the same protocol as the terminal device, charge the terminal device based on the high-power charging mode by the wireless charging device; when the wireless charging device is not deployed with the same protocol as the terminal device and supports the EPP charging mode, instruct the wireless charging device to charge the terminal device based on the EPP charging mode; when the wireless charging device is not deployed with the same protocol as the terminal device and does not support the EPP charging mode, instruct the wireless charging device to charge the terminal device based on the BPP charging mode, which is conducive to ensuring the normal charging of the terminal device and improving the charging flexibility.

[0032] In combination with the first aspect, in some implementations of the first aspect, the method further includes: if the handshake fails and there is an indication of charging based on the BPP charging mode, instructing the wireless charging device to charge the terminal device based on the BPP charging mode.

[0033] If the handshake fails and there is an indication of charging based on the BPP charging mode, it means that the wireless charging device is not deployed with the same protocol as the terminal device. There is no need to try to enter the EPP charging mode. The terminal device can directly instruct the wireless charging device to charge the terminal device based on the BPP charging mode.

[0034] For example, if the terminal device frequently fails to charge in the EPP charging mode, or the wireless charging device fails to charge the terminal device based on the EPP charging mode, an indicator of charging based on the BPP charging mode will appear in the terminal device. However, when the terminal device re-establishes a wireless communication connection with the wireless charging device, the terminal device may not attempt to enter the EPP charging mode, and the terminal device may directly instruct the wireless charging device to charge the terminal device based on the BPP charging mode.

[0035] The charging method provided in the present application may not attempt to enter the EPP charging mode when there is an indication of charging based on the BPP charging mode. The terminal device may directly instruct the wireless charging device to charge the terminal device based on the BPP charging mode, which is beneficial to improving the processing speed and determining the charging mode as quickly as possible.

[0036] In the second aspect, a charging device is provided, which can support charging modes including BPP charging mode, EPP charging mode and high-power charging mode, and the high-power charging mode is a charging mode based on a private protocol, and the private protocol is a non-QI standard protocol. The charging device includes a selection module and a processing module. Among them, the selection module is used to: if the charging mode supported by the wireless charging device includes at least one of the BPP charging mode, the EPP charging mode and the high-power charging mode, then select a charging mode from at least one charging mode; the processing module is used to: instruct the wireless charging device to charge the charging device based on the selected charging mode.

[0037] In combination with the second aspect, in certain implementations of the second aspect, when at least one charging mode includes a BPP charging mode, an EPP charging mode, and a high-power charging mode, or includes a BPP charging mode and a high-power charging mode, or includes an EPP charging mode and a high-power charging mode, the above-mentioned processing module is specifically used to: instruct the wireless charging device to charge the charging device based on the high-power charging mode.

[0038] In combination with the second aspect, in some implementations of the second aspect, when at least one charging mode includes a BPP charging mode and an EPP charging mode, the processing module is specifically used to: instruct the wireless charging device to charge the charging apparatus based on the EPP charging mode.

[0039] In combination with the second aspect, in certain implementations of the second aspect, the processing module is further used to: when the wireless charging device charges the charging device based on the EPP charging mode, if the number of times the wireless charging device is disconnected from the charging device is greater than or equal to the number threshold, and the duration between the last disconnection moment and the first disconnection moment is greater than the duration threshold, then instruct the wireless charging device to charge the charging device based on the BPP charging mode.

[0040] In combination with the second aspect, in certain implementations of the second aspect, the charging device includes a step-down circuit and a switched capacitor SC circuit; wherein the above-mentioned processing module is specifically used to: when the charging power provided by the wireless charging device to the charging device based on the EPP charging mode is greater than or equal to the power threshold, charge the charging device through the SC circuit; or, when the charging power is less than the power threshold, charge the charging device through the step-down circuit.

[0041] In combination with the second aspect, in certain implementations of the second aspect, the above-mentioned processing module is specifically used to: shake hands with the wireless charging device based on a private protocol; if the handshake is successful, instruct the wireless charging device to charge the charging device based on the high-power charging mode; if the handshake fails, instruct the wireless charging device to charge the charging device based on the EPP charging mode; if the instruction of the wireless charging device to charge the charging device based on the EPP charging mode fails, instruct the wireless charging device to charge the charging device based on the BPP charging mode.

[0042] In combination with the second aspect, in some implementations of the second aspect, the processing module is further used to: if the handshake fails and there is an indication of charging based on the BPP charging mode, instruct the wireless charging device to charge the charging device based on the BPP charging mode.

[0043] In a third aspect, the present application provides a charging device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the charging performs the method described in the first aspect.

[0044] In a fourth aspect, the present application provides a terminal device, which can be used to execute the method described in the first aspect.

[0045] In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method described in the first aspect is implemented.

[0046] In a sixth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method described in the first aspect.

[0047] In a seventh aspect, the present application provides a chip, the chip comprising a processor, the processor being used to call a computer program in a memory to execute the method described in the first aspect.

[0048] It should be understood that the second to seventh aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a schematic diagram of a wireless charging system;

[0050] Figure 2 is a schematic flow chart of a charging method;

[0051] Figure 3 It is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0052] Figure 4 This is a battery charging schematic diagram provided in an embodiment of the present application;

[0053] Figure 5 It is a software structure block diagram of a terminal device provided in an embodiment of the present application;

[0054] Figure 6 is a schematic flow chart of a charging method provided in an embodiment of the present application;

[0055] Figure 7 is a schematic flow chart of another charging method provided in an embodiment of the present application;

[0056] Figure 8 is a schematic flow chart of a processing method provided in an embodiment of the present application;

[0057] Fig. 9 is a schematic flow chart of another charging method provided in an embodiment of the present application;

[0058] Fig.10 is a schematic flow chart of another charging method provided in an embodiment of the present application;

[0059] Fig.11 is a schematic flow chart of another charging method provided in an embodiment of the present application;

[0060] Fig.12 is a schematic flow chart of another charging method provided in an embodiment of the present application;

[0061] Fig.13 is a schematic flow chart of another charging method provided in an embodiment of the present application;

[0062] Fig.14 is a schematic block diagram of a charging device provided in an embodiment of the present application;

[0063] Fig.15 It is a schematic block diagram of another charging device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0065] With the development of terminal devices, terminal devices can support wireless charging, that is, the terminal device is placed on the wireless charging device, and the wireless charging device can transmit electrical energy to the terminal device through electromagnetic induction.

[0066] For example, Figure 1 Schematic diagram of a wireless charging system 100 is shown. Figure 1 As shown, the wireless charging system 100 includes a terminal device 101 and a wireless charging device 102. A user can place the terminal device 101 on the wireless charging device 102, and the wireless charging device 102 detects the terminal device 101 and can transmit power to the terminal device through electromagnetic induction.

[0067] In order to increase the charging speed, one way is to deploy the same protocol on the terminal device and the wireless charging device to achieve high power output through the protocol. However, it often happens that when the terminal device needs to be charged, there is no wireless charging device deployed with the protocol, resulting in the terminal device not being able to charge, thus affecting the use of the terminal device.

[0068] A method for solving the above technical problem is as follows: while deploying the protocol that can achieve high-power charging on the terminal device, the terminal device also supports the BPP charging mode of the Qi standard protocol. In this way, when the terminal device needs to be charged and there is no wireless charging device with this protocol deployed, the terminal device can be charged by a wireless charging device that supports the BPP charging mode. Among them, the charging power of the BPP charging mode is generally 5W.

[0069] For example, Figure 2 FIG. 2 shows a schematic flow chart of an existing charging method 200. Figure 2 As shown, the method 200 may include the following steps:

[0070] S201: The terminal device detects a wireless charging device.

[0071] The terminal device detects the wireless charging device, which can be understood as the terminal device establishing a wireless communication connection with the wireless charging device.

[0072] S202: The terminal device performs handshake with the wireless charging device through a private protocol.

[0073] The terminal device can handshake with the wireless charging device according to the communication instructions of the private protocol.

[0074] S203: The terminal device determines whether the handshake is successful.

[0075] The terminal device can determine whether the handshake is successful based on whether the response message of the wireless charging device is received. If the terminal device receives the response message of the wireless charging device, it can be determined that the handshake is successful; if the terminal device does not receive the response message of the wireless charging device, it can be determined that the handshake is unsuccessful.

[0076] If the handshake between the terminal device and the wireless charging device is successful, it can be explained that the wireless charging device is deployed with the same protocol as the terminal device, and the terminal device can instruct the wireless charging device to charge with a high power, such as 50W, and execute S205. If the handshake between the terminal device and the wireless charging device is unsuccessful, it can be explained that the wireless charging device is not deployed with the same protocol as the terminal device, and the terminal device can instruct the wireless charging device to charge through the BPP charging mode, and execute S204.

[0077] S204: If the handshake fails, the terminal device instructs the wireless charging device to charge in the BPP charging mode.

[0078] If the handshake fails, that is, the handshake between the terminal device and the wireless charging device is unsuccessful, the terminal device instructs the wireless charging device to charge through the BPP charging mode, that is, to charge with a charging power of 5W.

[0079] S205: If the handshake is successful, the terminal device instructs the wireless charging device to charge at high power.

[0080] If the handshake is successful, the terminal device can instruct the wireless charging device to charge at a high power, for example, at a charging power of 50W.

[0081] However, the charging method of the above terminal device has the following problem: when the terminal device needs to be charged, if there is no wireless charging device deployed with the protocol, and there is no wireless charging device that supports the BPP charging mode, the terminal device still cannot be charged, thereby failing to ensure the normal use of the terminal device.

[0082] For example, in the above Figure 1 In the wireless charging system 100 shown, if the wireless charging device 102 is not deployed with the same protocol as the terminal device and does not support the BPP charging mode, the terminal device 101 still cannot be charged, thereby failing to ensure normal use of the terminal device.

[0083] In view of this, an embodiment of the present application provides a charging method and a charging device. When a terminal device needs to be charged, the wireless charging device can be instructed to charge the terminal device based on at least one of the supported charging modes, which is conducive to ensuring normal charging of the terminal device and improving charging flexibility.

[0084] The terminal device involved in the embodiments of the present application may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.

[0085] In order to better understand the embodiment of the present application, the hardware structure of the terminal device of the embodiment of the present application is introduced below. Figure 3 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application.

[0086] The terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a button 190, an indicator 192, a camera 193, and a display screen 194, etc.

[0087] Optionally, the above-mentioned sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0088] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0089] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, and a baseband processor. The different processing units may be independent devices or integrated into one or more processors. The processor 110 may also be provided with a memory for storing instructions and data.

[0090] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.

[0091] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 can include a program storage area and a data storage area.

[0092] The USB interface 130 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device, and can also be used to transfer data between the terminal device and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other terminal devices, such as AR devices, etc.

[0093] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of a terminal device. While the charging management module 140 is charging the battery 142, it may also power the terminal device through the power management module 141.

[0094] In some wireless charging embodiments, the charging management module 140 may include a communication module and a battery charging chip (Charge IC). The charging management module 140 may receive wireless charging input through the communication module and charge the battery 142 through the battery charging chip. The communication module may also include a register for storing voltage or current values. The battery charging chip may include a buck circuit and an SC circuit.

[0095] For example, Figure 4 A schematic diagram of battery charging is shown. Figure 4 As shown, the charging management module 140 includes a communication module 1401 and a battery charging chip 1402. The communication module 1401 also includes a low dropout regulator (LDO). The input pin of the LDO is Vrect and the output pin is Vout. When the voltage of the input pin Vrect is greater than the output pin Vout, the LDO is turned on and the communication module 1401 can receive wireless charging input.

[0096] The terminal device can control the voltage of the input pin Vrect to be greater than the output pin Vout, so that the LDO is turned on. The communication module 1401 receives the wireless charging input and can transmit it to the battery charging chip 1402. The battery charging chip 1402 receives the wireless charging input and can charge the battery 142.

[0097] Among them, when the communication module 1401 receives wireless charging input, the working mode can be a receiving mode. In this case, the communication module 1401 can also be called a receiving (receive, RX) chip or RX device, which is not limited in this embodiment of the present application.

[0098] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0099] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.

[0100] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna.

[0101] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to terminal devices. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.

[0102] The wireless communication module 160 can provide wireless communication solutions for application in terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), etc.

[0103] The terminal device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.

[0104] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The terminal device can listen to music or listen to hands-free calls through the speaker 170A. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device answers a call or voice message, the voice can be answered by placing the receiver 170B close to the human ear. The microphone 170C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0105] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. The gyroscope sensor 180B can be used to determine the motion posture of the terminal device. The air pressure sensor 180C is used to measure the air pressure. The magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device in all directions (generally three axes). The distance sensor 180F is used to measure the distance. The proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense the brightness of the ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. The touch sensor 180K is also called a "touch device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The bone conduction sensor 180M can obtain a vibration signal.

[0106] The button 190 includes a power button, a volume button, etc. The button 190 may be a mechanical button. It may also be a touch button. The terminal device may receive the button input and generate a key signal input related to the user settings and function control of the terminal device. The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, message, missed call, notification, etc.

[0107] The terminal device implements the display function through the processor 110 and the display screen 194. The processor 110 is a microprocessor for image processing and is connected to the display screen 194. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0108] The camera 193 is used to capture static images or videos. In some embodiments, the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0109] The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a microservice architecture, or a cloud architecture. The layered architecture can adopt an Android system, an Apple (IOS) system, or other operating systems, which are not limited in the embodiments of the present application. The following takes the Android system of the layered architecture as an example to illustrate the software structure of the terminal device.

[0110] Figure 5 A software structure block diagram of a terminal device applicable to the embodiments of the present application. The layered architecture divides the software system of the terminal device into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into four layers, from top to bottom, namely, the application layer (applications), the application framework layer (application framework), the Android runtime (Android runtime) and the system library, and the kernel layer (kernel).

[0111] The application layer can include a series of application packages. The application layer runs applications by calling the application programming interface (API) provided by the application framework layer. Figure 5 As shown, the application package may include applications such as camera, gallery, calendar, memo, map, navigation, Bluetooth, music, video call, short message, etc.

[0112] The application framework layer provides API and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 5 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager, etc.

[0113] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data can include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, the display interface including the SMS notification icon can include a view for displaying text and a view for displaying pictures. The phone manager is used to provide communication functions for terminal devices. For example, the management of call status (including connected, hung up, etc.). The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the top status bar of the system in the form of an icon or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.

[0114] The Android system runtime includes a core library and a virtual machine. The Android system runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection. The system library can contain modules with multiple functions, such as: surface manager, media library, 3D graphics processing library, and charging processing module.

[0115] The surface manager is used to manage the display subsystem and provides the fusion of two-dimensional layers and three-dimensional layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: JPG, PNG, etc. The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis and layer processing. The charging processing module is used to determine the charging mode. Among them, the charging mode is BPP charging mode, high-power charging mode (that is, high-power charging is achieved through a private protocol), or EPP charging mode.

[0116] The kernel layer is a layer between hardware and software. The kernel layer is used to drive the hardware to make the hardware work. The kernel layer at least includes display driver, fingerprint driver, camera driver and Bluetooth driver, etc., which are not limited in the embodiments of the present application.

[0117] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0118] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0119] Figure 6 1 shows a schematic flow chart of a charging method 600 provided in an embodiment of the present application. The method 600 can be executed by a terminal device, such as a mobile phone. The hardware structure diagram of the terminal device can be as described above. Figure 3 As shown, the software architecture diagram of the terminal device can be as described above Figure 5 As shown, the embodiments of the present application are not limited thereto.

[0120] like Figure 6 As shown, the method 600 may include the following steps:

[0121] S601: The terminal device detects a wireless charging device.

[0122] When the power cord of the wireless charging device is connected to a power source, the wireless charging device is in a powered-on state. If the terminal device is in contact with the wireless charging device or is near the wireless charging device, the terminal device can establish a wireless communication connection with the wireless charging device, which can also be called detecting the wireless charging device.

[0123] S602: The terminal device instructs the wireless charging device to charge in the BPP charging mode.

[0124] S603: The terminal device performs handshake with the wireless charging device through a private protocol.

[0125] The terminal device can handshake with the wireless charging device according to the communication instructions of the private protocol.

[0126] S604: The terminal device determines whether the handshake is successful.

[0127] The terminal device can determine whether the handshake is successful based on whether the response message of the wireless charging device is received. If the terminal device receives the response message of the wireless charging device, it can be determined that the handshake is successful; if the terminal device does not receive the response message of the wireless charging device, it can be determined that the handshake is unsuccessful.

[0128] Exemplarily, the terminal device may send an identity identifier to the wireless charging device in accordance with the communication instructions of the private protocol. After receiving the identity identifier, the wireless charging device may determine whether the wireless charging device is deployed with the same protocol based on the identity identifier. If the wireless charging device is deployed with the same protocol, the wireless charging device may send a response message to the terminal device. Based on the response message, the terminal device may determine that the wireless charging device is deployed with the same protocol, that is, the handshake is successful. If the wireless charging device is not deployed with the same protocol, the wireless charging device may not send a response message to the terminal device. If the terminal device does not receive the response message, it may be determined that the wireless charging device is not deployed with the same protocol, that is, the handshake is unsuccessful or the handshake fails.

[0129] If the handshake between the terminal device and the wireless charging device is successful, the wireless charging device can be instructed to charge in a high-power charging mode, such as 50W, and S607 is executed. If the handshake between the terminal device and the wireless charging device is unsuccessful, the wireless charging device can be instructed to reset, and S605 is executed.

[0130] S605: If the handshake fails, the terminal device sends a reset instruction to the wireless charging device, where the reset instruction is used to instruct the wireless charging device to power off and then power on again.

[0131] The reset instruction may also be referred to as a restart instruction, which is not limited in the embodiments of the present application.

[0132] The terminal device instructs the wireless charging device to power off and then power on again, so as to switch to charging through the EPP charging mode.

[0133] It should be noted that if the wireless charging device does not support EPP charging mode charging, the wireless charging device will not respond to the reset instruction.

[0134] S606: After the wireless charging device is successfully reset, the terminal device instructs the wireless charging device to charge through the EPP charging mode.

[0135] The terminal device detects that the wireless charging device is successfully reset and can instruct the wireless charging device to charge through the EPP charging mode.

[0136] Before the wireless charging device enters the EPP charging mode for charging, the terminal device and the wireless charging device can perform power negotiation, and then perform EPP charging mode charging with the negotiated power. The negotiated power can generally be 10W, 12W or 15W, but the embodiments of the present application are not limited thereto.

[0137] In the EPP charging mode, the terminal device can charge the battery through a step-down circuit, namely a Buck circuit, or it can charge the battery based on an SC circuit. Among them, the Buck circuit is suitable for low-power charging scenarios, and the SC circuit is suitable for high-power charging scenarios. Specifically, the terminal device can determine the specific charging circuit based on the negotiated power. For example, if the negotiated power is 15W, the terminal device can instruct the wireless charging device to charge through the SC circuit; if the negotiated power is 10W, the terminal device can instruct the wireless charging device to charge through the Buck circuit. This implementation method can select a suitable charging circuit (Buck circuit or SC circuit) when the charging power (ie, negotiated power) provided by the wireless charging device to the terminal device based on the EPP charging mode meets different requirements. It can be applied to different charging scenarios and can also improve the charging speed in different charging scenarios.

[0138] S607: If the handshake is successful, the terminal device instructs the wireless charging device to charge in a high-power charging mode.

[0139] If the handshake is successful, the terminal device can instruct the wireless charging device to charge through a high-power charging mode, for example, charging at a charging power of 50W.

[0140] It should be noted that if the wireless charging device does not support the EPP charging mode or does not respond to the reset instruction, the wireless charging device can instruct the wireless charging device to charge through the BPP charging mode.

[0141] In the charging method provided in the embodiment of the present application, when a wireless charging device is detected and the handshake with the wireless charging device fails, the terminal device can instruct the wireless charging device to charge through the EPP charging mode. The charging power of the EPP charging mode is greater than the charging power of the BPP charging mode, which can reduce the charging time and help improve the charging efficiency. In addition, when the terminal device needs to be charged, the wireless charging device can be instructed to charge the terminal device based on at least one of the supported charging modes, which is conducive to ensuring the normal charging of the terminal device and improving the charging flexibility. In addition, adding the EPP charging mode to the original charging mode can be applicable to wireless terminal devices in the BPP charging mode and the high-power charging mode.

[0142] In order to better understand the charging method provided in the embodiment of the present application, the embodiment of the present application describes the specific implementation method between the terminal device and the wireless charging device.

[0143] Figure 7 700 is a schematic flow chart of a charging method. Figure 7 As shown, the terminal device includes a processing module and a communication module. The processing module is used to determine the charging mode. For example, the processing module can be the above Figure 5 The communication module is used to communicate with the wireless charging device. For example, the communication module can execute the above Figure 4 The method 700 is applicable to the scenario where the terminal device is in contact with the wireless charging device, such as the above Figure 1 The wireless charging system 100 is shown, but the embodiments of the present application are not limited thereto.

[0144] like Figure 7 As shown, the method 700 may include the following steps:

[0145] S701. The wireless charging device is in a powered-on state and sends a digital pulse (ping) to a terminal device. Correspondingly, the terminal device receives the digital pulse, which is used to determine the identity of the terminal device.

[0146] The wireless charging device can send digital pulses to any object in contact with it to determine the identity of the other party. The wireless charging device can determine the identity of the other party based on whether a response message is received or the content of the received response message.

[0147] S702: The communication module of the terminal device receives the digital pulse, determines the mode as the RX mode, and sends an identity A to the wireless charging device. Correspondingly, the wireless charging device receives the identity A, which is used to indicate that the terminal device is an RX device.

[0148] The communication module of the terminal device may include three modes, namely, RX mode, transmit (TX) mode and default mode. The communication module receives a digital pulse and may determine the mode as RX mode. Identity A may be carried on a signaling switch point (SSP), and the communication module may send an SSP to the wireless charging device to send identity A to the wireless charging device. The SSP may also include a signal strength, which is used to indicate the degree of contact between the terminal device and the wireless charging device. The greater the signal strength, the closer the contact between the terminal device and the wireless charging device.

[0149] The wireless charging device can determine the identity of the terminal device based on the identity identifier A in the SSP, and can also determine the contact tightness between the terminal device and the wireless charging device based on the signal strength in the SSP.

[0150] S703: The communication module of the terminal device sends an interrupt indication to the processing module of the terminal device. Correspondingly, the processing module of the terminal device receives the interrupt indication, where the interrupt indication is used to indicate that a wireless charging device has been detected.

[0151] The interrupt indication may be represented by a POWER ON interrupt, but the embodiments of the present application are not limited thereto.

[0152] The embodiment of the present application does not limit the execution order of S702 and S703, that is, the communication module of the terminal device can execute S702 and S703 at the same time, or execute S702 first and then S703, or execute S703 first and then S702.

[0153] S704: The processing module of the terminal device sends indication information of charging in the BPP charging mode to the communication module of the terminal device based on the interrupt indication. Correspondingly, the communication module of the terminal device receives the indication information of charging in the BPP charging mode.

[0154] The indication information of charging through the BPP charging mode is used to instruct the wireless charging device to charge through the BPP charging mode.

[0155] The processing module of the terminal device can use epp_flag to mark the charging mode. In one example, epp_flag=0 is used to indicate charging through the BPP charging mode, and epp_flag=1 is used to indicate charging through the EPP charging mode. In another example, epp_flag=1 is used to indicate charging through the BPP charging mode, and epp_flag=0 is used to indicate charging through the EPP charging mode.

[0156] In the embodiment of the present application, epp_flag=0 is used to indicate charging in BPP charging mode, and epp_flag=1 is used to indicate charging in EPP charging mode. Based on the interrupt indication, the processing module of the terminal device can send indication information of charging in BPP charging mode, that is, epp_flag=0, to the communication module of the terminal device.

[0157] S705. The communication module of the terminal device sends the instruction information of charging in the BPP charging mode to the wireless charging device based on the instruction information of charging in the BPP charging mode. Correspondingly, the wireless charging device receives the instruction information of charging in the BPP charging mode.

[0158] The communication module of the terminal device can use [Neg] to mark the charging mode. In one example, [Neg] = 0 is used to indicate charging through the BPP charging mode, and [Neg] = 1 is used to indicate charging through the EPP charging mode. In another example, [Neg] = 1 is used to indicate charging through the BPP charging mode, and [Neg] = 0 is used to indicate charging through the EPP charging mode.

[0159] In the embodiment of the present application, [Neg] = 0 is used to indicate charging through the BPP charging mode, and [Neg] = 1 is used to indicate charging through the EPP charging mode. The communication module of the terminal device sends the indication information of charging through the BPP charging mode to the wireless charging device based on the indication information of charging through the BPP charging mode, that is, [Neg] = 0. Based on [Neg] = 0, the wireless charging device can be charged through the BPP charging mode, that is, charged with a charging power of 5W.

[0160] S706: The communication module of the terminal device may also send an identity identifier B to the wireless charging device. Correspondingly, the wireless charging device receives the identity identifier B, which is used to perform a handshake with the wireless charging device.

[0161] S705 and S706 can be executed simultaneously by the communication module of the terminal device, that is, the terminal device instructs the wireless charging device to charge in the BPP charging mode and shakes hands with the wireless charging device through a private protocol. The identity B is different from the identity A mentioned above.

[0162] The communication module of the terminal device can send the identity B to the wireless charging device through a preset communication instruction. If the wireless charging device can recognize the communication instruction and determine that it comes from the same manufacturer based on the identity B, the wireless charging device sends a response message to the communication module of the terminal device, which can indicate that the handshake is successful. If the wireless charging device cannot recognize the communication instruction, it will not respond to it, which can indicate that the handshake has failed.

[0163] If the handshake is successful, the wireless charging device and the terminal device can be charged with high power. If the handshake fails, if the wireless charging device supports EPP charging mode charging, the wireless charging device and the terminal device can be charged with EPP charging mode, and the communication module of the terminal device can execute S707~S715.

[0164] S707: When the communication module of the terminal device does not receive a response, the communication module of the terminal device sends information indicating that no response has been received to the processing module of the terminal device. Correspondingly, the processing module of the terminal device receives the information indicating that no response has been received.

[0165] If the communication module of the terminal device does not receive a response, it may indicate that the wireless charging device and the terminal device are not from the same manufacturer. The communication module of the terminal device may send information indicating that no response has been received to the processing module of the terminal device, and the processing module of the terminal device may determine the charging mode based on the current situation.

[0166] S708. The processing module of the terminal device instructs the communication module of the terminal device to send indication information of a reset instruction based on the information that no response is received.

[0167] Based on the information that no response was received, the processing module of the terminal device can instruct the communication module of the terminal device to send indication information of a reset instruction, so that the communication module of the terminal device sends a reset instruction to the wireless charging device, which is conducive to the wireless charging device entering the EPP charging mode for charging after being reset.

[0168] S709. The communication module of the terminal device sends a reset instruction to the wireless charging device based on the instruction information for sending the reset instruction. Correspondingly, the wireless charging device receives the reset instruction.

[0169] The communication module of the terminal device sends a reset command to the wireless charging device, instructing the wireless charging device to reset, that is, power off and then power on again. The terminal device can send a reset command through the wireless charging standard QI protocol. If the wireless charging device does not support the QI protocol or does not support EPP charging mode charging, the wireless charging device will not respond to the reset command, and the wireless charging device and the terminal device can charge through the BPP charging mode.

[0170] In one example, the reset instruction may be an error package such as an SSP, an incremental development package (IDP), or a configuration information (CONFIGP). In order to ensure that the wireless charging device can receive the reset instruction, the communication module of the terminal device may send a complex event processing (CEP) instruction after sending three consecutive reset instructions. The CEP instruction may be 120 milliseconds, but the embodiments of the present application are not limited thereto. In order to ensure that the wireless charging device accurately responds to the reset instruction, the reset instruction may be sent during the charging process between the terminal device and the wireless charging device based on the BPP charging mode, that is, during the power transmission (PT) stage, and the reset instruction shall be sent strictly in accordance with the timing specified by the QI protocol.

[0171] S710. The wireless charging device is powered off and then powered on again based on a reset instruction, and sends a digital pulse (ping) to the terminal device. Correspondingly, the terminal device receives the digital pulse, which is used to determine the identity of the terminal device.

[0172] If the wireless charging device supports the QI protocol and supports the EPP charging mode, the wireless charging device can be powered on again after being powered off based on the reset instruction. When the wireless charging device is in the powered-on state, the wireless charging device sends a digital pulse (ping) to the terminal device.

[0173] S711. The communication module of the terminal device receives the digital pulse and sends an identity A to the wireless charging device. Correspondingly, the wireless charging device receives the identity A, and the identity A is used to indicate that the terminal device is an RX device.

[0174] This step is the same as the above-mentioned S702 and will not be described again here.

[0175] S712. The communication module of the terminal device sends an interrupt indication to the processing module of the terminal device. Correspondingly, the processing module of the terminal device receives the interrupt indication, where the interrupt indication is used to indicate that a wireless charging device has been detected.

[0176] This step is the same as the above-mentioned S703 and will not be described again here.

[0177] S713. The processing module of the terminal device sends indication information of charging through the EPP charging mode to the communication module of the terminal device based on the interrupt indication. Correspondingly, the communication module of the terminal device receives the indication information of charging through the EPP charging mode.

[0178] The processing module of the terminal device receives the interrupt indication, which indicates that the wireless charging device is powered on again. It can send indication information of charging in EPP charging mode to the communication module of the terminal device, that is, epp_flag=1, and the communication module of the terminal device can receive epp_flag=1.

[0179] S714. The communication module of the terminal device sends the instruction information of charging in the EPP charging mode to the wireless charging device based on the instruction information of charging in the EPP charging mode. Correspondingly, the wireless charging device receives the instruction information of charging in the EPP charging mode.

[0180] Based on epp_flag=1, the communication module of the terminal device can update [Neg], that is, update [Neg]=0 to [Neg]=1, and send indication information of charging through the EPP charging mode to the wireless charging device, that is, [Neg]=1.

[0181] S715: The wireless charging device charges the terminal device through the EPP charging mode based on the instruction information for charging through the EPP charging mode.

[0182] The wireless charging device can charge the terminal device through the EPP charging mode based on the indication information of charging through the EPP charging mode, that is, [Neg]=1.

[0183] The wireless charging device can negotiate power with the terminal device and charge based on the negotiated power, which is greater than the charging power of the BPP charging mode.

[0184] In the charging method provided in the embodiment of the present application, the processing module receives an interrupt indication, and can determine that the wireless charging device is detected. When no response to the identity identifier B is received from the wireless charging device, it is determined that the handshake has failed. When the interrupt indication is received again, it is determined that the wireless charging device is powered on again. The wireless charging device can be instructed to charge through the EPP charging mode. The charging power of the EPP charging mode is greater than the charging power of the BPP charging mode, which can reduce the charging time and help improve the charging efficiency.

[0185] As an optional embodiment, before executing the above S707, the communication module of the terminal device may perform multiple, for example, three handshakes on the wireless charging device. If multiple handshakes fail, executing S707 is helpful to accurately determine that the terminal device and the wireless charging device cannot successfully handshake.

[0186] For example, Figure 8 FIG. 8 is a schematic flow chart of a processing method 800. The method 800 may be executed by a communication module of a terminal device. Figure 8 As shown, the method 800 may include the following steps:

[0187] S801. After executing S706, if the communication module of the terminal device does not receive a response, it can determine whether the number of times the identity B is sent exceeds 3 times.

[0188] After executing S706, if no response is received, the communication module of the terminal device may determine whether the number of times the identity identifier B is sent exceeds three times.

[0189] Exemplarily, the number of times identity identifier B is sent can be represented by the symbol tx_id_err_cnt, the initial value of tx_id_err_cnt can be 0, the communication module of the terminal device sends identity identifier B once, and can update the value of tx_id_err_cnt once, such as tx_id_err_cnt++, and if no response is received, determine whether the updated tx_id_err_cnt is greater than 3.

[0190] It should be noted that 3 times is just an example and is not limited to this in the embodiments of the present application.

[0191] If the number of times does not exceed 3, it can be explained that the communication module of the terminal device can try to shake hands with the wireless charging device again, that is, execute S802. If the number of times exceeds 3, it can be explained that the communication module of the terminal device can fail to shake hands with the wireless charging device, and the processing module of the terminal device can be informed that no response has been received, that is, execute the above S707.

[0192] S802: If it does not exceed 3 times, the communication module of the terminal device sends the identity B again.

[0193] If it does not exceed 3 times, the communication module of the terminal device can send the identity B to the wireless charging device again, that is, try to handshake again.

[0194] S803: The communication module of the terminal device determines whether a response is received.

[0195] The communication module of the terminal device may again determine whether a response is received.

[0196] Exemplarily, the communication module of the terminal device can determine whether a response is received by whether tx_id is equal to 0x8866. tx_id!=0x8866 can indicate that a response is received, and tx_id=0x8866 can indicate that no response is received. Alternatively, tx_id!=0x8866 can indicate that no response is received, and tx_id=0x8866 can indicate that a response is received.

[0197] If a response is received, it can be said that the handshake between the terminal device and the wireless charging device is successful, and the processing module of the terminal device can be informed that the response is received, that is, the above S804 is executed. If no response is received, the communication module of the terminal device can again determine whether the number of times the identity B is sent exceeds 3 times, that is, the above S801 is executed.

[0198] S804: If a response is received, the communication module of the terminal device may send information indicating that a response is received to the processing module of the terminal device. Correspondingly, the processing module of the terminal device receives the information indicating that a response is received.

[0199] Based on the received response information, the processing module of the terminal device can determine that the handshake between the terminal device and the wireless charging device is successful, and can instruct the wireless charging device to charge at a high power, such as 50W or 100W, through the communication module of the terminal device.

[0200] In the processing method provided in the embodiment of the present application, the communication module can perform three handshakes with the wireless charging device. If all of them are unsuccessful, it is determined that the handshake has failed, which is conducive to accurately determining that the terminal device and the wireless charging device cannot successfully handshake, and avoiding the probability of misjudgment.

[0201] Optionally, if the handshake between the terminal device and the wireless charging device is successful, the terminal device and the wireless charging device are charged through high power. During the charging process, if there is an instruction of communication failure, the BPP charging mode is directly entered for charging, which is conducive to ensuring that the charging needs of the terminal device are met.

[0202] As an optional embodiment, after the above S709, if the wireless charging device does not respond to the reset instruction or responds to the reset instruction with a delay, the terminal device can instruct the wireless charging devices to charge each other through the BPP charging mode.

[0203] For example, Fig. 9 900 is a schematic flow chart of a charging method. Fig. 9 As shown, the method 900 may include the following steps:

[0204] S901. After the above S709, the communication module of the terminal device detects that no digital pulse is received within a preset time period.

[0205] There may be multiple possible situations when the communication module of the terminal device does not receive the digital pulse within the preset time. In one possible situation, the wireless charging device does not respond to the reset instruction, and the terminal device does not receive the digital pulse within the preset time. In another possible situation, the time length of the wireless charging device responding to the reset instruction is longer than the preset time, resulting in the terminal device not receiving the digital pulse within the preset time.

[0206] If the wireless charging device does not respond to the reset command, there are multiple possible situations. In one possible situation, the wireless charging device does not power off based on the reset command and remains in a powered-on state. In another possible situation, the wireless charging device successfully powers off based on the reset command, but does not power on again and remains in a powered-off state.

[0207] S902. The communication module of the terminal device sends an interrupt indication to the processing module of the terminal device. Correspondingly, the processing module of the terminal device receives the interrupt indication, where the interrupt indication is used to indicate that the wireless charging device does not respond to the reset instruction.

[0208] The interrupt indication may be represented by a POWER ON interrupt, but the embodiments of the present application are not limited thereto.

[0209] S903: The processing module of the terminal device sends indication information of charging in the BPP charging mode to the communication module of the terminal device based on the interrupt indication. Correspondingly, the communication module of the terminal device receives the indication information of charging in the BPP charging mode.

[0210] The processing module of the terminal device sends indication information of charging in the BPP charging mode to the communication module of the terminal device based on the interrupt indication, and instructs the wireless charging device to charge in the BPP charging mode through the communication module of the terminal device.

[0211] Exemplarily, the processing module of the terminal device updates epp_flag=1 to epp_flag=0 based on the interrupt indication, and the indication information of charging in the BPP charging mode may include epp_flag=0.

[0212] S904. The communication module of the terminal device sends the instruction information of charging in the BPP charging mode to the wireless charging device based on the instruction information of charging in the BPP charging mode. Correspondingly, the wireless charging device receives the instruction information of charging in the BPP charging mode.

[0213] The communication module of the terminal device sends the instruction information of charging through the BPP charging mode to the wireless charging device based on the instruction information of charging through the BPP charging mode, instructing the wireless charging device to charge through the BPP charging mode.

[0214] Exemplarily, the processing module of the terminal device can update [Neg] based on the indication information of charging in the BPP charging mode, i.e., update [Neg]=1 to [Neg]=0, and send the indication information of charging in the BPP charging mode, i.e., [Neg]=0, to the wireless charging device.

[0215] S905: The wireless charging device charges in the BPP charging mode based on the instruction information for charging in the BPP charging mode.

[0216] Exemplarily, the wireless charging device can be charged in the BPP charging mode based on the indication information of charging in the BPP charging mode, ie, [Neg]=0.

[0217] The charging method provided in the embodiment of the present application can be applied to a variety of wireless charging devices by charging in the BPP charging mode when the wireless charging device is not reset, and has wide use and greater flexibility.

[0218] If the reason why the communication module of the terminal device does not receive the digital pulse within the preset time length is that the time length of the wireless charging device's response to the reset instruction is greater than the preset time length, in order to avoid the communication module of the terminal device sending the reset instruction again when receiving the digital pulse sent by the wireless charging device based on the reset instruction, and detecting again that the digital pulse is not received within the preset time length, and determining again to charge through the BPP charging mode, and repeating this cycle to reduce the charging efficiency, the embodiment of the present application proposes that when the communication module of the terminal device does not receive the digital pulse within the preset time length, the delayed power-off flag can be set to true. When the communication module of the terminal device receives the digital pulse sent by the wireless charging device based on the reset instruction, it detects that the delayed power-off flag is set to true. The processing module of the terminal device can directly instruct the wireless charging device to charge through the BPP charging mode through the communication module of the terminal device, that is, enter the forced BPP charging mode, avoid repeatedly sending the reset instruction, and then avoid detecting the digital pulse within the preset time length again, which is beneficial to improving the charging efficiency.

[0219] In this implementation, the user replaces the wireless charging device, and the replaced wireless charging device can respond to the reset instruction. If the delayed power-off flag is always set to true, the wireless charging device will be directly charged in the BPP charging mode after it is powered on, and will not be able to enter the EPP charging mode for charging, affecting the charging efficiency. Therefore, after receiving the signal that the wireless charging device enters the BPP charging mode for charging, the communication module of the terminal device can set the delayed power-off flag to false. The communication module of the terminal device detects the digital pulse after the wireless charging device is powered on, and detects that the delayed power-off flag is set to false. The processing module of the terminal device can instruct the communication module of the terminal device to send a reset instruction, and after receiving a response to the reset instruction (i.e., receiving a digital pulse within a preset time length), the communication module of the terminal device instructs the wireless charging device to charge in the BPP charging mode.

[0220] For example, Fig.10 1 shows a schematic flow chart of a charging method 1000. The method 1000 may be executed by a communication module of a terminal device. Fig.10 As shown, the method 1000 may include the following steps:

[0221] S1001. After the above 901, the communication module of the terminal device may also mark the delayed power-off flag as true.

[0222] Exemplarily, the delayed power-off flag may be represented by the symbol chk_tx_delay_pd, and the communication module of the terminal device marks the delayed power-off flag as true, that is, chk_tx_delay_pd=true.

[0223] The communication module of the terminal device can also execute the above S802 to S804, that is, the communication module of the terminal device can send an interrupt indication to the processing module of the terminal device, and the interrupt indication is used to indicate that the wireless charging device has not responded to the reset instruction, and can also indicate that the delayed power-off identification mark is true. Based on the interrupt indication, the processing module of the terminal device can send indication information of charging through the BPP charging mode to the communication module of the terminal device, and correspondingly, the communication module of the terminal device receives the indication information of charging through the BPP charging mode. Based on the indication information of charging through the BPP charging mode, the communication module of the terminal device sends the indication information of charging through the BPP charging mode to the wireless charging device, and correspondingly, the wireless charging device receives the indication information of charging through the BPP charging mode.

[0224] S1002: The communication module of the terminal device detects that the BPP charging mode has been entered for charging, and the delayed power-off flag may be marked as false.

[0225] The embodiment of the present application does not limit the specific implementation method of the communication module of the terminal device detecting that the charging has entered the BPP charging mode. The communication module of the terminal device detects that the charging has entered the BPP charging mode and can update the delayed power-off flag, that is, change the delayed power-off flag to false.

[0226] Exemplarily, the communication module of the terminal device detects that it has entered the BPP charging mode for charging, and may mark the delayed power-off flag as false, that is, chk_tx_delay_pd=false.

[0227] The charging method provided in the embodiment of the present application can improve the charging efficiency in a scenario where the wireless charging device does not respond to a reset instruction or responds to a reset instruction with a delay by controlling a delayed power-off flag.

[0228] In the above method 700, S715, the wireless charging device charges the terminal device through the EPP charging mode based on the indication information of charging through the EPP charging mode, which may include: the wireless charging device negotiates the charging power and charging current with the communication module of the terminal device, and charges based on the charging power and charging current.

[0229] For example, Fig.11 1 shows a schematic flow chart of a charging method 1100. Fig.11 As shown, the method 1100 may include the following steps:

[0230] S1101. After executing S714 above, the communication module of the terminal device may send indication information for reporting the maximum power to the wireless charging device. Correspondingly, the wireless charging device receives the indication information for reporting the maximum power. The indication information for reporting the maximum power is used to instruct the wireless charging device to report the maximum power that can be supported.

[0231] Exemplarily, the indication information for reporting the maximum power may be represented by a request to receive message (Request TX Cap), and the communication module of the terminal device may send a Request TX Cap to the wireless charging device to instruct the wireless charging device to report the maximum power that can be supported.

[0232] S1102: The wireless charging device sends the maximum power A to the communication module of the terminal device based on the indication information of the reported maximum power. Correspondingly, the communication module of the terminal device receives the maximum power A.

[0233] The maximum power that a wireless charging device can support is represented by the maximum power A.

[0234] Exemplarily, the wireless charging device sends a guaranteed power (Guaranteed Power) message to the communication module of the terminal device based on the indication information of reporting the maximum power, and the Guaranteed Power message may include the maximum power A.

[0235] S1103. The communication module of the terminal device sends the maximum power B that it can support to the wireless charging device based on the maximum power A. Correspondingly, the wireless charging device receives the maximum power B.

[0236] The maximum power that the terminal device can support is represented by the maximum power B.

[0237] S1104: The wireless charging device may determine the charging power based on the maximum power B and the maximum power A.

[0238] The embodiment of the present application does not limit the specific implementation method of how the wireless charging device determines the charging power. The charging power can be 10W, 12W or 15W, which is not limited in the embodiment of the present application.

[0239] S1105. The wireless charging device sends charging power to the communication module of the terminal device, and correspondingly, the communication module of the terminal device receives the charging power.

[0240] The charging power may be the power used by the wireless charging device to charge, and may also be referred to as the negotiated power. The wireless charging device may send the charging power to the communication module of the terminal device.

[0241] Exemplarily, the wireless charging device may send an acknowledgment (ACK) message to the communication module of the terminal device, where the ACK message includes the charging power.

[0242] S1106. The communication module of the terminal device sends current calibration instruction information to the wireless charging device. Correspondingly, the wireless charging device receives the current calibration instruction information, where the current calibration instruction information is used to instruct the wireless charging device to perform current calibration.

[0243] The communication module of the terminal device sends the indication information of current calibration to the wireless charging device. At this time, the wireless charging device does not carry current and can perform a slight calibration on the current based on the indication information of current calibration.

[0244] S1107: The wireless charging device calibrates the current based on the indication information of the current calibration, and sends a response message to the communication module of the terminal device. Correspondingly, the communication module of the terminal device receives the response message.

[0245] The response message may be an ACK message, which is used to indicate that the current has been calibrated.

[0246] S1108. The communication module of the terminal device sends voltage loading indication information to the processing module of the terminal device based on the response message. Correspondingly, the processing module of the terminal device receives the voltage loading indication information. The voltage loading indication information is used to instruct the processing module of the terminal device to determine the loading voltage.

[0247] The communication module of the terminal device sends voltage loading indication information to the processing module of the terminal device in order to activate the charging path on the terminal device side.

[0248] For example, the load voltage can be Figure 4 The target voltage of the output pin Vout in the communication module 1401 is shown.

[0249] S1109. The processing module of the terminal device sends a loading voltage to the communication module of the terminal device based on the indication information of the voltage loading. Correspondingly, the communication module of the terminal device receives the loading voltage.

[0250] The load voltage is a preset value, which may be 9V (voltage, V) or 12V, and this embodiment of the present application does not limit this.

[0251] S1110. The communication module of the terminal device sends the loading voltage to the wireless charging device based on the loading voltage. Correspondingly, the wireless charging device receives the loading voltage.

[0252] The processing module of the terminal device sends a load voltage to the wireless charging device through the communication module of the terminal device. On the one hand, this is to make the wireless charging device generate current so as to facilitate current calibration again. On the other hand, this is to determine whether the wireless charging device can provide a larger voltage.

[0253] The wireless charging device performs loading based on the loading voltage to generate current. It should be noted that the actual voltage after the wireless charging device performs loading can be determined according to the capabilities of the wireless charging device, and the actual voltage can be less than or equal to the loading voltage. If the actual voltage is less than the preset voltage, it can be said that the wireless charging device cannot provide a larger voltage. If the actual voltage is greater than or equal to the preset voltage, it can be said that the wireless charging device can provide a larger voltage, wherein the preset voltage is less than the loading voltage. For example, if the loading voltage is 9V, the preset voltage can be 8V.

[0254] For example, the load voltage is Figure 4 The target voltage of the output pin Vout in the communication module 1401 shown in FIG. 1 is the target voltage of the output pin Vout in the communication module 1401 shown in FIG. 1 . The wireless charging device performs loading based on the loading voltage. The actual voltage loaded by the wireless charging device is Figure 4 The voltage of the output pin Vrect in the communication module 1401 is shown.

[0255] S1111. The communication module of the terminal device may also send current calibration indication information to the wireless charging device. Correspondingly, the wireless charging device receives the current calibration indication information, where the current calibration indication information is used to instruct the wireless charging device to perform current calibration.

[0256] The communication module of the terminal device can also send current calibration indication information to the wireless charging device. At this time, the wireless charging device generates current due to the load voltage, and the current can be heavily calibrated based on the current calibration indication information.

[0257] S1112. The wireless charging device calibrates the current based on the indication information of the current calibration, and sends a response message to the communication module of the terminal device. Correspondingly, the communication module of the terminal device receives the response message.

[0258] The wireless charging device can obtain a current curve based on these two calibrations (the first light calibration and the second heavy calibration) so that in the subsequent charging process, the current value can meet the current curve, which is helpful to prevent the phenomenon of charging being interrupted due to excessive current during the charging process.

[0259] The response message may be an ACK message, which may be used to indicate that the current has been calibrated.

[0260] S1113. The communication module of the terminal device determines whether the actual voltage loaded by the wireless charging device is less than the preset voltage based on the response message.

[0261] If the actual voltage pulled by the wireless charging device is less than the preset voltage, it means that the wireless charging device cannot provide a higher voltage, and the terminal device and the wireless charging device can be charged with a lower power, such as 5W, in the EPP charging mode. If the actual voltage pulled by the wireless charging device is greater than or equal to the preset voltage, it means that the wireless charging device can provide a higher voltage, and the terminal device and the wireless charging device can be charged with a higher power, such as the charging power (i.e. the negotiated power) in the EPP charging mode.

[0262] For example, at a load voltage such as the above Figure 4 In the case where the voltage of the output pin Vout is 9V, the preset voltage may be 8V. If the actual voltage loaded by the wireless charging device is as shown above Figure 4 The voltage of the input pin Vrect shown is less than 8V, and the terminal device and the wireless charging device can be charged at 5W in the EPP charging mode. If the actual voltage pulled by the wireless charging device is greater than or equal to 8V, the terminal device and the wireless charging device can be charged at 15W in the EPP charging mode.

[0263] When the actual voltage pulled by the wireless charging device is less than the preset voltage, or when the actual voltage pulled by the wireless charging device is greater than or equal to the preset voltage, the communication module of the terminal device can execute S1114.

[0264] S1114. The communication module of the terminal device sends a control error packet (CEP) or a receiver power packet (RPP) to the wireless charging device. Correspondingly, the wireless charging device receives the CEP or RPP.

[0265] The communication module of the terminal device and the wireless charging device enter the charging process of the EPP charging mode, which can be called the power transmission (PT) stage.

[0266] Exemplarily, the communication module of the terminal device can send a CEP to the wireless charging device every 150 milliseconds, and send an RPP every 10 CEPs to perform normal charging transmission. It can be understood that if the actual voltage loaded by the wireless charging device is less than the preset voltage, the charging power can be 5W. If the actual voltage loaded by the wireless charging device is greater than or equal to the preset voltage, the charging power can be 15W.

[0267] The charging method provided in the embodiment of the present application can perform power negotiation and current calibration before the wireless charging device charges the terminal device through the EPP charging mode, and perform EPP charging mode charging based on the negotiated power and calibrated current, which is beneficial to ensuring the stability of the charging system.

[0268] The wireless charging device charges the terminal device through the EPP charging mode, and the terminal device can control the charging process of the EPP charging mode. Specifically, the communication module of the terminal device can send the negotiated power to the processing module of the terminal device, and the processing module of the terminal device can determine the charging mode and the maximum charging current according to the negotiated power, and can control the entire charging process through the maximum charging current.

[0269] The EPP charging mode includes a Buck circuit and an SC circuit. The processing module of the terminal device can determine the specific charging mode according to the negotiated power. Specifically, if the negotiated power is less than the preset power, the processing module of the terminal device can instruct the wireless charging device to charge through the Buck circuit through the communication module of the terminal device. If the negotiated power is greater than or equal to the preset power, the processing module of the terminal device can instruct the wireless charging device to charge through the SC circuit through the communication module of the terminal device.

[0270] Exemplarily, the preset power can be 15W. If the negotiated power is less than 15W, the processing module of the terminal device can determine to use the Buck circuit charging in the EPP charging mode, and the charging current can be dynamically adjusted by the step path (the value that needs to change per unit time), and finally reach the maximum current limit value and tend to a steady state. Among them, the maximum current value can be calculated by the negotiated power. For example, the maximum current value can be calculated based on the negotiated power by the following formula:

[0271] imax_by_guar_pwr=(GUA_PWR*1000 / 9000)*90%

[0272] Among them, imax_by_guar_pwr is used to indicate the maximum current value, and GUA_PWR is used to indicate the negotiated power.

[0273] If the negotiated power is 10 W, the maximum current value imax_by_guar_pwr = (10*1000 / 9000)*90% = 1 ampere (A).

[0274] If the negotiated power is 15W, the processing module of the terminal device can determine to use the SC circuit charging in the EPP charging mode. Before entering the SC circuit charging, the processing module of the terminal device can detect whether the battery voltage is within the preset voltage range and whether the battery temperature is within the preset temperature range. If both of these are met, the processing module of the terminal device can turn off the Buck circuit and initialize the battery charging chip (Charge IC), such as the above Figure 4 The battery charging chip 1402 shown. The processing module of the terminal device can also check the SC path, for example, check whether the SC path is conductive, check whether the Buck circuit is leaking current, etc., which is conducive to ensuring that the terminal device can be charged through the SC circuit. After the terminal device enters the SC circuit, the charging voltage and charging current can be adjusted based on the charging voltage parameters and the charging current parameters to control the entire charging process. Among them, the specific method of controlling charging of the terminal device under the SC circuit can be charged using existing technology, and the embodiments of the present application are not limited to this.

[0275] Optionally, during the SC circuit charging process, due to any abnormal exit from the SC circuit, the processing module of the terminal device can determine to charge through the Buck circuit in the EPP charging mode and no longer attempt to enter the SC circuit, which is conducive to avoiding frequent switching between the SC circuit and the Buck circuit.

[0276] For example, Fig.12 1 shows a schematic flow chart of a charging method 1200. Fig.12 As shown, the method 1200 may include the following steps:

[0277] S1201. A processing module of a terminal device obtains charging power.

[0278] The charging power is the power negotiated between the communication module of the terminal device and the wireless terminal device. The communication module of the terminal device sends the negotiated power to the processing module of the terminal device, and the processing module of the terminal device can obtain the negotiated power, that is, the charging power.

[0279] S1202: The processing module of the terminal device determines whether the charging power is a preset power.

[0280] The preset power may be 15W, but this is not limited in the embodiment of the present application.

[0281] Exemplarily, the charging power can be represented by the symbol GUA_PWR, the preset power can be 15W, and the processing module of the terminal device determines whether the charging power is the preset power, that is, determines whether GUA_PWR is equal to 15.

[0282] If the charging power is the preset power, the processing module of the terminal device can determine whether the conditions for entering the SC circuit are met, that is, execute steps S1204 to S1210. If the charging power is not the preset power, the processing module of the terminal device can determine to charge in Buck mode, that is, execute S1203.

[0283] S1203: If the charging power is not the preset power, the processing module of the terminal device may determine to charge through the Buck circuit.

[0284] If the charging power is not the preset power, the processing module of the terminal device can determine to charge through the Buck circuit, and instruct the wireless charging device to charge through the Buck circuit through the communication module of the processing module.

[0285] This implementation method can select different charging modes according to the charging power, which is conducive to use in different wireless charging devices, has greater flexibility and a wider range of use.

[0286] S1204: If the charging power is the preset power, the processing module of the terminal device may determine that the battery voltage is within a preset voltage range.

[0287] The battery can be the above Figure 2 The battery 142 is shown in FIG. 1 , but the embodiments of the present application are not limited thereto.

[0288] The processing module of the terminal device can determine that the battery voltage is within a preset voltage range, wherein the preset voltage range may be calibrated through a large number of experiments, and the embodiments of the present application do not specifically limit it.

[0289] If the battery voltage is within the preset voltage range, it can be said that the battery voltage can support the SC circuit, and the processing module of the terminal device can continue to determine whether the battery temperature meets the preset temperature range, that is, execute S1205. If the battery voltage is not within the preset voltage range, it can be said that the battery voltage does not support the SC circuit, and the processing module of the terminal device can determine to charge through the Buck circuit, that is, execute the above S1203.

[0290] This implementation method can prevent the battery voltage from being too low and entering the SC circuit, which is beneficial to ensuring the charging stability of the SC circuit.

[0291] S1205: If the battery voltage is within a preset voltage range, the processing module of the terminal device may determine whether the battery temperature is within a preset temperature range.

[0292] The processing module of the terminal device can obtain the battery temperature collected by the temperature sensor and determine whether the battery temperature is within a preset temperature range. The preset voltage range may be calibrated through a large number of experiments, and the embodiment of the present application does not specifically limit it.

[0293] If the battery temperature is within the preset temperature range, it can be said that charging through the SC circuit will not cause serious heating of the battery, and the terminal device can initialize the battery charging chip, that is, execute S1206. If the battery temperature is not within the preset temperature range, it can be said that charging through the SC circuit may cause serious heating of the battery, affecting the battery life, and the terminal device can charge through the Buck circuit, that is, execute S1203.

[0294] This implementation method can prevent the battery temperature from being too high and entering the SC circuit, which is beneficial to ensuring the charging stability of the SC circuit.

[0295] It should be noted that the embodiment of the present application does not limit the execution order of S1204 and S1205, that is, the terminal device can execute S1204 and S1205 at the same time, or execute S1204 first and then S1205, or execute S1205 first and then S1204.

[0296] S1206: If the battery temperature is within a preset temperature range, the processing module of the terminal device may initialize the battery charging chip.

[0297] The battery charging chip can be Figure 4 The battery charging chip 1402 is shown, but the embodiment of the present application is not limited thereto.

[0298] If the battery temperature is within a preset temperature range, the processing module of the terminal device may initialize the battery charging chip, for example, instructing the battery charging chip to start or restart.

[0299] S1207: The processing module of the terminal device may close the Buck circuit.

[0300] If the battery voltage is within a preset voltage range and the battery temperature is within a preset temperature range, the terminal device can determine that charging is performed through the SC circuit and the Buck circuit can be turned off.

[0301] S1208: The processing module of the terminal device detects whether there is current in the Buck circuit.

[0302] In order to ensure that the Buck circuit is successfully closed, the processing module of the terminal device can detect whether there is current in the Buck circuit after closing the Buck circuit, that is, perform leakage current detection. If there is current in the Buck circuit, it can be said that the Buck circuit is not successfully closed, and the processing module of the terminal device can charge through the Buck circuit, that is, execute S1203.

[0303] Exemplarily, dis_dc_mode=1 can be used to indicate charging through a Buck circuit, and dis_dc_mode=0 can be used to indicate charging through an SC circuit. If the processing module of the terminal device detects that there is current in the Buck circuit, dis_dc_mode=1 can be controlled to facilitate charging through the Buck circuit.

[0304] If there is no current in the Buck circuit, it can be said that the Buck circuit is successfully closed, and the processing module of the terminal device can continue to determine whether the voltage of the chip receiving the charging input meets the requirement, that is, execute S1209.

[0305] It should be noted that S1208 is optional and can avoid the situation where current still exists in the Buck circuit when entering the SC circuit, causing unstable charging of the SC circuit, which is beneficial to improving the charging stability of the SC circuit.

[0306] S1209: If there is no current in the Buck circuit, the processing module of the terminal device determines whether the voltage of the chip receiving the charging input meets the requirement.

[0307] The chip receiving the charging input may be the above Figure 4 The communication module 1401 is shown, but the embodiment of the present application is not limited thereto. The chip receiving charging input may also be referred to as a chip receiving wireless charging input.

[0308] If there is no current in the Buck circuit, it means that the Buck circuit is successfully turned off. The processing module of the terminal device determines whether the voltage of the chip receiving the charging input meets the requirements so that wireless charging can be successfully performed.

[0309] The processing module of the terminal device determines whether the voltage of the chip receiving the charging input meets the requirements, which may include: the processing module of the terminal device determines whether the voltage difference between the input voltage and the output voltage of the chip receiving the charging input is greater than the preset voltage value i, and determines whether the voltage difference between the output voltage and the load voltage of the chip receiving the charging input is less than the preset voltage value j.

[0310] Exemplarily, the chip receiving the charging input is the above Figure 4 The communication module 1401 shown, the processing module of the terminal device can determine whether the voltage difference between the input voltage Vrect and the output voltage Vout is greater than the preset voltage value i, such as 300 mV, and determine whether the voltage difference between the output voltage Vout and the load voltage, such as 9V, is less than the preset voltage value j, such as 450 mV.

[0311] If the voltage of the chip receiving the charging input meets the requirements, it can be said that the chip receiving the charging input can normally receive the charging input, which is conducive to ensuring normal charging. If the voltage of the chip receiving the charging input does not meet the requirements, it can be said that the chip receiving the charging input cannot normally receive the charging input, affecting the charging effect.

[0312] S1210: If the voltage of the chip receiving the charging input meets the requirement, the processing module of the terminal device determines whether the battery charging chip is abnormal.

[0313] The battery charging chip can be Figure 4 The battery charging chip 1402 is shown, but the embodiment of the present application is not limited thereto.

[0314] If the voltage of the chip receiving the charging input meets the requirements, the processing module of the terminal device can determine whether the battery charging chip is abnormal through voltage or current. The embodiment of the present application does not limit the specific judgment method.

[0315] For example, the processing module of the terminal device can detect whether the current of the battery charging chip can reach 500 mA. If it can be reached, the processing module of the terminal device can determine that the battery charging chip is normal. If it cannot be reached, the processing module of the terminal device can determine that the battery charging chip is abnormal.

[0316] If the battery charging chip is normal, the processing module of the terminal device can determine to charge through the SC circuit, that is, execute S1211. If the battery charging chip is abnormal, the processing module of the terminal device can determine to charge through the Buck circuit, that is, execute S1203.

[0317] It should be noted that the embodiment of the present application does not limit the execution order of S1209 and S1210.

[0318] S1211. If there is no abnormality in the battery charging chip, the processing module of the terminal device determines to charge through the SC circuit.

[0319] It is understandable that the processing module of the terminal device can determine to charge through the SC circuit when the following conditions are met: the charging power is the preset power, the battery voltage is within the preset voltage range, the battery temperature is within the preset temperature range, there is no current in the Buck circuit, the voltage of the chip receiving the charging input meets the requirements, and the battery charging chip has no abnormalities. Among them, except that the charging power is the preset power, the other conditions are optional.

[0320] The process of charging the processing module of the terminal device through the SC circuit may include: obtaining the constant voltage parameters of the EPP charging mode. During the charging process, the voltage can be increased by constant current first, and then the current can be reduced by constant voltage, etc. The embodiment of the present application is not limited to this.

[0321] S1212: During the charging process, the processing module of the terminal device determines whether an abnormal exit is detected.

[0322] If an abnormal exit is detected, it can be said that the SC circuit charging is interrupted, and the processing module of the terminal device can determine to charge through the Buck circuit, that is, execute S1203. If no abnormal exit is detected, it can be said that the SC circuit charging is not interrupted, and the processing module of the terminal device can continue to charge through the SC circuit, that is, execute S1212.

[0323] It can be understood that the processing module of the terminal device can determine that charging is performed through the Buck circuit when any of the following conditions is met: the charging power is not the preset power, the battery voltage is not within the preset voltage range, the battery temperature is not within the preset temperature range, there is current in the Buck circuit, the voltage of the chip receiving the charging input does not meet the requirements, or the battery charging chip is abnormal.

[0324] The charging method provided in the embodiment of the present application checks the battery voltage, battery temperature, Buck circuit, chip receiving charging input and battery charging chip when the charging power is the preset power, which is beneficial to ensure the stability of charging through the SC circuit. If the charging power is not the preset power or there is any unstable factor, charging can be carried out through the Buck circuit, which is beneficial to ensure the needs of wireless charging.

[0325] If the handshake between the wireless charging device and the terminal device fails, the wireless charging device can charge the terminal device through the BPP charging mode or the EPP charging mode. During the charging process, if the user takes the terminal device off the wireless charging device or the terminal device and the wireless charging device are abnormally disconnected, the terminal device will detect that the wireless charging device does not exist (or the terminal device cannot detect the wireless charging device). If the terminal device detects the wireless charging device again within a period of time, it can continue to instruct the wireless charging device to charge the terminal device through the BPP charging mode or the EPP charging mode. If the terminal device does not detect the wireless charging device within a period of time, the wireless charging ends.

[0326] With this implementation, within a period of time, when the terminal device detects the wireless charging device again, it can continue to charge according to the previous charging mode without repeating the previous process of determining the charging mode, which is beneficial to improving charging efficiency.

[0327] Optionally, if before the terminal device detects that the wireless charging device does not exist, the terminal device instructs the wireless charging device to charge the terminal device through the EPP charging mode, but has not yet entered the charging state, for example, the terminal device instructs the wireless charging device to reset the instruction, but has not yet detected the response information of the wireless charging device, the terminal device can extend the time to detect the wireless charging device, which is conducive to ensuring that the response information of the wireless charging device based on the reset instruction can be detected. If the wireless charging device is detected within the extended time, the wireless charging device can continue to be instructed to charge the terminal device through the EPP charging mode, which is conducive to improving the charging efficiency.

[0328] Optionally, the wireless charging device charges the terminal device through the EPP charging mode. The terminal device detects that the wireless charging device does not exist. The terminal device can record the number of charging interruptions in the EPP charging mode. If the number of charging interruptions exceeds a threshold within a period of time, it can be said that the charging is frequently interrupted in the EPP charging mode. The terminal device can enter the forced BPP charging mode, that is, instruct the wireless charging device to charge the terminal device through the BPP charging mode, and no longer enter the EPP charging mode subsequently, which is beneficial to reduce the number of charging interruptions and improve charging efficiency.

[0329] For example, Fig.13 1 shows a schematic flow chart of a charging method 1300. The method 1300 may be executed by a terminal device. Fig.13 As shown, the method 1300 may include the following steps:

[0330] S1301: The terminal device detects that the wireless charging device does not exist.

[0331] The terminal device detects that the wireless charging device does not exist, that is, the wireless charging device cannot be detected, which can also be called charging disconnection.

[0332] Exemplarily, when the communication module of the terminal device receives the digital pulse sent by the wireless charging device, it will be determined to be in RX mode. If the terminal device detects that the mode of the communication module is RX mode, the wireless charging device can be detected, that is, the presence of the wireless charging device is detected. If the terminal device detects that the mode of the communication module is not RX mode, the terminal device can determine that the wireless charging device cannot be detected, that is, the wireless charging device does not exist.

[0333] S1302: The terminal device determines whether to instruct the wireless charging device to charge in the EPP charging mode.

[0334] The terminal device determines whether the wireless charging device is instructed to charge through the EPP charging mode before charging is stopped.

[0335] Exemplarily, the terminal device can detect whether the charging mode identifier epp_flag indicates the EPP charging mode. If the charging mode identifier epp_flag indicates the EPP charging mode, for example, epp_flag=1, the terminal device can determine that the wireless charging device is instructed to charge in the EPP charging mode. If the charging mode identifier epp_flag indicates the BPP charging mode, for example, epp_flag=0, the terminal device can determine that the wireless charging device is not instructed to charge in the EPP charging mode.

[0336] If the terminal device instructs the wireless charging device to charge in the EPP charging mode, the terminal device can determine whether it has entered the EPP charging mode for charging, that is, execute S1306. If the terminal device does not instruct the wireless charging device to charge in the EPP charging mode, the terminal device can determine whether the wireless charging device is re-detected within the preset time length a, that is, execute S1303.

[0337] S1303: If the wireless charging device is not instructed to charge in the EPP charging mode, the terminal device determines whether the wireless charging device is detected again within the preset time length a.

[0338] The preset duration may be 1.6 seconds or 2 seconds, which is not limited in the embodiments of the present application.

[0339] Exemplarily, the terminal device can detect whether the mode of the communication module is the RX mode within the preset time length a. If the terminal device detects that the mode of the communication module is the RX mode, the terminal device can determine that the wireless charging device is detected within the preset time length a. If the terminal device detects that the mode of the communication module is not the RX mode, the terminal device can determine that the wireless charging device cannot be detected within the preset time length a.

[0340] If the terminal device detects the wireless charging device again within the preset time a, the terminal device can continue wireless charging, that is, execute S1304. If the terminal device does not detect the wireless charging device again within the preset time a, the terminal device can exit wireless charging, that is, execute S1305.

[0341] S1304: If the wireless charging device is detected again within the preset time a, the terminal device instructs the wireless charging device to charge through the BPP charging mode.

[0342] If the wireless charging device is detected again within the preset time a, and the terminal device and the wireless charging device are charged through the BPP charging mode before charging is disconnected, the terminal device can continue to be charged through the BPP charging mode, which is beneficial to improving charging efficiency.

[0343] S1305: If the wireless charging device is not detected again within the preset time a, the terminal device exits wireless charging.

[0344] If the wireless charging device is not detected again within the preset time a, the terminal device may end the wireless charging, or in other words, exit the wireless charging. When the terminal device detects the wireless charging device again after the preset time a, the above method 600 may be executed.

[0345] S1306: If the wireless charging device is instructed to charge in the EPP charging mode, the terminal device determines whether it has entered the EPP charging mode for charging.

[0346] If the terminal device instructs the wireless charging device to charge in EPP charging mode before the charging is disconnected, the terminal device can determine whether it has entered the EPP charging mode for charging, that is, whether charging is based on the negotiated power and current. If the terminal device and the wireless charging device have not negotiated power, or have not performed current calibration, it can be said that the terminal device has not entered the EPP charging mode for charging.

[0347] Exemplarily, the terminal device can detect whether the charging mode identifier epp_flag indicates the EPP charging mode. If the charging mode identifier epp_flag indicates the EPP charging mode, for example, epp_flag=1, the terminal device can determine that the wireless charging device is instructed to charge through the EPP charging mode, and then it can continue to determine whether it has entered the EPP charging mode for charging. If the terminal device detects that a reset instruction is sent to the wireless charging device, but no response message is received, or the power is not negotiated with the wireless charging device, or the wireless charging device is not instructed to perform current calibration, it can be determined that the terminal device has not entered the EPP charging mode for charging. If the terminal device detects that the terminal device and the wireless charging device are charging based on the negotiated power and current, that is, CEP or RPP is sent, it can be determined that the terminal device has entered the EPP charging mode for charging.

[0348] If the terminal device has not entered the EPP charging mode for charging, the terminal device can extend the preset time a, that is, execute S1307. If the terminal device has entered the EPP charging mode for charging, the terminal device can count the number of disconnections, that is, execute S1310.

[0349] S1307: If the EPP charging mode is not entered, the terminal device changes the preset time length a to the preset time length b, and the preset time length b is greater than the preset time length a.

[0350] Exemplarily, if the preset time length a is 1.6 seconds, the preset time length b may be 10 seconds.

[0351] If the terminal device does not enter the EPP charging mode for charging, the terminal device will extend the preset time length a to the preset time length b. It can determine whether the wireless charging device is detected within the preset time length b, which can increase the probability of detecting the wireless charging device, which is beneficial to ensure that charging continues when the wireless charging device is detected to improve charging efficiency.

[0352] S1308: The terminal device determines whether the wireless charging device is detected again within the preset time period b.

[0353] Exemplarily, the terminal device can detect whether the mode of the communication module is the RX mode within the preset time length b. If the terminal device detects that the mode of the communication module is the RX mode, the terminal device can determine that the wireless charging device is detected within the preset time length b. If the terminal device detects that the mode of the communication module is not the RX mode, the terminal device can determine that the wireless charging device cannot be detected within the preset time length b.

[0354] If the terminal device detects the wireless charging device again within the preset time length b, the terminal device can continue wireless charging, that is, execute S1309. If the terminal device does not detect the wireless charging device again within the preset time length b, the terminal device can exit wireless charging, that is, execute S1305.

[0355] S1309: If the wireless charging device is detected again within the preset time period b, instruct the wireless charging device to enter the EPP charging mode for charging.

[0356] If the wireless charging device is detected again within the preset time b, and the terminal device instructs the wireless charging device to charge through the EPP charging mode before charging is disconnected, the terminal device can continue to charge through the EPP charging mode, which is beneficial to improving charging efficiency.

[0357] If the wireless charging device is not detected again within the preset time b, the terminal device can end the wireless charging, or exit the wireless charging, that is, execute the above S1305. When the terminal device detects the wireless charging device again after the preset time b, the above method 600 can be executed.

[0358] S1310: If the EPP charging mode has been entered, the terminal device will increase the number of charging interruptions by 1.

[0359] If the terminal device has entered the EPP charging mode, that is, the terminal device has sent a CEP or RPP to the wireless charging device, the terminal device can record the number of disconnections. The initial value of the number of disconnections can be 0. If the terminal device detects that the terminal device has entered the EPP charging mode and disconnection occurs, the terminal device can add 1 to the number of disconnections.

[0360] Exemplarily, the number of charging interruptions can be represented by the symbol retry_epp_count, and the initial value of the number of charging interruptions is 0, that is, retry_epp_count=0. When the terminal device detects that the terminal device has entered the EPP charging mode for charging and a charging interruption occurs, the terminal device can execute retry_epp_count++, that is, the number of charging interruptions is increased by 1.

[0361] S1311. The terminal device determines whether the number of charging interruptions exceeds a preset number.

[0362] The preset number of times can be 2 or 3, which is not limited in the embodiment of the present application.

[0363] If the number of charging interruptions is greater than or equal to the preset number, the terminal device can determine whether the time since the first charging interruption is less than the preset time c, that is, execute S1314. If the number of charging interruptions is less than the preset number, the terminal device determines whether the wireless charging device is detected again within the preset time a, that is, execute S1312.

[0364] S1312: If the number of charging interruptions does not exceed the preset number, determine whether the wireless charging device is detected again within the preset time a.

[0365] Exemplarily, if the number of charging interruptions does not exceed the preset number, the terminal device can detect whether the mode of the communication module is the RX mode within the preset time length a. If the terminal device detects that the mode of the communication module is the RX mode, the terminal device can determine that the wireless charging device is detected within the preset time length a. If the terminal device detects that the mode of the communication module is not the RX mode, the terminal device can determine that no wireless charging device is detected within the preset time length a.

[0366] If the terminal device detects the wireless charging device again within the preset time a, the terminal device can continue to charge in the EPP charging mode, that is, execute S1313. If the terminal device does not detect the wireless charging device again within the preset time a, the terminal device can exit wireless charging, that is, execute S1305.

[0367] S1313: If the wireless charging device is detected again within the preset time a, the terminal device instructs the wireless charging device to charge through the EPP charging mode.

[0368] If the wireless charging device is detected again within the preset time a, and the terminal device and the wireless charging device are charged through the EPP charging mode before charging is disconnected, the terminal device can continue to be charged through the EPP charging mode, which is beneficial to improving charging efficiency.

[0369] If the wireless charging device is not detected again within the preset time a, the terminal device may end the wireless charging, or in other words, exit the wireless charging. When the terminal device detects the wireless charging device again after the preset time a, the above method 600 may be executed.

[0370] S1314: If the number of charging interruptions exceeds a preset number, the terminal device determines whether the time since the first charging interruption is less than a preset time c.

[0371] The preset time length c is greater than the preset time length b, and the preset time length c is greater than the preset time length a. The preset time length c can be 30 seconds or 40 seconds, which is not limited in this embodiment of the present application.

[0372] When the terminal device detects that the number of charging outages is 1, it can start timing. When it detects that the number of charging outages exceeds the preset number, it can determine whether the recorded duration, that is, the duration since the first charging outage, is less than the preset duration c.

[0373] If the time from the first disconnection to charging is less than the preset time c, it can be said that the charging is frequently disconnected in the EPP charging mode, and the terminal device can enter the forced BPP charging mode, that is, execute S1315. If the time from the first disconnection to charging is greater than or equal to the preset time c, it can be said that frequent disconnections have not occurred in the EPP charging mode, and the terminal device can determine whether the wireless charging device is re-detected within the preset time a, that is, execute S1312.

[0374] S1315: If the time from the first charging interruption to the last charging interruption is less than the preset time c, the terminal device enters the forced BPP charging mode.

[0375] If the time from the first charging interruption is less than the preset time c, it can be explained that the charging is frequently interrupted in the EPP charging mode. In order to avoid frequent charging interruptions affecting the charging efficiency, the terminal device can enter the forced BPP charging mode, that is, set the flag for charging based on the BPP charging mode. When the terminal device detects the wireless charging device again, S701 to S707 in the above method 700 can be executed, and no longer attempt to charge through the EPP charging mode (that is, do not execute subsequent S708 to S715), and directly instruct the wireless charging device to charge through the BPP charging mode.

[0376] In the method 1300 provided in the embodiment of the present application, the terminal device may exit wireless charging when any of the following conditions is met:

[0377] Before the charging is disconnected, the terminal device instructs the wireless charging device to charge in the BPP charging mode, and the wireless charging device is not re-detected within the preset time a;

[0378] Before the charging is disconnected, the terminal device instructs the wireless charging device to charge in the EPP charging mode, but does not enter the EPP charging mode for charging, and does not re-detect the wireless charging device within the preset time b; or,

[0379] Before the charging is disconnected, the terminal device instructs the wireless charging device to charge through the EPP charging mode, has entered the EPP charging mode for charging, and has not re-detected the wireless charging device within the preset time a.

[0380] If the terminal device instructs the wireless charging device to charge through the BPP charging mode before charging is disconnected, and the wireless charging device is detected again within the preset time a, the terminal device can be charged through the BPP charging mode.

[0381] The terminal device can be charged in EPP charging mode if any of the following conditions are met:

[0382] Before the charging is disconnected, the terminal device instructs the wireless charging device to charge in the EPP charging mode, but does not enter the EPP charging mode for charging, and re-detects the wireless charging device within the preset time b; or,

[0383] Before the charging is disconnected, the terminal device instructs the wireless charging device to charge through the EPP charging mode, has entered the EPP charging mode for charging, and has re-detected the wireless charging device within the preset time a.

[0384] It should be noted that the preset time length a, the preset time length b and the preset time length c in method 1300 are all independent of the preset time length in the above-mentioned method 900.

[0385] The charging method provided in the embodiment of the present application detects that the wireless charging device is not present. If the wireless charging device is redetected within a preset time (preset time a or preset time b), charging can be performed according to the previous charging mode, thereby avoiding repeated steps, quickly performing charging, and helping to improve charging efficiency.

[0386] The size of the sequence number of each process in the above embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0387] Combined with the above Figures 1 to 13 , describes in detail the method provided by the embodiment of the present application, and will be combined with Fig.14 and Fig.15 , describe in detail the device provided in the embodiments of the present application.

[0388] Fig.14 FIG. 1 is a schematic block diagram of a charging device 1400 provided in an embodiment of the present application. Fig.14As shown, the charging device 1400 includes: a selection module 1410 and a processing module 1420. The selection module 1410 is used to: if the charging mode supported by the wireless charging device includes at least one of the BPP charging mode, the EPP charging mode and the high-power charging mode, then select a charging mode from at least one of the charging modes; the processing module 1420 is used to: instruct the wireless charging device to charge the charging device based on the selected charging mode.

[0389] Optionally, when at least one charging mode includes a BPP charging mode, an EPP charging mode and a high-power charging mode, or includes a BPP charging mode and a high-power charging mode, or includes an EPP charging mode and a high-power charging mode, the above-mentioned processing module 1420 is specifically used to: instruct the wireless charging device to charge the charging device based on the high-power charging mode.

[0390] Optionally, when the at least one charging mode includes the BPP charging mode and the EPP charging mode, the processing module 1420 is specifically used to instruct the wireless charging device to charge the charging apparatus based on the EPP charging mode.

[0391] Optionally, the processing module 1420 is further used to: when the wireless charging device charges the charging device based on the EPP charging mode, if the number of times the wireless charging device is disconnected from the charging device is greater than or equal to a number threshold, and the duration between the last disconnection moment and the first disconnection moment is greater than a duration threshold, then instruct the wireless charging device to charge the charging device based on the BPP charging mode.

[0392] Optionally, the charging device 1400 includes a step-down circuit and a switched capacitor SC circuit; wherein the processing module 1420 is specifically used to: when the charging power provided by the wireless charging device to the charging device based on the EPP charging mode is greater than or equal to a power threshold, charge the charging device through the SC circuit; or, when the charging power is less than the power threshold, charge the charging device through the step-down circuit.

[0393] Optionally, the above-mentioned processing module 1420 is specifically used to: shake hands with the wireless charging device based on a private protocol; if the handshake is successful, instruct the wireless charging device to charge the charging device based on the high-power charging mode; if the handshake fails, instruct the wireless charging device to charge the charging device based on the EPP charging mode; if the instruction of the wireless charging device to charge the charging device based on the EPP charging mode fails, instruct the wireless charging device to charge the charging device based on the BPP charging mode.

[0394] Optionally, the processing module 1420 is further configured to: if the handshake fails and there is an indication of charging based on the BPP charging mode, instruct the wireless charging device to charge the charging apparatus based on the BPP charging mode.

[0395] It should be understood that the charging device 1400 here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art may understand that the charging device 1400 may be specifically a terminal device in the above method embodiment, or the functions of the terminal device in the above method embodiment may be integrated in the charging device 1400, and the charging device 1400 may be used to execute the various processes and / or steps corresponding to the terminal device in the above method embodiment. To avoid repetition, it will not be repeated here.

[0396] The charging device 1400 has the function of implementing the corresponding steps executed by the terminal device in the above method embodiment; the above functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0397] In the embodiments of the present application, Fig.14 The charging device 1400 may also be a chip or a chip system, such as a system on chip (SoC).

[0398] Fig.15 is a schematic block diagram of another charging device 1500 provided in an embodiment of the present application. Fig.15 As shown, the charging device 1500 includes: a processor 1510, a transceiver 1520 and a memory 1530. The processor 1510, the transceiver 1520 and the memory 1530 communicate with each other through an internal connection path, the memory 1530 is used to store instructions, and the processor 1510 is used to execute the instructions stored in the memory 1530 to control the transceiver 1520 to send and / or receive signals.

[0399] It should be understood that the charging device 1500 can be specifically a terminal device in the above method embodiment, or the function of the terminal device in the above method embodiment can be integrated in the charging device 1500, and the charging device 1500 can be used to execute the various steps and / or processes corresponding to the terminal device in the above method embodiment. Optionally, the memory 1530 may include a read-only memory and a random access memory, and provide instructions and data to the processor 1510. A portion of the memory 1530 may also include a non-volatile random access memory. For example, the memory 1530 may also store information about the device type. The processor 1510 can be used to execute instructions stored in the memory 1530, and when the processor 1510 executes the instruction, the processor 1510 can execute the various steps and / or processes corresponding to the terminal device in the above method embodiment.

[0400] It should be understood that in the embodiment of the present application, the processor 1510 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0401] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0402] The present application also provides a computer-readable storage medium, which stores a computer program, and the computer program is used to implement the method corresponding to the terminal device in the above method embodiment.

[0403] The present application also provides a chip system, which is used to support the terminal device in the above method embodiment to implement the functions shown in the embodiment of the present application.

[0404] The present application also provides a computer program product, which includes a computer program (also referred to as code or instruction). When the computer program runs on a computer, the computer can execute the method corresponding to the terminal device shown in the above method embodiment.

[0405] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software 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 this application.

[0406] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0407] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0408] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0409] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0410] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. 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 instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0411] The above is only a specific implementation of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present application, which should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be based on the protection scope of the claims.

Claims

1. A charging method, characterized in that: The charging method is applied to a terminal device, the charging modes supported by the terminal device include a BPP charging mode, an EPP charging mode and a high-power charging mode, the high-power charging mode is a charging mode based on a private protocol, and the private protocol is a non-QI standard protocol. The method includes: If the charging modes supported by the wireless charging device include the BPP charging mode, the EPP charging mode and the high-power charging mode, or include the BPP charging mode and the high-power charging mode, or include the EPP charging mode and the high-power charging mode, instruct the wireless charging device to charge the terminal device based on the high-power charging mode; If the charging modes supported by the wireless charging device include the BPP charging mode and the EPP charging mode, the wireless charging device is instructed to charge the terminal device based on the EPP charging mode; and if, when the wireless charging device charges the terminal device based on the EPP charging mode, the number of times the wireless charging device is disconnected from the terminal device is greater than or equal to the number threshold, and the duration between the last disconnection moment and the first disconnection moment is greater than the duration threshold, then the wireless charging device is instructed to charge the terminal device based on the BPP charging mode.

2. The method according to claim 1, characterized in that The terminal device includes a step-down circuit and a switched capacitor SC circuit; The instructing the wireless charging device to charge the terminal device based on the EPP charging mode includes: When the charging power provided by the wireless charging device to the terminal device based on the EPP charging mode is greater than or equal to the power threshold, the terminal device is charged through the SC circuit; or, When the charging power is less than the power threshold, the terminal device is charged through the step-down circuit.

3. A charging device, characterized in that: include: A processor and a memory, wherein the memory stores computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory, so that the charging device performs the method according to claim 1 or 2.

4. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to claim 1 or 2 is implemented.

5. A computer program product, characterized in that The invention comprises a computer program which, when being executed, causes a computer to execute the method as claimed in claim 1 or 2.

Citation Information

Patent Citations

  • Charging method, terminal device, and power adapter

    CN107834657A

  • Wireless charge method, terminal and transmitting terminal device

    CN108494030A

  • Device and method for performing power correction in wireless power transmission system

    CN111989842A

  • Electronic equipment, wireless charging receiving device, control method and wireless charging system

    CN113067395A

  • Wireless charging method and device, charging equipment and storage medium

    CN113258626A