Charging control method, charging control device, electronic device, and storage medium

By monitoring the Bluetooth communication status and adjusting the charging power, the problem of abnormal Bluetooth communication caused by voltage interference during charging was solved, thus achieving stable Bluetooth communication and normal playback of media files during charging.

CN115117946BActive Publication Date: 2026-03-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-19
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

During the charging process, excessively high voltage caused by high-voltage charging protocols can easily interfere with the internal circuitry of the terminal, leading to abnormal Bluetooth communication and affecting the user experience.

Method used

By monitoring the Bluetooth communication status and adjusting the charging power to reduce interference, multiple charging protocols and voltage levels are used to ensure normal Bluetooth communication.

Benefits of technology

It effectively reduces interference with Bluetooth communication during the charging process, ensuring normal playback of media files and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115117946B_ABST
    Figure CN115117946B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a charging control method, a charging control device, an electronic device and a storage medium. The charging control method is applied to a first terminal, and the charging control method comprises: monitoring a Bluetooth communication state between the first terminal and a second terminal during charging of the first terminal. If the Bluetooth communication state is monitored to be an abnormal state, the charging power of the first terminal is adjusted to be reduced based on a charging protocol supported by the first terminal. Through the charging control method, whether the Bluetooth communication between the first terminal and the second terminal is affected during the charging of the first terminal can be determined by monitoring the Bluetooth communication state between the first terminal and the second terminal, so that the charging power can be adjusted in time, the Bluetooth communication between the first terminal and the second terminal can be normally communicated, the charging power is prevented from being too large to affect the Bluetooth communication state, and the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of communication, and particularly relates to a charging control method, a charging control apparatus, an electronic device and a storage medium. BACKGROUND

[0002] In the related art, when a terminal is charging, the terminal charges based on a charging power defined in a charging protocol. The charging power included in the charging protocol belongs to a high-power high-voltage charging protocol, so as to ensure that the terminal can quickly complete charging. However, when the terminal is charging in a working state, the voltage required by the terminal during charging is too high, which easily causes the working state of other circuits in the terminal to be disturbed, and further causes state abnormalities or working interruptions, thereby affecting the user experience. SUMMARY

[0003] To overcome the problems in the related art, the present disclosure provides a charging control method, a charging control apparatus, an electronic device and a storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a charging control method is provided, applied to a first terminal, and the charging control method comprises: monitoring a Bluetooth communication state of the first terminal and a second terminal during charging of the first terminal. If it is monitored that the Bluetooth communication state is an abnormal state, adjusting a charging power of the first terminal based on a charging protocol supported by the first terminal.

[0005] In an embodiment, the adjusting the charging power of the first terminal based on the charging protocol supported by the first terminal comprises: determining whether a current charging protocol supports adjusting the charging power of the first terminal to a first charging power, the first charging power being less than a charging power threshold, the charging power threshold being a charging power corresponding to a normal state before the Bluetooth communication state of the first terminal and the second terminal changes from the normal state to the abnormal state. If the current charging protocol supports adjusting the charging power of the first terminal to the first charging power, adjusting the charging power of the first terminal to the first charging power based on the current charging protocol. If the current charging protocol does not support adjusting the charging power of the first terminal to the first charging power, determining a charging protocol supporting the first charging power based on a charging detection sequence corresponding to the charging protocol supported by the first terminal, and adjusting the charging power of the first terminal to the first charging power based on the charging protocol supporting the first charging power.

[0006] In another embodiment, adjusting the charging power of the first terminal to the first charging power includes: if the current charging protocol is a charging protocol that supports multiple voltage levels, and there is a voltage level among the multiple voltage levels that corresponds to the first charging power, then adjusting the voltage level to the voltage level corresponding to the first charging power.

[0007] In another embodiment, adjusting the charging power of the first terminal to the first charging power includes: if the current charging protocol is a programmable fast charging protocol, adjusting the charging voltage of the first terminal to a first charging voltage, and / or adjusting the charging current of the first terminal to a first charging current, so as to adjust the charging power of the first terminal to the first charging power. The first charging voltage is less than a charging voltage threshold, and the first charging current is less than a charging current threshold. The charging voltage threshold and the charging current threshold are respectively the charging voltage and charging current corresponding to the normal state before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

[0008] In another embodiment, the charging control method further includes: determining the current battery level of the first terminal. If the current battery level of the first terminal is greater than a first battery level threshold, then it is determined whether the current charging protocol supports adjusting the charging power of the first terminal to the first charging power. If the current battery level of the first terminal is less than a second battery level threshold, then based on a retry mechanism, the communication interface circuit of the first terminal based on Bluetooth communication is initialized, wherein the first battery level threshold is greater than the second battery level threshold.

[0009] In another embodiment, the charging control method further includes: setting the voltage supported by the audio bus interface of the first terminal based on Bluetooth communication as a first voltage, wherein the audio bus interface supports multiple voltages, the first voltage is a voltage higher than the transmission voltage among the multiple voltages, and the transmission voltage is the voltage before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

[0010] In another embodiment, the charging control method further includes: setting the communication rate supported by the audio bus interface of the first terminal based on Bluetooth communication as a first communication rate, wherein the audio bus interface supports multiple communication rates, the first communication rate is a communication rate lower than the transmission communication rate among the multiple communication rates supported by the audio bus interface, and the transmission communication rate is the communication rate before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

[0011] In another embodiment, the detection of an abnormal Bluetooth communication state includes: if an audio bus interface decoding failure is detected, then it is determined that the Bluetooth communication state is abnormal.

[0012] According to a second aspect of the present disclosure, a charging control device is provided, applied to a first terminal. The charging control device includes: a monitoring module, configured to monitor the Bluetooth communication status between the first terminal and a second terminal during the charging process of the first terminal; and an adjustment module, configured to adjust the charging power of the first terminal based on a charging protocol supported by the first terminal if an abnormal Bluetooth communication status is detected.

[0013] In one embodiment, the adjustment module adjusts the charging power of the first terminal based on the charging protocol supported by the first terminal in the following manner: It determines whether the current charging protocol supports adjusting the charging power of the first terminal to a first charging power, where the first charging power is less than a charging power threshold. The charging power threshold is the charging power corresponding to the normal state before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state. If the current charging protocol supports adjusting the charging power of the first terminal to the first charging power, then the charging power of the first terminal is adjusted to the first charging power based on the current charging protocol. If the current charging protocol does not support adjusting the charging power of the first terminal to the first charging power, then a charging protocol supporting the first charging power is determined based on the charging detection sequence corresponding to the charging protocols supported by the first terminal, and the charging power of the first terminal is adjusted to the first charging power based on the charging protocol supporting the first charging power.

[0014] In another embodiment, the adjustment module adjusts the charging power of the first terminal to the first charging power in the following manner: if the current charging protocol is a charging protocol that supports multiple voltage levels, and there is a voltage level among the multiple voltage levels that corresponds to the first charging power, then the voltage level is fixed to the voltage level corresponding to the first charging power.

[0015] In another embodiment, the adjustment module adjusts the charging power of the first terminal to the first charging power in the following manner: if the current charging protocol is a programmable fast charging protocol, the charging voltage for the first terminal is adjusted to a first charging voltage, and / or the charging current for the first terminal is adjusted to a first charging current, so as to adjust the charging power of the first terminal to the first charging power. The first charging voltage is less than a charging voltage threshold, and the first charging current is less than a charging current threshold. The charging voltage threshold and the charging current threshold are respectively the charging voltage and charging current corresponding to the normal state before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

[0016] In another embodiment, the charging control device further includes: a determining module, configured to determine the current battery level of the first terminal. The adjusting module is further configured to, if the current battery level of the first terminal is greater than a first battery level threshold, determine whether the current charging protocol supports adjusting the charging power of the first terminal to a first charging power. An initialization module is configured to, if the current battery level of the first terminal is less than a second battery level threshold, initialize the Bluetooth-based communication interface circuit of the first terminal based on a retry mechanism. The first battery level threshold is greater than the second battery level threshold.

[0017] In another embodiment, the charging control device further includes: a first setting module, configured to set the voltage supported by the audio bus interface of the first terminal based on Bluetooth communication to a first voltage, wherein the audio bus interface supports multiple voltages, the first voltage is a voltage higher than the transmission voltage among the multiple voltages, and the transmission voltage is the voltage before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

[0018] In another embodiment, the charging control device further includes: a second setting module, configured to set the communication rate supported by the audio bus interface of the first terminal based on Bluetooth communication to a first communication rate, wherein the audio bus interface supports multiple communication rates, the first communication rate is a communication rate lower than the transmission communication rate among the multiple communication rates supported by the audio bus interface, and the transmission communication rate is the communication rate before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

[0019] In another embodiment, the monitoring module detects an abnormal Bluetooth communication state by detecting an audio bus interface decoding failure.

[0020] According to a third aspect of the present disclosure, a charging control device is provided, comprising: a memory for storing instructions; and a processor for calling the instructions stored in the memory to execute any of the above-described charging control methods.

[0021] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, which stores computer-executable instructions that, when executed by a processor, perform any of the above-described charging control methods.

[0022] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: The charging control method provided by this disclosure can determine whether the Bluetooth communication between the first terminal and the second terminal is affected during the charging process of the first terminal by monitoring the playback status of the media file. When an abnormal playback status of the media file is detected, the charging power is reduced in a timely manner to ensure normal Bluetooth communication between the first terminal and the second terminal, thereby reducing the interference of charging power on Bluetooth communication, enabling the media file to play normally, and thus improving the user experience.

[0023] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

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

[0025] Figure 1 This is a schematic diagram of a charging interference audio path according to an exemplary embodiment.

[0026] Figure 2 This is a schematic diagram of a terminal audio path circuit architecture according to an exemplary embodiment.

[0027] Figure 3 This is a flowchart illustrating a charging control method according to an exemplary embodiment.

[0028] Figure 4 This is a flowchart illustrating another charging control method according to an exemplary embodiment.

[0029] Figure 5 This is a flowchart illustrating yet another charging control method according to an exemplary embodiment.

[0030] Figure 6 This is a flowchart illustrating yet another charging control method according to an exemplary embodiment.

[0031] Figure 7This is a block diagram illustrating a charging control device according to an exemplary embodiment.

[0032] Figure 8 This is a block diagram of an electronic device according to an exemplary embodiment.

[0033] Figure 9 This is a block diagram of another charging control device according to an exemplary embodiment. Detailed Implementation

[0034] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0035] The charging control method provided in this disclosure can be applied to scenarios where the first terminal needs to communicate with the second terminal via Bluetooth while the first terminal is charging. The first terminal can play audio files and make voice calls based on the Bluetooth communication with the second terminal. This disclosure mainly uses the scenario of the first terminal and the second terminal playing media files through Bluetooth communication as an example for introduction.

[0036] For example: Figure 1The diagram illustrates the audio path causing charging interference. During charging of the first terminal via the charging adapter, the high voltage is stored in the first terminal's battery through the charging integrated circuit chip (Charge IC) interface. When the first and second terminals play media files via Bluetooth, the Wireless Access Point (AP) connects to the Bluetooth communication interface through the Serial Low-power Inter-chip Media Bus (SlimBus) interface, establishing Bluetooth communication with the second terminal based on Wi-Fi. The SlimBus interface in the first terminal, based on the Mobile Industry Processor Interface (MIPI) protocol, transmits media files from the first terminal to the second terminal for playback, thus enabling media file playback on the second terminal. The SlimBus interface can also be called a low-power chip serial media interface. The MIPI protocol is an open standard and specification for mobile application processors initiated by the MIPI Alliance. During transmission, the communication voltage of the SlimBus interface is relatively low.

[0037] However, based on the internal circuit layout of the terminal and the positional relationship between the output path of the charging chip and the Bluetooth communication interface, during the charging of the first terminal and the playback of media files via Bluetooth communication with the second terminal, the signal generated by the high voltage through the output path of the charging chip and the signal flowing through the Bluetooth communication interface are in an overlapping state. The high voltage fluctuations generated during charging, due to the electric field force attracting electrons from the overlapping signals, interfere with the voltage between the AP and the Bluetooth communication interface, i.e., interference coupling occurs. This leads to an increase in the communication voltage in the SlimBus interface, affecting Bluetooth communication between the first and second terminals, thus affecting the playback of media files and impacting the user experience.

[0038] Therefore, this disclosure provides a charging control method that, during the charging process of a first terminal, can determine the Bluetooth communication status between the first and second terminals by real-time monitoring. When an abnormality occurs in the communication status, the charging power of the first terminal is adjusted promptly to ensure normal Bluetooth communication between the first and second terminals during the charging process. In one example, the type of the first or second terminal may include a mobile terminal, such as a mobile phone, tablet, or laptop. In another example, the structure of the first or second terminal may include a dual-screen terminal, a foldable screen terminal, or a full-screen terminal. In yet another example, the type of the second terminal may also include a Bluetooth headset, a media player, or other terminal capable of playing media files.

[0039] In one implementation scenario, while the first terminal is charging and media files are being played via Bluetooth with the second terminal, the Bluetooth communication status between the first and second terminals is monitored in real time to determine the playback status of the media files. If an abnormal Bluetooth communication status is detected, the charging power of the first terminal can be adjusted promptly to ensure normal Bluetooth communication between the first and second terminals during charging, allowing the media files to play correctly.

[0040] In another implementation scenario, the audio path circuit inside the first terminal can be as follows: Figure 2 As shown. Figure 2This is a schematic diagram of a terminal audio path circuit architecture according to an exemplary embodiment. The terminal audio path circuit includes at least the following hardware components: a Wireless Access Point (AP), a Modem, a Wi-Fi module, a Digital-to-Analog Converter (DAC), a Codec, and a Smart Power Amplifier (PA). The Modem translates the computer's digital signals into pulse signals that can be transmitted over ordinary telephone lines. These pulse signals can then be received by another modem at the other end of the line and translated into a language the computer can understand. The DAC, also known as a D / A converter, is a device that converts digital quantities into analog signals. The Codec is a device with encoding and decoding functions in digital communication. The Smart PA is an amplifier. Pulse Code Modulation (PCM) is used for data exchange among these hardware components. PCM is a modulation method that can sample, quantize, and encode continuously changing analog signals. The AP establishes a Bluetooth communication connection with a second terminal via a Bluetooth communication interface based on the Wi-Fi module, and then transmits audio to the second terminal for playback. The codec can connect to a microphone (MIC) interface, which includes a main interface and a subwoofer output interface for outputting the main channel and subwoofer in the audio. The smart PA can connect to a speaker (SPK). It should be noted that the above circuitry is for reference only and this disclosure does not specifically limit the internal circuit layout of the terminal. In one example, the modem can be located within the Wi-Fi module. In another example, the DAC can be located within the codec.

[0041] Figure 3 This is a flowchart illustrating a charging control method according to an exemplary embodiment. Figure 3 As shown, the charging control method is applied to the first terminal and includes the following steps.

[0042] In step S101, during the charging process of the first terminal, the Bluetooth communication status between the first terminal and the second terminal is monitored.

[0043] In this embodiment, the first terminal and the second terminal can establish a communication connection. Therefore, when playing media files, the first terminal can play the media files through the second terminal based on the communication connection. The media files may include audio files such as music and recordings, and are not limited thereto in this disclosure.

[0044] As mentioned above, during the charging process of the first terminal, media files are played via Bluetooth communication between the first and second terminals. Playback through the second terminal can easily interfere with this Bluetooth communication, preventing normal communication and affecting media playback, leading to abnormal playback conditions. For example, playback may become discontinuous, produce static, or be interrupted. To ensure normal playback on the second terminal while the first terminal is charging, the first terminal responds to media file playback via Bluetooth communication with the second terminal, monitoring the playback status in real time to promptly detect playback abnormalities and adjust the charging process accordingly.

[0045] In step S102, if an abnormal Bluetooth communication state is detected, the charging power of the first terminal is adjusted based on the charging protocol supported by the first terminal.

[0046] In this embodiment, when an abnormal Bluetooth communication state between the first terminal and the second terminal is detected, it indicates that coupling interference between the output path of the Charge IC interface and the SlimBus interface is likely to affect normal Bluetooth communication between the first terminal and the second terminal. Therefore, when an abnormal Bluetooth communication state is detected between the first terminal and the second terminal, the charging power of the first terminal is adjusted based on the charging protocol supported by the first terminal to reduce the impact of coupling interference between the output path of the Charge IC interface and the SlimBus interface, ensuring normal Bluetooth communication between the first terminal and the second terminal, improving the stability of media file transmission, and thus improving the user experience. For example, the charging power of the first terminal can be adjusted by reducing its charging power.

[0047] In one example, based on the monitoring of the first terminal, if the Bluetooth communication status is detected as normal, it indicates that the coupling interference between the output path of the current Charge IC interface and the SlimBus interface is insufficient to affect the normal Bluetooth communication between the first terminal and the second terminal. Therefore, if the Bluetooth communication status is detected as normal, there is no need to adjust the charging power of the first terminal.

[0048] Through the above embodiments, during the charging process of the first terminal, the first terminal can determine the Bluetooth communication status between the first terminal and the second terminal by monitoring the playback status of the media file. When an abnormal Bluetooth communication status is detected between the first terminal and the second terminal, the charging power can be reduced in a timely manner based on the charging protocol supported by the first terminal to ensure that the Bluetooth communication status between the first terminal and the second terminal is normal. This reduces the interference of charging power on Bluetooth communication, allowing the media file to play normally, thereby improving the user experience.

[0049] In one embodiment, the charging power threshold is the charging power corresponding to the normal state before the Bluetooth communication state between the first terminal and the second terminal changes from a normal state to an abnormal state. The AP includes an AP detection protocol, which can determine the current charging protocol used by the first terminal when it is charging and determine one or more charging powers included in the current charging protocol. This allows the AP to determine whether the current charging protocol supports adjusting the charging power of the first terminal to a first charging power. When adjusting the charging power of the first terminal, based on the charging protocols supported by the first terminal, the AP determines the charging protocol that supports the first charging power. Therefore, during adjustment, the charging power of the first terminal is adjusted to a first charging power lower than the charging power threshold, and the charging protocol corresponding to the first charging power is used for charging, thereby avoiding or reducing interference of the charging power on Bluetooth communication during charging. The charging protocol may include a charging protocol that supports multiple voltage levels or a programmable fast charging protocol.

[0050] The charging protocol is implemented by the changing voltage levels between D+ and D-, and the charging power is supplied to the Charge IC via VBUS. The VBUS line is the power line from the host / hub to the USB device. The access point (AP) detects the charging protocol and controls the charging IC to regulate the charging power through the USB interface in the terminal.

[0051] In one example, charging protocols supporting multiple voltage levels could include Quick Charge 2.0 (QC2.0) or QC 3.0. In another example, protocols supporting programmable fast charging could include PowerDelivery (PD). The PD protocol can increase the default maximum power of a Type-C interface from 5V / 2A to 100W.

[0052] The QC 2.0 protocol supports high-voltage or high-current charging, with voltage levels including Class A (5V, 9V, 12V) and Class B (5V, 9V, 12V, 20V). By utilizing the level signal changes between D+ and D-, the output voltage of the charge adapter is controlled, allowing the charging current to increase from 500mA to 3A, with a maximum charging power of 60 watts (W) (20V / 3A). The relationship between D+, D-, and the output voltage of the charge adapter is shown in Table 1. Table 1 is a voltage comparison table illustrating an exemplary embodiment. The QC 3.0 protocol includes built-in temperature control modules and is backward compatible with QC 2.0 and BC1.2 protocols. The QC 3.0 protocol employs Intelligent Negotiation for Optimum Voltage (INOV) technology, adjusting the charging voltage in 200 mV / step increments to effectively reduce heat loss. The BC1.2 protocol includes several charging modes: SDP, DCP, and CDP. SDP mode indicates that when using a non-standard charger, it supports a 5V charging voltage and a maximum charging current of 500mA, and can communicate via USB 2.0. DCP mode indicates that when using a dedicated charging port, it supports a 5V charging voltage and a 1.5A charging current, but cannot communicate via USB 2.0. CDP mode indicates that when using a high-current charging port, it supports a 5V charging voltage and a 1.5A charging current, and can also communicate via USB 2.0.

[0053] D+ level signal D- level signal Output voltage 0.6v 0v 5v 3.0v (and above) 0.6v 9v 0.6v 0.6v 12v 0.6v 3.0v (and above) 20v

[0054] Table 1

[0055] In one implementation scenario, the priority order of the AP's charging detection sequence for charging protocols can be: PD protocol > USB Type-C, 3A protocol > USB Type-C, 1.5A protocol > BC1.2 protocol > USB 3.1 protocol > USB 2.0 protocol. Here, USB Type-C, 3A protocol refers to a charging protocol with a charging voltage of 5V and a charging current of 3.0A. USB Type-C, 1.5A protocol refers to a charging protocol with a charging voltage of 5V and a charging current of 1.5A. USB 3.1 protocol refers to a charging protocol with a charging voltage of 5V and a charging current of 900mA. USB 2.0 protocol refers to a charging protocol with a charging voltage of 5V and a charging current of 500mA. When the first terminal is charging through the charger, the first terminal and the charger scan each other for the charging protocols they support, and then charge based on the charging protocols supported by both. Before the charger charges the first terminal, it iterates through the commonly supported charging protocols from low to high according to the charging detection sequence described above, and then selects the charging protocol with the highest charging power or the highest charging voltage to charge the first terminal. For example, the commonly supported charging protocols include: PD protocol, USB Type-C, 3A protocol, USB Type-C, 1.5A protocol, and USB 2.0 protocol. Before the charger charges the first terminal, based on the charging detection sequence described above, it starts with the USB 2.0 protocol and proceeds sequentially through the USB Type-C, 1.5A protocol, USB Type-C, 3A protocol, and so on until the PD protocol. If the charging power corresponding to the PD protocol is the highest or tied for the highest among the four charging protocols, then the first terminal is charged based on the charging power corresponding to the PD protocol. If the charging power corresponding to the PD protocol is lower than the charging power corresponding to the USB Type-C, 3A protocol, then the first terminal is charged based on the charging power corresponding to the USB Type-C, 3A protocol.

[0056] In one example, if the current charging protocol supports adjusting the charging power of the first terminal to the first charging power, there is no need to switch the current charging protocol. The charging power of the first terminal can be adjusted to the first charging power based on the current charging protocol, thereby avoiding or reducing the interference of charging power on Bluetooth communication during the charging process.

[0057] In another example, if the current charging protocol does not support adjusting the charging power of the first terminal to the first charging power, then based on the charging detection sequence corresponding to the charging protocols supported by the first terminal, a charging protocol that can support the first charging power is determined. The current charging protocol is switched to the charging protocol that can support the first charging power, and then based on the charging protocol that supports the first charging power, the charging power of the first terminal is adjusted to the first charging power, thereby avoiding or reducing the interference of charging power on Bluetooth communication during the charging process.

[0058] In one example, when the charging power corresponding to the charging protocol used to charge the terminal is high, the current charging protocol used by the first terminal can be adjusted by reducing the charging switching rate and adjusting the rising edge of the level signal between D+ and D-, thereby adjusting the charging power of the first terminal to the first charging power and avoiding or reducing the interference of high-order harmonics generated during the charging process on Bluetooth communication.

[0059] In one embodiment, if the charging protocol supports multiple voltage levels, and this protocol includes a first charging power, then the voltage level can be fixed to the voltage level corresponding to the first charging power to charge the first terminal. When the AP determines that the current charging protocol supports multiple voltage levels, it can determine whether the voltage level corresponding to the first charging power is included based on the charging power of each voltage level in the protocol. If the first charging power is included, the voltage level in the charging protocol can be adjusted to the voltage level corresponding to the first charging power, and the first terminal can be charged using the voltage level of the first charging power. This achieves the goal of reducing the charging power without affecting the charging rate of the first terminal.

[0060] In another embodiment, if the charging protocol supports a programmable fast charging protocol, the charging voltage and current used to charge the first terminal can be reduced to a first charging voltage and a first charging current, or the charging voltage and current used to charge the first terminal can be reduced to a first charging voltage and a first charging current, respectively, to adjust the charging power of the first terminal to a first charging power. When the AP determines that the charging protocol used by the first terminal supports a programmable fast charging protocol, it indicates that the charging voltage or current used to charge the first terminal can be adjusted under this charging protocol. To avoid interfering with normal Bluetooth communication between the first terminal and the second terminal during charging, the charging voltage, charging current, or both can be reduced to lower the charging power, thereby ensuring Bluetooth communication between the first and second terminals and enabling media files to be successfully transmitted to the second terminal for playback.

[0061] In one example, if the charging voltage is adjusted to be lower, it can be reduced to a first charging voltage, which is less than a charging voltage threshold. The charging voltage threshold is the charging voltage corresponding to the normal state before the Bluetooth communication state between the first and second terminals transitions from a normal state to an abnormal state. This can be understood as the maximum charging voltage threshold that does not affect the operation of the first terminal or the Bluetooth communication between the first and second terminals.

[0062] In another example, if the charging current is adjusted to be lower, it can be reduced to a first charging current, which is less than a charging current threshold. The charging current threshold is the charging current corresponding to the normal state before the Bluetooth communication state between the first and second terminals transitions from a normal state to an abnormal state. This can be understood as the maximum charging current threshold that does not affect the operation of the first terminal, nor does it affect Bluetooth communication between the first and second terminals.

[0063] In another example, the charging voltage and charging current of the first terminal can be adjusted to be reduced simultaneously, so that the adjusted charging power is less than the charging power threshold. The charging power threshold can be understood as the maximum charging power threshold that does not affect the operation of the first terminal, nor does it affect Bluetooth communication between the first and second terminals.

[0064] In yet another embodiment, such as Figure 4 As shown, whether the charging power of the first terminal needs to be adjusted also depends on the current battery level of the first terminal. Figure 4 This is a flowchart illustrating another charging control method according to an exemplary embodiment.

[0065] In step S201, during the charging process of the first terminal, the Bluetooth communication status between the first terminal and the second terminal is monitored.

[0066] In step S202, the current battery level of the first terminal is determined.

[0067] In step S2031, if the current battery level of the first terminal is greater than the first battery threshold and the Bluetooth communication status is detected to be abnormal, it is determined whether the current charging protocol supports adjusting the charging power of the first terminal to the first charging power.

[0068] In this embodiment, a first battery level threshold is used to determine whether the current battery level of the first terminal is at a high level. If the current battery level is greater than the first battery level threshold, it indicates that the first terminal is about to be fully charged or is already fully charged. For example, the first battery level threshold can be set to 80% of the total battery capacity. If the current battery level of the first terminal is greater than the first battery level threshold, it indicates that the current battery level of the first terminal is relatively high. Reducing the charging power will not affect the normal operation of the screen, system, system circuits, and other modules of the first terminal. Therefore, when it is determined that the current battery level of the first terminal is greater than the first battery level threshold and an abnormal Bluetooth communication state is detected, it is determined whether the current charging protocol supports adjusting the charging power of the first terminal to the first charging power. This allows for timely adjustment of the charging power of the first terminal, ensuring normal charging while avoiding or reducing interference of the charging power on Bluetooth communication during the charging process.

[0069] In step S2032, if the current battery level of the first terminal is less than the second battery threshold and the Bluetooth communication status is detected as abnormal, the communication interface circuit of the first terminal based on Bluetooth communication is initialized based on the retry mechanism.

[0070] In this embodiment, the retry mechanism is a mechanism that can upload data to a remote storage service and perform other operations upon successful processing. To prevent abnormalities in the Bluetooth communication between the first and second terminals, or to prevent incorrect adjustments to the charging protocol from affecting the charging power, the SlimBus bus interface can be initialized using the retry mechanism to clarify the cause of the Bluetooth communication abnormality between the first and second terminals.

[0071] In this embodiment, the second power threshold is used to determine whether the current power level of the first terminal is relatively low. During the charging process of the first terminal, if the current power level of the first terminal is less than the second power threshold, it indicates that the current charging power of the first terminal is low, requiring a high-power charging process to ensure the normal operation of the first terminal's screen, system, and system circuit modules. Reducing the charging power of the first terminal at this time can easily lead to ineffective charging, preventing the charging power from increasing and affecting the user experience. To avoid ineffective charging of the first terminal and to prevent excessive charging power from affecting Bluetooth communication between the first and second terminals, a retry mechanism can be used to initialize the SlimBus bus interface of the first terminal based on Bluetooth communication, so that the Bluetooth communication interface circuit can return to normal operation. In one example, the communication interface circuit can also be initialized during the restoration process. In another example, the SlimBus bus interface can be initialized using software, hardware, or a combination of both. It should be noted that the first power threshold is greater than the second power threshold. For example, the selectable range of the first power threshold is 80% to 95%, and the second power threshold is 10% to 20%.

[0072] In step S204, if the current charging protocol supports adjusting the charging power of the first terminal to the first charging power, then the charging power of the first terminal is adjusted to the first charging power based on the current charging protocol.

[0073] In step S205, if the current charging protocol does not support adjusting the charging power of the first terminal to the first charging power, then based on the charging detection sequence corresponding to the charging protocol supported by the first terminal, the charging protocol that supports the first charging power is determined, and based on the charging protocol that supports the first charging power, the charging power of the first terminal is adjusted to the first charging power.

[0074] Through the above embodiments, adjusting the charging power of the first terminal based on its current battery level helps to meet the charging needs of the first terminal while avoiding or reducing interference of the charging power on Bluetooth communication during the charging process.

[0075] Based on the same concept, this disclosure also provides another charging control method.

[0076] Figure 5 This is a flowchart illustrating yet another charging control method according to an exemplary embodiment. For example... Figure 5 As shown, the charging control method is applied to the first terminal and includes the following steps.

[0077] In this embodiment, the implementation of steps S301 and S302 is the same as that of steps S101 and S102 described above, and will not be repeated here.

[0078] In step S301, during the charging process of the first terminal, the Bluetooth communication status between the first terminal and the second terminal is monitored.

[0079] In step S302, if an abnormal Bluetooth communication state is detected, the charging power of the first terminal is adjusted based on the charging protocol supported by the first terminal.

[0080] In step S303, the voltage supported by the audio bus interface of the first terminal based on Bluetooth communication is set to the first voltage.

[0081] In this embodiment, the audio bus interface can support multiple voltage settings, such as 1.2V or 1.8V. The first voltage is the voltage among these voltages that is higher than the transmission voltage, which is the voltage at which the Bluetooth communication state between the first terminal and the second terminal transitions from a normal state to an abnormal state. When setting the supported voltage of the audio bus interface for Bluetooth communication of the first terminal, the supported voltage can be set to the highest voltage among multiple voltages. This enhances the anti-interference capability of the audio bus interface, expands its fault tolerance range, and reduces the bit error rate of SlimBus sampling during the charging process of the first terminal, preventing parsing errors by the second terminal and thus preventing Bluetooth communication failures.

[0082] In one implementation scenario, when the audio bus interface supports a voltage of 1.2V, the corresponding fault tolerance range is 1.2*(0.9~1.1). When the audio bus interface supports a voltage of 1.8V, the corresponding fault tolerance range is 1.8*(0.9~1.1). To enhance the anti-interference capability of the audio bus interface, the voltage supported by the audio bus interface can be set to 1.8V.

[0083] Based on the same concept, this disclosure also provides another charging control method.

[0084] Figure 6 This is a flowchart illustrating yet another charging control method according to an exemplary embodiment. For example... Figure 6 As shown, the charging control method is applied to the first terminal and includes the following steps.

[0085] In this embodiment, the implementation of steps S401 and S402 is the same as that of steps S101 and S102 described above, and will not be repeated here.

[0086] In step S401, during the charging process of the first terminal, the Bluetooth communication status between the first terminal and the second terminal is monitored.

[0087] In step S402, if an abnormal Bluetooth communication state is detected, the charging power of the first terminal is adjusted based on the charging protocol supported by the first terminal.

[0088] In step S403, the communication rate supported by the audio bus interface of the first terminal based on Bluetooth communication is set to the first communication rate.

[0089] In this embodiment, the communication rate supported by the Bluetooth-based audio bus interface of the first terminal may include multiple communication rates. A higher communication rate indicates a greater susceptibility to errors during communication transmission. The first communication rate is the lowest communication rate among the multiple supported communication rates of the audio bus interface, which is the transmission communication rate before the Bluetooth communication state between the first terminal and the second terminal transitions from a normal state to an abnormal state. To improve the fault tolerance of the audio bus interface during communication transmission, the lowest communication rate among the multiple supported communication rates can be selected as the supported communication rate of the audio bus interface when setting the supported communication rate.

[0090] By reducing the communication rate supported by the audio bus interface, the sampling bit error rate of SlimBus can be reduced, preventing errors from occurring in the second terminal during the parsing of the received media file, which could lead to communication failure.

[0091] In one example, the lowest communication rate can be the communication rate with the smallest sampling period among the communication rates supported by the audio bus interface. For example, at a communication rate of 1 MHz, with one cycle consisting of 1 bit of code, the sampling period is 1 µs. At a communication rate of 500 kHz, with one cycle consisting of 1 bit of code, the sampling period is 2 µs. Relative to the phase of the communication rate, the phase of a communication rate with a sampling period of 2 µs has stronger error tolerance than the phase of a communication rate with a sampling period of 1 µs.

[0092] In one embodiment, when monitoring the Bluetooth communication status, if an audio bus interface decoding failure is detected, the Bluetooth communication status is determined to be abnormal. Decoding failure may include packet loss or data encoding errors occurring during the transmission of media file data via the SlimBus bus interface.

[0093] In an implementation scenario, such as Figure 1As shown, the output path of the charging chip and the lines containing the Bluetooth communication interface and the SlimBus bus interface within the first terminal may be vertically or horizontally adjacent, and their relative positions are relatively close. This can easily affect the transmission capability of the SlimBus bus interface, leading to SlimBus bus interface decoding failure. Consequently, the second terminal cannot receive the media files transmitted by the first terminal, making the media files unable to play normally. For QC2.0, QC3.0, and PD protocols, each charging protocol includes high voltage and high current levels. Based on electric field force, Ampere's loop, and Faraday's law of electromagnetic induction, the presence of interference forces on the lines containing the Charge IC output path, Bluetooth communication interface, and SlimBus bus interface will couple interference signals onto these lines. During the monitoring of media file playback status, if the detected coupled interference signal causes the audio bus interface between the AP and the Wi-Fi chip to fail to decode, resulting in silence on the second terminal, then the monitored media file playback status can be determined to be abnormal.

[0094] Any of the above charging control methods can provide a technical solution for scenarios where the first terminal is charging while playing media files with the second terminal via Bluetooth communication, thereby optimizing the Bluetooth music playback experience of the first terminal while it is charging, and providing a technical solution for optimizing the mobile device experience.

[0095] Based on the same concept, embodiments of this disclosure also provide a charging control device applied to a first terminal.

[0096] It is understood that the charging control device provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the modules and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.

[0097] Figure 7 This is a block diagram illustrating a charging control device according to an exemplary embodiment. (Refer to...) Figure 7 The charging control device 100 includes a monitoring module 101 and an adjustment module 102.

[0098] The monitoring module 101 is used to monitor the Bluetooth communication status between the first terminal and the second terminal during the charging process of the first terminal.

[0099] The adjustment module 102 is used to adjust the charging power of the first terminal based on the charging protocol supported by the first terminal if the Bluetooth communication status is detected to be abnormal.

[0100] In one embodiment, the adjustment module 102 adjusts the charging power of the first terminal based on the charging protocol supported by the first terminal in the following manner: It detects the charging protocol used to charge the first terminal. It determines whether the current charging protocol supports adjusting the charging power of the first terminal to a first charging power, where the first charging power is less than a charging power threshold. The charging power threshold is the charging power corresponding to the normal state before the Bluetooth communication state between the first terminal and the second terminal changes from a normal state to an abnormal state. If the current charging protocol supports adjusting the charging power of the first terminal to the first charging power, then the charging power of the first terminal is adjusted to the first charging power based on the current charging protocol. If the current charging protocol does not support adjusting the charging power of the first terminal to the first charging power, then the charging protocol supporting the first charging power is determined based on the charging detection sequence corresponding to the charging protocols supported by the first terminal, and the charging power of the first terminal is adjusted to the first charging power based on the charging protocol supporting the first charging power.

[0101] In another embodiment, the adjustment module 102 adjusts the charging power of the first terminal to the first charging power in the following manner: if the current charging protocol is a charging protocol that supports multiple voltage levels, and there is a voltage level among the multiple voltage levels that corresponds to the first charging power, then the voltage level is fixed to the voltage level corresponding to the first charging power.

[0102] In another embodiment, the adjustment module 102 adjusts the charging power of the first terminal to a first charging power in the following manner: if the current charging protocol is a programmable fast charging protocol, the charging voltage of the first terminal is adjusted to a first charging voltage, and / or the charging current of the first terminal is adjusted to a first charging current, so as to adjust the charging power of the first terminal to the first charging power. The first charging voltage is less than a charging voltage threshold, and the first charging current is less than a charging current threshold. The charging voltage threshold and the charging current threshold are the charging voltage and charging current corresponding to the normal state before the Bluetooth communication state between the first terminal and the second terminal changes from a normal state to an abnormal state.

[0103] In another embodiment, the charging control device 100 further includes: a determining module, configured to determine that the current battery level of the first terminal is greater than or equal to a battery level threshold; an adjusting module, further configured to determine whether the current charging protocol supports adjusting the charging power of the first terminal to a first charging power if the current battery level of the first terminal is greater than the first battery level threshold; and an initialization module, configured to initialize the Bluetooth-based communication interface circuit of the first terminal based on a retry mechanism if the current battery level of the first terminal is less than a second battery level threshold. The first battery level threshold is greater than the second battery level threshold, for example, the selectable range of the first battery level threshold is 80% to 95%, and the second battery level threshold is 10% to 20%.

[0104] In another embodiment, the charging control device 100 further includes: a first setting module, configured to set the voltage supported by the audio bus interface of the first terminal based on Bluetooth communication to a first voltage, wherein the audio bus interface supports multiple voltages, the first voltage is a voltage higher than the transmission voltage among the multiple voltages, and the transmission voltage is the voltage before the Bluetooth communication state between the first terminal and the second terminal changes from a normal state to an abnormal state.

[0105] In another embodiment, the charging control device 100 further includes: a second setting module, configured to set the communication rate supported by the audio bus interface of the first terminal based on Bluetooth communication to a first communication rate, wherein the audio bus interface supports multiple communication rates, the first communication rate is a communication rate lower than the transmission communication rate among the multiple communication rates supported by the audio bus interface, and the transmission communication rate is the communication rate before the Bluetooth communication state between the first terminal and the second terminal changes from a normal state to an abnormal state.

[0106] In another embodiment, the monitoring module 101 detects that the Bluetooth communication state is abnormal by detecting that the audio bus interface decoding has failed.

[0107] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0108] Figure 8 This is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 200 may include the charging control device described above to implement any of the charging control methods described above. The electronic device 200 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0109] Reference Figure 8The electronic device 200 may include one or more of the following components: processing component 202, memory 204, power component 206, multimedia component 208, audio component 210, input / output (I / O) interface 212, sensor component 214, and communication component 216.

[0110] Processing component 202 typically controls the overall operation of electronic device 200, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 202 may include one or more modules to facilitate interaction between processing component 202 and other components. For example, processing component 202 may include a multimedia module to facilitate interaction between multimedia component 208 and processing component 202.

[0111] Memory 204 is configured to store various types of data to support the operation of electronic device 200. Examples of such data include instructions for any application or method operating on electronic device 200, contact data, phonebook data, messages, pictures, videos, etc. Memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0112] Power component 206 provides power to various components of electronic device 200. Power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 200.

[0113] Multimedia component 208 includes a screen that provides an output interface between electronic device 200 and user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 208 includes a front-facing camera and / or a rear-facing camera. When electronic device 200 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0114] Audio component 210 is configured to output and / or input audio signals. For example, audio component 210 includes a microphone (MIC) configured to receive external audio signals when electronic device 200 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 204 or transmitted via communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.

[0115] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0116] Sensor assembly 214 includes one or more sensors for providing state assessments of various aspects of electronic device 200. For example, sensor assembly 214 may detect the on / off state of electronic device 200, the relative positioning of components such as the display and keypad of electronic device 200, changes in position of electronic device 200 or a component of electronic device 200, the presence or absence of user contact with electronic device 200, orientation or acceleration / deceleration of electronic device 200, and temperature changes of electronic device 200. Sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 214 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0117] Communication component 216 is configured to facilitate wired or wireless communication between electronic device 200 and other devices. Electronic device 200 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 216 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0118] In an exemplary embodiment, the electronic device 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform any of the above-described charging control methods.

[0119] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, which can be executed by a processor 220 of an electronic device 200 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0120] Figure 9 This is a block diagram illustrating a charging control device 300 according to an exemplary embodiment. For example, the charging control device 300 may be provided as a server. (Refer to...) Figure 9 The charging control device 300 includes a processing component 322, which further includes one or more processors, and memory resources represented by a memory 332 for storing instructions, such as application programs, that can be executed by the processing component 322. The application programs stored in the memory 332 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 322 is configured to execute instructions to perform any of the charging control methods described above.

[0121] The charging control device 300 may also include a power supply component 326 configured to perform power management of the charging control device 300, a wired or wireless network interface 350 configured to connect the charging control device 300 to a network, and an input / output (I / O) interface 358. The charging control device 300 can operate on an operating system stored in memory 332, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.

[0122] It can be further understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.

[0123] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.

[0124] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other components exist between them.

[0125] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.

[0126] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0127] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A charging control method, characterized in that, Applied to a first terminal, the charging control method includes: While the first terminal is charging and the first terminal and the second terminal are playing media files via Bluetooth communication, the Bluetooth communication status between the first terminal and the second terminal is monitored. If an abnormal Bluetooth communication status is detected, the charging power of the first terminal is adjusted based on the charging protocol supported by the first terminal. The charging protocol includes a charging protocol that supports multiple voltage levels or a programmable fast charging protocol. Supporting a programmable fast charging protocol indicates that the charging voltage and / or charging current of the first terminal is adjusted. The abnormal status indicates that the coupling interference between the output circuit of the charging chip interface and the audio bus interface affects the Bluetooth communication between the first terminal and the second terminal. The adjustment of the charging power of the first terminal based on the charging protocol supported by the first terminal includes: Determine whether the current charging protocol supports adjusting the charging power of the first terminal to a first charging power, where the first charging power is less than a charging power threshold. The charging power threshold is the charging power corresponding to the normal state before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state. If the current charging protocol supports adjusting the charging power of the first terminal to the first charging power, then based on the current charging protocol, the charging power of the first terminal is adjusted to the first charging power. If the current charging protocol does not support adjusting the charging power of the first terminal to the first charging power, then based on the charging detection sequence corresponding to the charging protocol supported by the first terminal, the charging protocol that supports the first charging power is determined, and based on the charging protocol that supports the first charging power, the charging power of the first terminal is adjusted to the first charging power.

2. The charging control method according to claim 1, characterized in that, Adjusting the charging power of the first terminal to the first charging power includes: If the current charging protocol supports multiple voltage levels, and one of the multiple voltage levels corresponds to the first charging power, then the voltage level is adjusted to the voltage level corresponding to the first charging power.

3. The charging control method according to claim 1, characterized in that, Adjusting the charging power of the first terminal to the first charging power includes: If the current charging protocol is a programmable fast charging protocol, the charging voltage for the first terminal will be adjusted to the first charging voltage, and / or the charging current for the first terminal will be adjusted to the first charging current, so as to adjust the charging power of the first terminal to the first charging power. The first charging voltage is less than the charging voltage threshold, and the first charging current is less than the charging current threshold. The charging voltage threshold and the charging current threshold are the charging voltage and charging current corresponding to the normal state before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

4. The charging control method according to any one of claims 1 to 3, characterized in that, The charging control method further includes: Determine the current battery level of the first terminal; If the current battery level of the first terminal is greater than the first battery threshold and the Bluetooth communication status is detected to be abnormal, then determine whether the current charging protocol supports adjusting the charging power of the first terminal to the first charging power. If the current battery level of the first terminal is less than the second battery threshold and the Bluetooth communication status is detected to be abnormal, the communication interface circuit of the first terminal based on Bluetooth communication will be initialized based on the retry mechanism. The first power threshold is greater than the second power threshold.

5. The charging control method according to claim 1, characterized in that, The charging control method further includes: The voltage supported by the audio bus interface of the first terminal based on Bluetooth communication is set as the first voltage. The audio bus interface supports multiple voltages, and the first voltage is the voltage among the multiple voltages that is higher than the transmission voltage. The transmission voltage is the voltage before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

6. The charging control method according to claim 1, characterized in that, The charging control method further includes: The communication rate supported by the audio bus interface of the first terminal based on Bluetooth communication is set as the first communication rate. The audio bus interface supports multiple communication rates. The first communication rate is the communication rate that is lower than the transmission communication rate among the multiple communication rates supported by the audio bus interface. The transmission communication rate is the communication rate before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

7. The charging control method according to claim 5 or 6, characterized in that, The detected abnormal Bluetooth communication status includes: If an audio bus interface decoding failure is detected, it is determined that the Bluetooth communication status is abnormal.

8. A charging control device, characterized in that, Applied to the first terminal, the charging control device includes: The monitoring module is used to monitor the Bluetooth communication status between the first terminal and the second terminal during the charging process of the first terminal and the playback of media files between the first terminal and the second terminal via Bluetooth communication. An adjustment module is used to adjust the charging power of the first terminal based on the charging protocol supported by the first terminal if an abnormal Bluetooth communication status is detected. The charging protocol includes a charging protocol that supports multiple voltage levels or a programmable fast charging protocol. The programmable fast charging protocol indicates that the charging voltage and / or charging current of the first terminal are adjusted. The abnormal status indicates that the coupling interference between the output circuit of the charging chip interface and the audio bus interface affects the Bluetooth communication between the first terminal and the second terminal. The adjustment module adjusts the charging power of the first terminal based on the charging protocol supported by the first terminal in the following manner: Determine whether the current charging protocol supports adjusting the charging power of the first terminal to a first charging power, where the first charging power is less than a charging power threshold. The charging power threshold is the charging power corresponding to the normal state before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state. If the current charging protocol supports adjusting the charging power of the first terminal to the first charging power, then based on the current charging protocol, the charging power of the first terminal is adjusted to the first charging power. If the current charging protocol does not support adjusting the charging power of the first terminal to the first charging power, then based on the charging detection sequence corresponding to the charging protocol supported by the first terminal, the charging protocol that supports the first charging power is determined, and based on the charging protocol that supports the first charging power, the charging power of the first terminal is adjusted to the first charging power.

9. The charging control device according to claim 8, characterized in that, The adjustment module adjusts the charging power of the first terminal to the first charging power in the following manner: If the current charging protocol supports multiple voltage levels, and one of the multiple voltage levels corresponds to the first charging power, then the voltage level is adjusted to the voltage level corresponding to the first charging power.

10. The charging control device according to claim 8, characterized in that, The adjustment module adjusts the charging power of the first terminal to the first charging power in the following manner: If the current charging protocol is a programmable fast charging protocol, the charging voltage for the first terminal will be adjusted to the first charging voltage, and / or the charging current for the first terminal will be adjusted to the first charging current, so as to adjust the charging power of the first terminal to the first charging power. The first charging voltage is less than the charging voltage threshold, and the first charging current is less than the charging current threshold. The charging voltage threshold and the charging current threshold are the charging voltage and charging current corresponding to the normal state before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

11. The charging control device according to any one of claims 8 to 10, characterized in that, The charging control device further includes: A determination module is used to determine the current battery level of the first terminal; The adjustment module is further configured to determine whether the current charging protocol supports adjusting the charging power of the first terminal to the first charging power if the current power level of the first terminal is greater than the first power level threshold. An initialization module is used to initialize the Bluetooth-based communication interface circuit of the first terminal if the current battery level of the first terminal is less than a second battery threshold, based on a retry mechanism. The first power threshold is greater than the second power threshold.

12. The charging control device according to claim 8, characterized in that, The charging control device further includes: The first setting module is used to set the voltage supported by the audio bus interface of the first terminal based on Bluetooth communication to a first voltage, wherein the audio bus interface supports multiple voltages, the first voltage is the voltage among the multiple voltages that is higher than the transmission voltage, and the transmission voltage is the voltage before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

13. The charging control device according to claim 8, characterized in that, The charging control device further includes: The second setting module is used to set the communication rate supported by the audio bus interface of the first terminal based on Bluetooth communication to a first communication rate. The audio bus interface supports multiple communication rates, and the first communication rate is a communication rate lower than the transmission communication rate among the multiple communication rates supported by the audio bus interface. The transmission communication rate is the communication rate before the Bluetooth communication state between the first terminal and the second terminal changes from the normal state to the abnormal state.

14. The charging control device according to claim 12 or 13, characterized in that, The monitoring module detected the abnormal Bluetooth communication status using the following method: If an audio bus interface decoding failure is detected, it is determined that the Bluetooth communication status is abnormal.

15. An electronic device, characterized in that, The electronic device includes: Memory, used to store instructions; and A processor is configured to invoke instructions stored in the memory to execute the charging control method as described in any one of claims 1-7.

16. A computer-readable storage medium, characterized in that, The device stores instructions that, when executed by a processor, perform the charging control method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Interference processing method and device, electronic equipment and storage medium

    CN109600173A

  • Wireless charging system with adaptive radio frequency interference

    US20170093197A1