US20220302721A1 - Charging control method, electronic device and storage medium - Google Patents
Charging control method, electronic device and storage medium Download PDFInfo
- Publication number
- US20220302721A1 US20220302721A1 US17/357,777 US202117357777A US2022302721A1 US 20220302721 A1 US20220302721 A1 US 20220302721A1 US 202117357777 A US202117357777 A US 202117357777A US 2022302721 A1 US2022302721 A1 US 2022302721A1
- Authority
- US
- United States
- Prior art keywords
- charging
- terminal
- charging power
- voltage
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 78
- 238000004891 communication Methods 0.000 claims abstract description 208
- 230000002159 abnormal effect Effects 0.000 claims abstract description 50
- 230000008569 process Effects 0.000 claims abstract description 33
- 238000012544 monitoring process Methods 0.000 claims abstract description 15
- 230000005611 electricity Effects 0.000 claims description 51
- 230000005540 biological transmission Effects 0.000 claims description 21
- 238000001514 detection method Methods 0.000 claims description 11
- 230000007246 mechanism Effects 0.000 claims description 8
- 238000012545 processing Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 10
- 238000005070 sampling Methods 0.000 description 9
- 108700025151 PD protocol Proteins 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000005684 electric field Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005674 electromagnetic induction Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00034—Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/00304—Overcurrent protection
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/0071—Regulation of charging or discharging current or voltage with a programmable schedule
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
- H02J7/00714—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery charging or discharging current
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
- H02J7/007182—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B15/00—Suppression or limitation of noise or interference
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/72—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
Definitions
- the present disclosure relates to a field of communication technologies, especially to a charging control method, an electronic device and a storage medium.
- a terminal is charged based on a charging power limited in a charge protocol when charging.
- the charging power included in the charge protocol belongs to a large-power and high-voltage charge protocol to ensure that the terminal may quickly complete charging.
- a charging control method is provided, which is applicable for a first terminal.
- the method includes: monitoring a Bluetooth communication state between the first terminal and the second terminal in a progress of charging the first terminal.
- a charging power for charging the first terminal is adjusted based on a charge protocol supported by the first terminal.
- an electronic device includes: a memory, configured to store instructions; and a processor, configured to call the instructions stored in the memory to execute a charging control method, and the processor is configured to: monitor a Bluetooth communication state between a first terminal and a second terminal in a progress of charging the first terminal; when the Bluetooth communication state is monitored to be in an abnormal state, adjust a charging power for charging the first terminal based on a charge protocol supported by the first terminal.
- a computer readable storage medium with instructions stored thereon executes a charging control method, and the method includes: monitoring a Bluetooth communication state between a first terminal and a second terminal in a progress of charging the first terminal; when the Bluetooth communication state is monitored to be in an abnormal state, adjusting a charging power for charging the first terminal based on a charge protocol supported by the first terminal.
- FIG. 1 is a schematic diagram illustrating a charging interference audio path according to an embodiment of the present disclosure.
- FIG. 2 is a schematic diagram illustrating an architecture of a terminal audio path circuit according to an embodiment of the present disclosure.
- FIG. 3 is a flowchart illustrating a charging control method according to an embodiment of the present disclosure.
- FIG. 4 is a flowchart illustrating a charging control method according to another embodiment of the present disclosure.
- FIG. 5 is a flowchart illustrating a charging control method according to yet another embodiment of the present disclosure.
- FIG. 6 is a flowchart illustrating a charging control method according to still another embodiment of the present disclosure.
- FIG. 7 is a block diagram illustrating a charging control apparatus according to an embodiment of the present disclosure.
- FIG. 8 is a block diagram illustrating an electronic device according to an embodiment of the present disclosure.
- FIG. 9 is a block diagram illustrating a charging control apparatus according to another embodiment of the present disclosure.
- the charging control method in the embodiment of the present disclosure may be applicable for a scenario where a first terminal performs Bluetooth communication with the second terminal during a charging process.
- the first terminal may play audio files and make voice communication based on Bluetooth communication with the second terminal, which is introduced by taking the scenario where the first terminal and the second terminal plays a media file through the Bluetooth communication.
- FIG. 1 a schematic diagram of a charging interference audio path is illustrated in FIG. 1 .
- a charge-Integrated Circuit Chip also refers to as Charge IC
- a Wireless Access Point (also referred to as AP) is connected to a Bluetooth communication interface through a media bus interface, such as a Serial Low-power Inter-chip Media Bus (also referred to as SlimBus) interface, and establishes the Bluetooth communication with the second terminal based on a wireless communication technology, and the media file in the first terminal is transmitted through the SlimBus interface in the first terminal to the second terminal for playing based on the Mobile Industry Processor Interface (MIPI) protocol. Therefore, playing the media file through the second terminal may be realized.
- the SlimBus interface may also be referred to as a low power chip serial media interface.
- the MIPI protocol is an open standard and a specification established for mobile application processors and initiated by MIPI Alliance. During a transmission process, a communication voltage of the SlimBus interface may be relatively low.
- a signal generated by high voltage passing through the by the output path of the charging chip is in an up-down overlap state with a signal passing through the Bluetooth communication interface.
- a fluctuation of a high voltage generated during charging attracts electrons of the up-down overlapping signal based on an electric field force, to cause a voltage between the AP and the Bluetooth communication interface to be interfered, that is, an interference coupling phenomenon generates, which result in increasing of a communication voltage in the SlimBus interface, and affects the Bluetooth communication between the first terminal and the second terminal, and further affects the playing state of the media file and user experience.
- the present disclosure provides a charging control method, capable of determining the Bluetooth communication state between the first terminal and the second terminal by monitoring the Bluetooth communication state between the first terminal and the second terminal in real time in the process of charging the first terminal.
- the charging power for charging the first terminal is adjusted timely to ensure that normal Bluetooth communication between the first terminal and the second terminal may be performed during process of charging the first terminal.
- a type of the first terminal or the second terminal may include a mobile terminal, such as a mobile phone, a tablet, a notebook.
- a structure of the first terminal or the second terminal may include a double-sided screen terminal, a folded screen terminal, a full-screen terminal, etc.
- a type of the second terminal may also include a terminal that may play a media file, such as a Bluetooth headset, a media player.
- the Bluetooth communication state between the first terminal and the second terminal is monitored in real time, and a playing condition of the media file may be determined.
- the charging power for charging the first terminal may be adjusted timely to ensure that in the process of charging the first terminal the normal Bluetooth communication may be performed between the first terminal and the second terminal, and the media file may be played normally.
- FIG. 2 is a schematic diagram illustrating an architecture of a terminal audio path circuit according to an embodiment of the present disclosure.
- the terminal audio path circuit at least includes various kinds of hardware as follows: a Wireless Access Point (AP), a Modem, a wireless communication module, a Digital/Analog Convertor (DAC), a Codec and a smart PA.
- the Modem may translate digital signals of a computer into pulse signals that may be transmitted through an ordinary telephone line, and the pulse signals may be received by another Modem at the other end of the line and translated into a computer understandable language.
- a DAC also referred to as a D/A converter, is a device that may convert digital quantities into analog quantities.
- a Codec is a device with coding and decoding functions in digital communication.
- a smart PA is a kind of amplifier.
- a Pulse Code Modulation (PCM) is adopted for data interactions.
- the PCM is a modulation mode that may sample, quantize and code a continuously changing analog signal.
- the AP establishes a Bluetooth communication connection with the second terminal based on the wireless communication module through a Bluetooth communication interface, and then transmits an audio to the second terminal for playing by the second terminal.
- the Codec may be connected to a microphone (MIC) interface.
- the MIC interface includes a Main interface and a sub deep bass output interface for outputting a primary channel and a deep bass in the audio.
- the smart PA may be connected to a speaker (SPK).
- SPK speaker
- FIG. 3 is a flowchart illustrating a charging control method according to an embodiment of the present disclosure. As illustrated in FIG. 3 , the charging control method is applicable for a first terminal, which includes the following blocks.
- a Bluetooth communication state between a first terminal and a second terminal is monitored in a process of charging the first terminal.
- the first terminal and the second terminal may establish a communication connection, and when playing the media file, the first terminal may play the media file through the second terminal based on the communication connection with the second terminal.
- the media file may include an audio file such as a music file, or a recording file, which is not limited in the present disclosure.
- the Bluetooth communication between the first terminal and the second terminal is easily interfered, caused the Bluetooth communication not to be performed normally between the first terminal and the second terminal, which may affect a playing condition of the media playing and causes the playing state to be in the abnormal state. For example, there may exist incoherently playing, noise or playing interruption during the process of playing the media file.
- the first terminal responds according to playing the media file based on the Bluetooth communication with the second terminal in the process of charging, and monitors the playing state of the media file in real time, so that abnormally playing of the media file may be found timely, and the process of charging the first terminal may be modulated timely.
- the charging power for charging the first terminal is adjusted based on a charge protocol supported by the first terminal.
- the Bluetooth communication state between the first terminal and the second terminal when the Bluetooth communication state between the first terminal and the second terminal is monitored to be in the abnormal state, it indicates that coupling interference between an output path of a current Charge IC interface and the SlimBus interface easily affects the normal Bluetooth communication between the first terminal and the second terminal. Therefore, when the Bluetooth communication state between the first terminal and the second terminal is monitored to be in the abnormal state, the charging power for charging the first terminal is adjusted based on the charge protocol supported by the first terminal, to reduce an influence of the coupling interference between the output path of the current Charge IC interface and the SlimBus interface.
- the normal Bluetooth communication between the first terminal and the second terminal may be guaranteed, and a stability of transmission of the media file is enhanced, further the user experience is improved.
- the charging power for charging the first terminal may be adjusted in a manner that reduces the charging power for charging the first terminal.
- the Bluetooth communication state when the Bluetooth communication state is monitored in the normal state based on the monitoring of the first terminal, it indicates that coupling interference between the output path of the current Charge IC interface and the SlimBus interface is not enough to affect the normal Bluetooth communication between the first terminal and the second terminal. Therefore, when the Bluetooth communication state is monitored in the normal state, it is not required to adjust the charging power for charging the first terminal.
- the first terminal may determine the Bluetooth communication state between the first terminal and the second terminal by monitoring the playing state of the media file.
- the charging power is timely reduced based on the charge protocol supportable by the first terminal, to guarantee the Bluetooth communication state between the first terminal and the second terminal to be in the normal state. Further, the interference of the charging power on Bluetooth communication is reduced, the media file may be played normally, and the user experience is improved.
- the charging power threshold is a charging power corresponding to the Bluetooth communication state between the first terminal and the second terminal being in a normal state before switched to the abnormal state from the normal state.
- the AP may include an AP detection protocol, which may determine a current charge protocol adopted when the first terminal is currently charged, and one or more charging powers included in the current charge protocol, so as to determine whether the current charge protocol supports to adjust the charging power for charging the first terminal to the first charging power.
- the charge protocol supporting the first charging power in the first terminal is determined based on the charge protocol supported by the first terminal.
- the charging power for charging the first terminal is adjusted to the first charging power smaller than the charging power threshold during adjustment, and the charge protocol corresponding to the first charging power is adopted to charge, so as to avoid or reduce the interference of the charging power on the Bluetooth communication in the process of charging.
- the charge protocol may include a charge protocol supporting a plurality of voltage classes or a programmable quick charge protocol.
- the charge protocol is implemented by change states of a level signal between D+ and D-, and the charging power enters the Charge IC through a VBUS.
- a VBUS wire is a power supply wire supplied power by a Host Hub to a USB device.
- the AP detects the charge protocol and controls the charge IC to control the charging power through the usb interface in the terminal.
- the charge protocol supporting a plurality of voltage classes may include a Quick Charge 2.0 (qc2.0) protocol or a qc 3.0 protocol.
- a programmable quick charge protocol may include a power delivery (PD) protocol.
- the PD protocol may implement to increase a type-c interface with a default maximum power 5 V 2 A to 100 W.
- the qc 2.0 protocol may support the voltage class with high voltage charging or large current charging, which may include classA (5 Volts (V), 9V, 12V) and classB (5V, 9V, 12V, 20V).
- the output voltage of the Charge adapter is controlled based on the change of the level signal between D+ and D-, and the charging current may be increased from 500 mA to 3 A, and a maximum charging power may be 60 Watts (W) (20V/3 A).
- a relationship among D+, D- and the output voltages of the Charge adapter may be as illustrated in Table 1 below.
- Table 1 is a voltage comparison table according to an embodiment.
- the qc 3.0 protocol includes a built-in temperature control module, which may be compatible with a qc 2.0 protocol and a BC1.2 protocol.
- the qc 3.0 protocol adopts an Intelligent Negotiation for Optimum Voltage (INOV) technology to regulate the charging voltage by 200 millivolts/step (MV/STEP), which may effectively reduce a heat loss.
- the BC 1.2 protocol includes a plurality of charging modes, such as a SDP, a DCP, and a CDP.
- SDP mode indicates that the charger currently adopted for charging is a non-standard charger
- the charger may support a charging voltage with 5 v and a charging current with maximum 500 mA, and may communicate by using USB 2.0.
- the DCP mode indicates that the charger currently adopted for charging is a dedicated charger, the charger may support a charging voltage with 5 v and a charging current with 1.5 A, but may not communicate by using USB 2.0.
- the CDP mode indicates that a port currently adopted for charging is a port for large current charging, the port may support a charging voltage with 5 v and a charging current with maximum 1.5 A, and may communicate by using USB 2.0.
- priority levels for a charging detection sequence of the AP detection charge protocols may be: a PD Protocol>a USB Type-C, 3 A Protocol>a USB Type-C, 1.5 A Protocol>a BC1.2 Protocol>a USB 3.1 Protocol>a USB 2.0 Protocol.
- the USB Type-C, 3 A protocol refers to a charge protocol with a charging voltage of 5V and a charging current of 3.0 A.
- the USB Type-C, 1.5 A protocol refers to a charge protocol with a charging voltage of 5V and a charging current of 1.5 A.
- the USB 3.1 protocol refers to a charge protocol with a charging voltage of 5V and a charging current of 900 mA.
- the USB 2.0 protocol refers to a charge protocol with a charging voltage of 5V and a charging current of 500 mA.
- the first terminal and the charger scan each other for the charge protocol supported by the other, and charge based on the charge protocol commonly supported by both sides.
- the charge protocol commonly supported by both sides may be traversed from low to high of the priority levels according to the charging detection sequence, and the charge protocol with a maximum charging power or a highest charging voltage is selected to charge the first terminal.
- the charge protocols commonly supported by both sides include: the PD protocol, the USB Type-C, 3 A protocol, the USB Type-C, 1.5 A protocol and the USB 2.0 protocol.
- the traversal starts from the USB 2.0 protocol, goes through the USB Type-C,1.5 A protocol, the USB Type-C, 3 A protocol until to the PD protocol successively based on the above charging detection sequence.
- the charging power corresponding to the PD protocol is the largest or the largest in parallel in the charging powers supported by four charge protocols
- the first terminal is charged based on the charging power corresponding to the PD protocol.
- the charging power corresponding to the PD protocol is lower than a charging power corresponding to the USB Type-C, 3 A protocol
- the first terminal is charged based on the charging power corresponding to the USB Type-C,3 A protocol.
- the charging power for charging the first terminal is adjusted to the first charging power based on the current charge protocol without switching the current charge protocol.
- the interference of the charging power on Bluetooth communication in the process of charging may be avoided or reduced.
- the charge protocol supporting the first charging power may be determined based on the charging detection sequence corresponding to the charge protocol supported by the first terminal.
- the current charge protocol is switched to a charge protocol supporting the first charge power, and based on the charge protocol supporting the first charge protocol, the charging power for charging the first terminal is adjusted to the first charging power.
- the interference of the charging power on Bluetooth communication in the process of charging may be avoided or reduced.
- the present charge protocol employed during currently charging of the first terminal may be adjusted in a manner of reducing a switching rate of charging and adjusting a rising edge of the level signal between D+ and D-.
- the charging power for charging the first terminal is adjusted to the first charging power. The interference of ultra-harmonics generated in the process of charging on the Bluetooth communication.
- the voltage class when the current charge protocol is a charge protocol supporting a plurality of voltage classes, and the charge protocol supporting the plurality of voltage classes includes a first charging power, the voltage class may be fixed to a voltage class corresponding to the first charging power, and the first terminal is charged.
- whether the voltage class corresponding to the first charging power is included may be determined according to the charging power corresponding to each voltage class in the charge protocol.
- the voltage class in the charge protocol may be adjusted to the voltage class corresponding to the first charging power. The first terminal is charged by adopting the voltage class corresponding to the first charging power, and then the charging power is reduced without affecting a charging rate of the first terminal.
- the charging power for charging the first terminal is adjusted to the first charging power in a manner of reducing the charging voltage of the first terminal to a first charging voltage, or reducing the charging current for charging the first terminal to a first charging current, or, reducing the charging voltage of the first terminal to the first charging voltage and the charging current of the first terminal to the first charging current.
- the charge protocol employed by the first terminal is the programmable quick charge protocol through the AP, it indicates that the charging voltage or the charging current for charging the first terminal may be adjusted under the charge protocol.
- the charging voltage, or the charging current or the charging voltage and the charging current of the first terminal may be reduced, to achieve a purpose of reducing the charging power.
- the Bluetooth communication between the first terminal and the second terminal is guaranteed, and the media file may be smoothly transmitted to the second terminal for playing.
- the charging voltage when the charging voltage is reduced, the charging voltage may be reduced to the first charging voltage.
- the first charging voltage is less than a charging voltage threshold.
- the charging voltage threshold is a charging voltage corresponding to the Bluetooth communication state between the first terminal and the second terminal being in the normal state before switched to the abnormal state from the normal state. It may be understood that, a charging voltage threshold is a maximum charging voltage threshold that does not affect operations of the first terminal or the Bluetooth communication between the first terminal and the second terminal.
- the charging current when the charging current is reduced, the charging current may be reduced to a first charging current, in which the first charging current is less than a charging current threshold.
- the charging current threshold is a charging current corresponding to the Bluetooth communication state between the first terminal and the second terminal being in the normal state before switched to the abnormal state from the normal state. It may be understood that, a charging current threshold is a maximum charging current threshold that does not affect operations of the first terminal or the Bluetooth communication between the first terminal and the second terminal.
- the charging voltage and the charging current of the first terminal may be reduced simultaneously so that the adjusted charging power is less than a charging power threshold.
- a charging power threshold is a maximum charging power threshold that does not affect operations of the first terminal or the Bluetooth communication between the first terminal and the second terminal.
- FIG. 4 is a flowchart illustrating a charging control method according to another example embodiment.
- the Bluetooth communication state between the first terminal and the second terminal is monitored in the process of charging the first terminal.
- the current electricity quantity of the first terminal is determined.
- the first electricity quantity threshold is configured to determine whether the current electricity quantity of the first terminal is a relatively high electricity quantity. When the current electricity quantity is greater than the first electricity quantity threshold, it indicates that the current electricity quantity of the first terminal is about to be fully charged or in a fully charged state. For example, a value corresponding to the first electricity quantity threshold may be set to 80% of a battery capacity. When the current electricity quantity of the first terminal is greater than the first electricity quantity threshold, it indicates that the current electricity quantity of the first terminal is relatively high, reducing the charging power may not affect the normal operations of other modules such as a screen, a system, and a system circuit of the first terminal.
- the Bluetooth communication state is monitored in the abnormal state, it is determined whether the current charge protocol supports to adjust the charging power for charging the first terminal to the first charging power, so that the charging power for charging the first terminal is adjusted timely, and the interference of the charging power on Bluetooth communication may be avoided or reduced while ensuring the normal charging of the first terminal.
- a communication interface circuit based on the Bluetooth communication between the first terminal is initialized on a basis of a retry mechanism.
- the retry mechanism is a mechanism for uploading data to a remote storage service and doing other operations in a case of returning successful processing.
- the SlimBus interface may be initialized through the retry mechanism to clarify a reason for abnormal Bluetooth communication between the first terminal and the second terminal.
- a second electricity quantity threshold is configured to determine whether the current electricity quantity of the first terminal is a relatively low electricity quantity. In the process of charging the first terminal, when the current electricity quantity of the first terminal is less than the second electricity quantity threshold, it indicates that the current charging electricity quantity of the first terminal is low, and a high-power charging power is required for charging to ensure that the screen, the system and the system circuit module of the first terminal may be operated normally. At this time, when the charging power for charging the first terminal is reduced, it is easily caused invalid charging of the first terminal, so that the charging electronic quantity of the first terminal may not be increased, which affects the user experience.
- the SlimBus bus of the first terminal based on the Bluetooth communication may be initialized based on the retry mechanism, so as to restore the normal operation of the communication interface circuit based on the Bluetooth communication.
- the communication interface circuit may be further initialized.
- the SlimBus bus interface may be initialized in a way of a software, a hardware or a combination of a hardware and a software.
- the first electricity quantity threshold is greater than the second electricity quantity threshold, for example, a range of the first electricity quantity threshold is 80%-95%, and a range of the second electricity quantity threshold is 10%-20%.
- the charging power for charging the first terminal is adjusted to the first charging power based on the current charge protocol.
- a charge protocol supporting the first charging power is determined based on a charging detection sequence corresponding to the charge protocol supported by the first terminal, and the charging power for charging the first terminal is adjusted to the first charging power based on the charge protocol supporting the first charging power.
- the charging power for charging the first terminal is adjusted based on the current electricity quantity of the first terminal, which helps to meet charging requirements of the first terminal and avoids or reduces the interference of the charging power on the Bluetooth communication.
- the embodiments of the present disclosure further provide another charging control method.
- FIG. 5 is a flowchart illustrating a charging control method according to another example embodiment of the present disclosure. As illustrated in FIG. 5 , the charging control method is applicable for a first terminal, and includes the following blocks.
- block S 301 and block S 302 may be the same with that of the above block S 101 and block S 102 , which are not repeated here.
- the Bluetooth communication state between the first terminal and the second terminal is monitored in the process of charging the first terminal.
- the charging power for charging the first terminal is adjusted based on the charge protocol supported by the first terminal.
- a voltage supported by an audio bus interface of the first terminal based on the Bluetooth communication is set to a first voltage.
- voltage settings supported by the audio bus interface may be a plurality of voltages, for example, 1.2 v or 1.8 v.
- the first voltage is a voltage higher than a transmission voltage in the plurality of voltages
- the transmission voltage is a voltage before the Bluetooth communication state between the first terminal and the second terminal is switched to the abnormal state from the normal state.
- the supported voltage may be set to the highest voltage among the plurality of voltages.
- An anti-interference ability of the audio bus interface is enhanced and a fault tolerant scope is expanded, a sampling bit error rate of the SlimBus in the process of charging the first terminal is reduced, and a condition of Bluetooth communication failure caused by parsing fault of the second terminal is prevented.
- the corresponding fault tolerance range when the voltage supported by the audio bus interface is 1.2 v, the corresponding fault tolerance range is 1.2*(0.9 ⁇ 1.1). When the voltage supported by the audio bus interface is 1.8 v, the corresponding fault tolerance range is 1.8*(0.9 ⁇ 1.1). In order to enhance the anti-interference ability of the audio bus interface, the voltage supported by the audio bus interface may be set to 1.8 v.
- the embodiments of the present disclosure further provide a charging control method.
- FIG. 6 is a flowchart illustrating a charging control method according to another example embodiment. As illustrated in FIG. 6 , the charging control method is applicable for a first terminal, and includes the following blocks.
- block S 401 and block S 402 may be the same with that of the above block S 101 and block S 102 , which are not repeated here.
- the Bluetooth communication state between the first terminal and the second terminal is monitored in the process of charging the first terminal.
- the charging power for charging the first terminal is adjusted based on the charge protocol supported by the first terminal.
- a communication speed rate supported by the audio bus interface of the first terminal based on Bluetooth communication is set to a first communication speed rate.
- the communication speed rates supported by the audio bus interface of the first terminal based on Bluetooth communication may include a plurality of communication speed rates.
- the first communication speed rate is a communication speed rate lower than the transmission communication speed rate among the plurality of communication speed rates, and the transmission communication speed rate is a communication speed rate before the Bluetooth communication state between the first terminal and the second terminal is switched to the abnormal state from the normal state.
- the minimum communication speed rate in the plurality of communication speed rates may be selected as the communication speed rate supported by the audio bus interface.
- the sampling bit error rate of the SlimBus may be reduced, to prevent the second terminal from failing to communicate due to an error during parsing the received media file.
- the minimum communication speed rate may be the communication speed rate with a smallest sampling cycle among the communication speed rates supported by the audio bus interface. For example, for a 1 Mhz communication speed rate, sampling 1 bit code is taken as a cycle, duration of the sampling cycle is 1 us. When a 500 khz communication speed rate is adopted, sampling 1 bit code is taken as a cycle, the duration of the sampling cycle is 2 us. Compared with a phase of the communication speed rate, the fault tolerance ability of the phase of the communication speed rate with the 2 us sampling cycle duration is stronger than that of the phase of the communication speed rate with the 1 us sampling cycle duration.
- the Bluetooth communication state in a condition of monitoring the Bluetooth communication state, when it is detected decoding failure of the audio bus interface, the Bluetooth communication state is determined as in the abnormal state.
- the decoding failure may include: packet loss or data miscoding occurred in the process of transmitting the data of the media file by the SlimBus bus interface.
- the internal spatial position of the output path of the charging chip and the line where the Bluetooth communication interface and the SlimBus bus interface are located in the first terminal may include adjacent up to down or adjacent left to right, and the relative positions are close, which may easily affect the transmission capacity of the SlimBus bus interface and leads to the decoding failure of the SlimBus bus interface, further to cause the second terminal to fail to receive the media file transmitted by the first terminal, so that the media file may not be played normally.
- the respective charge protocols include high voltage classes and high current classes.
- the interference signal will be coupled on the line where the Bluetooth communication interface and SlimBus bus interface are located.
- the coupled interference signal is detected to cause decoding failure of the media bus interface between the AP and the wireless communication module and cause the second terminal to be silent, it may be determined that the playing state of the media file is monitored to be in the abnormal state.
- a technical solution is provided for the scenario where the first terminal plays the media file based on the Bluetooth communication with the second terminal at the same time when the first terminal is charged, the experience of first terminal playing music through a Bluetooth while charging is improved and a technical solution is provided for improving the experience of the mobile device.
- the embodiments of the present disclosure further provide a charging control apparatus applied to the first terminal.
- the charging control apparatus contains hardware structures and/or software modules that execute various functions in order to implement the above functions.
- the embodiments of the present disclosure may be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software driven by hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may adopt different methods for each specific application to implement the described functions, but such implementation should not be considered as beyond the scope of the technical solutions of embodiments of the present disclosure.
- FIG. 7 is a block diagram illustrating a charging control apparatus according to an example embodiment of the present disclosure.
- the charging control apparatus 100 includes a monitoring module 101 and an adjusting module 102 .
- the monitoring module 101 is configured to monitor a Bluetooth communication state between the first terminal and the second terminal in a process of charging the first terminal.
- the adjusting module 102 is configured to, when the Bluetooth communication state is monitored to be in an abnormal state, adjust the charging power for charging the first terminal based on the charge protocol supported by the first terminal.
- the adjusting module 102 is configured to: determine whether a current charge protocol supports to adjust the charging power for charging 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 the Bluetooth communication state between the first terminal and the second terminal being in a normal state before switched to the abnormal state from the normal state.
- the charging power for charging the first terminal is adjusted to the first charging power based on the current charge protocol.
- the current charge protocol does not support to adjust the charging power for charging the first terminal to the first charging power, determine that a charge protocol supporting the first charging power based on a charging detection sequence corresponding to the charge protocol supported by the first terminal, and the charging power for charging the first terminal is adjusted to the first charging power based on the charge protocol supporting the first charging power.
- the adjusting module 102 is configured to: when the current charge protocol is a charge protocol supporting a plurality of voltage classes, and a voltage class corresponding to the first charging power exists among the plurality of voltage classes, fixing the voltage class to a voltage class corresponding to the first charging power.
- the adjusting module 102 is configured to: when the current charge protocol is a programmable quick charge protocol, adjust the charging power for charging the first terminal to the first charging power by adjusting a charging voltage of the first terminal to a first charging voltage, and/or adjusting a charging current for charging the first terminal to a first charging current.
- the first charging voltage is less than a charging voltage threshold
- the first charging current is less than a charging current threshold
- the charging voltage threshold and the charging current threshold being a charging voltage and a charging current corresponding to the Bluetooth communication state between the first terminal and the second terminal being in the normal state before switched to the abnormal state from the normal state.
- the apparatus 100 for charge control further includes: a determining module, configured to determine that the current electricity quantity of the first terminal is greater than or equal to an electricity quantity threshold; an initializing module, configured to when the current electricity quantity of the first terminal is less than a second electricity quantity threshold, initialize a communication interface circuit based on Bluetooth communication of the first terminal on a basis of a retry mechanism.
- the adjusting module is further configured to, when the current electricity quantity of the first terminal is greater than a first electricity quantity threshold, determine whether the current charge protocol supports to adjust the charging power for charging the first terminal to the first charging power.
- the first electricity quantity threshold is greater than the second electricity quantity threshold, for example, a range of the first electricity quantity threshold may be 80% ⁇ 95%, and a range of the second electricity quantity threshold may be 10% ⁇ 20%.
- the charging control apparatus 100 further includes: a first setting module, configured to set the voltage supported by an audio bus interface based on the Bluetooth communication of the first terminal to a first voltage, in which, the audio bus interface supports a plurality of voltages, the first voltage being a voltage higher than a transmission voltage among the plurality of voltages, and the transmission voltage being a voltage before the Bluetooth communication state between the first terminal and the second terminal is switched to the abnormal state from the normal state.
- a first setting module configured to set the voltage supported by an audio bus interface based on the Bluetooth communication of the first terminal to a first voltage, in which, the audio bus interface supports a plurality of voltages, the first voltage being a voltage higher than a transmission voltage among the plurality of voltages, and the transmission voltage being a voltage before the Bluetooth communication state between the first terminal and the second terminal is switched to the abnormal state from the normal state.
- the apparatus 100 for charge control further includes: a second setting module, configured to set a communication speed rate supported by an audio bus interface based on the Bluetooth communication of the first terminal to a first communication speed rate, in which, the audio bus interface supports a plurality of communication speed rates, the first communication speed rate being a communication speed rate lower than the transmission communication speed rate among the plurality of communication speed rates, and the transmission communication speed rate being a communication speed rate before the Bluetooth communication state between the first terminal and the second terminal is switched to the abnormal state from the normal state.
- a second setting module configured to set a communication speed rate supported by an audio bus interface based on the Bluetooth communication of the first terminal to a first communication speed rate, in which, the audio bus interface supports a plurality of communication speed rates, the first communication speed rate being a communication speed rate lower than the transmission communication speed rate among the plurality of communication speed rates, and the transmission communication speed rate being a communication speed rate before the Bluetooth communication state between the first terminal and the second terminal is switched to the abnormal state from the normal state.
- the monitoring module 101 the monitoring module is configured to: when the audio bus interface is detected decoding failure, determining that the Bluetooth communication state is monitored in the abnormal state.
- FIG. 8 is a block diagram illustrating an electronic device according to an example embodiment.
- the electronic device 200 may include the above charging control apparatus, to implement any one charging control method described above.
- the electronic device 200 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical equipment, a fitness equipment, a personal digital assistant, etc.
- the electronic device 200 may include one or more components: a processing component 202 , a memory 204 , a power supply component 206 , a multimedia component 208 , an audio component 210 , an input/output (I/O) interface 212 , a sensor component 214 , and a communication component 216 .
- a processing component 202 the electronic device 200 may include one or more components: a processing component 202 , a memory 204 , a power supply component 206 , a multimedia component 208 , an audio component 210 , an input/output (I/O) interface 212 , a sensor component 214 , and a communication component 216 .
- a processing component 202 the electronic device 200 may include one or more components: a processing component 202 , a memory 204 , a power supply component 206 , a multimedia component 208 , an audio component 210 , an input/output (I/O) interface 212 , a sensor component 214 , and
- the processing component 202 generally controls the whole operation of the electronic device 200 , such as the operations related to display, phone call, data communication, camera operation and recording operation.
- the processing component 202 may include one or more processors 220 to perform instructions, to complete all or part of blocks of the above method.
- the processing component 202 may include one or more modules for the convenience of interaction between the processing component 202 and other components.
- the processing component 202 may include a multimedia module for the convenience of interaction between the multimedia component 208 and the processing component 202 .
- the memory 204 is configured to store all types of data to support the operation of the electronic device 200 .
- Examples of the data include the instructions of any applications or methods operated on the electronic device 200 , contact data, phone book data, messages, pictures, videos, etc.
- the memory 204 may be implemented by any type of volatile or non-volatile storage devices or their combination, 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 Memory, Flash Memory, Magnetic Disk or Optical Disk.
- SRAM Static Random Access Memory
- EEPROM Electrically Erasable Programmable Read-Only Memory
- EPROM Erasable Programmable Read-Only Memory
- PROM Programmable Read-Only Memory
- ROM Read-Only Memory
- Magnetic Memory Flash Memory
- Magnetic Disk Magnetic Disk or Optical Disk.
- the power supply component 206 may provide power for all components of the electronic device 200 .
- the power supply component 206 may include power supply management system, one or more power supplies, and other units related to generating, managing and distributing power for the electronic device 200 .
- the multimedia component 208 includes an output interface screen provided between the electronic device 200 and the user.
- a 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 touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors to sense touching, sliding and gestures on the touch panel. The touch sensor may not only sense the boundary of touch or slide action, but also detect the duration and pressure related to the touching or sliding operation.
- the multimedia component 208 include a front camera and/or a rear camera. When the electronic device 200 is in operation mode, such as shooting mode or video mode, the front camera or the rear camera may receive the external multimedia data.
- Each front camera and rear camera may be a fixed optical lens system or an optical lens system with focal length and optical zoom capacity.
- the audio component 210 is configured as output and/or input signal.
- the audio component 210 includes a microphone (MIC).
- the microphone is configured to receive the external audio signals.
- the audio signals received may be further stored in the memory 204 or sent via the communication component 216 .
- the audio component 210 further includes a speaker configured to an output audio signal.
- the I/O interface 212 provides an interface for the processing component 202 and the peripheral interface module, and the peripheral interface module may be a keyboard, a click wheel, a button, etc.
- the buttons may include but not limited to a home button, a volume button, a start button and a lock button.
- the sensor component 214 includes one or more sensors, configured to provide various aspects of status assessment for the electronic device 200 .
- the sensor component 214 may detect the on/off state of the electronic device 200 and the relative positioning of the component.
- the component is a display and a keypad of the electronic device 200 .
- the sensor component 214 may further detect the location change of the electronic device 200 or one component of the electronic device 200 , the presence or absence of contact between the user and the device 200 , the orientation or acceleration/deceleration of the device 200 , and the temperature change of the device 200 .
- the sensor component 214 may include a proximity sensor, which is configured to detect the existence of the objects nearby without any physical contact.
- the sensor component 214 may further include a light sensor such as CMOS or CCD image sensor, which is configured to use in imaging applications.
- the sensor component 214 may further include an acceleration transducer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
- the communication component 216 is configured for the convenience of wire or wireless communication between the electronic device 200 and other devices.
- the electronic device 200 may access wireless networks based on communication standard, such as Wi-Fi, 2G or 3G, or their combination.
- the communication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel.
- the communication component 216 further includes a near field communication (NFC) module to facilitate short-range communication.
- NFC near field communication
- an 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.
- RFID radio frequency identification
- IRDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- the electronic device 200 may be implemented by one or more application specific integrated circuits(ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronics components, which is configured to perform the above charging control method.
- ASIC application specific integrated circuits
- DSP digital signal processors
- DSPD digital signal processing devices
- PLD programmable logic devices
- FPGA field programmable gate arrays
- controllers microcontrollers, microprocessors or other electronics components, which is configured to perform the above charging control method.
- a non-temporary computer readable storage medium is further provided which includes instructions, such as the memory 204 including instructions, in which the instructions may be executed by the processor 220 of the electronic device 200 to complete the above methods.
- the non-temporary computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
- FIG. 9 is a block diagram illustrating an apparatus 300 for charge control according to an example embodiment.
- the apparatus 300 for charge control may be provided as a server.
- the apparatus 300 for charge control includes a processing component 322 , which further include one or more processors, and memory resources represented by the memory 332 , which are configured to store instructions executed by the processing component 322 , for example, an application.
- the applications stored in the memory 332 may include one or more modules each of which corresponds to a set of instructions.
- the processing component 322 is configured to execute instructions, to execute any one charging control method described above.
- the apparatus 300 for charge control may further include one power supply component 326 configured to execute power management of the apparatus 300 for charge control, and one wired or wireless network interface 350 configured to connect the apparatus 300 to a network, and one input/output(I/O) interface 358 .
- the apparatus 300 for charge control May operate an operating system stored in the memory 332 , for example, Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM.
- a plurality of in the present disclosure means two or above, which is similar to other quantifiers. “and/or”, describes the relationship of the association objects, indicating that there may exist three relationships, for example, A and/or B, may represent: any of existing A only, existing both A and B, or existing B only.
- the character “/” generally means the contextual object is a kind of “or” relationship.
- the singular forms “a”, “the” and “said are also intended to include plural forms, unless the context clearly indicates otherwise.
- first”, “second”, “third”, etc. may be configured to describe various information, such information shall not be limited to these terms. These terms are only used to distinguish the same type of information, rather than indicate a particular order or importance degree. In fact, “first”, “second” and other similar descriptions may be used interchangeably.
- first information may also be referred to as second information, and similarly, and second information may also be referred to as first information.
- connection includes a direct connection between the two without other components, or an indirect connection between the two with other components.
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
Description
- This application is based on and claims priority to Chinese Patent Application No. 202110296525.4, filed on Mar. 19, 2021, the entire content of which is hereby incorporated by reference.
- The present disclosure relates to a field of communication technologies, especially to a charging control method, an electronic device and a storage medium.
- In related arts, a terminal is charged based on a charging power limited in a charge protocol when charging. The charging power included in the charge protocol belongs to a large-power and high-voltage charge protocol to ensure that the terminal may quickly complete charging.
- According to a first aspect of the embodiment of the present disclosure, a charging control method is provided, which is applicable for a first terminal. The method includes: monitoring a Bluetooth communication state between the first terminal and the second terminal in a progress of charging the first terminal. When the Bluetooth communication state is monitored to be in an abnormal state, a charging power for charging the first terminal is adjusted based on a charge protocol supported by the first terminal.
- According to a second aspect of the embodiment of the present disclosure, an electronic device is provided. The electronic device includes: a memory, configured to store instructions; and a processor, configured to call the instructions stored in the memory to execute a charging control method, and the processor is configured to: monitor a Bluetooth communication state between a first terminal and a second terminal in a progress of charging the first terminal; when the Bluetooth communication state is monitored to be in an abnormal state, adjust a charging power for charging the first terminal based on a charge protocol supported by the first terminal.
- According to a third aspect of the embodiment of the present disclosure, a computer readable storage medium with instructions stored thereon is provided. The c instructions execute a charging control method, and the method includes: monitoring a Bluetooth communication state between a first terminal and a second terminal in a progress of charging the first terminal; when the Bluetooth communication state is monitored to be in an abnormal state, adjusting a charging power for charging the first terminal based on a charge protocol supported by the first terminal.
- It should be noted that, the details above and as follows are exemplary and illustrative, and do not limit the present disclosure.
- The drawings herein are incorporated into the specification and constitute a part of the specification, show embodiments in conformity with embodiments of the present disclosure, and explain the principle of the present disclosure together with the specification.
-
FIG. 1 is a schematic diagram illustrating a charging interference audio path according to an embodiment of the present disclosure. -
FIG. 2 is a schematic diagram illustrating an architecture of a terminal audio path circuit according to an embodiment of the present disclosure. -
FIG. 3 is a flowchart illustrating a charging control method according to an embodiment of the present disclosure. -
FIG. 4 is a flowchart illustrating a charging control method according to another embodiment of the present disclosure. -
FIG. 5 is a flowchart illustrating a charging control method according to yet another embodiment of the present disclosure. -
FIG. 6 is a flowchart illustrating a charging control method according to still another embodiment of the present disclosure. -
FIG. 7 is a block diagram illustrating a charging control apparatus according to an embodiment of the present disclosure. -
FIG. 8 is a block diagram illustrating an electronic device according to an embodiment of the present disclosure. -
FIG. 9 is a block diagram illustrating a charging control apparatus according to another embodiment of the present disclosure. - The example embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following descriptions refer to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following example embodiments do not represent all the implementations consistent with the present disclosure. Rather, they are merely examples of the apparatus and method consistent with some aspects of the present disclosure as detailed in the appended claims.
- The charging control method in the embodiment of the present disclosure may be applicable for a scenario where a first terminal performs Bluetooth communication with the second terminal during a charging process. The first terminal may play audio files and make voice communication based on Bluetooth communication with the second terminal, which is introduced by taking the scenario where the first terminal and the second terminal plays a media file through the Bluetooth communication.
- For example, a schematic diagram of a charging interference audio path is illustrated in
FIG. 1 . In a process of charging the first terminal through a charge adapter, a high voltage is stored in a battery of the first terminal through a Charge-Integrated Circuit Chip (also refers to as Charge IC) interface. During the process of the first terminal and the second terminal playing the media file using the Bluetooth communication, a Wireless Access Point (also referred to as AP) is connected to a Bluetooth communication interface through a media bus interface, such as a Serial Low-power Inter-chip Media Bus (also referred to as SlimBus) interface, and establishes the Bluetooth communication with the second terminal based on a wireless communication technology, and the media file in the first terminal is transmitted through the SlimBus interface in the first terminal to the second terminal for playing based on the Mobile Industry Processor Interface (MIPI) protocol. Therefore, playing the media file through the second terminal may be realized. The SlimBus interface may also be referred to as a low power chip serial media interface. The MIPI protocol is an open standard and a specification established for mobile application processors and initiated by MIPI Alliance. During a transmission process, a communication voltage of the SlimBus interface may be relatively low. - However, based on a circuit distribution inside the terminal and a position relationship between an output path of a charging chip and the Bluetooth communication interface, in a process of the first terminal being charged, and performing media file playing based on the Bluetooth communication with the second terminal, a signal generated by high voltage passing through the by the output path of the charging chip is in an up-down overlap state with a signal passing through the Bluetooth communication interface. A fluctuation of a high voltage generated during charging attracts electrons of the up-down overlapping signal based on an electric field force, to cause a voltage between the AP and the Bluetooth communication interface to be interfered, that is, an interference coupling phenomenon generates, which result in increasing of a communication voltage in the SlimBus interface, and affects the Bluetooth communication between the first terminal and the second terminal, and further affects the playing state of the media file and user experience.
- In view of this, the present disclosure provides a charging control method, capable of determining the Bluetooth communication state between the first terminal and the second terminal by monitoring the Bluetooth communication state between the first terminal and the second terminal in real time in the process of charging the first terminal. When the communication state is abnormal, the charging power for charging the first terminal is adjusted timely to ensure that normal Bluetooth communication between the first terminal and the second terminal may be performed during process of charging the first terminal. In one example, a type of the first terminal or the second terminal may include a mobile terminal, such as a mobile phone, a tablet, a notebook. In another example, a structure of the first terminal or the second terminal may include a double-sided screen terminal, a folded screen terminal, a full-screen terminal, etc. In another example, a type of the second terminal may also include a terminal that may play a media file, such as a Bluetooth headset, a media player.
- In one embodiment, when the first terminal is in a process of being charged, and performs media file playing based on the Bluetooth communication with the second terminal, the Bluetooth communication state between the first terminal and the second terminal is monitored in real time, and a playing condition of the media file may be determined. When the Bluetooth communication state between the first terminal and the second terminal is monitored to be in an abnormal state, the charging power for charging the first terminal may be adjusted timely to ensure that in the process of charging the first terminal the normal Bluetooth communication may be performed between the first terminal and the second terminal, and the media file may be played normally.
- In another embodiment, an audio path circuit in the first terminal may be illustrated in
FIG. 2 .FIG. 2 is a schematic diagram illustrating an architecture of a terminal audio path circuit according to an embodiment of the present disclosure. The terminal audio path circuit at least includes various kinds of hardware as follows: a Wireless Access Point (AP), a Modem, a wireless communication module, a Digital/Analog Convertor (DAC), a Codec and a smart PA. The Modem may translate digital signals of a computer into pulse signals that may be transmitted through an ordinary telephone line, and the pulse signals may be received by another Modem at the other end of the line and translated into a computer understandable language. A DAC, also referred to as a D/A converter, is a device that may convert digital quantities into analog quantities. A Codec is a device with coding and decoding functions in digital communication. A smart PA is a kind of amplifier. In various hardware, a Pulse Code Modulation (PCM) is adopted for data interactions. The PCM is a modulation mode that may sample, quantize and code a continuously changing analog signal. The AP establishes a Bluetooth communication connection with the second terminal based on the wireless communication module through a Bluetooth communication interface, and then transmits an audio to the second terminal for playing by the second terminal. The Codec may be connected to a microphone (MIC) interface. The MIC interface includes a Main interface and a sub deep bass output interface for outputting a primary channel and a deep bass in the audio. The smart PA may be connected to a speaker (SPK). It should be noted that the above circuits are only configured for reference, and the internal circuit distribution settings of the terminal are not limited in the present disclosure. In one example, the Modem may be provided in the wireless communication module. In another example, the DAC may be provided in the Codec. -
FIG. 3 is a flowchart illustrating a charging control method according to an embodiment of the present disclosure. As illustrated inFIG. 3 , the charging control method is applicable for a first terminal, which includes the following blocks. - At block S101, a Bluetooth communication state between a first terminal and a second terminal is monitored in a process of charging the first terminal.
- In the embodiment of the present disclosure, the first terminal and the second terminal may establish a communication connection, and when playing the media file, the first terminal may play the media file through the second terminal based on the communication connection with the second terminal. The media file may include an audio file such as a music file, or a recording file, which is not limited in the present disclosure.
- Based on the foregoing, in the process of charging the first terminal, when the media file is played through the second terminal based the Bluetooth communication between the first terminal and the second terminal, the Bluetooth communication between the first terminal and the second terminal is easily interfered, caused the Bluetooth communication not to be performed normally between the first terminal and the second terminal, which may affect a playing condition of the media playing and causes the playing state to be in the abnormal state. For example, there may exist incoherently playing, noise or playing interruption during the process of playing the media file. In order to ensure that the media file is normally played by the second terminal in the process of charging the first terminal, the first terminal responds according to playing the media file based on the Bluetooth communication with the second terminal in the process of charging, and monitors the playing state of the media file in real time, so that abnormally playing of the media file may be found timely, and the process of charging the first terminal may be modulated timely.
- At block S102, when the Bluetooth communication state is monitored to be in an abnormal state, the charging power for charging the first terminal is adjusted based on a charge protocol supported by the first terminal.
- In the embodiment of the present disclosure, when the Bluetooth communication state between the first terminal and the second terminal is monitored to be in the abnormal state, it indicates that coupling interference between an output path of a current Charge IC interface and the SlimBus interface easily affects the normal Bluetooth communication between the first terminal and the second terminal. Therefore, when the Bluetooth communication state between the first terminal and the second terminal is monitored to be in the abnormal state, the charging power for charging the first terminal is adjusted based on the charge protocol supported by the first terminal, to reduce an influence of the coupling interference between the output path of the current Charge IC interface and the SlimBus interface. Thus, the normal Bluetooth communication between the first terminal and the second terminal may be guaranteed, and a stability of transmission of the media file is enhanced, further the user experience is improved. For example, the charging power for charging the first terminal may be adjusted in a manner that reduces the charging power for charging the first terminal.
- In one example, when the Bluetooth communication state is monitored in the normal state based on the monitoring of the first terminal, it indicates that coupling interference between the output path of the current Charge IC interface and the SlimBus interface is not enough to affect the normal Bluetooth communication between the first terminal and the second terminal. Therefore, when the Bluetooth communication state is monitored in the normal state, it is not required to adjust the charging power for charging the first terminal.
- In the above embodiment, in the process of charging the first terminal, the first terminal may determine the Bluetooth communication state between the first terminal and the second terminal by monitoring the playing state of the media file. When the Bluetooth communication state between the first terminal and the second terminal is monitored in the abnormal state, the charging power is timely reduced based on the charge protocol supportable by the first terminal, to guarantee the Bluetooth communication state between the first terminal and the second terminal to be in the normal state. Further, the interference of the charging power on Bluetooth communication is reduced, the media file may be played normally, and the user experience is improved.
- In one embodiment, the charging power threshold is a charging power corresponding to the Bluetooth communication state between the first terminal and the second terminal being in a normal state before switched to the abnormal state from the normal state. The AP may include an AP detection protocol, which may determine a current charge protocol adopted when the first terminal is currently charged, and one or more charging powers included in the current charge protocol, so as to determine whether the current charge protocol supports to adjust the charging power for charging the first terminal to the first charging power. When the charging power for charging the first terminal is adjusted, the charge protocol supporting the first charging power in the first terminal is determined based on the charge protocol supported by the first terminal. The charging power for charging the first terminal is adjusted to the first charging power smaller than the charging power threshold during adjustment, and the charge protocol corresponding to the first charging power is adopted to charge, so as to avoid or reduce the interference of the charging power on the Bluetooth communication in the process of charging. The charge protocol may include a charge protocol supporting a plurality of voltage classes or a programmable quick charge protocol.
- The charge protocol is implemented by change states of a level signal between D+ and D-, and the charging power enters the Charge IC through a VBUS. A VBUS wire is a power supply wire supplied power by a Host Hub to a USB device. The AP detects the charge protocol and controls the charge IC to control the charging power through the usb interface in the terminal.
- In one example, the charge protocol supporting a plurality of voltage classes may include a Quick Charge 2.0 (qc2.0) protocol or a qc 3.0 protocol. In another example, a programmable quick charge protocol may include a power delivery (PD) protocol. The PD protocol may implement to increase a type-c interface with a default maximum power 5 V 2 A to 100 W.
- The qc 2.0 protocol may support the voltage class with high voltage charging or large current charging, which may include classA (5 Volts (V), 9V, 12V) and classB (5V, 9V, 12V, 20V). The output voltage of the Charge adapter is controlled based on the change of the level signal between D+ and D-, and the charging current may be increased from 500 mA to 3A, and a maximum charging power may be 60 Watts (W) (20V/3 A). A relationship among D+, D- and the output voltages of the Charge adapter may be as illustrated in Table 1 below. Table 1 is a voltage comparison table according to an embodiment. The qc 3.0 protocol includes a built-in temperature control module, which may be compatible with a qc 2.0 protocol and a BC1.2 protocol. The qc 3.0 protocol adopts an Intelligent Negotiation for Optimum Voltage (INOV) technology to regulate the charging voltage by 200 millivolts/step (MV/STEP), which may effectively reduce a heat loss. The BC 1.2 protocol includes a plurality of charging modes, such as a SDP, a DCP, and a CDP. When the SDP mode indicates that the charger currently adopted for charging is a non-standard charger, the charger may support a charging voltage with 5 v and a charging current with maximum 500 mA, and may communicate by using USB 2.0. When the DCP mode indicates that the charger currently adopted for charging is a dedicated charger, the charger may support a charging voltage with 5 v and a charging current with 1.5 A, but may not communicate by using USB 2.0. When the CDP mode indicates that a port currently adopted for charging is a port for large current charging, the port may support a charging voltage with 5 v and a charging current with maximum 1.5 A, and may communicate by using USB 2.0.
-
TABLE 1 D+ level signal D− level signal Output voltage 0.6 v 0 v 5 v 3.0 V (above) 0.6 v 9 v 0.6 v 0.6 v 12 v 0.6 v 3.0 V (above) 20 v - In one embodiment, priority levels for a charging detection sequence of the AP detection charge protocols may be: a PD Protocol>a USB Type-C, 3 A Protocol>a USB Type-C, 1.5 A Protocol>a BC1.2 Protocol>a USB 3.1 Protocol>a USB 2.0 Protocol. The USB Type-C, 3 A protocol refers to a charge protocol with a charging voltage of 5V and a charging current of 3.0 A. The USB Type-C, 1.5 A protocol refers to a charge protocol with a charging voltage of 5V and a charging current of 1.5 A. The USB 3.1 protocol refers to a charge protocol with a charging voltage of 5V and a charging current of 900 mA. The USB 2.0 protocol refers to a charge protocol with a charging voltage of 5V and a charging current of 500 mA. When the first terminal is charged through the charger, the first terminal and the charger scan each other for the charge protocol supported by the other, and charge based on the charge protocol commonly supported by both sides. Before the first terminal is charged by the charger, the charge protocol commonly supported by both sides may be traversed from low to high of the priority levels according to the charging detection sequence, and the charge protocol with a maximum charging power or a highest charging voltage is selected to charge the first terminal. For example, the charge protocols commonly supported by both sides include: the PD protocol, the USB Type-C, 3 A protocol, the USB Type-C, 1.5 A protocol and the USB 2.0 protocol. Before the charger charges the first terminal, the traversal starts from the USB 2.0 protocol, goes through the USB Type-C,1.5 A protocol, the USB Type-C, 3 A protocol until to the PD protocol successively based on the above charging detection sequence. When the charging power corresponding to the PD protocol is the largest or the largest in parallel in the charging powers supported by four charge protocols, the first terminal is charged based on the charging power corresponding to the PD protocol. When the charging power corresponding to the PD protocol is lower than a charging power corresponding to the USB Type-C, 3 A protocol, the first terminal is charged based on the charging power corresponding to the USB Type-C,3 A protocol.
- In one example, when the current charge protocol supports to adjust the charging power for charging the first terminal to the first charging power, the charging power for charging the first terminal is adjusted to the first charging power based on the current charge protocol without switching the current charge protocol. The interference of the charging power on Bluetooth communication in the process of charging may be avoided or reduced.
- In another example, when the current charge protocol does not support to adjust the charging power for charging the first terminal to the first charging power, it is determined that the charge protocol supporting the first charging power may be determined based on the charging detection sequence corresponding to the charge protocol supported by the first terminal. The current charge protocol is switched to a charge protocol supporting the first charge power, and based on the charge protocol supporting the first charge protocol, the charging power for charging the first terminal is adjusted to the first charging power. The interference of the charging power on Bluetooth communication in the process of charging may be avoided or reduced.
- In another example, when the charging power corresponding to the charge protocol charging for the terminal is relatively high, the present charge protocol employed during currently charging of the first terminal may be adjusted in a manner of reducing a switching rate of charging and adjusting a rising edge of the level signal between D+ and D-. The charging power for charging the first terminal is adjusted to the first charging power. The interference of ultra-harmonics generated in the process of charging on the Bluetooth communication.
- In an embodiment, when the current charge protocol is a charge protocol supporting a plurality of voltage classes, and the charge protocol supporting the plurality of voltage classes includes a first charging power, the voltage class may be fixed to a voltage class corresponding to the first charging power, and the first terminal is charged. When it is determined that the current charge protocol is the charge protocol supporting the plurality of voltage classes through the AP, whether the voltage class corresponding to the first charging power is included may be determined according to the charging power corresponding to each voltage class in the charge protocol. After it is determined that the first charging power is included, the voltage class in the charge protocol may be adjusted to the voltage class corresponding to the first charging power. The first terminal is charged by adopting the voltage class corresponding to the first charging power, and then the charging power is reduced without affecting a charging rate of the first terminal.
- In another embodiment, when the charge protocol is the programmable quick charge protocol, the charging power for charging the first terminal is adjusted to the first charging power in a manner of reducing the charging voltage of the first terminal to a first charging voltage, or reducing the charging current for charging the first terminal to a first charging current, or, reducing the charging voltage of the first terminal to the first charging voltage and the charging current of the first terminal to the first charging current. When it is determined that the charge protocol employed by the first terminal is the programmable quick charge protocol through the AP, it indicates that the charging voltage or the charging current for charging the first terminal may be adjusted under the charge protocol. In order to avoid the interference on the normal Bluetooth communication between the first terminal and the second terminal during charging, the charging voltage, or the charging current or the charging voltage and the charging current of the first terminal may be reduced, to achieve a purpose of reducing the charging power. The Bluetooth communication between the first terminal and the second terminal is guaranteed, and the media file may be smoothly transmitted to the second terminal for playing.
- In one example, when the charging voltage is reduced, the charging voltage may be reduced to the first charging voltage. The first charging voltage is less than a charging voltage threshold. The charging voltage threshold is a charging voltage corresponding to the Bluetooth communication state between the first terminal and the second terminal being in the normal state before switched to the abnormal state from the normal state. It may be understood that, a charging voltage threshold is a maximum charging voltage threshold that does not affect operations of the first terminal or the Bluetooth communication between the first terminal and the second terminal.
- In one example, when the charging current is reduced, the charging current may be reduced to a first charging current, in which the first charging current is less than a charging current threshold. The charging current threshold is a charging current corresponding to the Bluetooth communication state between the first terminal and the second terminal being in the normal state before switched to the abnormal state from the normal state. It may be understood that, a charging current threshold is a maximum charging current threshold that does not affect operations of the first terminal or the Bluetooth communication between the first terminal and the second terminal.
- In another example, the charging voltage and the charging current of the first terminal may be reduced simultaneously so that the adjusted charging power is less than a charging power threshold. It may be understood that, a charging power threshold is a maximum charging power threshold that does not affect operations of the first terminal or the Bluetooth communication between the first terminal and the second terminal.
- In another embodiment, as illustrated in
FIG. 4 , whether the charging power for charging the first terminal requires to be adjusted further depends on a current electricity quantity of the first terminal.FIG. 4 is a flowchart illustrating a charging control method according to another example embodiment. - At block S201, the Bluetooth communication state between the first terminal and the second terminal is monitored in the process of charging the first terminal.
- At block S202, the current electricity quantity of the first terminal is determined.
- At block S2031, when the current electricity quantity of the first terminal is greater than a first electricity quantity threshold and the monitored Bluetooth communication state is in the abnormal state, it is determined whether the current charge protocol supports to adjust the charging power for charging the first terminal to the first charging power.
- In the embodiment of the present disclosure, the first electricity quantity threshold is configured to determine whether the current electricity quantity of the first terminal is a relatively high electricity quantity. When the current electricity quantity is greater than the first electricity quantity threshold, it indicates that the current electricity quantity of the first terminal is about to be fully charged or in a fully charged state. For example, a value corresponding to the first electricity quantity threshold may be set to 80% of a battery capacity. When the current electricity quantity of the first terminal is greater than the first electricity quantity threshold, it indicates that the current electricity quantity of the first terminal is relatively high, reducing the charging power may not affect the normal operations of other modules such as a screen, a system, and a system circuit of the first terminal. Therefore, when it is determined that the current electricity quantity of the first terminal is greater than the first electricity quantity threshold and the Bluetooth communication state is monitored in the abnormal state, it is determined whether the current charge protocol supports to adjust the charging power for charging the first terminal to the first charging power, so that the charging power for charging the first terminal is adjusted timely, and the interference of the charging power on Bluetooth communication may be avoided or reduced while ensuring the normal charging of the first terminal.
- At block S3032, when the current power of the first terminal is less than a second power threshold and the monitored Bluetooth communication state is in the abnormal state, a communication interface circuit based on the Bluetooth communication between the first terminal is initialized on a basis of a retry mechanism.
- In the embodiment of the present disclosure, the retry mechanism is a mechanism for uploading data to a remote storage service and doing other operations in a case of returning successful processing. To avoid the Bluetooth communication itself between the first terminal and the second terminal occurring abnormally or avoid affecting the charging power caused by mis-adjustment of the charge protocol, the SlimBus interface may be initialized through the retry mechanism to clarify a reason for abnormal Bluetooth communication between the first terminal and the second terminal.
- In the embodiment of the present disclosure, a second electricity quantity threshold is configured to determine whether the current electricity quantity of the first terminal is a relatively low electricity quantity. In the process of charging the first terminal, when the current electricity quantity of the first terminal is less than the second electricity quantity threshold, it indicates that the current charging electricity quantity of the first terminal is low, and a high-power charging power is required for charging to ensure that the screen, the system and the system circuit module of the first terminal may be operated normally. At this time, when the charging power for charging the first terminal is reduced, it is easily caused invalid charging of the first terminal, so that the charging electronic quantity of the first terminal may not be increased, which affects the user experience. In order to avoid the invalid charging of the first terminal and prevent overhigh charging power from affecting the Bluetooth communication between the first terminal and the second terminal, the SlimBus bus of the first terminal based on the Bluetooth communication may be initialized based on the retry mechanism, so as to restore the normal operation of the communication interface circuit based on the Bluetooth communication. In one example, in the process of restoring the communication interface circuit, the communication interface circuit may be further initialized. In another example, during the process of initializing the SlimBus bus interface, the SlimBus bus interface may be initialized in a way of a software, a hardware or a combination of a hardware and a software. It should to be noted that, the first electricity quantity threshold is greater than the second electricity quantity threshold, for example, a range of the first electricity quantity threshold is 80%-95%, and a range of the second electricity quantity threshold is 10%-20%.
- At block S204, when the current charge protocol supports to adjust the charging power for charging the first terminal to the first charging power, the charging power for charging the first terminal is adjusted to the first charging power based on the current charge protocol.
- At block S205, when the current charge protocol does not support to adjust the charging power for charging the first terminal to the first charging power, a charge protocol supporting the first charging power is determined based on a charging detection sequence corresponding to the charge protocol supported by the first terminal, and the charging power for charging the first terminal is adjusted to the first charging power based on the charge protocol supporting the first charging power.
- In the above embodiment, the charging power for charging the first terminal is adjusted based on the current electricity quantity of the first terminal, which helps to meet charging requirements of the first terminal and avoids or reduces the interference of the charging power on the Bluetooth communication.
- Based on the same concept, the embodiments of the present disclosure further provide another charging control method.
-
FIG. 5 is a flowchart illustrating a charging control method according to another example embodiment of the present disclosure. As illustrated inFIG. 5 , the charging control method is applicable for a first terminal, and includes the following blocks. - In the embodiment of the present disclosure, the implementations of block S301 and block S302 may be the same with that of the above block S101 and block S102, which are not repeated here.
- At block S301, the Bluetooth communication state between the first terminal and the second terminal is monitored in the process of charging the first terminal.
- At block S302, when the Bluetooth communication state is monitored in the abnormal state, the charging power for charging the first terminal is adjusted based on the charge protocol supported by the first terminal.
- At block S303, a voltage supported by an audio bus interface of the first terminal based on the Bluetooth communication is set to a first voltage.
- In the embodiment of the present disclosure, voltage settings supported by the audio bus interface may be a plurality of voltages, for example, 1.2 v or 1.8 v. The first voltage is a voltage higher than a transmission voltage in the plurality of voltages, and the transmission voltage is a voltage before the Bluetooth communication state between the first terminal and the second terminal is switched to the abnormal state from the normal state. When the voltage supported by the audio bus interface of the first terminal based on the Bluetooth communication is set, the supported voltage may be set to the highest voltage among the plurality of voltages. An anti-interference ability of the audio bus interface is enhanced and a fault tolerant scope is expanded, a sampling bit error rate of the SlimBus in the process of charging the first terminal is reduced, and a condition of Bluetooth communication failure caused by parsing fault of the second terminal is prevented.
- In an embodiment, when the voltage supported by the audio bus interface is 1.2 v, the corresponding fault tolerance range is 1.2*(0.9˜1.1). When the voltage supported by the audio bus interface is 1.8 v, the corresponding fault tolerance range is 1.8*(0.9˜1.1). In order to enhance the anti-interference ability of the audio bus interface, the voltage supported by the audio bus interface may be set to 1.8 v.
- Based on the same concept, the embodiments of the present disclosure further provide a charging control method.
-
FIG. 6 is a flowchart illustrating a charging control method according to another example embodiment. As illustrated inFIG. 6 , the charging control method is applicable for a first terminal, and includes the following blocks. - In the embodiment of the present disclosure, the implementation of block S401 and block S402 may be the same with that of the above block S101 and block S102, which are not repeated here.
- At block S401, the Bluetooth communication state between the first terminal and the second terminal is monitored in the process of charging the first terminal.
- At block S402, when the Bluetooth communication state is monitored in the abnormal state, the charging power for charging the first terminal is adjusted based on the charge protocol supported by the first terminal.
- At block S403, a communication speed rate supported by the audio bus interface of the first terminal based on Bluetooth communication is set to a first communication speed rate.
- In the embodiment of the present disclosure, the communication speed rates supported by the audio bus interface of the first terminal based on Bluetooth communication may include a plurality of communication speed rates. The higher the communication speed rate is, more easily faults occur when communication transmission is performed. The first communication speed rate is a communication speed rate lower than the transmission communication speed rate among the plurality of communication speed rates, and the transmission communication speed rate is a communication speed rate before the Bluetooth communication state between the first terminal and the second terminal is switched to the abnormal state from the normal state. To enhance the tolerance ability of the audio bus interface when the communication transmission is performed, when the communication speed rate supported by the audio bus interface is set, the minimum communication speed rate in the plurality of communication speed rates may be selected as the communication speed rate supported by the audio bus interface.
- By reducing the communication speed rate supported by the audio bus interface, the sampling bit error rate of the SlimBus may be reduced, to prevent the second terminal from failing to communicate due to an error during parsing the received media file.
- In one example, the minimum communication speed rate may be the communication speed rate with a smallest sampling cycle among the communication speed rates supported by the audio bus interface. For example, for a 1 Mhz communication speed rate, sampling 1 bit code is taken as a cycle, duration of the sampling cycle is 1 us. When a 500 khz communication speed rate is adopted, sampling 1 bit code is taken as a cycle, the duration of the sampling cycle is 2 us. Compared with a phase of the communication speed rate, the fault tolerance ability of the phase of the communication speed rate with the 2 us sampling cycle duration is stronger than that of the phase of the communication speed rate with the 1 us sampling cycle duration.
- In one embodiment, in a condition of monitoring the Bluetooth communication state, when it is detected decoding failure of the audio bus interface, the Bluetooth communication state is determined as in the abnormal state. The decoding failure may include: packet loss or data miscoding occurred in the process of transmitting the data of the media file by the SlimBus bus interface.
- In one embodiment, as illustrated in
FIG. 1 , the internal spatial position of the output path of the charging chip and the line where the Bluetooth communication interface and the SlimBus bus interface are located in the first terminal may include adjacent up to down or adjacent left to right, and the relative positions are close, which may easily affect the transmission capacity of the SlimBus bus interface and leads to the decoding failure of the SlimBus bus interface, further to cause the second terminal to fail to receive the media file transmitted by the first terminal, so that the media file may not be played normally. For the qc2.0 protocol, the qc3.0 protocol, and the PD protocol, the respective charge protocols include high voltage classes and high current classes. Based on an electric field force, an Ampere loop and Faraday's law of electromagnetic induction, presence of microforce on the output path of the Charge IC and the line where the Bluetooth communication interface and the SlimBus bus interface are located, the interference signal will be coupled on the line where the Bluetooth communication interface and SlimBus bus interface are located. In the process of monitoring the playing state of the media file, when the coupled interference signal is detected to cause decoding failure of the media bus interface between the AP and the wireless communication module and cause the second terminal to be silent, it may be determined that the playing state of the media file is monitored to be in the abnormal state. - Through any one of the above methods for charging control, a technical solution is provided for the scenario where the first terminal plays the media file based on the Bluetooth communication with the second terminal at the same time when the first terminal is charged, the experience of first terminal playing music through a Bluetooth while charging is improved and a technical solution is provided for improving the experience of the mobile device.
- Based on the same concept, the embodiments of the present disclosure further provide a charging control apparatus applied to the first terminal.
- It could be understood that, the charging control apparatus provided in the embodiment of the present disclosure contains hardware structures and/or software modules that execute various functions in order to implement the above functions. In combination with the modules and algorithm steps of the examples described in embodiments of the present disclosure, the embodiments of the present disclosure may be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software driven by hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may adopt different methods for each specific application to implement the described functions, but such implementation should not be considered as beyond the scope of the technical solutions of embodiments of the present disclosure.
-
FIG. 7 is a block diagram illustrating a charging control apparatus according to an example embodiment of the present disclosure. Referring toFIG. 7 , the chargingcontrol apparatus 100 includes amonitoring module 101 and anadjusting module 102. - The
monitoring module 101 is configured to monitor a Bluetooth communication state between the first terminal and the second terminal in a process of charging the first terminal. - The adjusting
module 102 is configured to, when the Bluetooth communication state is monitored to be in an abnormal state, adjust the charging power for charging the first terminal based on the charge protocol supported by the first terminal. - In one embodiment, the adjusting
module 102 is configured to: determine whether a current charge protocol supports to adjust the charging power for charging 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 the Bluetooth communication state between the first terminal and the second terminal being in a normal state before switched to the abnormal state from the normal state. When the current charge protocol supports to adjust the charging power for charging the first terminal to the first charging power, the charging power for charging the first terminal is adjusted to the first charging power based on the current charge protocol. When the current charge protocol does not support to adjust the charging power for charging the first terminal to the first charging power, determine that a charge protocol supporting the first charging power based on a charging detection sequence corresponding to the charge protocol supported by the first terminal, and the charging power for charging the first terminal is adjusted to the first charging power based on the charge protocol supporting the first charging power. - In another embodiment, the adjusting
module 102 is configured to: when the current charge protocol is a charge protocol supporting a plurality of voltage classes, and a voltage class corresponding to the first charging power exists among the plurality of voltage classes, fixing the voltage class to a voltage class corresponding to the first charging power. - In another embodiment, the adjusting
module 102 is configured to: when the current charge protocol is a programmable quick charge protocol, adjust the charging power for charging the first terminal to the first charging power by adjusting a charging voltage of the first terminal to a first charging voltage, and/or adjusting a charging current for charging the first terminal to a first charging current. 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 being a charging voltage and a charging current corresponding to the Bluetooth communication state between the first terminal and the second terminal being in the normal state before switched to the abnormal state from the normal state. - In another embodiment, the
apparatus 100 for charge control further includes: a determining module, configured to determine that the current electricity quantity of the first terminal is greater than or equal to an electricity quantity threshold; an initializing module, configured to when the current electricity quantity of the first terminal is less than a second electricity quantity threshold, initialize a communication interface circuit based on Bluetooth communication of the first terminal on a basis of a retry mechanism. The adjusting module is further configured to, when the current electricity quantity of the first terminal is greater than a first electricity quantity threshold, determine whether the current charge protocol supports to adjust the charging power for charging the first terminal to the first charging power. The first electricity quantity threshold is greater than the second electricity quantity threshold, for example, a range of the first electricity quantity threshold may be 80%˜95%, and a range of the second electricity quantity threshold may be 10%˜20%. - In another embodiment, the charging
control apparatus 100 further includes: a first setting module, configured to set the voltage supported by an audio bus interface based on the Bluetooth communication of the first terminal to a first voltage, in which, the audio bus interface supports a plurality of voltages, the first voltage being a voltage higher than a transmission voltage among the plurality of voltages, and the transmission voltage being a voltage before the Bluetooth communication state between the first terminal and the second terminal is switched to the abnormal state from the normal state. - In another embodiment, the
apparatus 100 for charge control further includes: a second setting module, configured to set a communication speed rate supported by an audio bus interface based on the Bluetooth communication of the first terminal to a first communication speed rate, in which, the audio bus interface supports a plurality of communication speed rates, the first communication speed rate being a communication speed rate lower than the transmission communication speed rate among the plurality of communication speed rates, and the transmission communication speed rate being a communication speed rate before the Bluetooth communication state between the first terminal and the second terminal is switched to the abnormal state from the normal state. - In another embodiment, the
monitoring module 101 the monitoring module is configured to: when the audio bus interface is detected decoding failure, determining that the Bluetooth communication state is monitored in the abnormal state. - With regard to the apparatus in the above embodiments, the specific way in which each module performs the operation has been described in detail in the embodiments of the method and will not be elaborated here.
-
FIG. 8 is a block diagram illustrating an electronic device according to an example embodiment. For example, theelectronic device 200 may include the above charging control apparatus, to implement any one charging control method described above. Theelectronic device 200 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical equipment, a fitness equipment, a personal digital assistant, etc. - Referring to
FIG. 8 , theelectronic device 200 may include one or more components: aprocessing component 202, amemory 204, apower supply component 206, amultimedia component 208, anaudio component 210, an input/output (I/O)interface 212, asensor component 214, and acommunication component 216. - The
processing component 202 generally controls the whole operation of theelectronic device 200, such as the operations related to display, phone call, data communication, camera operation and recording operation. Theprocessing component 202 may include one ormore processors 220 to perform instructions, to complete all or part of blocks of the above method. In addition, theprocessing component 202 may include one or more modules for the convenience of interaction between theprocessing component 202 and other components. For example, theprocessing component 202 may include a multimedia module for the convenience of interaction between themultimedia component 208 and theprocessing component 202. - The
memory 204 is configured to store all types of data to support the operation of theelectronic device 200. Examples of the data include the instructions of any applications or methods operated on theelectronic device 200, contact data, phone book data, messages, pictures, videos, etc. Thememory 204 may be implemented by any type of volatile or non-volatile storage devices or their combination, 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 Memory, Flash Memory, Magnetic Disk or Optical Disk. - The
power supply component 206 may provide power for all components of theelectronic device 200. Thepower supply component 206 may include power supply management system, one or more power supplies, and other units related to generating, managing and distributing power for theelectronic device 200. - The
multimedia component 208 includes an output interface screen provided between theelectronic device 200 and the user. In some embodiments, a 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 touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touching, sliding and gestures on the touch panel. The touch sensor may not only sense the boundary of touch or slide action, but also detect the duration and pressure related to the touching or sliding operation. In some embodiments, themultimedia component 208 include a front camera and/or a rear camera. When theelectronic device 200 is in operation mode, such as shooting mode or video mode, the front camera or the rear camera may receive the external multimedia data. Each front camera and rear camera may be a fixed optical lens system or an optical lens system with focal length and optical zoom capacity. - The
audio component 210 is configured as output and/or input signal. For example, theaudio component 210 includes a microphone (MIC). When theelectronic device 200 is in operation mode, such as call mode, record mode, and speech recognition mode, the microphone is configured to receive the external audio signals. The audio signals received may be further stored in thememory 204 or sent via thecommunication component 216. In some embodiments, theaudio component 210 further includes a speaker configured to an output audio signal. - The I/
O interface 212 provides an interface for theprocessing component 202 and the peripheral interface module, and the peripheral interface module may be a keyboard, a click wheel, a button, etc. The buttons may include but not limited to a home button, a volume button, a start button and a lock button. - The
sensor component 214 includes one or more sensors, configured to provide various aspects of status assessment for theelectronic device 200. For example, thesensor component 214 may detect the on/off state of theelectronic device 200 and the relative positioning of the component. For example, the component is a display and a keypad of theelectronic device 200. Thesensor component 214 may further detect the location change of theelectronic device 200 or one component of theelectronic device 200, the presence or absence of contact between the user and thedevice 200, the orientation or acceleration/deceleration of thedevice 200, and the temperature change of thedevice 200. Thesensor component 214 may include a proximity sensor, which is configured to detect the existence of the objects nearby without any physical contact. Thesensor component 214 may further include a light sensor such as CMOS or CCD image sensor, which is configured to use in imaging applications. In some embodiments, thesensor component 214 may further include an acceleration transducer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor. - The
communication component 216 is configured for the convenience of wire or wireless communication between theelectronic device 200 and other devices. Theelectronic device 200 may access wireless networks based on communication standard, such as Wi-Fi, 2G or 3G, or their combination. In an exemplary embodiment, thecommunication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 216 further includes a near field communication (NFC) module to facilitate short-range communication. For example, an 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. - In an exemplary embodiment, the
electronic device 200 may be implemented by one or more application specific integrated circuits(ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronics components, which is configured to perform the above charging control method. - In an exemplary embodiment, a non-temporary computer readable storage medium is further provided which includes instructions, such as the
memory 204 including instructions, in which the instructions may be executed by theprocessor 220 of theelectronic device 200 to complete the above methods. For example, the non-temporary computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc. -
FIG. 9 is a block diagram illustrating anapparatus 300 for charge control according to an example embodiment. For example, theapparatus 300 for charge control may be provided as a server. Referring toFIG. 9 , theapparatus 300 for charge control includes aprocessing component 322, which further include one or more processors, and memory resources represented by thememory 332, which are configured to store instructions executed by theprocessing component 322, for example, an application. The applications stored in thememory 332 may include one or more modules each of which corresponds to a set of instructions. In addition, theprocessing component 322 is configured to execute instructions, to execute any one charging control method described above. - The
apparatus 300 for charge control may further include onepower supply component 326 configured to execute power management of theapparatus 300 for charge control, and one wired orwireless network interface 350 configured to connect theapparatus 300 to a network, and one input/output(I/O)interface 358. Theapparatus 300 for charge control May operate an operating system stored in thememory 332, for example, Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™. - It may be further understood that, “a plurality of” in the present disclosure means two or above, which is similar to other quantifiers. “and/or”, describes the relationship of the association objects, indicating that there may exist three relationships, for example, A and/or B, may represent: any of existing A only, existing both A and B, or existing B only. The character “/” generally means the contextual object is a kind of “or” relationship. The singular forms “a”, “the” and “said are also intended to include plural forms, unless the context clearly indicates otherwise.
- It should be further understood that, although the terms “first”, “second”, “third”, etc. may be configured to describe various information, such information shall not be limited to these terms. These terms are only used to distinguish the same type of information, rather than indicate a particular order or importance degree. In fact, “first”, “second” and other similar descriptions may be used interchangeably. For example, subject to the scope of this present disclosure, first information may also be referred to as second information, and similarly, and second information may also be referred to as first information.
- It is further understandable that, unless specifically stated otherwise, a “connection” includes a direct connection between the two without other components, or an indirect connection between the two with other components.
- It may be further understood that, even though operations are described in the drawings in a particular order, it should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed to obtain desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
- After considering the specification and practicing the disclosure herein, those skilled in the art will easily think of other implementations. The present application is intended to cover any variations, usages, or adaptive changes of the present disclosure. These variations, usages, or adaptive changes follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The description and the embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are given by the appended claims.
- It should be understood that the present disclosure is not limited to the precise structure described above and shown in the drawings, and various modifications and changes may be made without departing from its scope. The scope of the present application is only limited by the appended claims. The scope of the present application is only limited by the appended claims.
Claims (20)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110296525.4 | 2021-03-19 | ||
CN202110296525.4A CN115117946A (en) | 2021-03-19 | 2021-03-19 | Charging control method, charging control device, electronic apparatus, and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
US20220302721A1 true US20220302721A1 (en) | 2022-09-22 |
US11984738B2 US11984738B2 (en) | 2024-05-14 |
Family
ID=76999614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/357,777 Active 2042-07-29 US11984738B2 (en) | 2021-03-19 | 2021-06-24 | Charging control method, electronic device and storage medium |
Country Status (3)
Country | Link |
---|---|
US (1) | US11984738B2 (en) |
EP (1) | EP4060856B1 (en) |
CN (1) | CN115117946A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220326752A1 (en) * | 2021-04-08 | 2022-10-13 | Microchip Technology Incorporated | Multiprotocol USB Adaptive Charging |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030139136A1 (en) * | 2002-01-10 | 2003-07-24 | Ganesh Pattabiraman | System and method for optimizing bluetooth transmissions to overcome signal interference |
US20170324278A1 (en) * | 2016-05-09 | 2017-11-09 | International Business Machines Corporation | Wireless power distribution management in an open environment |
CN107546804A (en) * | 2017-09-11 | 2018-01-05 | 上海斐讯数据通信技术有限公司 | A kind of method and system of wireless charging |
CN108879896A (en) * | 2018-06-26 | 2018-11-23 | 深圳市鑫汇达机械设计有限公司 | A kind of Baffle Box of Bluetooth and wireless charger of wireless charging |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002111784A (en) * | 2000-09-28 | 2002-04-12 | Ando Electric Co Ltd | Protocol monitor and capture analysis display system therefor |
WO2008054035A1 (en) | 2006-11-02 | 2008-05-08 | Ki Bum Park | A charging system for a mobile phone and bluetooth |
KR102271730B1 (en) | 2014-07-31 | 2021-07-02 | 삼성전자주식회사 | Charging control Method and Device |
CN104835990B (en) * | 2015-03-27 | 2017-11-10 | 惠州Tcl移动通信有限公司 | A kind of charger charging method and system based on low-power consumption bluetooth |
KR20170020144A (en) | 2015-08-13 | 2017-02-22 | 삼성전자주식회사 | Electronic device and method for wireless charging in the electronic device |
CN106471697A (en) * | 2015-12-16 | 2017-03-01 | 广东欧珀移动通信有限公司 | Control the method charging, device, power supply adaptor and mobile terminal |
WO2018184230A1 (en) | 2017-04-07 | 2018-10-11 | Oppo广东移动通信有限公司 | Wireless charging system, apparatus and method, and device to be charged |
CN108234761A (en) * | 2017-12-28 | 2018-06-29 | 努比亚技术有限公司 | Adjusting method, device and computer readable storage medium under radio frequency interference |
CN109600173B (en) * | 2018-11-09 | 2021-08-17 | Oppo广东移动通信有限公司 | Interference processing method and device, electronic equipment and storage medium |
CN109618365B (en) * | 2018-12-29 | 2022-03-25 | 京信网络系统股份有限公司 | Monitoring management method and device applied to room-division spotlight antenna |
CN211152133U (en) * | 2019-11-26 | 2020-07-31 | 深圳市奋达科技股份有限公司 | Bluetooth sound box with wireless charging function |
CN212519359U (en) * | 2020-04-23 | 2021-02-09 | 上海矽臻微电子有限公司 | Wireless charging type Bluetooth earphone device |
-
2021
- 2021-03-19 CN CN202110296525.4A patent/CN115117946A/en active Pending
- 2021-06-24 US US17/357,777 patent/US11984738B2/en active Active
- 2021-06-30 EP EP21182789.4A patent/EP4060856B1/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030139136A1 (en) * | 2002-01-10 | 2003-07-24 | Ganesh Pattabiraman | System and method for optimizing bluetooth transmissions to overcome signal interference |
US20170324278A1 (en) * | 2016-05-09 | 2017-11-09 | International Business Machines Corporation | Wireless power distribution management in an open environment |
CN107546804A (en) * | 2017-09-11 | 2018-01-05 | 上海斐讯数据通信技术有限公司 | A kind of method and system of wireless charging |
CN108879896A (en) * | 2018-06-26 | 2018-11-23 | 深圳市鑫汇达机械设计有限公司 | A kind of Baffle Box of Bluetooth and wireless charger of wireless charging |
Non-Patent Citations (4)
Title |
---|
"DA4100 WhattUp® Wireless Power Transmitter" Dialog Semiconductor (2019) (hereinafter "Dialog") (Year: 2019) * |
Claire "USB-C vs. Lightning: Which is the Future?" March 26, 2020 (Year: 2020) * |
Machine translation for CN-107546804-A (Year: 2017) * |
Machine translation for CN-108879896-B (Year: 2018) * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220326752A1 (en) * | 2021-04-08 | 2022-10-13 | Microchip Technology Incorporated | Multiprotocol USB Adaptive Charging |
Also Published As
Publication number | Publication date |
---|---|
CN115117946A (en) | 2022-09-27 |
US11984738B2 (en) | 2024-05-14 |
EP4060856A1 (en) | 2022-09-21 |
EP4060856B1 (en) | 2024-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104756095B (en) | Method and system for dynamic adjustment of an interrupt latency threshold and a resource supporting a processor in a portable computing device | |
US9099883B2 (en) | System and method for controlling charging of battery of portable terminal | |
CN108631401B (en) | Charging circuit, method, electronic device, and storage medium | |
US11411422B2 (en) | Battery charging method, battery charging apparatus and storage medium | |
KR102315042B1 (en) | reverse charging device | |
KR20100072857A (en) | Controlling method of interrupt and potable device using the same | |
US10237479B2 (en) | Communication apparatus, control method for communication apparatus, imaging apparatus, control method for imaging apparatus, and program | |
KR20100047967A (en) | Apparatus and method for controlling mode of usb switching ic in a portable device | |
JP2013516693A (en) | Powering accessories during hibernation of portable computing devices | |
US9282391B2 (en) | Method and apparatus for recognizing earphone in portable terminal | |
US8064831B2 (en) | Electronic apparatus and communication state notification function control method | |
EP3557942A1 (en) | Automatically enabling wireless communication | |
EP4336309A1 (en) | Electronic device, device identification method, and charging system | |
US11984738B2 (en) | Charging control method, electronic device and storage medium | |
US20220393496A1 (en) | Charge control method, charge control apparatus and storage medium | |
CN113572210A (en) | Charging method, device, equipment and storage medium | |
CN111864858A (en) | Charging control method, charging control device, power utilization equipment, charging system and medium | |
CN112261712A (en) | Power regulation method and device | |
EP4131851B1 (en) | Conference system and low standby power consumption method for the conference system with no booting delay time | |
CN117134009B (en) | Charging method and electronic equipment | |
CN113922457B (en) | Charging method, charging device, electronic equipment and storage medium | |
CN115441522A (en) | Charging control method, charging control device, and storage medium | |
CN117996871A (en) | Charging control method, device, electronic equipment and storage medium | |
CN117639146A (en) | Charging method and electric equipment | |
CN117996877A (en) | Battery circuit, battery circuit control method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD., CHINA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:CHEN, CHAOXI;REEL/FRAME:056662/0178 Effective date: 20210615 |
|
FEPP | Fee payment procedure |
Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: NON FINAL ACTION MAILED |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS |
|
ZAAB | Notice of allowance mailed |
Free format text: ORIGINAL CODE: MN/=. |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT RECEIVED |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT VERIFIED |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |