CN109450023B - Charging circuit, charging processing method, electronic device, and storage medium - Google Patents

Charging circuit, charging processing method, electronic device, and storage medium Download PDF

Info

Publication number
CN109450023B
CN109450023B CN201811377448.XA CN201811377448A CN109450023B CN 109450023 B CN109450023 B CN 109450023B CN 201811377448 A CN201811377448 A CN 201811377448A CN 109450023 B CN109450023 B CN 109450023B
Authority
CN
China
Prior art keywords
charging
adapter
pin
interface
connecting wire
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.)
Active
Application number
CN201811377448.XA
Other languages
Chinese (zh)
Other versions
CN109450023A (en
Inventor
靳勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201811377448.XA priority Critical patent/CN109450023B/en
Publication of CN109450023A publication Critical patent/CN109450023A/en
Application granted granted Critical
Publication of CN109450023B publication Critical patent/CN109450023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0036Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits

Abstract

The embodiment of the application provides a charging circuit, a charging processing method, electronic equipment and a storage medium, the charging circuit comprises an adapter, the adapter comprises a charging interface and a control chip, a connecting wire is used for connecting the adapter through the charging interface, the interface of the connecting wire comprises an ID pin, the ID pin is connected to the control chip through the connecting wire, the control chip is used for judging whether the connecting wire is connected into an adapter or not according to the level of the ID pin, if so, when the adapter charges the equipment to be charged, the charging power is reduced, and therefore the adapter is prevented from generating heat.

Description

Charging circuit, charging processing method, electronic device, and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a charging circuit, a charging processing method, an electronic device, and a storage medium.
Background
At present, a charging interface of an electronic device such as a mobile phone can integrate data transmission and charging functions. When electronic equipment is connected with the adapter through the interface that charges and charges, current scheme adapter has not the way and discerns whether the Micro USB line that has the adapter, or the Type-C line that fills soon inserts. When the access has the Micro USB line of adapter, and the cell-phone carries out heavy current and charges, the adapter generates heat easily to probably the adapter burns out.
Disclosure of Invention
The embodiment of the application provides a charging circuit, whether can effectively accurately detect the connecting wire and insert the adapter to protect.
The embodiment of the application provides a charging circuit, it includes:
the adapter comprises a charging interface and a control chip;
the connecting line is used for being connected with the adapter through the charging interface, the interface of the connecting line comprises an ID pin, and the ID pin is connected to the control chip through the connecting line;
the control chip is used for judging whether the connecting wire is connected with the adapter or not according to the level of the ID pin, and if yes, when the adapter charges the equipment to be charged, the charging power is reduced.
The embodiment of the application also provides a charging processing method, which is applied to charging equipment, wherein the charging equipment comprises a charging adapter and a connecting wire, the adapter comprises a charging interface and a control chip, the connecting wire is used for being connected with the adapter through the charging interface, the interface of the connecting wire comprises an ID pin, and the ID pin is connected to the control chip through the connecting wire; the method comprises the following steps:
when the adapter charges the equipment to be charged, acquiring the level information of the ID pin;
and judging whether the connecting wire is connected with the adapter or not according to the level information of the ID pin, and if so, reducing the charging power of the adapter.
The embodiment of the application also provides an electronic device, which comprises a charging circuit and a battery, wherein the charging circuit is connected with the battery, and the charging circuit is as described above.
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the charging management method as described above.
The charging circuit, the processing method that charges, electronic equipment and storage medium that this application embodiment provided can be based on whether the level of ID pin judges the connecting wire and inserts the adapter, has the connecting wire of adapter when the access, and treats charging device and carry out heavy current when charging, and the adapter generates heat easily, and this application can reduce charging power to avoid the adapter to generate heat.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic structural diagram of a first state of an electronic device according to an embodiment of the present application.
Fig. 2 is another schematic structural diagram of the first state of the electronic device according to the embodiment of the present application.
Fig. 3 is a schematic structural diagram of a second state of an electronic device according to an embodiment of the present application.
Fig. 4 is another schematic structural diagram of a second state of the electronic device according to the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a device to be charged and a charging apparatus according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of an adapter and a connection line provided in the embodiment of the present application.
Fig. 7 is a schematic structural diagram of an adapter according to an embodiment of the present application.
Fig. 8 is a schematic flowchart of a charging processing method according to an embodiment of the present application.
Fig. 9 is a block diagram schematically illustrating a module of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The embodiment of the application provides a charging circuit, a charging processing method, an electronic device and a storage medium. The details will be described below separately. The electronic device may be a smart phone, a tablet computer, or other devices, and may also be a game device, an AR (Augmented Reality) device, an audio playing device, a video playing device, or other devices.
Referring to fig. 1 to 4, fig. 1 is a schematic structural diagram of a first state of an electronic device according to an embodiment of the present disclosure, fig. 2 is another schematic structural diagram of the first state of the electronic device according to the embodiment of the present disclosure, fig. 3 is a schematic structural diagram of a second state of the electronic device according to the embodiment of the present disclosure, and fig. 4 is another schematic structural diagram of the second state of the electronic device according to the embodiment of the present disclosure. The first state may be a state in which the electronic device 100 does not turn on the camera function, such as a standby state and a state in which the camera is not turned on when the screen is bright. The second state is a state when the electronic device 100 turns on the image capturing function.
In some embodiments, the electronic device 100 may include a display 12, an electronics board 13, a battery 14, a housing 15, a front-facing camera 161, and a rear-facing camera 162. Note that the electronic apparatus 100 is not limited to the above.
In some embodiments, the electronic device 100 may further include a sliding device coupled to the housing 15, the sliding device being slidable relative to the housing. The front camera 161 and the rear camera 162 are provided on the slide device, and are located on opposite sides, respectively.
When the electronic device 100 is in the first state, the sliding mechanism 18 is in the initial state, i.e., the sliding mechanism 18 is located in the housing.
When the electronic device 100 is in the second state, i.e. when the camera function is turned on, the sliding mechanism 18 slides out of the housing 15, and the front camera 161 and the rear camera 162 are disposed on the sliding mechanism 18. When the sliding mechanism 18 does not slide out of the casing 15, the front camera 161 and the rear camera 162 are hidden in the casing, and when the electronic device 100 is in the second state, the sliding mechanism 18 slides out of the casing 15, so that photographing, shooting and the like can be performed by using the front camera 161 and the rear camera 162.
Wherein the display screen 12 is mounted in the housing 15. The display 12 is electrically connected to the electronic circuit board 13 to form a display surface of the electronic apparatus 100. The display 12 may be in a regular shape, such as a rectangular parallelepiped structure, and the display 12 may cover the entire display surface of the electronic device 100, that is, a full screen display of the electronic device 100 is realized.
In some embodiments, the Display 12 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED) Display.
The electronic circuit board 13 is mounted in the housing 15, the electronic circuit board 13 may be a main board of the electronic device 100, and one, two or more functional components of a motor, a microphone, a speaker, an earphone interface, a universal serial bus interface, a front camera 161, a rear camera 162, a receiver 171, a distance sensor, an ambient light sensor, a processor, and the like may be integrated on the electronic circuit board 13. It is noted that, in the description of the present application, "a plurality" means two or more unless specifically defined otherwise.
In some embodiments, the electronic circuit board 13 may be screwed into the housing 15 by screws, or may be snap-fit into the housing 15. It should be noted that the way of specifically fixing the electronic circuit board 13 in the housing 15 according to the embodiment of the present application is not limited to this, and other ways, such as a way of fixing by a snap and a screw together, are also possible.
The electronic device 100 may further include a cover plate mounted to the display 12 to cover the display 12. The cover may be a clear glass cover so that the display 12 is transparent to the cover for display. In some embodiments, the cover plate may be a glass cover plate made of a material such as sapphire.
Wherein the housing 15 may form an outer contour of the electronic device 100. In some embodiments, the housing 15 may be a metal housing component, such as a metal such as magnesium alloy, stainless steel, and the like. It should be noted that the material of the housing 15 in the embodiment of the present application is not limited to this, for example: the housing 15 may be a plastic housing, a ceramic housing, a glass housing, or the like.
The electronic device of the present application may have only the first state, that is, the electronic device does not have a sliding device, and the electronic device may have a non-display area, and the front camera 161, the receiver 171, the distance sensor, the ambient light sensor, and the like may be provided in the non-display area.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a device to be charged and a charging apparatus according to an embodiment of the present disclosure. The charging device 200 comprises a charging circuit, the charging circuit comprises an adapter and a connecting wire 210, the adapter comprises a charging interface and a control chip, and the connecting wire 210 is used for being connected with the adapter through the charging interface.
The charging interface is used for connecting the charging device 200. The charging interface may be a Universal Serial Bus (USB) interface. Specifically, the interface that charges can be Micro USB interface or Type-C interface etc. certainly, the interface that charges also can be other interfaces. The charging interface is connected with the device 300 to be charged through a charging connection line.
In an embodiment, please refer to fig. 6, and fig. 6 is a schematic structural diagram of an adapter and a connecting wire according to an embodiment of the present disclosure.
In an embodiment of the present application, the interface of the connection line includes a Micro USB interface, and the interface of the connection line includes an ID pin, and the ID pin is connected to the control chip 340 through the connection line. It should be noted that, the above-mentioned pin on the connecting wire can also include VBUS (power cord), D +, D- (transmission data), GND (ground wire), and wherein the ID pin is through walking the line connection to adapter MCU's GPIO mouth, when the adapter was inserted, can draw down this GPIO, and MCU detects that the GPIO mouth draws down, judges for the adapter access, reduces charging power simultaneously, avoids the adapter problem of burning out.
With reference to fig. 7, fig. 7 is a schematic structural diagram of an adapter according to an embodiment of the present disclosure. In one embodiment, the adapter 360 includes a Micro USB interface 362 and a USB Type-C interface 361, wherein the adapter 360 includes VBUS, D-, D +, GND, and ID5 pins.
In the prior art, the adapter has no way to identify whether a Micro USB line with an adapter or a fast-charging Type-C line is inserted. When the access has the Micro USB line of adapter, and the cell-phone carries out heavy current and charges, the adapter generates heat easily to the quality problem that the adapter burns out may appear.
When the connection line 210 is connected to the adapter 360, one end of the ID pin of the connection line 210 is connected to one detection pin of the control chip 340, and the other end is connected to the ID pin of the adapter 360.
In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In an embodiment, the control chip 340 is configured to determine whether the connection line is connected to the adapter 360 according to the level of the ID pin, and if so, reduce the charging power when the adapter charges the device 300 to be charged.
In an embodiment, the control chip 340 obtains the level information of the ID pin through the charging interface, selects one of a first charging power and a second charging power as a target charging power according to the level information, and the control chip 340 controls the adapter to charge the device to be charged 300 according to the target charging power, where the first charging power is greater than the second charging power.
Specifically, when the ID pin is at a high level, it may be determined that the target charging power is the first charging power; when the ID pin is at a low level, determining that the target charging power is the second charging power. The first charging power may be a fast charging power of the adapter, and the second charging power may be a slow charging power of the adapter.
An AC-DC module is disposed in the charging device 200, and is used for converting an alternating current (for example, 220V alternating current) of a commercial power into a direct current (for example, 5V direct current) for charging the device 300 to be charged. Also included within the device to be charged 300 are a charge management circuit 320 and a battery 330. The charging management circuit 320 has a DC-DC voltage conversion module therein, which can adjust the voltage and/or current output to the battery 330 according to the requirement of the battery 330. The charge management circuit 320 may be a charging chip.
In some embodiments, a resistor R1 may be connected in series between the VBUS line and the CC line of the power source 210 to indicate that the charging device (e.g., power adapter) is a source device. The battery 300 is provided with a battery protection board which can realize functions such as short circuit and overcurrent protection. A resistor R1 may be connected in series between the VBUS pin and the CC pin of the external charging device 200.
In an embodiment, the device to be charged 300 may support both the normal charging mode and the fast charging mode, and the charging device 200 may also support both the normal charging mode and the fast charging mode. The external charging device 200 in the fast charging mode provides higher charging power, e.g., may provide higher voltage and/or current than normal charging. In the fast charging mode, the charging device 200 provides the electric energy of the first charging power to the device 300 to be charged, and in the normal charging mode, the charging device 200 provides the electric energy of the second charging power to the device 300 to be charged, and the second charging power is smaller than the first charging power. For example, in the normal charging mode, a charging current of 5V, 1A, and a charging power of 5W is supplied. In the fast charge mode, a charge current of 9V, 2A and 18W of charge power is supplied, or a charge current of 5V, 3A and 15W of charge power may be supplied. In the fast charging mode, the charging power can be increased by only increasing the voltage, only increasing the current, simultaneously increasing the voltage and the current, and the like, and the increased charging power can reach 50W at most, even higher, which is not listed in the application.
The device 300 to be charged can be connected with the charging device 200 through the charging interface for charging, and can also communicate through the communication pins (D +, D-) of the charging interface. When the adapter is not connected, the control chip 340 may obtain charging information of the device 300 to be charged through the charging interface, and then obtain whether the device 300 to be charged supports the fast charging according to the charging information, and if the device 300 to be charged supports the fast charging, the first charging power may be selected from the first charging power and the second charging power as the target charging power. If the device to be charged 300 does not support fast charging, the second charging power may be selected as the target charging power from the first charging power and the second charging power. After determining the target charging power, the control chip 340 generates control information according to the target charging power, and sends the control information to the charging device 200, where the control information is used to control the charging device 200 to perform charging according to the target charging power. That is, the control chip 340 controls the charging apparatus 200 to select the fast charging mode or the normal charging mode according to the communication content with the apparatus 300 to be charged.
It should be noted that, in the fast charging mode, the charging apparatus 200 may obtain information about the state of the battery 330, such as the remaining power, the battery voltage, the battery conductance, and the like, and the charging apparatus 200 adjusts its output voltage and/or output current according to the state of the battery 330. For example, the charging device 200 outputs different output voltages and/or output currents in different trickle states, constant current states, or constant voltage states. In the normal charging mode, the battery management circuit 320 in the device to be charged 300 can change the voltage and current input by the charging device 200 to meet the requirements of the battery 330.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features.
In some embodiments, when the target charging power is the first charging power, the other end of the charging interface is used to directly connect the battery 330; when the target charging power is the second charging power, the other end of the charging interface 310 is connected to the battery 330 through the battery management circuit 320.
The battery management circuit 320 comprises a protection circuit, and can directly short the power supply pin VBUS of the Type-C interface to the ground, stop charging and realize temperature reduction of the Type-C interface.
Referring to fig. 8, fig. 8 is a schematic flowchart illustrating a charging processing method according to an embodiment of the present disclosure. The charging processing method is applied to charging equipment, the charging equipment comprises a charging adapter and a connecting wire, the adapter comprises a charging interface and a control chip, the connecting wire is used for being connected with the adapter through the charging interface, the interface of the connecting wire comprises an ID pin, and the ID pin is connected to the control chip through the connecting wire. The charging processing method may specifically include:
101, when the adapter charges the device to be charged, the adapter acquires the level information of the ID pin.
The charging interface is used for connecting charging equipment. The charging interface may be a Universal Serial Bus (USB) interface. Specifically, the interface that charges can be Micro USB interface or Type-C interface etc. certainly, the interface that charges also can be other interfaces. The charging interface is connected with the equipment to be charged through a charging connecting wire.
The interface of connecting wire includes the Micro USB interface, the interface of connecting wire includes the ID pin, the ID pin passes through the connecting wire is connected to control chip. It should be noted that the pins on the connection line may further include VBUS (power line), D +, D- (transmit data), and GND (ground line), where the ID pin is connected to the GPIO port of the adaptor MCU through a wire.
The adapter includes Micro USB interface and USB Type-C interface, and wherein this adapter includes VBUS, D-, D +, GND and ID5 pins.
And 102, judging whether the connecting line is connected to the adapter according to the level information of the ID pin, and if so, reducing the charging power of the adapter.
In the prior art, the adapter has no way to identify whether a Micro USB line with an adapter or a fast-charging Type-C line is inserted. When the access has the Micro USB line of adapter, and the cell-phone carries out heavy current and charges, the adapter generates heat easily to the quality problem that the adapter burns out may appear.
When the connecting wire is connected into the adapter, one end of the ID pin of the connecting wire is connected with one detection pin of the control chip, and the other end of the ID pin of the connecting wire is connected with the ID pin of the adapter. The control chip is used for judging whether the connecting wire is connected with the adapter or not according to the level of the ID pin, and if yes, when the adapter charges the equipment to be charged, the charging power is reduced.
In an embodiment, the determining whether the connection line is connected to the adapter according to the level information of the ID pin includes:
when the ID pin is at a low level, determining that the connecting line is connected to the adapter;
and when the ID pin is at a high level, determining that the connecting line is not connected with the adapter.
In one embodiment, the step of reducing the charging power of the adapter includes: reducing a charging current of the adapter and/or reducing a charging voltage of the adapter.
Specifically, the device to be charged may support two modes, namely, a normal charging mode and a fast charging mode, and the charging device may also support two modes, namely, a normal charging mode and a fast charging mode. The external charging device in the fast charging mode provides a higher charging power, e.g., may provide a higher voltage and/or current than normal charging. In the normal charging mode, the external charging device provides electric energy with second charging power to the equipment to be charged, and the second charging power is smaller than the first charging power. For example, in the normal charging mode, a charging current of 5V, 1A, and a charging power of 5W is supplied. In the fast charge mode, a charge current of 9V, 2A and 18W of charge power is supplied, or a charge current of 5V, 3A and 15W of charge power may be supplied. In the fast charging mode, the charging power can be increased by only increasing the voltage, only increasing the current, simultaneously increasing the voltage and the current, and the like, and the increased charging power can reach 50W at most, even higher, which is not listed in the application.
Therefore, the charging processing method provided by the embodiment of the application can acquire the level information of the ID pin when the adapter charges the device to be charged, judge whether the connecting line is connected to the adapter according to the level information of the ID pin, and reduce the charging power of the adapter if the connecting line is connected to the adapter. Thereby avoiding the adapter to generate heat.
Referring to fig. 9, fig. 9 is a block diagram illustrating an electronic device according to an embodiment of the present disclosure. The electronic device 100 may include control circuitry, which may include storage and processing circuitry 61. The storage and processing circuit 61 may be a memory, such as a hard disk drive memory, a non-volatile memory (e.g., a flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., a static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. The processing circuitry in the storage and processing circuitry 61 may be used to control the operation of the electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 61 may be used to run software in the electronic device 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, and the like, without limitation of embodiments of the present application.
The electronic device 100 may also include input-output circuitry 62. The input-output circuit 62 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from external devices and also to allow the electronic device 100 to output data from the electronic device 100 to external devices. The input-output circuit 62 may further include a sensor 63. The sensors 63 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
Input-output circuitry 62 may also include one or more displays, such as display 64. The display 64 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. The display 64 may include an array of touch sensors (i.e., the display 64 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
Electronic device 100 may also include audio component 65. The audio component 65 may be used to provide audio input and output functionality for the electronic device 100. Audio components 65 in electronic device 100 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
The communication circuit 66 may be used to provide the electronic device 100 with the ability to communicate with external devices. The communication circuitry 66 may include analog and digital input-output interface circuitry, and wireless communication circuitry based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 66 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 66 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 66 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 66 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 67. The input-output unit 67 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, etc.
A user may input commands through input-output circuitry 62 to control the operation of electronic device 100, and may use output data of input-output circuitry 62 to enable receipt of status information and other outputs from electronic device 100.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer program causes the computer to execute the charging management method in any one of the above embodiments, such as: when the adapter charges the equipment to be charged, the level information of the ID pin is acquired, whether the connecting wire is connected to the adapter or not is judged according to the level information of the ID pin, and if yes, the charging power of the adapter is reduced.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
It should be noted that, for the charging processing method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the charging processing method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the charging management method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
The charging circuit, the charging processing method, the electronic device, and the storage medium provided in the embodiments of the present application are described in detail above, and specific examples are applied herein to illustrate the principles and implementations of the present application, and the description of the embodiments above is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A charging circuit, comprising:
the adapter comprises a charging interface and a control chip;
the connecting line is used for being connected with the adapter through the charging interface, the interface of the connecting line comprises an ID pin, and the ID pin is connected to the control chip through the connecting line;
the control chip is used for acquiring charging information of the equipment to be charged according to the communication pins of the charging interface, judging whether the connecting wire is connected with the adapter or not according to the level of the ID pins, wherein the adapter is provided with two different interfaces, namely a Micro USB interface and a USB Type-C interface, and if yes, when the adapter charges the equipment to be charged according to the charging information, the charging power is reduced.
2. The charging circuit of claim 1, wherein the interface of the connecting wire comprises a Micro USB interface, and the adapter comprises a Micro USB interface and a USB Type-C interface.
3. The charging circuit of claim 2, wherein the Micro USB interface of the adapter comprises an ID pin.
4. The charging circuit of claim 3, wherein when the connecting wire is connected to the adapter, one end of the ID pin of the connecting wire is connected to one of the detection pins of the control chip, and the other end of the ID pin of the connecting wire is connected to the ID pin of the adapter.
5. The charging circuit according to claim 1, wherein the control chip obtains level information of the ID pin through the charging interface, selects one of a first charging power and a second charging power as a target charging power according to the level information, and controls the adapter to charge the device to be charged according to the target charging power, wherein the first charging power is greater than the second charging power.
6. The charging circuit of claim 5, wherein when the ID pin is high, the target charging power is determined to be the first charging power;
when the ID pin is at a low level, determining that the target charging power is the second charging power.
7. A charging processing method is applied to charging equipment and is characterized in that the charging equipment comprises an adapter and a connecting wire, the adapter comprises a charging interface and a control chip, the connecting wire is used for being connected with the adapter through the charging interface, the interface of the connecting wire comprises an ID pin, and the ID pin is connected to the control chip through the connecting wire; the method comprises the following steps:
when the adapter charges the equipment to be charged, acquiring the level information of the ID pin;
the charging method comprises the steps of obtaining charging information of equipment to be charged according to communication pins of a charging interface, judging whether a connecting wire is connected with an adapter or not according to level information of an ID pin, wherein the adapter is provided with two different interfaces, namely a Micro USB interface and a USB Type-C interface, and if yes, reducing charging power when the adapter charges the equipment to be charged according to the charging information.
8. The method of claim 7, wherein determining whether the connection line is connected to the adapter according to the level information of the ID pin comprises:
when the ID pin is at a low level, determining that the connecting line is connected to the adapter;
and when the ID pin is at a high level, determining that the connecting line is not connected with the adapter.
9. The charging processing method according to claim 7, wherein the step of reducing the charging power of the adapter includes: reducing a charging current of the adapter and/or reducing a charging voltage of the adapter.
10. An electronic device comprising a charging circuit and a battery, the charging circuit being connected to the battery, the charging circuit as claimed in any one of claims 1-6.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the charging processing method according to any one of claims 7 to 9.
CN201811377448.XA 2018-11-19 2018-11-19 Charging circuit, charging processing method, electronic device, and storage medium Active CN109450023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811377448.XA CN109450023B (en) 2018-11-19 2018-11-19 Charging circuit, charging processing method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811377448.XA CN109450023B (en) 2018-11-19 2018-11-19 Charging circuit, charging processing method, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN109450023A CN109450023A (en) 2019-03-08
CN109450023B true CN109450023B (en) 2021-08-31

Family

ID=65553144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811377448.XA Active CN109450023B (en) 2018-11-19 2018-11-19 Charging circuit, charging processing method, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN109450023B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995106A (en) * 2019-03-28 2019-07-09 维沃移动通信有限公司 A kind of charging circuit, terminal device and charging equipment
CN113690957A (en) * 2021-07-13 2021-11-23 华为数字能源技术有限公司 Adapter and output control method thereof
CN113394856B (en) * 2021-08-16 2021-11-05 山东普利斯林智能仪表有限公司 Electric energy conversion control method and system for lithium ion electrolyte battery
CN114465057B (en) * 2022-02-22 2023-11-03 成都天奥电子股份有限公司 Charging and multiple data communication interface supporting forward and backward insertion
CN115633111B (en) * 2022-12-21 2023-05-16 荣耀终端有限公司 Circuit board, related device and control method

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100070659A1 (en) * 2008-09-17 2010-03-18 Kenneth Ma Method and system for operating and/or charging a battery powered usb device based on a usb port type
DE102008048657A1 (en) * 2008-09-24 2010-03-25 Tim Baack Adapter and method for connecting an electrical load to a charging network
CN101685934B (en) * 2008-09-25 2011-09-21 宏达国际电子股份有限公司 Pluggable adaptor and potable system
KR101667707B1 (en) * 2009-10-22 2016-10-19 엘지전자 주식회사 Mobile terminal and usb dedicated charger determinating method thereof
CN104426194A (en) * 2013-09-06 2015-03-18 联想(北京)有限公司 Charging method and charging equipment
CN103972955B (en) * 2014-03-24 2016-05-25 西安乾易企业管理咨询有限公司 The power supply adaptor of a kind of USB interface charging handshake method and quickly-chargeable
CN104578276B (en) * 2014-12-24 2016-08-31 广东欧珀移动通信有限公司 Charging method, USB transmission line and power supply unit
TWI579678B (en) * 2015-08-13 2017-04-21 華碩電腦股份有限公司 Power adapter and control method thereof
CN106026228B (en) * 2016-05-26 2019-02-15 维沃移动通信有限公司 A kind of charging USB line, adapter and mobile terminal
CN106571657B (en) * 2016-09-28 2020-03-06 上海创功通讯技术有限公司 Terminal, converter, and connection conversion system and method
CN207251269U (en) * 2017-10-11 2018-04-17 东莞市太业电子股份有限公司 A kind of single delivery outlet voltage in several modes adaptive charger
CN108233131B (en) * 2017-12-29 2023-08-25 深圳市欢太科技有限公司 USB adapter for adapter and auxiliary tool for detecting adapter
CN108710593B (en) * 2018-05-24 2021-10-15 环旭电子股份有限公司 Power supply method and device based on Type-C connector

Also Published As

Publication number Publication date
CN109450023A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN109450023B (en) Charging circuit, charging processing method, electronic device, and storage medium
CN109378878B (en) Charging circuit, charging processing method, electronic device, and storage medium
US11288407B2 (en) Method and electronic device for controlling voltage output to external electronic device according to size of voltage detected at signal terminal connected to external electronic device
EP3562130B2 (en) Control method at wearable apparatus and related apparatuses
US20200008124A1 (en) Method for Controlling Earphone Switching and Earphone
CN112789581A (en) Electronic device for controlling screen attribute based on distance between pen input device and electronic device and method for controlling the same
US20100109602A1 (en) Charging device and method of operating the same
US8335870B2 (en) Method of controlling mobile terminal on external device basis and external device operating system using the same
CN109378877B (en) Charging circuit, charging processing method, electronic device, and storage medium
KR20140101958A (en) Apparatus and method for controlling charging path of mobile terminal
KR20200017308A (en) Electronic device for controlling communication connection with input device and method for controlling thereof
CN109995110B (en) Connector, electronic equipment, data transmission method and device
CN109217487B (en) Charging circuit and electronic device
CN109286219B (en) Charging circuit, charging processing method, electronic device, and storage medium
EP3614523B1 (en) Charging processing method and terminal device
CN109038863B (en) Electronic device
CN109525919B (en) On-off control device, on-off control method, system and storage medium
CN109286220B (en) Charging circuit, charging processing method, electronic device, and storage medium
CN108834206B (en) Control method of electronic device and electronic device
CN110190641B (en) Charging control circuit, terminal equipment and data line
CN108873759B (en) Circuit, circuit protection method and electronic equipment
CN109120033B (en) Electronic equipment and wireless charging system
CN103762390A (en) Charging method and action electronic device
CN113114188B (en) USB (Universal Serial bus) plug-in triggering starting circuit and electronic equipment
CN108988440B (en) Charging circuit, electronic device and charging method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant