WO2025102798A1 - 充电方法、电子设备及相关装置 - Google Patents
充电方法、电子设备及相关装置 Download PDFInfo
- Publication number
- WO2025102798A1 WO2025102798A1 PCT/CN2024/106253 CN2024106253W WO2025102798A1 WO 2025102798 A1 WO2025102798 A1 WO 2025102798A1 CN 2024106253 W CN2024106253 W CN 2024106253W WO 2025102798 A1 WO2025102798 A1 WO 2025102798A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- external device
- power
- charging
- charging power
- 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.)
- Pending
Links
Classifications
-
- 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/90—Regulation of charging or discharging current or voltage
-
- 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/382—Information transfer, e.g. on bus using universal interface adapter
-
- 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/70—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the mechanical construction
- H02J7/751—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the mechanical construction concerning the insertion or the connection of the 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/80—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries including monitoring or indicating arrangements
-
- 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/80—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries including monitoring or indicating arrangements
- H02J7/82—Control of state of charge [SOC]
-
- 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]
-
- 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 a charging method, an electronic device and related devices.
- USB universal serial bus
- PC personal computers
- notebooks Notebooks or Laptops
- USB Type-C interface of PC products supports the USB power delivery (PD) protocol and supports providing charging power of up to 5V/3A to the connected terminal devices. How to increase the charging current that PC products can provide needs further research.
- PD USB power delivery
- a charging method, an electronic device and related devices provided in the embodiments of the present application can establish a connection with an external device through a USB interface, thereby providing different charging powers to the external device.
- the present application provides a charging method, which is applied to an electronic device, the electronic device comprising one or more USB interfaces, the electronic device being connected to a first external device via a first USB interface among the one or more universal serial bus USB interfaces, the method comprising:
- the charging power of the second specification includes the charging power of the highest charging gear that the first external device can receive
- the charging power of the second specification belongs to the charging power that the electronic device supports to output to the first external device
- the charging power of the second specification is greater than the charging power of the first specification
- the charging power of the second specification is output to the first external device through the first USB interface.
- the USB interface includes a USB Type-C interface.
- the electronic device can first broadcast the charging power it supports to the first external device. After receiving the response from the first external device, the electronic device first outputs the charging power of the first specification (the default charging power, for example, 5V/2A) to the first external device. In the case where the first external device supports a higher charging power, the first external device can send a higher charging power to the electronic device. Charging power request. The electronic device responds to the request and provides the first external device with the highest charging power that can be received. It is understandable that because the electronic device can provide charging power of multiple specifications, at the request of the first external device, different specifications of charging power can be provided to the external device to meet different charging needs.
- the first specification the default charging power, for example, 5V/2A
- the electronic device further includes a switch switching circuit and a processor, the switch switching circuit corresponds to the one or more USB interfaces, and the switch switching circuit connects the processor and a short-circuited 0 ohm resistor.
- the processor is used to meet the requirement of some external devices that the electronic device will only require a larger charging power when it is a DCP terminal, or to meet the charging scheme of certain private protocols.
- the USB interface can be switched to be connected to the processor or short-circuited with a 0 ohm resistor through the switch switching circuit.
- the electronic device When connected to the processor through the switch switching circuit, the electronic device can be considered as an SDP end.
- the electronic device When short-circuited with a 0 ohm resistor through the switch switching circuit, the electronic device can be considered as a DCP end.
- outputting the second-specification charging power to the first external device through the first USB interface includes:
- the charging power of the second specification is output to the first external device through the first USB interface.
- the present application can output charging power to the outside while ensuring its own charging needs, without affecting the power demand of the electronic device itself.
- the electronic device is connected to a second external device through a second USB interface among the one or more USB interfaces, and the outputting the second specification of charging power to the first external device through the first USB interface includes:
- the charging power of the second specification is output to the first external device through the first USB interface.
- USB interfaces when other USB interfaces are also connected to devices, it is necessary to determine whether the device is charging the electronic device. When other devices are not charging the electronic device, a higher charging power is output to the first external device. When other devices are charging the electronic device, the normal charging power is restored. This can avoid the unstable performance of the electronic device due to the output of a higher charging power when charging the electronic device.
- the switch switching circuit is used to connect the first USB interface and the processor, and after outputting the charging power of the first specification to the first external device through the first USB interface and before receiving a request for charging power of a second specification from the electronic device, further comprising:
- the first USB interface performs protocol interaction with the first external device to determine that the electronic device is a dedicated charging port DCP end.
- the electronic device when the switch circuit is switched to connecting the first USB interface and the processor, the electronic device is identified as an SDP end. If the first external device needs to be fast charged, it can be switched to connecting the first USB interface and a 0 ohm resistor through the switch circuit. In this way, the electronic device is identified as a DCP end and can output a higher charging power to the first external device.
- the electronic device is connected to a second external device through a second USB interface among the one or more USB interfaces, and the receiving a fast charging request from the first external device includes:
- USB interfaces are also connected to devices, it is necessary to determine whether the device is charging the electronic device.
- a fast charging request from the first external device is received.
- other devices are charging the electronic device, normal charging power is restored. This can avoid unstable performance of the electronic device due to high output charging power when charging the electronic device.
- the electronic device when the switch switching circuit connects the first USB interface and the 0-ohm resistor, the electronic device is a DCP terminal.
- the electronic device can support some gears of the PD protocol and PPS, so that it can output different and higher charging power.
- the electronic device is connected to a second external device through a second USB interface among the one or more USB interfaces, and the outputting the second specification of charging power to the first external device through the first USB interface includes:
- the charging power of the second specification is output to the first external device through the first USB interface.
- the electronic device when the electronic device is identified as a DCP terminal, if other USB interfaces are also connected to devices, it is necessary to determine whether the device is charging the electronic device. When other devices are not charging the electronic device, a higher charging power is output to the first external device. When other devices are charging the electronic device, the normal charging power is restored. This can avoid the unstable performance of the electronic device due to the output of a higher charging power when charging the electronic device.
- the method further includes:
- the voltage and current are adjusted according to the request for the charging power of the third specification, and the voltage and current corresponding to the request for the charging power of the third specification are output.
- the electronic device can adjust the voltage and current in real time according to the requirements of the first external device, so as to output the charging power matching the requirements to adapt to different application environments.
- the electronic device includes one or more of a power transmission module, a control unit, and a power supply module
- the outputting the second specification of charging power to the first external device through the first USB interface includes:
- the charging power of the second specification is output to the first external device through the first USB interface.
- the electronic device outputs higher charging power through the control unit, the power transmission module and the power supply module.
- the present application provides an electronic device, comprising one or more of one or more USB interfaces, a power transmission module, a control unit, and a power supply module, wherein the electronic device is connected to a first external device through a first USB interface of the one or more universal serial bus USB interfaces,
- the power transmission module is configured to send a first message to the first external device through the first USB interface, wherein the first message includes the charging power that the electronic device supports outputting to the first external device;
- the power transmission module is used to receive a request for a charging power of a first specification from the first external device through the first USB interface, wherein the charging power of the first specification belongs to the charging power supported by the electronic device to output to the first external device;
- the control unit is used to control the power module to output a charging power of a first specification
- the power transmission module is used to output the charging power of the first specification to the first external device through the first USB interface;
- the power transmission module is further configured to receive a request for a second specification of charging power from the first external device through the first USB interface, wherein the second specification of charging power includes a charging power of a highest charging gear that can be received by the first external device, the second specification of charging power belongs to the charging power supported by the electronic device to output to the first external device, and the second specification of charging power is greater than the first specification of charging power;
- the control unit is used to control the power module to output a charging power of a second specification
- the power transmission module is used to output the charging power of the second specification to the first external device through the first USB interface.
- the electronic device further includes a switch switching circuit and a processor, the switch switching circuit corresponds to the one or more USB interfaces, and the switch switching circuit connects the processor and a short-circuited 0 ohm resistor.
- an embodiment of the present application provides an electronic device, the electronic device comprising: one or more USB interfaces; one or more processors; a memory; wherein the USB interface is used to establish a connection with a device having the USB interface, the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the charging method described in the first aspect or any possible implementation of the first aspect.
- the present application provides a chip or a chip system, which includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected through a line, and the at least one processor is used to run a computer program or instruction to execute the charging method described in the first aspect or any possible implementation of the first aspect.
- the communication interface in the chip can be an input/output interface, a pin or a circuit, etc.
- the chip or chip system described above in the embodiment of the present application further includes at least one memory, in which instructions are stored.
- the memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).
- an embodiment of the present application provides a computer storage medium, which stores a computer A computer program, when the computer program is executed by a processor, enables the computer to perform the charging method described in the first aspect or any possible implementation of the first aspect.
- an embodiment of the present application provides a computer program product, which, when executed on a communication device, enables the communication device to execute a charging method as described in the first aspect or any possible implementation of the first aspect.
- FIG1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- FIG2 is a schematic diagram of the architecture of an electronic device provided in an embodiment of the present application.
- FIG3 is a schematic diagram of a charging scenario of a single Type-C interface based on a first charging circuit provided in an embodiment of the present application;
- FIG4 is a schematic diagram showing a flow chart of a charging scenario of a single Type-C interface based on a first charging circuit
- FIG5 is a schematic diagram of a charging scenario of a dual Type-C interface based on a first charging circuit provided in an embodiment of the present application;
- FIG6 is a schematic diagram showing a flow chart of a charging scenario of a dual Type-C interface based on a first charging circuit
- FIG7 is a schematic diagram of the architecture of another electronic device provided in an embodiment of the present application.
- FIG8 is a schematic diagram of a charging scenario of a single Type-C interface based on a second charging circuit provided in an embodiment of the present application;
- FIG9 is a schematic diagram of a charging process of a single Type-C interface based on a second charging circuit
- FIG10 is a schematic diagram showing a flow chart of another charging scenario of a single Type-C interface based on a second charging circuit
- FIG11 is a schematic diagram of a charging scenario of a dual Type-C interface based on a second charging circuit provided in an embodiment of the present application;
- 12A-12C are schematic flow diagrams showing a charging scenario of a dual Type-C interface based on a second charging circuit
- 13A-13C are schematic flow charts showing another charging scenario of a dual Type-C interface based on a second charging circuit
- FIG. 14 is a flow chart of a charging method provided in an embodiment of the present application.
- first and second are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features.
- a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality” means two or more.
- Power delivery (PD) protocol is a communication protocol used to transmit power between power adapters and chargers.
- the PD protocol enables intelligent power transmission management by communicating between the power adapter and the charger. It can automatically adjust the voltage and current according to the needs of the device to provide the charging capacity that best suits the device.
- the PD protocol also supports two-way communication, allowing devices to send requests to the power adapter, such as adjusting power, obtaining device information, etc.
- USB Type-C is a Type C USB interface defined by the USB Association. It supports symmetrical plugging and unplugging, and can use any USB transmission protocol such as USB2.0 protocol, USB3.0 protocol or USB3.1 protocol. It supports USB standard charging, data transmission, audio transmission, display output and other functions.
- USB Type-C The difference between the USB Type-C standard and the old standard is that it introduces dual-role capabilities. Both ends of each USB Type-C cable are completely equivalent, which means that the two connected devices need to communicate with each other to determine whether they should exist as a host or a peripheral. The role communication needs to be carried out separately for data and power.
- the host port used for data communication is called the downstream facing port (DFP)
- the peripheral port is called the upstream facing port (UFP).
- UFP upstream facing port
- the power supply end is called the source end (Source)
- Sink the slave end
- Some devices can have dual-role capabilities in both data and power.
- the USB Type-C cable supports a maximum charging voltage/current/power of up to 5V/3A (i.e. 15W). If the PD protocol is used, it can be increased to a maximum charging voltage/current/power of 20V/5A (i.e. 100W). Among them, the USB PD3.0 protocol supports the programmable power supply (PPS) protocol, allowing precise control of voltage and current.
- PPS programmable power supply
- Charging standard BC1.2 is based on the communication mode of USB2.0D+/D- lines. It defines three types of ports: standard downstream port (SDP), dedicated charging port (DCP) and charging downstream port (CDP).
- SDP standard downstream port
- DCP dedicated charging port
- CDP charging downstream port
- S-State including but not limited to six levels S0-S5, among which:
- S1-S2 corresponds to the sleep state, where S1 corresponds to the state where the processor stops working but is still powered on, and S2 corresponds to the state where the processor is turned off and the power is disconnected, but surrounding devices such as Bluetooth remain running;
- S3 corresponds to the standby state under sleep, that is, all devices including the processor are powered off, but the memory remains running;
- S5 corresponds to the shutdown state.
- PC products with USB Type-C interfaces can charge mobile phones, tablets and other terminal devices.
- the PC product and the terminal device After the PC product and the terminal device have successfully handshaked according to the charging protocol (such as the PD protocol), the PC product can provide a maximum charging voltage/current/power of up to 5V/3A (i.e. 15W), but the charging current is generally limited to 2A according to the specifications.
- the terminal device will recognize the port of the PC product as SDP by default through the BC2.1 protocol, and communicate data with the PC product based on the USB2.0 protocol.
- PC products can provide greater charging power to terminal devices based on PD3.0 or PD2.0, but the current terminal devices must recognize the port of the source (Source) as DCP before they can support some charging gears and PPS of the PD protocol. Since the current terminal device recognizes the port of the PC product as SDP by default after establishing a connection with the PC product, the charging gears that the PC product can provide for the terminal device are limited.
- the present application provides a charging method, an electronic device and related devices, wherein the electronic device includes one or more USB interfaces, and the electronic device is connected to a first external device through a first USB interface among the one or more USB interfaces.
- the electronic device broadcasts the supported external charging power to the first external device through the first USB interface.
- the first external device will first request a charging power of 5V/2A, and the electronic device responds to its request and outputs a charging power of 5V/2A to the first external device.
- a higher charging power for example, 9V/2A
- the electronic device responds to its request and outputs a charging power of, for example, 9V/2A to the first external device. It can be seen that the electronic device can provide different charging gears to the first external device.
- the electronic device further includes a switch switching circuit and a processor, the switch switching circuit corresponds to one or more USB interfaces, and the switch switching circuit connects the processor and a short-circuited 0 ohm resistor.
- the switch circuit can be controlled to switch to connect a 0 ohm resistor, and the electronic device interacts with the first external device through the first USB interface to determine that the electronic device is a dedicated charging port DCP terminal.
- DCP terminal When the electronic device is identified as a DCP terminal, some charging gears and PPS of the PD protocol can be supported.
- an embodiment of the present application provides an electronic device, which can be used as a power source to charge a device to be charged.
- the electronic device/device to be charged provided in the embodiment of the present application may be, but is not limited to, a notebook computer (Notebook or Laptop), a tablet computer, a mobile phone, a desktop computer, an all-in-one machine, a personal digital assistant (PDA for short), and may also be a car computer, a smart wearable device, a smart home device, augmented reality (AR)/virtual reality (VR), etc.
- the embodiment of the present application does not limit the specific types of the above-mentioned electronic devices and devices to be charged.
- FIG1 is a schematic diagram of the structure of the electronic device provided in an embodiment of the present application.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone marrow sensor 180A, a pressure sensor 180B, a pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone marrow sensor 180A, a pressure sensor 180A, a pressure sensor 180B, a pressure sensor 180C, Guide sensor 180M, etc.
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently.
- the illustrated components may be implemented in hardware, software, or a combination of software and hardware. For example, for a desktop device or an all-in-one device, a SIM card interface, an antenna group 1, and a mobile communication module may not be included; for a laptop computer, an antenna group 1 and a mobile communication module may not be included.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
- AP application processor
- GPU graphics processor
- ISP image signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- Different processing units may be independent devices or integrated in one or more processors.
- the controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
- I2C inter-integrated circuit
- I2S inter-integrated circuit sound
- PCM pulse code modulation
- UART universal asynchronous receiver/transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may include multiple groups of I2C buses.
- the processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
- the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
- the I2S interface can be used for audio communication.
- the processor 110 can include multiple I2S buses.
- the processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170.
- the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
- the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
- the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.
- the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus used for asynchronous communication.
- the bus can be a bidirectional communication bus.
- the data to be transmitted is converted between serial communication and parallel communication.
- the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
- the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193.
- the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
- the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100.
- the processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.
- the GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
- the USB interface 130 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones.
- the interface can also be used to connect other electronic devices, such as AR devices, etc.
- the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the charging management module 140 is used to receive charging input from a charger or provide power to an external device.
- the charger can be a wireless charger or a wired charger.
- the charging management module 140 can receive charging input from a wired charger through the USB interface 130.
- the charging management module 140 can receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also power the electronic device through the power management module 141.
- the charging management module 140 can support the USB power transmission (PD) charging protocol.
- PD USB power transmission
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
- the power management module 141 can also be set in the processor 110.
- the power management module 141 and the charging management module 140 can also be set in the same device.
- the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), Active-matrix organic light emitting diode or active-matrix organic light emitting diode (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc.
- the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
- Video codecs are used to compress or decompress digital videos.
- the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
- MPEG Moving Picture Experts Group
- MPEG2 MPEG2, MPEG3, MPEG4, etc.
- NPU is a neural network (NN) computing processor.
- NN neural network
- applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
- the internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
- RAM random access memories
- NVM non-volatile memories
- Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.; non-volatile memory may include disk storage devices and flash memory (flash memory).
- SRAM static random-access memory
- DRAM dynamic random access memory
- SDRAM synchronous dynamic random access memory
- DDR SDRAM double data rate synchronous dynamic random access memory
- non-volatile memory may include disk storage devices and flash memory (flash memory).
- Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; can be divided into single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage unit potential level; can be divided into universal flash storage (UFS), embedded multi media Card (eMMC), etc. according to the storage specification.
- SLC single-level cell
- MLC multi-level cell
- TLC triple-level cell
- QLC quad-level cell
- UFS universal flash storage
- eMMC embedded multi media Card
- the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
- the non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
- the external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100.
- the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
- the following takes the PD charging protocol and two Type-C interfaces as examples to introduce the charging method and electronic device provided by the present application. It should be noted that the charging method provided by the present application is also suitable for devices with two or more Type-C interfaces, as well as the type protocols of the PD charging protocol, such as the charging protocol that communicates with the CC signal, or the charging protocol that communicates with the Type-C interface.
- the pin of the Type-C interface communicates at the position corresponding to the CC signal, or the charging protocol communicates with the non-D+/D- signal defined by the Type-C interface.
- the structure of the electronic device 100 is introduced by taking the electronic device as a PC product, for example.
- Figure 2 is a schematic diagram of the architecture of an electronic device provided in an embodiment of the present application.
- the electronic device 100 can be used to implement the charging method provided in an embodiment of the present application.
- the electronic device 100 includes a first charging circuit 101 and a processor 205.
- the first charging circuit 101 includes one or more of a first Type-C interface 2011, a second Type-C interface 2012, a power transmission module 202, a power module 203, and a control unit 204. Among them:
- the first Type-C interface 2011 and/or the second Type-C interface 2012 are used to connect external devices.
- the electronic device 100 provides power to the external device through the first Type-C interface 2011 and/or the second Type-C interface 2012
- the electronic device is the charging end (represented by Source) and the external device is the power-consuming device end (represented by Sink).
- the first Type-C interface 2011 and/or the second Type-C interface 2012 include one or more of the VBUS pin for power supply, the CC pin (including the CC1 pin and the CC2 pin), the DP (also called D+ or data positive signal) pin and the DM (also called D- or data negative signal) pin.
- the VBUS pin for power supply the CC pin (including the CC1 pin and the CC2 pin)
- the DP also called D+ or data positive signal
- the DM also called D- or data negative signal
- the VBUS pin is the return path of the power supply.
- the default VBUS voltage is 5V, but the standard allows devices to negotiate and select a VBUS voltage other than the default value to support a larger voltage. This application does not impose any restrictions on the supported VBUS voltage value.
- the CC pin is used to complete the configuration channel function defined in the USB Type-C specification and the functions specified in the USB PD specification.
- the DM pin and DP pin are a differential pair for USB 2.0 connection.
- the signals transmitted on the DM/DP pins can be used to identify private protocols.
- the power transmission module 202 is, for example, a USB-PD charging protocol integrated circuit (IC).
- the USB-PD charging protocol IC may be an IC that communicates with the CC channel protocol defined by the Type-C interface, supporting the PD charging protocol or a charging protocol similar to the PD charging protocol.
- the power transmission module 202 may also include one or more interfaces, such as an I2C interface.
- the PD chip is electrically connected to the I2C interface of the control unit 204 through the I2C interface and the I2C bus, thereby realizing the electrical connection between the power transmission module 202 and the control unit 204 and the transmission of signals.
- the PD chip may, for example, be electrically connected to the CC pins (CC1/CC2 pins) of the first Type-C interface 2011 and/or the second Type-C interface 2012, and the recognition of the external device connected to the first Type-C interface 2011 and/or the second Type-C interface 2012 may be realized through the voltage change at the CC pin.
- CC pins CC1/CC2 pins
- one or more first switches and one or more second switches are provided in the power transmission module 202, the first Type-C interface 2011 corresponds to the first switch and the second switch respectively, and the second Type-C interface 2012 corresponds to the first switch and the second switch respectively. It can be understood that in the case of two or more USB Type-C interfaces, two or more first switches and two or more second switches are provided in the power transmission module 202, corresponding to different USB Type-C interfaces respectively.
- the power module 203 includes one or more of a charging control chip, a battery, and a buck circuit.
- the buck circuit is used to output a voltage, for example, output a 5V fixed voltage to the power transmission module 202, so as to output the 5V voltage to the first Type-C interface 2011 through a pin in the power transmission module 202 electrically connected to the first switch. at the VBUS pin of and/or at the VBUS pin of the second Type-C interface 2012.
- the first switch can be located inside the power transmission module 202 or outside the power transmission module 202, and the power transmission module 202 controls its on or off, for example, controls whether to output a 5V fixed voltage to the VBUS pin of the first Type-C interface 2011 and/or the second Type-C interface 2012.
- the first switch can be, for example, a switch chip with an overcurrent protection (OCP) function.
- OCP overcurrent protection
- the first switch is not limited to this, as long as the module can have the function of on or off and the overcurrent protection function, it is within the protection scope of the embodiment of the present application.
- the charging control (charger) chip is electrically connected to the VBUS pin of the first Type-C interface 2011 and/or the second Type-C interface 2012 through the second switch, and is also connected to the battery and the control unit 204 respectively.
- the power module 203 is used to receive the charging input through the second switch, and while charging the battery, it can also power other modules that need to be powered during operation, thereby completing the forward charging of the electronic device.
- the power module 203 also has a power reverse output function, that is, a function of outputting power to an external device to be charged.
- the power reverse output function can be implemented based on the active (On The Go, OTG) function, and the voltage and current of the reverse output of the power module 203 are adjustable.
- the second switch can be, for example, a switch chip with an overvoltage protection (OVP) function.
- OVP overvoltage protection
- the second switch module 70 is not limited thereto, and any module that can have a function of turning on or off and an overvoltage protection function is within the protection scope of the embodiment of the present application.
- the second switch can be turned on or off by the power transmission module 202, or the control unit 204 can control the second switch to be turned on or off through the GPIO interface. It can be understood that in the case of two or more USB Type-C interfaces, two or more second switches are provided in the power module 203.
- the control unit 204 may be a single chip microcomputer, such as a microcontroller unit (MCU) or an embedded controller (EC). In one implementation, the control unit 204 may also be integrated in the processor 205. It mainly controls the power-on timing, keyboard, and processes underlying hardware related work, such as temperature detection. It also performs functions such as charging control and PD chip interface implementation. The control unit 204 decompresses the independently running software and stores it in its own non-volatile medium.
- MCU microcontroller unit
- EC embedded controller
- the control unit 204 may also be integrated in the processor 205. It mainly controls the power-on timing, keyboard, and processes underlying hardware related work, such as temperature detection. It also performs functions such as charging control and PD chip interface implementation.
- the control unit 204 decompresses the independently running software and stores it in its own non-volatile medium.
- control unit 204 may include one or more interfaces.
- the interface may include a general purpose input and output interface (GPIO), an enhanced serial peripheral (eSPI) interface, an integrated circuit I2C interface, etc.
- GPIO general purpose input and output interface
- eSPI enhanced serial peripheral
- I2C integrated circuit
- the control unit 204 can, for example, be electrically connected and communicated with the power transmission module 202 through different I2C interfaces, and be electrically connected and communicated with the power supply module 203 through the GPIO interface.
- FIG. 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
- FIG3 is a schematic diagram of a charging scenario of a single Type-C interface based on a first charging circuit provided by an embodiment of the present application.
- the electronic device 100 is a laptop computer, which is equipped with two Type-C interfaces, a first Type-C interface 2011 and a second Type-C interface 2012.
- the electronic device 100 can establish a connection with a first external device 200 (e.g., a mobile phone) through one of the two Type-C interfaces (e.g., the first Type-C interface 2011).
- the electronic device 100 confirms that it is a Source device and the connected first external device 200 is a Sink device.
- the electronic device 100 can provide, for example, 5V/2A (i.e., 10W) of power to the first external device 200. Rate.
- the first external device 200 confirms that it supports a higher power protocol, such as the PD3.0 protocol, the PD2.0 protocol, etc., and the first external device 200 requests a higher power, such as 9V/2A (i.e., 18W), from the electronic device 100.
- a higher power such as 9V/2A (i.e., 18W)
- the electronic device 100 receives the request from the first external device 200, if the system of the electronic device 100 is not in the S0 state and the power is not lower than the preset threshold, a higher charging power (such as 18W) is provided to the first external device 200. Therefore, at the second moment, the first external device 200 can be quickly charged at a power of, for example, 9V/2A (i.e., 18W).
- FIG4 is a flow chart of a charging scenario of a single Type-C interface based on a first charging circuit, including but not limited to the following steps.
- this application describes the steps in the following order, and is not intended to limit the execution to the above order.
- the embodiment of this application does not limit the execution order, execution time, execution number, etc. of the above one or more steps.
- the first external device 200 establishes a connection with the power transmission module of the electronic device 100 .
- the power transmission module 202 in the electronic device 100 and the first external device 200 handshake through the CC pin of the Type-C interface to confirm that they are the Source device and the connected first external device 200 is the Sink device.
- the power transmission module sends a first message to the first external device 200 .
- the electronic device 100 which is a source device, sends a first message to the first external device 200, which is a sink device, through the power transmission module.
- the first message includes that the electronic device 100 can provide one or more charging powers of 5V/2A and 9V/2A. It is understandable that these values can also be replaced by other values, which can be values corresponding to the interaction results determined after the electronic device and the first external device perform protocol interaction.
- the first external device 200 requests a charging power of 5V/2A from the power transmission module.
- the power transmission module can control the on or off of the first switch, and the first switch is electrically connected to the Buck circuit in the power module, so that the first switch can control whether the 5V voltage output by the Buck circuit is output to the power transmission module.
- the power module outputs a charging power of 5V/2A.
- the Buck circuit in the voltage module is used to output a 5V voltage.
- the power module When the first switch is on, the power module outputs the 5V voltage to the VBUS pin of the USB Type-C interface through the pin in the power transmission module electrically connected to the first switch, thereby providing a charging power of 5V/2A to the first external device 200.
- the first external device 200 requests a charging power of 9V/2A from the power transmission module.
- the first external device 200 when the first external device 200 supports fast charging protocols such as PD3.0 or PD2.0, the first external device 200 requests a charging power of 9V/2A from the power transmission module.
- the power transmission module sends a first request to the control unit.
- the power transmission module After receiving the request from the first external device 200 as a Sink device, the power transmission module sends a first request to enable the OTG function to the control unit through the I2C interface.
- control unit determines whether the system is in S0 and whether the current power level is lower than a preset threshold.
- the control unit After receiving the request to turn on the OTG function, the control unit needs to ensure its own power supply first, and then provide power to the outside on the premise of ensuring its own power supply. S0 state and whether the battery power is below a preset threshold (for example 20%).
- the charging power of 5V/2A continues to be provided to the external device.
- control unit when it is determined that the current system of the electronic device 100 is not in the S0 state and the battery circuit is greater than or equal to the preset threshold, the control unit sends a second message to the power transmission module to indicate that the OTG function can be turned on.
- control unit sends a message to the power module to enable the OTG function.
- the power module turns on the OTG function.
- S412 The power transmission module disconnects the first switch and opens the second switch.
- the power transmission module disconnects the first switch, so that the first switch is in the off state, thereby turning off the OCP function of the power module and stopping the output of the charging power of 5V/2A.
- the second switch is turned on to enable the OVG function of the power module 203, and configure the relevant registers of the power module 203 to reversely output the current voltage of, for example, 9V/2A.
- the power module outputs a charging power of 9V/2A to the first external device 200 .
- the charging control (charger) chip in the power module is electrically connected to the VBUS pin of the USB Type-C interface through the second switch, and is also connected to the battery. Therefore, the power module can provide 9V/2A charging power to the first external device 200 through the charger chip and the battery.
- the electronic device can negotiate with the first external device to determine different charging powers to meet the demand of outputting higher charging power to the first external device.
- FIG5 is a schematic diagram of a charging scenario of a dual Type-C interface based on a first charging circuit provided in an embodiment of the present application.
- the electronic device 100 is configured with two Type-C interfaces, namely a first Type-C interface 2011 and a second Type-C interface 2012.
- the electronic device 100 can establish a connection with a first external device 200 (such as a mobile phone) through the first Type-C interface, and can establish a connection with a second external device 300 (such as a charger) through the second Type-C interface 2012.
- a first external device 200 such as a mobile phone
- a second external device 300 such as a charger
- the electronic device 100 confirms that it is a Source device and the connected first external device 200 is a Sink device.
- the electronic device 100 can provide, for example, 5V/2A (i.e., 10W) of power to the first external device 200.
- the first external device 200 After the first moment, the first external device 200 confirms that it supports a higher power protocol such as the PD3.0 protocol, the PD2.0 protocol, etc., and the first external device 200 requests a higher power such as 9V/2A (i.e., 18W) from the electronic device 100.
- the electronic device 100 After receiving the request from the first external device 200, the electronic device 100 determines whether there are the following situations where high power cannot be provided: Situation 1, whether the second Type-C interface 2012 is connected to the second external device 300 (such as a charger), and the electronic device 100 is identified as a Sink; Situation 2, whether the system of the electronic device 100 is in the S0 state and the power is not lower than the preset threshold.
- the request of the first external device 200 is rejected, and the electronic device 100 continues to output 5V/2A charging. Therefore, at the second moment after the first moment, the first external device 200 continues to charge at a power of 5V/2A.
- the electronic device 100 After receiving the request from the first external device 200, the electronic device 100 sends a request to the first external device 200.
- the device 200 provides a power of 9V/2A (ie, 18W). Therefore, at the second moment, the first external device 200 can be quickly charged with a power of 9V/2A (ie, 18W).
- the electronic device 100 When the electronic device 100 outputs 9V/2A (i.e., 18W) power to the first external device 200, the electronic device 100 establishes a connection with the second external device 300 (e.g., a charger), and the electronic device 100 acts as a Sink device and the second external device 300 (e.g., a charger) acts as a Source device, the electronic device 100 stops outputting 9V/2A (i.e., 18W) power and starts outputting 5V/2A (i.e., 10W) power. Therefore, at the third moment after the second moment, the first external device 200 resumes charging at 5V/2A power.
- 9V/2A i.e., 18W
- FIG6 is a flow chart of a charging scenario of a dual Type-C interface based on a first charging circuit, including but not limited to the following steps:
- this application is described in the following order, and is not intended to be limited to the execution in the above order.
- the embodiment of this application does not limit the execution order, execution time, execution number, etc. of the above one or more steps.
- the first external device 200 establishes a connection with the power transmission module of the electronic device 100 .
- the power transmission module 202 in the electronic device 100 and the first external device 200 handshake through the CC pin of the first Type-C interface 2011 to confirm that they are the Source device and the connected first external device 200 is the Sink device.
- the power transmission module sends a first message to the first external device 200.
- the electronic device 100 as a Source device sends a first message to the first external device 200 as a Sink device through a power transmission module.
- the first message includes that the electronic device 100 can provide one or more charging powers of 5V/2A and 9V/2A.
- the first external device 200 requests a charging power of 5V/2A from the power transmission module.
- the power transmission module can control the on or off of the first switch, and the first switch is electrically connected to the Buck circuit in the power module, so that the first switch can control whether the 5V voltage output by the Buck circuit is output to the power transmission module.
- the power module outputs a charging power of 5V/2A.
- the Buck circuit in the voltage module is used to output a 5V voltage.
- the power module When the first switch is on, the power module outputs the 5V voltage to the VBUS pin of the USB Type-C interface through the pin in the power transmission module that is electrically connected to the first switch, thereby providing a charging power of 5V/2A to the first external device 200.
- the first external device 200 requests a charging power of 9V/2A from the power transmission module.
- the first external device 200 when the first external device 200 supports fast charging protocols such as PD3.0 or PD2.0, the first external device 200 requests a charging power of 9V/2A from the power transmission module.
- the power transmission module sends a first request to the control unit.
- the power transmission module after receiving the request from the first external device 200 as a Sink device, the power transmission module sends a first request to enable the OTG function (Enable) to the control unit through the I2C interface.
- the control unit determines whether there is a second external device charging the electronic device 100 .
- the electronic device 100 has two or more Type-C interfaces.
- the power transmission module 202 in the electronic device 100 and the second external device 300 are connected via the second Type-C interface 2012.
- the CC pin of the interface 2012 performs handshake to determine whether it is a Source device and whether the second external device connected is a Sink device.
- the electronic device 100 determines that it is a Sink device and the connected second external device is a Source device, it determines that the second Type-C interface 2012 is in a state of charging the electronic device 100, and the electronic device 100 continues to provide 5V/2A charging power to the external device.
- step S509 is executed.
- control unit determines whether the system is in S0 and whether the current power level is lower than a preset threshold.
- the control unit After receiving the request to turn on the OTG function, the control unit needs to ensure its own power supply first, and then provide power to the outside on the premise of ensuring its own power supply. Therefore, the control unit determines whether the current system of the electronic device 100 is in the S0 state and whether the battery power is lower than a preset threshold (for example, 20%).
- a preset threshold for example, 20%
- the charging power of 5V/2A continues to be provided to the external device.
- step S510 is executed.
- S510 The control unit sends a second message to the power transmission module.
- the control unit sends a second message to the power transmission module to indicate that the OTG function can be turned on.
- control unit sends a message to the power module to enable the OTG function.
- the power transmission module turns off the first switch and turns on the second switch.
- the power transmission module disconnects the first switch, so that the first switch is in the off state, thereby turning off the OCP function of the power module and stopping the output of the charging power of 5V/2A.
- the second switch is turned on to enable the OVG function of the power module 203, and configure the relevant registers of the power module 203 to reversely output the current voltage of, for example, 9V/2A.
- the power module provides a charging power of 9V/2A to the first external device 200 .
- the charging control (charger) chip in the power module is electrically connected to the VBUS pin of the USB Type-C interface through the second switch, and is also connected to the battery. Therefore, the power module can provide 9V/2A charging power to the first external device 200 through the charger chip and the battery.
- S515 The control unit determines that a second external device is charging the electronic device 100 or the system is in the S0 state.
- S516 The control unit controls sending a second request to the power transmission module.
- the second request is used to request the power transmission module to turn off the second switch and turn on the first switch.
- S517 The power transmission module turns off the second switch and turns on the first switch.
- the power module outputs a charging power of 5V/2A to the first external device 200 .
- the power module stops outputting the charging power of 9V/2A and resumes outputting the charging power of 5V/2A.
- the electronic device can negotiate with the first external device to determine different charging powers to meet the demand of outputting higher charging power to the first external device.
- USB interfaces such as the second Type-C interface
- the electronic device 100 includes a second charging circuit 102 and a processor 205.
- the second charging circuit 102 includes a first Type-C interface 2011, a second Type-C interface 2012, a power transmission module 202, a power supply module 203, a control unit 204, a first switch switching circuit 2061, and a second switch switching circuit 2062.
- the first switch switching circuit 2061 corresponds to the first Type-C interface 2011 , and is respectively connected to the first Type-C interface 2011 , the control unit 204 , and the processor 205 , and a 0 ohm (R) resistor is short-circuited on the first switch switching circuit 2061 .
- control unit 204 can control the first switch switching circuit 2061 to switch the DP signal line and the DM signal line connected to the first Type-C interface 2011 to the lines connected to the processor 205.
- the first Type-C interface 2011 is connected to the processor 205 through the first switch switching circuit 2061, and when the external device is connected to the electronic device 100 through the first Type-C interface 2011, USB2.0 recognition can be performed. That is, the electronic device 100 can perform data transmission with the external device through the first Type-C interface 2011.
- control unit 204 may control the first switch circuit 2061 to switch the DP signal line and the DM signal line connected to the first Type-C interface 2011 to the lines connected to 0 ohm (R), respectively.
- the second switch switching circuit 2062 corresponds to the second Type-C interface 2012 , and is respectively connected to the second Type-C interface 2012 , the control unit 204 , and the processor 205 , and a 0 ohm (R) resistor is short-circuited on the second switch switching circuit 2062 .
- control unit 204 can control the second switch switching circuit 2062 to switch the DP signal line and the DM signal line connected to the second Type-C interface 2012 to the lines connected to the processor 205.
- the second Type-C interface 2012 is connected to the processor 205 through the second switch switching circuit 2062, and when the external device is connected to the electronic device 100 through the second Type-C interface 2012, USB2.0 recognition can be performed. That is, the electronic device 100 can perform data transmission with the external device through the second Type-C interface 2012.
- control unit 204 may control the first switch circuit 2061 to switch the DP signal line and the DM signal line connected to the first Type-C interface 2011 to the lines connected to 0 ohm (R), respectively.
- switch switching circuits is consistent with the number of Type-C interfaces. This application takes two Type-C interfaces as an example, but is not limited to two Type-C interfaces and two switch switching circuits.
- FIG8 is a schematic diagram of a charging scenario of a single Type-C interface based on a second charging circuit provided in an embodiment of the present application.
- the second charging circuit is the second charging circuit 102 shown in FIG7.
- the electronic device 100 is in a power-on state and/or a sleep state.
- the electronic device 100 is a notebook computer, which is equipped with two Type-C interfaces, a first Type-C interface 2011 and a second Type-C interface 2012.
- the electronic device 100 can establish a connection with a first external device 200 (e.g., a mobile phone) through one of the two Type-C interfaces (e.g., the first Type-C interface 2011).
- the electronic device 100 confirms that it is a source device and the connected first external device 200 is a sink device.
- the electronic device 100 can The charging power provided by the electronic device 100 is broadcasted to the first external device 200, and the support of PPS is displayed, for example, by a pop-up window.
- the first external device 200 will preferentially request 5V/2A. Therefore, at the first moment, the electronic device 100 provides the first external device 200 with a power of, for example, 5V/2A (i.e., 10W), and the electronic device 100 can perform data transmission with the first external device 200.
- 5V/2A i.e., 10W
- the electronic device 100 can pop up a window to display "Do you want to fast charge?" to prompt the user whether to choose fast charging. If the user selects the "No” option, the electronic device 100 responds to the user operation of the "No" function control and determines that the user has not selected fast charging, so the current charging power is maintained unchanged. If the user selects the "Yes” option, the electronic device 100 responds to the user operation of the "Yes” function control and determines that the user has selected fast charging, so a higher charging power than 5V/2A is provided to the first external device 200. For example, at the second moment, the first external device 200 can be quickly charged at a power of 12V/3A (ie 36W).
- the electronic device 100 can adjust in real time the charging power transmitted to the first external device 200.
- the first external device 200 can be quickly charged at a power of 9V/2A (ie, 18W).
- FIG9 is a flow chart of a charging scenario of a single Type-C interface based on a second charging circuit, including but not limited to the following steps.
- this application describes the steps in the following order, and is not intended to limit the execution to the above order.
- the embodiment of this application does not limit the execution order, execution time, execution number, etc. of the above one or more steps.
- the electronic device can control the switch switching circuit to switch to the processor end through the control unit.
- the control unit defaults to the first switch switching circuit 2061 switching to the processor end.
- the first external device 200 establishes a connection with the power transmission module of the electronic device 100 .
- the power transmission module 202 in the electronic device 100 and the first external device 200 handshake through the CC pin of the Type-C interface to confirm that they are the Source device and the connected first external device 200 is the Sink device.
- the power transmission module sends a first message to the first external device 200.
- the electronic device 100 which is a Source device, sends a first message to the first external device 200, which is a Sink device, through the power transmission module.
- the first message includes that the electronic device 100 can provide one or more charging powers of 5V/2A, 9V/2A, 12V/2A, 15V/3A and 20V/3.5A, and it will display that it supports programmable power supply (PPS).
- PPS programmable power supply
- the voltage and current provided by the electronic device 100 are not limited to those provided in the embodiments of the present application, and more or less voltage and current can be provided.
- the first external device 200 requests a charging power of 5V/2A from the power transmission module.
- the power transmission module can control the on or off of the first switch, and the first switch is electrically connected to the Buck circuit in the power module, so that the first switch can control whether the 5V voltage output by the Buck circuit is output to the power transmission module.
- the power module outputs a charging power of 5V/2A.
- the Buck circuit in the voltage module is used to output a 5V voltage.
- the power module When the first switch is turned on, the power module The block outputs a 5V voltage to the VBUS pin of the USB Type-C interface through a pin in the power transmission module electrically connected to the first switch, thereby providing a charging power of 5V/2A to the first external device 200.
- the electronic device can control the switch switching circuit to switch to the processor end through the control unit, after the electronic device establishes a connection with the external device, the electronic device can be confirmed as the SDP end based on the BC1.2 protocol, thereby supporting the function of data transmission with the external device.
- control unit controls the first switch circuit to switch to a 0R resistor.
- the UI interface of the electronic device prompts the user whether to choose fast charging through a pop-up window. If the user chooses fast charging, the control unit controls the first control switch switching circuit to switch from the processor end to the 0R resistor end. As can be seen from Figure 6, after switching to the 0R resistor segment, the first Type-C interface disconnects from the processor. If the user does not choose fast charging, the electronic device continues to output a charging power of 5V/2A.
- S707 The control unit sends a second message to the power transmission module.
- the second message is used to notify the power transmission module to turn off the first switch.
- the power transmission module turns off the first switch in response to the second message.
- S709 The first external device re-establishes a connection with the power transmission module.
- the first external device and the electronic device can re-establish a connection.
- the electronic device is identified as a DCP terminal.
- the power transmission module sends a third message to the control unit.
- the first external device requests the power transmission module for the highest charging capacity supported by the first external device, and the power transmission module sends a third message to the control unit via I2C, and the third message is used to request the highest voltage and current supported by the first external device.
- control unit sends a message to the power module to enable the OTG function.
- control unit configures the OTG voltage and current of the charger chip in the power module according to the requirements from the power transmission module, and turns on the OTG function.
- the power module turns on the OTG function.
- the power module turns on the OTG function according to the configuration of the control unit.
- S713 The control unit sends a fourth message to the power transmission module.
- the fourth message is used to indicate that the OTG function has been configured.
- S714 The power transmission module turns off the first switch and turns on the second switch.
- the power transmission module turns on the second switch and turns off the first switch.
- S715 The power module outputs the highest level of voltage and current supported by the first external device.
- the power module can output the highest-level voltage and current requested by the first external device to the first external device through the charger chip.
- S716 The first external device sends a third request to the power transmission module.
- the first external device can send a third request to the electronic device, such as get PPS state, and the third request is used to request adjustment of voltage and current.
- the power transmission module sends a voltage and current adjustment request to the control unit.
- control unit adjusts the voltage and current.
- control unit adjusts the OTG voltage and current of the charger chip in the power module in real time according to the requirements of the power transmission module.
- the power module outputs a voltage and current corresponding to the third request to the first external device.
- the power transmission module disconnects the second switch and sends a message to the control unit to disconnect the second switch.
- the control unit controls the first switch switching circuit to switch to the processor end and waits for the next external device to be connected.
- the control unit of the electronic device controls the switch switching circuit to switch to the processor end by default. Therefore, after the first external device is connected to the electronic device, data transmission can be performed based on USB2.0, and normal charging power can also be output to the first external device. After the first external device has a fast charging demand, the electronic device responds to its demand and switches to a 0 ohm short circuit through the switch switching circuit, so that the electronic device is identified as a DCP end. After the first external device identifies the electronic device as a DCP end, it can support some charging gears of the PD protocol and PPS.
- FIG10 is a flow chart of another charging scenario of a single Type-C interface based on a second charging circuit, including but not limited to the following steps.
- this application describes the steps in the following order, and is not intended to limit the execution to the above order.
- the embodiment of this application does not limit the execution order, execution time, execution number, etc. of the above one or more steps.
- the electronic device can control the switch switching circuit to switch to 0R short circuit through the control unit.
- the control unit defaults to the first switch switching circuit 2061 switching to 0R short circuit.
- the first external device 200 establishes a connection with the power transmission module of the electronic device 100 .
- the power transmission module 202 in the electronic device 100 and the first external device 200 handshake through the CC pin of the Type-C interface to confirm that they are the Source device and the connected first external device 200 is the Sink device.
- the power transmission module sends a first message to the first external device 200.
- the electronic device 100 which is a Source device, sends a first message to the first external device 200, which is a Sink device, through the power transmission module.
- the first message includes that the electronic device 100 can provide one or more charging powers of 5V/2A, 9V/2A, 12V/2A, 15V/3A and 20V/3.5A, and it will display that it supports programmable power supply (PPS).
- PPS programmable power supply
- the voltage and current provided by the electronic device 100 are not limited to those provided in the embodiments of the present application, and more or less voltage and current can be provided.
- the first external device 200 requests a charging power of 5V/2A from the power transmission module.
- the power transmission module can control the on or off of the first switch, and the first switch is electrically connected to the Buck circuit in the power module, so that the first switch can control whether the 5V voltage output by the Buck circuit is output to the power transmission module. Since when the electronic device 100 is in the power-on state and/or the sleep state, the electronic device can control the switch switching circuit to switch to the processor end through the control unit, therefore, after the electronic device establishes a connection with the external device, the electronic device can be confirmed as the SDP end based on USB2.0, so that data transmission with the external device can be supported. The function of input.
- the power module outputs a charging power of 5V/2A.
- the Buck circuit in the voltage module is used to output a 5V voltage.
- the power module When the first switch is on, the power module outputs the 5V voltage to the VBUS pin of the USB Type-C interface through the pin in the power transmission module that is electrically connected to the first switch, thereby providing a charging power of 5V/2A to the first external device 200.
- the electronic device is identified as a DCP terminal, and voltage and current regulation as well as PPS regulation can be performed.
- S806 The first external device sends a third message to the power transmission module.
- the third message is used to request the electronic device to support the highest voltage and current, for example, 12V/2A.
- the power transmission module sends a third message to the control unit.
- the power transmission module sends a third message to the control unit through I2C, where the third message is used to request the control unit to configure the voltage and current of the highest gear supported by the first external device.
- control unit sends a message to the power module to enable the OTG function.
- control unit configures the OTG voltage and current of the charger chip in the power module according to the requirements from the power transmission module, and turns on the OTG function.
- the power module turns on the OTG function.
- the power module turns on the OTG function according to the configuration of the control unit.
- the control unit sends a fourth message to the power transmission module.
- the fourth message is used to indicate that the OTG function has been configured.
- the power transmission module disconnects the first switch and opens the second switch.
- the power transmission module turns on the second switch and turns off the first switch.
- the power module outputs the highest level of voltage and current supported by the first external device.
- the power module can output the highest-level voltage and current requested by the first external device to the first external device through the charger chip.
- the first external device sends a third request to the power transmission module.
- the first external device can send a third request to the electronic device, such as get PPS state, and the third request is used to request adjustment of voltage and current.
- the power transmission module sends a voltage and current adjustment request to the control unit.
- control unit adjusts the voltage and current.
- control unit adjusts the OTG voltage and current of the charger chip in the power module in real time according to the requirements of the power transmission module.
- S816 The power module outputs a voltage and current corresponding to the third request to the first external device.
- the power transmission module disconnects the second switch and sends a message to the control unit to disconnect the second switch.
- the control unit controls the first switch switching circuit to switch to the processor end and waits for the next external device to be connected.
- the control unit of the electronic device controls the switch circuit to short-circuit the 0 ohm resistor by default. Therefore, after the first external device is connected to the electronic device, the electronic device is identified as a DCP terminal. After the device recognizes the electronic device as a DCP end, it can support some charging gears and PPS of the PD protocol.
- FIG11 is a schematic diagram of a charging scenario of a dual Type-C interface based on a second charging circuit provided in an embodiment of the present application.
- the second charging circuit is the second charging circuit 102 shown in FIG7.
- the electronic device 100 is in a power-on state and/or a sleep state.
- the electronic device 100 is a laptop computer, which is equipped with two Type-C interfaces, a first Type-C interface 2011 and a second Type-C interface 2012.
- the electronic device 100 can establish a connection with a first external device 200 (e.g., a mobile phone) through one of the two Type-C interfaces (e.g., the first Type-C interface 2011).
- the electronic device 100 confirms that it is a Source device, and the connected first external device 200 is a Sink device.
- the electronic device 100 can broadcast the charging power provided by itself to the first external device 200, and, for example, display support for PPS through a pop-up window.
- the first external device 200 will preferentially request 5V/2A. Therefore, at the first moment, the electronic device 100 provides, for example, 5V/2A (i.e., 10W) of power to the first external device 200, and the electronic device 100 can perform data transmission with the first external device 200.
- 5V/2A i.e., 10W
- the electronic device 100 detects that the second external device 300 is charging itself through the second Type-C interface, and the electronic device 100 maintains the current charging power of 5V/2A. That is, at the second moment, the first external device 200 is still charged at a power of 5V/2A.
- the electronic device 100 detects that there is no second external device 300 charging itself through the second Type-C interface, and a pop-up window can be displayed to display "Do you want to fast charge?" to prompt the user whether to choose fast charging. If the user selects the "No" option, the electronic device 100 responds to the user operation of the "No" function control and maintains the current charging power unchanged. For example, at the second moment, the first external device 200 is still fast charged at a power of 12V/3A (ie 36W).
- the electronic device 100 responds to the user operation of the "Yes” function control and provides a higher charging power (e.g., 12V/3A) than 5V/2A to the first external device 200. Therefore, at the second moment, the first external device 200 can be quickly charged at a power of 12V/3A (i.e., 36W). After the second moment, the electronic device 100 can adjust the charging power transmitted to the first external device 200 in real time. For example, at the third moment, the first external device 200 can be quickly charged at a power of 9V/2A (i.e., 18W).
- Case three after the first moment, the electronic device 100 detects that there is no second external device 300 charging itself through the second Type-C interface, and a pop-up window can be displayed "Do you want to fast charge?" to prompt the user whether to choose fast charging. If the user selects the "Yes” option, the electronic device 100 responds to the user operation of the "Yes” function control and provides a higher charging power (for example, 12V/3A) than 5V/2A to the first external device 200. Therefore, at the second moment, the first external device 200 can be fast charged at a power of 12V/3A (ie, 36W). After the second moment, the electronic device 100 can adjust the charging power transmitted to the first external device 200 in real time.
- a higher charging power for example, 12V/3A
- 5V/2A to the first external device 200. Therefore, at the second moment, the first external device 200 can be fast charged at a power of 12V/3A (ie, 36W).
- the first external device 200 can be fast charged at a power of 9V/2A (ie, 18W).
- the electronic device 100 detects that the second external device 300 is charging itself through the second Type-C interface 2012, or the electronic device 100 detects that the first external device 200 is transmitting data through the first Type-C interface 2011, and then the charging power is restored to 5V/2A. Therefore, at the fourth moment after the second moment or the third moment, the first external device 200 is restored to charging with a power of 5V/2A.
- FIG. 12A to FIG. 12C are schematic flow diagrams of a charging scenario of a dual Type-C interface based on a second charging circuit, including but not limited to the following steps.
- this application describes the following sequence of S901-S922, and is not intended to limit the execution to the above sequence.
- the embodiment of this application does not limit the execution order, execution time, execution number, etc. of the above one or more steps.
- the electronic device can control the switch switching circuit to switch to the processor end through the control unit.
- the control unit controls the first switch switching circuit 2061 and the second switch switching circuit 2062 to switch to the processor end by default.
- the first external device 200 establishes a connection with the power transmission module of the electronic device 100 .
- the power transmission module 202 in the electronic device 100 and the first external device 200 handshake through the CC pin of the first Type-C interface to confirm that they are the Source device and the connected first external device 200 is the Sink device.
- the power transmission module sends a first message to the first external device 200.
- the electronic device 100 which is a Source device, sends a first message to the first external device 200, which is a Sink device, through the power transmission module.
- the first message includes that the electronic device 100 can provide one or more charging powers of 5V/2A, 9V/2A, 12V/2A, 15V/3A and 20V/3.5A, and it will display that it supports programmable power supply (PPS).
- PPS programmable power supply
- the voltage and current provided by the electronic device 100 are not limited to those provided in the embodiments of the present application, and more or less voltage and current can be provided.
- the first external device 200 requests a charging power of 5V/2A from the power transmission module.
- the power transmission module turns on a first switch corresponding to the first Type-C interface.
- the power transmission module can control the on or off of the first switch corresponding to the first Type-C interface.
- the first switch is electrically connected to the Buck circuit in the power module, so that the first switch can control whether the 5V voltage output by the Buck circuit is output to the power transmission module.
- the power module outputs a charging power of 5V/2A.
- the Buck circuit in the voltage module is used to output a 5V voltage.
- the power module When the first switch corresponding to the first Type-C interface is on, the power module outputs the 5V voltage to the VBUS pin of the first Type-C interface through the pin electrically connected to the first switch in the power transmission module, thereby providing a charging power of 5V/2A to the first external device 200.
- the electronic device can control the switch switching circuit to switch to the processor end through the control unit. Therefore, after the electronic device establishes a connection with the external device, the electronic device can be confirmed as the SDP end based on USB2.0, thereby supporting the function of data transmission with the external device.
- the control unit determines whether the second Type-C interface is in a state of charging the electronic device.
- the electronic device 100 has two or more Type-C interfaces.
- the power transmission module 202 in the electronic device 100 and the second external device 300 handshake through the CC pin of the second Type-C interface 2012 to determine whether they are a Source device and whether the connected second external device is a Sink device.
- the electronic device 100 determines that it is a sink device and the second external device connected is a source device, it is determined that the second Type-C interface 2012 is in a state of charging the electronic device 100, and the electronic device 100 continues to charge the external device.
- the connected device provides 5V/2A charging power.
- step S907 is executed.
- S907 The control unit determines whether to perform fast charging.
- the electronic device may display a pop-up window asking “whether to perform fast charging”, and in response to a user operation on the pop-up window, may determine whether to perform fast charging or not.
- the electronic device After receiving the message that fast charging is not performed, the electronic device maintains the current output power and continues to provide 5V/2A charging power to the external device.
- control unit controls the first switch circuit to switch to a 0R resistor.
- the UI interface of the electronic device prompts the user whether to select fast charging through a pop-up window. If the user selects fast charging, the control unit controls the first control switch switching circuit corresponding to the first Type-C interface to switch from the processor end to the 0R resistor end. As can be seen from Figure 6, after switching to the 0R resistor segment, the first Type-C interface disconnects from the processor. If the user does not select fast charging, the electronic device continues to output a charging power of 5V/2A.
- S909 The first external device re-establishes a connection with the power transmission module.
- the first external device and the electronic device can reestablish a connection.
- the electronic device is identified as a DCP terminal through the Type-C interface.
- the power transmission module sends a third message to the control unit.
- the first external device requests the power transmission module for the highest charging capacity supported by the first external device, and the power transmission module sends a third message to the control unit via I2C, and the third message is used to request the highest voltage and current supported by the first external device.
- control unit sends a message to the power module to enable the OTG function.
- control unit configures the OTG voltage and current of the charger chip in the power module according to the requirement from the power transmission module, and turns on the OTG function.
- the power module turns on the OTG function according to the configuration of the control unit.
- S913 The control unit sends a fourth message to the power transmission module.
- the fourth message is used to indicate that the OTG function has been configured.
- the power transmission module disconnects the first switch corresponding to the first Type-C interface, and turns on the second switch corresponding to the first Type-C interface.
- the power transmission module turns on the second switch corresponding to the first Type-C interface, and turns off the first switch corresponding to the first Type-C interface.
- S915 The power module outputs the highest level of voltage and current supported by the first external device.
- the power module can output the highest-level voltage and current requested by the first external device to the first external device through the charger chip.
- S916 The first external device sends a third request to the power transmission module.
- the first external device may send a third request to the electronic device, such as get PPS state, and the third request may be used to To request voltage and current regulation.
- the power transmission module sends a voltage and current adjustment request to the control unit.
- control unit adjusts the voltage and current.
- control unit adjusts the OTG voltage and current of the charger chip in the power module in real time according to the requirements of the power transmission module.
- the power module outputs a voltage and current corresponding to the third request to the first external device.
- the power transmission module disconnects the second switch and sends a message to the control unit to disconnect the second switch.
- the control unit controls the first switch switching circuit to switch to the processor end and waits for the next external device to be connected.
- S920 A second external device establishes a connection with the power transmission module.
- the second external device (such as a charger) is connected to the electronic device through the second Type-C interface and establishes a connection with the power transmission module.
- the second external device is identified as the source end and the electronic device is identified as the sink end, and the second external device can charge the electronic device.
- the power transmission module sends a fifth message to the control unit.
- the fifth message is used to inform the control unit that a second external device is connected to the electronic device.
- the control unit sends a message to the power module to turn off the OTG function.
- control unit controls the first switch circuit to switch to the processor end.
- the first switch switching circuit is connected to the first Type-C interface, and after the first switch switching circuit is switched to the processor end, the first Type-C interface can be connected to the processor through the first switch switching circuit. Therefore, the data transmission function of the electronic device is restored, and the first external device can perform data transmission with the electronic device.
- S925 The control unit turns off the second switch and turns on the first switch.
- disconnecting the second switch indicates that the power module cannot output high power to the first external device through the charger chip
- opening the first switch indicates that the power supply can output 5V/2A power to the first external device through the Buck circuit.
- the power module outputs a charging power of 5V/2A to the first external device.
- S927 - S931 shown in FIG. 12C are also included.
- S927 The first external device sends a sixth message to the processor.
- the first external device can select to resume the data transmission function on the UI interface of the electronic device, thereby sending a sixth message for resuming the data transmission function to the processor.
- S928 The processor sends a sixth message to the control unit.
- the sixth message is used to notify the control unit that the first external device is to be switched back to the SDP end.
- control unit controls the first switch circuit to switch to the processor end.
- the first switch switching circuit is connected to the first Type-C interface, and the first switch switching circuit switches to the processor After the first Type-C interface is connected to the processor through the first switch switching circuit, the data transmission function of the electronic device is restored, and the first external device can perform data transmission with the electronic device.
- S930 The control unit turns off the second switch and turns on the first switch.
- disconnecting the second switch indicates that the power module cannot output high power to the first external device through the charger chip
- opening the first switch indicates that the power supply can output 5V/2A power to the first external device through the Buck circuit.
- the power module outputs 5V/2A charging power to the first external device.
- FIG. 13A to FIG. 13C show another schematic flow diagram of a charging scenario of a dual Type-C interface based on a second charging circuit, including but not limited to the following steps.
- this application describes the following sequence of S1001-S1017, and is not intended to limit the execution to the above sequence.
- the embodiment of this application does not limit the execution order, execution time, execution number, etc. of the above one or more steps.
- the electronic device can control the switch switching circuit to switch to 0R short circuit through the control unit.
- the control unit controls the first switch switching circuit 2061 and the second switch switching circuit 2062 to switch to 0R short circuit by default.
- a first external device 200 establishes a connection with a power transmission module of an electronic device 100 .
- the power transmission module 202 in the electronic device 100 and the first external device 200 handshake through the CC pin of the first Type-C interface to confirm that they are the Source device and the connected first external device 200 is the Sink device.
- the power transmission module sends a first message to the first external device 200 .
- the electronic device 100 which is a Source device, sends a first message to the first external device 200, which is a Sink device, through the power transmission module.
- the first message includes that the electronic device 100 can provide one or more charging powers of 5V/2A, 9V/2A, 12V/2A, 15V/3A and 20V/3.5A, and it will display that it supports programmable power supply (PPS).
- PPS programmable power supply
- the voltage and current provided by the electronic device 100 are not limited to those provided in the embodiments of the present application, and more or less voltage and current can be provided.
- the first external device 200 requests a charging power of 5V/2A from the power transmission module.
- the power transmission module turns on a first switch corresponding to the first Type-C interface.
- the power transmission module can control the on or off of the first switch corresponding to the first Type-C interface.
- the first switch is electrically connected to the Buck circuit in the power module, so that the first switch can control whether the 5V voltage output by the Buck circuit is output to the power transmission module.
- the power module outputs a charging power of 5V/2A.
- the Buck circuit in the voltage module is used to output a 5V voltage.
- the power module When the first switch corresponding to the first Type-C interface is on, the power module outputs the 5V voltage to the VBUS pin of the first Type-C interface through the pin electrically connected to the first switch in the power transmission module, thereby providing a charging power of 5V/2A to the first external device 200.
- the electronic device 100 can control the switch circuit to switch to the processor end through the control unit when the electronic device is turned off, after the electronic device establishes a connection with the external device, it can be confirmed based on USB2.0 that the electronic device is a DCP end, and voltage adjustment or PPS adjustment can be performed.
- the control unit determines whether the second Type-C interface is in a state of charging the electronic device.
- the electronic device 100 has two or more Type-C interfaces.
- the power transmission module 202 in the electronic device 100 and the second external device 300 handshake through the CC pin of the second Type-C interface 2012 to determine whether they are a Source device and whether the connected second external device is a Sink device.
- the electronic device 100 determines that it is a Sink device and the connected second external device is a Source device, it is determined that the second Type-C interface 2012 is in a state of charging the electronic device 100, and the electronic device 100 continues to provide 5V/2A charging power to the external device.
- step S1007 is executed.
- the first external device sends a third message to the power transmission module.
- the third message is used to request the electronic device to support the highest voltage and current, for example, 12V/2A.
- the power transmission module sends a third message to the control unit.
- the power transmission module sends a third message to the control unit through I2C, and the fourth message is used to request the control unit to configure the voltage and current of the highest gear supported by the first external device.
- control unit sends a message to the power module to enable the OTG function.
- control unit configures the OTG voltage and current of the charger chip in the power module according to the requirement from the power transmission module, and turns on the OTG function.
- the power module turns on the OTG function.
- the power module turns on the OTG function according to the configuration of the control unit.
- the control unit sends a fourth message to the power transmission module.
- the fourth message is used to indicate that the OTG function has been configured.
- the power transmission module disconnects the first switch corresponding to the first Type-C interface, and turns on the second switch corresponding to the first Type-C interface.
- the power transmission module turns on the second switch corresponding to the first Type-C interface, and turns off the first switch corresponding to the first Type-C interface.
- the power module outputs the highest level of voltage and current supported by the first external device.
- the power module can output the highest-level voltage and current requested by the first external device to the first external device through the charger chip.
- S1014 The first external device sends a third request to the power transmission module.
- the first external device can send a third request to the electronic device, such as get PPS state, and the third request is used to request adjustment of voltage and current.
- the power transmission module sends a voltage and current adjustment request to the control unit.
- control unit adjusts the voltage and current.
- control unit adjusts the OTG voltage and current of the charger chip in the power module according to the requirements of the power transmission module.
- the power module outputs a voltage and current corresponding to the third request to the first external device.
- the power transmission module disconnects the second switch and sends a message to the control unit to disconnect the second switch.
- the control unit controls the first switch switching circuit to switch to the processor end. Wait for the next external device to be connected.
- S1018 Establish a connection between the second external device and the power transmission module.
- the second external device (such as a charger) is connected to the electronic device through the second Type-C interface and establishes a connection with the power transmission module.
- the second external device is identified as the source end and the electronic device is identified as the sink end, and the second external device can charge the electronic device.
- the power transmission module sends a fifth message to the control unit.
- the fifth message is used to inform the control unit that a second external device is connected to the electronic device.
- S1020 The control unit sends a message to the power module to turn off the OTG function.
- the power module turns off the OTG function.
- the control unit turns off the second switch corresponding to the first Type-C interface, and turns on the first switch corresponding to the first Type-C interface.
- disconnecting the second switch indicates that the power module cannot output high power to the first external device through the charger chip
- opening the first switch indicates that the power supply can output 5V/2A power to the first external device through the Buck circuit.
- the power module outputs a charging power of 5V/2A to the first external device.
- S1024 - S1030 shown in FIG. 13C are also included.
- the control unit detects that the electronic device is in the power-on state.
- the detection unit may detect that the electronic device is in a power-on state.
- control unit sends a message to the power module to turn off the OTG function.
- S1027 The control unit disconnects the second switch corresponding to the first Type-C interface.
- control unit configures the switch to switch the circuit to the processor end.
- control unit configures the first switch circuit to switch to the processor end, and configures the second switch circuit to switch to the processor end.
- the control unit turns on the first switch corresponding to the first Type-C interface.
- the power module outputs a charging power of 5V/2A to the first external device.
- the first Type-C interface can be connected to the processor through the first switch switching circuit, after the electronic device is turned on, the first external device can communicate data with the electronic device through the first Type-C interface.
- the second external device connected to the second Type-C interface can communicate data with the electronic device through the second switch switching circuit.
- FIG. 14 is a schematic flow chart of a charging method provided in an embodiment of the present application, which is applied to an electronic device, such as the electronic device 100 shown in FIG. 1 , FIG. 2 or FIG. 7 , and includes but is not limited to the following steps:
- S1401 The electronic device sends a first message to a first external device through a first USB interface.
- S1402 The electronic device receives a request for a charging power of a first specification from a first external device.
- S403 shown in FIG. 4 may refer to S403 shown in FIG. 4 , or S503 in FIG. 6 , or S703 shown in FIG. 9 , or S803 shown in FIG. 10 , or S903 shown in FIG. 12A , or S1003 shown in FIG. 13A .
- the electronic device outputs a charging power of a first specification to a first external device through a first USB interface.
- S1404 The electronic device receives a request for a charging power of a second specification from a first external device.
- the electronic device further includes a switch circuit and a processor, the switch circuit corresponds to one or more USB interfaces, and the switch circuit connects the processor and the short-circuited 0 ohm resistor. Detailed description can be found in FIG7 .
- the switch switching circuit is used to connect the first USB interface and the processor. After the electronic device outputs the charging power of the first specification to the first external device through the first USB interface, before the electronic device receives the request for the charging power of the second specification from the first external device, the electronic device can also receive a fast charging request from the first external device; in response to the fast charging request, the switch switching circuit is controlled to switch from connecting to the processor to connecting to a 0 ohm resistor; and the electronic device is determined to be a dedicated charging port DCP end by performing protocol interaction with the first external device through the first USB interface.
- S706-S709 shown in Figure 9, or S907-S911 shown in Figure 12A please refer to S706-S709 shown in Figure 9, or S907-S911 shown in Figure 12A.
- the electronic device connects to the second external device through a second USB interface among the one or more USB interfaces, and receives a fast charge request from the first external device when it is determined that the second external device located at the second USB interface is not charging the electronic device.
- a second USB interface among the one or more USB interfaces
- the electronic device when the switch circuit is connected to the first USB interface and the 0 ohm resistor, the electronic device is a DCP terminal.
- the switch circuit when the switch circuit is connected to the first USB interface and the 0 ohm resistor, the electronic device is a DCP terminal.
- the electronic device when the switch circuit is connected to the first USB interface and the 0 ohm resistor, the electronic device is a DCP terminal.
- S806-S807 shown in FIG10 or S1007-S1008 shown in FIG13A .
- S1405 The electronic device outputs a charging power of a second specification to the first external device through the first USB interface.
- the electronic device includes one or more of a power transmission module, a control unit and a power module, and the active OTG function of the power module is turned on by the control unit; the second switch of the power module is turned on by the power transmission module, wherein the second switch is used to connect the first USB interface and the charger chip in the power module, and the charger chip in the power module is used to provide a charging power of a second specification; based on the OTG function and the second switch in the on state, the charging power of the second specification is output to the first external device through the first USB interface.
- the electronic device when it is determined that the system of the electronic device is not in a working state and/or the battery power of the electronic device is greater than or equal to a preset threshold, the electronic device outputs a charging power of a second specification to the first external device through the first USB interface.
- a charging power of a second specification please refer to S407-S413 shown in FIG. 4.
- the electronic device is connected to the second USB interface through the second USB interface of the one or more USB interfaces.
- the external device when it is determined that the second external device located at the second USB interface is not charging the electronic device, when it is determined that the system of the electronic device is not in a working state and/or the battery power of the electronic device is greater than or equal to a preset threshold, outputs a charging power of a second specification to the first external device through the first USB interface.
- a charging power of a second specification to the first external device through the first USB interface.
- the switch switching circuit is used to connect the first USB interface and the processor, the electronic device is connected to the second external device through the second USB interface of the one or more USB interfaces, and the charging power of the second specification is output to the first external device through the first USB interface.
- the switch switching circuit is used to connect the first USB interface and the processor, the electronic device is connected to the second external device through the second USB interface of the one or more USB interfaces, and the charging power of the second specification is output to the first external device through the first USB interface.
- the electronic device when the switch circuit is connected to the first USB interface and the 0 ohm resistor, the electronic device is a DCP terminal, and outputs the second specification of charging power to the first external device through the first USB interface.
- the switch circuit when the switch circuit is connected to the first USB interface and the 0 ohm resistor, the electronic device is a DCP terminal, and outputs the second specification of charging power to the first external device through the first USB interface.
- the switch switching circuit is used to connect the first USB interface and the processor, the electronic device is connected to the second external device through the second USB interface of the one or more USB interfaces, and when it is determined that the second external device located at the second USB interface is not charging the electronic device, the charging power of the second specification is output to the first external device through the first USB interface.
- the switch switching circuit is used to connect the first USB interface and the processor, the electronic device is connected to the second external device through the second USB interface of the one or more USB interfaces, and when it is determined that the second external device located at the second USB interface is not charging the electronic device, the charging power of the second specification is output to the first external device through the first USB interface.
- the switch switching circuit connects the first USB interface and the 0 ohm resistor
- the electronic device is a DCP terminal
- the electronic device is connected to the second external device through the second USB interface of the one or more USB interfaces, and when it is determined that the second external device located at the second USB interface is not charging the electronic device, the charging power of the second specification is output to the first external device through the first USB interface.
- the switch switching circuit connects the first USB interface and the 0 ohm resistor
- the electronic device is a DCP terminal
- the electronic device is connected to the second external device through the second USB interface of the one or more USB interfaces
- the charging power of the second specification is output to the first external device through the first USB interface.
- the electronic device after outputting the charging power of the second specification to the first external device through the first USB interface, the electronic device receives a request for charging power of the third specification from the electronic device; adjusts the voltage and current according to the request for charging power of the third specification, and outputs the voltage and current corresponding to the request for charging power of the third specification.
- a request for charging power of the third specification from the electronic device; adjusts the voltage and current according to the request for charging power of the third specification, and outputs the voltage and current corresponding to the request for charging power of the third specification.
- UI user interface
- the term "user interface (UI)" in the specification, claims and drawings of this application refers to the medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user.
- the user interface of an application is a source code written in a specific computer language such as Java and extensible markup language (XML).
- the interface source code is parsed and rendered on the terminal device, and finally presented as content that can be recognized by the user, such as pictures, text, buttons and other controls.
- Controls also known as widgets, are basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, pictures and text.
- the properties and contents of controls in the interface are defined by tags or nodes.
- XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
- a node corresponds to a control or attribute in the interface, and the node is presented as user-visible content after parsing and rendering.
- many applications such as hybrid applications, usually include web pages in their interfaces.
- a web page also known as a page, can be understood as a special control embedded in the application interface.
- a web page is a source code written in a specific computer language, such as hypertext markup language (HTML), cascading style sheets (CSS), JavaScript (JS), etc.
- HTML hypertext markup language
- CSS cascading style sheets
- JS JavaScript
- the web page source code can be accessed by a browser or a web browser with similar functions.
- the page display component loads and displays the content that the user can recognize.
- the specific content contained in the web page is also defined by the tags or nodes in the web page source code.
- HTML uses ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas> to define the elements and attributes of the web page.
- GUI graphical user interface
- It can be an icon, window, control or other interface element displayed on the display screen of an electronic device, where a control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets and other visual interface elements.
- each step in the above method embodiment provided by the present application can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software.
- the method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
- the present application also provides an electronic device, which may include: a memory and a processor, wherein the memory may be used to store a computer program; and the processor may be used to call the computer program in the memory so that the electronic device executes the method in any one of the above embodiments.
- the present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method executed by the electronic device in any of the above embodiments.
- the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
- the chip system may be composed of the chip, or may include the chip and other discrete devices.
- the processor in the chip system may be one or more.
- the processor may be implemented by hardware or by software.
- the processor may be a logic circuit, an integrated circuit, etc.
- the processor may be a general-purpose processor implemented by reading software code stored in a memory.
- the memory in the chip system may also be one or more.
- the memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application.
- the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively.
- the embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
- the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
- FPGA field programmable gate array
- ASIC application specific integrated circuit
- SoC system on chip
- CPU central processor unit
- NP network processor
- DSP digital signal processor
- MCU microcontroller unit
- PLD programmable logic device
- the present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which enables a computer to execute the method executed by the electronic device in any of the above embodiments when the computer program is executed.
- a computer program also referred to as code, or instruction
- the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program (also referred to as code or instruction).
- a computer program also referred to as code or instruction.
- the computer program executes any of the above-mentioned A method performed by an electronic device in an embodiment.
- the computer program product includes one or more computer instructions.
- the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
- the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
- the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.
- the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated.
- the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk), etc.
- the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media.
- the programs can include the processes of the above-mentioned method embodiments.
- the aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
本申请实施例提供一种充电方法、电子设备及相关装置,电子设备包括一个或多个通用串行总线USB接口,电子设备通过一个或多个USB接口中的第一USB接口连接第一外接设备,该方法可以包括,电子设备和第一外接设备基于第一消息确定第一规格的充电功率,电子设备向第一外接设备输出第一规格的充电功率,在第一外接设备可以支持更高充电功率的情况下,基于电子设备和第一外接设备的协议交互结果,电子设备向第一外接设备输出第二规格的充电功率,所述第二规格的充电功率包括所述第一外接设备可以接收的最高充电档位的充电功率。通过本申请,可以向外接设备提供不同的充电功率。
Description
本申请要求于2023年11月17日提交中国专利局、申请号为202311532706.8、申请名称为“充电方法、电子设备及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及电子技术领域,尤其涉及充电方法、电子设备及相关装置。
目前,越来越多的终端设备支持通用串行总线(universal serial bus,USB)Type-C接口,并把充电和数据传输共有一个USB Type-C接口。比如说,台式机(Desktop)、一体机以及笔记本电脑(Notebook或Laptop)等个人计算机(personal computer,PC)产品可以作为电源,利用USB Type-C接口向终端设备提供充电电流,为终端设备进行充电。
其中,PC产品的USB Type-C接口支持USB功率传输(power delivery,PD)协议,并且支持向连接的终端设备提供例如最大为5V/3A的充电电源。如何增大PC产品可提供的充电电流,有待进一步研究。
发明内容
本申请实施例提供的一种充电方法、电子设备及相关装置,通过USB接口可以与外接设备建立联系,从而向外接设备提供不同的充电功率。
第一方面,本申请提供一种充电方法,该方法应用于电子设备,该电子设备包括一个或多个USB接口,电子设备通过所述一个或多个通用串行总线USB接口中的第一USB接口连接第一外接设备,所述方法包括:
通过所述第一USB接口向所述第一外接设备发送第一消息,其中,所述第一消息包括所述电子设备支持向所述第一外接设备输出的充电功率;
接收来自所述电子设备的第一规格的充电功率的请求,其中,所述第一规格的充电功率属于所述电子设备支持向所述第一外接设备输出的充电功率;
通过所述第一USB接口向所述第一外接设备输出所述第一规格的充电功率;
接收来自所述电子设备的第二规格的充电功率的请求,其中,所述第二规格的充电功率包括所述第一外接设备可以接收的最高充电档位的充电功率,所述第二规格的充电功率属于所述电子设备支持向所述第一外接设备输出的充电功率,所述第二规格的充电功率大于所述第一规格的充电功率;
通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
在一种实现中,USB接口包括USB Type-C接口。
通过本申请实施例,在第一外接设备通过USB接口与电子设备建立连接后,首先电子设备可以向第一外接设备广播自己所支持输出的充电功率,接收到第一外接设备的响应后,电子设备首先向第一外接设备输出第一规格的充电功率(默认的充电功率,比如说5V/2A)。在第一外接设备支持更高的充电功率的情况下,第一外接设备可以向电子设备发送更高的
充电功率请求。电子设备响应其请求,向第一外接设备所可以接收的最高充电档位的充电功率。可以理解的是,因为电子设备可以提供多种规格的充电功率,所以在第一外接设备的请求下,可以向外接设备提供不同规格的充电功率,满足不同的充电需求。
在第一方面的一种可能的实施方式中,所述电子设备还包括开关切换电路和处理器,所述开关切换电路与所述一个或多个USB接口对应,所述开关切换电路连接所述处理器和短接0欧姆电阻。其中,处理器用于满足部分外接设备要求电子设备为DCP端时才会要求为其提供更大的充电功率,或者满足某些私有协议的充电方案。
可以看出,通过开关切换电路可以切换USB接口与处理器连接或者与0欧姆电阻短接,通过开关切换电路与处理器连接时,电子设备可被认为是SDP端,通过开关切换电路与0欧姆电阻短接时,电子设备可被认为是DCP端。
在第一方面的一种可能的实施方式中,所述通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率,包括:
在确定所述电子设备的系统不处于工作状态和/或所述电子设备的电池电量大于或等于预设阈值的情况下,通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
可以看出,本申请在保证自身充电需求的情况下,对外输出充电功率,可以不影响电子设备本身的用电需求。
在第一方面的一种可能的实施方式中,所述电子设备通过所述一个或多个USB接口中的第二USB接口连接第二外接设备,所述通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率,包括:
在确定位于所述第二USB接口处的所述第二外接设备没有向所述电子设备充电的情况下,通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
可以看出,在其他USB接口也接入有设备的情况下,需要判断该设备是否有向电子设备充电,在其他设备没有对电子设备充电的情况下,对第一外接设备输出更高的充电功率。在其他设备对电子设备充电的情况下,恢复正常的充电功率。从而可以避免在对电子设备充电的情况下,因输出较高的充电功率,而造成电子设备的性能不稳定。
在第一方面的一种可能的实施方式中,所述开关切换电路用于连接所述第一USB接口和所述处理器,所述通过所述第一USB接口向所述第一外接设备输出所述第一规格的充电功率之后,所述接收来自所述电子设备的第二规格的充电功率的请求之前,还包括:
接收来自所述第一外接设备的快充请求;
响应所述快充请求,控制所述开关切换电路从连接所述处理器切换到连接所述0欧姆电阻;
通过所述第一USB接口与所述第一外接设备进行协议交互,确定所述电子设备为专用充电端口DCP端。
可以看出,在通过开关切换电路切换到连接第一USB接口和处理器的情况下,电子设备被识别为SDP端,若第一外接设备需要进行快充,则可以通过开关切换电路切换到连接第一USB接口和0欧姆电阻,这样,电子设备被识别为DCP端,可以向第一外接设备输出更高的充电功率。
在第一方面的一种可能的实施方式中,所述电子设备通过所述一个或多个USB接口中的第二USB接口连接第二外接设备,所述接收来自所述第一外接设备的快充请求,包括:
在确定位于所述第二USB接口处的所述第二外接设备没有向所述电子设备充电的情况下,接收来自所述第一外接设备的快充请求。
可以看出,在其他USB接口也接入有设备的情况下,需要判断该设备是否有向电子设备充电,在其他设备没有对电子设备充电的情况下,接收来自第一外接设备的快充请求,在其他设备对电子设备充电的情况下,恢复正常的充电功率。从而可以避免在对电子设备充电的情况下,因输出较高的充电功率,而造成电子设备的性能不稳定。
在第一方面的一种可能的实施方式中,在所述开关切换电路连接所述第一USB接口和所述0欧姆电阻的情况下,所述电子设备为DCP端。
可以看出,电子设备被识别为DCP端后,可以支持PD协议的部分档位以及PPS,从而可以向外输出不同且更高的充电功率。
在第一方面的一种可能的实施方式中,所述电子设备通过所述一个或多个USB接口中的第二USB接口连接第二外接设备,所述通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率,包括:
在确定位于所述第二USB接口处的所述第二外接设备没有向所述电子设备充电的情况下,通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
可以看出,在电子设备被识别为DCP端的情况下,若其他USB接口也接入有设备,需要判断该设备是否有向电子设备充电,在其他设备没有对电子设备充电的情况下,对第一外接设备输出更高的充电功率。在其他设备对电子设备充电的情况下,恢复正常的充电功率。从而可以避免在对电子设备充电的情况下,因输出较高的充电功率,而造成电子设备的性能不稳定。
在第一方面的一种可能的实施方式中,所述通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率之后,还包括:
接收来自所述电子设备的第三规格的充电功率的请求;
根据所述第三规格的充电功率的请求调整电压电流,输出所述第三规格的充电功率的请求对应的电压电流。
可以看出,电子设备可以根据第一外接设备的需求来实时调整电压电流,从而输出与其需求所匹配的充电功率,以适应不同的应用环境。
在第一方面的一种可能的实施方式中,所述电子设备包括功率传输模块、控制单元和电源模块中的一种或多种,所述通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率,包括:
通过所述控制单元打开所述电源模块的OTG功能;
通过所述功率传输模块打开所述电源模块的第二开关,其中,所述第二开关用于连接所述第一USB接口和所述电源模块中的charger芯片,所述电源模块中的charger芯片用于提供所述第二规格的充电功率;
基于所述OTG功能和处于导通状态的所述第二开关通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
可以看出,电子设备通过控制单元、功率传输模块和电源模块向外输出更高的充电功率。
第二方面,本申请提供了一种电子设备,包括一个或多个USB接口、功率传输模块、控制单元、电源模块中的一种或多种,其中,所述电子设备通过所述一个或多个通用串行总线USB接口中的第一USB接口连接第一外接设备,
所述功率传输模块,用于通过第一USB接口向所述第一外接设备发送第一消息,其中,所述第一消息包括所述电子设备支持向所述第一外接设备输出的充电功率;
所述功率传输模块,用于通过第一USB接口接收来自所述第一外接设备的第一规格的充电功率的请求,其中,所述第一规格的充电功率属于所述电子设备支持向所述第一外接设备输出的充电功率;
所述控制单元,用于控制所述电源模块输出第一规格的充电功率;
所述功率传输模块,用于通过所述第一USB接口向所述第一外接设备输出所述第一规格的充电功率;
所述功率传输模块,还用于通过第一USB接口接收来自所述第一外接设备的第二规格的充电功率的请求,其中,所述第二规格的充电功率包括所述第一外接设备可以接收的最高充电档位的充电功率,所述第二规格的充电功率属于所述电子设备支持向所述第一外接设备输出的充电功率,所述第二规格的充电功率大于所述第一规格的充电功率;
所述控制单元,用于控制说是电源模块输出第二规格的充电功率;
所述功率传输模块,用于通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
在第二方面的一种可能的实施方式,所述电子设备还包括开关切换电路和处理器,所述开关切换电路与所述一个或多个USB接口对应,所述开关切换电路连接所述处理器和短接0欧姆电阻。
第三方面,本申请实施例提供的一种电子设备,所述电子设备包括:一个或多个USB接口;一个或多个处理器;存储器;其中,所述USB接口用于与具有所述USB接口的设备建立连接,所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行第一方面或第一方面的任一种可能的实现方式中描述的充电方法。
第四方面,本申请提供一种芯片或者芯片系统,该芯片或者芯片系统包括至少一个处理器和通信接口,通信接口和至少一个处理器通过线路互联,至少一个处理器用于运行计算机程序或指令,以执行第一方面或第一方面的任意一种可能的实现方式中描述的充电方法。其中,芯片中的通信接口可以为输入/输出接口、管脚或电路等。
在一种可能的实现中,本申请实施例中上述描述的芯片或者芯片系统还包括至少一个存储器,该至少一个存储器中存储有指令。该存储器可以为芯片内部的存储单元,例如,寄存器、缓存等,也可以是该芯片的存储单元(例如,只读存储器、随机存取存储器等)。
第五方面,本申请实施例提供了一种计算机存储介质,该计算机存储介质存储有计算
机程序,该计算机程序被处理器执行时,使得计算机执行如第一方面或第一方面的任一种可能的实现方式中描述的充电方法。
第六方面,本申请实施例提供了一种计算机程序产品,当该计算机程序产品在通信装置上运行时,使得该通信装置执行如第一方面或第一方面的任一种可能的实现方式中描述的充电方法。
应当理解的是,本申请中对技术特征、技术方案、有益效果或类似语言的描述并不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或有益效果的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或有益效果。因此,本说明书中对于技术特征、技术方案或有益效果的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合本实施例中所描述的技术特征、技术方案和有益效果。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或有益效果即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和有益效果。
以下对本申请实施例用到的附图进行介绍。
如图1所示为本申请实施例提供的电子设备的结构示意图;
图2是本申请实施例提供的一种电子设备的架构示意图;
图3是本申请实施例提供的一种基于第一充电电路的单Type-C接口的充电场景示意图;
图4所示为基于第一充电电路的单Type-C接口的充电场景的流程示意图;
图5是本申请实施例提供的一种基于第一充电电路的双Type-C接口的充电场景示意图;
图6所示为基于第一充电电路的双Type-C接口的充电场景的流程示意图;
图7是本申请实施例提供的另一种电子设备的架构示意图;
图8所示为本申请实施例提供的一种基于第二充电电路的单Type-C接口的充电场景示意图;
图9所示为基于第二充电电路的单Type-C接口的充电场景的流程示意图;
图10所示为另一种基于第二充电电路的单Type-C接口的充电场景的流程示意图;
图11所示为本申请实施例提供的一种基于第二充电电路的双Type-C接口的充电场景示意图;
图12A-图12C所示为基于第二充电电路的双Type-C接口的充电场景的流程示意图;
图13A-图13C所示为另一种基于第二充电电路的双Type-C接口的充电场景的流程示意图;
图14是本申请实施例提供的一种充电方法的流程示意图。
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为
对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
为了更好地理解本申请实施例,以下对本实施例中可能涉及的术语或概念进行解释说明。
1.功率传输(power delivery,PD)协议,是一种用于电源适配器和充电器之间传输电能的通信协议。PD协议通过在电源适配器和充电器之间进行通信,实现了智能的电力传输管理。它可以根据设备的需求自动调整电压和电流,以提供最适合设备的充电能力。PD协议还支持双向通信,允许设备向电源适配器发送请求,如调整功率、获取设备信息等。
2.USB Type-C,是USB协会定义的C类USB接口,支持正反对称插拔,可以采用USB2.0协议、USB3.0协议或者USB3.1协议等USB任一传输协议,支持USB标准的充电、数据传输、音频传输、显示输出等功能。
USB Type-C标准相对于旧标准的不同是引入了双角色能力,每根USB Type-C电缆的两端都是完全等同的,意味着连接起来的两台设备需要进行相互沟通以确定自己应作为主机还是外设而存在。角色的沟通需要针对数据和电源分别进行,其中,在数据方面,用于数据通讯的主机端口被称为下行端口(downstream facing port,DFP),外设端口被称为上行端口(upstream facing port,UFP)。在电源方面,供电端被称为源端(Source),耗电端被称为从端(Sink)。有的设备既可以有数据上的双角色能力,又具有电源上的双角色能力。
USB Type-C电缆支持提供高达5V/3A(即15W)的最大充电电压/电流/功率,如果采用PD协议,可以提升到20V/5A(即100W)的最大充电电压/电流/功率。其中,USB PD3.0协议支持可编程电源(programmable power supply,PPS)协议,允许对电压和电流进行精准调控。
3.充电标准BC1.2,基于USB2.0D+/D-线的通信模式。它所定义的端口类型包括如下3种:标准下行端口(standard downstream port,SDP)、专用充电端口(dedicated charging port,DCP)和充电下行端口(charging downstream port,CDP)。
4.系统睡眠状态(S-State),包括但不限于S0-S5六个等级,其中:
S0对应于开机状态;
S1-S2对应于睡觉状态,其中,S1对应处理器停止工作但仍然接通电源的状态,S2对应处理器关闭并断开电源,但是蓝牙等周围设备保持运行的状态;
S3对应于睡眠下的待机状态,也即处理器在内的所有设备断开电源,但是内存保持运行的状态;
S4对应于休眠状态;
S5对应于关机状态。
一般来说,具有USB Type-C接口的PC产品可以对手机、平板等终端设备充电。PC产品和终端设备根据充电协议(比如说PD协议)握手成功后,PC产品可以提供高达5V/3A(即15W)的最大充电电压/电流/功率,但是充电电流一般根据规格限制输出为2A。同时,终端设备默认会通过BC2.1协议将PC产品的端口识别为SDP,与PC产品基于USB2.0协议进行数据通信。可以理解的是,PC产品基于PD3.0或者PD2.0可以向终端设备提供更大的充电功率,但是目前的终端设备必须识别源端(Source)的端口为DCP后才会支持PD协议的部分充电档位以及PPS,由于目前的终端设备与PC产品建立连接后,默认识别PC产品的端口为SDP,所以PC产品可以为终端设备提供的充电档位有限。
基于此,本申请提供了一种充电方法、电子设备及相关装置,电子设备包括一个或多个USB接口,电子设备通过一个或多个USB接口中的第一USB接口连接第一外接设备。电子设备通过第一USB接口向第一外接设备广播所支持的对外充电功率,第一外接设备首先会请求5V/2A的充电功率,电子设备响应其请求,向第一外接设备输出5V/2A的充电功率。之后,如果第一外接设备支持更高的充电功率(比如说9V/2A),则向电子设备请求更高的充电功率(比如说9V/2A)。电子设备响应其请求,向第一外接设备输出比如说9V/2A的充电功率。可以看出,电子设备可以向第一外接设备提供不同的充电档位。
在一种可能的实施方式中,电子设备还包括开关切换电路和处理器,所述开关切换电路与一个或多个USB接口对应,开关切换电路连接所述处理器和短接0欧姆电阻。在电子设备对第一外接设备进行快速充电时,可以控制开关电路切换到连接0欧姆电阻,电子设备通过第一USB接口与所述第一外接设备进行协议交互,可以确定电子设备为专用充电端口DCP端。在电子设备为识别为DCP端的情况下,可以支持PD协议的部分充电档位以及PPS。
首先,本申请实施例提供一种电子设备,该电子设备可以作为电源为待充电设备进行充电。本申请实施例提供的电子设备/待充电设备可以但不限于是笔记本电脑(Notebook或Laptop)、平板电脑、手机、台式电脑、一体机、个人数字助理(personal digital assistant,简称PDA),还可以是车载电脑、智能穿戴式设备、智能家居设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)等。本申请实施例对上述电子设备以及待充电设备的具体类型不作限定。
首先介绍电子设备的结构。如图1所示为本申请实施例提供的电子设备的结构示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传
导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。例如,对于台式机设备或者一体机设备,可以不包括SIM卡接口、天线组1以及移动通信模块;对于笔记本电脑,也可以不包括天线组1以及移动通信模块。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它
将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
还可以包括其他用于与其他设备进行交互的接口,比如说Dock接口或者Lighting接口等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入或者向外接设备提供电源。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。对于应用Type-C接口的电子设备,其充电管理模块140可以支持USB功率传输(PD)充电协议。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),
有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory,SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5 SDRAM)等;非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell,TLC)、四阶储存单元(quad-level cell,QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
以下以PD充电协议和两个Type-C接口为例来介绍本申请提供的充电方法和电子设备,需要说明的是,本申请提供的充电方法同样适合于两个及以上Type-C接口的设备,以及PD充电协议的类型协议,比如说以CC信号进行沟通的充电协议,或者以Type-C接口上
的引脚(pin)在CC信号对应的位置进行沟通的充电协议,或者以Type-C接口定义的非D+/D-信号进行沟通的充电协议。
首先以电子设备例如为PC产品来介绍电子设备100的结构。请参见图2,图2是本申请实施例提供的一种电子设备的架构示意图,电子设备100可用于实现本申请实施例提供的充电方法。
如图2所示,电子设备100包括第一充电电路101和处理器205。第一充电电路101包括第一Type-C接口2011、第二Type-C接口2012、功率传输模块202、电源模块203、控制单元204中的一个或多个。其中:
第一Type-C接口2011和/或第二Type-C接口2012接口用于连接外接设备,当电子设备100通过第一Type-C接口2011和/或第二Type-C接口2012为外接设备提供电源时,电子设备为充电端(用Source表示),外接设备为用电设备端(用Sink表示)。从图2可以看出,第一Type-C接口2011和/或第二Type-C接口2012包括用于供电的VBUS引脚,CC引脚(包括CC1引脚和CC2引脚)、DP(也可以称为D+或数据正信号)引脚和DM(也可以称为D-或数据负信号)引脚中的一个或多个。其中:
VBUS引脚是电源的返回路径,默认的VBUS电压为5V,但标准允许器件协商并选择VBUS电压而不是默认值,支持更大的电压,本申请对所支持的VBUS电压的数值不做任何限制。
CC引脚用于完成USB Type-C规范中定义的配置通道功能,以及USB PD规范中所规定的功能。
DM引脚和DP引脚是用于USB2.0连接的差分对,DM/DP引脚上传输的信号可以用于私有协议的识别。
功率传输模块202例如为USB-PD充电协议集成电路(integrated circuit,IC),USB-PD充电协议IC可以是与Type-C接口定义的CC通道沟通协议的IC,支持PD充电协议或者和PD充电协议类似的充电协议。其中,功率传输模块202还可以包括一个或多个接口,比如说I2C接口等。PD芯片通过I2C接口和I2C总线与控制单元204的I2C接口电连接,实现功率传输模块202与控制单元204的电连接以及信号之间的传输。PD芯片例如可以与第一Type-C接口2011和/或第二Type-C接口2012的CC引脚(CC1/CC2引脚)电连接,通过CC引脚处电压变化实现第一Type-C接口2011和/或第二Type-C接口2012处接入的外接设备的识别等。
在一些实施例中,功率传输模块202内设置有一个或多个第一开关和一个或多个第二开关,第一Type-C接口2011分别与第一开关和第二开关对应,第二Type-C接口2012分别与第一开关和第二开关对应。可以理解的是,在有两个或多个USB Type-C接口的情况下,功率传输模块202内设置有两个或多个第一开关,两个或多个第二开关,分别对应不同的USB Type-C接口。
电源模块203包括充电控制(charger)芯片、电池和降压(Buck)电路中的一种或多种。
降压(Buck)电路用于输出电压,例如输出5V固定电压至功率传输模块202,以通过功率传输模块202内的与第一开关电连接的引脚将5V电压输出至第一Type-C接口2011
的VBUS引脚处和/或第二Type-C接口2012的VBUS引脚处。
需要说明的是,第一开关可以位于功率传输模块202内,也可以位于功率传输模块202外,并由功率传输模块202控制其的导通或关断,例如控制是否将5V固定电压输出至第一Type-C接口2011和/或第二Type-C接口2012的VBUS引脚处。示例性的,第一开关例如可以是具有过流保护(OCP)作用的开关芯片。当然,第一开关并不限于此,只要可以具有导通或关断的功能以及过流保护功能的模块均在本申请实施例的保护范围内。
充电控制(charger)芯片通过第二开关与第一Type-C接口2011和/或第二Type-C接口2012的VBUS引脚电连接,还分别与电池和控制单元204连接。当第一Type-C接口2011和/或第二Type-C接口2012接入适配器、充电宝等充电电源时,电源模块203用于通过第二开关接收充电输入,为电池充电的同时,还可以为工作时需要供电的其他模块供电,已完成对电子设备的正向充电。在本实施例中,电源模块203还具有电源反向输出功能,也即向外接的待充电设备进行电源输出的功能。其中,电源反向输出功能可以基于活动式(On The Go,OTG)功能实现,且电源模块203反向输出的电压和电流是可调整的。
示例性的,第二开关例如可以是具有过压保护(OVP)作用的开关芯片。当然,第二开关模块70并不限于此,只要可以具有导通或关断的功能以及过电压保护功能的模块均在本申请实施例的保护范围内。例如可以通过功率传输模块202控制第二开关导通或关断,也可以控制单元204通过GPIO接口控制第二开关的导通或关断。可以理解的是,在有两个或多个USB Type-C接口的情况下,电源模块203内设置有两个或多个第二开关。
控制单元204可以是一个单片机,例如为微控制单元((Microcontroller Unit,MCU)或者嵌入式控制器(Embedde controller,EC)。在一种实现中,控制单元204还可以集成在处理器205中。其主要控制上电时序、键盘和处理底层硬件相关工作,比如温度检测。充电控制、PD芯片实现接口等功能。控制单元204解压包含独立运行的软件,存放在自己的非易失性介质中。
在一些实施例中,控制单元204可以包括一个或多个接口。接口可以包括通用输入输出接口(GPIO)、增强型串行外围(Enhanced Serial Peripheral,eSPI)接口,集成电路I2C接口等。通过上述接口实现与电子设备100中其他模块的电连接以及模块和模块之间的通信。在本申请实施例中,控制单元204例如可以通过不同的I2C接口与功率传输模块202进行电连接和通信,通过GPIO接口与电源模块203进行电连接和通信。
应该理解的是,图2所示的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
接下来,介绍本申请提供的一种场景示意图。图3是本申请实施例提供的一种基于第一充电电路的单Type-C接口的充电场景示意图。
在图3所示的场景中,电子设备100为笔记本电脑,其配置有第一Type-C接口2011和第二Type-C接口2012这两个Type-C接口。电子设备100可以通过这两个Type-C接口中的一个(比如第一Type-C接口2011),与第一外接设备200(例如手机)建立连接。建立连接后的第一时刻,电子设备100确认自身为Source设备,接入的第一外接设备200为Sink设备。首先,电子设备100可以向第一外接设备200提供例如5V/2A(即10W)的功
率。在第一时刻后的第二时刻,第一外接设备200确认自身支持更高功率的协议,例如PD3.0协议、PD2.0协议等,第一外接设备200向电子设备100请求更高功率例如9V/2A(即18W)。电子设备100接收到第一外接设备200的请求后,若电子设备100的系统没有处于S0状态且电量没有低于预设阈值,则向第一外接设备200提供更高的充电功率(如18W)。因此,在第二时刻,第一外接设备200可以以例如9V/2A(即18W)的功率进行快速充电。
图4所示为基于第一充电电路的单Type-C接口的充电场景的流程示意图,包括但不限于如下步骤,本申请为了方便描述,故通过以下顺序进行描述,并不旨在限定一定通过上述顺序进行执行。本申请实施例对于上述一个或多个步骤的执行的先后顺序、执行的时间、执行的次数等不做限定。
S401,第一外接设备200与电子设备100的功率传输模块建立连接。
具体的,第一外接设备200通过第一Type-C接口接入电子设备100(可简称为第一外接设备200接入Type-C接口)时,电子设备100中的功率传输模块202和第一外接设备200通过Type-C接口的CC pin握手,确认自身是Source设备,接入的第一外接设备200为Sink设备。
S402,功率传输模块向第一外接设备200发送第一消息。
具体地,作为Source设备的电子设备100,通过功率传输模块向作为Sink设备的第一外接设备200发送第一消息,第一消息包括电子设备100可提供5V/2A和9V/2A中的一种或多种充电功率。可以理解的是,这些数值也可以替换为其他数值,可以是电子设备和第一外接设备进行协议交互后所确定的交互结果对应的数值。
S403,第一外接设备200向功率传输模块请求5V/2A的充电功率。
S404,功率传输模块打开第一开关。
其中,打开第一开关即控制第一开关导通。具体地,从图3可知,功率传输模块可以控制第一开关的导通或关断,第一开关与电源模块中的Buck电路电连接,从而通过第一开关可控制是否将Buck电路输出的5V电压输出至功率传输模块。
S405,电源模块输出5V/2A的充电功率。
具体的,电压模块中的Buck电路用于输出5V电压,在第一开关处于导通时,电源模块通过功率传输模块内的与第一开关电连接的引脚,将5V电压输出至USB Type-C接口的VBUS引脚处,从而向第一外接设备200提供5V/2A的充电功率。
S406,第一外接设备200向功率传输模块请求9V/2A的充电功率。
具体地,在第一外接设备200支持PD3.0或者PD2.0等快充协议的情况下,第一外接设备200向功率传输模块请求9V/2A的充电功率。
S407,功率传输模块向控制单元发送第一请求。
具体地,功率传输模块接收到作为Sink设备的第一外接设备200的请求后,通过I2C接口向控制单元发送使能(Enable)OTG功能的第一请求。
S408,控制单元判断系统是否处于S0以及当前电量是否低于预设阈值。
具体地,控制单元接收到打开OTG功能的请求后,需要先保证自身的供电,在保证自身供电的前提下,向外提供电源。因此,控制单元判断电子设备100的当前系统是否处于
S0状态以及电池的电量是否低于预设阈值(比如说20%)。
因此,在判断得到电子设备100的当前系统是处于S0状态且电池的电量是低于预设阈值的情况下,继续向外接设备提供5V/2A的充电功率。
S409,否,控制单元向功率传输模块发送第二消息。
具体的,在判断得到电子设备100的当前系统不是处于S0状态且电池的电路大于或等于预设阈值的情况下,控制单元向功率传输模块发送用于表明可以打开OTG功能的第二消息。
S410,否,控制单元向电源模块发送打开OTG功能的消息。
S411,电源模块打开OTG功能。
S412,功率传输模块断开第一开关,打开第二开关。
具体地,功率传输模块在接收到第二消息后,断开第一开关,使得第一开关处于关断状态,从而可以关闭电源模块的OCP功能,停止输出5V/2A的充电功率。打开第二开关,从而使能电源模块203的OVG功能,并配置电源模块203相关寄存器,以反向输出例如9V/2A的电流电压。
S413,电源模块向第一外接设备200输出9V/2A的充电功率。
具体地,从图3可知,电源模块中的充电控制(charger)芯片通过第二开关与USB Type-C接口的VBUS引脚电连接,还分别与电池连接。因此,电源模块可以通过charger芯片和电池可以向第一外接设备200提供9V/2A的充电功率。
可以看出,电子设备可以与第一外接设备相互协商确定不同的充电功率,以满足向第一外接设备输出更高充电功率的需求。
图5是本申请实施例提供的一种基于第一充电电路的双Type-C接口的充电场景示意图。如图5所示,电子设备100配置有两个Type-C接口,分别是第一Type-C接口2011和第二Type-C接口2012。电子设备100通过第一Type-C接口可以与第一外接设备200(例如手机)建立连接,通过第二Type-C接口2012可以第二外接设备300(例如充电器)建立连接。
如图5所示,电子设备100通过第一Type-C接口2011与第一外接设备200建立连接后的第一时刻,电子设备100确认自身为Source设备,接入的第一外接设备200为Sink设备。首先,电子设备100可以向第一外接设备200提供例如5V/2A(即10W)的功率。
在第一时刻之后,第一外接设备200确认自身支持更高功率的协议例如PD3.0协议、PD2.0协议等,第一外接设备200向电子设备100请求更高功率例如9V/2A(即18W)。电子设备100接收到第一外接设备200的请求后,判断是否存在以下不能提供高功率的情况:情况一,第二Type-C接口2012是否有接入第二外接设备300(例如充电器),且电子设备100被识别为Sink;情况二,电子设备100的系统是否处于S0状态且电量没有低于预设阈值,若上述情况存在一种或多种,则拒绝第一外接设备200的请求,电子设备100继续输出5V/2A的充电。因此,在第一时刻之后的第二时刻,第一外接设备200继续以5V/2A的功率进行充电。
若上述情况都不存在,电子设备100接收到第一外接设备200的请求后,向第一外接
设备200提供9V/2A(即18W)的功率。因此,在第二时刻,第一外接设备200可以以9V/2A(即18W)的功率进行快速充电。
在电子设备100向第一外接设备200输出9V/2A(即18W)的功率的情况下,电子设备100与第二外接设备300(例如充电器)建立连接,且电子设备100作为Sink设备,第二外接设备300(例如充电器)作为Source设备时,电子设备100停止输出9V/2A(即18W)的功率,开始输出5V/2A(即10W)的功率。因此,在第二时刻之后的第三刻,第一外接设备200恢复以5V/2A的功率进行充电。
图6所示为基于第一充电电路的双Type-C接口的充电场景的流程示意图,包括但不限于如下步骤:本申请为了方便描述,故通过以下顺序进行描述,并不旨在限定一定通过上述顺序进行执行。本申请实施例对于上述一个或多个步骤的执行的先后顺序、执行的时间、执行的次数等不做限定。
S501,第一外接设备200与电子设备100的功率传输模块建立连接。
具体的,第一外接设备200接入第一Type-C接口2011时,电子设备100中的功率传输模块202和第一外接设备200通过第一Type-C接口2011的CC pin握手,确认自身是Source设备,接入的第一外接设备200为Sink设备。
S502,功率传输模块向第一外接设备200发送第一消息。
具体地,作为Source设备的电子设备100,通过功率传输模块向作为Sink设备的第一外接设备200发送第一消息,第一消息包括电子设备100可提供5V/2A和9V/2A中的一种或多种充电功率。
S503,第一外接设备200向功率传输模块请求5V/2A的充电功率。
S504,功率传输模块打开第一开关。
具体地,从图3可知,功率传输模块可以控制第一开关的导通或关断,第一开关与电源模块中的Buck电路电连接,从而通过第一开关可控制是否将Buck电路输出的5V电压输出至功率传输模块。
S505,电源模块输出5V/2A的充电功率。
具体的,电压模块中的Buck电路用于输出5V电压,在第一开关处于导通时,电源模块通过功率传输模块内的与第一开关电连接的引脚将5V电压输出至USB Type-C接口的VBUS引脚处,从而向第一外接设备200提供5V/2A的充电功率。
S506,第一外接设备200向功率传输模块请求9V/2A的充电功率。
具体地,在第一外接设备200支持PD3.0或者PD2.0等快充协议的情况下,第一外接设备200向功率传输模块请求9V/2A的充电功率。
S507,功率传输模块向控制单元发送第一请求。
具体地,功率传输模块接收到作为Sink设备的第一外接设备200的请求后,通过I2C接口向控制单元发送打开OTG功能(Enable)的第一请求。
S508,控制单元判断是否有第二外接设备向电子设备100充电。
具体地,电子设备100具有两个及以上Type-C接口,第二外接设备接入第二Type-C接口2012时,电子设备100中的功率传输模块202和第二外接设备300通过第二Type-C
接口2012的CC pin握手,判断自身是否是Source设备,接入的第二外接设备是否是Sink设备。
电子设备100若确定自身是Sink设备,接入的第二外接设备是Source设备,则确定第二Type-C接口2012处于向电子设备100进行充电的状态,电子设备100则继续向外接设备提供5V/2A的充电功率。
若判断得到没有第二外接设备通过第二Type-C接口向电子设备充电,则执行步骤S509。
S509,控制单元判断系统是否处于S0以及当前电量是否低于预设阈值。
具体地,控制单元接收到打开OTG功能的请求后,需要先保证自身的供电,在保证自身供电的前提下,向外提供电源。因此,控制单元判断电子设备100的当前系统是否处于S0状态以及电池的电量是否低于预设阈值(比如说20%)。
因此,在判断得到电子设备100的当前系统是处于S0状态且电池的电量是低于预设阈值的情况下,继续向外接设备提供5V/2A的充电功率。
在判断得到电子设备100的当前系统不处于S0状态且电池的电路大于或等于预设阈值的情况下,执行步骤S510。
S510,控制单元向功率传输模块发送第二消息。
具体的,在判断得到没有第二外接设备通过Type-C接口向电子设备100充电,电子设备100的当前系统不是处于S0状态且电池的电路大于或等于预设阈值的情况下,控制单元向功率传输模块发送用于表明可以打开OTG功能的第二消息。
S511,否,控制单元向电源模块发送打开OTG功能的消息。
S512,电源模块打开OTG功能。
S513,功率传输模块断开第一开关,打开第二开关。
具体地,功率传输模块在接收到第二消息后,断开第一开关,使得第一开关处于关断状态,从而可以关闭电源模块的OCP功能,停止输出5V/2A的充电功率。打开第二开关,从而使能电源模块203的OVG功能,并配置电源模块203相关寄存器反向输出例如9V/2A的电流电压。
S514,电源模块向第一外接设备200提供9V/2A的充电功率。
具体地,从图3可知,电源模块中的充电控制(charger)芯片通过第二开关与USB Type-C接口的VBUS引脚电连接,还分别与电池连接。因此,电源模块通过charger芯片和电池可以向第一外接设备200提供9V/2A的充电功率。
S515,控制单元确定有第二外接设备向电子设备100充电或者系统处于S0状态。
S516,控制单元控制向功率传输模块发送第二请求。
具体地,第二请求用于请求功率传输模块断开第二开关,打开第一开关。
S517,功率传输模块断开第二开关,打开第一开关。
S518,电源模块向第一外接设备200输出5V/2A的充电功率。
具体地,电源模块停止输出9V/2A的充电功率,恢复输出5V/2A的充电功率。
可以看出,电子设备可以与第一外接设备相互协商确定不同的充电功率,以满足向第一外接设备输出更高充电功率的需求。在存在其他USB接口(例如第二Type-C接口)向电子设备充电的情况下,为了保证电子设备的性能稳定,可以停止向第一外接设备输出更
高的充电功率,恢复正常的充电功率。
请参见图7,图7是本申请实施例提供的另一种电子设备的架构示意图。如图6所示,电子设备100包括第二充电电路102和处理器205。第二充电电路102包括第一Type-C接口2011、第二Type-C接口2012、功率传输模块202、电源模块203、控制单元204、第一开关切换电路2061和第二开关切换电路2062中的一个或多个。其中:
第一开关切换电路2061对应第一Type-C接口2011,第一开关切换电路2061分别与第一Type-C接口2011、控制单元204和处理器205相连接,并且在第一开关切换电路2061上短接有0欧姆(R)电阻。
在一些实施例中,控制单元204可以控制第一开关切换电路2061将与第一Type-C接口2011连接的DP信号线和DM信号线分别切换到与处理器205连接的线上。这样,第一Type-C接口2011通过第一开关切换电路2061与处理器205连接,当外接设备通过第一Type-C接口2011接入电子设备100时,可以进行USB2.0识别。也即,电子设备100通过第一Type-C接口2011可以与外接设备进行数据传输。
在一些实施例中,控制单元204可以控制第一开关切换电路2061将与第一Type-C接口2011连接的DP信号线和DM信号线分别切换到与0欧姆(R)连接的线上。
第二开关切换电路2062对应第二Type-C接口2012,第二开关切换电路2062分别与第二Type-C接口2012、控制单元204和处理器205相连接,并且在第二开关切换电路2062上短接有0欧姆(R)电阻。
在一些实施例中,控制单元204可以控制第二开关切换电路2062将与第二Type-C接口2012连接的DP信号线和DM信号线分别切换到与处理器205连接的线上。这样,第二Type-C接口2012通过第二开关切换电路2062与处理器205连接,当外接设备通过第二Type-C接口2012接入电子设备100时,可以进行USB2.0识别。也即,电子设备100通过第二Type-C接口2012可以与外接设备进行数据传输。
在一些实施例中,控制单元204可以控制第一开关切换电路2061将与第一Type-C接口2011连接的DP信号线和DM信号线分别切换到与0欧姆(R)连接的线上。
关于图6中的第一Type-C接口2011、第二Type-C接口2012、功率传输模块202、电源模块203和控制单元204的相关说明可参考图2,此处不再赘述。
需要说明的是,开关切换电路的数量与Type-C接口的数量一致,本申请以两个Type-C接口为例来说明,但不限于两个Type-C接口和两个开关切换电路。
图8所示为本申请实施例提供的一种基于第二充电电路的单Type-C接口的充电场景示意图。其中,第二充电电路为图7所示的第二充电电路102。在图8所示的场景中,电子设备100处于开机状态和/或休眠状态。
如图8所示,电子设备100为笔记本电脑,其配置有第一Type-C接口2011和第二Type-C接口2012这两个Type-C接口。电子设备100可以通过这两个Type-C接口中的一个(比如第一Type-C接口2011),与第一外接设备200(例如手机)建立连接。建立连接后电子设备100确认自身为Source设备,接入的第一外接设备200为Sink设备。电子设备100可以
向第一外接设备200广播自身提供的充电功率,以及例如通过弹窗方式显示支持PPS,在第一时刻,第一外接设备200会优先请求5V/2A。因此,在第一时刻,电子设备100向第一外接设备200提供例如5V/2A(即10W)的功率,以及电子设备100可以与第一外接设备200进行数据传输。
从图8可以看出,在建立连接之后,电子设备100可以弹窗显示“是否进行快充?”,以提示用户是否选择快充。若用户选择“否”选项,电子设备100响应于“否”功能控件的用户操作,确定用户未选择快充,因此维持当前的充电功率不变。若用户选择“是”选项,电子设备100响应于“是”功能控件的用户操作,确定用户选择快充,因此向第一外接设备200提供比5V/2A更高的充电功率。比如说,在第二时刻,第一外接设备200可以以12V/3A(即36W)的功率进行快速充电。
在第二时刻之后,电子设备100可以实时调整向第一外接设备200传输的充电功率。比如说,在第三时刻,第一外接设备200可以以9V/2A(即18W)的功率进行快速充电。
图9所示为基于第二充电电路的单Type-C接口的充电场景的流程示意图,包括但不限于如下步骤,本申请为了方便描述,故通过以下顺序进行描述,并不旨在限定一定通过上述顺序进行执行。本申请实施例对于上述一个或多个步骤的执行的先后顺序、执行的时间、执行的次数等不做限定。
从图7可以看出,电子设备通过控制单元可以控制开关切换电路切换到处理器端。这样,当有外接设备通过Type-C接口接入电子设备后,基于USB2.0协议可以确认自身为SDP端。在电子设备100处于开机状态和/或睡眠状态的情况下,控制单元默认第一开关切换电路2061切到处理器端。
S701,第一外接设备200与电子设备100的功率传输模块建立连接。
具体的,第一外接设备200接入Type-C接口时,电子设备100中的功率传输模块202和第一外接设备200通过Type-C接口的CC pin握手,确认自身是Source设备,接入的第一外接设备200为Sink设备。
S702,功率传输模块向第一外接设备200发送第一消息。
具体地,作为Source设备的电子设备100,通过功率传输模块向作为Sink设备的第一外接设备200发送第一消息,第一消息包括电子设备100可提供5V/2A、9V/2A、12V/2A、15V/3A和20V/3.5A等中的一种或多种充电功率,以及会显示支持可编程电源(PPS)。需要说明的是,电子设备100提供的电压电流不限于本申请实施例所提供的,可以提供更多或更少的电压电流。
S703,第一外接设备200向功率传输模块请求5V/2A的充电功率。
S704,功率传输模块打开第一开关。
具体地,从图7可知,功率传输模块可以控制第一开关的导通或关断,第一开关与电源模块中的Buck电路电连接,从而通过第一开关可控制是否将Buck电路输出的5V电压输出至功率传输模块。
S705,电源模块输出5V/2A的充电功率。
具体的,电压模块中的Buck电路用于输出5V电压,在第一开关处于导通时,电源模
块通过功率传输模块内的与第一开关电连接的引脚将5V电压输出至USB Type-C接口的VBUS引脚处,从而向第一外接设备200提供5V/2A的充电功率。
由于在电子设备100处于开机状态和/或睡眠状态的情况下,电子设备可以通过控制单元控制开关切换电路切换到处理器端,因此,电子设备与外接设备建立连接后,基于BC1.2协议可以确认电子设备为SDP端,从而可以支持与外接设备进行数据传输的功能。
S706,控制单元控制第一开关切换电路切换到0R电阻。
具体地,电子设备的UI界面通过弹窗方式提示用户是否选择快充,若用户选择快充,控制单元控制第一控制开关切换电路从处理器端切换到0R电阻端。从图6可以看出,切换到0R电阻段后,第一Type-C接口断开了与处理器的连接。若用户没有选择快充,则电子设备继续输出5V/2A的充电功率。
S707,控制单元向功率传输模块发送第二消息。
具体地,第二消息用于通知功率传输模块断开第一开关。
S708,功率传输模块断开第一开关。
具体地,功率传输模块响应于第二消息,断开第一开关。
S709,第一外接设备与功率传输模块重新建立连接。
具体地,在功率传输模块通过断开第一开关来停止OCP功能之后,第一外接设备和电子设备可以重新建立连接。比如说基于BC1.2通过Type-C接口,识别电子设备为DCP端。
S710,功率传输模块向控制单元发送第三消息。
具体地,电子设备基于BC1.2与第一外接设备建立连接后,第一外接设备向功率传输模块请求第一外接设备支持的最高档位的充电能力,功率传输模块通过I2C向控制单元发送第三消息,第三消息用于请求第一外接设备支持的最高档位的电压电流。
S711,控制单元向电源模块发送打开OTG功能的消息。
具体地,控制单元根据来自功率传输模块的要求,配置电源模块中charger芯片的OTG电压电流,并打开OTG功能。
S712,电源模块打开OTG功能。
具体地,电源模块根据控制单元的配置打开OTG功能。
S713,控制单元向功率传输模块发送第四消息。
其中,第四消息用于表明OTG功能已配置完成。
S714,功率传输模块断开第一开关,打开第二开关。
具体地,功率传输模块接收到OTG功能已配置完成的消息后,打开第二开关,并关闭第一开关。
S715,电源模块输出第一外接设备支持的最高档位的电压电流。
具体地,在打开第二开关后,电源模块可以通过charger芯片向第一外接设备输出它所请求的最高档位的电压电流。
S716,第一外接设备向功率传输模块发送第三请求。
具体地,第一外接设备可以向电子设备发送第三请求,例如get PPS state,第三请求用于请求调节电压电流。
S717,功率传输模块向控制单元发送调节电压电流请求。
S718,控制单元调节电压电流。
具体地,控制单元根据功率传输模块的要求实时调整电源模块中charger芯片的OTG电压电流。
S719,电源模块向第一外接设备输出第三请求对应的电压电流。
在一些实施例中,第一外接设备与电子设备断开连接后,功率传输模块断开第二开关,并向控制单元发送断开第二开关的消息。控制单元控制第一开关切换电路切换到处理器端,等待下一次外接设备的接入。
可以看出,在开机场景和/或休眠场景中,电子设备的控制单元默认控制开关切换电路切到处理器端。因此,第一外接设备接入电子设备后,可以基于USB2.0进行数据传输,也可以向第一外接设备输出正常的充电功率。在第一外接设备有快充需求后,电子设备响应其需求,通过开关切换电路切换到0欧姆短接,因此电子设备被识别为DCP端。在第一外接设备识别电子设备为DCP端后,可以支持PD协议的部分充电档位以及PPS。
图10所示为另一种基于第二充电电路的单Type-C接口的充电场景的流程示意图,包括但不限于如下步骤,本申请为了方便描述,故通过以下顺序进行描述,并不旨在限定一定通过上述顺序进行执行。本申请实施例对于上述一个或多个步骤的执行的先后顺序、执行的时间、执行的次数等不做限定。
从图7可以看出,电子设备通过控制单元可以控制开关切换电路切换到0R短接。这样,当有外接设备通过Type-C接口接入电子设备后,基于BC1.2协议可以确认自身为DCP端。在电子设备100处于关机状态的情况下,控制单元默认第一开关切换电路2061切到0R短接。
S801,第一外接设备200与电子设备100的功率传输模块建立连接。
具体的,第一外接设备200接入第一Type-C接口时,电子设备100中的功率传输模块202和第一外接设备200通过Type-C接口的CC pin握手,确认自身是Source设备,接入的第一外接设备200为Sink设备。
S802,功率传输模块向第一外接设备200发送第一消息。
具体地,作为Source设备的电子设备100,通过功率传输模块向作为Sink设备的第一外接设备200发送第一消息,第一消息包括电子设备100可提供5V/2A、9V/2A、12V/2A、15V/3A和20V/3.5A等中的一种或多种充电功率,以及会显示支持可编程电源(PPS)。需要说明的是,电子设备100提供的电压电流不限于本申请实施例所提供的,可以提供更多或更少的电压电流。
S803,第一外接设备200向功率传输模块请求5V/2A的充电功率。
S804,功率传输模块打开第一开关。
具体地,从图6可知,功率传输模块可以控制第一开关的导通或关断,第一开关与电源模块中的Buck电路电连接,从而通过第一开关可控制是否将Buck电路输出的5V电压输出至功率传输模块。由于在电子设备100处于开机状态和/或睡眠状态的情况下,电子设备通过控制单元可以控制开关切换电路切换到处理器端,因此,电子设备与外接设备建立连接后,基于USB2.0可以确认电子设备为SDP端,从而可以支持与外接设备进行数据传
输的功能。
S805,电源模块输出5V/2A的充电功率。
具体的,电压模块中的Buck电路用于输出5V电压,在第一开关处于导通时,电源模块通过功率传输模块内的与第一开关电连接的引脚将5V电压输出至USB Type-C接口的VBUS引脚处,从而向第一外接设备200提供5V/2A的充电功率。
同时,基于USB2.0,电子设备被识别为DCP端,可以进行电压电流调节以及PPS调节。
S806,第一外接设备向功率传输模块发送第三消息。
其中,第三消息用于向电子设备请求自身支持的最高档位的电压电流,比如说12V/2A。
S807,功率传输模块向控制单元发送第三消息。
具体地,功率传输模块通过I2C向控制单元发送第三消息,第三消息用于请求控制单元配置第一外接设备支持的最高档位的电压电流。
S808,控制单元向电源模块发送打开OTG功能的消息。
具体地,控制单元根据来自功率传输模块的要求,配置电源模块中charger芯片的OTG电压电流,并打开OTG功能。
S809,电源模块打开OTG功能。
具体地,电源模块根据控制单元的配置打开OTG功能。
S810,控制单元向功率传输模块发送第四消息。
其中,第四消息用于表明OTG功能已配置完成。
S811,功率传输模块断开第一开关,打开第二开关。
具体地,功率传输模块接收到OTG功能已配置完成的消息后,打开第二开关,并关闭第一开关。
S812,电源模块输出第一外接设备支持的最高档位的电压电流。
具体地,在打开第二开关后,电源模块可以通过charger芯片向第一外接设备输出它所请求的最高档位的电压电流。
S813,第一外接设备向功率传输模块发送第三请求。
具体地,第一外接设备可以向电子设备发送第三请求,例如get PPS state,第三请求用于请求调节电压电流。
S814,功率传输模块向控制单元发送调节电压电流请求。
S815,控制单元调节电压电流。
具体地,控制单元根据功率传输模块的要求实时调整电源模块中charger芯片的OTG电压电流。
S816,电源模块向第一外接设备输出第三请求对应的电压电流。
在一些实施例中,第一外接设备与电子设备断开连接后,功率传输模块断开第二开关,并向控制单元发送断开第二开关的消息。控制单元控制第一开关切换电路切换到处理器端,等待下一次外接设备的接入。
可以看出,在关机场景中,电子设备的控制单元默认控制开关切换电路切到0欧姆电阻短接。因此,第一外接设备接入电子设备后,电子设备被识别为DCP端。在第一外接设
备识别电子设备为DCP端后,可以支持PD协议的部分充电档位以及PPS。
图11所示为本申请实施例提供的一种基于第二充电电路的双Type-C接口的充电场景示意图。其中,第二充电电路为图7所示的第二充电电路102。在图11所示的场景中,电子设备100处于开机状态和/或睡眠状态。
如图11所示,电子设备100为笔记本电脑,其配置有第一Type-C接口2011和第二Type-C接口2012这两个Type-C接口。电子设备100可以通过这两个Type-C接口中的一个(比如第一Type-C接口2011),与第一外接设备200(例如手机)建立连接。建立连接后电子设备100确认自身为Source设备,接入的第一外接设备200为Sink设备。电子设备100可以向第一外接设备200广播自身提供的充电功率,以及例如通过弹窗方式显示支持PPS,在第一时刻,第一外接设备200会优先请求5V/2A。因此,在第一时刻,电子设备100向第一外接设备200提供例如5V/2A(即10W)的功率,以及电子设备100可以与第一外接设备200进行数据传输。
从图11可以看出,在第一时刻,电子设备100向第一外接设备200提供例如5V/2A(即10W)的功率之后,分为如下几种情况:
情况一,在第一时刻之后,电子设备100检测到第二外接设备300通过第二Type-C接口向自己充电,则电子设备100维持当前的5V/2A的充电功率不变。也即,在第二时刻,第一外接设备200仍旧以5V/2A的功率进行充电。
情况二,在第一时刻之后,电子设备100检测到没有第二外接设备300通过第二Type-C接口向自己充电,可以弹窗显示“是否进行快充?”,以提示用户是否选择快充。若用户选择“否”选项,电子设备100响应于“否”功能控件的用户操作,维持当前的充电功率不变。比如说,在第二时刻,第一外接设备200仍旧以12V/3A(即36W)的功率进行快速充电。
若用户选择“是”选项,电子设备100响应于“是”功能控件的用户操作,向第一外接设备200提供比5V/2A更高的充电功率(例如12V/3A)。因此,在第二时刻,第一外接设备200可以以12V/3A(即36W)的功率进行快速充电。在第二时刻之后,电子设备100可以实时调整向第一外接设备200传输的充电功率。比如说,在第三时刻,第一外接设备200可以以9V/2A(即18W)的功率进行快速充电。
情况三,在第一时刻之后,电子设备100检测到没有第二外接设备300通过第二Type-C接口向自己充电,可以弹窗显示“是否进行快充?”,以提示用户是否选择快充。若用户选择“是”选项,电子设备100响应于“是”功能控件的用户操作,向第一外接设备200提供比5V/2A更高的充电功率(例如12V/3A)。因此,在第二时刻,第一外接设备200可以以12V/3A(即36W)的功率进行快速充电。在第二时刻之后,电子设备100可以实时调整向第一外接设备200传输的充电功率。比如说,在第三时刻,第一外接设备200可以以9V/2A(即18W)的功率进行快速充电。在第二时刻或者第三时刻之后,电子设备100检测到第二外接设备300通过第二Type-C接口2012给自己进行充电,或者,电子设备100检测到第一外接设备200通过第一Type-C接口2011进行数据传输,则恢复到5V/2A的充电功率。因此,在第二时刻或者第三时刻之后的第四时刻,第一外接设备200恢复到以5V/2A的功率进行充电。
图12A-图12C所示为基于第二充电电路的双Type-C接口的充电场景的流程示意图,包括但不限于如下步骤,本申请为了方便描述,故通过S901-S922以下顺序进行描述,并不旨在限定一定通过上述顺序进行执行。本申请实施例对于上述一个或多个步骤的执行的先后顺序、执行的时间、执行的次数等不做限定。
从图7可以看出,电子设备通过控制单元可以控制开关切换电路切换到处理器端。这样,当有外接设备通过Type-C接口接入电子设备后,基于USB2.0协议可以确认自身为SDP端。在电子设备100处于开机状态和/或睡眠状态的情况下,控制单元默认控制第一开关切换电路2061和第二开关切换电路2062切到处理器端。
S901,第一外接设备200与电子设备100的功率传输模块建立连接。
具体的,第一外接设备200接入第一Type-C接口时,电子设备100中的功率传输模块202和第一外接设备200通过第一Type-C接口的CC pin握手,确认自身是Source设备,接入的第一外接设备200为Sink设备。
S902,功率传输模块向第一外接设备200发送第一消息。
具体地,作为Source设备的电子设备100,通过功率传输模块向作为Sink设备的第一外接设备200发送第一消息,第一消息包括电子设备100可提供5V/2A、9V/2A、12V/2A、15V/3A和20V/3.5A等中的一种或多种充电功率,以及会显示支持可编程电源(PPS)。需要说明的是,电子设备100提供的电压电流不限于本申请实施例所提供的,可以提供更多或更少的电压电流。
S903,第一外接设备200向功率传输模块请求5V/2A的充电功率。
S904,功率传输模块打开第一Type-C接口对应的第一开关。
具体地,从图7可知,功率传输模块可以控制第一Type-C接口对应的第一开关的导通或关断,第一开关与电源模块中的Buck电路电连接,从而通过第一开关可控制是否将Buck电路输出的5V电压输出至功率传输模块。
S905,电源模块输出5V/2A的充电功率。
具体的,电压模块中的Buck电路用于输出5V电压,在第一Type-C接口对应的第一开关处于导通时,电源模块通过功率传输模块内的与第一开关电连接的引脚将5V电压输出至第一Type-C接口的VBUS引脚处,从而向第一外接设备200提供5V/2A的充电功率。
由于在电子设备100处于开机状态和/或睡眠状态的情况下,电子设备通过控制单元可以控制开关切换电路切换到处理器端,因此,电子设备与外接设备建立连接后,基于USB2.0可以确认电子设备为SDP端,从而可以支持与外接设备进行数据传输的功能。
S906,控制单元判断第二Type-C接口是否处于给电子设备充电状态。
具体地,电子设备100具有两个及以上Type-C接口,第二外接设备接入第二Type-C接口2012时,电子设备100中的功率传输模块202和第二外接设备300通过第二Type-C接口2012的CC pin握手,判断自身是否是Source设备,接入的第二外接设备是否是Sink设备。
电子设备100若确定自身是Sinke设备,接入的第二外接设备是Sourc设备,则判断得到第二Type-C接口2012处于向电子设备100进行充电的状态,电子设备100则继续向外
接设备提供5V/2A的充电功率。
若判断得到第二Type-C接口2012没有处于向电子设备100进行充电的状态,则执行步骤S907。
S907,控制单元判断是否进行快充。
具体地,如图10所示,电子设备可弹窗显示“是否进行快充”,响应于对弹窗的用户操作,可确定进行快充或者不进行快充。
在得到不进行快充的消息后,电子设保持当前的输出功率,继续向外接设备提供5V/2A的充电功率。
在得到进行快充的消息后,执行步骤S908。
S908,控制单元控制第一开关切换电路切换到0R电阻。
具体地,电子设备的UI界面通过弹窗方式提示用户是否选择快充,若用户选择快充,控制单元控制第一Type-C接口对应的第一控制开关切换电路从处理器端切换到0R电阻端。从图6可以看出,切换到0R电阻段后,第一Type-C接口断开了与处理器的连接。若用户没有选择快充,则电子设备继续输出5V/2A的充电功率。
S909,第一外接设备与功率传输模块重新建立连接。
具体地,在功率传输模块通过断开第一Type-C接口对应的第一开关来停止OCP功能之后,第一外接设备和电子设备可以重新建立连接。比如说基于BC1.2通过Type-C接口,识别电子设备为DCP端。
S910,功率传输模块向控制单元发送第三消息。
具体地,电子设备基于BC1.2与第一外接设备建立连接后,第一外接设备向功率传输模块请求第一外接设备支持的最高档位的充电能力,功率传输模块通过I2C向控制单元发送第三消息,第三消息用于请求第一外接设备支持的最高档位的电压电流。
S911,控制单元向电源模块发送打开OTG功能的消息。
具体地,控制单元根据来自功率传输模块的要求配置电源模块中charger芯片的OTG电压电流,并打开OTG功能。
S912,电源模块打开OTG功能。
具体地,电源模块根据控制单元的配置打开OTG功能。
S913,控制单元向功率传输模块发送第四消息。
其中,第四消息用于表明OTG功能已配置完成。
S914,功率传输模块断开第一Type-C接口对应的第一开关,打开第一Type-C接口对应的第二开关。
具体地,功率传输模块接收到OTG功能已配置完成的消息后,打开第一Type-C接口对应的第二开关,并关闭第一Type-C接口对应的第一开关。
S915,电源模块输出第一外接设备支持的最高档位的电压电流。
具体地,在打开第一Type-C接口对应的第二开关后,电源模块可以通过charger芯片向第一外接设备输出它所请求的最高档位的电压电流。
S916,第一外接设备向功率传输模块发送第三请求。
具体地,第一外接设备可以向电子设备发送第三请求,例如get PPS state,第三请求用
于请求调节电压电流。
S917,功率传输模块向控制单元发送调节电压电流请求。
S918,控制单元调节电压电流。
具体地,控制单元根据功率传输模块的要求实时调整电源模块中charger芯片的OTG电压电流。
S919,电源模块向第一外接设备输出第三请求对应的电压电流。
在一些实施例中,第一外接设备与电子设备断开连接后,功率传输模块断开第二开关,并向控制单元发送断开第二开关的消息。控制单元控制第一开关切换电路切换到处理器端,等待下一次外接设备的接入。
在一些可能的实施方式中,在图12A所示的S910-S919之间的任一步骤后,还包括如图12B所示的S920-S926中的一个或多种步骤。
S920,第二外接设备与功率传输模块建立连接。
具体地,第二外接设备(例如充电器)通过第二Type-C接口接入电子设备,与功率传输模块建立连接。且识别第二外接设备为Source端,电子设备为Sink端,第二外接设备可向电子设备充电。
S921,功率传输模块向控制单元发送第五消息。
其中,第五消息用于告知控制单元有第二外接设备接入电子设备。
S922,控制单元向电源模块发送关闭OTG功能的消息。
S923,电源模块关闭OTG功能。
S924,控制单元控制第一开关切换电路切换到处理器端。
其中,第一开关切换电路与第一Type-C接口连接,在第一开关切换电路切换到处理器端后,第一Type-C接口可以通过第一开关切换电路与处理器连接。因此,恢复了电子设备的数据传输功能,第一外接设备可以与电子设备进行数据传输。
S925,控制单元断开第二开关,打开第一开关。
其中,断开二开关表明电源模块不能通过charger芯片向第一外接设备输出高功率,打开第一开关表明电源通过可以通过Buck电路向第一外接设备输出5V/2A的功率。
S926,电源模块向第一外接设备输出5V/2A的充电功率。
在一些可能的实施方式中,在图12A所示的S910-S919之间的任一步骤后,还包括图12C所示的S927-S931。
S927,第一外接设备向处理器发送第六消息。
具体地,第一外接设备可以在电子设备的UI界面上选择恢复数据传输功能,从而向处理器发送恢复数据传输功能的第六消息。
S928,处理器向控制单元发送第六消息。
其中,第六消息用于通知控制单元第一外接设备要切回SDP端。
S929,控制单元控制第一开关切换电路切换到处理器端。
其中,第一开关切换电路与第一Type-C接口连接,在第一开关切换电路切换到处理器
端后,第一Type-C接口可以通过第一开关切换电路与处理器连接。因此,恢复了电子设备的数据传输功能,第一外接设备可以与电子设备进行数据传输。
S930,控制单元断开第二开关,打开第一开关。
其中,断开二开关表明电源模块不能通过charger芯片向第一外接设备输出高功率,打开第一开关表明电源通过可以通过Buck电路向第一外接设备输出5V/2A的功率。
S931,电源模块向第一外接设备输出5V/2A的充电功率。
图13A-图13C所示为另一种基于第二充电电路的双Type-C接口的充电场景的流程示意图,包括但不限于如下步骤,本申请为了方便描述,故通过S1001-S1017以下顺序进行描述,并不旨在限定一定通过上述顺序进行执行。本申请实施例对于上述一个或多个步骤的执行的先后顺序、执行的时间、执行的次数等不做限定。
从图7可以看出,电子设备通过控制单元可以控制开关切换电路切换到0R短接。这样,当有外接设备通过Type-C接口接入电子设备后,基于USB2.0协议可以确认自身为DCP端。在电子设备100处于关机的情况下,控制单元默认控制第一开关切换电路2061和第二开关切换电路2062切到0R短接。
S1001,第一外接设备200与电子设备100的功率传输模块建立连接。
具体的,第一外接设备200接入第一Type-C接口时,电子设备100中的功率传输模块202和第一外接设备200通过第一Type-C接口的CC pin握手,确认自身是Source设备,接入的第一外接设备200为Sink设备。
S1002,功率传输模块向第一外接设备200发送第一消息。
具体地,作为Source设备的电子设备100,通过功率传输模块向作为Sink设备的第一外接设备200发送第一消息,第一消息包括电子设备100可提供5V/2A、9V/2A、12V/2A、15V/3A和20V/3.5A等中的一种或多种充电功率,以及会显示支持可编程电源(PPS)。需要说明的是,电子设备100提供的电压电流不限于本申请实施例所提供的,可以提供更多或更少的电压电流。
S1003,第一外接设备200向功率传输模块请求5V/2A的充电功率。
S1004,功率传输模块打开第一Type-C接口对应的第一开关。
具体地,从图7可知,功率传输模块可以控制第一Type-C接口对应的第一开关的导通或关断,第一开关与电源模块中的Buck电路电连接,从而通过第一开关可控制是否将Buck电路输出的5V电压输出至功率传输模块。
S1005,电源模块输出5V/2A的充电功率。
具体的,电压模块中的Buck电路用于输出5V电压,在第一Type-C接口对应的第一开关处于导通时,电源模块通过功率传输模块内的与第一开关电连接的引脚将5V电压输出至第一Type-C接口的VBUS引脚处,从而向第一外接设备200提供5V/2A的充电功率。
由于在电子设备100处于关机的情况下,电子设备通过控制单元可以控制开关切换电路切换到处理器端,因此,电子设备与外接设备建立连接后,基于USB2.0可以确认电子设备为DCP端,可以进行电压调节或者PPS调节。
S1006,控制单元判断第二Type-C接口是否处于给电子设备充电状态。
具体地,电子设备100具有两个及以上Type-C接口,第二外接设备接入第二Type-C接口2012时,电子设备100中的功率传输模块202和第二外接设备300通过第二Type-C接口2012的CC pin握手,判断自身是否是Source设备,接入的第二外接设备是否是Sink设备。
电子设备100若确定自身是Sink设备,接入的第二外接设备是Source设备,则判断得到第二Type-C接口2012处于向电子设备100进行充电的状态,电子设备100则继续向外接设备提供5V/2A的充电功率。
若判断得到第二Type-C接口2012没有处于向电子设备100进行充电的状态,则执行步骤S1007。
S1007,第一外接设备向功率传输模块发送第三消息。
其中,第三消息用于向电子设备请求自身支持的最高档位的电压电流,比如说12V/2A。
S1008,功率传输模块向控制单元发送第三消息。
具体地,功率传输模块通过I2C向控制单元发送第三消息,第四消息用于请求控制单元配置第一外接设备支持的最高档位的电压电流。
S1009,控制单元向电源模块发送打开OTG功能的消息。
具体地,控制单元根据来自功率传输模块的要求配置电源模块中charger芯片的OTG电压电流,并打开OTG功能。
S1010,电源模块打开OTG功能。
具体地,电源模块根据控制单元的配置打开OTG功能。
S1011,控制单元向功率传输模块发送第四消息。
其中,第四消息用于表明OTG功能已配置完成。
S1012,功率传输模块断开第一Type-C接口对应的第一开关,打开第一Type-C接口对应的第二开关。
具体地,功率传输模块接收到OTG功能已配置完成的消息后,打开第一Type-C接口对应的第二开关,并关闭第一Type-C接口对应的第一开关。
S1013,电源模块输出第一外接设备支持的最高档位的电压电流。
具体地,在打开第一Type-C接口对应的第二开关后,电源模块可以通过charger芯片向第一外接设备输出它所请求的最高档位的电压电流。
S1014,第一外接设备向功率传输模块发送第三请求。
具体地,第一外接设备可以向电子设备发送第三请求,例如get PPS state,第三请求用于请求调节电压电流。
S1015,功率传输模块向控制单元发送调节电压电流请求。
S1016,控制单元调节电压电流。
具体地,控制单元根据功率传输模块的要求实施调整电源模块中charger芯片的OTG电压电流。
S1017,电源模块向第一外接设备输出第三请求对应的电压电流。
在一些实施例中,第一外接设备与电子设备断开连接后,功率传输模块断开第二开关,并向控制单元发送断开第二开关的消息。控制单元控制第一开关切换电路切换到处理器端,
等待下一次外接设备的接入。
在一些可能的实施方式中,在图13A所示的S1007-S1017之间的任一步骤后,还包括如图13B所示的S1018-S1023中的一个或多种步骤。
S1018,第二外接设备与功率传输模块建立连接。
具体地,第二外接设备(例如充电器)通过第二Type-C接口接入电子设备,与功率传输模块建立连接。且识别第二外接设备为Source端,电子设备为Sink端,第二外接设备可向电子设备充电。
S1019,功率传输模块向控制单元发送第五消息。
其中,第五消息用于告知控制单元有第二外接设备接入电子设备。
S1020,控制单元向电源模块发送关闭OTG功能的消息。
S1021,电源模块关闭OTG功能。
S1022,控制单元断开第一Type-C接口对应的第二开关,打开第一Type-C接口对应的第一开关。
其中,断开第二开关表明电源模块不能通过charger芯片向第一外接设备输出高功率,打开第一开关表明电源通过可以通过Buck电路向第一外接设备输出5V/2A的功率。
S1023,电源模块向第一外接设备输出5V/2A的充电功率。
在一些可能的实施方式中,在图13A所示的S1007-S1017之间的任一步骤后,还包括图13C所示的S1024-S1030。
S1024,控制单元检测到电子设备处于开机状态。
具体地,电子设备响应于开机键的用户操作,检测单元可以检测到电子设备处于开机状态。
S1025,控制单元向电源模块发送关闭OTG功能的消息。
S1026,电源模块关闭OTG功能。
S1027,控制单元断开第一Type-C接口对应的第二开关。
S1028,控制单元配置开关切换电路切到处理器端。
具体地,控制单元配置第一开关切换电路切到处理器端,配置第二开关电路切到处理器端。
S1029,控制单元打开第一Type-C接口对应的第一开关。
S1030,电源模块向第一外接设备输出5V/2A的充电功率。
由于第一Type-C接口通过第一开关切换电路可以与处理器连接,所以在电子设备开机后,第一外接设备通过第一Type-C接口可以与电子设备进行数据通信。同理,连接在第二Type-C接口的第二外接设备通过第二开关切换电路可以与电子设备进行数据通信。
请参见图14,图14是本申请实施例提供的一种充电方法的流程示意图,应用于电子设备,例如图1、图2或图7所示的电子设备100,该方法包括但不限于如下步骤:
S1401,电子设备通过第一USB接口向第一外接设备发送第一消息。
具体地,详细描述可参考图4所示的S401-S402,或者图6的S501-S502,或者图9所示的S701-S702,或者图10所示的S801-S802,或者图12A所示的S901-S902,或者图13A所示的S1001-S1002。
S1402,电子设备接收来自第一外接设备的第一规格的充电功率的请求。
具体地,详细描述可参考图4所示的S403,或者图6的S503,或者图9所示的S703,或者图10所示的S803,或者图12A所示的S903,或者图13A所示的S1003。
S1403,电子设备通过第一USB接口向第一外接设备输出第一规格的充电功率。
详细描述可参考图4所示的S404-S405,或者图6的S504-S505,或者图9所示的S704-S705,或者图10所示的S804-S805,或者图12A所示的S904-S905,或者图13A所示的S1004-S1005。
S1404,电子设备接收来自第一外接设备的第二规格的充电功率的请求。
具体地,详细描述可参考图4所示的S406,或者图6所示的S506。
在一种可能的实施方式中,电子设备还包括开关切换电路和处理器,开关切换电路与一个或多个USB接口对应,开关切换电路连接处理器和短接0欧姆电阻。详细描述可参考图7。
在一种实现中,开关切换电路用于连接第一USB接口和处理器,电子设备通过第一USB接口向第一外接设备输出第一规格的充电功率之后,电子设备接收来自第一外接设备的第二规格的充电功率的请求之前,电子设备还可以接收来自第一外接设备的快充请求;响应快充请求,控制开关切换电路从连接处理器切换到连接0欧姆电阻;通过第一USB接口与第一外接设备进行协议交互,确定电子设备为专用充电端口DCP端。详细描述可参考图9所示的S706-S709,或者图12A所示的S907-S911。
在一种实现中,电子设备通过一个或多个USB接口中的第二USB接口连接第二外接设备,在确定位于第二USB接口处的第二外接设备没有向电子设备充电的情况下,接收来自第一外接设备的快充请求。详细描述可参考图12A所示的S906-S907,或者图13A所示的S1006-S1007。
在一种可能的实施方式中,在开关切换电路连接第一USB接口和0欧姆电阻的情况下,电子设备为DCP端。详细描述可参考图10所示的S806-S807,或者图13A所示的S1007-S1008。
S1405,电子设备通过第一USB接口向第一外接设备输出第二规格的充电功率。
在一种可能的实现中,电子设备包括功率传输模块、控制单元和电源模块中的一种或多种,通过控制单元打开电源模块的活动式OTG功能;通过功率传输模块打开电源模块的第二开关,其中,第二开关用于连接第一USB接口和电源模块中的charger芯片,电源模块中的charger芯片用于提供第二规格的充电功率;基于OTG功能和处于导通状态的第二开关通过第一USB接口向第一外接设备输出第二规格的充电功率。
在一种可能的实施方式中,在确定电子设备的系统不处于工作状态和/或电子设备的电池电量大于或等于预设阈值的情况下,电子设备通过第一USB接口向第一外接设备输出第二规格的充电功率。详细描述可参考图4所示的S407-S413。
在一种可能的实现中,电子设备通过一个或多个USB接口中的第二USB接口连接第二
外接设备,在确定位于第二USB接口处的第二外接设备没有向电子设备充电的情况下,在确定电子设备的系统不处于工作状态和/或电子设备的电池电量大于或等于预设阈值的情况下,通过第一USB接口向第一外接设备输出第二规格的充电功率。详细描述可参考图6所示的S507-S518。
在一种可能的实施方式中,开关切换电路用于连接第一USB接口和处理器,电子设备通过一个或多个USB接口中的第二USB接口连接第二外接设备,通过第一USB接口向第一外接设备输出第二规格的充电功率。详细描述可参考图9所示的S710-S715。
在一种可能的实施方式中,在开关切换电路连接第一USB接口和0欧姆电阻的情况下,电子设备为DCP端,通过第一USB接口向第一外接设备输出第二规格的充电功率。详细描述可参考图10所示的S807-S812。
在一种可能的实施方式中,开关切换电路用于连接第一USB接口和处理器,电子设备通过一个或多个USB接口中的第二USB接口连接第二外接设备,在确定位于第二USB接口处的第二外接设备没有向电子设备充电的情况下,通过第一USB接口向第一外接设备输出第二规格的充电功率。详细描述可参考图12A所示的S912-S917。在一种可能的实施方式中,在开关切换电路连接第一USB接口和0欧姆电阻的情况下,电子设备为DCP端,电子设备通过一个或多个USB接口中的第二USB接口连接第二外接设备,在确定位于第二USB接口处的第二外接设备没有向电子设备充电的情况下,通过第一USB接口向第一外接设备输出第二规格的充电功率。详细描述可参考图13A所示的S1008-S1013。
在一种可能的实施方式中通过第一USB接口向第一外接设备输出第二规格的充电功率之后,电子设备接收来自电子设备的第三规格的充电功率的请求;根据第三规格的充电功率的请求调整电压电流,输出第三规格的充电功率的请求对应的电压电流。详细描述可参考图9所示的S716-S719,或者图10的S813-S816,或者图12A所示的S918-S921,或者图13A所示的S1014-S1017。
本申请的说明书和权利要求书及附图中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在终端设备上经过解析,渲染,最终呈现为用户可以识别的内容,比如图片、文字、按钮等控件。控件(control)也称为部件(widget),是用户界面的基本元素,典型的控件有工具栏(toolbar)、菜单栏(menu bar)、文本框(text box)、按钮(button)、滚动条(scrollbar)、图片和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,HTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网
页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如HTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
应理解,本申请提供的上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
本申请还提供一种电子设备,该电子设备可以包括:存储器和处理器。其中,存储器可用于存储计算机程序;处理器可用于调用所述存储器中的计算机程序,以使得该电子设备执行上述任意一个实施例中的方法。
本申请还提供了一种芯片系统,所述芯片系统包括至少一个处理器,用于实现上述任意一个实施例中电子设备执行的方法中所涉及的功能。
在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存程序指令和数据,存储器位于处理器之内或处理器之外。
该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。
示例性地,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。
本申请还提供一种计算机程序产品,所述计算机程序产品包括:计算机程序(也可以称为代码,或指令),当所述计算机程序被运行时,使得计算机执行上述任一个实施例中电子设备执行的方法。
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序(也可以称为代码,或指令)。当所述计算机程序被运行时,使得计算机执行上述任一个实
施例中电子设备执行的方法。
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (16)
- 一种充电方法,其特征在于,应用于电子设备,所述电子设备包括一个或多个通用串行总线USB接口,所述电子设备通过所述一个或多个USB接口中的第一USB接口连接第一外接设备,所述方法包括:通过所述第一USB接口向所述第一外接设备发送第一消息,其中,所述第一消息包括所述电子设备支持向所述第一外接设备输出的充电功率;接收来自所述第一外接设备的第一规格的充电功率的请求,其中,所述第一规格的充电功率属于所述电子设备支持向所述第一外接设备输出的充电功率;通过所述第一USB接口向所述第一外接设备输出所述第一规格的充电功率;接收来自所述第一外接设备的第二规格的充电功率的请求,其中,所述第二规格的充电功率包括所述第一外接设备可以接收的最高充电档位的充电功率,所述第二规格的充电功率属于所述电子设备支持向所述第一外接设备输出的充电功率,所述第二规格的充电功率大于所述第一规格的充电功率;通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
- 根据权利要求1所述的方法,其特征在于,所述电子设备还包括开关切换电路和处理器,所述开关切换电路与所述一个或多个USB接口对应,所述开关切换电路连接所述处理器和短接0欧姆电阻。
- 根据权利要求1所述的方法,其特征在于,所述通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率,包括:在确定所述电子设备的系统不处于工作状态和/或所述电子设备的电池电量大于或等于预设阈值的情况下,通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
- 根据权利要求2或3所述的方法,其特征在于,所述电子设备通过所述一个或多个USB接口中的第二USB接口连接第二外接设备,所述通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率,包括:在确定位于所述第二USB接口处的所述第二外接设备没有向所述电子设备充电的情况下,通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
- 根据权利要求2所述的方法,其特征在于,所述开关切换电路用于连接所述第一USB接口和所述处理器,所述通过所述第一USB接口向所述第一外接设备输出所述第一规格的充电功率之后,所述接收来自所述第一外接设备的第二规格的充电功率的请求之前,还包括:接收来自所述第一外接设备的快充请求;响应所述快充请求,控制所述开关切换电路从连接所述处理器切换到连接所述0欧姆 电阻;通过所述第一USB接口与所述第一外接设备进行协议交互,确定所述电子设备为专用充电端口DCP端。
- 根据权利要求5所述的方法,其特征在于,所述电子设备通过所述一个或多个USB接口中的第二USB接口连接第二外接设备,所述接收来自所述第一外接设备的快充请求,包括:在确定位于所述第二USB接口处的所述第二外接设备没有向所述电子设备充电的情况下,接收来自所述第一外接设备的快充请求。
- 根据权利要求2所述的方法,其特征在于,在所述开关切换电路连接所述第一USB接口和所述0欧姆电阻的情况下,所述电子设备为DCP端。
- 根据权利要求7所述的方法,其特征在于,所述电子设备通过所述一个或多个USB接口中的第二USB接口连接第二外接设备,所述通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率,包括:在确定位于所述第二USB接口处的所述第二外接设备没有向所述电子设备充电的情况下,通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
- 根据权利要求2所述的方法,其特征在于,所述通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率之后,还包括:接收来自所述第一外接设备的第三规格的充电功率的请求;根据所述第三规格的充电功率的请求调整电压电流,输出所述第三规格的充电功率的请求对应的电压电流。
- 根据权利要求1或2所述的方法,其特征在于,所述电子设备包括功率传输模块、控制单元和电源模块中的一种或多种,所述通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率,包括:通过所述控制单元打开所述电源模块的活动式OTG功能;通过所述功率传输模块打开所述电源模块的第二开关,其中,所述第二开关用于连接所述第一USB接口和所述电源模块中的charger芯片,所述电源模块中的charger芯片用于提供所述第二规格的充电功率;基于所述OTG功能和处于导通状态的所述第二开关通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
- 一种电子设备,其特征在于,包括一个或多个USB接口、功率传输模块、控制单元、电源模块中的一种或多种,其中,所述电子设备通过所述一个或多个USB接口中的第一USB接口连接第一外接设备,所述功率传输模块,用于通过所述第一USB接口向所述第一外接设备发送第一消息,其中,所述第一消息包括所述电子设备支持向所述第一外接设备输出的充电功率;所述功率传输模块,用于通过所述第一USB接口接收来自所述第一外接设备的第一规格的充电功率的请求,其中,所述第一规格的充电功率属于所述电子设备支持向所述第一外接设备输出的充电功率;所述控制单元,用于控制所述电源模块输出第一规格的充电功率;所述功率传输模块,用于通过所述第一USB接口向所述第一外接设备输出所述第一规格的充电功率;所述功率传输模块,还用于通过所述第一USB接口接收来自所述第一外接设备的第二规格的充电功率的请求,其中,所述第二规格的充电功率包括所述第一外接设备可以接收的最高充电档位的充电功率,所述第二规格的充电功率属于所述电子设备支持向所述第一外接设备输出的充电功率,所述第二规格的充电功率大于所述第一规格的充电功率;所述控制单元,用于控制说是电源模块输出第二规格的充电功率;所述功率传输模块,用于通过所述第一USB接口向所述第一外接设备输出所述第二规格的充电功率。
- 根据权利要求11所述的电子设备,其特征在于,所述电子设备还包括开关切换电路和处理器,所述开关切换电路与所述一个或多个USB接口对应,所述开关切换电路连接所述处理器和短接0欧姆电阻。
- 一种电子设备,其特征在于,所述电子设备包括:一个或多个USB接口,一个或多个处理器;存储器;其中,所述USB接口用于与设备建立连接,所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如权利要求1至10中任一项所述的方法。
- 一种芯片系统,其特征在于,所述芯片系统应用于电子设备,所述芯片系统包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如权利要求1至10中任一项所述的方法。
- 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1至10中任一项所述的方法。
- 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1至10中任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311532706.8A CN117254568B (zh) | 2023-11-17 | 2023-11-17 | 充电方法、电子设备及相关装置 |
| CN202311532706.8 | 2023-11-17 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025102798A1 true WO2025102798A1 (zh) | 2025-05-22 |
Family
ID=89129816
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/106253 Pending WO2025102798A1 (zh) | 2023-11-17 | 2024-07-18 | 充电方法、电子设备及相关装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (2) | CN117254568B (zh) |
| WO (1) | WO2025102798A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117254568B (zh) * | 2023-11-17 | 2024-04-19 | 荣耀终端有限公司 | 充电方法、电子设备及相关装置 |
| CN117498508B (zh) * | 2023-12-29 | 2024-09-24 | 深圳市卓芯微科技有限公司 | 移动设备的快充方法、装置、电子设备以及存储介质 |
| CN120767956A (zh) * | 2024-06-21 | 2025-10-10 | 荣耀终端股份有限公司 | 电子设备及充电方法 |
| CN121485235A (zh) * | 2024-08-02 | 2026-02-06 | 华为技术有限公司 | 一种电子设备和反向充电方法 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20150077884A (ko) * | 2013-12-30 | 2015-07-08 | 주식회사 대동 | 멀티 프로토콜 및 멀티 밴드 안테나를 이용한 무선충전 시스템 및 그 방법 |
| CN112928787A (zh) * | 2019-12-06 | 2021-06-08 | 北京小米移动软件有限公司 | 充电电路、电子设备、充电控制方法及装置 |
| CN116707055A (zh) * | 2022-12-27 | 2023-09-05 | 荣耀终端有限公司 | 充电电路、电子设备及反向充电方法 |
| CN116914878A (zh) * | 2023-02-23 | 2023-10-20 | 荣耀终端有限公司 | 一种电子设备及充电方法 |
| CN117254568A (zh) * | 2023-11-17 | 2023-12-19 | 荣耀终端有限公司 | 充电方法、电子设备及相关装置 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10326298B2 (en) * | 2015-03-10 | 2019-06-18 | Samsung Electronics Co., Ltd. | Method and apparatus for wireless charging |
| CN112918288A (zh) * | 2021-04-16 | 2021-06-08 | 阳光电源股份有限公司 | 一种集成充电模块和充电桩及其控制方法 |
| CN115514030A (zh) * | 2021-06-07 | 2022-12-23 | 北京小米移动软件有限公司 | 充电控制方法、充电控制装置及存储介质 |
| CN115473292A (zh) * | 2021-06-10 | 2022-12-13 | 北京小米移动软件有限公司 | 充电控制方法及装置、终端及存储介质 |
| CN114825548A (zh) * | 2022-05-06 | 2022-07-29 | 长春捷翼汽车零部件有限公司 | 一种充电装置、充电方法以及相应车辆 |
-
2023
- 2023-11-17 CN CN202311532706.8A patent/CN117254568B/zh active Active
- 2023-11-17 CN CN202410407875.7A patent/CN120073924A/zh active Pending
-
2024
- 2024-07-18 WO PCT/CN2024/106253 patent/WO2025102798A1/zh active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20150077884A (ko) * | 2013-12-30 | 2015-07-08 | 주식회사 대동 | 멀티 프로토콜 및 멀티 밴드 안테나를 이용한 무선충전 시스템 및 그 방법 |
| CN112928787A (zh) * | 2019-12-06 | 2021-06-08 | 北京小米移动软件有限公司 | 充电电路、电子设备、充电控制方法及装置 |
| CN116707055A (zh) * | 2022-12-27 | 2023-09-05 | 荣耀终端有限公司 | 充电电路、电子设备及反向充电方法 |
| CN116914878A (zh) * | 2023-02-23 | 2023-10-20 | 荣耀终端有限公司 | 一种电子设备及充电方法 |
| CN117254568A (zh) * | 2023-11-17 | 2023-12-19 | 荣耀终端有限公司 | 充电方法、电子设备及相关装置 |
Non-Patent Citations (1)
| Title |
|---|
| GULATI, A. ET AL.: "USB-C adapters and chargers", INFINEON - CONSUMER ELECTRONICS / ADAPTERS AND CHARGERS / USB-C ADAPTERS AND CHARGERS, pages 1 - 21, XP009563759, Retrieved from the Internet <URL:https://www.infineon.com/cms/cn/applications/consumer-electronics/adapters-and-chargers/pd-mobile-adapter-charger/?redirId=246183&ic=0510038#!documents> * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN120073924A (zh) | 2025-05-30 |
| CN117254568A (zh) | 2023-12-19 |
| CN117254568B (zh) | 2024-04-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN117254568B (zh) | 充电方法、电子设备及相关装置 | |
| CN209118258U (zh) | 一种无线传屏器 | |
| US10311000B2 (en) | Integrated universal serial bus (USB) type-C switching | |
| US10417155B2 (en) | Super hub system and the method thereof | |
| KR102215085B1 (ko) | 충전 기기 및 그 동작 방법 | |
| TWI609543B (zh) | 集線器 | |
| CN110879792B (zh) | 电子设备及其接口控制方法 | |
| KR102288067B1 (ko) | 데이터 전송 속도를 개선시키는 방법 및 이를 구현한 전자장치 | |
| US20130290746A1 (en) | System, apparatus, and method of performing charging operation in host mode | |
| US8941361B2 (en) | Computer system and control method thereof | |
| US20130009864A1 (en) | Method and apparatus for interfacing between external device and mobile device | |
| US12572190B2 (en) | Electronic device, device identification method, and charging system | |
| JP2016015005A (ja) | ポータブル・デバイス、ケーブル・アセンブリおよびusbシステム | |
| WO2018032503A1 (zh) | 一种电源适配器、终端设备、充电系统及充电方法 | |
| WO2024022195A1 (zh) | 电子设备、快充方法、装置、系统及可读存储介质 | |
| WO2022095606A1 (zh) | 信息读取方法、设备、线缆、充电系统及计算机存储介质 | |
| CN108595354A (zh) | 一种无芯笔记本电脑及笔记本电脑 | |
| CN108459666A (zh) | 一种无芯平板电脑和平板电脑 | |
| CN205015885U (zh) | 切换电路及电子装置 | |
| CN105281395B (zh) | 一种充电检测电路、移动终端及充电检测系统 | |
| CN118939589A (zh) | 显卡切换方法及相关设备 | |
| CN117318201A (zh) | 充电电路、电子设备及反向充电方法 | |
| WO2025201268A1 (zh) | 一种设备识别方法、系统和装置 | |
| CN115422112A (zh) | 一种Type-c电路及计算机设备 | |
| CN117134009A (zh) | 充电方法及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24890164 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2024890164 Country of ref document: EP |