CN107546808B - Charging identification circuit, identification method and terminal equipment - Google Patents

Charging identification circuit, identification method and terminal equipment Download PDF

Info

Publication number
CN107546808B
CN107546808B CN201710888368.XA CN201710888368A CN107546808B CN 107546808 B CN107546808 B CN 107546808B CN 201710888368 A CN201710888368 A CN 201710888368A CN 107546808 B CN107546808 B CN 107546808B
Authority
CN
China
Prior art keywords
usb
port
vbus
signal
audio
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
CN201710888368.XA
Other languages
Chinese (zh)
Other versions
CN107546808A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710888368.XA priority Critical patent/CN107546808B/en
Publication of CN107546808A publication Critical patent/CN107546808A/en
Application granted granted Critical
Publication of CN107546808B publication Critical patent/CN107546808B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a charging identification circuit, an identification method and terminal equipment, wherein the circuit comprises a USB type-C socket, a USB/AUDIO change-over switch, an external power module, a power management module, a CPU (central processing unit) processor and a battery; the power management module is respectively connected with the battery and the CPU processor and used for controlling the charging of the battery and providing electric energy for the CPU processor and the system platform; the USB type-C socket comprises a VBUS port, a USB D +/D-port and a grounding port; the external power module is respectively connected with the VBUS port, the battery and the USB/AUDIO change-over switch, and is used for receiving a VBUS signal from the VBUS port as an enabling signal and receiving voltage from the battery as an input power supply when the USB type-C socket is plugged into the charger, and transmitting a working power supply for the USB/AUDIO change-over switch to work after the VBUS signal is enabled. The invention can make the platform recognize the charger and charge normally when the battery voltage is too low to start hard.

Description

Charging identification circuit, identification method and terminal equipment
Technical Field
The invention relates to the technical field of terminal equipment charging, in particular to a charging identification circuit, an identification method and terminal equipment.
Background
Currently, most terminal products adopt a USB Type-C socket for charging and data transmission, and in the circuit structure of the Type-C interface, the USB and the audio signal share two signal pins of the Type-C interface. In order to solve the problem of sharing a signal pin, a USB/AUDIO switch is usually disposed on the Type-c interface for switching a USB channel and an AUDIO channel.
When the terminal is plugged into the charger for charging, the USB/AUDIO switch is in a working state before the charger is plugged and detected, namely, the USB channel is conducted after switching. Because the charging detection needs to use the USB D +/D-signal to communicate with the CPU, the normal communication can ensure the normal charging identification, otherwise, the charger identification error and the abnormal charging current can occur after the charger is inserted, thus leading to the abnormal charging.
The USB/AUDIO change-over switch is an active device, so that an external power supply is required for supplying power during operation. At present, the power supply of the USB/AUDIO change-over switch of the terminal equipment is provided by a battery of a system platform. When the battery voltage is lower, such as 2.5V-3.0V, the platform cannot be started up and even started up, the platform itself cannot output power to supply the USB/AUDIO switch, and the charger is inserted, the system cannot recognize and charge. When the battery voltage is lower than the hard start voltage of the system platform, the system cannot be started even if a charger is inserted, and various voltages cannot be output to be used by peripheral devices, so that inconvenience is brought to use.
Disclosure of Invention
The invention mainly aims to provide a charging identification circuit, an identification method and a terminal device, and aims to solve the problems that the system cannot be started even a charger is inserted and various voltages cannot be output for peripheral devices when the battery voltage of the conventional terminal device is lower and lower than the voltage for hard start of a system platform.
In order to achieve the purpose, the charging identification circuit provided by the invention comprises a USBtype-C socket, a USB/AUDIO switch, an external power module, a power management module, a CPU (central processing unit) processor and a battery;
the power management module is respectively connected with the battery and the CPU processor and used for controlling the charging of the battery and providing electric energy for the CPU processor and the system platform;
the USB type-C socket comprises a VBUS port, a USB D +/D-port and a grounding port;
the external power module is respectively connected with the VBUS port, the battery and the USB/AUDIO change-over switch, and is used for receiving a VBUS signal from the VBUS port as an enabling signal and receiving voltage from the battery as an input power supply when the USB type-C socket is inserted into the charger, and transmitting a working power supply for the USB/AUDIO change-over switch to work after the VBUS signal is enabled;
the USB/AUDIO change-over switch is respectively connected with the USB D +/D-port, the power management module and the CPU, and is used for receiving an enabling signal from the CPU when the USB Type-C socket is inserted into the charger, and switching the USB/AUDIO change-over switch to a USB channel connected with the power management module after receiving a working power supply from the external power module, at the moment, a USB D +/D-signal of the charger is input to the power management module through the USB Type-C socket and the USB/AUDIO change-over switch in sequence, and the power management module detects the USB D +/D-signal and transmits the USB D +/D-signal to the CPU to start the charger identification and detection;
the power management module is also connected with the VBUS port and used for receiving the VBUS signal from the VBUS port after the charging identification is completed and charging the battery by using the electric energy of the VBUS signal.
Preferably, the port on the external power module for receiving the VBUS signal from the VBUS port is an enable port, and the enable port is further connected to the power management module.
Preferably, the USB/AUDIO switch is further provided with an earphone channel for connecting an AUDIO processor, when the USB type-C socket is plugged into an earphone, the enable terminal of the external power module receives an enable signal from the power management module to enable, and after enabling, supplies operating power for the USB/AUDIO switch to operate.
Preferably, a first diode VD1 is connected in series between the enable port of the external power module and the VBUS port of the USB type-C socket, and the cathode of the first diode VD1 is connected with the enable port; a second diode VD2 is connected in series between the enable port and the power management module, and the cathode of the second diode VD2 is connected to the enable port.
Preferably, a voltage dividing resistor is further arranged between the anode of the first diode VD1 and the VBUS port, the voltage dividing resistor includes a first resistor R1 and a second resistor R2, the first resistor R1 is connected in series between the first diode VD1 and the VBUS, one end of the second resistor R2 is grounded, and the other end of the second resistor R2 is connected to the anode of the first diode VD 1.
Preferably, a port on the external power module for receiving voltage from the battery is a power input end, and a first filter capacitor C1 is connected between the power input end and the ground; and a port on the external power module, which is used for outputting working power to the USB/AUDIO change-over switch, is a power output port, and a second filter capacitor C2 is connected between the power output port and the ground.
Preferably, the external power module is an LDO power supply or a Buck power supply.
In order to achieve the above object, the present invention further provides a method for identifying a charging identification circuit, including the steps of:
s1, inserting a charger, wherein the charger outputs VBUS voltage signals to the charging management module and the external power module, and outputs USB D +/D-signals to the USB/AUDIO switch;
s2, the external power module receives the VBUS signal to enable, and after the time T1, the power is output to the USB/AUDIO change-over switch;
s3, the USB/AUDIO switch receives the working power supply from the external power module, switches to the USB channel after the time T2, and transmits the USB D +/D-signal to the charging management module;
s4, starting charging identification detection after time T0 after the system platform receives a VBUS voltage signal from the power management module;
and S5, judging whether the USB/AUDIO switch is switched to the USB channel before starting the charging identification detection, if so, correctly identifying the charger and normally charging, otherwise, not identifying the charger and not charging.
Preferably, the T1 is a time when the external power module works and outputs power, the T2 is a time when the USB/AUDIO switch switches channels, and the T0 is a time when the T0 is a default detection time of the system platform.
Preferably, the time T0 is greater than the sum of the time T1 and the time T2.
The invention also provides terminal equipment comprising the charging identification circuit.
The charging identification circuit provided by the invention comprises a USB type-C socket, a USB/AUDIO change-over switch, an external power module, a power management module, a CPU processor and a battery; the power management module is respectively connected with the battery and the CPU processor and used for controlling the charging of the battery and providing electric energy for the CPU processor and the system platform; the USB type-C socket comprises a VBUS port, a USB D +/D-port and a grounding port; the external power module is respectively connected with the VBUS port, the battery and the USB/AUDIO change-over switch, and is used for receiving a VBUS signal from the VBUS port as an enabling signal and receiving voltage from the battery as an input power supply when the USB type-C socket is inserted into the charger, and transmitting a working power supply for the USB/AUDIO change-over switch to work after the VBUS signal is enabled; the USB/AUDIO change-over switch is respectively connected with the USB D +/D-port, the power management module and the CPU, and is used for receiving an enabling signal from the CPU when the USB Type-C socket is inserted into the charger, and switching the USB/AUDIO change-over switch to a USB channel connected with the power management module after receiving a working power supply from the external power module, at the moment, a USB D +/D-signal of the charger is input to the power management module through the USB Type-C socket and the USB/AUDIO change-over switch in sequence, and the power management module detects the USB D +/D-signal and transmits the USB D +/D-signal to the CPU to start the charger identification and detection; the power management module is also connected with the VBUS port and used for receiving the VBUS signal from the VBUS port after the charging identification is completed and charging the battery by using the electric energy of the VBUS signal. The invention optimizes the working time sequence of the USB/AUDIO change-over switch and the external power module for supplying power to the change-over switch, ensures that the charger can be correctly identified and correctly charged when the battery is in a low voltage state and a normal voltage state, and avoids the phenomenon that the battery cannot be charged when the battery is in a low voltage state.
The invention provides an identification method of a charging identification circuit, which comprises the following steps: s1, inserting a charger, wherein the charger outputs VBUS voltage signals to the charging management module and the external power module, and outputs USB D +/D-signals to the USB/AUDIO switch; s2, the external power module receives the VBUS signal to enable, and after the time T1, the power is output to the USB/AUDIO change-over switch; s3, the USB/AUDIO switch receives the working power supply from the external power module, switches to the USB channel after the time T2, and transmits the USB D +/D-signal to the charging management module; s4, starting charging identification detection after time T0 after the system platform receives a VBUS voltage signal from the power management module; and S5, judging whether the USB/AUDIO switch is switched to the USB channel before starting the charging identification detection, if so, correctly identifying the charger and normally charging, otherwise, not identifying the charger and not charging. The invention optimizes the working time sequence of the USB/AUDIO change-over switch and the external power module for supplying power to the change-over switch, ensures that the charger can be correctly identified and correctly charged when the battery is in a low voltage state and a normal voltage state, and avoids the phenomenon that the battery cannot be charged when the battery is in a low voltage state.
The terminal equipment provided by the invention optimizes the working time sequence of the USB/AUDIO change-over switch and the external power module for supplying power to the change-over switch by comprising the charging identification circuit, ensures that the charger can be correctly identified and correctly charged when the battery is in a low voltage state and a normal voltage state, and avoids the phenomenon that the battery cannot be charged when the battery is in a low voltage state.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal device implementing various embodiments of the present invention;
fig. 2 is a schematic diagram of a wireless communication system of the mobile terminal device shown in fig. 1;
FIG. 3 is a block diagram of a system configuration of a first embodiment of the charger identification circuit of the present invention;
FIG. 4 is a timing diagram illustrating operation of the terminal device according to the present invention;
FIG. 5 is a block diagram of a system of a second embodiment of the charger identification circuit of the present invention;
FIG. 6 is a block diagram of a system of a third embodiment of the charger identification circuit of the present invention;
FIG. 7 is a hardware circuit diagram of the LDO of the present invention;
FIG. 8 is a hardware circuit diagram of the USB/AUDIO switch of the present invention;
fig. 9 is a flowchart of a method of the fourth embodiment of the identification method of the charging identification circuit according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal device may be implemented in various forms. For example, the terminal devices described in the present invention may include mobile terminal devices such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminal devices such as a Digital TV, a desktop computer, and the like.
In the following description, a mobile terminal device will be exemplified, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal device in addition to elements particularly used for moving purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal device for implementing various embodiments of the present invention, the mobile terminal device 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal device configuration shown in fig. 1 does not constitute a limitation of the mobile terminal device, and that the mobile terminal device may comprise more or less components than those shown, or may combine certain components, or may be arranged of different components.
The following describes each component of the mobile terminal device in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal equipment can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal device 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal device 100 further comprises at least one sensor 105, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal device. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal device, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal apparatus 100 or may be used to transmit data between the mobile terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a view required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal device, connects various parts of the entire mobile terminal device using various interfaces and lines, and performs various functions of the mobile terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, views, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Although not shown in fig. 1, the mobile terminal device 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal device of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal device 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above hardware structure of the mobile terminal device and the communication network system, various embodiments of the present invention are proposed.
The invention provides a charging identification circuit, which is applied to terminal equipment (such as a mobile terminal), and comprises a USB type-C socket, a USB/AUDIO change-over switch, an external power module, a power management module, a CPU (central processing unit) processor and a battery, wherein the CPU processor and the battery are respectively connected with the power management module; the USB type-C socket is respectively and electrically connected with the USB/AUDIO change-over switch, the power management module and the external power module, and is used for respectively providing a VBUS signal for the USB/AUDIO change-over switch, the power management module and the external power module when the USB type-C socket is inserted into a charger and providing a charging voltage VBAT for charging a battery for the external power module; the USB/AUDIO change-over switch is electrically connected with the USB type-C socket, the external power module and the power management module respectively, receives a VBUS signal from the USB type-C socket and is used for switching and communicating a USB channel between the USB/AUDIO change-over switch and the power management module, receives charging voltage VBAT of the external power module and inputs the charging voltage VBAT to the power management module through the USB channel so as to charge the battery. The USB/AUDIO change-over switch and the external power module both adopt a VBUS signal of the charger as an enabling signal, and the VBUS signal can be provided as long as the charger is inserted, and the USB/AUDIO change-over switch and the external power module can be input and enabled to work normally, so that a charging platform of the terminal equipment does not only rely on a signal output by a power management module of the platform as the enabling signal, and the charger can be correctly identified and normally charged even if the platform is too low in battery voltage to be started hard.
Example one
As shown in fig. 3, the system structure block diagram of the first embodiment of the charger identification circuit of the present invention is presented, and compared with the conventional scheme, it can be understood that when the battery is in a low state, the system platform cannot start, which means that the battery voltage is too low and lower than the system platform hard start voltage, for example: when the battery voltage is lower than 3V and the voltage required by the hard start of the system platform is at least more than 3V, the system platform cannot be hard started at this time. At present, in the conventional charging identification scheme, a power supply (i.e., the output of a power management module) output by a system platform is used as an enable signal of an external power supply, so that the charging circuit cannot be started and identified during the battery bottom voltage.
In order to overcome the defects of the traditional charging identification circuit, the charging identification circuit provided by the invention ensures that the charger can be correctly identified when the battery is in a low voltage state and a normal voltage state, so that normal charging is carried out.
The charging identification circuit comprises a USB type-C socket, a USB/AUDIO change-over switch, an external power module, a power management module, a CPU (central processing unit) processor and a battery;
the power management module is respectively connected with the battery and the CPU processor and used for controlling the charging of the battery and providing electric energy for the CPU processor and the system platform;
the USB type-C socket comprises a VBUS port, a USB D +/D-port and a grounding port;
the external power module is respectively connected with the VBUS port, the battery and the USB/AUDIO change-over switch, and is used for receiving a VBUS signal from the VBUS port as an enabling signal and receiving voltage from the battery as an input power supply when the USB type-C socket is inserted into the charger, and transmitting a working power supply for the USB/AUDIO change-over switch to work after the VBUS signal is enabled;
the USB/AUDIO change-over switch is respectively connected with the USB D +/D-port, the power management module and the CPU, and is used for receiving an enabling signal from the CPU when the USB Type-C socket is inserted into the charger, and switching the USB/AUDIO change-over switch to a USB channel connected with the power management module after receiving a working power supply from the external power module, at the moment, a USB D +/D-signal of the charger is input to the power management module through the USB Type-C socket and the USB/AUDIO change-over switch in sequence, and the power management module detects the USB D +/D-signal and transmits the USB D +/D-signal to the CPU to start the charger identification and detection;
the power management module is also connected with the VBUS port and used for receiving the VBUS signal from the VBUS port after the charging identification is completed and charging the battery by using the electric energy of the VBUS signal.
Specifically, when the USB type-C socket is plugged into the charger, the VBUS port of the USB type-C socket immediately outputs a VBUS voltage signal as an enable signal of the external power module, and the voltage VBAT of the battery is used as the external power module input power Vin 1. It will be appreciated here that since the external power module is directly connected to the battery, if the battery is at a low voltage, the system platform will still be able to provide the voltage of the input power to the external power module, although it will not be able to be hard-started. When the external power module has the enabling and inputting power, the external power module outputs the voltage Vout immediately, the elapsed time of the external power in the process is T1, the time T1 in the actual process is short, and the external power module can be almost considered to be synchronous with VBUS according to the working characteristics of the external power module.
When the output voltage Vout is supplied to the USB/AUDIO switch as the working power supply, the USB/AUDIO switch works and is switched to the USB channel, and a D +/D-signal for detecting the USB by the charger is transmitted to the power management module. The elapsed time of the USB/AUDIO switch in this process is T2, the time T2 is the switch internal switching time, and T2 is several milliseconds.
After the charger is inserted into the USB type-C socket, the power management module detects that VBUS voltage exists, meanwhile, after the charger is inserted, a USB D +/D-signal is transmitted to the PM power management module through the USB/AUDIO switch, at the moment, the power management module communicates with the CPU processor, namely detection and charging parameter configuration are carried out according to a charging protocol, and normal charging is started after normal recognition. It should be noted that the communication between the power management module and the CPU processor, and how to identify the power management module, belong to the prior art, and are not described in detail herein.
As shown in fig. 4, which is an operation timing diagram of the terminal device of the present invention, when the power management module detects that VBUS voltage starts, and the system platform detects and identifies the charger after time T0 is reached, the time T0 is hundreds of milliseconds, and T0> T1+ T2, the USB channel is turned on before the charge detection communication, that is, the power management module communicates with the charger, and the USB D +/D-signal is transmitted to the power management module, so that the system can correctly identify the charger and normally charge.
The charging identification circuit of the first embodiment, which comprises a USB type-C socket, a USB/AUDIO switch, an external power module, a power management module, a CPU processor and a battery; the power management module is respectively connected with the battery and the CPU processor and used for controlling the charging of the battery and providing electric energy for the CPU processor and the system platform; the USBtype-C socket comprises a VBUS port, a USB D +/D-port and a grounding port; the external power module is respectively connected with the VBUS port, the battery and the USB/AUDIO change-over switch, and is used for receiving a VBUS signal from the VBUS port as an enabling signal and receiving voltage from the battery as an input power supply when the USB type-C socket is inserted into the charger, and transmitting a working power supply for the USB/AUDIO change-over switch to work after the VBUS signal is enabled; the USB/AUDIO change-over switch is respectively connected with the USB D +/D-port, the power management module and the CPU, and is used for receiving an enabling signal from the CPU when the USB Type-C socket is inserted into the charger, and switching the USB/AUDIO change-over switch to a USB channel connected with the power management module after receiving a working power supply from the external power module, at the moment, a USB D +/D-signal of the charger is input to the power management module through the USB Type-C socket and the USB/AUDIO change-over switch in sequence, and the power management module detects the USB D +/D-signal and transmits the USB D +/D-signal to the CPU to start the charger identification and detection; the power management module is also connected with the VBUS port and used for receiving the VBUS signal from the VBUS port after the charging identification is completed and charging the battery by using the electric energy of the VBUS signal. The invention optimizes the working time sequence of the USB/AUDIO change-over switch and the external power module for supplying power to the change-over switch, ensures that the charger can be correctly identified and correctly charged when the battery is in a low voltage state and a normal voltage state, and avoids the phenomenon that the battery cannot be charged when the battery is in a low voltage state.
Example two
As shown in fig. 5, the charger identification circuit of the present invention is a block diagram of a system according to a second embodiment. The second embodiment is basically similar to the first embodiment, except that the external power module is compatible with the power supply of the system platform and the power supply signal output by the power management module, and when the USB type-C socket is not plugged into the charger, the external power module and the USB/AUDIO switch can still work normally, so as not to affect the detection and identification of the AUDIO accessory.
The charger identification circuit of the second embodiment, comprising a USB type-C socket, a USB/AUDIO switch, an external power module, a power management module, a CPU processor and a battery;
the power management module is respectively connected with the battery and the CPU processor and used for controlling the charging of the battery and providing electric energy for the CPU processor and the system platform;
the USB type-C socket comprises a VBUS port, a USB D +/D-port and a grounding port;
the external power module is respectively connected with the VBUS port, the battery and the USB/AUDIO change-over switch, and is used for receiving a VBUS signal from the VBUS port as an enabling signal and receiving voltage from the battery as an input power supply when the USB type-C socket is inserted into the charger, and transmitting a working power supply for the USB/AUDIO change-over switch to work after the VBUS signal is enabled;
the USB/AUDIO change-over switch is respectively connected with the USB D +/D-port, the power management module and the CPU, and is used for receiving an enabling signal from the CPU when the USB Type-C socket is inserted into the charger, and switching the USB/AUDIO change-over switch to a USB channel connected with the power management module after receiving a working power supply from the external power module, at the moment, a USB D +/D-signal of the charger is input to the power management module through the USB Type-C socket and the USB/AUDIO change-over switch in sequence, and the power management module detects the USB D +/D-signal and transmits the USB D +/D-signal to the CPU to start the charger identification and detection;
the power management module is also connected with the VBUS port and used for receiving the VBUS signal from the VBUS port after the charging identification is completed and charging the battery by using the electric energy of the VBUS signal.
Preferably, the port on the external power module for receiving the VBUS signal from the VBUS port is an enable port, and the enable port is further connected to the power management module.
Preferably, the USB/AUDIO switch is further provided with an earphone channel for connecting an AUDIO processor, when the USB type-C socket is plugged into an earphone, the enable terminal of the external power module receives an enable signal from the power management module to enable, and after enabling, supplies operating power for the USB/AUDIO switch to operate.
Preferably, a first diode VD1 is connected in series between the enable port of the external power module and the VBUS port of the USB type-C socket, and the cathode of the first diode VD1 is connected with the enable port; a second diode VD2 is connected in series between the enabling port and the power management module, the cathode of the second diode VD2 is connected with the enabling port, and the first diode VD1 and the second diode VD2 are used for isolating the two input signals of the enabling port, so that the two signals are prevented from flowing backwards when existing at the same time.
Preferably, a port on the external power module for receiving voltage from the battery is a power input end, and a first filter capacitor C1 is connected between the power input end and the ground; and a port on the external power module, which is used for outputting working power to the USB/AUDIO change-over switch, is a power output port, and a second filter capacitor C2 is connected between the power output port and the ground.
By adopting the above technical solution, the external power modules not only all use the VBUS signal of the charger as the enable signal, but also the enable port is compatible with the power signal provided by the power management module as the enable signal. The charging identification circuit can correctly identify the charger after the charger is inserted, and in addition, when an AUDIO accessory (an earphone or an earphone) is inserted into the USB type-C socket, the external power module adopts an enabling signal output by the electric tube management module to provide a working power supply for the USB/AUDIO change-over switch, so that the USB/AUDIO change-over switch is switched to an AUDIO channel for AUDIO output, and the charging identification circuit of the embodiment is not limited to the condition that the charger is inserted into the USB type-C socket to identify the charging state, and can also identify and output the AUDIO signal when the USB type-C socket is inserted into the AUDIO accessory.
EXAMPLE III
As shown in fig. 6, the charger identification circuit of the present invention is a block diagram of a system according to a third embodiment. The third embodiment is substantially similar to the first and second embodiments, except that the VBUS signal is divided by a voltage dividing resistor and then connected to an enable port of an external power module.
The charger identification circuit of the second embodiment, comprising a USB type-C socket, a USB/AUDIO switch, an external power module, a power management module, a CPU processor and a battery;
the power management module is respectively connected with the battery and the CPU processor and used for controlling the charging of the battery and providing electric energy for the CPU processor and the system platform;
the USB type-C socket comprises a VBUS port, a USB D +/D-port and a grounding port;
the external power module is respectively connected with the VBUS port, the battery and the USB/AUDIO change-over switch, and is used for receiving a VBUS signal from the VBUS port as an enabling signal and receiving voltage from the battery as an input power supply when the USB type-C socket is inserted into the charger, and transmitting a working power supply for the USB/AUDIO change-over switch to work after the VBUS signal is enabled;
the USB/AUDIO change-over switch is respectively connected with the USB D +/D-port, the power management module and the CPU, and is used for receiving an enabling signal from the CPU when the USB Type-C socket is inserted into the charger, and switching the USB/AUDIO change-over switch to a USB channel connected with the power management module after receiving a working power supply from the external power module, at the moment, a USB D +/D-signal of the charger is input to the power management module through the USB Type-C socket and the USB/AUDIO change-over switch in sequence, and the power management module detects the USB D +/D-signal and transmits the USB D +/D-signal to the CPU to start the charger identification and detection;
the power management module is also connected with the VBUS port and used for receiving the VBUS signal from the VBUS port after the charging identification is completed and charging the battery by using the electric energy of the VBUS signal.
Preferably, the port on the external power module for receiving the VBUS signal from the VBUS port is an enable port, and the enable port is further connected to the power management module.
Preferably, the USB/AUDIO switch is further provided with an earphone channel for connecting an AUDIO processor, when the USB type-C socket is plugged into an earphone, the enable terminal of the external power module receives an enable signal from the power management module to enable, and after enabling, supplies operating power for the USB/AUDIO switch to operate.
Preferably, a first diode VD1 is connected in series between the enable port of the external power module and the VBUS port of the USB type-C socket, and the cathode of the first diode VD1 is connected with the enable port; a second diode VD2 is connected in series between the enable port and the power management module, and the cathode of the second diode VD2 is connected to the enable port.
Preferably, a voltage dividing resistor is further arranged between the anode of the first diode VD1 and the VBUS port, the voltage dividing resistor includes a first resistor R1 and a second resistor R2, the first resistor R1 is connected in series between the first diode VD1 and the VBUS, one end of the second resistor R2 is grounded, the other end of the second resistor R2 is connected with the anode of the first diode VD1, the voltage dividing resistor is used for dividing the VBUS signal input from the enable port of the LDO, and the problem that the chip is damaged due to too high output VBUS when chargers of the types QC2.09V and QC3.012V are used can be effectively avoided.
Preferably, the resistance value of the divider resistor is reasonably selected to divide the VBUS voltage, so that the VBUS voltage output by the chargers of different models can reach the working range (Vin min-Vin max) of the LDO enable signal. For example, a 5V charger is adopted, the types of the chargers are QC2.09V and QC3.012V, and the VBUS voltage output by the chargers can fall in the working range of an LDO (low dropout regulator) enabling signal after reasonable voltage division, so that the terminal equipment can correctly identify the chargers of various types by adopting the identification circuit and can normally charge.
Preferably, a port on the external power module for receiving voltage from the battery is a power input end, and a first filter capacitor C1 is connected between the power input end and the ground; and a port on the external power module, which is used for outputting working power to the USB/AUDIO change-over switch, is a power output port, and a second filter capacitor C2 is connected between the power output port and the ground.
Preferably, the external power module is an LDO power supply or a Buck power supply.
Specifically, when the power supply module is an LDO power supply, the model of the LDO is TLV70733PDQNR, RP114K331D-TRB, or AP7343D-33FS4-7B, and of course, the model of the LDO may be other specifications with the same function.
Referring to fig. 7, which is a hardware circuit diagram of the LDO of the present invention, in order to further understand the function of the LDO, the input/output signals of the functional pins of the LDO are provided below with reference to fig. 7, as shown in table one:
watch 1
Figure BDA0001420610190000241
Figure BDA0001420610190000251
Referring to fig. 8, which is a hardware circuit diagram of the USB/AUDIO switch of the present invention, in order to further understand the function of the USB/AUDIO switch, the following provides the input/output signals of the functional pins of the USB/AUDIO switch with reference to fig. 8, as shown in table two:
watch two
Figure BDA0001420610190000252
Figure BDA0001420610190000261
In the embodiment, by adopting the above technical solution, the external power module not only uses the VBUS signal of the charger as the enabling signal, but also the enabling port is compatible with the power signal provided by the power management module as the enabling signal, so that the charging identification circuit can not only correctly identify the charger after the charger is inserted, but also, when the USB type-C socket is inserted into an AUDIO accessory (earphone or headset), the external power module uses the enabling signal output by the tube management module to provide the operating power for the USB/AUDIO switch, so that the USB/AUDIO switch is switched to the AUDIO channel for AUDIO output, and after the charger is inserted, the VBUS signal is divided by the voltage dividing resistor and input to the enabling end of the external power module, so that the VBUS voltage signals output by the chargers of different models can fall within the operating range of the enabling signal of the external power module when the voltage dividing ratio is reasonably selected, so that the charging identification circuit can correctly identify and normally charge.
Example four
As shown in fig. 9, the method of the fourth embodiment provided by the identification method of the charging identification circuit of the present invention is applied to a terminal device (e.g., a mobile terminal) for identifying a charger connected to the charging identification circuit, so as to correctly charge the terminal device, and particularly, when the battery level is low and a system platform of the terminal device cannot be started, the charger can be correctly identified and charged.
The method comprises the following steps:
step S1, inserting a charger, wherein the charger outputs VBUS voltage signal to the charging management module and the external power module, and outputs USB D +/D-signal to the USB/AUDIO switch;
step S2, the external power module receives the VBUS signal for enabling, and after the time T1, the power is output to the USB/AUDIO change-over switch;
step S3, the USB/AUDIO switch receives the working power supply from the external power module, switches to the USB channel after the time T2, and transmits the USB D +/D-signal to the charging management module;
step S4, the system platform starts charging identification detection after time T0 from the time when the power management module receives the VBUS voltage signal;
step S5, determine whether the USB/AUDIO switch has been switched to the USB channel before starting the charging identification detection, if so, correctly identify the charger and charge normally, otherwise, the charger cannot be identified and charge cannot be performed.
It should be noted that the above identification method is based on a charging identification circuit, and therefore, the following charging identification circuit is specifically described:
the charger identification circuit comprises a USB type-C socket, a USB/AUDIO change-over switch, an external power module, a power management module, a CPU (central processing unit) processor and a battery;
the power management module is respectively connected with the battery and the CPU processor and used for controlling the charging of the battery and providing electric energy for the CPU processor and the system platform;
the USB type-C socket comprises a VBUS port, a USB D +/D-port and a grounding port;
the external power module is respectively connected with the VBUS port, the battery and the USB/AUDIO change-over switch, and is used for receiving a VBUS signal from the VBUS port as an enabling signal and receiving voltage from the battery as an input power supply when the USB type-C socket is inserted into the charger, and transmitting a working power supply for the USB/AUDIO change-over switch to work after the VBUS signal is enabled;
the USB/AUDIO change-over switch is respectively connected with the USB D +/D-port, the power management module and the CPU, and is used for receiving an enabling signal from the CPU when the USB Type-C socket is inserted into the charger, and switching the USB/AUDIO change-over switch to a USB channel connected with the power management module after receiving a working power supply from the external power module, at the moment, a USB D +/D-signal of the charger is input to the power management module through the USB Type-C socket and the USB/AUDIO change-over switch in sequence, and the power management module detects the USB D +/D-signal and transmits the USB D +/D-signal to the CPU to start the charger identification and detection;
the power management module is also connected with the VBUS port and used for receiving the VBUS signal from the VBUS port after the charging identification is completed and charging the battery by using the electric energy of the VBUS signal.
Specifically, when the USB type-C socket is plugged into the charger, the VBUS port of the USB type-C socket immediately outputs a VBUS voltage signal as an enable signal of the external power module, and the voltage VBAT of the battery is used as the external power module input power Vin 1. It will be appreciated here that since the external power module is directly connected to the battery, if the battery is at a low voltage, the system platform will still be able to provide the voltage of the input power to the external power module, although it will not be able to be hard-started. When the external power module has the enabling and inputting power, the external power module outputs the voltage Vout immediately, the elapsed time of the external power in the process is T1, the time T1 in the actual process is short, and the external power module can be almost considered to be synchronous with VBUS according to the working characteristics of the external power module.
When the output voltage Vout is supplied to the USB/AUDIO switch as the working power supply, the USB/AUDIO switch works and is switched to the USB channel, and a D +/D-signal for detecting the USB by the charger is transmitted to the power management module. The elapsed time of the USB/AUDIO switch in this process is T2, the time T2 is the switch internal switching time, and T2 is several milliseconds.
Preferably, the time T0 is greater than the sum of the time T1 and the time T2.
After the charger is inserted into the USB type-C socket, the power management module detects that VBUS voltage exists, meanwhile, after the charger is inserted, a USB D +/D-signal is transmitted to the PM power management module through the USB/AUDIO switch, at the moment, the power management module communicates with the CPU processor, namely detection and charging parameter configuration are carried out according to a charging protocol, and normal charging is started after normal recognition. It should be noted that the communication between the power management module and the CPU processor, and how to identify the power management module, belong to the prior art, and are not described in detail herein.
Preferably, the T1 is a time when the external power module works and outputs power, the T2 is a time when the USB/AUDIO switch switches channels, and the T0 is a time when the T0 is a default detection time of the system platform.
Preferably, the port on the external power module for receiving the VBUS signal from the VBUS port is an enable port, and the enable port is further connected to the power management module.
Preferably, the USB/AUDIO switch is further provided with an earphone channel for connecting an AUDIO processor, when the USB type-C socket is plugged into an earphone, the enable terminal of the external power module receives an enable signal from the power management module to enable, and after enabling, supplies operating power for the USB/AUDIO switch to operate.
Preferably, a first diode VD1 is connected in series between the enable port of the external power module and the VBUS port of the USB type-C socket, and the cathode of the first diode VD1 is connected with the enable port; a second diode VD2 is connected in series between the enable port and the power management module, and the cathode of the second diode VD2 is connected to the enable port.
Preferably, a voltage dividing resistor is further arranged between the anode of the first diode VD1 and the VBUS port, the voltage dividing resistor includes a first resistor R1 and a second resistor R2, the first resistor R1 is connected in series between the first diode VD1 and the VBUS, one end of the second resistor R2 is grounded, the other end of the second resistor R2 is connected with the anode of the first diode VD1, the voltage dividing resistor is used for dividing the VBUS signal input from the enable port of the LDO, and the problem that the chip is damaged due to too high output VBUS when chargers of the types QC2.09V and QC3.012V are used can be effectively avoided.
Preferably, the resistance value of the divider resistor is reasonably selected to divide the VBUS voltage, so that the VBUS voltage output by the chargers of different models can reach the working range (Vin min-Vin max) of the LDO enable signal. For example, a 5V charger is adopted, the types of the chargers are QC2.09V and QC3.012V, and the VBUS voltage output by the chargers can fall in the working range of an LDO (low dropout regulator) enabling signal after reasonable voltage division, so that the terminal equipment can correctly identify the chargers of various types by adopting the identification circuit and can normally charge.
Preferably, a port on the external power module for receiving voltage from the battery is a power input end, and a first filter capacitor C1 is connected between the power input end and the ground; and a port on the external power module, which is used for outputting working power to the USB/AUDIO change-over switch, is a power output port, and a second filter capacitor C2 is connected between the power output port and the ground.
Preferably, the external power module is an LDO power supply or a Buck power supply.
By adopting the technical scheme, the invention optimizes the working time sequence of the USB/AUDIO change-over switch and the external power module for supplying power to the change-over switch, ensures that the charger can be correctly identified and correctly charged when the battery is in a low voltage state and a normal voltage state, and avoids the phenomenon that the battery cannot be charged when the battery is in a low voltage state. In addition, when the USB type-C socket is inserted into an AUDIO accessory (earphone or headset), the external power module adopts an enabling signal output by the electric tube management module to provide a working power supply for the USB/AUDIO change-over switch, so that the USB/AUDIO change-over switch is switched to an AUDIO channel for AUDIO output, the charging identification circuit of the embodiment is not limited to the USB type-C socket to be inserted with a charger to identify the charging state, and can also identify and output an AUDIO signal when the USB type-C socket is inserted into the AUDIO accessory.
The invention further provides a terminal device, and the charging identification circuit of any embodiment of the terminal device. The terminal device may be an electronic device such as a mobile phone, a notebook computer or a tablet computer, which is not exemplified herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A charging identification circuit is characterized by comprising a USB type-C socket, a USB/AUDIO change-over switch, an external power module, a power management module, a CPU processor and a battery;
the power management module is respectively connected with the battery and the CPU processor and used for controlling the charging of the battery and providing electric energy for the CPU processor and the system platform;
the USB type-C socket comprises a VBUS port, a USB D +/D-port and a grounding port;
the external power module is respectively connected with the VBUS port, the battery and the USB/AUDIO change-over switch, and is used for receiving a VBUS signal from the VBUS port as an enabling signal and receiving voltage from the battery as an input power source when the USB type-C socket is plugged into a charger, and transmitting a working power source for the USB/AUDIO change-over switch to work after the USB/AUDIO change-over switch is enabled, a port on the external power module, which is used for receiving the VBUS signal from the VBUS port, is an enabling port, the enabling port is also connected with the power management module, a first diode VD1 is connected in series between the enabling port of the external power module and the VBUS port of the USB type-C socket, and the cathode of the first diode VD1 is connected with the enabling port; a second diode VD2 is connected in series between the enable port and the power management module, a cathode of the second diode VD2 is connected with the enable port, a voltage dividing resistor is further arranged between an anode of the first diode VD1 and the VBUS port, the voltage dividing resistor comprises a first resistor R1 and a second resistor R2, the first resistor R1 is connected in series between the first diode VD1 and the VBUS, one end of the second resistor R2 is grounded, and the other end of the second resistor R2 is connected with an anode of the first diode VD 1;
the USB/AUDIO change-over switch is respectively connected with the USB D +/D-port, the power management module and the CPU, and is used for receiving an enabling signal from the CPU when the USB Type-C socket is inserted into the charger, and switching the USB/AUDIO change-over switch to a USB channel connected with the power management module after receiving a working power supply from the external power module, at the moment, a USB D +/D-signal of the charger is input to the power management module through the USB Type-C socket and the USB/AUDIO change-over switch in sequence, and the power management module detects the USB D +/D-signal and transmits the USB D +/D-signal to the CPU to start the charger identification and detection;
the power management module is also connected with the VBUS port and used for receiving the VBUS signal from the VBUS port after the charging identification is completed and charging the battery by using the electric energy of the VBUS signal.
2. The charging identification circuit of claim 1, wherein the USB/AUDIO switch is further provided with an earphone channel for connecting an AUDIO processor, when the USB type-C socket is plugged into an earphone, the enable terminal of the external power module receives an enable signal from the power management module to enable, and after being enabled, supplies operating power for the USB/AUDIO switch to operate.
3. The charging identification circuit of claim 1, wherein the port of the external power module for receiving the voltage from the battery is a power input terminal, and a first filter capacitor C1 is connected between the power input terminal and the ground; and a port on the external power module, which is used for outputting working power to the USB/AUDIO change-over switch, is a power output port, and a second filter capacitor C2 is connected between the power output port and the ground.
4. The charging identification circuit of any one of claims 1 to 3, wherein the external power module is an LDO power supply or a Buck power supply.
5. An identification method using the charge identification circuit according to any one of claims 1 to 4, comprising the steps of:
s1, inserting a charger, wherein the charger outputs VBUS voltage signals to the charging management module and the external power module, and outputs USB D +/D-signals to the USB/AUDIO switch;
s2, the external power module receives the VBUS signal to enable, and after the time T1, the power is output to the USB/AUDIO change-over switch;
s3, the USB/AUDIO switch receives the working power supply from the external power module, switches to the USB channel after the time T2, and transmits the USB D +/D-signal to the charging management module;
s4, starting charging identification detection after time T0 after the system platform receives a VBUS voltage signal from the power management module;
and S5, judging whether the USB/AUDIO switch is switched to the USB channel before starting the charging identification detection, if so, correctly identifying the charger and normally charging, otherwise, not identifying the charger and not charging.
6. The charge identification method according to claim 5, wherein the T1 is a time when the external power module itself works and outputs power, the T2 is a time when the USB/AUDIO switch switches channels, and the T0 is a default detection time of the system platform, and the default detection time is T0.
7. The charge identification method of claim 6, wherein the time T0 is greater than the sum of time T1 and time T2.
8. A terminal device characterized by comprising the charge identification circuit according to any one of claims 1 to 4.
CN201710888368.XA 2017-09-27 2017-09-27 Charging identification circuit, identification method and terminal equipment Active CN107546808B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710888368.XA CN107546808B (en) 2017-09-27 2017-09-27 Charging identification circuit, identification method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710888368.XA CN107546808B (en) 2017-09-27 2017-09-27 Charging identification circuit, identification method and terminal equipment

Publications (2)

Publication Number Publication Date
CN107546808A CN107546808A (en) 2018-01-05
CN107546808B true CN107546808B (en) 2020-11-10

Family

ID=60964364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710888368.XA Active CN107546808B (en) 2017-09-27 2017-09-27 Charging identification circuit, identification method and terminal equipment

Country Status (1)

Country Link
CN (1) CN107546808B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2019200218B2 (en) * 2018-01-26 2020-11-19 Techtronic Cordless Gp An electrical apparatus, a power system, a power tool, a network of power tools and a power tool controller
CN108430005B (en) * 2018-04-26 2021-04-09 努比亚技术有限公司 Audio circuit, audio judgment method and mobile terminal
CN108966085B (en) * 2018-06-28 2021-03-26 努比亚技术有限公司 Self-adaptive audio circuit and mobile terminal
CN109087675A (en) * 2018-08-01 2018-12-25 灿芯半导体(上海)有限公司 Single supply domain turns the implementation method of multi-power domain and ddr interface reference current
CN109557994A (en) * 2018-11-29 2019-04-02 努比亚技术有限公司 A kind of charge fault monitoring method, equipment and computer can storage mediums
EP3902086A4 (en) * 2018-12-21 2022-01-12 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging control apparatus and method, and electronic device
CN111130596B (en) * 2019-11-14 2021-08-03 荣耀终端有限公司 Multiplexing circuit, interface circuit system and mobile terminal
CN113422411A (en) * 2021-06-29 2021-09-21 百富计算机技术(深圳)有限公司 PD charging circuit and POS machine
CN115934604B (en) * 2023-03-10 2023-05-23 苏州浪潮智能科技有限公司 USB circuit, USB controller switching method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901201A (en) * 2010-08-06 2010-12-01 中兴通讯股份有限公司 Method and device for realizing USB OTG function on electronic equipment
WO2012077270A1 (en) * 2010-12-07 2012-06-14 パナソニック株式会社 Electronic device
CN104035357A (en) * 2014-06-27 2014-09-10 广东欧珀移动通信有限公司 Headset, charging and OTG equipment circuit design based on USB socket
CN105429217A (en) * 2015-12-08 2016-03-23 深圳天珑无线科技有限公司 System and method for identifying charger

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901201A (en) * 2010-08-06 2010-12-01 中兴通讯股份有限公司 Method and device for realizing USB OTG function on electronic equipment
WO2012077270A1 (en) * 2010-12-07 2012-06-14 パナソニック株式会社 Electronic device
CN104035357A (en) * 2014-06-27 2014-09-10 广东欧珀移动通信有限公司 Headset, charging and OTG equipment circuit design based on USB socket
CN105429217A (en) * 2015-12-08 2016-03-23 深圳天珑无线科技有限公司 System and method for identifying charger

Also Published As

Publication number Publication date
CN107546808A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN107546808B (en) Charging identification circuit, identification method and terminal equipment
EP3930138B1 (en) Charging control circuit, terminal device and control method
CN107645189B (en) Charging protection method and mobile terminal
CN108874708B (en) OTG device, terminal charging method, mobile terminal and computer readable storage medium
CN108966085B (en) Self-adaptive audio circuit and mobile terminal
CN109901980B (en) Serial port log capturing circuit, method, terminal and computer readable storage medium
CN107785961B (en) Series battery charging method, mobile terminal and computer readable medium
EP3934056A1 (en) Terminal and wireless charging control method
CN112261535A (en) Major-minor switching method and device for wireless earphone and readable storage medium
CN110098651B (en) Charging method, charging device, electronic equipment and readable storage medium
CN108009116B (en) MicroUSB interface circuit and mobile terminal thereof
CN113099516B (en) Price tag access control method, equipment and computer readable storage medium
CN112165136B (en) Charging interface device and mobile terminal
CN112888084A (en) Full-band communication method and device and mobile terminal
CN108650404B (en) Port starting circuit, device and mobile terminal
CN114465328A (en) Charging method, charging circuit, intelligent terminal and storage medium
CN112463659B (en) Docking station identification detection circuit and terminal equipment
CN107863795B (en) Parallel battery module charging method, mobile terminal and computer readable storage medium
CN109980724B (en) Method and device for charging double-screen mobile terminal, mobile terminal and storage medium
CN114665555A (en) Control method, intelligent terminal and storage medium
CN108430005B (en) Audio circuit, audio judgment method and mobile terminal
CN110071542B (en) Charging circuit, charging method and terminal
CN114498202A (en) Interface circuit device and equipment
CN107562167B (en) Multi-path charging method, mobile terminal and computer-readable storage medium
CN107591858B (en) Charging method, terminal and computer readable storage medium

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