WO2024021709A1 - 电子设备、设备识别方法及充电系统 - Google Patents
电子设备、设备识别方法及充电系统 Download PDFInfo
- Publication number
- WO2024021709A1 WO2024021709A1 PCT/CN2023/090096 CN2023090096W WO2024021709A1 WO 2024021709 A1 WO2024021709 A1 WO 2024021709A1 CN 2023090096 W CN2023090096 W CN 2023090096W WO 2024021709 A1 WO2024021709 A1 WO 2024021709A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data pin
- unit
- external interface
- processor
- controller
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/266—Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/263—Arrangements for using multiple switchable power supplies, e.g. battery and AC
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4022—Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
- H02J7/40—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data
- H02J7/42—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data with electronic devices having internal batteries, e.g. mobile phones
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
- H02J7/40—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data
- H02J7/44—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data between battery management systems and power sources
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
- H02J7/40—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data
- H02J7/47—Arrangements for checking compatibility or authentication between one component, e.g. a battery or a battery charger, and another component, e.g. a power source
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/38—Universal adapter
- G06F2213/3812—USB port controller
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J2207/00—Details of circuit arrangements for charging or discharging batteries or supplying loads from batteries
- H02J2207/30—Charge provided using DC bus or data bus of a computer
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Definitions
- the present application relates to the field of electronic technology, and in particular to an electronic device, a device identification method and a charging system.
- this application provides an electronic device, a device identification method and a charging system.
- a charging protocol chip is added to provide a fast charging function to the outside world, and the external interface of the electronic device is only electrically connected to one of the processor and the charging protocol chip at the same time, so that when the external device is identified, The charging protocol chip and processor will not interfere with each other, allowing electronic devices to achieve fast charging without affecting the recognition of USB2.0 devices.
- this application provides an electronic device, which includes: a processor, a controller, a charging protocol chip, an external interface, and a switch circuit; the processor, the charging protocol chip, and the external interface all include a data pin unit; processing The data pin unit of the device, the data pin unit of the charging protocol chip, the data pin unit of the external interface, and the controller are electrically connected to the switch circuit respectively; the controller is used to control the switch circuit so that the data pin unit of the external interface communicates with the processing One of the data pin unit of the processor and the data pin unit of the charging protocol chip is connected, and the other one of the data pin unit of the processor and the data pin unit of the charging protocol chip is disconnected.
- the data pin unit may include one data pin or multiple data pins, and a first protocol identification path may be formed between the data pin unit of the external interface and the data pin unit of the processor.
- the identification path is, for example, a USB2.0 protocol identification path.
- a second protocol identification path can be formed between the data pin unit of the external interface and the data pin unit of the charging protocol chip.
- the second protocol identification path is, for example, an SCP/FCP protocol identification path.
- the switch circuit can be controlled by the controller so that when one of the first protocol identification path and the second protocol identification path is turned on, the other one is turned off.
- a charging protocol chip is added, so that a fast charging function can be provided for an external device, and when the external device is electrically connected to the external interface, since only one of the processor and the charging protocol chip communicates with the external device, The external interface is electrically connected, so when identifying or interacting with external devices, the charging protocol chip and the processor will not interfere with each other. Therefore, electronic devices can realize fast charging of external devices without affecting Identification of USB2.0 devices.
- the external interface is used to electrically connect with the external device;
- the processor is used to electrically connect with the external device at the external interface, and the data pin unit of the processor is connected to the external interface
- the pin unit of the charging protocol chip is turned on, the first protocol identification is performed on the external device;
- the charging protocol chip is used to electrically connect the external interface to the external device, and when the data pin unit of the charging protocol chip is turned on with the pin unit of the external interface , perform the second protocol identification on the external device;
- the processor and the charging protocol chip are electrically connected to the controller respectively, and are used to send an indication indicating the success or failure of the protocol identification to the controller;
- the controller is used to receive the instruction indicating the success or failure of the protocol identification sent by the processor.
- the switch circuit After an indication of successful protocol recognition, the switch circuit continues to be controlled to connect the data pin unit of the external interface to the data pin unit of the processor, disconnect from the data pin unit of the charging protocol chip, and after receiving the data pin unit sent by the processor After the indication indicating that the first protocol recognition failed, the switch circuit is controlled to disconnect the data pin unit of the external interface from the data pin unit of the processor and conduct it with the data pin unit of the charging protocol chip; the controller is used to receive After the charging protocol chip sends an indication indicating that the second protocol recognition is successful, the switch circuit is continued to be controlled so that the data pin unit of the external interface is connected to the data pin unit of the charging protocol chip and disconnected from the data pin unit of the processor.
- the control switch circuit disconnects the data pin unit of the external interface from the data pin unit of the charging protocol chip and the data pin unit of the processor.
- the unit is on.
- the controller can control the switch circuit according to the indication of successful or failed identification of the processor or charging protocol chip.
- the control switch circuit continues to conduct the corresponding protocol identification path.
- the control switch circuit switches to another protocol recognition channel, so that the electronic device can realize fast charging of external devices without affecting the recognition of USB2.0 devices.
- the controller controls the switch circuit to conduct the data pin unit of the external interface with the data pin unit of the charging protocol chip and with the data pin unit of the processor. Disconnect; and after receiving an indication from the charging protocol chip indicating that the second protocol identification fails, control the switch circuit to disconnect the data pin unit of the external interface from the data pin unit of the charging protocol chip and disconnect it from the data pin unit of the processor.
- the pin unit is turned on.
- the controller controls the switch circuit to connect the external interface and the charging protocol chip by default, and first identifies the second protocol (such as the charging protocol) of the external device. After the second protocol identification fails, the first protocol identification of the external device is performed. In this way, due to The external device is first identified by the second protocol. When the second protocol requires a certain time for the identification process, it is possible to avoid protocol identification failure or errors caused by the identification time exceeding the time set for the second protocol identification.
- the electronic device further includes a voltage conversion circuit and a battery, and the external interface further includes a power pin; the battery is electrically connected to the power pin of the external interface through the voltage conversion circuit. ;
- the charging protocol chip is connected to the voltage conversion circuit, and is used to send an enable signal to the voltage conversion circuit after successful recognition of the charging protocol chip, so that the voltage conversion circuit provides a set voltage to the power pin of the external interface. In this way, the electronic device can provide the required charging voltage according to the needs of the device to be charged, realizing fast charging of external devices.
- the controller is further configured to obtain the battery power information after receiving an indication from the charging protocol chip indicating that the second protocol recognition is successful, and obtain the battery power information according to the battery power.
- the information sends instructions to the charging protocol chip to start fast charging or not to start fast charging. In this way, it can be determined whether to fast charge the external device according to the battery power of the electronic device, so as to avoid fast charging being unable to proceed or affecting the use of the electronic device due to low power.
- the controller sends an instruction to start fast charging to the charging protocol chip when the battery power is greater than the set threshold, and sends an instruction to the charging protocol chip when the battery power is less than or equal to the set threshold.
- the charging protocol chip sends an instruction not to start fast charging. In this way, it can be determined whether to fast charge the external device according to the battery power of the electronic device, so as to avoid fast charging being unable to proceed or affecting the use of the electronic device due to low power.
- the processor when the external device is a device that supports the first protocol, and after the external device is unplugged from the external interface, the processor is further configured to, after the external device is unplugged, Send an instruction to unplug the external device to the controller. Based on the instruction to unplug the external device, the controller controls the switch circuit to disconnect the data pin unit of the external interface from the data pin unit of the processor and from the data pin unit of the charging protocol chip. The pin unit is turned on. In this way, after the external device is pulled out, the controller controls the switch circuit to connect the external interface and the charging protocol chip by default, and first identifies the external device with the second protocol (such as the charging protocol), so that the second protocol has time requirements for the identification process. In this case, the protocol recognition failure or error caused by the recognition time exceeding the time set for the second protocol recognition can be avoided.
- the second protocol such as the charging protocol
- the switch circuit includes a switch chip, a data pin unit of the processor, a data pin unit of the charging protocol chip, a data pin unit of the external interface, and a controller. are electrically connected to the switch chip respectively.
- the electrical connection control between the data pin units of the external interface, processor and charging protocol chip can be realized through a switch chip, ensuring that the processor and charging protocol chip will not interfere with each other during the external device identification process.
- the switch circuit includes a first switch unit and a second switch unit; the data pin unit of the processor, the data pin unit of the external interface, and the controller are electrically connected respectively.
- the controller is used to control the first switch unit to connect or disconnect the data pin unit of the external interface and the data pin unit of the processor; the data pin unit of the charging protocol chip, the data pin unit of the external interface
- the data pin unit and the controller are electrically connected to the second switch unit respectively, and the controller is used to control the second switch unit to connect or disconnect the data pin unit of the external interface and the data pin unit of the charging protocol chip.
- the first switch unit and the second switch unit respectively control the electrical connection between the processor and the charging protocol chip and the external interface, ensuring that the processor and the charging protocol chip do not interfere with each other during the external device identification process.
- both the first switch unit and the second switch unit include a switch chip.
- Both the first switch unit and the second switch unit can implement switch chips, and can be An appropriate chip must be selected to control the electrical connection between the processor and charging protocol chip and the external interface.
- the data pin unit includes a first data pin and a second data pin;
- the switch circuit includes first to fourth switch units;
- the data pin, the first data pin of the external interface, and the controller are electrically connected to the first switch unit respectively.
- the controller is used to control the first switch unit to connect the first data pin of the external interface to the first data pin of the processor.
- the pin is turned on or off; the second data pin of the processor, the second data pin of the external interface, and the controller are electrically connected to the second switch unit respectively, and the controller is used to control the second switch unit so that the third data pin of the external interface
- the second data pin is connected to or disconnected from the second data pin of the processor; the first data pin of the charging protocol chip, the first data pin of the external interface, and the controller are electrically connected to the third switch unit respectively to control
- the device is used to control the third switch unit to connect or disconnect the first data pin of the external interface and the first data pin of the charging protocol chip; the second data pin of the charging protocol chip and the second data pin of the external interface
- the pin and the controller are respectively electrically connected to the fourth switch unit, and the controller is used to control the fourth switch unit to connect or disconnect the second data pin of the external interface and the second data pin of the charging protocol chip.
- the electrical connection between the processor and the charging protocol chip and the external interface can be controlled through four switch units respectively, ensuring that the processor is in the process of identifying the external device. and charging protocol chips will not interfere with each other.
- the first to fourth switch units each include a switch chip or a MOS transistor.
- the appropriate switch chip or MOS transistor can be selected as needed to control the electrical connection between the processor and charging protocol chip and the external interface.
- the first switching unit includes a PMOS transistor
- the second switching unit includes a PMOS transistor
- the third switching unit includes an NMOS transistor
- the fourth switching unit includes an NMOS transistor.
- the first switching unit and the second switching unit have the same transistor type
- the third switching unit and the fourth switching unit have the same transistor type, and are opposite to the first switching unit and the second switching unit, so one switching signal or the same switching signal It can realize the control of four switch units.
- the third and fourth switch units can be turned on through the same high-level signal
- the first and second switch units can be turned off through the same low-level signal. Turning off the third and fourth switching units, and turning on the first and second switching units simplifies the control process.
- the first protocol includes the USB2.0 protocol
- the second protocol includes the SCP/FCP fast charging protocol. This allows electronic devices to implement SCP/FCP fast charging of external devices without affecting the recognition of USB2.0 devices.
- the data pin unit includes a DP pin or a DM pin.
- a DP pin or a DM pin In this way, when performing protocol communication through the DP pin and DM pin, electronic devices can realize fast charging of external devices without affecting the identification of USB2.0 devices.
- this application provides a device identification method, which is applied to the electronic device of the first aspect.
- the device identification method Different methods include:
- the controller controls the switch circuit so that the data pin unit of the external interface is connected to one of the data pin unit of the processor and the data pin unit of the charging protocol chip, and is connected to the data pin unit of the processor and the charging protocol chip. One of the data pin units is disconnected;
- One of the processor and the charging protocol chip identifies the type of the external device connected to the external interface, where the type of the external device includes, for example, an external device that supports the first protocol and an external device that supports the second protocol.
- the external device Including USB2.0 devices and terminals to be charged;
- the controller controls the switch circuit to disconnect the data pin unit of the external interface from one of the data pin unit of the processor and the data pin unit of the charging protocol chip. , the other one is connected to the data pin unit of the processor and the data pin unit of the charging protocol chip;
- the other of the processor and the charging protocol chip identifies the type of external device connected to the external interface.
- the device identification method of the second aspect when the external device is electrically connected to the external interface, since only one of the processor and the charging protocol chip is electrically connected to the external interface, when the external device is identified or interacted with the external device , the charging protocol chip and the processor will not interfere with each other, so electronic devices can realize fast charging of external devices without affecting the recognition of USB2.0 devices.
- the controller controls the switch circuit to conduct the data pin unit of the external interface with the data pin unit of the charging protocol chip and with the data pin unit of the processor.
- the unit is disconnected; the charging protocol chip identifies the type of external device; after the charging protocol chip identification fails, the controller controls the switch circuit to disconnect one of the data pin units of the external interface from the data pin unit of the charging protocol chip. On, it is connected to the data pin unit of the processor's data pin unit; the processor identifies the type of external device.
- the device identification method further includes: the processor in the external device After unplugging, an instruction to unplug the external device is sent to the controller; after receiving the instruction to unplug the external device, the controller controls the switch circuit so that the data pin unit of the external interface is connected to the data pin unit of the charging protocol chip. , disconnected from the processor's data pin unit.
- the controller controls the switch circuit to connect the external interface and the charging protocol chip by default, and first identifies the external device with the second protocol (such as the charging protocol), so that the second protocol has time requirements for the identification process. In this case, the protocol recognition failure or error caused by the recognition time exceeding the time set for the second protocol recognition can be avoided.
- this application provides a charging system, including the electronic device and terminal of the first aspect; the terminal includes a charging interface and a battery; the charging interface is electrically connected to an external interface; and the electronic device provides a battery in the terminal through the external interface and the charging interface. Charge.
- electronic devices can be used to quickly charge the terminal, which improves the convenience of charging.
- this application provides a chip, which includes a processing circuit and transceiver pins.
- the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit performs the method in the second aspect or any possible implementation of the second aspect to control the receiving pin to receive the signal, so as to Control the sending pin to send signals.
- Figure 1 is one of the schematic diagrams of an exemplary application scenario
- Figure 2 is a schematic diagram illustrating the structure of an electronic device applied to the application scenario shown in Figure 1;
- FIG. 3 is a schematic diagram illustrating the USB2.0 device identification principle
- FIGS 4-6 are schematic diagrams of exemplary SCP protocol identification principles
- FIG. 7 is a schematic diagram illustrating the structure of an electronic device according to an embodiment of the present application.
- Figure 8 is a schematic diagram illustrating the connection between an electronic device and a terminal to be charged according to an embodiment of the present application
- Figure 9 is a schematic diagram illustrating the connection between an electronic device and a USB2.0 device according to an embodiment of the present application.
- Figure 10 is a schematic structural diagram of an external interface according to an embodiment of the present application.
- FIG. 11 is a schematic diagram of a switching circuit of an electronic device according to an embodiment of the present application.
- FIG. 12 is a schematic diagram of another switching circuit of an electronic device according to an embodiment of the present application.
- Figure 13 is a schematic diagram illustrating yet another switch circuit of an electronic device according to an embodiment of the present application.
- Figure 14 is a schematic diagram illustrating yet another switch circuit of an electronic device according to an embodiment of the present application.
- Figure 15 is a schematic flowchart illustrating a device identification method according to an embodiment of the present application.
- FIG. 16 is a schematic block diagram of a device according to an embodiment of the present application.
- a and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. B these three situations.
- first and second in the description and claims of the embodiments of this application are used to distinguish different objects, rather than to describe a specific order of objects.
- first target object, the second target object, etc. are used to distinguish different target objects, rather than to describe a specific order of the target objects.
- multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
- FIG. 1 is a schematic diagram illustrating an application scenario.
- the electronic device 100 may be, for example, a notebook computer or other device, which is configured with an external interface such as a Type-C universal serial bus (USB) interface. Through the external interface, the electronic device 100 can be connected with the external device 200 .
- the external device 200 may be a terminal to be charged, such as a mobile phone, a tablet, etc.
- the external device 200 may also be a USB2.0 device such as a U disk, a mobile hard disk, etc.
- USB2.0 devices are storage devices or electronic devices that support the USB2.0 protocol.
- the electronic device 100 can quickly charge a terminal 201 to be charged, such as a mobile phone or a tablet, through an external interface. It can also be connected to an electronic device such as a U disk or mobile hard disk, used as a hard disk, or other types of devices.
- the USB2.0 device 202 communicates or interacts with data to implement functions such as communication, data reading or storage.
- the electronic device 100 can provide a fast charging function for a terminal 201 to be charged, such as a mobile phone or tablet.
- fast charging refers to charging with a charging power greater than 10W.
- the electronic device 100 can be charged in 18W, 22.5W, 40W, 60W, 100W, etc. charging modes.
- the electronic device 100 supports Super Charge Protocol/Fast Charge Protocol (Super Charge Protocol, SCP)/Fast Charger Protocol, FCP). Through the external interface, the electronic device 100 can perform fast charging for the terminal 201 to be charged that supports the SCP/FCP protocol.
- FIG. 2 is a schematic diagram illustrating the structure of the electronic device 100 applied to the application scenario shown in FIG. 1 .
- the electronic device 100 includes a processor 110 , a controller 120 , a charging protocol chip 130 , an external interface 140 , a voltage conversion circuit 150 and a battery 160 .
- the external interface 140 may be, for example, a type-C USB interface.
- the processor 110 includes a first data pin 111 (eg, DP or D+) and a second data pin, such as (eg, DM or D-).
- the charging protocol chip 130 includes a first data pin 131 (eg DP or D+) and a second data pin 132 (eg DM or D-).
- the external interface 140 includes a first data pin 141 (eg, DP or D+) and a second data pin 142 (eg, DM or D-).
- first data pin 141 and the second data pin 142 of the external interface 140 are connected to the first data pin 111 and the second data pin 112 of the processor 110 respectively, forming a first protocol identification path.
- the first protocol identification channel is, for example, a USB2.0 device protocol identification channel.
- the first data pin 141 and the second data pin 142 of the external interface 140 are connected to the first data pin 131 and the second data pin 132 of the charging protocol chip 130 respectively, forming a second protocol identification path.
- the second protocol identification channel is, for example, a fast charging protocol identification channel.
- the first data pin 111 and the second data pin 112 of the processor 110 are respectively connected to ground through a pull-down resistor R of, for example, 15K ohms.
- the first data pin 131 and the second data pin 132 of the charging protocol chip 130 are respectively connected to ground through a pull-down resistor R of, for example, 15K ohms.
- the USB2.0 protocol and the SCP/FCP protocol of the electronic device 100 are configured through the pull-down resistor in the electronic device 100 to perform device identification.
- the processor 110 determines whether the device connected to the external interface 140 is a USB2.0 device by detecting the levels of the first data pin 111 and the second data pin 112 of the processor 110 .
- the charging protocol chip 130 determines whether the device connected to the external interface 140 is a terminal device supporting the SCP/FCP protocol by detecting the levels of the first data pin 131 and the second data pin 132 of the charging protocol chip 130 .
- FIG 3 is a schematic diagram illustrating the principle of USB2.0 device identification.
- the data pins DP and DM of the processor 110 are respectively connected to ground through pull-down resistors.
- the USB high-speed/full-speed device includes a USB2.0 protocol chip and data pins DP and DM, and the DP pin is connected to the power supply Vcc through a pull-up resistor.
- the USB low-speed device includes a USB2.0 protocol chip and data pins DP and DM, and the DM pin is connected to the power supply Vcc through a pull-up resistor.
- the resistance of the pull-up resistor is, for example, 1.5K ⁇ .
- the pull-down resistors connected to the DP pin and the DM pin make the voltages of the two data lines close to ground (see (1) in Figure 3).
- the pull-down resistor connected to the data pin DP of the processor 110 and the pull-up resistor connected to the data pin DP of the external device 200 form a voltage divider. Since the resistance of the pull-down resistor is 15K ⁇ and the resistance of the pull-up resistor is 1.5K ⁇ , a DC high level of (Vcc*15/(15+1.5)) will appear on the data pin DP of the processor 110 Voltage.
- the processor 110 detects that the DP pin voltage is close to a high level and the DM pin remains grounded, it can be determined that a full-speed/high-speed USB2.0 device is connected.
- the processor 110 detects that the DM pin voltage is close to a high level and the DP pin remains grounded, it can be determined that a low-speed USB2.0 device is connected.
- USB2.0 device identification process/method is only an example, and embodiments of the present application may use other methods for identification based on the above principles or similar principles.
- the SCP protocol detection process will first detect whether the charging interface is a dedicated charging interface (DCP interface) through BC1.2.
- DCP interface dedicated charging interface
- FIGS 4-6 are schematic diagrams illustrating the principle of SCP protocol identification.
- Charging protocol BC1.2 BatteryChargingSpecification 1.2
- Standard Downstream Port SDP, Standard Downstream Port
- this interface supports USB protocol, the maximum current is 2.5mA when suspended, and 100mA when connected and not suspended. Its DP and DM pins each have a 15k resistor connected to GND.
- Dedicated charging interface (DCP, Dedicated Charging Port), this port does not support any data transmission, but can provide a current of more than 1.5A. This type of interface supports higher charging capacity wall chargers and car chargers without the need for enumeration.
- CDP Charging Downstream Port
- This interface supports both high-current charging (maximum 1.5A) and data transmission that is fully compatible with USB 2.0.
- Its DP and DM pins have 15k ⁇ pull-down resistors necessary for communication, and also have internal circuitry to switch the charger detection phase. This internal circuitry allows the device to distinguish CDP from other types of ports.
- FIG 4 it shows the working mode (dashed line area in Figure 4) when data detection is performed after the USB interface of the terminal PD (portable device, such as the terminal to be charged 201) is connected to an external interface.
- the DP pin of the terminal PD remains at a high level.
- the minimum value requirement of the current source IDP_SRC (7uA) can ensure that the DP pin is kept at the level VLGC_HI (for example, 4.0 ⁇ 3.6V) under the worst leakage current (RDAT_LKG and VDAT_LKG) conditions.
- the DP pin is pulled low by the pull-down electronic RDP_DWN of the SDP interface.
- the maximum value of the current source IDP_SRC (13uA) is required to ensure that under the worst leakage current (RDAT_LKG, VDAT_LKG and RDP_DWN), RDP_DWN keeps the DP pin at VLGC_LOW (Logic Low 0 ⁇ 0.8V). Therefore, after VBUS is valid, enable the current source IDP_SRC of the DP pin and the Pull-down resistor, by detecting the level of the DP pin, you can determine whether the external interface connected to the terminal PD supports the data protocol.
- the main detection process is: the terminal device PD turns on the voltage source VDP_SRC of the DP pin (for example, 0.5-0.7v) and the current source IDM_SINK of the DM pin (for example, 25-175 ⁇ A).
- the terminal PD detects whether the voltage of DM reaches VDP_SRC.
- the voltage comparator on the DM pin of the terminal PD compares the DM voltage with VDAT_REF (for example, 0.25 ⁇ 0.4v). If the DM pin voltage is greater than VDAT_REF, it can be determined that the terminal PD is connected to the charging interface, and then it is determined through secondary detection that it is connected to the charging interface. Connect to DCP interface or CDP interface.
- VDAT_REF for example 0.25 ⁇ 0.4v
- FIG. 6 it shows the working mode when secondary detection is performed after the USB interface of the terminal PD is connected to the DCP interface (the dotted line area in Figure 6).
- the process of secondary detection is, for example: the terminal PD enables the voltage source VDM_SRC on the DM pin, turns on the current source IDP_SINK, and then compares the voltage of the DP pin with the voltage of VDAT_REF, because the DCP interface is short-circuited through the short-circuit resistor RDCP_DAT.
- DP and DM pins so the voltage of voltage source VDM_SRC makes VDAT_REF ⁇ DP ⁇ VDM_SRC. Therefore, when the terminal PD detects VDAT_REF ⁇ DP pin voltage, it can be judged that the terminal is connected to the DCP interface.
- the processor 110 can also detect the level changes of its first data pin and the second data pin, causing the external device to be identified as The USB2.0 device may interfere with the charging protocol recognition of the external device and cause the recognition to fail. As a result, the electronic device 100 cannot correctly recognize the USB2.0 device and cannot quickly charge the terminal to be charged, such as a mobile phone.
- inventions of the present application provide an electronic device, a device identification method and a charging system.
- the charging system includes the electronic device and a terminal, where the electronic device can charge the terminal.
- a charging protocol chip to the electronic device to provide the terminal with a fast charging function
- adding a switch circuit to control the on and off of the USB2.0 device protocol identification channel and the fast charge protocol identification channel, so that only the USB2.0 device protocol identification channel is recognized at the same time.
- One of the channels and the fast charging protocol identification channel is turned on to avoid interference between the two protocol identification channels. In this way, the external interface can perform the SCP fast charging function without affecting the identification of USB2.0 devices.
- the electronic device may be a device equipped with an external interface, such as a notebook computer, an all-in-one computer, a desktop computer, and the like.
- Terminals can be mobile phones, laptops, tablets, personal digital assistants (PDAs), car computers, TVs, smart wearable devices (such as smart watches, etc.), media players, and smart home devices waiting to be charged.
- PDAs personal digital assistants
- the embodiments of this application do not specifically limit the specific form of the above terminal.
- the embodiments of the present application are all described by taking the electronic device as a laptop computer and the terminal as a mobile phone.
- the SCP/FCP protocol is used as an example in the above description.
- USB2.0 support is implemented on the same external interface.
- FIG. 7 is a schematic diagram illustrating the structure of an electronic device according to an embodiment of the present application.
- the electronic device 100 includes a processor 110 , a controller 120 , a charging protocol chip 130 , an external interface 140 , a voltage conversion circuit 150 , a battery 160 and a switching circuit 170 .
- the electronic device 100 may also include one or more of a power management module, an antenna, a wireless communication module, a mouse, a pointer, a keyboard, a camera, a display screen, an audio module, a speaker, a speaker interface, a microphone, and other modules. type, or may also include other modules, which are not specifically limited here.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor, a modem processor, a graphics processor (GPU), an ISP, memory, a video codec, a DSP, a baseband processor, and /or NPU etc. Among them, different processing units can be independent devices or integrated in one or more processors.
- the processor 110 may include an application processor, a modem processor, a graphics processor (GPU), an ISP, memory, a video codec, a DSP, a baseband processor, and /or NPU etc.
- different processing units can be independent devices or integrated in one or more processors.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 10 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
- processor 110 may include one or more interfaces. Interfaces may include integrated circuit I2C interface, integrated circuit built-in audio I2S interface, eSPI interface, PCM interface, UART interface, MIPI, GPIO interface and/or USB interface, etc.
- the processor 110 includes a first data pin 111 and a second data pin 112 .
- the processor 110 is connected to the external interface 140 through the first data pin 111 and the second data pin 112 to perform data interaction or communication with external devices.
- the first data pin 111 and the second data pin 112 of the processor 110 are respectively connected to ground through a pull-down resistor R of, for example, 15K ohms.
- the controller 120 is, for example, an embedded controller EC, which is used to implement functions such as keyboard control, touch panel, power management, fan control, and so on. Controller 120 may contain stand-alone software stored on its own non-volatile medium. In some embodiments, controller 120 may include one or more interfaces. Interfaces can include general input and output interfaces (GPIO), eSPI (Enhanced Serial Peripheral, enhanced serial peripheral) interfaces, integrated circuit I2C interfaces, etc.
- the controller 120 may connect and communicate with the processor 110 through, for example, an eSPI interface and an eSPI bus.
- the controller 120 can also be connected to the switch circuit 170 through, for example, a GPIO interface to output a control signal to the switch circuit 170 to control the switch circuit 170 .
- the controller 120 can also be connected to the charging protocol chip 130 through, for example, an integrated circuit I2C interface to communicate with the charging protocol chip 130 .
- the charging protocol chip 130 is, for example, a fast charging protocol chip supporting the SCP protocol, and is used for fast charging protocol identification and charging communication.
- the charging protocol chip 130 includes a first data pin 131 and a second data pin 132 .
- the charging protocol chip 130 is connected to the external interface 140 through the first data pin 131 and the second data pin 132, thereby providing processing for external devices.
- Quick charge For example, based on the SCP/FCP protocol, the first data pin 131 and the second data pin 132 of the charging protocol chip 130 are respectively connected to ground through a pull-down resistor R of 15K ohms, for example.
- the charging protocol chip 130 may include one or more interfaces.
- the interface may include an integrated circuit I2C interface, etc.
- the charging protocol chip 130 is connected to the controller 120 through, for example, an I2C interface and an I2C bus.
- the charging protocol chip 130 may send an indication or signal indicating success or failure of fast charging protocol identification to the controller 120 .
- the charging protocol chip 130 is also connected to the voltage conversion circuit 150, and is used to send an enable signal to the voltage conversion circuit 150 after the fast charging protocol is successfully recognized, so that the voltage conversion circuit 150 outputs the charging voltage required by the terminal to the external port.
- the external interface 140 may be, for example, a type-C USB interface.
- the external interface 140 includes a first data pin 141 and a second data pin 142 .
- the external interface 140 also includes a power pin VBUS and a communication pin.
- the first data pin 141 and the second data pin 142 of the external interface 140 are respectively connected to the first data pin 111 and the second data pin 112 of the processor 110 to form a first protocol identification path (i.e. USB2.0 device protocol identification channel); on the other hand, it is respectively connected to the first data pin 131 and the second data pin 132 of the charging protocol chip 130 to form a second protocol identification channel (that is, the fast charging protocol identification channel) .
- a first protocol identification path i.e. USB2.0 device protocol identification channel
- the battery 160 supplies power to the external interface 140 through the voltage conversion circuit 150, thereby powering or charging external devices.
- the battery 160 also powers the processor 110, the controller 120, the charging protocol chip 130, and the like.
- the switch circuit 170 is disposed between the first data pin 141 and the second data pin 142 of the external interface 140 and the first data pin and the second data pin of the processor 110 and the charging protocol chip 130, and communicates with the controller. 120 connections.
- the switch circuit 170 is controlled by the controller 120 so that only one of the first protocol identification path and the second protocol identification path is turned on at the same time, thereby preventing the two protocol identification paths from interfering with each other.
- the switch circuit 170 defaults to the second protocol identification path being turned on under the control of the controller 120, and disconnects the second protocol identification path after the fast charging protocol identification fails, and turns on the first protocol identification path. , and then identify the USB2.0 device.
- the electronic device 100 can first perform charging protocol identification and then perform USB2.0 device identification, which not only makes the external interface 140 support USB2 at the same time. 0 device and fast charging function, it can also avoid interference between the identification of USB2.0 devices and the identification of the terminal to be charged, improving the accuracy and speed of identification of external devices. In other words, using the above-mentioned electronic device 100, not only terminals supporting the SCP protocol, etc. can be quickly charged through the external interface, but the recognition of USB2.0 devices will not be affected.
- FIG. 8 is a schematic diagram illustrating the connection between an electronic device and a terminal to be charged according to an embodiment of the present application.
- the external interface 140 includes a first data pin 141 (eg DP), a second data pin 142 (eg DM), a first communication pin 143 (eg CC1 ), a second communication pin 144 (eg CC2 ) and power pin 145 (e.g. VBUS pin).
- the charging protocol chip 130 is internally provided with a switch circuit for shorting the first data pin 141 and the second data pin 142 .
- the first communication pin 143 and the second communication pin 144 are connected to the power supply VCC (for example, 5V) through pull-up resistors.
- VCC for example, 5V
- the terminal 201 to be charged includes a charging protocol chip 210, a battery 220 and a charging interface 230.
- the charging interface 230 includes a first data pin 231 (eg DP), a second data pin 232 (eg DM), a first communication pin 233 (eg CC1), a second communication pin 234 (eg CC2) and a power pin.
- Pin 235 e.g. VBUS pin.
- the first communication pin 233 and the second communication pin 234 are connected to ground through pull-down resistors.
- the controller 120 controls the switch circuit 170 to turn on the charging protocol chip 130 and the first data pin 141 by default (for example DP) and the second protocol path between the second data pin 142.
- the terminal 201 to be charged is connected to the electronic device 100, that is, after the charging interface 230 of the terminal 201 is connected to the external interface 140 of the electronic device 100, the power pin 145 of the electronic device 100 and the power pin 235 of the terminal 201 are connected.
- the connection constitutes a power channel or a charging channel through which the electronic device 100 can supply power to the terminal 201 to be charged.
- the first data pin 141 and the second data pin 142 of the electronic device 100 are respectively connected to the first data pin 231 and the second data pin 232 of the terminal to be charged 201 to form a protocol channel.
- the electronic device 100 performs protocol communication with the terminal 201 to be charged through a protocol channel.
- the first communication pin 143 and the second communication pin 144 of the electronic device 100 are respectively connected to the first communication pin 233 and the second communication pin 234 of the terminal 201 to be charged, forming a handshake channel.
- the electronic device 100 completes the handshake with the terminal 201 to be charged through the handshake channel.
- the charging protocol chip 130 and the charging protocol chip 210 adopt, for example, the SCP protocol.
- the electronic device 100 completes the handshake with the terminal 201 to be charged through the handshake channel (that is, the charging protocol chip 130 and the charging protocol chip 210 complete the handshake), and then the power pin/power channel Provide a Vbus voltage of, for example, 5V.
- the handshake process between the electronic device 100 and the terminal to be charged 201 can be completed using various suitable handshake protocols.
- the first communication pin 143 and the second communication pin 144 of the electronic device 100 are connected to a pull-up resistor, and the first communication pin 233 and the second communication pin 234 of the terminal to be charged 201 are connected to a pull-down resistor. resistance.
- the power pin 145 of the electronic device 100 Before the electronic device 100 is not connected to the terminal 201 to be charged, the power pin 145 of the electronic device 100 has no voltage output.
- the first communication pin 143 and the second communication pin 144 of the electronic device 100 are respectively connected to the first communication pin 233 and the second communication pin 234 of the terminal 201 to be charged. , forming a voltage divider.
- the charging protocol chip 130 detects the pull-down resistors of the first communication pin 233 and the second communication pin 234 of the terminal to be charged 201 by detecting the levels of the first communication pin 143 and the second communication pin 144, thereby determining the level to be charged. Whether the terminal 201 is connected to the external interface 140. Then the electronic device 100 closes the switch of the power pin 145 (not shown in FIG. 8 ), and outputs a Vbus power supply of, for example, 5V to the terminal 201 to be charged.
- the charging protocol chip 130 closes the switch circuit that short-circuit the first data pin 141 and the second data pin 142, so that the first data pin 141 and the second data pin 142 are connected. Data pin 142 is shorted.
- the terminal to be charged 201 identifies whether the electronic device 100 is a DCP (Dedicated Charging Port, dedicated charging interface) device based on the BC1.2 protocol (Battery Charging v1.2) (the SCP fast charging protocol needs to first identify whether the electronic device 100 is a DCP device through the BC1.2 protocol) for DCP devices).
- the identification process is, for example, as follows: after the terminal 201 to be charged is powered on the power pin 235, it first performs data connection detection.
- data connection detection please refer to the aforementioned description in conjunction with Figure 4 and will not be described again here. If there is no detection data protocol support within the set time period (for example, 300-900ms), the terminal 201 to be charged will perform DCP detection.
- the charging protocol chip 210 turns on the voltage source VDP_SRC of the first data pin 231 (for example, 0.5 ⁇ 0.7v, not shown in Figure 8, see Figure 5 and Figure 6 for the setting method) and the second data pin 232-pin current source IDM_SINK (for example, 25 ⁇ 175 ⁇ A, not shown in Figure 8, see Figure 5 and Figure 6 for the setting method).
- the first data pin 231 and the second data pin 232 are short-circuited through the short-circuit resistor in the charging protocol chip 130, and the charging protocol chip 210 detects whether the voltage of the second data pin 232 reaches VDP_SRC.
- the charging protocol chip 210 compares the voltage of the second data pin 232 with VDAT_REF (for example, 0.25 ⁇ 0.4v) in the voltage comparator of the second data pin 232 (not shown in Figure 8, see Figures 5 and 6 for the setting method). If the voltage of the second data pin 232 is greater than VDAT_REF, it can be determined that the terminal 201 to be charged is connected to the charging interface, and then determine whether it is connected to a DCP interface or a CDP interface through secondary detection.
- VDAT_REF for example, 0.25 ⁇ 0.4v
- the charging protocol chip 210 enables the voltage source VDM_SRC on the second data pin 232 (not shown in Figure 8 , see Figures 5 and 6 for the setting method), and turns on the current source IDP_SINK (not shown in Figure 8 , see the setting method) 5 and 2), and then compare the voltage of the first data pin 231 and the voltage of VDAT_REF. Because the first data pin 231 and the second data pin 232 are short-circuited through the short-circuit resistor in the charging protocol chip 130, the voltage The voltage of source VDM_SRC is such that VDAT_REF ⁇ DP ⁇ VDM_SRC. Therefore, when the charging protocol chip 210 detects VDAT_REF ⁇ DP pin voltage, it can be determined that the terminal 201 to be charged is connected to the DCP interface.
- the charging protocol chip 130 continues to detect the relevant signal level, disconnects the short circuit between the first data pin 141 and the second data pin 142 after a certain period of time, and determines whether to enter the fast charging mode according to the set conditions. charging mode (such as SCP fast charging). If it is determined to enter the fast charging mode, the charging protocol chip 130 communicates with the charging protocol chip 130 for voltage regulation to determine the charging voltage and current required by the terminal 201 to be charged.
- charging mode such as SCP fast charging
- handshake circuit, data detection circuit, and DCP detection circuit used in the above identification process are only exemplary, and the embodiments of the present application are not limited thereto, as long as the corresponding detection requirements of the BC1.2 and/or SCP protocols can be achieved. That’s it.
- FIG. 9 is a schematic diagram illustrating the connection between an electronic device and a USB2.0 device according to an embodiment of the present application.
- the external interface 140 includes a first data pin 141 , a second data pin 142 and a power pin 145 .
- the USB2.0 device 202 includes a USB2.0 protocol chip 240, a storage unit 250 and a USB interface 260.
- the USB interface 260 includes a first data pin 261 , a second data pin 262 and a power pin 263 .
- the USB2.0 device 202 will connect a pull-up resistor of, for example, 1.5K ohms to the first data pin 261P or the second data pin 262 according to different levels of transmission rate.
- a pull-up resistor of, for example, 1.5K ohms
- the charging protocol is first detected, as shown in the foregoing content, which will not be discussed here. Repeat. If the charging protocol detection fails, the controller 120 controls the switch circuit 170 to open the protocol path between the processor 110 and the first data pin 141 and the second data pin 142 . As a Host (host device), the processor 110 can identify the USB 2.0 device and its speed through the level changes of the first data pin 141 and the second data pin 142 as long as it detects the pull-up resistor of the USB 2.0 device. Type, this identification process has no insertion time limit.
- the external device is a USB2.0 device
- the electronic device 100 since the electronic device 100 will first perform fast charging protocol detection, the identification of the USB2.0 device will be delayed to a certain extent. However, this delay is hardly perceptible to the user and therefore does not degrade the user experience.
- the embodiments of the present application do not limit the types of the external interface 140, the charging interface 230 and the USB interface 260. They may include, for example, Type C USB interface, Type A USB interface, etc.
- the external interface 140 when the external interface 140 is a Type C USB interface, the external interface 140 includes an A side and a B side.
- Side A includes the VBUS1 pin (pin A4) and VBUS2 pin (pin A9)
- side B includes the VBUS2 pin (pin B9) and VBUS1 pin (pin B4).
- the VBUS1 pin (pin A4) on side A is electrically connected to the VBUS1 pin (pin B4) on side B
- the VBUS2 pin (pin A9) on side A is electrically connected to the VBUS2 pin (pin A9) on side B.
- B9) Electrical connection
- the VBUS1 pin on side A (pin A4) and the VBUS1 pin on side B (pin B4) are the first power supply pins and can be used as power supply pins 145, 235, and 263.
- the VBUS2 pin (pin A9) on side A and the VBUS1 pin (pin B4) on side B are the second power supply pins and can be used as power supply pins 145, 235, and 263.
- the DP pins pin A6 on side A and pin B6 on side B) are the first data pins 111, 131, 141, 231, and 261.
- the DM pin (pin A7 on side A and pin B7 on side B) is the second data pin 112, 132, 142, 232, 262; the CC1 pin (pin A5 on side A) is the first communication pin. Pins 143 and 263, and the CC2 pin (pin B5 on the B side) are the second communication pins 144 and 264.
- the external interface 140 shown in Figure 10 can realize the flexible reversal of the power cord. The connection of the external device 200 can be completed regardless of the insertion direction. There is no need to set up additional reversal software and hardware detection mechanisms to accurately match the power channel. , protocol channel/data channel and handshake channel.
- the external interface in Figure 10 is only exemplary.
- the external interface 140 can be other types of interfaces, such as type A USB interface, or include fewer pins than shown in Figure 10 Type C USB interface, such as the Type C USB interface that does not include the TX1+, TX1-, RX2+, RX2- and other pins in Figure 10.
- FIG. 11 is a schematic diagram illustrating a switching circuit of an electronic device according to an embodiment of the present application.
- the switching circuit 170 includes four switching devices 10 .
- the switching device 10 includes a first switching transistor 11 , a second switching transistor 12 , a third switching transistor 13 and a fourth switching transistor 14 .
- the first switching transistor 11 , the second switching transistor 12 , the third switching transistor 13 and the fourth switching transistor 14 each include a first terminal, a second terminal and a control terminal.
- the controller 120 includes a general-purpose input and output interface (GPIO).
- the general-purpose input and output interface (GPIO) of the controller 120 includes a first control pin, a second control pin, a third control pin, and a fourth control pin.
- the first end of the first switching transistor 11 is connected to the first data pin 141 of the external interface 140, the second end is connected to the first data pin 111 of the processor 110, and the control end is connected to the general input and output interface of the controller 120 ( GPIO) first control pin connection.
- the first end of the first switching transistor 12 is connected to the second data pin 142 of the external interface 140, the second end is connected to the second data pin 112 of the processor 110, and the control end is connected to the general input and output interface of the controller 120 ( The second control pin of GPIO is connected.
- the first end of the third switching transistor 13 is connected to the first data pin 111 of the external interface 140 , the second end is connected to the first data pin 131 of the charging protocol chip 130 , and the control end is connected to the general input and output interface of the controller 120 (GPIO) third control pin connection.
- the first end of the fourth switching transistor 14 is connected to the second data pin 142 of the USB interface 140, the second end is connected to the second data pin 132 of the charging protocol chip 130, and the control end is connected to the general input and output interface of the controller 120. (GPIO) fourth control pin connection.
- the controller 120 switches the first switching transistor 11 , the second switching transistor 12 , the third switching transistor 13 and the third switching transistor 11 through the first control pin, the second control pin, the third control pin and the fourth control pin of the GPIO interface.
- the control terminals of the four switching transistors 14 output level signals or control signals to control the on or off of the first switching transistor 11 , the second switching transistor 12 , the third switching transistor 13 and the fourth switching transistor 14 .
- the charging protocol chip 130 communicates with the external device through the second protocol identification channel, thereby performing Charging protocol identification determines whether the external device supports the corresponding charging protocol (such as SCP protocol). For details, see the above content. If the charging protocol identification is successful, the charging protocol chip 130 sends an indication that the charging protocol identification is successful to the controller 120.
- the charging protocol chip 130 sends an indication that the charging protocol identification is successful to the controller 120.
- the controller 120 determines whether to start fast charging to charge the external device according to the current status of the battery 160, such as remaining power, current output voltage, etc. For example, when the remaining battery power is greater than a set threshold (for example, 30%), it is determined to start fast charging.
- the charging protocol chip 130 sends an enable signal to the voltage conversion circuit 150.
- the voltage conversion circuit 150 charges the external device through the external interface 140 according to the charging voltage and current determined by the charging protocol chip 130. Perform fast charging.
- the charging protocol chip 130 sends an indication of the charging protocol identification failure to the controller 120, and the controller 120 changes the first control pin, the second control pin, and the third control pin of the GPIO interface according to the instruction.
- the level signal or control signal output by the fourth control pin makes the third switching transistor 13 and the fourth switching transistor 14 turn off, and the first switching transistor 11 and the second switching transistor 12 turn on, making the second protocol identification path Disconnected, the first protocol identification path is turned on.
- the processor 110 communicates with the external device through the first protocol identification channel, thereby performing USB2.0 protocol identification and determining whether the external device is a USB2.0 device (refer to the above description for the USB2.0 identification process).
- the processor 110 sends an instruction to unplug the USB 2.0 device to the controller 120 through, for example, the eSPI bus.
- the controller 120 changes the level signal or control signal output by the first control pin, the second control pin, the third control pin, and the fourth control pin of the GPIO interface, so that the third switching transistor 13 and the fourth control pin
- the switching transistor 14 is turned on, the first switching transistor 11 and the second switching transistor 12 are turned off, so that the second protocol identification path is turned on, and the first protocol identification path is turned off, waiting for the next access of the external device, and repeating the above identification process.
- the first switching transistor 11 and the second switching transistor 12 may be PMOS transistors
- the third switching transistor 13 and the fourth switching transistor 14 may be NMOS transistors.
- the controller 120 is configured to pull up the level of the four pins of GIPO connected to the control end of the switching transistor by default (ie, output a high level), so that the first switching transistor 11 and the second switching transistor 12 are disconnected, and the third switch The transistor 13 and the fourth switching transistor 14 are turned on, so that the first protocol identification path is turned off and the second protocol identification path is turned on.
- the controller 120 pulls down the level of the first control pin, the second control pin, the third control pin, and the fourth control pin of the GIPO interface (that is, outputs a low level), so that The first switching transistor 11 and the second switching transistor 12 are turned on, and the third switching transistor 13 and the fourth switching transistor 14 are turned off, so that the first protocol identification path is turned on and the second protocol identification path is turned off.
- the controller 120 again raises the level of the first control pin, the second control pin, the third control pin, and the fourth control pin of the GIPO interface (ie, outputs a high level), The second protocol identification path is turned on by default, and the first protocol identification path is turned off by default.
- the GPIO interface of the controller 120 uses four control pins to control the first to fourth switching transistors, in other embodiments, only one control pin may be used. pin to control the first to fourth switching transistors, or use two control pins to control the first to fourth switching transistors.
- the control terminals of the first to fourth switching transistors are all connected to the control pin, and the level output by the control pin causes the first to second switching transistors to be turned on, and the third and fourth switching transistors are turned on.
- the switching transistor turns off, Or the third and fourth switching transistors are turned on, and the first to second switching transistors are turned off.
- the first and second switching transistors are of the same type
- the third and fourth switching transistors are of the same type
- the first and third switching transistors are of opposite types.
- the aforementioned exemplary first switching transistor 11 and second switching transistor 12 may be PMOS transistors
- the third switching transistor 13 and fourth switching transistor 14 may be NMOS transistors.
- the first switching transistor 11 and the second switching transistor 12 may be NMOS transistors, and the third switching transistor 13 and the fourth switching transistor 14 may be PMOS transistors. In this way, only one control pin is needed to control the four switching transistors, which reduces the pin occupation of the controller GPIO interface and the control signal is relatively simple.
- the control terminals of the first to second switching transistors are connected to the first control pin, and the control terminals of the third to fourth switching transistors are connected to the second control pin.
- the level output by the second control pin causes the first to second switching transistors to turn on and the third and fourth switching transistors to turn off, or the third and fourth switching transistors to turn off and turn on and the first to second switching transistors turn on. Shut down. At this time, it is sufficient that the first and second switching transistors are of the same type, and the third and fourth switching transistors are of the same type. There is no need for the first and third switching transistors to be of opposite types.
- the first switching transistor 11 and the second switching transistor 12 may be PMOS transistors, and the third switching transistor 13 and the fourth switching transistor 14 may be PMOS transistors.
- the first switching transistor 11 and the second switching transistor 12 may be NMOS transistors, and the third switching transistor 13 and the fourth switching transistor 14 may be NMOS transistors.
- the first switching transistor 11 and the second switching transistor 12 may be PMOS transistors, and the third switching transistor 13 and the fourth switching transistor 14 may be NMOS transistors.
- the first switching transistor 11 and the second switching transistor 12 may be NMOS transistors, and the third switching transistor 13 and the fourth switching transistor 14 may be PMOS transistors.
- the above control effect can be achieved by simply adjusting the level of the controller control pin output according to the type of switching transistor.
- the types of the first to fourth switching transistors may all be P-type or N-type and do not need to be the same.
- FIG. 12 is a schematic diagram illustrating another switch circuit of an electronic device according to an embodiment of the present application.
- the switching circuit 170 includes four switching devices 20 .
- the switching device 20 includes a first switch chip 21 , a second switch chip 22 , a third switch chip 23 and a fourth switch chip 24 .
- the first switch chip 21, the second switch chip 22, the third switch chip 23 and the fourth switch chip 24 each include a first terminal, a second terminal and a control terminal.
- the first end of the first switch chip 21 is connected to the first data pin 141 of the external interface 140, the second end is connected to the first data pin 111 of the processor 110, and the control end is connected to the general input and output interface of the controller 120 ( The first control pin of GPIO is connected.
- the first end of the second switch chip 22 is connected to the second data pin 142 of the external interface 140, the second end is connected to the second data pin 112 of the processor 110, and the control end is connected to the general input and output interface of the controller 120 ( GPIO) second control pin connection.
- the first end of the third switch chip 23 is connected to the first data pin 111 of the external interface 140 , the second end is connected to the first data pin 131 of the charging protocol chip 130 , and the control end is connected to the general input and output interface of the controller 120 (GPIO) third control pin connection.
- the first end of the fourth switch chip 24 is connected to the second data pin 142 of the external interface 140 , the second end is connected to the second data pin 142 of the charging protocol chip 130 , and the control end is connected to the general input and output interface of the controller 120 (GPIO) fourth control pin connection.
- the controller 120 controls the first switch chip 21 , the second switch chip 22 , the third switch chip 23 and the third switch chip 21 through the first control pin, the second control pin, the third control pin and the fourth control pin of the GPIO interface.
- the control terminals of the four switch chips 24 output level signals or control signals to control the first switch chip 21, The second switch chip 22, the third switch chip 23 and the fourth switch chip 24 are turned on and off.
- the working principle of the switching circuit of the electronic device shown in FIG. 12 is similar to the working principle of the switching circuit of the electronic device shown in FIG. 11 , and will not be described again here.
- FIG. 13 is a schematic diagram illustrating yet another switch circuit connected to an electronic device according to an embodiment of the present application.
- the switching circuit 170 includes two switching devices 30 .
- the switching device 30 includes a first switch chip 31 and a second switch chip 32 .
- Both the first switch chip 31 and the second switch chip 32 include two input terminals, two output terminals and a control terminal.
- the two input terminals of the first switch chip 31 are respectively connected to the first data pin 141 and the second data pin 142 of the external interface 140
- the two output terminals are respectively connected to the first data pin 111 and the second data pin 111 of the processor 110 .
- the data pin 112 is connected to form a first protocol identification path.
- the two input terminals of the second switch chip 32 are respectively connected to the first data pin 141 and the second data pin 142 of the external interface 140 , and the two output terminals are respectively connected to the first data pin 111 and the second data pin 111 of the charging protocol chip 130 .
- the two data pins 112 are connected to form a second protocol identification path.
- the control terminals of the first switch chip 31 and the second switch chip 32 are respectively connected to the first control pin and the second control pin of the GPIO interface of the controller 120 .
- the controller 120 applies control signals to the control terminals of the first switch chip 31 and the second switch chip 32, thereby controlling the on and off of the first switch chip 31 and the second switch chip 32, thereby controlling the first and second protocols. Identifies whether a path is on or off.
- the working principle of the switching circuit of the electronic device shown in FIG. 13 is similar to the working principle of the switching circuit of the electronic device shown in FIG. 11 , and will not be described again here.
- FIG. 14 is a schematic diagram illustrating yet another switch circuit of an electronic device according to an embodiment of the present application.
- the switch circuit 170 includes one switch chip 40 .
- the switch chip includes four input terminals, four output terminals, and two/four control terminals (the example in Figure 14 is two control terminals).
- the two input terminals of the switch chip 40 are respectively connected to the first data pin 141 and the second data pin 142 of the external interface 140, and the two output terminals are respectively connected to the first data pin 111 and the second data pin of the processor 110.
- Pin 112 is connected to form a first protocol recognition path.
- the other two input terminals of the switch chip 40 are respectively connected to the first data pin 141 and the second data pin 142 of the external interface 140, and the other two output terminals are respectively connected to the first data pin 111 and the second data pin 111 of the charging protocol chip 130.
- the two data pins 112 are connected to form a second protocol identification path.
- the two/four control terminals of the switch chip 40 are respectively connected to the 2/4 control pins of the GPIO interface of the controller 120 .
- the controller 120 applies a control signal to the control end of the switch chip 40 to control the on or off of the first and second protocol identification paths.
- the working principle of the switching circuit of the electronic device shown in FIG. 14 is similar to the working principle of the switching circuit of the electronic device shown in FIG. 11 , and will not be described again here.
- the controller 120 and the switch circuit 170 are configured so that the second protocol identification path (ie, the charging protocol identification path) is turned on by default.
- the charging protocol is first identified.
- the second protocol identification path is disconnected through the controller 120 and the switch circuit 170, and the first protocol identification path is turned on.
- the USB 2.0 device is unplugged from the USB interface 140, the second protocol identification path is turned on by default again through the controller 120 and the switch circuit 170, waiting for the next access of an external device.
- not only terminals supporting the SCP protocol, etc. can be quickly charged through the external interface, but the recognition of USB2.0 devices will not be affected.
- the embodiment of the present application also provides a device identification method.
- the device identification method can be applied to the electronic device in this embodiment and has the same beneficial effects.
- the device identification method will be introduced below with reference to the electronic devices shown in Figures 8, 9 and 11.
- the device identification method can be implemented through the following steps:
- the controller controls the switch circuit so that the second protocol identification path is turned on by default and the first protocol identification path is turned off by default.
- the controller 140 is configured to pull up the level of the first control pin, the second control pin, the third control pin, and the fourth control pin of GIPO by default (ie, output a high level), so that the first switch The transistor 11 (PMOS) and the second switching transistor 12 (PMOS) are turned off, and the third switching transistor 13 (NMOS) and the fourth switching transistor 14 (NMOS) are turned on, so that the first protocol identification path is turned off, and the second protocol Identify path continuity.
- default ie, output a high level
- the charging protocol chip communicates with the external device, performs charging protocol detection, and feeds the detection results back to the controller.
- the charging protocol chip 130 completes a handshake with the terminal 201 to be charged through a handshake channel, and then provides a Vbus voltage of, for example, 5V to the power pin/power channel. Then, after the terminal to be charged 201 identifies the electronic device 100 as a DCP (Dedicated Charging Port, dedicated charging interface) device based on the BC1.2 protocol (Battery Charging v1.2), the charging protocol chip 130 performs charging protocol detection and sends the detection result Feedback to controller 120. For example, the charging protocol chip 130 sends an indication of success or failure of charging protocol detection to the controller 120 through the I2C bus.
- DCP Dedicated Charging Port, dedicated charging interface
- BC1.2 Battery Charging v1.2
- step S1503 is entered; otherwise, step S1505 is entered.
- the controller determines whether to start fast charging based on the battery power.
- the controller 120 determines whether to activate fast charging based on the current power of the battery 160 . For example, when the current power of the battery 160 is greater than the set threshold, the controller 120 determines to start fast charging.
- step S1504 is entered, otherwise step S1505 is entered.
- the charging protocol chip communicates charging information with the terminal, and after communicating the charging information, sends an enable signal to the voltage conversion circuit to start fast charging.
- the charging protocol chip 210 of the terminal determines the required charging voltage and current according to the current circuit of the battery 220, and then sends them to the charging protocol chip 130.
- the charging protocol chip 130 sends an enable signal to the voltage conversion circuit 150.
- the voltage conversion circuit 150 performs fast charging on the external device through the USB interface 140 according to the charging voltage and current determined by the charging protocol chip 130.
- the controller controls the switch circuit to disconnect the second protocol path and open the first protocol identification path.
- the charging protocol chip 130 sends an instruction to the controller 120 indicating that the charging protocol recognition fails or fast charging is not started.
- the controller 120 changes the first control pin, the second control pin, and the third control pin of the GPIO interface according to the instruction.
- the level signal or control signal output by the fourth control pin makes the third switching transistor 13 and the fourth switching transistor 14 turn off, and the first switching transistor 11 and the second switching transistor 12 turn on, making the second protocol identification path Disconnected, the first protocol identification path is turned on.
- the processor 110 communicates with the external device through the first protocol identification channel, thereby performing USB2.0 protocol identification and determining whether the external device is a USB2.0 device.
- the external device is determined to be a USB2.0 device, subsequent operations are performed based on the device type, such as data reading or storage.
- the processor notifies the controller that the USB2.0 device is unplugged.
- the processor 110 sends an instruction to unplug the USB 2.0 device to the controller 120 through, for example, the eSPI bus.
- the controller 120 changes the level signal or control signal output by the first control pin, the second control pin, the third control pin, and the fourth control pin of the GPIO interface, so that the third switching transistor 13 and the fourth switching transistor 14 are turned on, and the first switching transistor 11 and the second switching transistor 12 are turned off, so that the second protocol identification path is turned on and the first protocol identification path is turned off.
- the above example only shows the flow of a device identification method, but does not constitute a limitation of the present application.
- the device identification method may not include the above step S1503, or the above steps S1502 and S1504 may be combined into one step.
- the electronic device includes corresponding hardware and/or software modules that perform each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions in conjunction with the embodiments for each specific application, but such implementations should not be considered to be beyond the scope of this application.
- FIG. 16 shows a schematic block diagram of a device 500 according to an embodiment of the present application.
- the apparatus 500 may include a processor 501 and a transceiver/transceiver pin 502 and, optionally, a memory 503 .
- bus 504 includes, in addition to a data bus, a power bus, a control bus, and a status signal bus.
- bus 504 includes, in addition to a data bus, a power bus, a control bus, and a status signal bus.
- various buses are referred to as bus 504 in the figure.
- the memory 503 may be used for instructions in the foregoing method embodiments.
- the processor 501 can be used to execute instructions in the memory 503, and control the receiving pin to receive signals, and control the transmitting pin to send signals.
- the device 500 may be the electronic device or a chip of the electronic device in the above method embodiment.
- the above steps performed by the electronic device 100 in the device identification method provided by the embodiments of the present application can also be performed by a chip system included in the electronic device 100, where the chip system can include a processor and a Bluetooth chip.
- the chip system can be coupled with a memory, so that when the chip system is running, it calls the computer program stored in the memory to implement the steps performed by the electronic device 100 .
- the processor in the chip system may be an application processor or a non-application processor.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Engineering (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Power Sources (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
Abstract
Description
Claims (33)
- 一种电子设备,其特征在于,包括:处理器、控制器、充电协议芯片、外部接口和开关电路;所述处理器、所述充电协议芯片和所述外部接口均包括数据引脚单元;所述处理器的数据引脚单元、所述充电协议芯片的数据引脚单元、所述外部接口的数据引脚单元、所述控制器分别电连接至所述开关电路;所述控制器用于控制所述开关电路,使所述外部接口的数据引脚单元与所述处理器的数据引脚单元和所述充电协议芯片的数据引脚单元其中之一导通,与所述处理器的数据引脚单元和所述充电协议芯片的数据引脚单元其中另一断开。
- 根据权利要求1所述的电子设备,其特征在于,所述外部接口用于与外部设备电连接;所述处理器用于在所述外部接口与所述外部设备连接,且所述处理器的数据引脚单元与所述外部接口的引脚单元导通时,对所述外部设备进行第一协议识别;所述充电协议芯片用于在所述外部接口与所述外部设备连接,且所述充电协议芯片的数据引脚单元与所述外部接口的引脚单元导通时,对所述外部设备进行第二协议识别;所述处理器和所述充电协议芯片分别与所述控制器电连接,用于向所述控制器发送表示协议识别成功或失败的指示;所述控制器用于在接收到所述处理器发送的表示第一协议识别成功的指示后,继续控制所述开关电路使所述外部接口的数据引脚单元与所述处理器的数据引脚单元导通,与所述充电协议芯片的数据引脚单元断开,以及在接收到所述处理器发送的表示第一协议识别失败的指示后,控制所述开关电路使所述外部接口的数据引脚单元与所述处理器的数据引脚单元断开,与所述充电协议芯片的数据引脚单元导通;所述控制器用于在接收到所述充电协议芯片发送的表示第二协议识别成功的指示后,继续控制所述开关电路使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元导通,与所述处理器的数据引脚单元断开,以及在接收到所述充电协议芯片发送的表示第二协议识别失败的指示后,控制所述开关电路使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元断开,与所述处理器的数据引脚单元导通。
- 根据权利要求2所述的电子设备,其特征在于,所述控制器控制所述开关电路使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元导通,与所述处理器的数据引脚单元断开;以及在接收到所述充电协议芯片发送的表示第二协议识别失败的指示后,控制所述开关电路使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元断开,与所述处理器的数据引脚单元导通。
- 根据权利要求2所述的电子设备,其特征在于,还包括电压转换电路和电池,所述外部接口还包括电源引脚;所述电池通过所述电压转换电路与所述外部接口的电源引脚电连接;所述充电协议芯片与所述电压转换电路连接,用于在所述充电协议芯片议识别成功之后向所述电压转换电路发送使能信号,使所述电压转换电路向所述外部接口的电源引脚提供设定电压。
- 根据权利要求4所述的电子设备,其特征在于,所述控制器还用于在接收到所述充电协议芯片发送的表示第二协议识别成功的指示后,获取所述电池的电量信息,并根据所述电池电量信息向所述充电协议芯片发送启动快充或不启动快充的指示。
- 根据权利要求5所述的电子设备,其特征在于,所述控制器在所述电池的电量大于设定阈值时向所述充电协议芯片发送启动快充的指示,在所述电池的电量小于等于设定阈值时向所述充电协议芯片发送不启动快充的指示。
- 根据权利要求2所述的电子设备,其特征在于,当所述外部设备为支持第一协议的设备,且所述外部设备从所述外部接口拔出后,所述处理器还用于在所述外部设备拔出后,向所述控制器发送所述外部设备拔出的指示,所述控制器根据所述外部设备拔出的指示,控制所述开关电路使所述外部接口的数据引脚单元与所述处理器的数据引脚单元断开,与所述充电协议芯片的数据引脚单元导通。
- 根据权利要求1-7中的任意一项所述的电子设备,其特征在于,所述开关电路包括开关芯片,所述处理器的数据引脚单元、所述充电协议芯片的数据引脚单元、所述外部接口的数据引脚单元、所述控制器分别电连接至所述开关芯片。
- 根据权利要求1-7中的任意一项所述的电子设备,其特征在于,所述开关电路包括第一开关单元和第二开关单元;所述处理器的数据引脚单元、所述外部接口的数据引脚单元、所述控制器分别电连接至所述第一开关单元,所述控制器用于控制所述第一开关单元以使所述外部接口的数据引脚单元与所述处理器的数据引脚单元导通或断开;所述充电协议芯片的数据引脚单元、所述外部接口的数据引脚单元、所述控制器分别电连接至所述第二开关单元,所述控制器用于控制所述第二开关单元以使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元导通或断开。
- 根据权利要求9所述的电子设备,其特征在于,所述第一开关单元和所述第二开关单元均包括开关芯片。
- 根据权利要求1-7中的任意一项所述的电子设备,其特征在于,所述数据引脚单元包括第一数据引脚和第二数据引脚;所述开关电路包括第一至第四开关单元;所述处理器的第一数据引脚、所述外部接口的第一数据引脚、所述控制器分别电连接至所述第一开关单元,所述控制器用于控制所述第一开关单元以使所述外部接口的第一数据引脚与所述处理器的第一数据引脚导通或断开;所述处理器的第二数据引脚、所述外部接口的第二数据引脚、所述控制器分别电连接至所述第二开关单元,所述控制器用于控制所述第二开关单元以使所述外部接口的第二数据引脚与所述处理器的第二数据引脚导通或断开;所述充电协议芯片的第一数据引脚、所述外部接口的第一数据引脚、所述控制器分别电连接至所述第三开关单元,所述控制器用于控制所述第三开关单元以使所述外部接口的第一数据引脚与所述充电协议芯片的第一数据引脚导通或断开;所述充电协议芯片的第二数据引脚、所述外部接口的第二数据引脚、所述控制器分别电连接至所述第四开关单元,所述控制器用于控制所述第四开关单元以使所述外部接口的第二数据引脚与所述充电协议芯片的第二数据引脚导通或断开。
- 根据权利要求11所述的电子设备,其特征在于,所述第一至第四开关单元均包括开关芯片或MOS晶体管。
- 根据权利要求12所述的电子设备,其特征在于,所述第一开关单元包括PMOS晶体管,所述第二开关单元包括PMOS晶体管,所述第三开关单元包括NMOS晶体管,所述第四开关单元包括NMOS晶体管。
- 根据权利要求2-7中的任一项所述的电子设备,其特征在于,所述第一协议包括USB2.0协议,所述第二协议包括SCP/FCP快充协议。
- 根据权利要求1-7中的任一项所述的电子设备,其特征在于,所述数据引脚单元包括DP引脚或DM引脚。
- 一种设备识别方法,应用于权利要求1-15中的任意一项所述的电子设备,其特征在于,所述方法包括:控制器控制所述开关电路,使所述外部接口的数据引脚单元与所述处理器的数据引脚单元和所述充电协议芯片的数据引脚单元其中之一导通,与所述处理器的数据引脚单元和所述充电协议芯片的数据引脚单元其中另一断开;所述处理器和所述充电协议芯片其中之一对所述外部接口所连接的外部设备的类型进行识别;在所述处理器和所述充电协议芯片其中之一识别失败之后,控制器控制所述开关电路,使所述外部接口的数据引脚单元与所述处理器的数据引脚单元和所述充电协议芯片的数据引脚单元其中之一断开,与所述处理器的数据引脚单元和所述充电协议芯片的数据引脚单元其中另一导通;所述处理器和所述充电协议芯片其中另一对所述外部接口所连接的外部设备的类型进行识别。
- 根据权利要求16所述的设备识别方法,其特征在于,所述控制器控制所述开关电路,使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元导通,与所述处理器的数据引脚单元断开;所述充电协议芯片对所述外部设备的类型进行识别;在所述充电协议芯片识别失败之后,控制器控制所述开关电路,使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元其中之一断开,与所述处理器的数据引脚单元的数据引脚单元导通;所述处理器对所述外部设备的类型进行识别。
- 根据权利要求17所述的设备识别方法,其特征在于,在所述外部接口所连接的外部设备为所述处理器所对应的类型时,该方法还包括:所述处理器在所述外部设备拔出之后向所述控制器发送所述外部设备拔出的指示;所述控制器在接收到所述外部设备拔出的指示后,控制所述开关电路,使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元导通,与所述处理器的数据引脚单元断开。
- 一种充电系统,其特征在于,包括权利要求1-15任一项所述的电子设备和终端;所述终端包括充电接口和电池;所述充电接口与所述外部接口电连接;所述电子设备通过所述外部接口和所述充电接口为所述终端内的所述电池充电。
- 一种电子设备,其特征在于,包括:处理器、控制器、充电协议芯片、外部接口和开关电路;所述处理器、所述充电协议芯片和所述外部接口均包括数据引脚单元;所述处理器的数据引脚单元、所述充电协议芯片的数据引脚单元、所述外部接口的数据引脚单元、所述控制器分别电连接至所述开关电路;所述控制器用于控制所述开关电路,使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元导通,与所述处理器的数据引脚单元断开;所述充电协议芯片用于在所述外部接口与外部设备连接时,对所述外部设备进行第二协议识别;所述控制器用于在接收到所述充电协议芯片发送的表示第二协议识别失败的指示后,控制所述开关电路使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元断开,与所述处理器的数据引脚单元导通;所述处理器用于在所述外部接口与所述外部设备连接,且所述处理器的数据引脚单元与所述外部接口的引脚单元导通时,对所述外部设备进行第一协议识别,所述第一协议包括数据传输协议,所述第二协议包括快充协议。
- 根据权利要求20所述的电子设备,其特征在于,所述控制器用于在接收到所述处理器发送的表示第一协议识别成功的指示后,继续控制所述开关电路使所述外部接口的数据引脚单元与所述处理器的数据引脚单元导通,与所述充电协议芯片的数据引脚单元断开,以及在接收到所述处理器发送的表示第一协议识别失败的指示后,控制所述开关电路使所述外部接口的数据引脚单元与所述处理器的数据引脚单元断开,与所述充电协议芯片的数据引脚单元导通;所述控制器用于在接收到所述充电协议芯片发送的表示第二协议识别成功的指示后,继续控制所述开关电路使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元导通,与所述处理器的数据引脚单元断开。
- 根据权利要求20所述的电子设备,其特征在于,还包括电压转换电路和电池,所述外部接口还包括电源引脚;所述电池通过所述电压转换电路与所述外部接口的电源引脚电连接;所述充电协议芯片与所述电压转换电路连接,用于在所述充电协议芯片议识别成功之后向所述电压转换电路发送使能信号,使所述电压转换电路向所述外部接口的电源引脚提供设定电压。
- 根据权利要求22所述的电子设备,其特征在于,所述控制器还用于在接收到所述充电协议芯片发送的表示第二协议识别成功的指示后,获取所述电池的电量信息,并根据所述电池电量信息向所述充电协议芯片发送启动快充或不启动快充的指示。
- 根据权利要求23所述的电子设备,其特征在于,所述控制器在所述电池的电量大于设定阈值时向所述充电协议芯片发送启动快充的指示,在所述电池的电量小于等于设定阈值时向所述充电协议芯片发送不启动快充的指示。
- 根据权利要求20所述的电子设备,其特征在于,当所述外部设备为支持第一协议的设备,且所述外部设备从所述外部接口拔出后,所述处理器还用于在所述外部设备拔出后,向所述控制器发送所述外部设备拔出的指示,所述控制器根据所述外部设备拔出的指示,控制所述开关电路使所述外部接口的数据引脚单元与所述处理器的数据引脚单元断开,与所述充电协议芯片的数据引脚单元导通。
- 根据权利要求20-25中的任意一项所述的电子设备,其特征在于,所述开关电路包括开关芯片,所述处理器的数据引脚单元、所述充电协议芯片的数据引脚单元、所述外部接口的数据引脚单元、所述控制器分别电连接至所述开关芯片。
- 根据权利要求20-25中的任意一项所述的电子设备,其特征在于,所述开关电 路包括第一开关单元和第二开关单元;所述处理器的数据引脚单元、所述外部接口的数据引脚单元、所述控制器分别电连接至所述第一开关单元,所述控制器用于控制所述第一开关单元以使所述外部接口的数据引脚单元与所述处理器的数据引脚单元导通或断开;所述充电协议芯片的数据引脚单元、所述外部接口的数据引脚单元、所述控制器分别电连接至所述第二开关单元,所述控制器用于控制所述第二开关单元以使所述外部接口的数据引脚单元与所述充电协议芯片的数据引脚单元导通或断开。
- 根据权利要求27所述的电子设备,其特征在于,所述第一开关单元和所述第二开关单元均包括开关芯片。
- 根据权利要求20-25中的任意一项所述的电子设备,其特征在于,所述数据引脚单元包括第一数据引脚和第二数据引脚;所述开关电路包括第一至第四开关单元;所述处理器的第一数据引脚、所述外部接口的第一数据引脚、所述控制器分别电连接至所述第一开关单元,所述控制器用于控制所述第一开关单元以使所述外部接口的第一数据引脚与所述处理器的第一数据引脚导通或断开;所述处理器的第二数据引脚、所述外部接口的第二数据引脚、所述控制器分别电连接至所述第二开关单元,所述控制器用于控制所述第二开关单元以使所述外部接口的第二数据引脚与所述处理器的第二数据引脚导通或断开;所述充电协议芯片的第一数据引脚、所述外部接口的第一数据引脚、所述控制器分别电连接至所述第三开关单元,所述控制器用于控制所述第三开关单元以使所述外部接口的第一数据引脚与所述充电协议芯片的第一数据引脚导通或断开;所述充电协议芯片的第二数据引脚、所述外部接口的第二数据引脚、所述控制器分别电连接至所述第四开关单元,所述控制器用于控制所述第四开关单元以使所述外部接口的第二数据引脚与所述充电协议芯片的第二数据引脚导通或断开。
- 根据权利要求29所述的电子设备,其特征在于,所述第一至第四开关单元均包括开关芯片或MOS晶体管。
- 根据权利要求30所述的电子设备,其特征在于,所述第一开关单元包括PMOS晶体管,所述第二开关单元包括PMOS晶体管,所述第三开关单元包括NMOS晶体管,所述第四开关单元包括NMOS晶体管。
- 根据权利要求20-25中的任一项所述的电子设备,其特征在于,所述第一协议包括USB2.0协议,所述第二协议包括SCP/FCP快充协议。
- 根据权利要求20-25中的任一项所述的电子设备,其特征在于,所述数据引脚 单元包括DP引脚或DM引脚。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP23797620.4A EP4336309B1 (en) | 2022-07-27 | 2023-04-23 | Electronic device, device identification method, and charging system |
| US18/559,926 US12572190B2 (en) | 2022-07-27 | 2023-04-23 | Electronic device, device identification method, and charging system |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210892907.8A CN114967894B (zh) | 2022-07-27 | 2022-07-27 | 电子设备、设备识别方法及充电系统 |
| CN202210892907.8 | 2022-07-27 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| WO2024021709A1 true WO2024021709A1 (zh) | 2024-02-01 |
| WO2024021709A9 WO2024021709A9 (zh) | 2024-04-04 |
Family
ID=82968647
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/090096 Ceased WO2024021709A1 (zh) | 2022-07-27 | 2023-04-23 | 电子设备、设备识别方法及充电系统 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US12572190B2 (zh) |
| EP (1) | EP4336309B1 (zh) |
| CN (1) | CN114967894B (zh) |
| WO (1) | WO2024021709A1 (zh) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114967894B (zh) * | 2022-07-27 | 2023-01-17 | 荣耀终端有限公司 | 电子设备、设备识别方法及充电系统 |
| CN118152315A (zh) * | 2022-12-06 | 2024-06-07 | 华为技术有限公司 | 一种电子设备及充电系统 |
| CN115630008B (zh) * | 2022-12-22 | 2023-03-31 | 深圳市湘凡科技有限公司 | 通过dp端口传输电力方法、装置、计算机设备及存储介质 |
| CN117708013B (zh) * | 2023-06-09 | 2024-11-26 | 荣耀终端有限公司 | 电子设备、控制方法及相关装置 |
| CN120216422A (zh) * | 2023-12-26 | 2025-06-27 | 海能达通信股份有限公司 | Usb设备识别电路、识别方法及电子设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170040812A1 (en) * | 2015-08-05 | 2017-02-09 | Hisense Mobile Communications Technology Co., Ltd. | Mobile terminal, dc-charging power source adaptor, and charging method |
| CN111201689A (zh) * | 2017-12-11 | 2020-05-26 | 深圳市柔宇科技有限公司 | 一种电子设备及充电控制方法 |
| CN112448423A (zh) * | 2019-08-28 | 2021-03-05 | 北京小米移动软件有限公司 | 充电方法和装置、电子设备、存储介质 |
| WO2022012644A1 (zh) * | 2020-07-15 | 2022-01-20 | 华为技术有限公司 | 一种基于充电线缆的数据传输方法及电子设备 |
| CN114967894A (zh) * | 2022-07-27 | 2022-08-30 | 荣耀终端有限公司 | 电子设备、设备识别方法及充电系统 |
Family Cites Families (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103618356B (zh) | 2013-12-03 | 2016-10-19 | Tcl通讯(宁波)有限公司 | 一种移动终端的充电系统及其充电方法 |
| CN106058983B (zh) * | 2016-06-30 | 2019-01-29 | 维沃移动通信有限公司 | 一种充电控制电路、电子设备,及充电控制方法 |
| CN108093329B (zh) * | 2018-01-17 | 2024-01-30 | 歌尔科技有限公司 | 基于共用接口的外设类型检测电路及移动终端 |
| CN108964187B (zh) | 2018-07-24 | 2020-10-30 | 北京小米移动软件有限公司 | 终端以及终端间的充电方法 |
| TW202020676A (zh) * | 2018-11-26 | 2020-06-01 | 和碩聯合科技股份有限公司 | 具有通用序列匯流排c型連接器的電子裝置 |
| CN111064243A (zh) * | 2019-12-12 | 2020-04-24 | 优奈柯恩(北京)科技有限公司 | 移动电源及为外设设备供电的方法 |
| JP2022012644A (ja) | 2020-07-02 | 2022-01-17 | 株式会社村田製作所 | 半導体モジュール |
| CN213399565U (zh) * | 2020-12-09 | 2021-06-08 | 维沃移动通信有限公司 | 充电电路和电子设备 |
| CN112787372B (zh) * | 2020-12-29 | 2023-10-27 | 维沃移动通信有限公司 | 充电设备及充电系统 |
| KR20220123994A (ko) * | 2021-03-02 | 2022-09-13 | 삼성전자주식회사 | 전자 장치 및 전자 장치의 전원 공급 제어 방법 |
| CN112737566B (zh) * | 2021-04-02 | 2021-06-22 | 荣耀终端有限公司 | 一种接口转换电路及电子设备 |
| CN117318220A (zh) * | 2021-04-13 | 2023-12-29 | 上海传英信息技术有限公司 | 一种充电芯片、充电装置及移动终端 |
| CN115514030A (zh) * | 2021-06-07 | 2022-12-23 | 北京小米移动软件有限公司 | 充电控制方法、充电控制装置及存储介质 |
| CN113659663A (zh) * | 2021-07-28 | 2021-11-16 | 安克创新科技股份有限公司 | 充电装置 |
| EP4344159A4 (en) * | 2021-10-22 | 2024-10-23 | Samsung Electronics Co., Ltd. | MULTIPORT ADAPTER FOR SUPPORTING A POWER SUPPLY AND PORTABLE ELECTRONIC DEVICE CONNECTED TO IT |
| US20230305615A1 (en) * | 2022-03-25 | 2023-09-28 | Intel Corporation | Opportunistic battery charging with a programmable power adapter |
-
2022
- 2022-07-27 CN CN202210892907.8A patent/CN114967894B/zh active Active
-
2023
- 2023-04-23 WO PCT/CN2023/090096 patent/WO2024021709A1/zh not_active Ceased
- 2023-04-23 US US18/559,926 patent/US12572190B2/en active Active
- 2023-04-23 EP EP23797620.4A patent/EP4336309B1/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170040812A1 (en) * | 2015-08-05 | 2017-02-09 | Hisense Mobile Communications Technology Co., Ltd. | Mobile terminal, dc-charging power source adaptor, and charging method |
| CN111201689A (zh) * | 2017-12-11 | 2020-05-26 | 深圳市柔宇科技有限公司 | 一种电子设备及充电控制方法 |
| CN112448423A (zh) * | 2019-08-28 | 2021-03-05 | 北京小米移动软件有限公司 | 充电方法和装置、电子设备、存储介质 |
| WO2022012644A1 (zh) * | 2020-07-15 | 2022-01-20 | 华为技术有限公司 | 一种基于充电线缆的数据传输方法及电子设备 |
| CN114967894A (zh) * | 2022-07-27 | 2022-08-30 | 荣耀终端有限公司 | 电子设备、设备识别方法及充电系统 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4336309A4 |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2024021709A9 (zh) | 2024-04-04 |
| US12572190B2 (en) | 2026-03-10 |
| US20250148069A1 (en) | 2025-05-08 |
| CN114967894B (zh) | 2023-01-17 |
| CN114967894A (zh) | 2022-08-30 |
| EP4336309B1 (en) | 2025-07-02 |
| EP4336309A4 (en) | 2024-09-04 |
| EP4336309A1 (en) | 2024-03-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114967894B (zh) | 电子设备、设备识别方法及充电系统 | |
| JP5986145B2 (ja) | ポータブル・デバイス、ケーブル・アセンブリおよびusbシステム | |
| CN101727428B (zh) | 控制便携式终端中usb开关电路的设备和方法 | |
| US8880748B2 (en) | Switching system which allows primary USB connection in response to USB signaling | |
| CN102315576B (zh) | 电缆内的电力分发 | |
| US8880909B2 (en) | Auto-detect polling for correct handshake to USB client | |
| CN108988431B (zh) | 一种多协议充电装置以及多协议充电方法 | |
| WO2024027208A1 (zh) | 充电电路、电子设备、充电系统及反向充电方法 | |
| WO2021082731A1 (zh) | 一种电子设备及反向充电方法 | |
| CN111880635B (zh) | 电子设备及其供电控制方法、供电控制系统 | |
| WO2013066507A1 (en) | Device charging over usb using a plurality of handshakes | |
| US9590441B2 (en) | Multi-standard compliant USB battery charging scheme with detection of host disconnection in ACA-DOCK mode | |
| TWI806769B (zh) | 受電裝置及供電路徑的控制方法 | |
| CN113162161A (zh) | 一种基于Type-c接口的充放电电路控制方法、电路以及控制器 | |
| CN116707055B (zh) | 充电电路、电子设备及反向充电方法 | |
| CN115864609A (zh) | 一种电子设备及充电方法 | |
| CN112383125A (zh) | 一种主动防过充装置及方法 | |
| TWI829240B (zh) | 電子裝置 | |
| CN114678936A (zh) | 一种电子设备及充电方法 | |
| CN219247497U (zh) | 一种蓝牙适配器及蓝牙适配系统 | |
| CN119690230B (zh) | 控制系统、扩展坞及其电源管理方法 | |
| CN223038158U (zh) | 接口检测设备 | |
| CN115794726A (zh) | 物理层芯片、电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| WWE | Wipo information: entry into national phase |
Ref document number: 18559926 Country of ref document: US |
|
| ENP | Entry into the national phase |
Ref document number: 2023797620 Country of ref document: EP Effective date: 20231106 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWP | Wipo information: published in national office |
Ref document number: 18559926 Country of ref document: US |
|
| WWG | Wipo information: grant in national office |
Ref document number: 2023797620 Country of ref document: EP |
|
| WWG | Wipo information: grant in national office |
Ref document number: 18559926 Country of ref document: US |