Wireless charging optimization method, electronic equipment and storage medium
By identifying the type of charging interruption in electronic devices and updating wireless charging parameters, the problem of charging interruption caused by differences in power supply device type and coupling degree during wireless charging is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2026-04-10
AI Technical Summary
The charging interruption and recharging phenomenon of electronic devices during wireless charging due to differences in the type of wireless power supply equipment and coil coupling has affected the user experience.
Electronic devices can determine the type of wireless charging interruption that occurred during the last wireless charging session and update wireless charging parameters based on a matching optimization strategy. This includes adjusting the power mode, charging output current, and coupling level to reduce the occurrence of specific types of charging interruptions.
This effectively reduces the frequency of charging interruptions in electronic devices due to wireless power supply protection and receiver undervoltage protection, thus improving the user experience.
Smart Images

Figure CN121840938A_ABST
Abstract
Description
Technical Field
[0001] The application relates to the field of wireless charging, and more particularly to a wireless charging optimization method, electronic device, and storage medium. Background Technology
[0002] With the widespread use of portable electronic devices such as smartphones, tablets, and e-readers, and the development of wireless communication technology, wireless charging has become an important charging method for electronic devices. Specifically, wireless charging refers to a charging method where a wireless power supply device (such as a wireless charging dock) uses near-field induction to transfer electromagnetic energy to the device being used (such as an electronic device), and the device then uses this electromagnetic energy to charge its battery.
[0003] Once an electronic device enters the formal charging phase of wireless charging, it begins to draw power according to the capabilities of the wireless power supply. However, due to the wide variety of wireless power supply devices and their differences, or due to poor coupling between the phone and the power supply coil, the electronic device may experience charging interruptions during the power-drawing process due to various possible issues. Even after a charging interruption, because the wireless charging parameters remain unchanged, the device will repeatedly interrupt charging upon resuming. This results in repeated charging interruptions and resuming, severely impacting the user experience. Summary of the Invention
[0004] This application provides a wireless charging optimization method, electronic device, and storage medium, which avoids repeated charging interruptions and recharging of electronic devices due to various charging interruptions, thereby improving the user experience.
[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:
[0006] In a first aspect, embodiments of this application provide a wireless charging optimization method applied to an electronic device, which is placed on the charging area of a wireless power supply device. The method includes: upon entering a wireless charging state, the electronic device determines the type of charging interruption that occurred during the previous exit from the wireless charging state; the electronic device updates wireless charging parameters based on an optimization strategy corresponding to the charging interruption type; the charging interruption type includes wireless power supply device protection-related charging interruption or receiver undervoltage protection-related charging interruption; and the electronic device continues wireless charging in the wireless charging state using the updated wireless charging parameters.
[0007] Based on the technical solution provided in this application, when an electronic device enters wireless charging mode, it can first determine the type of charging interruption that occurred during the last exit from wireless charging mode. Then, the electronic device can update its wireless charging parameters based on an optimization strategy matching the charging interruption type. Finally, the electronic device can use the updated wireless charging parameters to continue wireless charging. Because the optimization strategy is matched to the charging interruption type, it can specifically reduce the probability of charging interruptions corresponding to that type, thereby avoiding rapid and repeated charging interruptions and recharging of the electronic device and improving the user experience.
[0008] In one possible implementation of the first aspect, the electronic device determines the type of charging interruption that occurred during the last exit from the wireless charging state, including:
[0009] The electronic device obtains the charging interruption parameters from the last time it exited the wireless charging state. The charging interruption parameters include: whether a private charging protocol was used for wireless charging when it was in the last wireless charging state, whether the first power mode was used for wireless charging when it was in the last wireless charging state, the charging input voltage when it exited the wireless charging state, the change status of the charging output current when it exited the wireless charging state, and the target time difference between the time when it exited the wireless charging state and the time when it entered the wireless charging state.
[0010] Among them, the charging input voltage refers to the voltage of the electrical energy converted by the wireless charging chip of the electronic device after receiving electrical energy from the wireless power supply device; the charging output current refers to the current output by the wireless charging chip of the electronic device to the battery after receiving electrical energy from the wireless power supply device; the change state of the charging output current includes any of the following: current rise state, current fall state, and current stability state; the current rise state refers to the state in which the current value tends to increase, the current fall state refers to the state in which the current value tends to decrease, and the current stability state refers to the state in which the current value tends to remain unchanged.
[0011] The electronic device determines the type of disconnection when it last exited the wireless charging state based on the disconnection parameters.
[0012] Based on the technical solution corresponding to the above implementation method, since the charging interruption parameters of the last time the wireless charging state was exited can reflect the reason for the charging interruption that caused the electronic device to exit the wireless charging state last time, the electronic device can accurately determine the charging interruption type of the last time it exited the wireless charging state based on the charging interruption parameters of the last time it exited the wireless charging state, providing data support for the subsequent optimization of wireless charging parameters.
[0013] In one possible implementation of the first aspect, the electronic device determines the type of charging interruption from the previous wireless charging exit based on the charging interruption parameters from the previous exit from the wireless charging state, including:
[0014] If the electronic device was charging using a proprietary charging protocol when it was last in wireless charging mode, the charging interruption type when it last exited wireless charging mode is determined based on the target proprietary protocol data packet; the target proprietary protocol data packet carries the reason for the charging interruption that caused the electronic device to last exit wireless charging mode.
[0015] If the electronic device uses the first power mode for wireless charging when the target time difference is less than the preset duration, and the charging input voltage is less than the preset threshold when it last exited the wireless charging state, then the charging interruption type when it last exited the wireless charging state is determined to be the receiver undervoltage protection charging interruption.
[0016] If the electronic device uses the second power mode for wireless charging when the target time difference is less than the preset duration, and the charging output current was in a current-boosting state when it last exited the wireless charging state, then the charging interruption type when it last exited the wireless charging state is determined to be a wireless power supply device protection-type charging interruption. If the electronic device does not use a proprietary charging protocol for wireless charging and uses the first power mode for wireless charging, then the electronic device uses the second power mode for wireless charging.
[0017] Based on the technical solutions described above, electronic devices can accurately determine the type of charging interruption that caused their last exit from the wireless charging system, by combining the charging interruption parameters from the previous exit with the causes and characteristics of various charging interruption types. This allows subsequent electronic devices to adopt corresponding optimization strategies based on the charging interruption type, updating and optimizing their wireless charging parameters. This reduces the probability of protection-related charging interruptions during subsequent wireless charging operations, preventing repeated charging interruptions and recharging, and improving the user experience.
[0018] In one possible implementation of the first aspect, during the last time the electronic device was in a wireless charging state, the method further includes: the electronic device periodically sampling the charging output current until exiting the wireless charging state; the electronic device acquiring the latest plurality of first sampled values among all the sampled values of the charging output current; the number of the latest plurality of first sampled values is less than or equal to the maximum number of samples.
[0019] Based on the technical solution corresponding to the above implementation method, the electronic device can obtain the sampled value of the charging output current during the last wireless charging process in a timely manner, thereby providing data support for judging the change of the charging output current when the device exited the wireless charging state.
[0020] In one possible implementation of the first aspect, if the electronic device has last exited the wireless charging state before entering the wireless charging state, or if the electronic device has entered the wireless charging state, the method further includes: the electronic device determining the change state of the charging output current when it last exited the wireless charging state based on the latest plurality of first sampled values.
[0021] Based on the technical solutions corresponding to the above implementation methods, electronic devices can promptly determine the change in charging output current when they last exited the wireless charging state, either after exiting the wireless charging state or when they are currently entering the wireless charging state. This provides strong data support for subsequently determining the type of charging interruption when exiting the wireless charging state, ensuring the smooth implementation of the wireless charging optimization method.
[0022] In one possible implementation of the first aspect, the electronic device determines the change in the charging output current when it last exited the wireless charging state based on the latest plurality of first sampled values, including:
[0023] If the number of multiple first sampled values is less than the first quantity, the electronic device determines that the change state of the charging output current when it last exited the wireless charging state is the current rise state.
[0024] If, among multiple first sampled values, the latest second number of first sampled values are all increasing values, the electronic device determines that the change in the charging output current when it last exited the wireless charging state was a current rise state; if the difference between the first sampled value and the previous sampled value is greater than the change threshold, the first sampled value is determined to be an increasing value; the second number is the first number minus 1.
[0025] If, among multiple first sampled values, the latest second number of first sampled values are all decreasing values, the electronic device determines that the change state of the charging output current when it last exited the wireless charging state was a current rise state; if the difference between the sampled value obtained from the previous sampled value and the first sampled value is greater than the change threshold, the first sampled value is determined to be a decreasing value.
[0026] If, among multiple first sampled values, the latest second number of first sampled values are all stationary values, the electronic device determines that the change state of the charging output current when it last exited the wireless charging state was a stationary current state; if the difference between the first sampled value and the previous sampled value is less than or equal to the change threshold, the first sampled value is determined to be a stationary value.
[0027] If, among multiple first sampled values, the number of first sampled values that are rising values is greater than the third number, and among the latest second number of first sampled values, there are at least a fourth number of rising values, then the electronic device determines that the change state of the charging output current when it last exited the wireless charging state is the current rise state; the third number is greater than the first number, and the fourth number is less than the second number;
[0028] If, among the multiple first sampled values, the number of first sampled values that are decreasing is greater than the third number, and among the latest second number of sampled values, there are at least a fourth number of decreasing values, then the electronic device determines that the change state of the charging output current when it last exited the wireless charging state is the current decreasing state.
[0029] Based on the technical solution corresponding to the above implementation method, since the latest first-number of sampled values collected by the electronic device during the previous wireless charging state best reflects the change in the charging output current before charging was discontinued, this logic can use the latest first-number of sampled values to determine the change state of the charging output current. For example, if all are increasing values, the change state of the charging output current is a current rise state; if all are decreasing values, the change state of the charging output current is a current fall state; if all are stable values, the change state of the charging output current is a stable current state. Secondly, if the change state cannot be determined based on the first-number of sampled values, the change state of the charging output current can be determined by combining the number of increasing or decreasing values among all the first sampled values. In this way, the electronic device can accurately determine the change state of the charging output current when it last exited the wireless charging state, providing strong data support for subsequently determining the type of charging discontinuation.
[0030] In one possible implementation of the first aspect, when the charging interruption type is a wireless power supply device protection-type charging interruption, the electronic device updates the wireless charging parameters based on the optimization strategy corresponding to the charging interruption type, including:
[0031] If the current charging coupling is less than the charging coupling when it was in the previous wireless charging state, and if the maximum supported power of the currently used second power mode is the first power, the electronic device will adjust the maximum supported power of the second power mode to the second power; the second power is less than the first power; at this time, the wireless charging parameters include the maximum supported power of the second power mode.
[0032] If the current charging coupling is less than the charging coupling when it was in the previous wireless charging state, and if the maximum supported power of the currently used second power mode is the second power, the electronic device updates the upper limit of the charging output current based on multiple first sample values; at this time, the wireless charging parameters include the upper limit of the charging output current.
[0033] If the current charging coupling is less than the charging coupling when it was in the previous wireless charging state, and if the current wireless charging is using a proprietary charging protocol, the wireless power supply device is of the target type, and the electronic device is charging in the first charging mode, then the electronic device will change the first charging mode to the second charging mode. The second charging mode is the charging mode in which the initial charging output voltage is less than the first charging mode among the multiple charging modes supported by the wireless power supply device for the electronic device. At this time, the wireless charging parameters include the charging mode used by the electronic device.
[0034] If the current charging coupling is less than the charging coupling when it was in the previous wireless charging state, and if the current wireless charging is performed using a private charging protocol, the wireless power supply device is of the target type, and the electronic device is not charging in the first charging mode, the electronic device updates the upper limit of the charging output current based on multiple first sample values; at this time, the wireless charging parameters include the upper limit of the charging output current.
[0035] Based on the technical solution corresponding to the above implementation method, if the electronic device determines that the previous wireless charging interruption was a protection-type interruption by the wireless power supply device, it can determine whether there is a risk of a protection-type interruption in the current wireless charging state by analyzing the changes in charging coupling between the two previous wireless charging states. If a risk of a protection-type interruption is identified, an appropriate optimization scheme can be adopted to update and optimize the relevant wireless charging parameters based on a combination of factors such as whether a proprietary charging protocol is being used, the type of wireless power supply device, the current charging mode used by the electronic device, and the maximum supported power of the currently used second power mode. This ensures that the charging power of the electronic device does not increase or the increase is reduced. In this way, the risk of undervoltage protection interruption at the receiver can be avoided to a certain extent, preventing repeated interruptions and recharging due to protection-type interruptions by the wireless power supply device, thus improving the user experience.
[0036] In one possible implementation of the first aspect, when the charging interruption type is receiver undervoltage protection, the electronic device updates the wireless charging parameters based on the optimization strategy corresponding to the charging interruption type, including:
[0037] When the target parameter value is determined to be greater than the first preset value and the current charging input voltage is less than the preset voltage threshold, the electronic device sets the current charging output current to the upper limit of the charging output current; the target parameter value is used to characterize the difference between the target voltage and the charging input voltage, and the target voltage is the target value of the charging output voltage;
[0038] If the target parameter value is determined to be less than the first preset value, or the current charging input voltage is greater than the preset voltage threshold, the electronic device will adjust the step size of the charging output current from the first preset current value to the second preset current value; the second preset current value is less than the first preset current value.
[0039] Based on the technical solution described above, when it's determined that the previous charging interruption was due to undervoltage protection at the receiver, and considering the target parameter values and charging input voltage, the electronic device can promptly adjust the relevant wireless charging parameters to prevent or reduce the increase in charging power. This mitigates the risk of undervoltage protection interruption to some extent, preventing repeated charging interruptions and recharging due to undervoltage protection, thus improving the user experience.
[0040] In one possible implementation of the first aspect, when entering the wireless charging state, the method further includes: the electronic device updating the wireless charging parameters based on the optimization strategy corresponding to the undervoltage protection disconnection at the receiver.
[0041] Based on the technical solutions corresponding to the above implementation methods, electronic devices can adjust the wireless charging parameters before the charging is interrupted by the optimization strategy corresponding to the undervoltage protection of the receiver, so that the electronic devices can avoid the occurrence of undervoltage protection of the receiver as much as possible, thus improving the user experience.
[0042] In one possible implementation of the first aspect, when entering the wireless charging state, the method further includes: the electronic device updating the wireless charging parameters based on the optimization strategy corresponding to the wireless power supply protection class charging interruption.
[0043] Based on the technical solutions corresponding to the above implementation methods, electronic devices can adjust wireless charging parameters before the wireless power supply device disconnects its charging, using optimization strategies corresponding to the protection against disconnection. This allows electronic devices to avoid the occurrence of wireless power supply device protection-related disconnections as much as possible, thus improving the user experience.
[0044] In a second aspect, this application provides an electronic device including a display, a memory, and one or more processors; the display and the memory are both coupled to the processors; wherein the memory stores computer program code, the computer program code including computer commands, which, when executed by the processor, cause the electronic device to perform the wireless charging optimization method provided by the first aspect and any possible design thereof.
[0045] Thirdly, this application provides a computer-readable storage medium including computer commands that, when executed on an electronic device, cause the electronic device to perform a wireless charging optimization method as provided in the first aspect and any of its possible design embodiments.
[0046] Fourthly, this application provides a computer program product that, when run on an electronic device, causes the electronic device to perform the wireless charging optimization method provided by the first aspect and any possible design of the present application.
[0047] Understandably, the beneficial effects that the technical solutions provided in the second to fourth aspects described above can be achieved can be referred to the beneficial effects of the first aspect and any of its possible design methods, which will not be repeated here. Attached Figure Description
[0048] Figure 1A An interactive schematic diagram of a wireless charging system provided for this related technology;
[0049] Figure 1B This is an interactive schematic diagram of a wireless charging system provided in an embodiment of this application;
[0050] Figure 2 This is a schematic diagram of the structure of a wireless charging system provided in an embodiment of this application;
[0051] Figure 3 A schematic diagram illustrating the principle of a wireless charging optimization method provided in an embodiment of this application;
[0052] Figure 4 A schematic diagram of the hardware architecture of an electronic device provided in an embodiment of this application;
[0053] Figure 5 A schematic diagram of the software architecture of an electronic device provided in an embodiment of this application;
[0054] Figure 6 This is a schematic diagram of the hardware architecture of a wireless power supply device provided in an embodiment of this application;
[0055] Figure 7 A flowchart illustrating a wireless charging optimization method provided in this application embodiment;
[0056] Figure 8 A flowchart illustrating a wireless charging optimization method provided in this application embodiment. Figure 2 ;
[0057] Figure 9 A flowchart illustrating a wireless charging optimization method provided in this application embodiment. Figure 3 ;
[0058] Figure 10 A flowchart illustrating a wireless charging optimization method provided in this application embodiment. Figure 4 ;
[0059] Figure 11 A flowchart illustrating a wireless charging optimization method provided in this application embodiment. Figure 5 ;
[0060] Figure 12 A flowchart illustrating a wireless charging optimization method provided in this application embodiment. Figure 6 ;
[0061] Figure 13 A flowchart illustrating a wireless charging optimization method provided in this application embodiment. Figure 7 ;
[0062] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0063] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that “ / ” means “or,” for example, A / B can mean A or B; “and / or” in the text is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can mean: A alone, A and B simultaneously, and B alone.
[0064] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.
[0065] The terms "first" and "second" in the following embodiments of this application are for descriptive purposes only and should not be construed as implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0066] First, the terms used in this application are explained as follows:
[0067] (1) Wireless charging technology: Wireless charging technology refers to the technology of wirelessly transmitting electrical energy using electric fields, magnetic fields, microwaves, or lasers as conductive media. Due to its advantages such as no wires and no plugging / unplugging, wireless charging technology is increasingly widely used in electronic devices. Wireless charging technology is generally used in wireless charging systems, which can include a receiver (RX) and a transmitter (TX). The transmitter can wirelessly charge the receiver, that is, the transmitter can provide wireless charging services to the receiver.
[0068] The transmitting end can be equipped with a wireless charging output component for outputting wireless charging signals (specifically, electromagnetic wave signals). The receiving end can be equipped with a wireless charging receiving component for receiving wireless charging signals. The wireless receiving component of the receiving end and the wireless charging output component of the transmitting end cooperate to achieve the purpose of wireless charging from the transmitting end to the receiving end. The wireless charging output component may include a TX chip (or wireless transmitting chip), and the TX chip may include a transmitting coil (or wireless transmitting coil). The wireless receiving component may include an RX chip (or wireless charging / receiving chip), and the RX chip may include a receiving coil (or wireless receiving coil). Specifically, the receiving end can be a power device or a wireless charging chip within a power device, and the transmitting end can be a wireless power supply device (e.g., a wireless charging dock).
[0069] The receiver and transmitter in this embodiment can support the Qi wireless charging standard protocol launched by the Wireless Power Consortium (WPC) and / or proprietary wireless charging standard protocols. The Qi wireless charging standard protocol currently supports a maximum transmission power of no more than 15W. Proprietary wireless charging standard protocols refer to fast charging protocols specifically customized by mobile phone and other electronic device manufacturers for their own devices. Examples include various proprietary wireless fast charging protocols such as 27W, 40W, 50W, 55W, 60W, and 65W, such as the Honor proprietary wireless fast charging protocol.
[0070] (2) Baseline Power Profile (BPP): BPP is a power mode or wireless charging protocol specified in the Qi wireless charging standard protocol launched by the Wireless Power Consortium. BPP supports a maximum transmission power of 5W, meaning that the wireless power supply device provides power to the electronic device, so that the charging power of the electronic device charging its own battery is up to 5W (i.e., the maximum charging power is 5W). BPP is mainly used in low-power wireless charging scenarios, such as charging smartphones and other small electronic devices.
[0071] (3) Extended Power Profile (EPP): EPP is a power mode or wireless charging protocol specified in the Qi wireless charging standard protocol launched by the Wireless Power Consortium. EPP supports a maximum transmission power of 15W, meaning that the wireless power supply device provides power to the electronic device, enabling the electronic device to charge its own battery with a maximum charging power of 15W (i.e., a maximum charging power of 5W). EPP is suitable for devices that require higher power charging, such as tablets and other consumer electronics.
[0072] (4) Control Error Packet (CEP): A CEP is a data packet used by the transmitting and receiving ends to exchange crop or status information after the wireless power supply device and the electronic device formally enter the power transfer (PT) phase. For example, taking the wireless power supply device as the transmitting end and the electronic device as the receiving end, the electronic device can send a CEP to the wireless power supply device based on any problems detected that may affect charging efficiency or safety, as well as status information / charging status (voltage, current, power, etc.). This CEP can carry error reports reflecting problems affecting charging efficiency or safety, as well as data reflecting the charging status of the electronic device. After receiving the CEP, the wireless power supply device can adjust the wireless charging parameters (such as charging output current, charging output voltage, etc.) and / or charging mode based on the data carried in the CEP.
[0073] (5) Foreign Object Detection (FOD): During the power transfer phase of wireless charging, if a metal object appears between the coils (specifically the transmitting coil of the TX and the receiving coil of the RX) that are transmitting power, the metal object will heat up due to the eddy currents generated inside it. If no safety measures are taken, the metal object will become increasingly hot, posing a danger. Therefore, a very important detection method exists during the power transfer phase of wireless charging: foreign object detection. The principle of foreign object detection can be to detect power loss: During the power transfer phase, the RX periodically sends a receiver power packet (RPP) to the TX. This RPP can include information about the received power of the RX. If the TX finds that the difference between the received power of the RX and the transmitted power of the TX exceeds a preset power threshold, it will stop power transfer and disconnect the charging to ensure the safety of power transfer.
[0074] (4) Ping Phase: In a wireless charging system, the entire interaction process between the receiver and transmitter before the actual charging begins can be called the ping phase, while the actual charging phase can be called the power transfer (PT) phase. In some embodiments, the ping phase can also be called the wireless charging communication negotiation phase or the wireless charging handshake phase.
[0075] For example, taking a mobile phone as the device being used, the receiving end RX as the wireless charging chip in the phone (which can be called the RX chip or RX), and the transmitting end TX failing to correctly parse the SSP as an example, refer to... Figure 1A As shown, the communication process during the ping phase in related technologies is described below:
[0076] When the TX is working normally, it can periodically detect the presence of the RX. This detection process can be called a Q scan. After the TX detects the RX through the Q scan, it can send a signal containing sufficient energy to the outside world or to the RX, thereby energizing the receiving coil in the RX and entering RX mode.
[0077] The signal with sufficient energy sent from TX to RX can be a ping signal or a digital ping signal. In some embodiments, the ping signal can specifically be an electromagnetic wave signal. Based on the principle of electromagnetic induction, the receiving coil on RX generates a corresponding current upon receiving the ping signal, thereby achieving power-on. In some embodiments, since the current generated by the receiving coil on RX is alternating current (AC), powering on the receiving coil on RX can be considered alternating current (AC) power-on. When the receiving coil in RX is powered on, RX enters RX mode.
[0078] When the RX enters RX mode, it sends configuration instructions to the phone's application processor (AP). These instructions guide the AP to set various parameters on the RX. These instructions can be an init interrupt. After receiving these instructions, the AP can configure the RX parameters (e.g., dummy and modulation capacitors) after determining the RX parameters. However, in some embodiments, if the AP fails to configure the RX parameters, the RX can initialize its own RX parameters based on the default configuration information stored in its corresponding storage area when entering RX mode.
[0079] In RX mode, after the RX parameters are configured, the RX can send communication data packets to the TX based on the configured RX parameters. The first communication data packet is a signal strength packet (SSP). The SSP can specifically include coupling information that characterizes the coupling between the transmitting coil at the transmitting end and the receiving coil (or power supply coil) at the receiving end. The RX can specifically use amplitude shift keying (ASK) modulation technology to send the SSP to the TX.
[0080] After the RX sends the SSP to the TX, the RX, while in RX mode, can send a display indication message to the AP. This display indication message is used to indicate the display of a charging icon. Specifically, this display indication message can be a power-on message, which can be an interrupt signal, such as a power-on interrupt. After the AP receives this display message, it can control the phone to display the charging icon.
[0081] After receiving and accurately parsing the SSP, the TX can maintain its power output while sending ping messages, waiting for subsequent communication data packets from the RX (including identity document (ID) packets and configuration packets). The RX can then send the identity document (ID) packet and configuration packet to the TX sequentially. The identity document (ID) packet may include a device identifier ID uniquely identifying the RX, the RX's product serial number, and the RX's manufacturer information. The configuration packet may include the RX's wireless charging parameters, such as maximum charging power, charging voltage range, charging current range, and whether EPP / BPP is supported.
[0082] After the TX receives and parses the ID packet and configuration packet, it can begin transmitting energy for formal charging to the RX based on the data carried in the signal strength packet, ID packet, and configuration packet, entering the power transmission phase (or formal charging phase). Specifically, the TX transmits electrical energy to the RX via electromagnetic waves. The RX receives these electromagnetic waves, converts them into DC power, and charges the phone's battery under the control of the AP. Furthermore, during the PT phase, the RX periodically sends a CEP to the TX, allowing the TX to adjust the corresponding wireless charging parameters (e.g., charging power). During the PT phase, the RX also periodically sends an RPP to the TX, enabling the TX to complete FOD detection.
[0083] In related technologies, after an electronic device enters the formal charging phase of wireless charging, it begins to draw charging power according to the capabilities of the wireless power supply device. However, due to the large variety of wireless power supply devices and the differences between them, or due to poor coupling between the phone and the wireless power supply device's coil, the electronic device may experience charging interruptions (i.e., charging failures) during the charging process due to various possible problems. Different charging interruptions caused by different problems can be considered different types of charging interruptions. For example, charging interruption types may include: wireless power supply device protection-related charging interruption, FOD charging interruption, communication-related charging interruption, and receiver undervoltage lock-out (UVLO) charging interruption.
[0084] Among them, the protective charging interruption of wireless power supply equipment refers to the charging interruption type where the wireless power supply equipment cuts off power to protect itself from damage when the output parameters exceed a preset safety threshold. The output parameters can be output power, input current, output voltage, etc. Output power refers to the electrical power on the transmitting coil of the wireless power supply equipment; output voltage can refer to the voltage on the transmitting coil; and output current can refer to the current on the transmitting coil. Different output parameters correspond to different preset safety thresholds, which are determined based on actual conditions, and this application does not impose specific restrictions on them.
[0085] FOD (Foreign Object Delay) refers to a charging interruption caused by a large difference between the received power of the electronic device and the transmitted power of the wireless power supply. It's important to note that FOD typically occurs during periods of fluctuating charging output current (i.e., when the charging output current is rising or falling). Without considering the possibility of the user adding an object between the electronic device and the wireless power supply, during these fluctuations, in addition to the normal power load of the electronic device, current fluctuations may be caused by the user moving the device. This could cause the difference between the received power of the electronic device and the transmitted power of the wireless power supply to exceed a preset threshold, triggering the charging dock to detect FOD and disconnect the charging. Therefore, charging interruptions during periods of fluctuating current may be due to a FOD malfunction. Conversely, during periods of stable charging output current (i.e., when the charging output current is stable), the charging output current remains unchanged, indicating that the received power is also relatively stable. In other words, the difference between the received power of the electronic device and the transmitted power of the wireless power supply is unlikely to exceed the preset power threshold, and therefore will not trigger the charging dock to detect a FOD malfunction and disconnect the charging.
[0086] Communication-related charging interruption refers to a charging interruption caused by the wireless power supply actively shutting down the device when communication data packets (such as CEP and RRP) sent by the electronic device to the wireless power supply device within a certain period of time fail to be received or successfully parsed by the wireless power supply device due to various unpredictable reasons during the PT phase.
[0087] Undervoltage protection charging disconnection (or RX undervoltage protection charging disconnection) refers to a charging disconnection type in which the electronic device actively disconnects from the wireless charging device when the voltage of the receiving coil on the wireless charging chip is less than or equal to the undervoltage protection threshold (e.g., 3V), thereby causing the wireless power supply device to power off and disconnect charging.
[0088] When a Forbidden Discharge (FOD) charging interruption occurs, the wireless power supply device assumes there is a foreign object in the charging area or that the user has moved the electronic device. Therefore, it will initiate a ping phase again after a considerable period and then enter the PT phase to charge the electronic device. In other words, after a FOD charging interruption, the electronic device will not resume charging for a significant amount of time. This recharging does not occur repeatedly and will not affect the user experience.
[0089] For example, in combination Figure 1A , refer to Figure 1B As shown, if any charging failure occurs after the TX (or the RX chip in the phone) and the phone enter the PT phase, the PT phase between the phone and the TX will end, and the TX will power off and stop charging.
[0090] In the case of a FOD (Foreign Object Discharge) charging interruption, the charging module (TX) will only recharge after a relatively long period, i.e., more than 3 seconds, around 10 minutes, before initiating a ping phase interaction with the phone and entering the PT (Ping-Off) phase. In other words, FOD charging interruption does not cause the electronic device to rapidly and repeatedly interrupt and recharge. Furthermore, because the charging interruption time is long, and in most cases the user actively removes the phone from the charging area of the TX, causing the TX to detect FOD charging interruption, this situation is predictable to the user. Therefore, for the user, FOD charging interruption has a minimal impact on the user experience and will not significantly affect the user's experience.
[0091] If the charging interruption type is not FOD (For other types of charging interruptions), TX will re-power on and quickly resume wireless charging within a short time (e.g., 3 seconds). In this case, since the various wireless charging parameters do not change after the interruption, the electronic device will interrupt charging again after resuming charging. This leads to repeated charging interruptions, severely impacting the user experience.
[0092] Furthermore, for communication-related charging interruptions, the possible causes are too numerous and involve too many unknown factors, making it impossible to accurately optimize the wireless charging process for electronic devices specifically for these interruptions. Therefore, this application provides a wireless charging optimization method to address the repeated charging interruptions caused by dock protection and RX undervoltage protection, which can prevent repeated charging interruptions and improve the user experience. This solution can be applied to wireless charging scenarios, specifically in applications such as... Figure 2 The wireless charging system shown includes a wireless power supply device 01 as a transmitter and an electronic device 02 as a receiver. The electronic device 02 can be placed on the wireless power supply device 01, specifically in the charging area of the wireless power supply device 01.
[0093] Based on the aforementioned wireless charging system, the wireless charging optimization method provided in this application refers to... Figure 3 As shown, when an electronic device enters wireless charging mode, it can first determine the type of charging interruption that occurred during its last exit from wireless charging. Entering wireless charging mode can refer to the electronic device entering the power transfer (PT) phase of the wireless charging process. Then, the electronic device can update its wireless charging parameters based on an optimization strategy matched to the charging interruption type. Finally, the electronic device can use the updated wireless charging parameters to continue wireless charging. Because the optimization strategy is matched to the charging interruption type, it can specifically reduce the probability of charging interruptions corresponding to that type, thereby avoiding rapid and repeated charging interruptions and recharging, and improving the user experience.
[0094] The technical solutions provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0095] The technical solution provided in this application can be applied to, for example... Figure 2 The wireless charging system shown can be described with reference to the specific components described in the foregoing embodiments. Figure 2 The relevant statements will not be repeated here.
[0096] For example, the electronic devices in the above wireless charging system can be mobile phones, tablets, handheld computers, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices, and / or smart city devices, etc., any electronic devices with wireless charging capabilities. This application embodiment does not impose any special restrictions on the specific type of electronic device.
[0097] For example, taking a mobile phone as an electronic device, Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown.
[0098] Reference Figure 4As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a display screen 193, a subscriber identification module (SIM) card interface 194, and a camera 195, etc. The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, gravity sensors, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.
[0099] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0100] A controller can be the nerve center and command center of an electronic device. Based on command opcodes and timing signals, the controller generates operation control signals to control the fetching and execution of commands.
[0101] The processor 110 may also include a memory for storing commands and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store commands or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the command or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0102] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0103] The charging management module 140 is used to receive charging input from wireless power supply devices (such as chargers, laptop batteries, etc.). The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the receiving coil in the wireless charging chip of the electronic device. Alternatively, the charging management module 140 includes a wireless charging chip, and can then receive wireless charging input via the receiving coil in the wireless charging chip. Of course, in some embodiments, the receiving coil can be set separately from the charging management module 140, in which case the charging management module can use the receiving coil to receive wireless charging input via the wireless charging chip. Furthermore, in other embodiments, the charging management module 140 can also wirelessly charge other electronic devices via the receiving coil.
[0104] While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141. Specifically, the battery 142 can be composed of multiple batteries connected in series. The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. In some other embodiments, the charging management module 140 may also be located within the processor 110.
[0105] 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, internal memory 121, display screen 193, camera 195, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery voltage, current, 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 some embodiments, the charging management module 140 and the power management module 141 may be located in the same device.
[0106] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the electronic device. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.
[0107] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM). The RAM can be directly read and written by the processor 110 and can be used to store executable programs (e.g., machine commands) of the operating system or other running programs, as well as user and application data. The NVM can also store executable programs and user and application data, and can be pre-loaded into the RAM for direct read and write operations by the processor 110.
[0108] A touch sensor, also known as a "touch device," can be located on the display screen 193. The touch sensor and the display screen 193 together form a touchscreen, also called a "touchscreen." The touch sensor detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 193. In other embodiments, the touch sensor may also be located on the surface of the electronic device, in a different position than the display screen 193.
[0109] An ambient light sensor is used to detect ambient light intensity. A pressure sensor is used to sense pressure signals and can convert these signals into electrical signals. In some embodiments, the pressure sensor may be located on the display screen 193. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
[0110] An accelerometer (G-sensor), also called a gravity sensor, is a device that can sense acceleration in any direction. A triaxial accelerometer works based on the fundamental principle of acceleration. Acceleration is a spatial vector; on the one hand, to accurately understand the motion of an object, its components on its three coordinate axes must be measured; on the other hand, in situations where the direction of the object's motion is unknown beforehand, only a triaxial accelerometer can detect the acceleration signal.
[0111] A gyroscope (GYRO-sensor), also known as a ground sensor, traditionally contains an internal gyroscope. A three-axis gyroscope can simultaneously measure position, trajectory, and acceleration in six directions. A single-axis gyroscope can only measure quantities in two directions, meaning a system typically requires three gyroscopes. A single three-axis gyroscope can replace three single-axis gyroscopes. The working principle of a three-axis gyroscope is to measure the angle between the vertical axis of the gyroscope rotor and the device in a three-dimensional coordinate system, and calculate the angular velocity. The angle and angular velocity are used to determine the object's motion state in three-dimensional space. A three-axis gyroscope can simultaneously measure six directions: up, down, left, right, forward, and backward (the composite direction can also be decomposed into three-axis coordinates), ultimately determining the device's trajectory and acceleration. In other words, by measuring its own rotation, the three-axis gyroscope determines the device's current motion state, such as forward, backward, up, down, left, or right; and whether it is accelerating (angular velocity) or decelerating (angular velocity).
[0112] A combination of an accelerometer and a gyroscope can be called an A+G module. The A module (accelerometer) within the A+G module allows the electronic device to determine "how many meters it has moved forward," while the G module (gyroscope) indicates "it has turned around." Therefore, the A+G module enables the electronic device to determine whether it has moved. Of course, to ensure the electronic device can effectively detect its own movement, it can include any other possible sensors.
[0113] In some embodiments, an electronic device may include one or N cameras 195, where N is a positive integer greater than 1. In this application embodiment, the type of camera 195 can be distinguished based on hardware configuration and physical location. For example, a camera located on the side of the electronic device's display screen 193 can be called a front-facing camera, and a camera located on the side of the electronic device's back cover can be called a rear-facing camera; another example is that a camera with a short focal length and a wide field of view can be called a wide-angle camera, while a camera with a long focal length and a narrow field of view can be called a regular camera. Here, focal length and field of view are relative concepts and are not specifically limited by parameters. Therefore, wide-angle cameras and regular cameras are also relative concepts, and can be specifically distinguished based on physical parameters such as focal length and field of view.
[0114] The electronic device implements display functions through a GPU, a display screen 193, and an application processor. The GPU is a microprocessor for image editing, 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 commands to generate or modify display information.
[0115] Electronic devices can achieve shooting functions through ISP, camera 195, video codec, GPU, display 193, and application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program commands to generate or modify display information.
[0116] The Information Service Provider (ISP) is used to process data fed back from the camera 195. 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 on image noise and brightness. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be integrated into the camera 195. The camera 195 is used to capture still images or videos.
[0117] Digital signal processors (DSPs) are used to process digital signals, including digital image signals and other digital signals. For example, when an electronic device is selecting a frequency, a DSP can perform Fourier transforms on the frequency energy.
[0118] Video codecs are used to compress or decompress digital video. Electronic devices can support one or more video codecs. This allows the electronic device to play or record video in various encoded formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0119] Display screen 193 is used to display images, videos, etc. Display screen 193 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include one or N displays 193, where N is a positive integer greater than 1.
[0120] In this embodiment of the application, the display screen 193 can be used to display pages required by the electronic device (e.g., a page displaying captured images, etc.), and to display images captured by any one or more cameras 195 in the interface.
[0121] The wireless communication function of electronic devices can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem, and baseband processor.
[0122] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0123] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use in electronic devices. 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 can 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 can be housed in the same device.
[0124] 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.
[0125] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, 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.
[0126] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the electronic device to communicate with networks and other devices via wireless communication technology. The 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 (TDSCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0127] The SIM card interface 194 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 194 to make contact with and detach from the electronic device. The electronic device can support one or more SIM card interfaces. The SIM card interface 194 supports Nano SIM cards, Micro SIM cards, and other SIM cards. Multiple cards can be inserted into the same SIM card interface 194 simultaneously. The SIM card interface 194 is also compatible with external memory cards. The electronic device interacts with the network through the SIM card to achieve functions such as calls and data communication. One SIM card corresponds to one user number.
[0128] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a limitation on the structure of the electronic device. In other embodiments of this application, the electronic device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0129] Of course, this is understandable. Figure 4 The illustration shown is merely an example when the electronic device is in the form of a mobile phone. If the electronic device is in the form of a tablet, handheld computer, PC, PDA, wearable device (such as a smartwatch, smart bracelet), or other similar device, the structure of the electronic device may include more advanced features. Figure 4 The fewer structures shown can also include more than Figure 4 The structures shown are not limited here.
[0130] It is understandable that, generally speaking, the implementation of various functions in electronic devices requires not only hardware support but also software cooperation. The software system of electronic devices can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application's embodiment uses a layered architecture... Taking the system as an example, the software structure of the electronic device is illustrated.
[0131] Figure 5 This is a schematic diagram of the layered architecture of the software system of the electronic device provided in the embodiments of this application. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces (e.g., APIs).
[0132] In some examples, refer to Figure 5 As shown in this embodiment, the software system located on the application processor (AP) in the system-on-a-chip (SOC) of the electronic device is divided into five layers, from top to bottom: application layer, framework layer (or application framework layer), system library and Android runtime, HAL layer (hardware abstraction layer), and kernel layer (or driver layer). The system library and Android runtime can also be referred to as the native framework layer or native layer.
[0133] The application layer can include a series of applications. For example... Figure 5 As shown, the application layer can include applications (APPs) such as camera, gallery, calendar, map, WLAN, Bluetooth, news, music, video, SMS, call, navigation, and instant messaging.
[0134] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes predefined functions or services. For example, the application framework layer may include an activity manager, window manager, content provider, audio service, view system, phone manager, resource manager, notification manager, package manager, etc., but this embodiment does not impose any limitations on these.
[0135] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0136] Content providers store and retrieve data, making that data accessible to applications. This data can include videos, images, audio, phone calls made and received, browsing history and bookmarks, phone books, etc.
[0137] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0138] A phone manager is used to provide communication functionality for electronic devices. For example, a phone manager can manage the call status of a calling application (including initiation, connection, and termination).
[0139] The main function of the camera service is to provide a unified interface and functionality for applications to access and operate camera devices.
[0140] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0141] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0142] Package manager in The package manager is used to manage application packages. It allows applications to obtain detailed information about installed applications and their services, permissions, etc. The package manager is also used to manage events such as application installation, uninstallation, and upgrades.
[0143] In this embodiment, the framework layer may further include a power management service. Specifically, the power management service can execute the technical solutions provided in this application during the wireless charging process of the electronic device. Specifically, it can interact with or control the wireless charging chip through the wireless charging module in the HAL layer and the wireless charging driver in the driver layer.
[0144] When electronic devices and wireless power supply devices are in the ping phase of wireless charging, if the wireless charging chip instructs the AP to control the electronic device to display a charging icon, the power management service can sequentially drive the display screen to display the charging icon through the display synthesis system in the system library, the display module in the hardware abstraction layer, and the display driver in the driver library.
[0145] Of course, in practice, the technical solution provided in this application can be implemented by any possible module in the application processor. The above is only an example and is not intended to impose specific limitations on the actual implementation.
[0146] The system library can include multiple functional modules. For example: a surface manager, a display compositing system, media libraries, open graphics library embedded systems (OpenGL ES), SGL, etc. The surface manager manages the display subsystem and provides 2D and 3D layer blending for multiple applications. The media libraries support playback and recording of various common audio and video formats, as well as still image files. The media libraries support various audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. OpenGL ES is used for 3D graphics drawing, image rendering, compositing, and layer processing. SGL is a 2D graphics engine. The display compositing system can specifically manage the display subsystem (e.g., controlling the display of an electronic device's screen to show a charging icon or adjust screen brightness), and provides layer generation or blending for multiple applications.
[0147] The Android runtime consists of the core libraries and the ART virtual machine. The Android runtime is responsible for scheduling and managing the Android system. The core libraries comprise two parts: one part contains the functionalities that Java code needs to call, and the other part consists of the Android core libraries. The application layer and application framework layer run in the ART virtual machine. The ART virtual machine executes the Java files of the application layer and application framework layer into binary files. The ART virtual machine is used for managing object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0148] The Hardware Abstraction Layer (HAL) is an interface layer located between the operating system kernel and the hardware circuitry, its purpose being to abstract the hardware. It hides the platform-specific hardware interface details, providing the operating system with a virtual hardware platform that is hardware-independent and portable across multiple platforms. The HAL provides a standard interface that exposes device hardware functionality to the higher-level Java API framework (i.e., the framework layer). The HAL contains multiple library modules, each implementing an interface for a specific type of hardware component, such as: audio HAL (audio module), Bluetooth HAL (Bluetooth module), camera HAL (camera module, also known as camera HAL or camera hardware abstraction module), sensors HAL (sensor module, or isensor service), display HAL (display module), wireless charging HAL (wireless charging module), etc.
[0149] The kernel layer is the layer between hardware and software. The kernel layer contains at least various drivers and a TCP / IP protocol stack. These drivers can include display drivers, camera drivers, audio drivers, sensor drivers, wireless charging drivers, etc., but this application does not limit the scope.
[0150] In this embodiment, the wireless charging driver can be used to directly control or communicate with the wireless charging chip, so that the wireless charging chip can be controlled by the AP, thereby realizing the technical solution provided in this application and preventing the problem of repeated charging interruptions when electronic devices and wireless power supply devices are wirelessly charging.
[0151] It should be noted that although the embodiments in this application use the Android system as an example for illustration, the basic principles are equally applicable to systems based on... Electronic devices using operating systems such as iOS and Windows.
[0152] For example, the wireless power supply device in the above-described wireless charging system can be a device capable of providing charging services to electronic devices, such as tablet computers, mobile phones, in-vehicle wireless charging docks, laptops, super mobile personal computers, netbooks or PDAs, and other devices capable of wirelessly charging other devices. The wireless power supply device has a charging area; when an electronic device is located within the charging area of the wireless power supply device, the wireless power supply device can wirelessly charge the electronic device. This application embodiment does not impose any special limitations on the specific type of wireless power supply device.
[0153] For example, taking a mobile phone as an electronic device, Figure 6 A schematic diagram of the structure of a wireless power supply device provided in an embodiment of this application is shown.
[0154] like Figure 6 As shown, the wireless power supply device may include a processor 220, a power management module 230, at least one transmitting coil 240, a charging interface 270, and a charging control module 290, etc. The connection relationship of each module is as follows: Figure 6 As shown.
[0155] In some embodiments, the wireless power supply device may further include one or more of a battery 210, a wireless communication module 280, and a sensor 260. The wireless power supply device can use the sensor 260 to sense whether an electronic device is within the charging area of the wireless power supply device.
[0156] The memory 250 can store program code, such as program code for wirelessly charging electronic devices (e.g., mobile phones). The memory 250 can also store a wireless communication address (e.g., a Bluetooth address) for uniquely identifying the wireless power supply device. Additionally, the memory 250 can store connection data of electronic devices that have previously been successfully paired with the wireless power supply device. For example, this connection data can be the Bluetooth address of an electronic device that has been successfully paired with the wireless power supply device. Based on this connection data, the wireless power supply device can automatically pair with the electronic device without needing to configure the connection, such as performing authentication. The aforementioned Bluetooth address can be a Media Access Control (MAC) address.
[0157] The processor 220 can be used to execute application code and call relevant modules to implement various functions of the wireless power supply device. For example, it can implement the wireless charging and wireless communication functions of the wireless power supply device. The processor 220 may include one or more processing units, which can be independent devices or integrated into one or more processors 220. Specifically, the processor 220 may be an integrated control chip or a circuit comprising various active and / or passive components, and this circuit is configured to perform the functions belonging to the processor 220 described in the embodiments of this application. The processor of the wireless power supply device may be a central processing unit (CPU).
[0158] The wireless communication module 280 can be used to support data exchange between wirelessly powered devices and other electronic devices, including Bluetooth (BT), Global Navigation Satellite System (GNSS), Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) networks), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and other wireless communication technologies.
[0159] In some embodiments, the wireless communication module 280 may include a Bluetooth module. The wireless power supply device can pair with and establish a wireless connection with the Bluetooth modules of other electronic devices through the Bluetooth module, thereby enabling wireless communication between the wireless power supply device and other electronic devices.
[0160] In addition, the wireless communication module 280 may also include an antenna. The wireless communication module 280 receives electromagnetic waves through the antenna, modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 220. The wireless communication module 280 can also receive signals to be transmitted from the processor 220, modulate and amplify them, and then convert them into electromagnetic waves for radiation through the antenna.
[0161] In some embodiments, the wireless power supply device can support wired charging. Specifically, the power management module 230 can receive charging input from a wired charger through the charging interface 270, and control the charging of the battery 210 through the charging control module 290, and / or directly power the processor 220, power management module 230, memory 250, external memory and wireless communication module 280, etc.
[0162] In some embodiments, the wireless power supply device can support the function of wirelessly charging electronic devices such as mobile phones and tablets. The power management module 230 can input electrical signals to at least one transmitting coil 240. Specifically, the transmitting coil 240 and the power management module 230 are connected through any possible circuit. The transmitting coil 240 can generate an alternating electromagnetic field in response to the AC signal input by the power management module 230, thereby wirelessly charging electronic devices such as mobile phones and tablets.
[0163] The power transmission management module 230 can also be used to monitor parameters such as the battery capacity, battery cycle count, and battery health status (leakage current, impedance) of the second battery 210. In some other embodiments, the power transmission management module 230 can also be located in the processor 220.
[0164] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on wireless power supply devices. They may have more than Figure 6 The device may show more or fewer components, combining two or more components, splitting certain components, or having different component configurations. For example, the outer surface of the wireless power supply device may also include components such as buttons and indicator lights (indicating power level, incoming / outgoing calls, pairing mode, etc.). The buttons may be physical buttons or touch buttons (used in conjunction with a touch sensor), used to trigger operations such as powering on, powering off, starting charging, and stopping charging.
[0165] In this embodiment, the power management module 250 can be connected to the transmitting coil 240 via a switching module (such as a switch). In this embodiment, the power management module 230 can control the state of the switching module to adjust the operating state of the transmitting coil 240. For example, taking a switch as the switching module, if the wireless power supply device controls the switch to close via the power management module 230, the transmitting coil 240 is in a working state, the wireless charging path containing the transmitting coil 240 is connected, and the power management module 230 can provide energy to the transmitting coil 240, enabling the wireless power supply device to charge the electronic device.
[0166] If the wireless power supply device is disconnected via the control switch of the power management module 230, the transmitting coil 240 is in a stopped state, the wireless charging path of the transmitting coil 240 is disconnected, and the power management module 230 cannot provide energy to the transmitting coil 240. Therefore, the wireless power supply device stops wirelessly charging the electronic device. In this case, the wireless power supply device can be considered to be in a power-off state.
[0167] Of course, in practice, the switching between charging and power-off states of wireless power supply devices can be implemented in any other possible way, and this application does not impose any specific restrictions on this.
[0168] The technical solutions provided in the embodiments of this application can all be implemented in electronic devices with the above-mentioned hardware and software architectures, or in a wireless charging system composed of electronic devices with the above-mentioned hardware and software architectures and wireless power supply devices.
[0169] The following combination Figure 7 As shown, the processing flow of the wireless charging optimization method provided in the embodiments of this application is introduced. Figure 7 This is a flowchart illustrating a wireless charging optimization method provided in an embodiment of this application. For example, taking a mobile phone with wireless charging capability as an example, refer to... Figure 7 As shown, the wireless charging optimization method may include S701-S703:
[0170] S701. When the phone enters wireless charging mode, determine the type of charging interruption that occurred when it last exited wireless charging mode.
[0171] Specifically, the wireless charging state refers to the state in which the mobile phone's wireless charging chip receives power wirelessly transmitted from the wireless power supply device and charges the phone's internal battery. In this embodiment, when the mobile phone and the wireless power supply device cooperate to enter the power transmission phase, the mobile phone can be considered to have entered the wireless charging state. For example, in a wireless charging system where the mobile phone is the RX and the wireless power supply device is the TX, after the wireless power supply device detects the mobile phone and completes the ping phase communication with the mobile phone, it can begin to formally transmit power to the mobile phone. At this time, it can be considered that the wireless power supply device and the mobile phone have cooperated to enter the power transmission phase.
[0172] In one possible implementation, during the ping phase communication interaction between the wireless power supply device and the mobile phone, if the mobile phone has sent all the communication data packets of the ping phase (such as SS packets, ID packets, and configuration packets) to the wireless power supply device, and the wireless power supply device has successfully completed the parsing, then the wireless power supply device will send higher power electromagnetic waves to the mobile phone to transmit power to the mobile phone.
[0173] After the receiving coil in the phone's wireless charging chip receives the electrical energy, the voltage generated on it will be higher than a preset voltage value (e.g., 5.6V). At this point, the wireless charging chip can determine that it has entered the power transmission phase and send charging instruction information to the access point (AP) in the phone. This instructs the AP to control the phone's battery to start receiving electrical energy and begin charging. Specifically, this charging instruction information is used by the user to instruct the AP to control the phone's battery to start receiving electrical energy, or to instruct the AP to transfer the electrical energy received by the wireless charging chip to the battery for charging. Based on this, when the phone's AP receives this charging instruction information, it can determine that it has entered the power transmission phase, and thus, the wireless charging phase.
[0174] In this embodiment of the application, the charging interruption type of the last time the wireless charging state was exited can specifically refer to the charging interruption type that caused the phone to exit the wireless charging state last time. Alternatively, the charging interruption type of the last time the wireless charging state was exited can also be referred to as the charging interruption type of the last time the phone stopped charging.
[0175] In some embodiments, S701 may specifically include: when the mobile phone enters the wireless charging state, acquiring the charging interruption parameters from the previous exit from the wireless charging state, and determining the charging interruption type from the previous exit from the wireless charging state based on the charging interruption parameters. For example, the charging interruption parameters may include: whether a proprietary charging protocol was used for wireless charging when the phone was in the previous wireless charging state, whether a first power mode was used for wireless charging when the phone was in the previous wireless charging state, the charging input voltage when the phone was last exited the wireless charging state, the change in the charging output current when the phone was last exited the wireless charging state, and a target time difference between the time of the last exit from the wireless charging state and the time of the current entry into the wireless charging state.
[0176] Among them, proprietary charging protocols can refer to charging protocols customized by mobile phone manufacturers for their own devices, such as Honor's proprietary wireless fast charging protocol.
[0177] The charging input voltage can refer to the voltage of electrical energy obtained by the wireless charging chip of the mobile phone after receiving electrical energy from the wireless power supply device. Generally, it can be the voltage Vrect of the DC power obtained by the wireless charging chip from the AC power generated by the receiving coil.
[0178] The charging output current refers to the current supplied to the battery by the wireless charging chip of a mobile phone after receiving electrical energy. The charging output current can exist in several states: current rise, current fall, and current stability. Specifically, the current rise state refers to a state where the current value tends to increase, the current fall state refers to a state where the current value tends to decrease, and the current stability state refers to a state where the current value tends to remain constant.
[0179] In this embodiment, the charging interruption type may include any of the following: wireless power supply equipment protection-type charging interruption, FOD charging interruption, communication-type charging interruption, and receiver undervoltage protection-type charging interruption. The specific meaning of each charging interruption type can be found in the relevant descriptions in the foregoing embodiments, and will not be repeated here.
[0180] In one possible implementation, refer to Figure 8 As shown, the specific process by which the mobile phone determines the type of charging interruption from the last time it exited the wireless charging state based on the charging interruption parameters can include S801-S810:
[0181] S801, the mobile phone determines whether the target time difference is greater than the preset duration.
[0182] In practice, if the charging interruption is of the FOD (Forward Discharge) type after the phone stops charging, the wireless power supply device will not be powered on again for a relatively long time. Then, after completing the ping phase communication with the phone, it will proceed to the PT (Push-to-Put) phase. This relatively long period is longer than the preset duration.
[0183] If the charging interruption is of another type, the wireless power supply device will recharge within a short period (i.e., quickly resume charging after interruption). After detecting the phone and completing a ping communication with it, it will enter the PT phase with the phone, thus enabling the phone to enter wireless charging mode. The maximum time required from charging interruption to re-entering wireless charging mode (i.e., the target time difference) can be a preset duration. For example, the preset duration can be 3 seconds.
[0184] Furthermore, since the phone will only resume charging after a considerable period following a FOD charging interruption, and this recharging does not occur repeatedly, it will not affect the user experience, or at least have a minimal impact on it. Therefore, this application will not include any optimizations or updates to the phone's wireless charging parameters related to FOD charging interruptions.
[0185] Based on this, in order to first rule out the case where the wireless charging parameters do not need to be optimized and updated, when determining the type of charging interruption, the method can first determine whether the type of the previous charging interruption was FOD charging interruption by judging the target time difference and the preset duration, that is, execute S801.
[0186] If the target time difference between the last time the phone exited wireless charging and the current time it entered wireless charging is greater than a preset duration, the phone can determine that the previous charging interruption that caused it to exit wireless charging was a FOD (Foreign Operation Disconnection) charging interruption, and execute S802. Of course, if the target time difference between the last time the phone exited wireless charging and the current time it entered wireless charging is greater than the preset duration, it could also be that the user directly removed the phone from the charging area of the wireless charging device. In this case, the charging interruption is a user-initiated action, so there is no need to update or optimize the wireless charging parameters used by the phone in this wireless charging state; the handling method is the same as for FOD charging interruption. Therefore, even if the user removes the phone from the charging area of the wireless charging device, the charging interruption type can still be determined as FOD charging interruption.
[0187] If the target time difference between the last time the phone exited wireless charging and the current time it enters wireless charging is less than a preset duration, it indicates that the phone quickly resumed charging after the last charging interruption, thus confirming that the charging interruption that caused the phone to exit wireless charging was not a FOD (Forward Discharge) interruption. At this point, further judgment on other charging interruption types is needed, i.e., executing steps S803-S810.
[0188] It should be noted that the case where the target time difference is equal to the preset duration can be classified as either the case where the target time difference is less than the preset duration or the case where the target time difference is greater than the preset duration. Figure 8 The examples shown are only examples of cases where the target time difference is equal to the preset duration, and are not intended to be specific limitations on the implementation of technical solutions in practice.
[0189] In this embodiment, a first timestamp can be recorded each time the mobile phone exits the wireless charging state, and a second timestamp can be recorded each time it enters the wireless charging state (i.e., enters the PT phase). In this way, when entering the wireless charging state, the target time difference can be determined based on the first timestamp of the previous exit from the wireless charging state and the second timestamp of the current entry into the wireless charging state.
[0190] S802, The phone has determined that the last time it exited wireless charging mode, the charging interruption type was FOD charging interruption.
[0191] If the charging interruption type that caused the phone to last exit wireless charging mode was determined to be FOD (Forward Disconnect) charging interruption, then it can be determined that no optimization of the phone's wireless charging parameters is needed at this time. Subsequently, the phone can continue wireless charging, using its original wireless charging parameters to receive power from the wireless power supply device.
[0192] S803: The phone determines whether it used a proprietary charging protocol for wireless charging when it was last in wireless charging mode.
[0193] In practice, if a mobile phone uses a proprietary charging protocol for wireless charging, it can obtain a target proprietary protocol data packet containing the reason for the charging interruption when charging is interrupted or resumed. Specifically, depending on the proprietary charging protocol, the target proprietary protocol data packet containing the reason for the charging interruption can be generated by the mobile phone itself or received by the mobile phone from the wireless power supply device. This application does not impose specific restrictions on this.
[0194] In this embodiment, if both the wireless power supply device and the mobile phone support a proprietary charging protocol, they can negotiate to use the proprietary charging protocol for wireless charging during the ping phase communication. Then, during the PT phase, the mobile phone (specifically, the wireless charging chip within the phone) sends a proprietary protocol data packet as defined by the proprietary charging protocol to the wireless power supply device, and the wireless power supply device also replies with a corresponding response data packet.
[0195] Based on this, the phone can determine or obtain the charging discontinuation parameter—whether it used the proprietary charging protocol for wireless charging during its last wireless charging session—by analyzing whether it sent a proprietary protocol data packet to the wireless power supply and received a corresponding response data packet. Specifically, if the phone sent a proprietary protocol data packet to the wireless power supply and received a corresponding response data packet during its last wireless charging session, it can be determined that it used the proprietary charging protocol during that session.
[0196] After executing S803, if it is determined that a proprietary charging protocol was used for wireless charging during the previous wireless charging session, the phone can then obtain a target proprietary protocol data packet containing the reason for the charging interruption. Based on the reason for the charging interruption carried in the target proprietary protocol data packet, the phone can determine the type of charging interruption that occurred during the previous exit from wireless charging. This leads to the execution of S804.
[0197] After executing S803, if it is determined that the private charging protocol was not used for wireless charging when the device was in wireless charging state last time, the charging interruption type can be further determined based on other charging interruption parameters, i.e., S805-S810 can be executed.
[0198] Furthermore, after a quick recharging of the phone, both the phone and the wireless power supply remain unchanged, and the charging protocol used after recharging is most likely still the proprietary charging protocol. Based on this, S803 could specifically involve the phone determining whether it is currently using the proprietary charging protocol for wireless charging. If it is determined that the proprietary charging protocol is being used for wireless charging, S804 is executed; if it is determined that the proprietary charging protocol is not being used for wireless charging, S805 is executed.
[0199] S804: The mobile phone obtains the target private protocol data packet and determines the charging interruption type of the last time it exited the wireless charging state based on the target private protocol data packet.
[0200] In this embodiment, the target private protocol data packet carries the reason for the previous wireless charging interruption. Based on this reason, the type of charging interruption that caused the previous wireless charging interruption can be determined. The method of obtaining the target private protocol data packet is not limited; it can be generated when the phone last exited wireless charging, obtained from the wireless power supply device when the phone last exited wireless charging, or generated and obtained from the wireless power supply device when the phone enters wireless charging this time.
[0201] S805: When the phone determines whether it was in wireless charging mode last time, should it use the first power mode for wireless charging?
[0202] In this embodiment, S805 can also be referred to as the phone determining whether it was in the first power mode before the charging was disconnected. In this embodiment, the first power mode is BPP. In this embodiment, when the phone is not using a proprietary charging protocol for wireless charging, the phone will use either the first power mode or the second power mode for wireless charging, and corresponding power recording information will exist. Based on this power recording information, the phone can obtain the charging disconnection parameter, which indicates whether it used the first power mode when it was last in wireless charging mode. For example, the second power mode can be EPP.
[0203] In practice, aside from communication-related charging interruptions, undervoltage protection charging interruptions (or RX undervoltage protection charging interruptions) occur because the voltage of the receiving coil of the wireless charging chip on the phone is less than or equal to the undervoltage protection threshold. Furthermore, when a phone uses the first power mode for wireless charging, the output power of the wireless power supply is relatively low, resulting in a smaller amount of energy received by the receiving coil of the phone's wireless charging chip, leading to lower current and voltage. Therefore, undervoltage protection charging interruptions are most likely to occur when the phone is using the first power mode for wireless charging.
[0204] As for the protective charging interruption of wireless power supply devices (or dock protective charging interruption), it occurs when the output parameters of the wireless power supply device exceed or are about to exceed a preset safety threshold, in order to prevent damage to the wireless power supply device. Furthermore, when a mobile phone is wirelessly charging in the second power mode, the output power of the wireless power supply device is higher, which can easily cause the output parameters of the wireless power supply device to reach the upper limit (i.e., the preset safety threshold). Therefore, the protective charging interruption of wireless power supply devices is most likely to occur in scenarios where the mobile phone is wirelessly charging in the second power mode.
[0205] Based on the above description, after determining that the phone did not use a proprietary charging protocol before the charging stopped, we can first determine whether the phone used the first power mode when it was last in wireless charging state, and then further determine the true type of charging stop.
[0206] If it's determined that the phone was wirelessly charging in the first power mode during the last wireless charging session, then the type of charging interruption that caused the phone to exit wireless charging (i.e., the last charging interruption) could be due to receiver undervoltage protection or an unknown communication-related charging interruption. Furthermore, when the phone is about to experience receiver undervoltage protection, the phone's charging input voltage will be relatively low, and the voltage on the receiving coil of the phone's wireless charging chip will also be low. If the phone continues to increase charging power at this time (specifically, by increasing the charging output current when charging the battery), the energy converted by the wireless charging chip will decrease, which may cause the voltage on the receiving coil to drop sharply to below or equal to the undervoltage protection threshold (e.g., 3V), thus triggering receiver undervoltage protection and charging interruption.
[0207] Furthermore, since the voltage in the receiving coil is unstable and difficult to detect, if it is determined that the phone was using the first power mode when it was last in wireless charging mode, the phone can further determine whether the charging input voltage was greater than a preset voltage threshold when it last exited wireless charging mode. This allows the phone to further determine whether the charging interruption type when it last exited wireless charging mode was due to undervoltage protection at the receiving end. That is, if it is determined that the phone was using the first power mode when it was last in wireless charging mode, S806 is executed.
[0208] If it is determined that the first power mode was not used during the previous wireless charging session, then the second power mode was used. Therefore, it can be assumed that the charging interruption that caused the phone to exit wireless charging (i.e., the previous charging failure) was either a wireless power supply protection interruption or a communication-related interruption for an unknown reason.
[0209] Furthermore, wireless charging protection-type disconnections likely only occur when the charging output current is in a current-boosting state. Therefore, if it's determined that the second power mode was used for wireless charging during the previous wireless charging session, the phone can further determine whether the charging output current was in a current-boosting state when it exited wireless charging mode. This allows it to further determine whether the disconnection type during the previous exit was a wireless charging protection-type disconnection. That is, if it's determined that the first power mode was not used for wireless charging during the previous session, step S807 is executed.
[0210] S806. The mobile phone determines whether the charging input voltage was greater than a preset voltage threshold when the mobile phone last exited the wireless charging state.
[0211] For example, the preset voltage threshold can be 4.5V.
[0212] In some embodiments, S806 may also be referred to as the mobile phone determining whether the charging input voltage before the charging is disconnected is greater than a preset voltage threshold.
[0213] In this embodiment, when the mobile phone is in wireless charging mode, it periodically (e.g., every 100ms or every 200ms) stores the latest value of the charging input voltage. Based on this, the mobile phone can obtain the charging input voltage, the parameter for the last time it exited wireless charging mode. When S806 is executed, the mobile phone will make the determination of S806 based on the latest value in the stored charging input voltage.
[0214] If it is determined that the charging input voltage was greater than a preset voltage threshold when the phone last exited wireless charging mode, based on the relevant descriptions after S805 in the aforementioned embodiments, it can be determined that the charging interruption type that caused the last exit from wireless charging mode was undervoltage protection charging interruption at the receiver. Then, S808 is executed.
[0215] Since the charging input voltage was less than a preset voltage threshold when the phone last exited wireless charging, based on the relevant descriptions after S805 in the aforementioned embodiments, it can be assumed that in the scenario before the charging interruption, it was very likely that the voltage of the receiving coil on the wireless charging chip was less than or equal to the undervoltage protection threshold due to the phone pulling up the charging power, thus causing the charging to stop and exit the wireless charging state. Therefore, it can be determined that the charging interruption type that caused the last exit from the wireless charging state was a communication-related charging interruption. Then, S809 is executed.
[0216] It should be noted that the case where the charging input voltage is equal to the preset voltage threshold can be classified as either the case where the charging input voltage is greater than the preset voltage threshold or the case where the charging input voltage is less than the preset voltage threshold. Figure 8 The examples shown are only examples of cases where the charging input voltage is equal to the preset voltage threshold, and are not intended to be specific limitations on the implementation of technical solutions in practice.
[0217] S807: The phone determines whether the charging output current was in a current-boosting state when it last exited wireless charging mode.
[0218] In this embodiment, each time the mobile phone enters wireless charging mode, it periodically samples the charging output current to obtain corresponding sample values until charging is stopped (i.e., the wireless charging mode is exited). Since only the latest sampled value reflects the change in the charging output current when the phone last exited wireless charging mode, a maximum of a maximum number of the latest sampled values can be retained during sampling. Specifically, during periodic sampling, a maximum number of sampled values can be limited, i.e., a maximum number of charging output current sampled values can be sampled. When the maximum number of sampled values has been reached, if the phone is still charging, the earliest sampled value can be deleted, and the latest sampled value can be added. In this way, each time the phone exits wireless charging mode, a maximum of a maximum number of charging output current sampled values can be obtained.
[0219] In some embodiments, when the mobile phone exits the wireless charging state, the mobile phone can determine the change state of the charging output current (i.e., the change state of the charging output current when exiting the wireless charging state) based on multiple sampled values of the acquired charging output current, so that when the mobile phone re-enters the wireless charging state, it can directly call the change state of the charging output current to make relevant judgments, i.e., perform the judgment in S807.
[0220] In other embodiments, when the phone exits and re-enters wireless charging mode, it can determine the change in the charging output current based on multiple sampled values of the charging output current obtained during the previous wireless charging state (i.e., obtain the charging output current change status when the phone exited wireless charging mode, which is the discontinuation parameter). This allows the phone to obtain the corresponding data (i.e., the charging output current change status when the phone exited wireless charging mode) when it needs to execute S807.
[0221] If it is determined that the charging output current was in a current-boosted state when the wireless charging state was last exited, based on the relevant statements after S805 in the aforementioned embodiments, the mobile phone can determine that the charging interruption type that caused the last exit from the wireless charging state was a wireless power supply device protection type charging interruption. Then, S810 is executed.
[0222] If it is determined that the charging output current was in a current-boosted state when the wireless charging state was last exited, based on the relevant statements after S805 in the aforementioned embodiments, the mobile phone can determine that the charging interruption type that caused the last exit from the wireless charging state was a communication-related charging interruption. Then, S809 is executed.
[0223] S808: The phone determines that the charging interruption type when it last exited wireless charging mode was receiver undervoltage protection charging interruption.
[0224] If the charging interruption that caused the last exit from wireless charging is determined to be due to receiver undervoltage protection, the phone can use the corresponding receiver undervoltage protection optimization strategy to update the phone's wireless charging parameters. This reduces the probability of receiver undervoltage protection interruptions during subsequent wireless charging, thereby preventing the phone from repeatedly interrupting and resuming charging, and improving the user experience.
[0225] S809: The phone has determined that the charging interruption type when it last exited wireless charging mode was a communication-related charging interruption.
[0226] If the charging interruption that caused the last exit from wireless charging was determined to be a communication-related interruption, then the reason for the phone's previous charging interruption can be considered varied, making it impossible to accurately pinpoint which wireless charging parameters need adjustment. Therefore, no optimization of the phone's wireless charging parameters will be performed at this time.
[0227] S810: The phone has determined that the charging interruption type when it last exited wireless charging mode was a wireless power supply device protection type charging interruption.
[0228] If the charging interruption that caused the last exit from wireless charging is determined to be a wireless power supply protection type, the phone can use the corresponding wireless power supply protection type charging interruption optimization strategy to update the phone's wireless charging parameters. This reduces the probability of wireless power supply protection type charging interruptions during subsequent wireless charging, thereby preventing the phone from repeatedly interrupting and resuming charging, and improving the user experience.
[0229] Furthermore, it should be noted that the execution order of each step in S801-S810 above can be arbitrarily adjusted according to actual needs, as long as the final result of the filling failure type determination is accurate. That is, the final filling failure type determination logic needs to include the following:
[0230] If the wireless charging state was last used with a proprietary charging protocol, the charging interruption type when the wireless charging state was last exited is determined based on the target proprietary protocol data packet.
[0231] If the target time difference is greater than the preset duration, the charging interruption type at the time of the last exit from wireless charging is determined to be FOD charging interruption. Of course, since FOD charging interruption is also likely to occur in scenarios where the charging output current is in a current-increasing or current-decreasing state, the determination of whether it is FOD charging interruption can also be made by combining the change state of the charging output current.
[0232] If the target time difference is less than the preset duration, the first power mode was used for wireless charging when the device was in wireless charging state last time, and the charging input voltage when the device was exiting wireless charging state last time was less than the preset threshold, then the charging interruption type when the device was exiting wireless charging state last time is determined to be undervoltage protection charging interruption at the receiver.
[0233] If the target time difference is less than the preset duration, the first power mode was used for wireless charging when the device was in wireless charging state last time, and the charging input voltage when the device was exiting wireless charging state last time was greater than the preset threshold, then the charging interruption type when the device was exiting wireless charging state last time is determined to be communication-related charging interruption.
[0234] If the target time difference is less than the preset duration, the second power mode was used for wireless charging when the device was in wireless charging state last time, and the charging output current was in a current boost state when the device was last exited wireless charging state last time, then the charging interruption type when the device was last exited wireless charging state is determined to be wireless power supply device protection type charging interruption.
[0235] If the target time difference is less than the preset duration, the second power mode was used for wireless charging when the device was in wireless charging state last time, and the charging output current was not in a current boost state when the device was exiting wireless charging state last time, then the charging interruption type when the device was exiting wireless charging state last time is determined to be communication-related charging interruption.
[0236] Based on the technical solutions corresponding to S801-S810 described above, the mobile phone can accurately determine the type of charging interruption that caused the phone to exit the wireless charging system last time, based on the charging interruption parameters from the last time it exited the wireless charging state, combined with the causes and characteristics of various charging interruption types. This allows the phone to subsequently adopt corresponding optimization strategies based on the charging interruption type, updating and optimizing the phone's wireless charging parameters. This reduces the probability of protection-related charging interruptions during subsequent wireless charging operations, preventing repeated charging interruptions and recharging, and improving the user experience.
[0237] After S701 is executed, the phone can update its wireless charging parameters based on the optimization strategy corresponding to the charging interruption type, i.e., execute S702.
[0238] S702: The phone updates the wireless charging parameters based on the optimization strategy corresponding to the type of disconnection that occurred when it last exited the wireless charging system.
[0239] Since there are two types of charging interruption that can be avoided by adjusting the wireless charging parameters, namely, the undervoltage protection charging interruption at the receiver and the protection charging interruption of the wireless power supply device, S702 in this application embodiment can have two possible implementation methods. The following is a detailed description of these two possible implementation methods.
[0240] (1) First implementation method: In some embodiments, if it is determined that the charging interruption type of the last exit from the wireless charging system was undervoltage protection charging interruption at the receiver, then combined with Figure 7 , refer to Figure 9 As shown, S702 may specifically include S901-S903:
[0241] S901. The mobile phone determines whether the target parameter value in the latest CE packet sent to the wireless power supply device is greater than a first preset value, and whether the current charging input voltage is less than a preset voltage threshold.
[0242] For example, the first preset value can be 3, and the preset voltage threshold can be 4.5V.
[0243] In this application, when the mobile phone and the wireless power supply device are in the power transmission phase, the mobile phone periodically sends a CEP (Content Execution Program) to the wireless power supply device. The CEP can carry a target parameter value. This target parameter value characterizes the difference between the target voltage and the charging input voltage. The target voltage is the target or maximum value of the charging output voltage of the mobile phone's wireless charging chip in BPP (Browser-Powered) mode. The larger the difference between the target voltage and the charging input voltage, the larger the target parameter value. A larger target parameter value indicates that the electrical energy provided by the wireless power supply device, after conversion by the mobile phone's wireless charging chip to obtain the charging input voltage, is much smaller than the charging output voltage corresponding to the electrical energy required by the mobile phone. This means that the electrical energy provided by the wireless power supply device is insufficient for charging the mobile phone, and the wireless power supply device needs to further increase its output power.
[0244] Regarding the charging input voltage, if it is lower than the preset voltage threshold, based on the relevant description after S805 in the aforementioned embodiment, the phone's increased charging power load may cause the phone to trigger undervoltage protection and stop charging. If the wireless power supply device needs the power, and the device cannot supply sufficient power, there is a high probability that undervoltage protection will trigger and stop charging.
[0245] Based on this, if the target parameter value in the latest CE packet sent to the wireless power supply device is greater than the first preset value, and the current charging input voltage of the mobile phone is less than the preset voltage threshold, it can be determined that there is a high probability that the undervoltage protection of the receiver will cause charging to stop. To avoid this situation, the mobile phone can then stop charging power, i.e., execute S902.
[0246] If the target parameter value in the latest CE packet sent to the wireless power supply device is determined to be no greater than a first preset value, or the current charging input voltage of the mobile phone is no less than a preset voltage threshold, then it can be considered that there is only a small probability that the mobile phone will interrupt charging due to undervoltage protection at the receiving end if it continues to apply power. In order to prevent this charging interruption as much as possible, the mobile phone can reduce the amount of charging power applied, that is, execute S903.
[0247] S902: The phone sets the current charging output current to the upper limit of the charging output current.
[0248] The charging output current limit refers to the maximum value that the charging output current can reach when the phone is under maximum charging power. By setting the current charging output current (specifically, its value) to this limit, both the charging power and the charging output current will not increase further, thus preventing a sudden drop in the Verct power. Furthermore, this avoids the risk of the phone repeatedly disconnecting and recharging due to the receiver's undervoltage protection, preventing subsequent instances of charging interruptions and resuming.
[0249] In this case, the wireless charging parameters adjusted by the phone include the upper limit of the charging output current.
[0250] S902 is followed by S703. When S703 is executed, the phone will use the updated charging output current limit and continue wireless charging in wireless charging mode.
[0251] S903, the mobile phone adjusts the step size of the charging output current from the first preset current value to the second preset current value.
[0252] The first preset current value is greater than the second preset current value. The first preset current value can be the default increment of the charging output current after the phone leaves the factory, or it can be the value after the phone last updated the increment of the charging output current. For example, the first preset current value can be 100mA, and the second preset current value can be 200mA.
[0253] By adjusting the increment step of the charging output current from the first preset current value to the second preset current value, the increase in charging power and charging output current will be slower, thus significantly reducing the risk of a sharp drop in the charging input voltage (verct). Furthermore, this reduces the probability of undervoltage protection at the receiver causing charging interruption, and decreases the likelihood of the phone repeatedly interrupting and recharging due to undervoltage protection at the receiver.
[0254] In this case, the wireless charging parameters adjusted by the phone include the increase in the step size of the charging output current.
[0255] S902 is followed by S703. When S703 is executed, the phone will use the updated charging output current with an increased step size to continue wireless charging in wireless charging mode.
[0256] The solutions corresponding to S901-S903 above can be used as optimization strategies for undervoltage protection and charge interruption at the receiving end.
[0257] Based on the technical solutions corresponding to S901-S903 mentioned above, when it is determined that the previous charging interruption was due to undervoltage protection at the receiver, and considering the target parameter values and charging input voltage, the mobile phone can promptly adjust the relevant wireless charging parameters to prevent or reduce the increase in the phone's charging power. This effectively mitigates the risk of undervoltage protection-induced charging interruptions and prevents repeated charging interruptions and recharging due to undervoltage protection, thus improving the user experience.
[0258] In some embodiments, since undervoltage protection charging interruption at the receiver typically occurs during the process of verct decreasing, to further ensure the accuracy of wireless charging parameter optimization timing, if the charging interruption type of the previous exit from the wireless charging system was undervoltage protection charging interruption at the receiver, it is possible to first determine whether verct is in a decreasing trend, and then decide whether to proceed with subsequent judgments. Based on this, combined with Figure 9 , refer to Figure 10 As shown, S900 precedes S901:
[0259] S900: Determine if the current charging input voltage is in a downward trend.
[0260] In this embodiment, when the mobile phone is in wireless charging mode, it periodically (e.g., every 100ms or every 200ms) stores the latest value of the charging input voltage verct. Based on the stored verct, it can be determined whether the current charging input voltage is in a downward trend. For example, if the latest stored preset number of verct values increase sequentially over time, and each increase is greater than a preset voltage difference, then the current charging input voltage can be considered to be in a downward trend. Of course, the determination of the current charging input voltage's trend (downward trend, stable trend, or upward trend) can be implemented in any possible way, and this application does not impose any specific limitations on it.
[0261] If the current charging input voltage is determined to be decreasing, it can be further determined whether there is a risk of undervoltage protection interruption at the receiver, and then it can be decided whether to update the wireless charging parameters. That is, S901 is then executed.
[0262] If it is determined that the current charging input voltage is not decreasing, it can be assumed that there is no risk of undervoltage protection interruption at the receiver. In this case, it can be determined that the wireless charging parameters do not need to be updated or optimized, i.e., S904 is executed.
[0263] S904: The phone does not update wireless charging parameters.
[0264] After S904, the phone can continue to wirelessly charge using the original wireless charging parameters.
[0265] Based on the above technical solution, the mobile phone can accurately determine when to optimize wireless charging parameters based on the trend of vertex change. This allows the phone to update wireless charging parameters using the appropriate optimization strategy at the most suitable time, ensuring that the charging power does not increase or the increase is reduced. This mitigates the risk of undervoltage protection interruption at the receiver, preventing repeated charging interruptions and recharging due to undervoltage protection, thus improving the user experience.
[0266] In addition, the above Figure 9 or Figure 10 The wireless charging parameter optimization strategy shown is executed whenever the phone is in wireless charging mode. This reduces the risk of undervoltage protection interruption at the receiver and prevents repeated charging interruptions and recharging. Therefore, in some embodiments, when the phone is in wireless charging mode, the wireless charging parameters can be updated based on the optimization strategy corresponding to undervoltage protection interruption at the receiver to prevent such interruptions. That is, when the phone is in wireless charging mode, the technical solutions corresponding to S901-S903 or S900-S904 can be executed.
[0267] (2) Second implementation method: In some embodiments, if it is determined that the charging interruption type of the last exit from the wireless charging system was a wireless power supply device protection type charging interruption, then combined with Figure 7 , refer to Figure 11 As shown, S702 may specifically include S1101-S1109:
[0268] S1101. The mobile phone determines whether the current charging coupling degree is less than the charging coupling degree when it was in wireless charging state last time.
[0269] Charging coupling refers to the degree of coupling between the receiving coil in the mobile phone's wireless charging chip and the transmitting coil of the wireless power supply device. The charging coupling degree can be determined based on the coupling information carried in the signal strength packet (SSP) sent by the mobile phone to the wireless power supply device during the ping phase communication interaction. The mobile phone can store this signal strength packet in real time each time it is generated.
[0270] Based on the reasons for the protective charging interruption of the wireless power supply device in the aforementioned embodiments, it can be inferred that when the charging coupling is low, the power provided by the wireless power supply device may not be received by the mobile phone with high reception efficiency. Therefore, in this case, even if the wireless power supply device is already providing sufficient power to the mobile phone due to low reception efficiency, the mobile phone may not receive enough power. If the mobile phone does not receive enough power, it will continuously request the wireless power supply device to increase its transmission power, which may lead to the protective charging interruption of the wireless power supply device.
[0271] Based on this, if the current charging coupling level is determined to be lower than the charging coupling level during the previous wireless charging state, it can be assumed that the user moved the phone's position on the charging area of the wireless power supply device after the last exit from wireless charging, resulting in a decrease in charging coupling. Currently, there is a risk of the wireless power supply device cutting off charging due to protection mechanisms. At this point, it is possible to further determine how to adjust the wireless charging parameters, i.e., execute steps S1103-S1108.
[0272] If the current charging coupling is determined to be lower than the charging coupling during the previous wireless charging session, it can be assumed that the user moved the phone's position within the wireless charging area after exiting wireless charging, increasing the charging coupling and reducing the probability of the wireless charging device's protection-based charging interruption. This may prevent subsequent wireless charging interruptions, thus eliminating the risk of such interruptions. Furthermore, since adjusting wireless charging parameters may lower certain parameters and reduce charging efficiency, to ensure a good charging experience, updating or optimizing the wireless charging parameters is not necessary at this point; i.e., proceed to step S1102.
[0273] S1102, The phone does not update wireless charging parameters.
[0274] After S1102, the phone can continue to wirelessly charge using the original wireless charging parameters, ensuring that the phone can use higher wireless charging parameters for wireless charging, thus guaranteeing wireless charging efficiency and improving the user experience.
[0275] S1103. The mobile phone determines whether a proprietary charging protocol is currently being used for wireless charging.
[0276] Since the maximum charging output power (or maximum supported power) that a proprietary charging protocol can support for charging a phone to a battery is different from the maximum supported power of the power mode specified in the Qi protocol, the optimization schemes for wireless charging parameters corresponding to different maximum supported powers are different. When it is determined that wireless charging parameters need to be updated, it is advisable to first determine whether the phone is currently using a charging protocol for wireless charging.
[0277] When it is determined that the mobile phone is currently using a proprietary charging protocol for wireless charging, the preset safety threshold for the target type of wireless power supply device using the proprietary charging protocol is lower than that for other types of wireless power supply devices. Therefore, for the wireless power supply device that charges the mobile phone, which is the target type of wireless power supply device, a different optimization strategy is required compared to other types of wireless power supply devices.
[0278] Based on this, if it is determined that a private charging protocol is currently being used for wireless charging, it can be further determined whether the type of the wireless power supply device currently charging the mobile phone is the target class, i.e., S1104 is executed.
[0279] Assuming no proprietary charging protocol is being used for wireless charging, most wireless charging device (FTD) protection-type disconnections occur when the output parameters (e.g., output power) negotiated between the FTD and the phone are increased to their upper limit (the preset safety threshold corresponding to the output parameters). Furthermore, this FTD protection-type disconnection occurs in the second power mode (specifically EPP), and the power mode generally does not change during rapid recharging. That is, if the previous disconnection was determined to be a FTD protection-type disconnection, the phone will still use the second power mode for wireless charging. Moreover, the second power mode can have multiple maximum supported power values. When the maximum supported power of EPP is the highest value, the phone's charging efficiency is higher, but the output parameters requested from the FTD during charging are more likely to reach their upper limit.
[0280] Based on the above, if it is determined that a proprietary charging protocol is not currently being used for wireless charging, the maximum supported power of the second power mode currently used by the phone can be considered as the maximum first power, and thus a decision can be made on how to optimize the wireless charging parameters. That is, if it is determined that a proprietary charging protocol is not currently being used for wireless charging, step S1105 is executed.
[0281] S1104. The mobile phone determines whether the type of the wireless power supply device is the target class.
[0282] In some embodiments, the target class can be a car charger. For example, a wireless power supply device for a car charger can be a car wireless charging dock, etc.
[0283] If the type of the wireless power supply device is determined to be the target class, it can be further determined whether the charging mode currently used by the mobile phone is the first charging mode that is more likely to cause the output parameters of the wireless power supply device to reach the upper limit, thereby determining the specific optimization strategy for the wireless charging parameters. That is, if the type of the wireless power supply device is determined to be the target class, S1106 is executed.
[0284] If the type of the wireless power supply device is determined not to be the target class, it can be assumed that the output parameters of the wireless power supply device are unlikely to reach the upper limit. Therefore, to prevent the wireless power supply device from quickly recurring protection-type charging interruption, the upper limit of the charging output current can be updated so that the phone does not significantly increase the charging output current when the charging power is increased, thus preventing the wireless power supply device from interrupting charging due to protection. That is, if the type of the wireless power supply device is determined not to be the target class, execute S1107.
[0285] S1105. The mobile phone determines whether the maximum supported power of the currently used second power mode is the first power.
[0286] The first power is the largest of several power values among the maximum supported power values for the second power mode. An example first power could be 15W.
[0287] If the maximum supported power of the phone's current second power mode is the same as the first power mode, the phone can use Super Charge (SC) to charge the battery. When using Super Charge, the phone increases its charging output current much faster, which requires the wireless power supply device to deliver power to the phone with higher output parameters. As a result, the wireless power supply device may trigger its protection mechanism to disconnect charging as its output parameters quickly reach their limit.
[0288] Based on this, if the maximum supported power of the currently used second power mode is determined to be the first power, in order to ensure charging efficiency as much as possible, the maximum supported power of the second power mode can be adjusted to the second power, i.e., S1108 is executed. The second power can be any of the various power values of the maximum supported power of the second power mode that are only less than the first power.
[0289] If it is determined that the maximum supported power of the currently used second power mode is not the first power, the phone typically uses a non-SC method (such as buck charging) to charge the battery in this situation. In this case, the phone increases the charging output current more slowly, thus requiring the wireless power supply device to deliver power to the phone with smaller output parameters. Therefore, in this situation, it is unlikely that the wireless power supply device will interrupt charging due to protection. Furthermore, to prevent the phone from repeating the wireless power supply device's protection-based interruption that occurred during the previous wireless charging exit, the charging output current limit can be updated, i.e., S1107 can be executed.
[0290] S1106. The phone determines whether the first charging mode is currently in use.
[0291] In some embodiments, when the mobile phone charges the battery using a first charging mode, the mobile phone sets the initial value of the charging output voltage to a first preset voltage when the charging power is applied, and then begins to increase the charging output voltage (or, as may be said, use the first preset voltage as the starting charging output voltage) to increase the charging output current and improve charging efficiency. For example, the first preset voltage value can be 15V.
[0292] In this embodiment, the target type of wireless power supply device can support multiple charging modes for the mobile phone. The first charging mode is the one with the highest initial charging output voltage among these multiple charging modes.
[0293] Based on this, if it is determined that the mobile phone is currently charging in the first charging mode, in order to ensure charging efficiency and avoid the wireless power supply device's protection-type charging interruption, the first charging mode can be changed to the second charging mode, i.e., S1109 is executed. The second charging mode is one of the multiple charging modes that the wireless power supply device supports for the mobile phone, where the initial charging output voltage is only lower than that of the first charging mode.
[0294] S1107, Update the maximum charging output current of the mobile phone.
[0295] Specifically, in order to prevent the output parameters of the wireless power supply device from reaching the upper limit due to the large charging output current of the mobile phone, S1107 can reduce the upper limit of the charging output current of the mobile phone.
[0296] In some embodiments, the upper limit of the charging output current currently used by the mobile phone is the historical upper limit of the charging output current used by the mobile phone when it last exited the wireless charging state. This upper limit of the charging output current can be reflected from the latest plurality of first sampled values of the charging output current obtained when the mobile phone was in the wireless charging state last time. For example, the average of the plurality of first sampled values can be approximated as this historical upper limit of the charging output current.
[0297] Based on this, S1107 can specifically be a preset percentage of the upper limit of the charging output current updated by the mobile phone to the average of multiple first sampled values. For example, the preset percentage can be 90%.
[0298] In this case, the wireless charging parameters adjusted by the phone include the upper limit of the charging output current.
[0299] S1107 is followed by S703. When S703 is executed, the phone will use the updated charging output current limit and continue wireless charging in wireless charging mode.
[0300] S1108: The phone adjusts the maximum supported power of the currently used second power mode from the first power to the second power.
[0301] In this way, since the second power is the only power value less than the first power among the various maximum supported power values of the second power mode, adjusting the maximum supported power of the currently used second power mode from the first power to the second power can avoid the occurrence of wireless power supply protection interruptions while ensuring charging efficiency as much as possible. This prevents the phone from repeatedly stopping and starting to recharge due to wireless power supply protection interruptions, thus improving the user experience.
[0302] In this case, the wireless charging parameters adjusted by the phone include the maximum supported power of the currently used second power mode.
[0303] S1108 is followed by S703. When S703 is executed, the phone will use the maximum supported power of the updated second power mode to continue wireless charging in wireless charging mode.
[0304] S1109, The phone changes the charging mode from the first charging mode to the second charging mode.
[0305] In this case, the wireless charging parameters adjusted by the phone include the charging mode currently being used by the phone.
[0306] S1109 is followed by S703. When S703 is executed, the phone will continue wireless charging in wireless charging mode using the updated charging mode.
[0307] In this way, since the second charging mode allows the wireless power supply device to support multiple charging modes for the phone, the initial charging output voltage is only one of the lower than that of the first charging mode. Therefore, by changing the currently used first charging mode to the second charging mode, charging efficiency can be maximized while avoiding the occurrence of protection-related charging interruptions by the wireless power supply device. This prevents the phone from repeatedly stopping and starting charging due to protection-related charging interruptions, thus improving the user experience.
[0308] Furthermore, it should be noted that the execution order of each step in S1101-S1109 above can be adjusted arbitrarily according to actual needs, as long as the final update of the wireless charging parameters is accurate. That is, the final update logic for the wireless charging parameters should include:
[0309] If the current charging coupling is less than the charging coupling during the previous wireless charging state, it is determined that there is a risk of charging interruption due to the protection mechanism of the wireless power supply device; if the current charging coupling is greater than the charging coupling during the previous wireless charging state, it is determined that there is no risk of charging interruption due to the protection mechanism of the wireless power supply device.
[0310] If it is determined that there is a risk of wireless power supply equipment interruption due to protection, and if the maximum supported power of the second power mode currently used by the mobile phone is the first power, then the maximum supported power of the second power mode will be adjusted to the second power.
[0311] If it is determined that there is a risk of wireless power supply equipment interrupting charging due to protection, and if the maximum supported power of the second power mode currently used by the mobile phone is the second power, then the upper limit of the charging output current will be updated.
[0312] If it is determined that there is a risk of wireless power supply device protection interruption, and if the mobile phone is currently using a proprietary charging protocol for wireless charging, the wireless power supply device is of the target type, and the mobile phone is charging in the first charging mode, then the first charging mode will be changed to the second charging mode.
[0313] If it is determined that there is a risk of wireless power supply device protection interruption, and if the mobile phone is currently using a proprietary charging protocol for wireless charging, the wireless power supply device is of the target type, and the mobile phone is not using the first charging mode, then the upper limit of the charging output current will be updated.
[0314] If it is determined that there is no risk of wireless charging failure due to protection mechanisms, the wireless charging parameters will not be updated.
[0315] Based on the technical solutions corresponding to S1101-S1109 above, if the phone determines that the previous charging interruption was due to wireless power supply protection, it can determine whether there is a risk of wireless power supply protection-related charging interruption in the current situation by analyzing the changes in charging coupling between the phone and the previous two wireless charging states. If the risk of wireless power supply protection-related charging interruption is determined, an appropriate optimization scheme can be adopted to update and optimize the relevant wireless charging parameters based on a combination of factors such as whether a proprietary charging protocol is being used, the type of wireless power supply, the phone's current charging mode, and the maximum supported power of the currently used second power mode. This ensures that the phone's charging power does not increase or the increase is reduced. In this way, the risk of undervoltage protection-related charging interruption at the receiver can be avoided to a certain extent, preventing repeated charging interruptions and recharging due to wireless power supply protection-related charging interruptions, thus improving the user experience.
[0316] S703: The phone continues to wirelessly charge using the updated wireless charging parameters.
[0317] Based on the technical solution provided in this application, when a mobile phone enters wireless charging mode, it can first determine the type of charging interruption that occurred during the last exit from wireless charging mode. Then, the mobile phone can update its wireless charging parameters based on an optimization strategy matching the charging interruption type. Finally, the mobile phone can continue wireless charging using the updated wireless charging parameters. Because the optimization strategy is matched to the charging interruption type, it can specifically reduce the probability of charging interruptions corresponding to that type, thereby avoiding rapid and repeated charging interruptions and recharging, and improving the user experience.
[0318] In some embodiments, in order to accurately determine the change in charging output current when the phone last exited wireless charging, the phone can periodically sample the charging output current when it last entered wireless charging until it last exited wireless charging. For example, the sampling period can be 100ms.
[0319] Subsequently, after the phone exits wireless charging mode, it can determine the change in the charging output current at the time of the last exit based on the latest multiple first sample values from all the sampled values obtained during the previous wireless charging period. The maximum number of these multiple first sample values is the maximum sampling number. That is, if the total number of sampled values obtained during the previous wireless charging period is less than the maximum sampling number, all sampled values will be designated as first sample values. For example, the maximum sampling number can be 10.
[0320] In addition, when the phone enters wireless charging mode again, it can determine the change in the charging output current when it exited wireless charging mode by using the latest multiple first sample values from all the sample values obtained during the previous wireless charging process.
[0321] In one possible implementation, the mobile phone determines the change in the charging output current when it last exited the wireless charging state based on multiple first sampled values. This can specifically include the following logic:
[0322] If the number of multiple first sampled values is less than a first quantity, the change in charging output current when the phone last exited wireless charging mode is determined to be a current rise state. For example, if the maximum preset quantity is 10, the first preset quantity can be 4. When the number of first sampled values is less than the first quantity, it can be assumed that the phone stopped charging very soon after entering wireless charging mode, and the change in charging output current is highly likely to be a current rise state.
[0323] If, among multiple first sampled values, the most recently sampled second-number of first sampled values are all increasing values, then the change in charging output current when the wireless charging state was last exited is determined to be a current rise state. Specifically, if the difference between a certain first sampled value and the previous sampled value is greater than a change threshold, then that first sampled value is determined to be an increasing value. The second number is the first number minus 1. For example, when the maximum preset number is 10, the first preset number can be 4, and the second number can be 3.
[0324] If, among multiple first sampled values, the most recently sampled second number of first sampled values are all decreasing values, then the change state of the charging output current when the wireless charging state was last exited is determined to be a current decreasing state. Specifically, if the difference between the previous sampled value and the current first sampled value is greater than a change threshold, then the current first sampled value is determined to be a decreasing value.
[0325] If, among multiple first sampled values, the most recently sampled second number of first sampled values are all stationary values, then the change in the charging output current when the wireless charging state was last exited is determined to be a stationary current state. Specifically, if the difference between a certain first sampled value and the previous sampled value is less than or equal to a change threshold, then that first sampled value is determined to be a stationary value.
[0326] If, among multiple first sampled values, the number of increasing first sampled values is greater than the third number, and among the latest second-number of first sampled values, there are at least a fourth number of increasing values, then the change in charging output current when the wireless charging state was last exited is determined to be a current rise state. Specifically, if, among multiple first sampled values, the number of increasing first sampled values is greater than the third number, and among the latest second-number of first sampled values, there are at least a fourth number of increasing values, then it can be considered that most of the multiple first sampled values are increasing values, and therefore, the change in charging output current when the wireless charging state was last exited can be considered to be a current rise state.
[0327] In this system, the third quantity is greater than the first quantity, and the fourth quantity is less than the second quantity. The fourth quantity can be the second quantity, specifically the second quantity minus 1. In some embodiments, the third quantity can be greater than half of the maximum sampling quantity, and the first quantity can be less than half of the maximum sampling quantity. For example, taking a maximum sampling quantity of 10 as an example, the first quantity can be 4, the second quantity can be 3, the third quantity can be 6, and the fourth quantity can be 2.
[0328] If, among multiple first sampled values, the number of decreasing first sampled values is greater than the third number, and among the latest second number of sampled values, there are at least a fourth number of decreasing values, then the change in charging output current when the wireless charging state was last exited is determined to be a current decreasing state. Specifically, if, among multiple first sampled values, the number of decreasing first sampled values is greater than the third number, and among the latest second number of sampled first sampled values, there are at least a fourth number of decreasing values, then it can be considered that most of the multiple first sampled values are decreasing values, and therefore, the change in charging output current when the wireless charging state was last exited can be considered to be a current decreasing state.
[0329] Based on the above logic, since the latest first-number of sampled values collected by the phone during the previous wireless charging session best reflects the change in the charging output current before charging was discontinued, this logic can use the latest first-number of sampled values to determine the change state of the charging output current. For example, if all are increasing values, the charging output current is in a current-rising state; if all are decreasing values, the charging output current is in a current-falling state; and if all are stable values, the charging output current is in a stable state. Secondly, if the change state cannot be determined based on the first-number of sampled values, the change state of the charging output current can be determined by combining the number of increasing or decreasing values among all the first-number of sampled values. In this way, the phone can accurately determine the change state of the charging output current when it last exited wireless charging, providing strong data support for subsequently determining the type of charging discontinuation.
[0330] Of course, the above judgment logic can also be performed every time the phone enters the wireless charging state. This way, every time the phone stops charging (exits the wireless charging state) and then resumes charging (enters the wireless charging state again), the change in the charging output current at the time of the previous charging stop can be obtained smoothly, and the type of charging stop at the time of the previous charging stop can be determined smoothly.
[0331] Based on the above statements, referring to Figure 12 As shown, the specific process of obtaining multiple first sample values during the last wireless charging process and determining the change in charging output current when exiting the wireless charging state can include S1201-S1229:
[0332] S1201 The mobile phone uses a sliding window to periodically sample the charging output current.
[0333] The step size of the sliding sampling can be 1, meaning one sample value of the charging output current is acquired at a time. The size of the sliding window can be the maximum number of samples, meaning the sliding window can hold a maximum number of sample values. For example, the maximum number of samples can be 10, and the sampling period can be 100ms. During periodic sampling, each sample value is stored in the sliding window in a specific order.
[0334] S1202, The mobile phone determines whether the sliding window is filled with sampled values.
[0335] Specifically, this could involve determining whether the sliding window has already stored the maximum number of sampled charging output current values.
[0336] If the sliding window is full, the earliest sampled value in the sliding window can be discarded and the latest sampled value can be stored in the sliding window, i.e., S1204 is executed.
[0337] If it is determined that the sliding window is not full, the latest sampled values can be stored in the sliding window in a specific order, i.e., S1203 is executed.
[0338] S1203: The mobile phone stores the latest sampled values into a sliding window in a specific order.
[0339] S1204. The mobile phone discards the earliest sampled value in the sliding window and fills in the latest sampled value.
[0340] In order to promptly determine the changes in the charging output current, each time a new sampling value is added to the sliding window, it will be determined whether the wireless charging state has been exited. That is, S1205 is executed after S1203 and S1204.
[0341] S1205. The phone determines whether it has exited wireless charging mode.
[0342] In some embodiments, exiting wireless charging mode can be considered as disconnecting from charging.
[0343] If it is determined that the wireless charging state has been exited, the change state of the charging output current can be judged based on multiple first sample values in the sliding window, i.e., S1206-S1229 is executed.
[0344] If it is determined that the wireless charging state has not been exited, S1202 can be executed again.
[0345] S1206. The mobile phone determines whether the number of sampled values in the sliding window is less than the first number.
[0346] For example, the first quantity can be 4.
[0347] If the number of sampled values in the sliding window is less than the first number, it can be assumed that the phone stopped charging shortly after entering the wireless charging state. At this time, it is highly likely that the charging output current is in the current boost state, i.e., S1207 is executed.
[0348] If the number of sampled values in the sliding window is greater than or equal to the first number, the change state of the charging output current can be further judged, i.e., S1208-S1229 is executed.
[0349] S1207. When the mobile phone confirms that it is exiting the wireless charging state, the change state of the charging output current is the current rise state.
[0350] At this point, the phone will know that the change in charging output current when it exited wireless charging mode was a current rise state. When the phone recharges, it will then know that the change in charging output current when it exited wireless charging mode was a current rise state.
[0351] S1208. The mobile phone iterates through the sampled values in the sliding window in reverse chronological order, and determines whether the iteration is complete after iterating through each sampled value.
[0352] If it is determined that the traversal is not complete, the first sample value of the current traversal (i.e. the latest traversal) can be regarded as 0, and then it can be decided whether to continue the traversal, i.e., execute S1209.
[0353] Once the traversal is complete, the change in the charging output current can be determined based on all the first sampled values, i.e., S1210-S1213 are executed.
[0354] S1209. The mobile phone determines whether the first sample value of the current traversal is 0.
[0355] When the first sample value of the current traversal is determined to be 0, it can be considered that the first sample value may be erroneous. At this time, the traversal of the next first sample value can continue, that is, S1208 is executed.
[0356] When it is determined that the first sample value of the current traversal is not 0, the change state of the charging output current can be judged based on the situation of the first traversal of multiple first sample values, that is, S1214-1229 is executed.
[0357] S1210. The mobile phone determines whether the number of rising values among all first sampled values is greater than the third number, and whether the latest second number of first sampled values show an upward trend.
[0358] If the difference between a first sample value and the previous sample value is greater than a change threshold, then the first sample value is determined to be an increasing value. Furthermore, if at least a fourth number of the latest second-number of first sample values are increasing values, then the latest second-number of first sample values show an upward trend. Here, the second number is the first number minus 1, the fourth number is less than the second number, and the first number is less than the third number. For example, the first number could be 4, the second number could be 3, and the fourth number could be 2.
[0359] In this embodiment of the application, the trend of the latest second number of first sampled values can be determined from the technical solutions corresponding to S1214-S1224.
[0360] If it is determined that the number of rising values among all first sampled values is greater than the third number, and the latest second number of first sampled values are trending upwards, the mobile phone can assume that most of the first sampled values in the sliding window are rising values. Therefore, it can assume that the change in charging output current when it last exited the wireless charging state was a current rise state, i.e., execute S1211.
[0361] If the number of rising values among all first sampled values is less than or equal to the third number, or the latest second number of first sampled values do not show an upward trend, then it is possible to further determine whether the change state of the charging output current is a current decreasing state, i.e., execute S1212.
[0362] S1211. When the mobile phone confirms that it is exiting the wireless charging state, the change state of the charging output current is the current rise state.
[0363] At this point, the phone will know that the change in charging output current when it exited wireless charging mode was a current rise state. When the phone recharges, it will then know that the change in charging output current when it exited wireless charging mode was a current rise state.
[0364] S1212. The mobile phone determines whether the number of decreasing values among all first sampled values is less than the third number, and whether the latest second number of first sampled values show a decreasing trend.
[0365] If the number of decreasing values among all first sampled values is less than the third number, and the latest second number of first sampled values show a decreasing trend, the mobile phone can assume that most of the multiple first sampled values in the sliding window are decreasing values. Therefore, it can assume that the change in charging output current when it last exited the wireless charging state was a current decreasing state, i.e., execute S1213.
[0366] If the number of decreasing values among all the first sampled values is less than or equal to the third number, or if the latest second number of first sampled values do not show a decreasing trend, then it is determined that the change state of the charging output current cannot be determined at this time, and the entire judgment process ends.
[0367] S1213. When the mobile phone confirms that it is exiting the wireless charging state, the change state of the charging output current is the current decrease state.
[0368] At this point, the phone knows that the charging output current changed when it exited wireless charging mode and that the current was decreasing. When the phone recharges, it will then know that the charging output current changed when it exited wireless charging mode last time and that the current was decreasing.
[0369] S1214. The mobile phone determines whether the first sampled value that has been traversed has reached the first quantity.
[0370] If it is determined that the first sampled value that has been traversed has reached a first number, the change state of the charging output current can be further determined based on the specific situation of the first number of first sampled values, that is, S1215-S1224 is executed.
[0371] If it is determined that the first sampled value that has been traversed has not reached the first quantity, it is possible to determine whether the first sampled value that has been traversed is an increasing value, a decreasing value, or a stable value, that is, to execute S1225-S1229.
[0372] S1215. The mobile phone determines whether the number of rising values in the latest first number of first sampled values is the second number.
[0373] When executing S1215, the specific details of the second number of first sampled values (excluding the most recently traversed first sampled value) within the latest first number of first sampled values have been determined through the technical solutions corresponding to S1225-S1229. Specifically, it's determined whether these values are increasing, decreasing, or stable. In other words, the specific details of each first sampled value within the latest second number of first sampled values are now obtained.
[0374] Based on this, if the number of rising values in the latest first number of first sampled values is determined to be the second number, then the latest second number of first sampled values can be considered to be rising values. Therefore, the change state of the charging output current can be considered to be the current rise state, i.e., S1216 is executed.
[0375] If it is determined that the number of rising values in the latest first number of first sampled values is not the second number, the trend of the latest second number of first sampled values can be further determined, i.e., S1217 is executed.
[0376] S1216. When the mobile phone confirms that it is exiting the wireless charging state, the change state of the charging output current is the current rise state.
[0377] At this point, the phone will know that the change in charging output current when it exited wireless charging mode was a current rise state. When the phone recharges, it will then know that the change in charging output current when it exited wireless charging mode was a current rise state.
[0378] S1217. The mobile phone determines whether the number of rising values in the latest first number of first sampled values is greater than or equal to the fourth number.
[0379] If the number of increasing values in the first number of first sampled values is greater than or equal to the fourth number, it can be assumed that the majority of the latest second number of first sampled values are increasing values. Therefore, it can be assumed that the trend of the latest second number of first sampled values is an upward trend, i.e., execute S1220.
[0380] If the number of rising values in the first number of first sampled values is less than the fourth number, it can be assumed that there are more falling values and stable values in the latest second number of first sampled values. At this time, it can be further determined whether the change state of the charging output current is a current decreasing state based on the specific situation of the first number of first sampled values, that is, S1218 is executed.
[0381] S1218. The mobile phone determines whether the number of decreasing values in the latest first number of first sampled values is the second number.
[0382] When executing S1218, the specific details of the second number of first sampled values (excluding the most recently traversed first sampled value) within the latest first number of first sampled values have been determined through the technical solutions corresponding to S1225-S1229. Specifically, these details are determined to be either decreasing, increasing, or stable values. In other words, the specific details of each first sampled value within the latest second number of first sampled values are now obtained.
[0383] Based on this, if the number of decreasing values in the latest first number of first sampled values is determined to be the second number, then the latest second number of first sampled values can be considered to be decreasing values. Therefore, the change state of the charging output current can be considered to be the current decreasing state, i.e., S1219 is executed.
[0384] If it is determined that the number of decreasing values in the latest first number of first sampled values is not the second number, the trend of the latest second number of first sampled values can be further determined, i.e., S1221 is executed.
[0385] S1219. When the mobile phone confirms that it is exiting the wireless charging state, the change state of the charging output current is the current decrease state.
[0386] At this point, the phone knows that the charging output current changed when it exited wireless charging mode and that the current was decreasing. When the phone recharges, it will then know that the charging output current changed when it exited wireless charging mode last time and that the current was decreasing.
[0387] S1220, The mobile phone determines that the trend of the latest second number of first sampled values is an upward trend.
[0388] S1220 is followed by S1208.
[0389] S1221. The mobile phone determines whether the number of decreasing values in the latest first number of first sampled values is greater than or equal to the fourth number.
[0390] If the number of decreasing values in the first number of first sampled values is greater than or equal to the fourth number, it can be assumed that the majority of the latest second number of first sampled values are decreasing values. Therefore, it can be assumed that the trend of the latest second number of first sampled values is decreasing, i.e., execute S1224.
[0391] If the number of decreasing values in the first number of first sampled values is less than the fourth number, it can be assumed that there are more stable values in the latest second number of first sampled values. At this time, based on the specific situation of the first number of first sampled values, it can be further determined whether the change state of the charging output current is a current stable state, that is, S1222 is executed.
[0392] S1222. The mobile phone determines whether the number of stationary values in the latest first number of first sampled values is the second number.
[0393] When executing S1222, the specific details of the second number of first sampled values (excluding the most recently traversed first sampled value) within the latest first number of first sampled values have been determined through the technical solutions corresponding to S1225-S1229. Specifically, these details are determined to be either increasing, decreasing, or stable values. In other words, the specific details of each first sampled value within the latest second number of first sampled values are now obtained.
[0394] Based on this, if the number of stable values in the latest first number of first sampled values is determined to be the second number, then the latest second number of first sampled values can be considered to be stable values. Therefore, the change state of the charging output current can be considered to be a stable current state, i.e., S1223 is executed.
[0395] If it is determined that the number of stationary values in the latest first number of first sampled values is not the second number, it can be considered that the change state of the charging output current cannot be determined at this time, nor can the change trend of the latest second number of first sampled values be determined. Therefore, the traversal can continue, i.e., S1208 is executed.
[0396] S1223. When the mobile phone confirms that it has exited the wireless charging state, the change state of the charging output current is a stable current state.
[0397] At this point, the phone knows that the change in the charging output current when it exited the wireless charging state was a stable current state. When the phone recharges, it will then know that the change in the charging output current when it exited the wireless charging state was a stable current state.
[0398] S1224. The mobile phone determines that the trend of the latest second number of first sampled values is a downward trend.
[0399] S1224 is followed by S1208.
[0400] S1225. The mobile phone determines whether the difference between the first sample value currently traversed and the first sample value traversed in the previous traversal is greater than the change threshold.
[0401] If the difference between the first sample value traversed now and the first sample value traversed previously is greater than the change threshold, the first sample value traversed now can be considered to be an increasing value, and S1226 can be executed.
[0402] If the difference between the first sample value traversed at the current time and the first sample value traversed at the previous time is determined to be no greater than the change threshold, it can be further determined whether the first sample value traversed at the current time is a decreasing value or a stable value, that is, S1227 is executed.
[0403] S1226. The number of rising values among the multiple first sampled values in the mobile phone's sliding window is increased by one.
[0404] S1226 is followed by S1208.
[0405] S1227. The mobile phone determines whether the difference between the first sampled value traversed in the previous iteration and the first sampled value traversed in the current iteration is greater than the change threshold.
[0406] If the difference between the first sample value traversed in the previous iteration and the first sample value traversed in the current iteration is greater than the change threshold, the first sample value traversed in the current iteration can be considered to be a decreasing value, and S1228 can be executed.
[0407] If the difference between the first sample value obtained in the previous iteration and the first sample value obtained in the current iteration is not greater than the change threshold, the first sample value obtained in the current iteration can be considered as a stable value, and S1229 can be executed.
[0408] S1228. The number of decreasing values among the multiple first sampled values in the mobile phone's sliding window is increased by one.
[0409] S1228 is followed by S1208.
[0410] S1229. The number of stationary values among the multiple first sampled values in the mobile phone's sliding window is increased by one.
[0411] S1229 is followed by S1208.
[0412] Based on the technical solutions corresponding to S1201-S1229 above, the mobile phone can promptly determine the change in charging output current each time it exits the wireless charging state, providing data support for judging the charging interruption type when the mobile phone re-enters the wireless charging state.
[0413] In some embodiments, if the change in charging output current when the phone last exited the wireless charging state is determined only after the phone re-enters the wireless charging state, then the above-described S1206-S1229 can be executed before determining the charging interruption type each time the phone enters the wireless charging state.
[0414] In some embodiments, based on the reasons for the protective charging interruption of the wireless power supply device, a current smoothing strategy can be implemented each time the mobile phone enters the wireless charging state, when the output parameters reported by the wireless power supply device to the electronic device are close to the upper limit. This slows down the rate at which the mobile phone draws charging power, thereby preventing the output parameters of the wireless power supply device from reaching the upper limit as much as possible, and thus minimizing the occurrence of protective charging interruption of the wireless power supply device. Based on this, refer to Figure 13 As shown, in the wireless charging optimization method provided in this application, when the mobile phone enters the wireless charging state, the method includes S1301-S1304:
[0415] S1301, The mobile phone determines whether the first difference between the threshold current and the current charging output current is less than the first preset threshold.
[0416] Specifically, the first difference between the threshold current and the current charging output current can be the difference obtained by subtracting the current charging output current from the threshold current. For example, the first preset threshold can be 50mA or any other possible current value.
[0417] In this embodiment, the threshold current can be the maximum output power of the wireless power supply, negotiated between the mobile phone and the wireless power supply device, and the corresponding maximum charging output current after being received and converted by the mobile phone. Specifically, the transmission capability data characterizing the maximum output power of the wireless power supply device can be obtained during the ping communication between the mobile phone and the wireless power supply device (specifically, through the transmission of configuration packets). For example, if it is determined through the ping phase that the wireless power supply device supports EPP, then the maximum charging power corresponding to the maximum output power of the wireless power supply device after being received and converted by the mobile phone can be up to 15W, and the corresponding maximum charging output current can be up to 3A.
[0418] If the first difference between the threshold current and the current charging output current is less than the first preset threshold, it can be considered that the current charging output current is approaching the threshold current. At this point, the output parameters corresponding to the output power capacity of the wireless power supply device may be nearing their limit. To prevent the wireless device from disconnecting charging due to protection mechanisms, the rate of increase in the charging output current can be slowed down.
[0419] In one possible implementation, the magnitude of the charging output current and the charging output voltage are positively correlated. Therefore, the rate of increase in the charging output current can be slowed down by slowing down the rate of increase in the charging output voltage. In practice, during wireless charging, the mobile phone can increase the target voltage in steps, write the target voltage into the wireless charging chip, and then send the target parameter value, obtained from the target voltage and the charging input voltage, to the wireless power supply device in a CE packet. This can improve the output parameters (e.g., output power) of the wireless power supply device, thereby increasing both the charging output current and the charging output voltage.
[0420] Based on this, in order to slow down the rate at which the charging output voltage increases, the rate at which the target voltage increases can be reduced, i.e., S1303 and S1304 are executed.
[0421] If the first difference between the threshold current and the current charging output current is greater than the first preset threshold, it can be considered that the charging output current has not yet approached the threshold current. At this time, the output parameters corresponding to the output power output capability of the wireless power supply device have not yet reached the upper limit. At this time, the target voltage can be increased according to normal logic, that is, S1302 is executed.
[0422] It should be noted that the case where the first difference equals the first preset threshold can be classified as either the case where the first difference is greater than the first preset threshold, or the case where the first difference is less than the first preset threshold. Figure 13 The example shown is only an example of the case where the first difference is equal to the first preset threshold, and is not intended as a specific limitation on the implementation of the technical solution in practice.
[0423] Furthermore, the purpose of S1301 described above is to determine whether the output parameters corresponding to the output capacity of the wireless power supply device are about to reach their upper limit. Besides the implementation method corresponding to S1301, other methods can also be used in practice. For example, it can be determined whether the output parameters corresponding to the output capacity of the wireless power supply device are about to reach their upper limit by judging whether the current charging power (the product of the charging output voltage and the charging output current) and the maximum output power of the wireless power supply device are close (the difference is less than a specific threshold). If the current charging power and the maximum output power of the wireless power supply device are close, it is determined that the output parameters corresponding to the output capacity of the wireless power supply device are about to reach their upper limit; if the current charging power and the maximum output power of the wireless power supply device are not close, it is determined that the output parameters corresponding to the output capacity of the wireless power supply device are not about to reach their upper limit. This application does not impose specific limitations on this.
[0424] S1302, The mobile phone increases the target voltage by a preset voltage step.
[0425] For example, the preset voltage step can be 0.5V or any other possible voltage value.
[0426] S1303, The mobile phone increases the target voltage by a preset voltage step.
[0427] S1303 is followed by S1304.
[0428] S1304. The mobile phone updates the target voltage based on the target voltage and the current charging output voltage.
[0429] The target voltage that is not updated in S1304 is the target voltage obtained after S1303 is executed.
[0430] In one possible implementation, the updated target voltage can specifically be the average of a first preset percentage of the target voltage and a second preset percentage of the current charging output voltage. For example, with the first preset percentage at 70% and the second preset percentage at 30%, the updated target voltage = (target voltage * 70% + current charging output voltage * 30%) / 2. In this way, through the execution of S1303 and S1304, the increase in the target voltage is less than the preset voltage step size.
[0431] Based on the technical solutions corresponding to S1301-S1304 above, when the mobile phone enters wireless charging mode, it can determine whether the output parameters of the wireless power supply device are approaching their upper limit based on the power transmission capacity reported by the wireless power supply device and the current charging output current. If it is determined that the output parameters of the wireless power supply device are close to their upper limit, the rate of increase of the target value of the charging output voltage can be reduced, thereby slowing down the rate of increase of the charging output current and thus slowing down the rate of increase of the charging power. This allows the output parameters of the wireless power supply device to approach their upper limit more slowly, minimizing the occurrence of protection-type charging interruptions by the wireless power supply device. To a certain extent, this reduces the probability of repeated charging interruptions and recharging due to protection-type charging interruptions by the wireless power supply device, improving the user experience.
[0432] Furthermore, because this technical solution slows down the rate of increase in charging output current, the risk of a sudden and significant drop in the phone's charging input voltage (verct) is greatly reduced. This further lowers the probability of undervoltage protection causing charging interruption at the receiver, reducing the likelihood of repeated charging interruptions and recharging due to undervoltage protection, thus improving the user experience.
[0433] It is understood that, in order to achieve the aforementioned functions, the electronic device includes corresponding hardware structures and / or software modules for performing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, the embodiments of the present invention can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in a hardware-driven or software-driven manner 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 implementations should not be considered beyond the scope of the embodiments of this application.
[0434] This application embodiment can divide the above-described electronic device into functional modules based on the method example described above. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware or as software functional modules. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division; in actual implementation, there may be other division methods.
[0435] When dividing each function into modules according to its corresponding function, refer to Figure 14 As shown in the figure, this application embodiment also provides an electronic device with wireless charging functionality. The electronic device may include: a determining module 1401, an updating module 1402, and a processing module 1403.
[0436] The determining module 1401 is used to determine the type of disconnection that occurred when the electronic device enters the wireless charging state.
[0437] The update module 1402 is used to update the wireless charging parameters based on the optimization strategy corresponding to the charging interruption type determined by the determination module 1401; the charging interruption type includes wireless power supply device protection type charging interruption or receiver undervoltage protection charging interruption.
[0438] The processing module 1403 is used to continue wireless charging in the wireless charging state using the updated wireless charging parameters from the update module 1402.
[0439] Furthermore, the cooperation of the determining module 1401, the updating module 1402, and the processing module 1403 can implement any step of the wireless charging optimization method provided in the foregoing embodiments, which will not be repeated here. Regarding the electronic device in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments of the wireless charging optimization method in the foregoing embodiments, and will not be elaborated here. The related beneficial effects can also be referred to the related beneficial effects of the foregoing wireless charging optimization method, which will not be repeated here.
[0440] This application also provides an electronic device, which includes a memory and one or more processors; the memory is coupled to the processors; wherein the memory stores computer program code, which includes computer instructions, and when the computer instructions are executed by the processor, the electronic device performs the wireless charging optimization method provided in the foregoing embodiments. The specific structure of this electronic device can be referred to... Figure 4 The structure of the electronic device shown is illustrated.
[0441] This application also provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the wireless charging optimization method provided in the foregoing embodiments.
[0442] This application also provides a computer program product containing executable instructions that, when run on an electronic device, cause the electronic device to perform the wireless charging optimization method provided in the foregoing embodiments.
[0443] 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.
[0444] In the several embodiments provided in this application, it should be understood that the disclosed apparatus / device and method can be implemented in other ways. For example, the apparatus / device 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 device, 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 devices or units may be electrical, mechanical, or other forms.
[0445] 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.
[0446] 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.
[0447] 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 described in 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.
[0448] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A wireless charging optimization method, characterized in that, Applied to an electronic device placed on a charging area of a wireless power supply device, the method includes: When entering wireless charging mode, the electronic device determines the type of charging interruption that occurred during the last exit from wireless charging mode. The electronic device updates the wireless charging parameters based on the optimization strategy corresponding to the charging interruption type; the charging interruption type includes wireless power supply device protection-type charging interruption or receiver undervoltage protection-type charging interruption. The electronic device continues to wirelessly charge in the wireless charging state using the updated wireless charging parameters.
2. The method according to claim 1, characterized in that, The electronic device determines the type of charging interruption that occurred during the last exit from wireless charging, including: The electronic device acquires the charging interruption parameters from the last time it exited the wireless charging state; the charging interruption parameters include: whether a private charging protocol was used for wireless charging when it was in the wireless charging state last time, whether the first power mode was used for wireless charging when it was in the wireless charging state last time, the charging input voltage when it exited the wireless charging state last time, the change state of the charging output current when it exited the wireless charging state last time, and the target time difference between the time when it exited the wireless charging state last time and the time when it entered the wireless charging state now. Wherein, the charging input voltage refers to the voltage of the electrical energy converted by the wireless charging chip of the electronic device after receiving electrical energy from the wireless power supply device; the charging output current refers to the current output by the wireless charging chip of the electronic device to the battery after receiving electrical energy from the wireless power supply device; the changing state of the charging output current includes any of the following: current rising state, current falling state, and current stable state; the current rising state refers to the state in which the current value tends to increase, the current falling state refers to the state in which the current value tends to decrease, and the current stable state refers to the state in which the current value tends to remain unchanged; The electronic device determines the type of disconnection when it last exited the wireless charging state based on the disconnection parameters of the last time it exited the wireless charging state.
3. The method according to claim 2, characterized in that, The electronic device determines the type of charging interruption from the previous wireless charging exit based on the charging interruption parameters, including: If the electronic device was charging using a proprietary charging protocol when it was previously in wireless charging mode, the charging interruption type when it last exited wireless charging mode is determined based on the target proprietary protocol data packet; the target proprietary protocol data packet carries the reason for the charging interruption that caused the electronic device to previously exit wireless charging mode. If the electronic device uses the first power mode to wirelessly charge when the target time difference is less than a preset duration, and the charging input voltage is less than a preset threshold when it was last in wireless charging state, then the charging disconnection type when it last exited wireless charging state is determined to be receiver undervoltage protection disconnection. If the target time difference is less than a preset duration, and the electronic device used the second power mode for wireless charging when it was last in wireless charging state, and the charging output current was in a current boost state when it last exited wireless charging state, then the charging interruption type when it last exited wireless charging state is determined to be wireless power supply device protection type charging interruption; if the electronic device does not use the proprietary charging protocol for wireless charging and uses the first power mode for wireless charging, then the electronic device uses the second power mode for wireless charging.
4. The method according to claim 2, characterized in that, During the previous wireless charging process of the electronic device, the method further includes: The electronic device periodically samples the charging output current until it exits the wireless charging state. The electronic device acquires the latest plurality of first sample values from all the sampled values of the charging output current; the number of the latest plurality of first sample values is less than or equal to the maximum number of samples.
5. The method according to claim 4, characterized in that, In the case where the electronic device last exited the wireless charging state before entering the wireless charging state, or in the case of entering the wireless charging state, the method further includes: The electronic device determines the change in the charging output current when it last exited the wireless charging state based on the latest multiple first sample values.
6. The method according to claim 4, characterized in that, The electronic device determines the change state of the charging output current when it last exited the wireless charging state based on the latest plurality of first sampled values, including: If the number of the plurality of first sampled values is less than the first quantity, the electronic device determines that the change state of the charging output current when it last exited the wireless charging state was the current rise state. If, among the plurality of first sampled values, the latest second number of first sampled values are all increasing values, the electronic device determines that the change state of the charging output current when it last exited the wireless charging state was a current rise state; if the difference between the first sampled value and the previous sampled value is greater than the change threshold, the first sampled value is determined to be an increasing value; the second number is the first number minus 1. If, among the plurality of first sampled values, the latest second number of first sampled values are all decreasing values, the electronic device determines that the change state of the charging output current when it last exited the wireless charging state was a current rise state; if the difference between the sampled value obtained from the previous sampled value and the first sampled value is greater than the change threshold, the first sampled value is determined to be a decreasing value; If, among the plurality of first sampled values, the latest second number of first sampled values are all stable values, the electronic device determines that the change state of the charging output current when it last exited the wireless charging state was a stable current state; if the difference between the first sampled value and the previous sampled value is less than or equal to the change threshold, the first sampled value is determined to be a stable value. If, among the plurality of first sampled values, the number of first sampled values that are rising values is greater than the third number, and among the latest second number of first sampled values, there is at least a fourth number of rising values, then the electronic device determines that the change state of the charging output current when it last exited the wireless charging state was a current rise state; the third number is greater than the first number, and the fourth number is less than the second number; If, among the plurality of first sampled values, the number of first sampled values that are decreasing values is greater than the third number, and among the latest second number of sampled values, there are at least the fourth number of decreasing values, then the electronic device determines that the change state of the charging output current when it last exited the wireless charging state was a current decreasing state.
7. The method according to claim 4, characterized in that, When the charging interruption type is a protection-type charging interruption of the wireless power supply device, the electronic device updates the wireless charging parameters based on the optimization strategy corresponding to the charging interruption type, including: If the current charging coupling is less than the charging coupling when the device was in wireless charging state, and if the maximum supported power of the currently used second power mode is the first power, the electronic device will adjust the maximum supported power of the second power mode to the second power; the second power is less than the first power; at this time, the wireless charging parameters include the maximum supported power of the second power mode. If the current charging coupling is less than the charging coupling when the device was in wireless charging state, and if the maximum supported power of the currently used second power mode is the second power, the electronic device updates the upper limit of the charging output current based on the plurality of first sample values; at this time, the wireless charging parameters include the upper limit of the charging output current. If the current charging coupling level is lower than the charging coupling level during the previous wireless charging state, and if the current wireless charging is performed using the proprietary charging protocol, the wireless power supply device is of the target type, and the electronic device is charging in a first charging mode, then the electronic device will adjust the first charging mode to a second charging mode. The second charging mode is a charging mode in which the initial charging output voltage is lower than the first charging mode among the various charging modes supported by the wireless power supply device for the electronic device. In this case, the wireless charging parameters include the charging mode used by the electronic device. If the current charging coupling is less than the charging coupling when it was in the previous wireless charging state, and if the current wireless charging is performed using the private charging protocol, the wireless power supply device is of the target type, and the electronic device is not charging using the first charging mode, then the electronic device updates the upper limit of the charging output current based on the plurality of first sample values; at this time, the wireless charging parameters include the upper limit of the charging output current.
8. The method according to any one of claims 2-7, characterized in that, When the charging interruption type is due to undervoltage protection at the receiver, the electronic device updates the wireless charging parameters based on the optimization strategy corresponding to the charging interruption type, including: When the target parameter value is determined to be greater than a first preset value and the current charging input voltage is less than a preset voltage threshold, the electronic device sets the current charging output current as the upper limit of the charging output current; the target parameter value is used to characterize the difference between the target voltage and the charging input voltage, and the target voltage is the target value of the charging output voltage; If the target parameter value is determined to be less than a first preset value, or the current charging input voltage is greater than a preset voltage threshold, the electronic device adjusts the increment step of the charging output current from the first preset current value to the second preset current value; the second preset current value is less than the first preset current value.
9. The method according to any one of claims 2-8, characterized in that, When entering wireless charging mode, the method further includes: The electronic device updates the wireless charging parameters based on the optimization strategy corresponding to the undervoltage protection charging interruption at the receiver.
10. The method according to any one of claims 2-9, characterized in that, When entering wireless charging mode, the method further includes: The electronic device updates the wireless charging parameters based on the optimization strategy corresponding to the protection against charging interruption of the wireless power supply device.
11. An electronic device, characterized in that, include: The device includes a display, a memory, and one or more processors; the display and the memory are both coupled to the processors; wherein the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the electronic device to perform the wireless charging optimization method as described in any one of claims 1-10.
12. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the wireless charging optimization method as described in any one of claims 1-10.