A wireless charging method, an electronic device, and a wireless charging system
Patent Information
- Application Number
- CN202411109068.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2044-08-12
AI Technical Summary
此时,手机会持续通过CEP发送升压请求,且其升压请求中的升压值会逐渐增大,这样,在充电底座退出功率保护状态时,充电底座响应于当前CEP中数值较大的升压值进行升压,会产生能量激增的情况,导致损坏器件
[0033]第八方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如上述第一方面及其任一实现方式中的无线充电方法。
Smart Images

Figure CN121584810B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless charging technology, and in particular to a wireless charging method, electronic device and wireless charging system. Background Technology
[0002] Wireless charging technology is a technology that allows for the transfer of electrical energy between a transmitting device and a receiving device without a physical connection. The transmitting device can be, for example, a charging dock, and the receiving device can be, for example, a mobile phone. During wireless charging, the mobile phone sends a Control Error Packet (CEP) to the charging dock, causing the charging dock to adjust the amount of electrical energy it transmits in response to the CEP.
[0003] When the charging dock is affected by factors such as increased temperature or fan malfunction, it may enter a power protection state. In this state, the charging dock limits its output power to a low level and does not boost the voltage. During this time, the phone continuously sends boost requests through the CEP (Consumer Electronic Processing) system, and the boost value in these requests gradually increases. When the charging dock exits the power protection state, it may respond to the larger boost value in the current CEP by boosting the voltage, resulting in a surge of energy and potentially damaging components. Summary of the Invention
[0004] This application provides a wireless charging method, electronic device, and wireless charging system, applicable to situations where the transmitting device is in an abnormal state during wireless charging. In such cases, this application can regulate the electrical energy transmitted between the transmitting and receiving devices to avoid energy surges that could damage the devices.
[0005] In a first aspect, embodiments of this application provide a wireless charging method applied to a first electronic device, comprising: the first electronic device sending at least one first control error data packet (CEP) to a second electronic device, causing the second electronic device to adjust the first electrical energy output to the first electronic device in response to a first parameter in the first CEP, wherein the first parameter is used to increase or decrease the first electrical energy; the first electronic device determining whether the second electronic device is in an abnormal state, the abnormal state including the second electronic device not increasing the first electrical energy in response to the first parameter; and, if the first electronic device determines that the second electronic device is in an abnormal state, sending at least one second CEP to the second electronic device, causing the second electronic device to adjust the first electrical energy in response to a second parameter in the second CEP after exiting the abnormal state, wherein the second CEP is formed by the first electronic device modifying the first parameter in the first CEP to a second parameter, and the second parameter is used to make the first electrical energy less than a first preset threshold.
[0006] The wireless charging method shown in this application embodiment allows the first electronic device to modify the parameters in the CEP (Content Processing Unit) after determining that the second electronic device is in an abnormal state. This enables the second electronic device to smoothly adjust the output of the first electrical energy when it exits the abnormal state, preventing energy surges and potential damage to the device.
[0007] In one implementation, before the first electronic device sends at least one first control error data packet (CEP) to the second electronic device, the method further includes: the first electronic device powering on and initiating communication in response to a ping signal sent by the second electronic device to establish a handshake connection with the second electronic device; after establishing the handshake connection, the first electronic device interacts with the second electronic device to determine the target protocol used between the two devices; and the first electronic device receives first electrical energy output by the second electronic device, wherein the initial power corresponding to the first electrical energy is determined based on the target protocol. Using this implementation, the first electronic device can establish a handshake connection with the second electronic device to interact with the protocol, enabling the second electronic device to provide first electrical energy that meets the needs of the first electronic device.
[0008] In one implementation, the first electronic device, in response to a Ping signal sent by the second electronic device, powers on and initializes communication to establish a handshake connection with the second electronic device. This includes: the first electronic device, in response to the Ping signal sent by the second electronic device, sends a first acknowledgment (ACK) signal to the second electronic device to establish a handshake connection. This implementation illustrates the specific method by which the first and second electronic devices establish a handshake connection.
[0009] In one implementation, a first electronic device sends at least one first control error data packet (CEP) to a second electronic device, causing the second electronic device to adjust the first electrical energy output to the first electronic device in response to a first parameter in the first CEP. This includes: after each transmission of the first CEP, the first electronic device updates the first parameter in the next transmitted first CEP based on the received first electrical energy. Using this implementation, the first electronic device can dynamically adjust the transmitted first CEP according to the magnitude of the received first electrical energy, so that the second electronic device can transmit the first electrical energy required by the first electronic device.
[0010] In one implementation, after each transmission of a first CEP, the first electronic device updates the first parameter in the next transmitted first CEP based on the received first electrical energy. This includes: after each transmission of a first CEP, the first electronic device determines a first voltage value corresponding to the first electrical energy based on the received first electrical energy; the first electronic device obtains a first voltage difference between a first target voltage value and the first voltage value, and uses the first voltage difference as the updated first parameter, wherein the first target voltage value is determined based on a target protocol; and the first electronic device configures the updated first parameter in the next transmitted first CEP. Using this implementation, the first electronic device can dynamically adjust the first voltage difference in the first CEP to enable the second electronic device to transmit the first electrical energy required by the first electronic device.
[0011] In one implementation, the first electronic device determines whether the second electronic device is in an abnormal state by: if the first electronic device determines, during at least one configuration update of the first parameter, that the updated first parameter is greater than or equal to a second preset threshold, the first electronic device determines that the second electronic device is in an abnormal state. This implementation illustrates a specific method by which the first electronic device determines that the second electronic device is in an abnormal state.
[0012] In one implementation, the first electronic device determines whether the second electronic device is in an abnormal state by: after sending a first CEP, the first electronic device determines that the second electronic device is in an abnormal state based on a received first negative acknowledgment (NACK) signal. This implementation illustrates a specific method by which the first electronic device determines that the second electronic device is in an abnormal state.
[0013] In one implementation, when the first electronic device determines that the second electronic device is in an abnormal state, it sends at least one second CEP to the second electronic device. This includes: the first electronic device entering a CEP control mode; in the CEP control mode, the first electronic device modifying a first parameter in the first CEP to a second parameter to form a second CEP; and the first electronic device sending the second CEP to the second electronic device. Using this implementation, the first electronic device can modify the parameters in the CEP, allowing the second electronic device to smoothly adjust the output power when exiting the abnormal state, preventing energy spikes and potential device damage.
[0014] In one implementation, when the first electronic device determines that the second electronic device is in an abnormal state, it enters the CEP control mode. This includes: the first electronic device, upon determining that the second electronic device is in an abnormal state, changes a first flag bit to determine whether to enter the CEP control mode, wherein the first flag bit includes cep_ctr_flag. Using this implementation, the first electronic device can determine whether to enter the CEP control mode by modifying the flag bit, and can then modify the parameters in the CEP within this mode.
[0015] In one implementation, after the first electronic device determines that the second electronic device is in an abnormal state and enters the CEP control mode, the method further includes: the first electronic device changing a second flag bit to store a first recorded voltage value based on the second flag bit. The first recorded voltage value includes a first voltage value detected when the first electronic device determines that the second electronic device is in an abnormal state, a first target voltage value in the first CEP, and a first parameter in the first CEP. The second flag bit includes: first_cep_ctr. Using this implementation, the first electronic device can record the first recorded voltage value for use in the subsequent voltage recovery process.
[0016] In one implementation, after the first electronic device determines that the second electronic device is in an abnormal state and sends at least one second CEP to the second electronic device, the method further includes: the first electronic device determining that the second electronic device has exited the abnormal state; the first electronic device determining whether to exit the CEP control mode after determining that the second electronic device has exited the abnormal state; after the first electronic device determines to exit the CEP control mode, the first electronic device comparing the first voltage value corresponding to the received first electrical energy with the first target voltage value in the first recorded voltage values; if the first voltage value corresponding to the first electrical energy received by the first electronic device is less than the first target voltage value in the first recorded voltage values, the first electronic device sends at least one third CEP to the second electronic device, so that the second electronic device adjusts the first electrical energy in response to the third parameter in the third CEP, wherein the third parameter includes a preset adjustment step size. Using this implementation, the first electronic device can gradually increase the parameters in the CEP packet, so that the second electronic device can smoothly adjust the output first electrical energy when exiting the abnormal state, without energy surges that could damage devices.
[0017] In one implementation, after the first electronic device sends at least one third CEP to the second electronic device, the method further includes: if the first voltage value corresponding to the first electrical energy received by the first electronic device is greater than or equal to the first target voltage value in the first recorded voltage values, the first electronic device sends at least one first CEP to the second electronic device. Using this implementation, the first electronic device can restore power load.
[0018] In one implementation, the first electronic device determines that the second electronic device has exited the abnormal state by: if the first electronic device receives an increase in first electrical energy, the first electronic device determines that the second electronic device has exited the abnormal state. This implementation illustrates the specific method by which the first electronic device determines that the second electronic device has exited the abnormal state.
[0019] In one implementation, after determining whether to exit the CEP control mode, the method further includes: resetting a first flag bit in the first electronic device to determine whether to exit the CEP control mode based on the reset first flag bit. Using this implementation, resetting the flag bit in the first electronic device can determine whether to exit the CEP control mode.
[0020] Secondly, embodiments of this application provide a wireless charging method applied to a second electronic device, comprising: the second electronic device receiving at least one first control error data packet (CEP) sent by a first electronic device, and adjusting the first electrical energy output to the first electronic device in response to a first parameter in the first CEP, wherein the first parameter is used to increase or decrease the first electrical energy; the second electronic device entering an abnormal state, the abnormal state including the second electronic device not increasing the first electrical energy in response to the first parameter; when the second electronic device is in an abnormal state, the second electronic device receiving at least one second CEP sent by the first electronic device, the second CEP being formed by the first electronic device modifying the first parameter in the first CEP to a second parameter; the second electronic device exiting the abnormal state, and adjusting the first electrical energy in response to the second parameter in the second CEP, wherein the second parameter is used to make the first electrical energy less than a first preset threshold.
[0021] The wireless charging method shown in this application embodiment can smoothly adjust the output first electrical energy based on the received modified parameters of CEP when the second electronic device is in an abnormal state, without causing energy surges and damage to the device.
[0022] In one implementation, before the second electronic device receives at least one first control error data packet (CEP) sent by the first electronic device, the method further includes: the second electronic device sending a probe Ping signal; after the first electronic device powers on and initializes communication in response to the Ping signal, the second electronic device establishes a handshake connection with the first electronic device; after establishing the handshake connection, the second electronic device interacts with the first electronic device to determine the target protocol used between the two devices; and the second electronic device outputs first electrical energy to the first electronic device, wherein the initial power corresponding to the first electrical energy is determined based on the target protocol. Using this implementation, the second electronic device can establish a handshake connection with the first electronic device to interact with the protocol, enabling the second electronic device to provide first electrical energy that meets the needs of the first electronic device.
[0023] In one implementation, establishing a handshake connection between the second electronic device and the first electronic device includes: the second electronic device establishing a handshake connection with the first electronic device in response to a first acknowledgment (ACK) signal sent by the first electronic device. This implementation illustrates a specific method by which the second electronic device and the first electronic device establish a handshake connection.
[0024] In one implementation, the second electronic device enters an abnormal state, including: the second electronic device determining that its own temperature is greater than a first temperature threshold, and / or detecting an abnormality in its built-in fan, and determining that it has entered an abnormal state, so as to limit the output of first electrical energy in the abnormal state to prevent the first electrical energy from increasing. This implementation illustrates several scenarios in which the second electronic device enters an abnormal state.
[0025] In one implementation, after the second electronic device enters an abnormal state, the method further includes: the second electronic device sending a first negative acknowledgment (NACK) signal to the first electronic device. This implementation illustrates a method for the second electronic device to notify the first electronic device when it is in an abnormal state.
[0026] In one implementation, after the second electronic device exits the abnormal state and adjusts the first power in response to the second parameter in the second CEP, the method further includes: the second electronic device receiving at least one third CEP to adjust the first power in response to the third parameter in the third CEP, wherein the third parameter includes a preset adjustment step size. Using this implementation, after the second electronic device exits the abnormal state, the first power is gradually increased, achieving smooth adjustment of the first power and avoiding energy spikes that could damage the device.
[0027] In one implementation, after the second electronic device receives at least one third CEP to adjust the first power in response to a third parameter in the third CEP, the method further includes: the second electronic device receiving at least one first CEP to adjust the first power in response to a first parameter in the first CEP. Using this implementation, the second electronic device can restore power load after smoothly adjusting the first power.
[0028] Thirdly, embodiments of this application provide an electronic device that applies the wireless charging method described in the first aspect and any of its implementations above.
[0029] Fourthly, embodiments of this application provide an electronic device that applies the wireless charging method described in the second aspect and any of its implementations above.
[0030] Fifthly, embodiments of this application provide a wireless charging system, which includes a first electronic device and a second electronic device, wherein the first electronic device is the electronic device as described in the third aspect above, and the second electronic device is the electronic device as described in the fourth aspect above.
[0031] In a sixth aspect, embodiments of this application provide a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the wireless charging method as described in the first aspect and any implementation thereof.
[0032] In a seventh aspect, embodiments of this application provide a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the wireless charging method as described in the second aspect and any implementation thereof.
[0033] Eighthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to execute the wireless charging method as described in the first aspect and any implementation thereof.
[0034] Ninthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to execute the wireless charging method as described in the first aspect and any implementation thereof.
[0035] Understandably, the beneficial effects that the technical solutions provided in the third to ninth aspects above can achieve can be referenced from the beneficial effects in the first aspect and any of its implementations, as well as the second aspect and any of its implementations, which will not be repeated here. Attached Figure Description
[0036] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a schematic diagram illustrating a scenario where an electronic device is wirelessly charged.
[0038] Figure 2 This is a schematic diagram illustrating a dynamic adjustment scenario between a charging dock and an electronic device.
[0039] Figure 3 This is a schematic diagram illustrating a scenario where the charging dock experiences a surge in power.
[0040] Figure 4 This is a schematic diagram of the hardware structure of the first electronic device provided in an embodiment of this application;
[0041] Figure 5 This is a schematic diagram of the software structure of the first electronic device provided in an embodiment of this application;
[0042] Figure 6 This is a schematic diagram of the structure of the second electronic device provided in the embodiments of this application;
[0043] Figure 7 This is a schematic diagram illustrating a scenario where a first electronic device and a second electronic device establish a communication connection, as provided in an embodiment of this application.
[0044] Figure 8 This is the first flowchart of the wireless charging method provided in the embodiments of this application;
[0045] Figure 9 This is the second flowchart of the wireless charging method provided in the embodiments of this application;
[0046] Figure 10 This is a schematic diagram of the first scenario in which the first electronic device determines that the second electronic device is in an abnormal state.
[0047] Figure 11 This is a schematic diagram of a second scenario in which the first electronic device determines that the second electronic device is in an abnormal state.
[0048] Figure 12 This is a schematic diagram of a third scenario where the first electronic device determines that the second electronic device is in an abnormal state.
[0049] Figure 13 This is the third flowchart of the wireless charging method provided in the embodiments of this application;
[0050] Figure 14This is a schematic diagram illustrating the interaction process between the first electronic device and the second electronic device after the second electronic device enters an abnormal state, as provided in the embodiments of this application.
[0051] Figure 15 This is a schematic diagram of the structure of a chip system provided in an embodiment of this application. Detailed Implementation
[0052] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. Other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are all within the protection scope of this application.
[0053] In the description of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, "at least one" means one or more, and "multiple" means two or more. The terms "first," "second," etc., do not limit the quantity or order of execution, and "first," "second," etc., do not necessarily imply differences.
[0054] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0055] The application scenarios of the embodiments of this application will be described below first.
[0056] Wireless charging technology is a technology that can transfer electrical energy to electronic devices without a physical connection. This technology can be implemented based on various principles such as electromagnetic induction, electromagnetic resonance, or radio frequency transmission.
[0057] The following embodiments in this application are merely illustrative examples of wireless charging technology based on the principle of electromagnetic induction. In fact, the embodiments of this application can be applied to various types of wireless charging technologies, and this application does not limit them.
[0058] Figure 1 This is a schematic diagram illustrating a scenario where an electronic device is wirelessly charged.
[0059] like Figure 1As shown, wireless charging technology is typically implemented between two components: a charging base 10 and an electronic device 20. The charging base 10 can act as a transmitter, and the electronic device 20 can act as a receiver.
[0060] In wireless charging technology based on the principle of electromagnetic induction, the charging base 10 generates an alternating electromagnetic field through its built-in coil. When the electronic device 20 is placed near the charging base 10, the built-in coil in the electronic device 20 will generate electromagnetic induction with this alternating electromagnetic field, thereby producing a current. This current can be converted into direct current by the circuitry in the electronic device 20 to power the battery in the electronic device 20.
[0061] Based on the difference in power transmission between the charging dock 10 and the electronic device 20, the above process can be divided into high-power charging and low-power charging.
[0062] High-power charging is a process of transmitting energy at a higher power. It is suitable for electronic devices 20 such as mobile phones, tablets and laptops. The charging base 10 can quickly transmit power to the electronic device 20 in a short time to improve the convenience of wireless charging technology.
[0063] Low-power charging is a process of transferring energy at a lower power level. It is suitable for electronic devices 20 such as wristbands, headphones, and remote controls. The charging base 10 can accurately control the power transmitted to the electronic device 20 to improve the compatibility of wireless charging technology.
[0064] While the principles of high-power charging and low-power charging are similar, they may differ in their specific circuit designs. High-power charging typically requires more complex circuit designs to ensure the safety and efficiency of power supply.
[0065] Currently, during the high-power charging process of electronic device 20, the charging base 10 experiences a surge in energy. This surge is usually accompanied by a current spike, which can cause problems such as charging interruption, overload, and device damage in the charging base 10. Specifically, an energy surge refers to the phenomenon of the charging base 10 rapidly increasing its power output, while a current spike refers to the phenomenon of the current in the charging base 10 suddenly increasing to a high level in a very short period of time, and then rapidly decreasing back to its original level.
[0066] It should be noted that the embodiments of this application are only illustrated by high-power charging. In fact, low-power charging may also result in a surge of energy. The embodiments of this application can be applied to wireless charging processes of various powers, and this application does not limit them.
[0067] The following is a detailed explanation of the energy surge that occurred in the charging dock 10.
[0068] During the wireless charging process between the charging dock 10 and the electronic device 20, the electronic device 20 sends a Control Error Packet (CEP) to the charging dock 10. The CEP can be used to sense whether the communication between the charging dock 10 and the electronic device 20 is normal, and it can also be used to adjust the voltage, current and power of the charging dock 10, thereby adjusting the electrical energy output by the charging dock 10.
[0069] For example, after receiving the CEP, the charging base 10 can adjust its own voltage according to the voltage adjustment parameters in the CEP, thereby adjusting its output power.
[0070] Since the charging base 10 is usually accompanied by temperature changes during the process of outputting electrical energy, the electrical energy output by the charging base 10 needs to be dynamically adjusted according to the actual situation. For example, when the temperature is too high, the charging base 10 needs to reduce its output electrical energy, and when the temperature drops, the charging base 10 can increase its output electrical energy.
[0071] Figure 2 This is a schematic diagram illustrating a dynamic adjustment scenario between a charging dock and an electronic device.
[0072] like Figure 2 As shown, the electronic device 20 continuously sends a CEP (Conversion Effect Parameter) to the charging dock 10, enabling the charging dock 10 to dynamically adjust its output power based on the voltage regulation parameters in the CEP. When the voltage regulation parameter in the CEP is positive, the charging dock 10 can boost the voltage based on the voltage regulation parameter to increase the output power; when the voltage regulation parameter in the CEP is negative, the charging dock 10 can depress the voltage based on the voltage regulation parameter to decrease the output power.
[0073] The charging dock 10 typically has a power protection state, in which the output power can be limited. Under certain conditions, if the charging dock 10 triggers the power protection state, the charging dock 10 will not respond to the positive voltage regulation parameter in CEP to boost the voltage and increase the output power.
[0074] Figure 3 This is a schematic diagram illustrating a scenario where the charging dock experiences a surge in energy.
[0075] like Figure 3 As shown in the example, when the charging dock 10 outputs electrical energy corresponding to a voltage of 9V to the electronic device 20, if the current converted by the electrical energy does not meet the required current conditions, the electronic device 20 can send a CEP to the charging dock 10 and configure the voltage regulation parameter in the CEP to be 0.1V, in order to request the charging dock 10 to boost the voltage to 9.1V.
[0076] If the charging dock 10 has triggered the power protection state, it will not respond to the CEP to boost the voltage. In this case, the current converted by the electronic device 20 based on the currently received electrical energy still does not meet the required current conditions. Therefore, the electronic device 20 will send the CEP to the charging dock 10 again and configure a larger voltage regulation parameter in the CEP, such as 0.2V, to request the charging dock 10 to boost the voltage to 9.2V.
[0077] In this way, the value of the voltage regulation parameter in CEP will gradually accumulate, for example, to 1V, in order to request the charging base 10 to boost the voltage to 10V.
[0078] If the charging dock 10 exits the power protection state at this time, it will respond to CEP by rapidly boosting the voltage from 9V to 10V. This results in a rapid increase in the output power of the charging dock 10, causing an energy surge. Simultaneously, this is accompanied by a sharp increase in current, resulting in a current spike. This can trigger the overcurrent protection (OCP) of the charging dock 10, causing it to stop charging; or, in severe cases, damage the battery of the electronic device 20 and its internal wireless charging components.
[0079] It should be noted that the voltage values in the above examples are for illustrative purposes only. The specific voltage values should be set according to the actual situation, and this application embodiment does not limit them.
[0080] To address the aforementioned issues, this application provides a wireless charging method.
[0081] The wireless charging method provided in this application can be applied to a wireless charging system. The wireless charging system may include a first electronic device and a second electronic device, where the first electronic device can be a receiving device and the second electronic device can be a transmitting device.
[0082] The first electronic device includes, but is not limited to, mobile phones, tablets, personal computers, workstations, large-screen devices (e.g., smart screens, smart TVs), wearable devices (e.g., smart bracelets, smartwatches), handheld game consoles, home game consoles, virtual reality devices, augmented reality devices, mixed reality devices, and in-vehicle smart terminals. This application does not limit the specific technology or form of the first electronic device.
[0083] Figure 4 This is a schematic diagram of the hardware structure of the first electronic device provided in the embodiments of this application.
[0084] like Figure 4As shown, the first electronic device 100 may include a processor 110, a memory 120, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 180, buttons 190, a motor 191, a camera 192, and a display screen 193, etc. The sensor module 180 may include a touch sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a geomagnetic sensor 180D, an accelerometer sensor 180E, a proximity sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, etc. The gyroscope sensor 180B, barometric pressure sensor 180C, geomagnetic sensor 180D, and accelerometer sensor 180E can all be used to detect the motion state of the first electronic device 100; therefore, they can also be called motion sensors.
[0085] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the first electronic device 100. In other embodiments of this application, the first electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0086] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0087] In this embodiment of the application, the processor 110 may include a microcontroller unit (MCU). The MCU can execute software instructions corresponding to the private protocol stored in the memory 120 to control various hardware involved in the wireless charging method.
[0088] The memory 120 can be used to store computer executable program code, including instructions. The memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the first electronic device 100 (such as audio data, phonebook, etc.). Furthermore, the memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, Universal Flash Storage (UFS), etc. The processor 110 executes various functional applications and data processing of the first electronic device 100 by running instructions stored in the memory 120 and / or instructions stored in memory disposed in the processor.
[0089] In this embodiment of the application, the memory 120 can be used to store software instructions corresponding to the private protocol.
[0090] USB interface 130 is a USB standard compliant interface, specifically a Mini USB interface, Micro USB interface, USB Type-C interface, etc. USB interface 130 can be used to connect a charger to charge the first electronic device 100, and can also be used for data transfer between the first electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other first electronic devices, such as AR devices.
[0091] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the first electronic device 100. In other embodiments of this application, the first electronic device 100 may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.
[0092] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the first electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the first electronic device via the power management module 141.
[0093] In this embodiment, the charging management module 140 is used to receive charging input from the wireless charger.
[0094] The power management module 141 connects 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, providing power to the processor 110, memory 120, display screen 193, camera 192, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0095] The wireless communication function of the first electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
[0096] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0097] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the first electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0098] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 193. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0099] The wireless communication module 160 can provide solutions for wireless communication applications on the first electronic device 100, including Wireless Local Area Networks (WLANs) (such as Wireless Fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), and Infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0100] In some embodiments, antenna 1 of the first electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the first electronic device 100 to communicate with networks and other devices via wireless communication technology. Wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc.
[0101] The first electronic device 100 implements display functions through a GPU, a display screen 193, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 193 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0102] The display screen 193 is used to display images, videos, etc. The display screen 193 includes a display panel.
[0103] The first electronic device 100 can perform shooting functions through an ISP, camera 192, video codec, GPU, display screen 193, and application processor.
[0104] The ISP (Image Signal Processor) is used to process data fed back from the camera 192. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set within the camera 192.
[0105] Camera 192 is used to capture still images or videos.
[0106] Touch sensor 180A, also known as a "touch device," can be placed on display screen 193. The touch sensor 180A and display screen 193 together form a touchscreen, also known as a "touchscreen." Touch sensor 180A is used to detect touch operations applied to or near it.
[0107] The gyroscope sensor 180B can be used to determine the motion attitude of the first electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the first electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing gaming scenarios.
[0108] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the first electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0109] The geomagnetic sensor 180D includes a Hall effect sensor. The first electronic device 100 can use the geomagnetic sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the first electronic device 100 is a flip phone, the first electronic device 100 can detect the opening and closing of the flip cover based on the geomagnetic sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.
[0110] In this embodiment of the application, the first electronic device 100 can use a Hall sensor to detect the magnetic field strength, and then detect the current value.
[0111] The accelerometer 180E can detect the magnitude of the acceleration of the first electronic device 100 in various directions (generally three axes).
[0112] Distance sensor 180F is used to measure distance.
[0113] The proximity light sensor 180G may include, for example, a light-emitting diode and a light detector, such as a photodiode.
[0114] The fingerprint sensor 180H is used to collect fingerprints.
[0115] Temperature sensor 180J is used to detect temperature. In some embodiments, the first electronic device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, the first electronic device 100 reduces the performance of a processor located near temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is below another threshold, the first electronic device 100 heats battery 142 to prevent abnormal shutdown of the first electronic device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, the first electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.
[0116] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. The first electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of the first electronic device 100.
[0117] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can be corresponding to touch operations applied to different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations applied to different areas of the display screen 193. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0118] The software system of the first electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of the first electronic device 100.
[0119] Figure 5 This is a software structure block diagram of the first electronic device 100 provided in the embodiments of this application.
[0120] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0121] The application layer can include a series of application packages.
[0122] like Figure 5As shown, the application package may include applications such as battery management, camera, gallery, calendar, call, map, navigation, music, video, and SMS.
[0123] The application framework layer provides an Application Programming Interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0124] In this embodiment of the application, the API can encapsulate some functions of a private protocol for application calls.
[0125] like Figure 5 As shown, the application framework layer may include a window manager, an input manager, a sensor manager, a phone manager, a resource manager, a notification manager, etc.
[0126] The input manager can be used to listen to user input events, such as click events and swipe events performed by the user's finger on the display screen 193 of the first electronic device 100. By listening to input events, the first electronic device 100 can determine whether it is in use.
[0127] The sensor manager is used to monitor data returned by various sensors in the first electronic device, such as motion sensor data, proximity sensor data, and temperature sensor data. Using the data returned by these sensors, the first electronic device can determine whether it is experiencing vibration or whether the display screen 193 is obstructed.
[0128] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0129] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0130] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection. System libraries can include multiple functional modules. Examples include: Surface Manager, Media Libraries, 3D graphics processing libraries (e.g., OpenGL ES), and 2D graphics engines (e.g., SGL).
[0131] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0132] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0133] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0134] A 2D graphics engine is a graphics engine for 2D drawing.
[0135] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, sensor driver, and power driver.
[0136] In this embodiment of the application, if the private protocol can interact with specific hardware, the software corresponding to the private protocol can be implemented at the kernel layer to control the hardware at the hardware layer.
[0137] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the first electronic device 100. In other embodiments of this application, the first electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0138] Figure 6 This is a schematic diagram of the structure of the second electronic device provided in the embodiments of this application.
[0139] Figure 7 This is a schematic diagram illustrating a scenario where a first electronic device and a second electronic device establish a communication connection, as provided in an embodiment of this application.
[0140] like Figure 6 and Figure 7 As shown, the second electronic device 200 is used as a charging base for illustrative purposes. The second electronic device 200 may include a wireless charging control chip 201, a DC-DC converter 202, an inverter bridge 203, and a wireless transmitting coil 204.
[0141] It is understood that the structure illustrated in the embodiments of this application does not constitute a specific limitation on the second electronic device 200. In other embodiments of this application, the second electronic device 200 may include more or fewer components than those shown in the figures, and this application does not limit this.
[0142] The second electronic device 200 has a matching power adapter 210. The output port of the power adapter 210 can be plugged into the input port of the second electronic device 200 to supply power to the second electronic device 200.
[0143] After the second electronic device 200 is powered on, the startup phase can be configured through the wireless charging control chip 201. Specifically, during the startup phase, the wireless charging control chip 201 controls the DC-DC converter 202 to adjust the voltage transmitted from the power adapter 210 to the second electronic device 200 to power the inverter bridge 203. During this process, the wireless charging control chip 201 needs to control the DC-DC converter 202 to maintain a low output voltage for the inverter bridge 203 to use, so that the inverter bridge 203 can convert DC power into high-frequency AC power at this output voltage. Furthermore, the AC power can generate an alternating magnetic field through the wireless transmitting coil 204.
[0144] After the second electronic device 200 completes the configuration during the startup phase, the first electronic device 100 and the second electronic device 200 can establish a communication connection.
[0145] Specifically, the user needs to place the first electronic device 100 on the charging area of the surface of the second electronic device 200. In this way, the second electronic device 200 can detect metal in the first electronic device 100 based on its integrated metal detection technology, and after detecting metal, it will send a ping signal to the first electronic device 100.
[0146] The first electronic device 100 can respond to the Ping signal to power on and initialize communication in order to establish a handshake connection with the second electronic device 200.
[0147] It should be noted that the wireless charging control chip 201 may also integrate a protocol control chip. The second electronic device may achieve handshake connection based on the protocol control chip. In fact, the protocol control chip may also be a discrete device, and this application embodiment does not limit this.
[0148] Specifically, the first electronic device 100 may have a built-in wireless receiving coil corresponding to the wireless transmitting coil 204. This wireless receiving coil can sense the alternating magnetic field generated by the second electronic device 200 to generate an induced electromotive force according to Faraday's law of electromagnetic induction. Furthermore, the circuitry built into the first electronic device 100 can convert the induced electromotive force into direct current for power supply.
[0149] A handshake connection is the initial connection established between the first electronic device 100 and the second electronic device 200 for communication and data transmission. The first electronic device 100 and the second electronic device 200 can identify each other through specific signals or data packets. For example, in response to a Ping signal emitted by the second electronic device 200, the first electronic device 100 sends a first acknowledgment (ACK) signal to the second electronic device 200. In this way, the first electronic device 100 and the second electronic device 200 complete the initial identification.
[0150] After the first electronic device 100 establishes a handshake connection with the second electronic device 200, it performs protocol interaction with the second electronic device 200 to determine the target protocol used between the first electronic device 100 and the second electronic device 200.
[0151] The first electronic device 100 typically includes proprietary protocols and public protocols. Proprietary protocols are communication protocols developed and used by specific manufacturers, such as the Fast Charge Protocol (FCP) and the Super Charge Protocol (SCP). Public protocols are communication protocols developed by standardization organizations and are widely accepted and used. Examples include the Power Delivery (PD) protocol and the Quick Charge (QC) protocol. This application does not limit the specific types of proprietary and public protocols.
[0152] During the protocol interaction between the first electronic device 100 and the second electronic device 200, the first electronic device 100 and the second electronic device 200 can confirm whether the target protocol used between them is a public protocol or a private protocol by exchanging specific data packets, specific identifiers or specific commands.
[0153] The following is an exemplary description of the protocol interaction process between the first electronic device 100 and the second electronic device 200.
[0154] Specifically, the first electronic device 100 and the second electronic device 200 can first exchange keys. After exchanging keys, the second electronic device 200 can sign its identity information based on the private key in the key and send the signature and identity information to the first electronic device 100. The first electronic device 100 uses the public key in the key to verify the validity of the signature. If the verification is successful, the first electronic device 100 confirms that the second electronic device 200 is a trusted device, thus completing the authentication. After completing the authentication, the first electronic device 100 and the second electronic device 200 can use the exchanged key to encrypt the communication channel. In this way, the first electronic device 100 and the second electronic device 200 can negotiate the target protocol in the encrypted communication channel.
[0155] It should be noted that the specific process of the above-described protocol interaction is only for illustrative purposes, and the embodiments of this application do not limit the specific process of the protocol interaction.
[0156] Among these, proprietary protocols can provide higher charging efficiency and faster charging speeds. For example, the target protocol used between the first electronic device 100 and the second electronic device 200 is a proprietary protocol.
[0157] Thus, based on this proprietary protocol, the first electronic device 100 and the second electronic device 200 can negotiate an initial power. The second electronic device 200 can output first electrical energy to the first electronic device 100 based on this initial power, and correspondingly, the first electronic device 100 receives the first electrical energy.
[0158] Electrical energy refers to the energy possessed by an electric charge in an electric field due to the action of the electric field force. It is a fundamental form of energy in physics and can be generated, converted, and used in various ways.
[0159] In this embodiment, the first electrical energy is a dynamically changing energy, because energy loss inevitably occurs during the transmission of electrical energy. That is to say, the magnitude of the first electrical energy output by the second electronic device 200 is different from the magnitude of the first electrical energy received by the first electronic device 100.
[0160] Based on this, the first electronic device 100 and the second electronic device 200 need to dynamically adjust the first power during the wireless charging process to ensure the stability of power transmission during the wireless charging process.
[0161] The wireless charging process of the embodiments of this application will be further described below.
[0162] Figure 8 This is the first flowchart of the wireless charging method provided in the embodiments of this application.
[0163] like Figure 8As shown, in one implementation, the method includes the following steps S101-S114.
[0164] In step S101, the first electronic device sends at least one first CEP to the second electronic device.
[0165] CEP typically refers to the data packets that exchange information between the first and second electronic devices during wireless charging. This information may include charging status, power level, error codes, etc., to ensure that the charging process can proceed normally.
[0166] For example, the data structure in a CEP (Content Processing Epitaxy) may include a header structure, a parameter structure, a timestamp, a checksum, and a tail structure. The header structure can be used to identify the type and version of the data packet. The parameter structure can be used to store values for parameters such as voltage, current, power, efficiency, and error count. The timestamp can record the transmission and reception times of the data packet. The checksum can be used to check the integrity of the data in the data packet. The tail structure may contain an end marker or a sequence number.
[0167] It should be noted that the embodiments of this application are only illustrative of the data structure of CEP. CEP may also have other forms of data structure, which are not limited in this application.
[0168] The first electronic device sends a first CEP to the second electronic device, enabling the second electronic device to adjust the first electrical energy according to the first parameter in the parameter structure of the first CEP.
[0169] Specifically, the parameter structure can include target parameters and actual parameters. Target parameters can include target voltage value, target current value, target power value, target charging rate, etc., while actual parameters can include actual voltage value, actual current value, actual power value, actual charging rate, etc.
[0170] The target parameter's value can be defined through a proprietary protocol. The actual parameter's value can be obtained from the detection of the first electronic device.
[0171] The following is an exemplary description of the process by which the first electronic device detects the actual voltage value.
[0172] For example, the first electronic device has built-in components such as a wireless receiving coil, a rectifier, a voltage regulator, a voltage detection circuit, and a microcontroller.
[0173] After the first electronic device senses the alternating magnetic field generated by the second electronic device through its wireless receiving coil, it generates an induced electromotive force (EMF). A rectifier converts this EMF into direct current (DC), and a voltage regulator stabilizes the corresponding DC voltage at the level required by the battery of the first electronic device. Furthermore, a voltage detection circuit can convert the voltage into a digital signal using an analog-to-digital converter (ADC). The microcontroller can then read these digital signals to obtain the actual voltage value.
[0174] The following is an exemplary description of the process by which the first electronic device detects the actual current value.
[0175] The first electronic device can calculate the actual current value based on the actual voltage value and the resistance value of its built-in resistor.
[0176] The first electronic device can also have a built-in Hall sensor. Since there is a proportional relationship between the magnetic field and the current, the first electronic device can detect the magnetic field strength of the alternating magnetic field induced by the wireless receiving coil through the Hall sensor, and thus detect the actual current value.
[0177] The first electronic device can also have a built-in current sensor. The current sensor usually integrates a shunt resistor and a signal amplification circuit, and can directly output a digital signal corresponding to the current, thereby obtaining the actual current value.
[0178] It should be noted that the first electronic device may detect the actual voltage and current values using the methods described above. The first electronic device may also use other methods for detection, which will not be elaborated upon in this embodiment. The first electronic device may also detect the actual power value, actual charging rate, etc., using similar methods. This embodiment does not limit the specific method by which the first electronic device detects the actual parameters.
[0179] The parameter structure can also include difference parameters, which can be obtained based on the difference between the target parameter and the actual parameter. Difference parameters can include voltage difference parameters, current difference parameters, power difference parameters, and charging rate difference parameters, etc. For example, voltage difference parameters can be obtained based on the difference between the target voltage value and the actual voltage value; current difference parameters can be obtained based on the difference between the target current value and the actual current value; power difference parameters can be obtained based on the difference between the target power value and the actual power value; and charging rate difference parameters can be obtained based on the difference between the target charging rate and the actual charging rate.
[0180] In fact, the parameter structure can include more types of parameters, but the embodiments of this application do not limit the types of parameters in the parameter structure.
[0181] The first parameter may include one or more of the above parameters to increase or decrease the first electrical energy.
[0182] It should be noted that the first electrical energy can be regulated based on at least one of voltage, current, and power. The second electronic device can adjust the transformer voltage based on the voltage-related parameters in the first parameter to change the output power of the second electronic device, thereby regulating the first electrical energy. The second electronic device can also adjust the current in the current limiter based on the current-related parameters in the first parameter to change the output power of the second electronic device, thereby regulating the first electrical energy. Alternatively, the second electronic device can simultaneously regulate both voltage and current by adjusting a variable resistor based on both the voltage-related and current-related parameters in the first parameter to change the output power of the second electronic device, thereby regulating the first electrical energy.
[0183] The following embodiments of this application exemplify the method of regulating the first electrical energy based on voltage. However, methods of regulating the first electrical energy based on different methods such as current or power can be referred to interchangeably with the method of regulating the first electrical energy based on voltage, and these will not be elaborated upon in the embodiments of this application. The embodiments of this application do not limit the specific method of regulating the first electrical energy.
[0184] When the first parameter includes one parameter, such as a voltage difference parameter, the second electronic device can directly adjust the first electrical energy based on the magnitude of that parameter. When the first parameter includes multiple parameters, such as a target voltage value and an actual voltage value, the second electronic device can adjust the first electrical energy based on the processed value after processing the first parameter. This application does not limit the number or type of parameters included in the first parameter.
[0185] The following embodiments of this application are all illustrated by using the first parameter as the voltage difference parameter.
[0186] After the first electronic device and the second electronic device negotiate the initial power based on the private protocol, both the first electronic device and the second electronic device can determine the first target voltage value based on the private protocol. The second electronic device can output the first electrical energy based on the first target voltage value. However, due to the influence of various factors (such as equipment loss, temperature change, humidity change, etc.) during the power transmission process, the first electrical energy received by the first electronic device cannot reach the first target voltage value, but can only reach the first voltage value. The first voltage value is the actual voltage value detected by the first electronic device. Therefore, the first electronic device and the second electronic device need to dynamically adjust the power transmission process to make the first voltage value closer to the first target voltage value.
[0187] The first electronic device can set the first parameter to the first voltage difference between the first target voltage value and the first voltage value, and store the first parameter in the first CEP, so that the second electronic device can adjust the first power according to the first parameter after receiving the first CEP.
[0188] When the first target voltage value is greater than the first voltage value, it indicates that the first electrical energy provided by the second electronic device does not meet the electrical energy required by the first electronic device. At this time, the first voltage difference is positive. The first electronic device can store this positive value in the first CEP sent to the second electronic device, so that the second electronic device can increase the first electrical energy according to the positive value when sending the first electrical energy in the future.
[0189] For example, when the first target voltage is 9V, the first voltage is 8.9V, and the first voltage difference is 0.1V, that is, the first parameter is 0.1V. When the second electronic device subsequently sends the first power, it boosts the voltage by 0.1V before outputting the first power.
[0190] It should be noted that in this embodiment, the first CEP can actually store the first parameter in binary or hexadecimal form. For example, the first parameter can be in binary form 00000011 or in hexadecimal form 0x03. This embodiment does not limit the specific storage format of each parameter in the first CEP; this embodiment only uses the actual voltage difference corresponding to the first parameter as an example for illustration.
[0191] Correspondingly, when the first target voltage value is less than the first voltage value, it indicates that the first electrical energy provided by the second electronic device exceeds the amount of electrical energy required by the first electronic device. At this time, the first voltage difference is negative. The first electronic device can store this negative value in the first CEP sent to the second electronic device, so that the second electronic device can reduce the first electrical energy according to the negative value when sending the first electrical energy in the future.
[0192] For example, when the first target voltage is 9V, the first voltage is 9.1V, and the first voltage difference is -0.1V, that is, the first parameter is -0.1V. When the second electronic device subsequently sends the first power, it reduces the voltage by 0.1V before outputting the first power.
[0193] It should be noted that the values shown in the embodiments of this application are for illustrative purposes only, and the specific values shall be subject to the actual situation.
[0194] In one implementation, step S101 includes step S1011.
[0195] In step S1011, after each transmission of the first CEP, the first electronic device updates the first parameter in the next transmission of the first CEP based on the received first electrical energy.
[0196] If neither the first electronic device nor the second electronic device malfunctions, there can be multiple interactions between the first electronic device and the second electronic device, specifically with the first CEP.
[0197] Figure 9 This is the second flowchart of the wireless charging method provided in the embodiments of this application.
[0198] like Figure 9 As shown, step S1011 includes steps S1011a-S1011c.
[0199] In step S1011a, after each transmission of the first CEP, the first electronic device determines the first voltage value corresponding to the first electrical energy based on the received first electrical energy.
[0200] In step S1011b, the first electronic device acquires a first voltage difference between the first target voltage value and the first voltage value, and determines the first voltage difference as the updated first parameter.
[0201] The first target voltage can be dynamically changed. Specifically, after the proprietary protocol determines the initial first target voltage value, it can dynamically adjust the first target voltage as the battery charging stage changes (e.g., the battery charging stage changes from the initial stage to the constant current stage, and then to the constant voltage stage) to optimize the energy conversion process. The proprietary protocol can also adjust the first target voltage according to the current device temperature of the first electronic device to ensure that the first electronic device is charged within a safe temperature range. This application embodiment does not limit the adjustment method or value of the first target voltage.
[0202] It should be noted that the first target voltage value can gradually increase until it reaches the maximum target voltage value. In this way, the first electronic device can gradually increase the transmitted electrical energy during this process, accelerating the charging rate.
[0203] In step S1011c, the first electronic device configures the updated first parameter in the next transmitted first CEP.
[0204] For example, the first electronic device determines a first target voltage value of 9V based on a proprietary protocol, receives a first voltage value of 8.9V, and the first parameter in the first CEP sent for the first time is 0.1V. The second voltage device boosts the voltage by 0.1V.
[0205] After the second electronic device boosts the voltage by 0.1V, the first electronic device, based on the received first electrical energy, determines that the corresponding first voltage value is 9V. At this point, the first electronic device can increase the first target voltage value to 9.1V based on a proprietary protocol. Thus, the first electronic device can obtain a first voltage difference of 0.1V between the first target voltage value and the first voltage value. The first parameter in the first CEP sent by the first electronic device a second time is 0.1V. The second electronic device then boosts the voltage by 0.1V again.
[0206] In another implementation, step S1011 may also include steps S1011d-S1011f.
[0207] In step S1011d, after each transmission of the first CEP, the first electronic device determines the first current value corresponding to the first electrical energy based on the received first electrical energy.
[0208] In step S1011e, the first electronic device acquires a first current difference between the first target current value and the first current value, and determines the first current difference as the updated first parameter.
[0209] In step S1011f, the first electronic device configures the updated first parameter in the next transmitted first CEP.
[0210] It should be noted that steps S1011d-S1011f can be implemented in conjunction with steps S1011a-S1011c. For example, if steps S1011a and S1011d are combined, the first electronic device can determine the first voltage value and the corresponding first current value based on the received first electrical energy after each transmission of the first CEP. Steps S1011d-S1011f can also be used as alternatives to steps S1011a-S1011c, for example, only the first current difference can be determined as the updated first parameter. Accordingly, embodiments of this application can also derive more implementation methods based on parameters such as power and charging rate. These implementation methods can be combined with each other or implemented individually, and this application does not limit them.
[0211] The subsequent embodiments of this application are described by using steps S1011a-S1011c separately. If other implementation methods are used in step S1011, the subsequent embodiments can be adapted.
[0212] In step S102, the second electronic device receives at least one first CEP sent by the first electronic device, and adjusts the first electrical energy output to the first electronic device in response to the first parameter in the first CEP.
[0213] In one implementation, step S102 includes step S1021.
[0214] In step S1021, the second electronic device receives at least one first CEP sent by the first electronic device, and sends a second ACK signal to the first electronic device to notify the first electronic device that it has received the first CEP based on the second ACK signal, and the second electronic device can respond to the first CEP.
[0215] Furthermore, based on the structure of the second electronic device in the foregoing embodiments, the specific implementation of step S102 will be described.
[0216] The second electronic device can receive the first CEP sent by the first electronic device through the wireless charging control chip, and parse the first parameter from the first CEP. Furthermore, the second electronic device inputs the digital signal corresponding to the first parameter into its built-in voltage control circuit to boost or buck the voltage, thereby regulating the first electrical energy.
[0217] In step S103, the second electronic device enters an abnormal state.
[0218] An abnormal state includes the second electronic device failing to increase the first electrical energy in response to the first parameter. Specifically, the abnormal state of the second electronic device is a power protection state. This state can be triggered by at least one condition such as excessive temperature or fan malfunction. In this state, the second electronic device can limit the power to a lower level to protect the device.
[0219] In another implementation, the abnormal state also includes the second electronic device abnormally responding to the first parameter by boosting the voltage to a value lower than that corresponding to the first parameter.
[0220] In other words, due to power limitations, the second electronic device will not boost the voltage in response to the first parameter in the first CEP sent by the first electronic device, or it will abnormally boost the voltage slowly in response to the first parameter.
[0221] This application embodiment is only used as an example to illustrate the case where the second electronic device does not boost voltage in response to the first parameter in the first CEP sent by the first electronic device. The case where the second electronic device abnormally responds to the first parameter and slowly boosts voltage can be referred to in conjunction with the case where it does not respond to boosting voltage, and this application embodiment will not elaborate on this.
[0222] Specifically, the second electronic device can determine that it has entered an abnormal state when it determines that its own temperature is greater than or equal to a first temperature threshold.
[0223] In one implementation, the second electronic device may include a thermistor. When the temperature of the second electronic device rises, the resistance of the thermistor changes. The second electronic device can measure the voltage across the thermistor using a voltage divider circuit to monitor the change in resistance. Since there is a proportional relationship between the resistance of the thermistor and temperature, the second electronic device can determine its own temperature based on the thermistor's resistance and compare the determined temperature with a preset first temperature threshold. If the temperature is greater than or equal to the first temperature threshold, the second electronic device can determine that the current temperature is too high and power limiting is required in an abnormal state.
[0224] In one implementation, the second electronic device can also measure its internal temperature using a temperature sensor, such as a thermocouple or a thermistor. In this way, the second electronic device can determine its own temperature and compare the determined temperature with a preset first temperature threshold. If its own temperature is greater than or equal to the first temperature threshold, the second electronic device can determine that the current temperature is too high and power limiting is required in an abnormal state.
[0225] It should be noted that the first temperature threshold may be pre-stored in the wireless charging chip of the second electronic device, and the value of the threshold may be set according to various factors such as the material and model of the second electronic device. The specific value of the first temperature threshold is not limited in this embodiment.
[0226] The second electronic device can also determine that it has entered an abnormal state when it detects an abnormality in its built-in fan.
[0227] Because the second electronic device generates heat during wireless charging, it typically has a fan for cooling. If the second electronic device overheats, it may fail to detect its built-in fan; this is known as a fan malfunction, and the second electronic device is then considered to be in an abnormal state.
[0228] In one implementation, after the second electronic device enters an abnormal state, it sends a first negative acknowledgment (NACK) signal to the first electronic device. This allows the second electronic device to notify the first electronic device that it has entered an abnormal state.
[0229] The NACK signal is a negative response signal used to indicate that the receiver has not successfully received a data packet or command from the sender, or that the received data packet contained an error, or that the received data packet could not be parsed. Upon receiving a NACK signal, the sender can resolve the unresponsiveness issue by retransmitting data, resending commands, or taking other measures.
[0230] It should be noted that the second electronic device may also enter an abnormal state based on other triggering conditions. This application embodiment does not limit the triggering conditions for the second electronic device to enter an abnormal state.
[0231] In this embodiment of the application, after the second electronic device notifies the first electronic device that it has entered an abnormal state, the first electronic device can further perform the following steps to solve the problem that the second electronic device cannot respond to the first parameter to increase the first power.
[0232] In step S104, the first electronic device determines whether the second electronic device is in an abnormal state.
[0233] In one implementation, if the first electronic device determines that the updated first parameter is greater than or equal to a second preset threshold during at least one configuration update of the first parameter, the first electronic device can determine that the second electronic device is in an abnormal state.
[0234] Figure 10 This is a schematic diagram of the first scenario in which the first electronic device determines that the second electronic device is in an abnormal state.
[0235] like Figure 10 As shown, for ease of explanation, the power transmission process between the first electronic device and the second electronic device is described without ignoring the power loss between the first electronic device and the second electronic device.
[0236] It should be noted that power loss is unavoidable in actual power transmission. If there were no power loss, there would be no need for dynamic adjustment of the first electrical energy between the first and second electronic devices. The following embodiments of this application maintain the first electrical energy output by the second electronic device and the first electrical energy received by the first electronic device at the same baseline, which can better reflect the specific adjustment process of the first electronic device. In reality, there is a difference between the first electrical energy output by the second electronic device and the first electrical energy received by the first electronic device, and adaptive adjustments are required in the specific implementation of the embodiments of this application.
[0237] For example, when the second electronic device is in an abnormal state, and the first voltage value corresponding to the first electrical energy currently output by the second electronic device is 9V (which may actually be higher than 9V), the first voltage value corresponding to the first electrical energy received by the first electronic device is 9V. If the proprietary protocol requests a boost to the first target voltage value of 9.1V to improve charging efficiency, the first electronic device can determine that the first voltage difference between the first target voltage value and the first voltage value is 0.1V, and store 0.1V as a first parameter in the first CEP. Further, the first electronic device sends the first CEP to the second electronic device. Since the second electronic device is in an abnormal state, it will not respond to the first parameter boost of 0.1V. Therefore, the first voltage value corresponding to the first electrical energy currently output by the second electronic device is still 9V, and the first voltage value corresponding to the first electrical energy received by the first electronic device is still 9V. Thus, the first electronic device detects that the first voltage value has not increased, and the proprietary protocol will increase the first target voltage value to 9.2V. The first electronic device can then determine that the first voltage difference between the first target voltage value and the first voltage value is 0.2V, and store 0.2V as a first parameter in the first CEP. Furthermore, the first electronic device sends the first CEP to the second electronic device.
[0238] Similarly, the first parameter in the first CEP sent by the first electronic device is updated multiple times, and the value gradually increases. For example, the first parameter is updated to 0.1V, 0.2V, 0.3V, 0.4V, 0.5V, etc. in sequence.
[0239] The second preset threshold can be set to 0.3V, for example. In this way, when the first electronic device configures the first parameter to 0.3V, it can be determined that 0.3V is equal to the second preset threshold, and thus it can be determined that the second electronic device is in an abnormal state.
[0240] Since the first electronic device compares the first parameter and the second preset threshold only once, it may make a misjudgment. Therefore, the first electronic device can compare the first parameter and the second preset threshold within a preset number of times to improve the accuracy of judging abnormal states.
[0241] Figure 11 This is a schematic diagram of a second scenario where the first electronic device determines that the second electronic device is in an abnormal state.
[0242] like Figure 11 As shown in the example, the preset number of times is 3. After the first electronic device configures the first parameter to 0.3V and determines that 0.3V is equal to the second preset threshold, configures the first parameter to 0.4V and determines that 0.4V is greater than the second preset threshold, and configures the first parameter to 0.5V and determines that 0.5V is greater than the second preset threshold, it can be determined that the second electronic device is in an abnormal state.
[0243] It should be noted that the specific value of the second preset threshold is not limited in the embodiments of this application, and the specific value of the preset number of times is not limited in the embodiments of this application. Each value is set according to the actual situation.
[0244] In one implementation, after sending the first CEP, the first electronic device determines that the second electronic device is in an abnormal state based on the received first NACK signal.
[0245] In one implementation, the first electronic device can also determine that the second electronic device is in an abnormal state by detecting the actual voltage value, the actual current value, etc.
[0246] The following example illustrates how a first electronic device determines that a second electronic device is in an abnormal state by detecting the actual voltage value.
[0247] Specifically, if the first electronic device detects that the first voltage value (i.e. the actual voltage value) is less than the first target voltage value, and the first voltage value does not increase within a preset time period, it determines that the second electronic device is in an abnormal state.
[0248] Figure 12 This is a schematic diagram of a third scenario where the first electronic device determines that the second electronic device is in an abnormal state.
[0249] like Figure 12 As shown in the example, the first electronic device detects a first voltage value of 9V. At this time, the first target voltage value is 9.1V. Thus, the first voltage value is less than the first target voltage value. Under normal circumstances, the second electronic device will boost the voltage to increase the first voltage value. Taking a preset duration of 10 seconds as an example, if the first voltage value remains at 9V within 10 seconds (ignoring voltage fluctuations), it indicates that the second voltage device has not boosted the voltage, and the first electronic device can determine that the second electronic device is in an abnormal state.
[0250] It should be noted that the embodiments of this application do not limit the value of the preset duration.
[0251] Correspondingly, based on a similar method to detecting the first voltage value, the first electronic device can also detect the first current value (i.e., the actual current value) and the first power value (i.e., the actual power value) to determine that the second electronic device is in an abnormal state. The various methods in the embodiments of this application can be referred to each other, and this application will not elaborate on them.
[0252] It should be noted that the embodiments of this application only provide an exemplary description of the method by which the first electronic device determines whether the second electronic device is in an abnormal state. In fact, in the embodiments of this application, the first electronic device may also use other methods to determine whether the second electronic device is in an abnormal state, and this application does not limit this.
[0253] In step S105, if the first electronic device determines that the second electronic device is in an abnormal state, it sends at least one second CEP to the second electronic device.
[0254] The second CEP is formed by modifying the first parameter in the first CEP to a second parameter using the first electronic device. The second parameter is used to ensure that the first electrical energy is less than a first preset threshold.
[0255] Figure 13 This is the third flowchart of the wireless charging method provided in the embodiments of this application.
[0256] like Figure 13 As shown, step S105 includes steps S1051-S1053.
[0257] Step S1051: When the first electronic device determines that the second electronic device is in an abnormal state, it enters the CEP control mode.
[0258] In one implementation, when the first electronic device determines that the second electronic device is in an abnormal state, it changes a first flag bit to determine whether to enter the CEP control mode based on the first flag bit.
[0259] CEP control mode is a mode that allows modification of parameters within the CEP. The first flag indicates whether modification of the parameters within the CEP is necessary.
[0260] For example, the first flag is cep_ctr_flag. The first flag can be configured as "cep_ctr_flag=True".
[0261] In other words, when cep_ctr_flag is set to "True", the first electronic device is determined to enter the CEP control mode, and the parameters in the first CEP need to be modified.
[0262] It should be noted that the implementation of flag bits can differ across programming languages. For example, in Python, flag bits can be represented as Boolean values, i.e., "True" or "False," while in C, flag bits can be represented as integers, i.e., "1" or "0." This application does not limit the specific setting method of the first flag bit in its embodiments.
[0263] In one implementation, after the first electronic device enters the CEP control mode, it changes the second flag bit to store the first recorded voltage value based on the second flag bit.
[0264] The first recorded voltage value includes the first voltage value detected when the first electronic device determines that the second electronic device is in an abnormal state, the first target voltage value in the first CEP, and the first parameter in the first CEP.
[0265] It should be noted that the first recorded voltage value may include more or fewer types of values as shown in the examples above, and this application embodiment does not limit this.
[0266] The first recorded voltage value is used for subsequent voltage recovery processes. The voltage recovery process is described in detail in subsequent embodiments of this application, and will not be repeated here.
[0267] The following is an exemplary description of how the first electronic device stores the first recorded voltage value.
[0268] For example, the second flag is first_cep_ctr. The second flag can be configured as "first_cep_ctr = True".
[0269] After the state of the second flag changes, the first electronic device can start storing values based on this change, for example, storing the acquired first voltage value, first target voltage value and first parameter into an array or list.
[0270] The embodiments of this application do not limit the specific setting method of the second flag bit.
[0271] Further explanation is based on the foregoing embodiments. When the second electronic device is in an abnormal state, and the first voltage value corresponding to the first electrical energy currently output by the second electronic device is 9V, the first voltage value remains at 9V as the first parameter is sequentially updated to 0.1V, 0.2V, 0.3V, 0.4V, and 0.5V. If the first electronic device determines that the second electronic device is in an abnormal state by comparing the first parameter and a second preset threshold based on a preset number of times, then when the first electronic device determines that the second electronic device is in an abnormal state, the detected first voltage value is 9V, the first target voltage value in the current first CEP is 9.5V, and the first parameter is 0.5V.
[0272] In other words, based on the change of the second flag bit, the first recorded voltage value stored by the first electronic device may include a first voltage value: 9V, a first target voltage value: 9.5V, and a first parameter: 0.5V.
[0273] In step S1052, the first electronic device, in CEP control mode, modifies the first parameter in the first CEP to the second parameter to form the second CEP.
[0274] Further explanation is based on the foregoing embodiments. Since the first parameter has been updated from 0.1V to 0.5V, under normal circumstances, the first electronic device will continue to increase the value of the first parameter, for example, updating the first parameter to 0.6V.
[0275] In this embodiment of the application, under the CEP control mode, the first electronic device will modify the first parameter to the second parameter, for example, modify the first parameter of 0.6V to the second parameter of 0.1V to form a second CEP.
[0276] Thus, because the value of the second parameter is relatively small, the first electrical energy output by the second electronic device based on the second parameter can be controlled within the range of the first preset threshold. The first preset threshold can be an electrical energy value that can prevent the second electronic device from experiencing a surge in energy. The specific value of the first preset threshold is not limited in the embodiments of this application.
[0277] Specifically, when the second electronic device is in an abnormal state, its output first electrical energy can be, for example, the electrical energy corresponding to a first voltage value of 9V. If the target electrical energy corresponding to the first voltage value of 9.1V can prevent the second electronic device from experiencing an energy surge, then the first preset threshold can be the value corresponding to the target electrical energy.
[0278] It should be noted that in this embodiment, the first second CEP is obtained by modifying the parameters of the first CEP. The second CEP sent thereafter can be obtained by modifying the parameters of the first CEP or can be generated directly. This embodiment does not limit this.
[0279] Step S1053: The first electronic device sends a second CEP to the second electronic device.
[0280] Figure 14 This is a schematic diagram of the interaction process between the first electronic device and the second electronic device after the second electronic device enters an abnormal state, as provided in the embodiments of this application.
[0281] like Figure 14As shown, after the second electronic device enters an abnormal state, the first electronic device typically cannot detect its abnormal state in real time. Instead, it continues to send the first CEP (Concurrent Error Preset) after the second electronic device enters the abnormal state. Furthermore, since the second electronic device does not respond to the first CEP voltage increase, the first electronic device continuously sends multiple first CEPs, with the first parameter in each CEP gradually increasing in anticipation of a response from the second electronic device. For example, the first electronic device might sequentially send first CEPs with a first parameter of 0.1V, 0.2V, 0.3V, 0.4V, and 0.5V. When the second preset threshold is 0.3V and the preset number of times is 3, and the first parameter is 0.5V, the first electronic device has determined that the second electronic device is currently in an abnormal state. At this point, the first electronic device no longer sends first CEPs that increase the first parameter, but instead sends second CEPs with a second parameter, i.e., a second CEP with a second parameter of 0.1V. This process of sending second CEPs continues until the second electronic device exits the abnormal state.
[0282] In other words, when the second electronic device is in an abnormal state, the first voltage value corresponding to its output first electrical energy is 9V, and it remains at 9V for a certain period of time. During this period, the second electronic device will neither respond to the first parameter increasing from 0.1V to 0.5V to boost the voltage, nor will it respond to the second parameter of 0.1V to boost the voltage. Since the process of the first electronic device sending the second CEP continues until the second electronic device exits the abnormal state, when the second electronic device exits the abnormal state, it will respond to the 0.1V in the second CEP to boost the voltage. That is, the second electronic device can output the first electrical energy corresponding to the first voltage value of 9.1V. In this way, when the first electronic device sends the second CEP to the second electronic device, it can both put the second electronic device into a load state through the second parameter and ensure that the first electrical energy to be loaded by the second electronic device does not differ too much from the current actual output first electrical energy, which would cause a surge in energy and damage to the device when the second electronic device exits the abnormal state.
[0283] In step S106, the second electronic device receives at least one second CEP sent by the first electronic device.
[0284] In an abnormal state, the second electronic device will continuously receive the second CEP sent by the first electronic device. In this way, no matter when the second electronic device exits the abnormal state, it can be ensured that it can respond to the second CEP to boost the voltage.
[0285] Since the second electronic device is currently in an abnormal state, it will not respond to the second CEP by boosting the voltage after receiving the second CEP. In order to notify the first electronic device of its current state, the second electronic device can send a second NACK signal to the first electronic device after receiving the second CEP each time.
[0286] The first NACK signal and the second NACK signal involved in the embodiments of this application will be described in detail below.
[0287] In the aforementioned embodiments, after the second electronic device enters an abnormal state, since it is unable to respond to the first CEP, it can notify the first electronic device that it has entered an abnormal state via the first NACK signal. After determining that the second electronic device has entered an abnormal state, the first electronic device will send a second CEP to the second electronic device. At this time, the second electronic device can notify the first electronic device that it is still in an abnormal state via the second NACK signal. Both the first and second NACK signals can be signals from the second electronic device to notify the first electronic device that it is currently in an abnormal state, differing only in the timing of their transmission. Their data structures can be the same.
[0288] In step S107, the second electronic device exits the abnormal state to adjust the first power in response to the second parameter in the second CEP.
[0289] The second electronic device can exit the abnormal state when the temperature drops or the fan resets. When the second electronic device exits the abnormal state, it can restore power load, that is, enter the voltage recovery process.
[0290] In one implementation, the second electronic device can determine to exit the abnormal state when it determines that its own temperature is less than a first temperature threshold.
[0291] When the temperature of the second electronic device rises, it will limit its own power. As the power will not continue to increase, the temperature of the second electronic device will drop. When the temperature drops below the first temperature threshold, the second electronic device will exit the abnormal state.
[0292] The second electronic device can also determine when it exits an abnormal state by detecting a reset of its built-in fan.
[0293] In one implementation, after the second electronic device exits the abnormal state, it sends a third ACK signal to the first electronic device. This allows the second electronic device to notify the first electronic device that it has exited the abnormal state.
[0294] In this embodiment, the data structure of the third ACK signal can be the same as that of the second ACK signal in the aforementioned embodiment, except that the two are sent at different times.
[0295] For example, without using the technical solution shown in the embodiments of this application, the first electronic device sends a first CEP with a first parameter of 0.1V, a first CEP with a first parameter of 0.2V, a first CEP with a first parameter of 0.3V, a first CEP with a first parameter of 0.4V, a first CEP with a first parameter of 0.5V, and so on, to the second electronic device. When the second electronic device exits the abnormal state, the first parameter in the first CEP may have increased to 1V. In this way, the second electronic device responds to the first parameter in the first CEP by instantaneously increasing the first voltage value from 9V to 10V, resulting in an energy surge that can easily lead to device damage.
[0296] When the technical solution shown in the embodiments of this application is adopted, the first electronic device will send a first CEP with a first parameter of 0.1V, a first CEP with a first parameter of 0.2V, a first CEP with a first parameter of 0.3V, a first CEP with a first parameter of 0.4V, a first CEP with a first parameter of 0.5V, a second CEP with a second parameter of 0.1V, a second CEP with a second parameter of 0.1V, a second CEP with a second parameter of 0.1V, and so on to the second electronic device. When the second electronic device exits the abnormal state, it will respond to the second parameter of 0.1V, increase the first voltage value from 9V to 9.1V, and output the first electrical energy corresponding to 9.1V.
[0297] In this way, when the second electronic device exits the abnormal state, it can respond to the load of the recovery voltage of the second parameter, and the load degree is small. It can control the first electrical energy output within the first preset threshold range, avoid energy surge, and prevent device damage.
[0298] In step S108, the first electronic device determines that the second electronic device has exited the abnormal state.
[0299] The first electronic device is usually unable to determine in real time whether the second electronic device has exited the abnormal state. Therefore, the first electronic device can determine whether the second electronic device has exited the abnormal state by detecting changes in the first electrical energy it receives and by obtaining ACK signals.
[0300] In one implementation, if the first electronic device receives an increase in the first electrical energy, the first electronic device determines that the second electronic device has exited the abnormal state.
[0301] Further explanation is provided based on the values shown in the foregoing embodiments. When the second electronic device is in an abnormal state, its output first electrical energy can be the electrical energy corresponding to a first voltage value of 9V, and the first electrical energy will maintain the same energy level for a certain period of time. Since the second electronic device can output the first electrical energy corresponding to a first voltage value of 9.1V after exiting the abnormal state, the first electrical energy output by the second electronic device increases.
[0302] Correspondingly, the first electronic device detects an increase in the first voltage value. Thus, the first electronic device can determine that the first electrical energy it has received has increased based on the increase in the first voltage value, and thereby determine that the second electronic device has exited the abnormal state.
[0303] In one implementation, the first electronic device can receive a third ACK signal sent by the second electronic device to determine that the second electronic device has exited the abnormal state.
[0304] Step S109: If the first electronic device determines that the second electronic device has exited the abnormal state, it determines whether to exit the CEP control mode.
[0305] In one implementation, the first electronic device resets a first flag bit to determine exit from CEP control mode based on the reset first flag bit.
[0306] For example, the first flag can be configured as "cep_ctr_flag=False".
[0307] In other words, when cep_ctr_flag is set to "False", the first electronic device is determined to exit CEP control mode.
[0308] Step S110: After the first electronic device determines to exit the CEP control mode, the first electronic device compares the first voltage value corresponding to the first electrical energy received with the first target voltage value in the first recorded voltage value.
[0309] In this system, the first electronic device continuously sends a second CEP to the second electronic device under CEP control mode. This ensures that when the second electronic device exits the abnormal state and initially applies voltage based on the second CEP, there will be no energy surge. In reality, the initial electrical energy provided by the second electronic device may differ somewhat from the expected electrical energy provided by the first electronic device before entering CEP control mode.
[0310] The expected electrical energy of the first electronic device before entering the CEP control mode corresponds to the first target voltage value in the first recorded voltage value.
[0311] Further explanation is based on the foregoing embodiments. When the first electronic device determines that the second electronic device is in an abnormal state, the detected first voltage value is 9V, the first target voltage value in the current first CEP is 9.5V, and the first parameter is 0.5V. That is, the first electronic device expects the second electronic device to provide it with the first electrical energy corresponding to 9.5V, but the first electrical energy actually provided by the second electronic device is lower than the expected level.
[0312] Since the first electrical energy currently provided by the second electronic device may or may not differ from the expected electrical energy of the first electronic device, the first electronic device needs to compare the first electrical energy with the expected electrical energy to determine whether there is a difference between the two.
[0313] For example, after the second electronic device restores its voltage load, based on the second parameter of 0.1V, the first voltage value corresponding to the first electrical energy output to the first electronic device is 9.1V. However, the first target voltage value in the first recorded voltage value is 9.5V. The first electronic device needs to compare 9.1V with 9.5V.
[0314] Step S111: If the first voltage value corresponding to the first electrical energy received by the first electronic device is less than the first target voltage value in the first recorded voltage value, the first electronic device sends at least one third CEP to the second electronic device.
[0315] Further explanation is based on the foregoing embodiments. When the first voltage value is 9.1V and the first target voltage value is 9.5V, the first voltage value is less than the first target voltage value.
[0316] Thus, the first electronic device needs to send a third CEP to the second electronic device to further smooth the voltage recovery process. The third CEP includes a third parameter, which includes a preset adjustment step size.
[0317] Specifically, in the aforementioned embodiments, the second electronic device can avoid the instantaneous energy surge when it exits an abnormal state based on the second CEP. However, if the original interaction process between the first and second electronic devices is resumed at this time, i.e., data interaction is performed through the first CEP, there is still a possibility of a certain degree of energy surge, which could lead to device damage. Therefore, the first electronic device also needs to control the second electronic device to gradually increase the first electrical energy through the third parameter in the third CEP to avoid energy surge.
[0318] For example, the adjustment step size can be set to 0.1V. Since there is a 0.4V difference between the first voltage value of 9.1V and the first target voltage value of 9.5V, with an adjustment step size of 0.1V, the first electronic device can send 4 third CEPs to the second electronic device to achieve the transition between the first power and the desired power.
[0319] In step S112, the second electronic device receives at least one third CEP to adjust the first power in response to a third parameter in the third CEP.
[0320] For example, after the second electronic device outputs a first voltage value of 9.1V to the first electronic device based on the second parameter of 0.1V, it further outputs a first voltage value of 9.2V to the first electronic device based on the adjustment step of 0.1V in the third parameter, and so on, until the first voltage value of 9.5V is output.
[0321] In this way, the second electronic device gradually restores power load to smoothly regulate the first electrical energy.
[0322] In one implementation, after receiving the third CEP, the second electronic device sends a fourth ACK signal to the first electronic device. This allows the second electronic device to notify the first electronic device that it has responded to the third CEP.
[0323] Step S113: If the first voltage value corresponding to the first electrical energy received by the first electronic device is greater than or equal to the first target voltage value in the first recorded voltage value, the first electronic device sends at least one first CEP to the second electronic device.
[0324] It should be noted that, in this embodiment of the application, after step S110, if the first voltage value corresponding to the first electrical energy received by the first electronic device is less than the first target voltage value in the first recorded voltage value, then the first electrical energy needs to be adjusted through steps S111 and S112 until the first voltage value corresponding to the first electrical energy received by the first electronic device is greater than or equal to the first target voltage value in the first recorded voltage value, thereby realizing step S113.
[0325] In other cases, after step S110, it can be determined that the first voltage value corresponding to the first electrical energy received by an electronic device is greater than or equal to the first target voltage value in the first recorded voltage value. That is, after step S110, step S113 is executed directly.
[0326] The specific execution order of the above steps is not limited in the embodiments of this application.
[0327] For example, the first electronic device receives a first electrical energy corresponding to a first voltage value that has increased to 9.5V, and the first target voltage value in the first recorded voltage value is 9.5V. The first electronic device sends at least one first CEP to the second electronic device.
[0328] In step S114, the second electronic device receives at least one first CEP to adjust the first power in response to a first parameter in the first CEP.
[0329] In other words, the interaction process between the first electronic device and the second electronic device when they return to normal operation.
[0330] The wireless charging method illustrated in this application allows the first electronic device to modify parameters in the CEP (Computer Electronic Processing) after determining that the second electronic device is in an abnormal state. This enables the second electronic device to smoothly adjust its output power when exiting the abnormal state, preventing power surges and potential device damage. This application addresses the scenario where the second electronic device is in an abnormal state, achieving stable power transfer between the first and second electronic devices during wireless charging, ensuring device safety, and simultaneously improving charging efficiency.
[0331] The foregoing primarily describes the solutions provided in the embodiments of this application from the perspective of electronic devices. It is understood that, in order to achieve the aforementioned functions, the electronic device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that the wireless charging method steps described in conjunction with the embodiments disclosed in this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by software-driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0332] This application embodiment can divide the above-described electronic device into functional modules or functional units according to the above method examples. For example, each function can be divided into its own functional modules or functional units, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module or functional unit. The module or unit division in this application embodiment is illustrative and represents only one logical functional division; other division methods may be used in actual implementation.
[0333] This application also provides a first electronic device, which includes a display screen, a memory, a processor, and a communication module. These devices can be connected via one or more communication buses. The processor may include one or more processing units, such as an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor. Different processing units may be independent devices or integrated into one or more processors. The memory is coupled to the processor and is used to store various software programs and / or computer instructions. The memory may include volatile memory and / or non-volatile memory. When the processor executes computer instructions, it can perform the various functions or steps performed by the first electronic device in the above method embodiments.
[0334] This application also provides a second electronic device, which may be, for example, a charging dock, and may have the structure shown in the foregoing embodiments, such as a wireless charging control chip. The wireless charging control chip may execute the various functions or steps performed by the second electronic device in the above method embodiments.
[0335] This application also provides a wireless charging system, including a first electronic device and a second electronic device. The first electronic device can perform the various functions or steps performed by the first electronic device in the above method embodiments. The second electronic device can perform the various functions or steps performed by the second electronic device in the above method embodiments.
[0336] Figure 15 This is a schematic diagram of the structure of a chip system provided in an embodiment of this application.
[0337] like Figure 15 As shown, the chip system 300 provided in this application embodiment, for example, a SoC, includes at least one processor 301 and at least one interface circuit 302. The processor 301 and the interface circuit 302 are interconnected via lines. For example, the interface circuit 302 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 302 can be used to send signals to other devices (e.g., the processor 301 or the touchscreen of an electronic device). Exemplarily, the interface circuit 302 can read instructions stored in the memory and send the instructions to the processor 301. When the instructions are executed by the processor 301, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application embodiment.
[0338] This application also provides a computer-readable storage medium including computer instructions that, when executed on the electronic device, cause the electronic device to perform the various functions or steps described in the method embodiments.
[0339] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps described in the above method embodiments.
[0340] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0341] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0342] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0343] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0344] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0345] It is readily understood that, based on the several embodiments provided in this application, those skilled in the art can combine, split, or reorganize the embodiments of this application to obtain other embodiments, none of which exceed the protection scope of this application.
[0346] The above specific embodiments further illustrate the purpose, technical solution and beneficial effects of this application. It should be understood that the above are only specific embodiments of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of this application should be included within the scope of protection of this application.
Claims
1. A wireless charging method, characterized in that, Applied to a first electronic device, including: The first electronic device sends at least one first control error data packet (CEP) to the second electronic device, so that the second electronic device adjusts the first electrical energy output to the first electronic device in response to a first parameter in the first CEP, wherein the first parameter is used to increase or decrease the first electrical energy; The first electronic device determines whether the second electronic device is in an abnormal state, the abnormal state including the second electronic device not responding to the first parameter by increasing the first electrical energy; When the first electronic device determines that the second electronic device is in the abnormal state, it sends at least one second CEP to the second electronic device so that the second electronic device, upon exiting the abnormal state, adjusts the first electrical energy in response to the second parameter in the second CEP. The second CEP is formed by the first electronic device modifying the first parameter in the first CEP to the second parameter. The second parameter is used to make the first electrical energy less than a first preset threshold, and the first preset threshold is used to limit the energy surge generated by the second electronic device.
2. The wireless charging method according to claim 1, characterized in that, Before the first electronic device sends at least one first control error data packet (CEP) to the second electronic device, the method further includes: The first electronic device responds to the Ping signal sent by the second electronic device by powering on and initiating communication to establish a handshake connection with the second electronic device; After the first electronic device establishes a handshake connection with the second electronic device, it performs protocol interaction with the second electronic device to determine the target protocol used between the first electronic device and the second electronic device; The first electronic device receives the first electrical energy output by the second electronic device, wherein the initial power corresponding to the first electrical energy is determined based on the target protocol.
3. The wireless charging method according to claim 2, characterized in that, The first electronic device, in response to a Ping signal sent by the second electronic device, powers on and initializes communication to establish a handshake connection with the second electronic device, including: In response to the Ping signal sent by the second electronic device, the first electronic device sends a first ACK signal to the second electronic device to establish the handshake connection with the second electronic device.
4. The wireless charging method according to claim 2, characterized in that, The first electronic device sends at least one first control error data packet (CEP) to the second electronic device, causing the second electronic device to adjust the first electrical energy output to the first electronic device in response to a first parameter in the first CEP, including: After each transmission of the first CEP, the first electronic device updates the first parameter in the next transmission of the first CEP based on the received first electrical energy.
5. The wireless charging method according to claim 4, characterized in that, After each transmission of the first CEP, the first electronic device updates the first parameter in the next transmission of the first CEP based on the received first power, including: After each transmission of the first CEP, the first electronic device determines the first voltage value corresponding to the first electrical energy based on the received first electrical energy. The first electronic device acquires a first voltage difference between a first target voltage value and the first voltage value, and determines the first voltage difference as the updated first parameter, wherein the first target voltage value is determined based on the target protocol; The first electronic device configures the updated first parameter in the next transmission of the first CEP.
6. The wireless charging method according to claim 5, characterized in that, The first electronic device determines whether the second electronic device is in an abnormal state, including: If the first electronic device determines that the updated first parameter is greater than or equal to a second preset threshold during at least one configuration update of the first parameter, the first electronic device determines that the second electronic device is in the abnormal state.
7. The wireless charging method according to claim 2, characterized in that, The first electronic device determines whether the second electronic device is in an abnormal state, including: After sending the first CEP, the first electronic device determines that the second electronic device is in the abnormal state based on the received first negative acknowledgment (NACK) signal.
8. The wireless charging method according to claim 6 or 7, characterized in that, When the first electronic device determines that the second electronic device is in the abnormal state, it sends at least one second CEP to the second electronic device, including: When the first electronic device determines that the second electronic device is in the abnormal state, it enters the CEP control mode; In the CEP control mode, the first electronic device modifies the first parameter in the first CEP to the second parameter to form the second CEP; The first electronic device sends the second CEP to the second electronic device.
9. The wireless charging method according to claim 8, characterized in that, When the first electronic device determines that the second electronic device is in the abnormal state, it enters the CEP control mode, including: When the first electronic device determines that the second electronic device is in the abnormal state, it changes a first flag bit to determine whether to enter the CEP control mode based on the first flag bit, wherein the first flag bit includes cep_ctr_flag.
10. The wireless charging method according to claim 9, characterized in that, After the first electronic device determines that the second electronic device is in the abnormal state, and enters the CEP control mode, the following further includes: The first electronic device changes the second flag bit to store a first recorded voltage value based on the second flag bit. The first recorded voltage value includes the first voltage value detected when the first electronic device determines that the second electronic device is in the abnormal state, the first target voltage value in the first CEP, and the first parameter in the first CEP. The second flag bit includes: first_cep_ctr.
11. The wireless charging method according to claim 10, characterized in that, After the first electronic device determines that the second electronic device is in the abnormal state, and sends at least one second CEP to the second electronic device, the method further includes: The first electronic device determines that the second electronic device has exited the abnormal state; If the first electronic device determines that the second electronic device has exited the abnormal state, it determines whether to exit the CEP control mode. After the first electronic device determines to exit the CEP control mode, the first electronic device compares the first voltage value corresponding to the first electrical energy received with the first target voltage value in the first recorded voltage value. If the first voltage value corresponding to the first electrical energy received by the first electronic device is less than the first target voltage value in the first recorded voltage value, the first electronic device sends at least one third CEP to the second electronic device so that the second electronic device adjusts the first electrical energy in response to the third parameter in the third CEP, wherein the third parameter includes a preset adjustment step size.
12. The wireless charging method according to claim 11, characterized in that, After the first electronic device sends at least one third CEP to the second electronic device, the process further includes: If the first voltage value corresponding to the first electrical energy received by the first electronic device is greater than or equal to the first target voltage value in the first recorded voltage value, the first electronic device sends at least one of the first CEPs to the second electronic device.
13. The wireless charging method according to claim 11, characterized in that, The first electronic device determines that the second electronic device has exited the abnormal state, including: If the electrical energy received by the first electronic device increases, the first electronic device determines that the second electronic device has exited the abnormal state.
14. The wireless charging method according to claim 11, characterized in that, After determining whether to exit the CEP control mode, the process further includes: The first electronic device resets the first flag bit to determine exit from the CEP control mode based on the reset first flag bit.
15. A wireless charging method, characterized in that, Applied to a second electronic device, including: The second electronic device receives at least one first control error data packet (CEP) sent by the first electronic device, and adjusts the first electrical energy output to the first electronic device in response to a first parameter in the first CEP, wherein the first parameter is used to increase or decrease the first electrical energy; The second electronic device enters an abnormal state, the abnormal state including the second electronic device failing to increase the first electrical energy in response to the first parameter; When the second electronic device is in the abnormal state, the second electronic device receives at least one second CEP sent by the first electronic device, the second CEP being formed by the first electronic device modifying the first parameter in the first CEP to the second parameter; The second electronic device exits the abnormal state in response to the second parameter in the second CEP, and adjusts the first electrical energy so that the first electrical energy is less than a first preset threshold, which is used to limit the energy surge of the second electronic device.
16. The wireless charging method according to claim 15, characterized in that, Before the second electronic device receives at least one first control error data packet (CEP) sent by the first electronic device, it further includes: The second electronic device sends a detection Ping signal; After the first electronic device powers on and initializes communication in response to the Ping signal, the second electronic device establishes a handshake connection with the first electronic device. After the second electronic device establishes a handshake connection with the first electronic device, it performs protocol interaction with the first electronic device to determine the target protocol used between the second electronic device and the first electronic device. The second electronic device outputs the first electrical energy to the first electronic device, wherein the initial power corresponding to the first electrical energy is determined based on the target protocol.
17. The wireless charging method according to claim 16, characterized in that, The second electronic device establishes a handshake connection with the first electronic device, including: The second electronic device responds to the first ACK signal sent by the first electronic device and establishes the handshake connection with the first electronic device.
18. The wireless charging method according to claim 16, characterized in that, The second electronic device enters an abnormal state, including: When the second electronic device determines that its own temperature is greater than a first temperature threshold and / or detects an abnormality in its built-in fan, it determines that it has entered the abnormal state, so as to limit the output of the first electrical energy in the abnormal state to prevent the first electrical energy from increasing.
19. The wireless charging method according to claim 18, characterized in that, After the second electronic device enters an abnormal state, it also includes: The second electronic device sends a first negative acknowledgment (NACK) signal to the first electronic device.
20. The wireless charging method according to claim 18, characterized in that, After the second electronic device exits the abnormal state and adjusts the first power in response to the second parameter in the second CEP, the process further includes: The second electronic device receives at least one third CEP to adjust the first electrical energy in response to a third parameter in the third CEP, wherein the third parameter includes a preset adjustment step size.
21. The wireless charging method according to claim 20, characterized in that, The second electronic device receives at least one third CEP, and after adjusting the first electrical energy in response to a third parameter in the third CEP, further includes: The second electronic device receives at least one of the first CEPs to adjust the first electrical energy in response to the first parameter in the first CEP.
22. An electronic device, characterized in that, The electronic device uses the wireless charging method as described in any one of claims 1-14.
23. An electronic device, characterized in that, The electronic device uses the wireless charging method as described in any one of claims 15-21.
24. A wireless charging system, characterized in that, The wireless charging system includes a first electronic device and a second electronic device, wherein the first electronic device is the electronic device as described in claim 22, and the second electronic device is the electronic device as described in claim 23.
Citation Information
Patent Citations
Coordinating voltage and frequency changes in wireless power transfer
CN113783312A
USB power delivery integrated circuit controller with wireless charging station control capability
CN116599239A