CN118152315A - Electronic equipment and charging system - Google Patents

Electronic equipment and charging system Download PDF

Info

Publication number
CN118152315A
CN118152315A CN202211559822.4A CN202211559822A CN118152315A CN 118152315 A CN118152315 A CN 118152315A CN 202211559822 A CN202211559822 A CN 202211559822A CN 118152315 A CN118152315 A CN 118152315A
Authority
CN
China
Prior art keywords
switch
pin
protocol module
charging
pair
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
Application number
CN202211559822.4A
Other languages
Chinese (zh)
Inventor
何小祥
郑连生
王超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202211559822.4A priority Critical patent/CN118152315A/en
Priority to PCT/CN2023/135470 priority patent/WO2024120297A1/en
Publication of CN118152315A publication Critical patent/CN118152315A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The utility model provides an electronic equipment and charging system relates to electron and communication technology field, can avoid the mutual influence between transmission data and the charging agreement between the electronic equipment. An electronic device, comprising: the USB interface comprises a first pin pair and a second pin pair, wherein the first pin pair and the second pin pair at least comprise two pins; the USB protocol module is connected with a first pin pair of the USB interface; the charging protocol module is connected with a switch circuit, and the switch circuit is also connected with the first pin pair and the second pin pair.

Description

Electronic equipment and charging system
Technical Field
The embodiment of the application relates to the technical field of electronics and communication, in particular to electronic equipment and a charging system.
Background
Typically, both data transfer and negotiation of a charging protocol can be performed between two electronic devices connected by a universal serial bus (universal serial bus, USB) cable. For example, when the mobile phone is connected with the notebook computer through the USB cable, data transmission can be performed between the notebook computer and the mobile phone through a D+/D-transmission line in the USB cable, and meanwhile, charging control signals of a charging protocol are transmitted. Thus, when the negotiation of data transmission and charging protocols between electronic devices is performed simultaneously through the D+/D-transmission line, the two devices will have mutual influence.
Disclosure of Invention
The application provides electronic equipment and a charging system, which can avoid the mutual influence between transmission data and a charging protocol between the electronic equipment.
In a first aspect, an electronic device is provided. The electronic device includes: the USB interface comprises a first pin pair and a second pin pair, and the first pin pair and the second pin pair at least comprise two pins. The USB protocol module is connected with the first pin pair; the charging protocol module is connected with the switch circuit, and the switch circuit is also connected with the first pin pair and the second pin pair; the USB interface is used for connecting other electronic equipment through a USB cable. Based on the above structure, in one aspect, the switching circuit is configured to conduct the charging protocol module with the first pin pair and disconnect the charging protocol module with the second pin pair; the charging protocol module is configured to transmit a charging control signal with other electronic devices through the first pair of pins. Or in another scheme, the switching circuit is configured to conduct the charging protocol module with the second pair of pins and disconnect the charging protocol module from the first pair of pins; the charging protocol module is configured to transmit a charging control signal to other electronic equipment through the second pin pair; the USB protocol module is configured to communicate data with other electronic devices over the first pair of pins.
Thus, in some cases, when the USB protocol module has no data transmission, the switch circuit conducts the charging protocol module with the first pin pair ①, disconnects the charging protocol module from the second pin pair ②, and the charging protocol module may transmit a charging control signal with other electronic devices through the first pin pair ①; when the USB protocol module has data transmission, the switch circuit conducts the charging protocol module with the second pin pair ②; disconnecting the charging protocol module from the first pin pair ①, and transmitting a charging control signal with other electronic devices through the second pin pair ② by the charging protocol module; the USB protocol module transmits data to other electronic devices through the first pin pair ①; in this way, the data and the charging control signal are transmitted on different pin pairs of the USB interface, and in addition, since the first pin pair ① and the second pin pair ② can both provide two pins, the mutual influence between the two pins is avoided when the electronic device based on the two-wire transmission of the charging control signal performs the negotiation of the data transmission and the charging protocol through the d+ pin/D-pin.
In some possible implementations, the USB protocol module is further connected to the first pin pair through a switching circuit; a switching circuit configured to conduct the charging protocol module with the first pin pair; a switching circuit configured to turn on the USB protocol module with the second pin pair; in this way, the charging protocol module can transmit charging control signals to other electronic devices through the first pin pair, and the USB protocol module can transmit data to other electronic devices through the second pin pair; the mutual influence between the data transmission and the charging protocol can be avoided when the negotiation of the data transmission and the charging protocol is carried out through the D+ pin/the D-pin. Or a switching circuit configured to conduct the charging protocol module with the second pin pair; a switching circuit configured to turn on the USB protocol module with the first pin pair; in this way, the charging protocol module can transmit charging control signals to other electronic devices through the second pin pair, and the USB protocol module can transmit data to other electronic devices through the first pin pair; the mutual influence between the data transmission and the charging protocol can be avoided when the negotiation of the data transmission and the charging protocol is carried out through the D+ pin/the D-pin. Or a switching circuit configured to conduct the charging protocol module with the first pin pair; the switching circuit is configured to conduct or disconnect the USB protocol module from the first pin pair when the charging protocol module is configured to transmit a charging control signal with other electronic equipment through the first pin pair; thus, when the USB protocol module has no data transmission, the switch circuit conducts the charging protocol module with the first pin pair ①, and the charging protocol module can transmit a charging control signal with other electronic devices through the first pin pair ①; because the USB protocol module has no data transmission, the switching circuit may keep the USB protocol module and the first pin pair ① on, or may disconnect the USB protocol module from the first pin pair ① in order to avoid the charging protocol module from reversing the charging control signal back to the USB protocol module through the first pin pair ①.
In some possible implementations, the electronic device further includes a main control module, the main control module being connected to the switching circuit; and the main control module is configured to send first control information to the switch circuit when the data transmission is determined, wherein the first control information is used for controlling the switch circuit to conduct the charging protocol module with the second pin pair and disconnect the charging protocol module from the first pin pair. The main control module is generally configured to transmit data through the USB protocol module or to transmit a charging control signal through the charging protocol module, and thus, in an embodiment of the present application, when the main control module is configured to determine that there is a data transmission, the main control module sends first control information to the switch circuit to control the switch circuit to turn on the charging protocol module to the second pin pair ② and to turn off the charging protocol module to the first pin pair ①.
In some possible implementations, the device further comprises a main control module, wherein the main control module is connected with the switch circuit; the main control module is configured to send first control information to the switch circuit when data transmission is determined, wherein the first control information is used for controlling the switch circuit to conduct the charging protocol module with the second pin pair and conduct the USB protocol module with the first pin pair; or the first control information is used for controlling the switch circuit to conduct the charging protocol module with the first pin pair and conduct the USB protocol module with the second pin pair. The main control module is generally configured to transmit data through the USB protocol module or transmit a charging control signal through the charging protocol module, and thus, in an embodiment of the present application, when the main control module is configured to determine that there is data transmission, send first control information to the switch circuit to control the switch circuit to conduct the charging protocol module with the second pin pair ② and conduct the USB protocol module with the first pin pair ①; or the charging protocol module is conducted with the first pin ① pair by the control switch circuit, and the USB protocol module is conducted with the second pin pair ②.
In some possible implementations, the first pin pair includes a first pin and a second pin; the second pin pair comprises a third pin and a fourth pin; the switching circuit includes: a first switch, a second switch, a third switch, a fourth switch, and a switch controller; the control end of the first switch is connected with the switch controller, the first end of the first switch is connected with the first output end of the charging protocol module, and the second end of the first switch is connected with the first pin; the control end of the second switch is connected with the switch controller, the first end of the second switch is connected with the second output end of the charging protocol module, and the second end of the second switch is connected with the second pin; the control end of the third switch is connected with the switch controller, the first end of the third switch is connected with the first output end of the charging protocol module, and the second end of the third switch is connected with the third pin; the control end of the fourth switch is connected with the switch controller, the first end of the fourth switch is connected with the second output end of the charging protocol module, and the second end of the fourth switch is connected with the fourth pin. Thus, the switch controller can control the first switch and the second switch to be turned on, and the third switch and the fourth switch to be turned off, so as to realize that the charging protocol module is turned on with the first pin pair ①; or the first switch and the second switch are turned off according to the first control signal, and the third switch and the fourth switch are turned on, so that the charging protocol module and the second pin pair ② are turned on.
In some possible implementations, the first pin pair includes a first pin and a second pin; the second pin pair comprises a third pin and a fourth pin; the switching circuit includes: a first switch, a second switch, a third switch, a fourth switch, a fifth switch, a sixth switch, and a switch controller; the control end of the first switch is connected with the switch controller, the first end of the first switch is connected with the first output end of the USB protocol module, and the second end of the first switch is connected with the first pin; the control end of the second switch is connected with the switch controller, the first end of the second switch is connected with the second output end of the USB protocol module, and the second end of the second switch is connected with the second pin; the control end of the third switch is connected with the switch controller, the first end of the third switch is connected with the first output end of the charging protocol module, and the second end of the third switch is connected with the first pin; the control end of the fourth switch is connected with the switch controller, the first end of the fourth switch is connected with the second output end of the charging protocol module, and the second end of the fourth switch is connected with the second pin; the control end of the fifth switch is connected with the switch controller, the first end of the fifth switch is connected with the first output end of the charging protocol module, and the second end of the fifth switch is connected with the third pin; the control end of the sixth switch is connected with the switch controller, the first end of the sixth switch is connected with the second output end of the charging protocol module, and the second end of the sixth switch is connected with the fourth pin. Thus, the switch controller may turn on the first switch and the second switch, turn off the third switch and the fourth switch, and turn on the fifth switch and the sixth switch according to the first control signal, so as to turn on the charging protocol module and the second pin pair ②, and turn on the USB protocol module and the first pin pair ①. Or the switch controller may turn off the first switch and the second switch according to the first control signal, turn on the third switch and the fourth switch, and turn off the fifth switch and the sixth switch, so as to turn on the charging protocol module and the first pin pair ①.
In some possible implementations, the first pin pair includes a first pin and a second pin; the second pin pair comprises a third pin and a fourth pin; the switching circuit includes: a first switch, a second switch, a third switch, a fourth switch, a fifth switch, a sixth switch, a seventh switch, an eighth switch, and a switch controller; the control end of the first switch is connected with the switch controller, the first end of the first switch is connected with the first output end of the USB protocol module, and the second end of the first switch is connected with the first pin; the control end of the second switch is connected with the switch controller, the first end of the second switch is connected with the second output end of the USB protocol module, and the second end of the second switch is connected with the second pin; the control end of the third switch is connected with the switch controller, the first end of the third switch is connected with the first output end of the charging protocol module, and the second end of the third switch is connected with the first pin; the control end of the fourth switch is connected with the switch controller, the first end of the fourth switch is connected with the second output end of the charging protocol module, and the second end of the fourth switch is connected with the second pin; the control end of the fifth switch is connected with the switch controller, the first end of the fifth switch is connected with the first output end of the charging protocol module, and the second end of the fifth switch is connected with the third pin; the control end of the sixth switch is connected with the switch controller, the first end of the sixth switch is connected with the second output end of the charging protocol module, and the second end of the sixth switch is connected with the fourth pin; the control end of the seventh switch is connected with the switch controller, the first end of the seventh switch is connected with the first output end of the USB protocol module, and the second end of the seventh switch is connected with the third pin; the control end of the eighth switch is connected with the switch controller, the first end of the eighth switch is connected with the second output end of the USB protocol module, and the second end of the eighth switch is connected with the fourth pin. Thus, the switch controller may turn on the first switch and the second switch, turn off the third switch and the fourth switch, turn on the fifth switch and the sixth switch, and turn off the seventh switch and the eighth switch according to the first control signal, so as to turn on the charging protocol module and the second pin pair ②, and turn on the USB protocol module and the first pin pair ①. Or the switch controller may turn off the first switch and the second switch according to the first control signal, turn on the third switch and the fourth switch, turn off the fifth switch and the sixth switch, and turn on the seventh switch and the eighth switch, so as to achieve the conduction of the USB protocol module and the second pin pair ②, and the conduction of the charging protocol module and the first pin pair ①.
In some possible implementations, the first pin includes a d+ pin and the second pin includes a D-pin; the third pin comprises an SBU1 pin, and the fourth pin comprises an SBU2 pin; or the third pin may comprise a TX pin and the fourth pin may comprise an RX pin. In some examples, the third pin includes a VBUS pin for power transfer and the fourth pin includes a GND pin. Of course, the above is just a few examples, and in a different USB interface, the second pin pair may be any other set of pins that is different from the d+ pin and the D-pin.
In some possible implementations, the USB protocol module is disposed on a first chip, and the charging protocol module is disposed on a second chip different from the first chip. In this possible implementation, the USB protocol module and the charging protocol module may be provided in two different chips, respectively.
In some possible implementations, the USB protocol module and the main control module are disposed in the same chip, and the USB protocol module and the main control module may be disposed in two different chips, or integrated in the same chip, for example, integrated in an SoC.
In a second aspect, an electronic device is provided. An electronic device includes: the USB interface comprises a first pin pair, wherein the first pin pair at least comprises two pins; the USB protocol module is connected with the first pin pair of the USB interface; the charging protocol module is connected with the switch circuit, and the switch circuit is also connected with the first pin pair and the wireless communication module; the USB interface is used for connecting other electronic equipment through a USB cable; the switching circuit is configured to conduct the charging protocol module with the first pin pair and disconnect the charging protocol module from the wireless communication module; the charging protocol module is configured to transmit a charging control signal to the other electronic device through the first pin pair; or the switch circuit is configured to conduct the charging protocol module with the wireless communication module and disconnect the charging protocol module from the first pin pair; the charging protocol module is configured to transmit a charging control signal with the other electronic device through the wireless communication module; the USB protocol module is configured to communicate data with the other electronic device over the first pin pair.
In some possible implementations, the USB protocol module connects the first pin pair through the switching circuit; the switching circuit is configured to conduct the charging protocol module with the first pin pair; the switching circuit is configured to conduct the USB protocol module with the wireless communication module; the USB protocol module is configured to transmit data with the other electronic devices through the wireless communication module; or the switching circuit is configured to conduct the charging protocol module with the wireless communication module; the switching circuit is configured to conduct the USB protocol module with the first pin pair; or the switching circuit is configured to conduct the charging protocol module with the first pin pair; the switching circuit is configured to switch the USB protocol module on or off from the first pin pair when the charging protocol module is configured to transmit a charging control signal with the other electronic device through the first pin pair.
In some possible implementations, the circuit further includes a main control module, the main control module being connected to the switching circuit; the main control module is configured to send first control information to the switch circuit when data transmission is determined, wherein the first control information is used for controlling the switch circuit to conduct the charging protocol module with the wireless communication module and disconnect the charging protocol module with the first pin pair.
In some possible implementations, the circuit further includes a main control module, the main control module being connected to the switching circuit; the main control module is configured to send first control information to the switch circuit when data transmission is determined, wherein the first control information is used for controlling the switch circuit to conduct the charging protocol module and the wireless communication module and conduct the USB protocol module and the first pin pair; or the first control information is used for controlling the switch circuit to conduct the charging protocol module and the first pin pair, and conduct the USB protocol module and the wireless communication module.
In some possible implementations, the first pin pair includes a first pin and a second pin; the switching circuit includes: a first switch, a second switch, a third switch, a fourth switch, and a switch controller; the control end of the first switch is connected with the switch controller, the first end of the first switch is connected with the first output end of the charging protocol module, and the second end of the first switch is connected with the first pin; the control end of the second switch is connected with the switch controller, the first end of the second switch is connected with the second output end of the charging protocol module, and the second end of the second switch is connected with the second pin; the control end of the third switch is connected with the switch controller, the first end of the third switch is connected with the first output end of the charging protocol module, and the second end of the third switch is connected with the first input end of the wireless communication module; the control end of the fourth switch is connected with the switch controller, the first end of the fourth switch is connected with the second output end of the charging protocol module, and the second end of the fourth switch is connected with the second input end of the wireless communication module.
In some possible implementations, the first pin pair includes a first pin and a second pin; the switching circuit includes: a first switch, a second switch, a third switch, a fourth switch, a fifth switch, a sixth switch, and a switch controller; the control end of the first switch is connected with the switch controller, the first end of the first switch is connected with the first output end of the USB protocol module, and the second end of the first switch is connected with the first pin; the control end of the second switch is connected with the switch controller, the first end of the second switch is connected with the second output end of the USB protocol module, and the second end of the second switch is connected with the second pin; the control end of the third switch is connected with the switch controller, the first end of the third switch is connected with the first output end of the charging protocol module, and the second end of the third switch is connected with the first pin; the control end of the fourth switch is connected with the switch controller, the first end of the fourth switch is connected with the second output end of the charging protocol module, and the second end of the fourth switch is connected with the second pin; the control end of the fifth switch is connected with the switch controller, the first end of the fifth switch is connected with the first output end of the charging protocol module, and the second end of the fifth switch is connected with the first input end of the wireless communication module; the control end of the sixth switch is connected with the switch controller, the first end of the sixth switch is connected with the second output end of the charging protocol module, and the second end of the sixth switch is connected with the second input end of the wireless communication module.
In some possible implementations, the first pin pair includes a first pin and a second pin; the switching circuit includes: a first switch, a second switch, a third switch, a fourth switch, a fifth switch, a sixth switch, a seventh switch, an eighth switch, and a switch controller; the control end of the first switch is connected with the switch controller, the first end of the first switch is connected with the first output end of the USB protocol module, and the second end of the first switch is connected with the first pin; the control end of the second switch is connected with the switch controller, the first end of the second switch is connected with the second output end of the USB protocol module, and the second end of the second switch is connected with the second pin; the control end of the third switch is connected with the switch controller, the first end of the third switch is connected with the first output end of the charging protocol module, and the second end of the third switch is connected with the first pin; the control end of the fourth switch is connected with the switch controller, the first end of the fourth switch is connected with the second output end of the charging protocol module, and the second end of the fourth switch is connected with the second pin; the control end of the fifth switch is connected with the switch controller, the first end of the fifth switch is connected with the first output end of the charging protocol module, and the second end of the fifth switch is connected with the first input end of the wireless communication module; the control end of the sixth switch is connected with the switch controller, the first end of the sixth switch is connected with the second output end of the charging protocol module, and the second end of the sixth switch is connected with the second input end of the wireless communication module; the control end of the seventh switch is connected with the switch controller, the first end of the seventh switch is connected with the first output end of the USB protocol module, and the second end of the seventh switch is connected with the first input end of the wireless communication module; the control end of the eighth switch is connected with the switch controller, the first end of the eighth switch is connected with the second output end of the USB protocol module, and the second end of the eighth switch is connected with the second input end of the wireless communication module.
In some possible implementations, the first pin includes a d+ pin and the second pin includes a D-pin.
In some possible implementations, the USB protocol module is disposed on a first chip, and the charging protocol module is disposed on a second chip different from the first chip.
In some possible implementations, the USB protocol module and the main control module are provided in the same chip.
The difference from the first aspect is that in the second aspect and its possible implementation forms, the second pin pair described above is replaced by a wireless communication module, i.e. the switching circuit is directly connected to the wireless communication module. Therefore, the technical problems and the technical effects that it solves are similar to those of the first aspect and the possible implementation manners thereof, and are not repeated.
In a third aspect, there is provided a charging system comprising: the electronic device comprises a first electronic device, a second electronic device and a USB cable, wherein the first electronic device is connected with the second electronic device through the USB cable, and the first electronic device and the second electronic device comprise electronic devices provided by the first aspect or the second aspect and possible implementation manners thereof.
The technical problems solved by the third aspect and the technical effects achieved are similar to those of the first aspect, the second aspect and possible implementation manners thereof, and are not described in detail.
Drawings
Fig. 1 is a schematic structural diagram of a charging system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a USB cable according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic diagram of a pin structure of a plug according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to still another embodiment of the present application;
Fig. 8 is an equivalent structural schematic diagram of an electronic device according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
Fig. 11 is an equivalent structural schematic diagram of an electronic device according to another embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device according to still another embodiment of the present application;
Fig. 13 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
Fig. 14 is an equivalent structural diagram of an electronic device according to still another embodiment of the present application;
fig. 15 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 16 is a schematic structural diagram of a charging system according to another embodiment of the present application;
fig. 17 is a schematic structural diagram of a charging system according to another embodiment of the present application.
Detailed Description
The following description of the technical solutions according to the embodiments of the present application will be given with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments.
Hereinafter, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", etc. may explicitly or implicitly include one or more such feature. In the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In embodiments of the present application, unless explicitly specified and limited otherwise, the term "connected" is to be construed broadly, and for example, "connected" may be a fixed connection, a removable connection, or an integral unit; can be directly connected or indirectly connected through an intermediate medium. Furthermore, the term "coupled" may be a means of electrical connection for achieving signal transmission.
In the embodiment of the present application, the switching device mainly adopts a metal-oxide-semiconductor (Metal Oxide Semiconductor, MOS) field effect transistor, a thin film transistor (Thin Film Transistor, TFT), or a transistor such as a triode, which is not limited in the embodiment of the present application. In addition, the control terminal of the transistor may be a gate; the first terminal of the transistor may be a source, the second terminal may be a drain, or the first terminal may be a drain, and the second terminal may be a source. For convenience of explanation, the following embodiments of the present application are all explained by taking a transistor as an NMOS (N-type MOS transistor), a first terminal as a drain, and a second terminal as a source.
The following description of the technical solutions according to the embodiments of the present application will be given with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments.
A charging system according to an embodiment of the present application is shown in fig. 1, and includes an electronic device 10 and an electronic device 20. The electronic device 10 and the electronic device 20 are connected by a communication cable. As shown in fig. 2, in the following schemes, the USB cable 30 is taken as an example of the communication cable, but in some examples, the communication cable is not limited to the USB cable 30, and may be a communication cable under other protocols. The USB cable 30 includes a plug P1 and a plug P2 connected to both ends of the USB cable 30. In fig. 1, a plug P1 is plugged into a USB interface of an electronic device 10; the plug P2 is plugged into the USB interface of the electronic device 20, so as to connect the electronic device 10 and the electronic device 20. After the electronic device 10 and the electronic device 20 are connected, data may be transmitted through the USB cable 30 or a charging control signal for performing charging negotiation may be transmitted.
The electronic device 10 or the electronic device 20 may include a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a Personal Digital Assistant (PDA), a wearable electronic device, a virtual reality device, an electric car, and the like. In the following examples, the electronic device 10 may be a notebook, and the electronic device 20 may be a mobile phone.
Specifically, an embodiment of the present application provides an electronic device 10, wherein fig. 3 shows a schematic structural diagram of the electronic device 10.
The electronic device 10 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge 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 ear-piece interface 170D, a sensor module 180, a camera 193, and a display 194, etc.
It should be understood that the illustrated construction of the embodiments of the present application does not constitute a particular limitation of the electronic device 10. In other embodiments of the application, the electronic device 10 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural-Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system. Processor 110 may include in embodiments of the application: system on chip (SoC). In the following examples, the processor 110 may include a main control module and a USB protocol module, and in some examples, the main control module and the USB protocol module may be independently configured chips (e.g., the USB protocol module is configured on a first chip, and the main control module is configured on a second chip different from the first chip), or integrated in the same chip, e.g., integrated in a SoC.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SBUscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142. The charging protocol module provided in the following embodiments of the present application may be a charging management module or be integrated with the charging management module.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device. In an embodiment of the present application, the charge management module 140 may be the charge conversion chip 400.
The wireless communication function of the electronic device 10 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 10 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the electronic device 10. The mobile communication module 150 may include one or more filters, switches, power amplifiers, low noise amplifiers (low noise amplifier, LNA), and the like. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., as applied to the electronic device 10. The wireless communication module 160 may be one or more devices that integrate one or more communication processing modules. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques can include a global system for mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith SATELLITE SYSTEM, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. 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, and the like. The display 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1. The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, so that the electrical signal is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may cause the electronic device 10 to perform the methods provided in some embodiments of the present application, as well as various functional applications, data processing, and the like, by executing the above-described instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system; the storage area may also store one or more applications (e.g., gallery, contacts, etc.), and so forth. The storage data area may store data created during use of the electronic device 101 (e.g., photos, contacts, etc.), and so on. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, universal flash memory (universal flash storage, UFS), and the like. In other embodiments, processor 110 may cause electronic device 100 to perform the methods provided in embodiments of the present application, as well as various functional applications and data processing, by executing instructions stored in internal memory 121, and/or instructions stored in a memory disposed in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with one or more microphones 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The sensor module 180 may include a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
In embodiments of the present application, a touch sensor, also referred to as a "touch device". The touch sensor may be disposed on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, which is also referred to as a "touch screen". The touch sensor is used to detect a touch operation acting on or near it. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with a touch operation may be provided through a display screen. In other embodiments, the touch panel provided with the touch sensor array formed by a plurality of touch sensors may be disposed on the surface of the display panel in an externally-hung manner. In other embodiments, the touch sensor may be located in a different location than the display 194. The form of the touch sensor is not limited in the embodiment of the application, and can be a capacitor, a piezoresistor or the like.
In addition, the electronic device may further include one or more components such as a key, a motor, an indicator, and a subscriber identity module (SBUscriber identification module, SIM) card interface, which is not limited in this embodiment of the present application. The electronic device 20 and the electronic device 10 have the same or similar structures, and are not described in detail.
Based on the above-described charging system, both data transmission and transmission of a charging control signal can be performed between the electronic device 10 and the electronic device 20 via the USB cable 30. Specifically, taking the USB Type-C cable as an example, fig. 4 provides a pin layout diagram of a full-function USB Type-C cable. The A surface and the B surface of the plug P1 (or P2) of the Type-C cable respectively comprise two VBUS pins, two GND pins, TX (TX 1-, TX1+, TX2-, TX 2+) pins and RX (RX 1-, RX1+, RX2-, RX 2+) pins which are symmetrically arranged; the device comprises a CC pin, an SBU1 pin, a D-pin and a D+ pin which are arranged on the A surface; and Vconn pins and SBU2 pins are arranged on the surface B.
The pin application time is divided into the following uses:
The VBUS pin/GND pin is a power pin, and a transmission line between the VBUS pin of the plug P1 and the VBUS pin of the plug P2 is used for transmitting a power supply.
RX pin/TX pin, high-speed signal pin, forming pin pair for transmitting data or audio/video signal, the transmission rate of transmission line between RX pin/TX pin of plug P1 and RX pin/TX pin of plug P2 can be up to 40Gbps.
CC pins configuration pins of USB power transfer specification (power delivery specification, PD).
Vconn pins, namely a cable chip power supply pin of the USB Type-C cable.
D+ pin/D-pin: the transmission speed of the transmission line between the d+ pin/D-pin of the plug P1 and the d+ pin/D-pin of the plug P2 constituting the pin pair for transmitting USB2.0 data is 480Mbps at the maximum.
SBU1 pin/SBU 2 pin: the transmission lines between the SBU1 pin/SBU 2 pin of the plug P1 and the SBU1 pin/SBU 2 pin of the plug P2, which constitute the pair of pins transmitting sideband signals, may transmit some control signals.
Based on the USB Type-C cable shown in fig. 2, when the mobile phone is connected to the notebook computer through the USB cable 30, the connection between the notebook computer and the mobile phone can be performed through the pin pair formed by the d+ pin/D-pin in the USB interface 130 and the d+/D-transmission line in the USB cable 30, so as to perform data transmission. Of course, in order to expand the application scenario of mutual charging between electronic devices, a notebook may be used to charge the mobile phone. However, the charging protocol based on the single-wire control may enable transmission of a charging control signal between electronic devices while the electronic devices are normally transmitting data, for example: the USB PD protocol, introduced by the USB developer forum (USB implementers forum, USB-IF) association, performs charge control by using CC pins (i.e., single wire control); the Pump Express sends pulse current instructions to control charging through the VBUS pin. However, a charging protocol based on dual-line control, such as Quick Charge (QC) 2.0, QC3.0, universal FAST CHARGING Specification (UFCS), etc., requires charging control via d+ pin/D-pin (i.e., dual-line control). Specifically, referring to fig. 5, the electronic device 10 includes a main control module 111, a USB protocol module 112, a charging protocol module 113, and a USB interface 130; the main control module 111 is connected to the USB protocol module 112 and the charging protocol module 113, respectively, and the USB protocol module 112 and the charging protocol module 113 are connected to the d+ pin/D-pin on the USB interface 130. Therefore, when the electronic equipment is directly inserted into the charger, no data is transmitted between the charger and the electronic equipment, and only the negotiation of charging is performed, so that the normal operation can be performed; however, when the two-wire control charging is applied to the scenario shown in fig. 1, since there is a need for data transmission between the electronic devices in addition to the need for charging, the main control module 111 transmits data to the electronic device 20 via the USB protocol module 112 and the d+ pin/D-pin, and transmits a charging control signal to the electronic device 20 via the charging protocol module 113 and the d+ pin/D-pin, it is seen that the data transmission between the electronic devices and the negotiation of the charging protocol are performed via the d+ pin/D-pin on the USB interface 130 by the USB protocol module 112 and the charging protocol module 113, and thus the negotiation of the data transmission and the charging protocol between the electronic devices is performed via the d+ pin/D-pin.
To solve the above-described problems, in one example, an embodiment of the present application provides an electronic apparatus, as shown with reference to fig. 6, including: a universal serial bus USB protocol module 112, a charging protocol module 113, a switching circuit 114, and a USB interface 130. The USB interface 130 includes a first pin pair ① and a second pin pair ②, each of the first pin pair ① and the second pin pair ② including at least two pins. Illustratively, the first pin pair ① includes a first pin and a second pin; the second pin pair ② includes a third pin and a fourth pin. In fig. 6, the first pin includes a d+ pin and the second pin includes a D-pin; the third pin comprises an SBU1 pin, and the fourth pin comprises an SBU2 pin; or the third pin comprises a TX pin and the fourth pin comprises an RX pin; or the third pin includes a VBUS pin for power transmission, and the fourth pin includes a GND pin. Of course, the above is just a few examples, and in different USB interfaces, the second pin pair ② may be any other set of pins that are distinct from the d+ pin and the D-pin.
The USB protocol module 112 is connected to the first pin pair ① of the USB interface 130; the charging protocol module 113 is connected to the switch circuit 114, and the switch circuit 114 is further connected to the first pin pair ① and the second pin pair ②; the USB interface 114 is used to connect other electronic devices through the USB cable 30; forexample,referringtoFIG.6,theUSBprotocolmodule112mayincludetwooutputsDP-AandDM-A; as described above, since the electronic device provided by the embodiment of the present application is based on two-wire negotiation, the charging protocol module 113 may include two output terminals DP-B and DM-B.
Specifically, the switching circuit 114 is configured to conduct the charging protocol module 113 with the first pin pair ① and disconnect the charging protocol module 113 from the second pin pair ②; the charging protocol module 113 is configured to transmit a charging control signal with other electronic devices through the first pin pair ①; or a switching circuit 114 configured to turn on the charging protocol module 113 to the second pin pair ② and to turn off the charging protocol module 113 from the first pin pair ①; the charging protocol module 113 is configured to transmit a charging control signal with other electronic devices through the second pin pair ②; the USB protocol module 112 is configured to transfer data with other electronic devices over the first pin pair ①.
As shown in connection with fig. 6, the switching circuit 114 may have connection ports 1-9,9 connection ports. theoutputendDP-AoftheUSBprotocolmodule112isconnectedtothepinD+,theoutputendDM-AoftheUSBprotocolmodule112isconnectedtothepinD-,theoutputendDP-Bofthechargingprotocolmodule113isrespectivelyconnectedtotheconnectionport1andtheconnectionport3,andtheoutputendDM-Bofthechargingprotocolmodule113isrespectivelyconnectedtotheconnectionport2andtheconnectionport4; the D+ pin is connected to the connection port 9,D-the pin is connected to the connection port 8; the SBU1 pin is connected with the connection port 7, and the SBU2 pin is connected with the connection port 6; then, referring to fig. 8 (a), when the switch circuit 114 turns on the charging protocol module 113 and the first pin pair ①, the connection port 1 is turned on with the connection port 9, the connection port 2 is turned on with the connection port 8, and when the switch circuit 114 turns off the charging protocol module 113 and the second pin pair ②, the connection port 3 is disconnected from the connection port 7, and the connection port 4 is disconnected from the connection port 6; referring to fig. 8 (b), when the switching circuit 114 turns on the charging protocol module 113 and the second pin pair ②, the connection port 3 is turned on with the connection port 7, the connection port 4 is turned on with the connection port 6, and when the switching circuit 114 turns off the charging protocol module 113 and the first pin pair ①, the connection port 1 is disconnected from the connection port 9, and the connection port 2 is disconnected from the connection port 8.
Thus, in some cases, when the USB protocol module 112 has no data transmission, the switch circuit 114 turns on the charging protocol module 113 and the first pin pair ①, turns off the charging protocol module 113 and the second pin pair ②, and the charging protocol module 113 may transmit a charging control signal with other electronic devices through the first pin pair ①; when the USB protocol module 112 has data transmission, the switch circuit 114 conducts the charging protocol module 113 and the second pin pair ②; disconnecting the charging protocol module 113 from the first pin pair ①, wherein the charging protocol module 113 transmits charging control signals with other electronic devices through the second pin pair ②; the USB protocol module 112 transmits data to other electronic devices through the first pin pair ①; in this way, the data and the charging control signal are transmitted on different pin pairs of the USB interface, and in addition, since the first pin pair ① and the second pin pair ② can both provide two pins, the mutual influence between the two pins is avoided when the electronic device based on the two-wire transmission of the charging control signal performs the negotiation of the data transmission and the charging protocol through the d+ pin/D-pin. Of course, the above-mentioned transmission of the data or the charge control signal through the first pin pair or the second pin pair may include receiving and transmitting the data or the charge control signal.
In addition, referring to fig. 6, a main control module 111 may be further included, and the main control module 111 is connected to the switching circuit 114; the main control module 111 is generally configured to transmit data through the USB protocol module 112 or transmit a charging control signal through the charging protocol module 113, and thus, in an embodiment of the present application, the main control module 111 is configured to send first control information to the switch circuit 114 when it is determined that there is data transmission, the first control information being used to control the switch circuit 114 to turn on the charging protocol module 113 with the second pin pair ②. In some examples, the main control module 111 and the USB protocol module 112 may be independently provided chips (e.g., the main control module 111 is provided on a first chip, and the USB protocol module 112 may be provided on a second chip different from the first chip), or integrated in the same chip, e.g., integrated in a SoC.
Specifically, referring to fig. 7, in order to implement the functions of the electronic device shown in fig. 6, one specific structure of the switching circuit 114 includes: the first switch Q1, the second switch Q2, the third switch Q3, the fourth switch Q4, and the switch controller co.
The control end of the first switch Q1 is connected to the switch controller co, the first end of the first switch Q1 is connected to the output end DP-B of the charging protocol module 113 (as shown in fig. 7, the output end DP-B is connected through the connection port 1), and the second end of the first switch Q1 is connected to the d+ pin (as shown in fig. 7, the d+ pin is connected through the connection port 9).
The control end of the second switch Q2 is connected to the switch controller co, the first end of the second switch Q2 is connected to the output end DM-B of the charging protocol module 113 (as shown in fig. 7, the output end DM-B is connected through the connection port 2), and the second end of the second switch Q2 is connected to the D-pin (as shown in fig. 7, the D-pin is connected through the connection port 8).
The control end of the third switch Q3 is connected to the switch controller co, the first end of the third switch Q3 is connected to the output end DP-B of the charging protocol module 113 (as shown in fig. 7, the output end DP-B is connected through the connection port 3), and the second end of the third switch Q3 is connected to the SBU1 pin (as shown in fig. 7, the SBU1 pin is connected through the connection port 7).
The control end of the fourth switch Q4 is connected to the switch controller co, the first end of the fourth switch Q4 is connected to the output end DM-B of the charging protocol module 113 (as shown in fig. 7, the output end DM-B is connected through the connection port 4), and the second end of the fourth switch Q4 is connected to the SBU2 pin (as shown in fig. 7, the SBU2 pin is connected through the connection port 6).
The switch controller co is connected to the main control module 111 (as shown in fig. 7, connected to the main control module 111 through the connection port 5). In this way, the switch controller co can control the first switch Q1 and the second switch Q2 to be turned on, and the third switch Q3 and the fourth switch Q4 to be turned off, so as to realize that the charging protocol module 113 is turned on to the first pin pair ①, and the charging protocol module 113 is turned off to the second pin pair ②; or the first switch Q1 and the second switch Q2 are turned off according to the first control signal, and the third switch Q3 and the fourth switch Q4 are turned on, so as to realize that the charging protocol module 113 is turned on to the second pin pair ②, and the charging protocol module 113 is turned off to the first pin pair ①. Of course, in the solution shown in fig. 6, the connection port 7 may also be connected to the TX pin, and the connection port 6 may also be connected to the RX pin. Of course, the USB protocol module 112 may be a transfer for data of USB1.0, USB2.0, USB3.0, USB4.0, and so on. In the case of USB3.0 and higher generation, since the RX pin/TX pin is required to transmit high-speed data, if the second pin pair ② employs the TX pin and the RX pin, the TX pin and the RX pin are simultaneously employed to transmit the charging control signal and the high-speed data, which also causes the influence of both, so in the case of USB3.0 and USB4.0 and other higher generation, the second pin pair ② typically employs d+ pins such as the SBU1 pin and the SBU2 pin and D-pins, and other pins than the TX pin and the RX pin.
It should be noted that, the switch circuit 114 may be a switch chip and be provided with the above-mentioned 9 connection ports, in some examples, the connection ports 3 and 4 may be omitted, and the circuit between the connection port 3 and the output terminal DP-B, and the circuit between the connection port 4 and the output terminal DM-B may be disposed inside the switch chip, which has the advantage that the ports of the switch chip may be reduced; however, when the design of 9 connection ports is adopted, except for the connection port 5, only one switching device is connected between every two other 8 connection ports, and no other connection line is arranged on the switching chip, so that the switch on the switching chip is connected into a specific mode mainly through an external flying wire (a line between the connection port 3 and the output terminal DP-B and a line between the connection port 4 and the output terminal DM-B), and the universality of the switching chip can be improved. In addition, the main control module 111, the USB protocol module 112, and the charging protocol module 113 may be separately fabricated on separate chips (e.g., the main control module 111, the USB protocol module 112, and the charging protocol module 113 may be separately fabricated on three different chips), or the main control module 111 and the USB protocol module 112 may be disposed on the same chip, for example, a System On Chip (SOC) chip; the charging protocol module 113 may be disposed on a separately disposed chip, for example, a chip on which the charging management module 140 is disposed. Furthermore, the switch chip is not limited to the above-described 9 connection ports, and in some examples the switch chip may further include more connection ports such as connection ports (VCC, GND) for power supply, and the like.
In another example, an embodiment of the present application provides an electronic device, as shown in fig. 9, including: a main control module 111, a universal serial bus USB protocol module 112, a charging protocol module 113, a switching circuit 114, and a USB interface 130. The USB interface 130 includes a first pin pair ① and a second pin pair ②, each of the first pin pair ① and the second pin pair ② including a pair of pins disposed on the USB interface 130. Illustratively, the first pin pair ① includes a first pin and a second pin; the second pin pair ② includes a third pin and a fourth pin; in fig. 9, the first pin includes a d+ pin and the second pin includes a D-pin; the third pin comprises an SBU1 pin, and the fourth pin comprises an SBU2 pin; or the third pin may comprise a TX pin and the fourth pin may comprise an RX pin.
The USB protocol module 112 is connected to the first pin pair ① through the switch circuit 114; the charging protocol module 113 is connected to the switch circuit 114, and the switch circuit 114 is further connected to the first pin pair ① and the second pin pair ②; the USB interface 114 is used to connect other electronic devices through the USB cable 30; forexample,referringtoFIG.9,theUSBprotocolmodule112mayincludetwooutputsDP-AandDM-A; as described above, since the electronic device provided by the embodiment of the present application is based on two-wire negotiation, the charging protocol module 113 may include two output terminals DP-B and DM-B.
Specifically, the switching circuit 114 is configured to conduct the charging protocol module 113 with the first pin pair ①; a switch circuit 114 configured to switch the USB protocol module 112 on or off from the first pin pair ① when the charging protocol module 113 transmits a charging control signal with other electronic devices through the first pin pair ①; or a switching circuit 114 configured to turn on the charging protocol module 113 with the second pin pair ②; a switching circuit 114 configured to turn on the USB protocol module 112 to the first pin pair ①; the charging protocol module 113 is configured to transmit a charging control signal with other electronic devices through the second pin pair ②; the USB protocol module 112 is configured to transfer data with other electronic devices over the first pin pair ①.
As shown in connection with fig. 10, the switching circuit 114 may have connection ports 1-13,13 connection ports. theoutputendDP-AoftheUSBprotocolmodule112isconnectedtotheconnectionport1,andtheoutputendDM-AoftheUSBprotocolmodule112isconnectedtotheconnectionport2; the output end DP-B of the charging protocol module 113 is respectively connected to the connection port 3 and the connection port 5, and the output end DM-B of the charging protocol module 113 is respectively connected to the connection port 4 and the connection port 6; the D+ pin is respectively connected with the connecting port 13 and the connecting port 11, and the D-pin is respectively connected with the connecting port 12 and the connecting port 10; the SBU1 pin is connected to connection port 9 and the SBU2 pin is connected to connection port 8. Then, referring to fig. 11 (a), when the switching circuit 114 turns on the charging protocol module 113 and the first pin pair ①, the connection port 3 is turned on with the connection port 11, the connection port 4 is turned on with the connection port 10, the connection port 5 is disconnected from the connection port 9, and the connection port 6 is disconnected from the connection port 8; the switch circuit 114 conducts or disconnects the USB protocol module 112 from the first pin pair ①, wherein when the USB protocol module 112 is conducted with the first pin pair ①, the connection port 1 is conducted with the connection port 13, and the connection port 2 is conducted with the connection port 12; when the USB protocol module 112 is disconnected from the first pin pair ①, the connection port 1 is disconnected from the connection port 13, and the connection port 2 is disconnected from the connection port 12; referring to fig. 11 (b), when the switching circuit 114 turns on the charging protocol module 113 and the second pin pair ②, the connection port 5 is turned on with the connection port 9, the connection port 6 is turned on with the connection port 8, the connection port 3 is disconnected from the connection port 11, and the connection port 4 is disconnected from the connection port 10. When the switch circuit 114 turns on the USB protocol module 112 and the first pin pair ①, the connection port 1 turns on the connection port 13, and the connection port 2 turns on the connection port 12 when the USB protocol module 112 and the first pin pair ① turn on.
Thus, in some cases, when the USB protocol module 112 has no data transmission, the switch circuit 114 turns on the charging protocol module 113 and the first pin pair ①, and the charging protocol module 113 may transmit the charging control signal with other electronic devices through the first pin pair ①; since the USB protocol module 112 has no data transmission, the switch circuit 114 may keep the USB protocol module 112 conductive to the first pin pair ①, or to avoid the charging control signal from flowing back to the USB protocol module 112 through the first pin pair ① by the charging protocol module 113, the switch circuit 114 may disconnect the USB protocol module 112 from the first pin pair ①.
Thus, when the USB protocol module 112 has data transmission, the switch circuit 114 turns on the charging protocol module 113 and the second pin pair ②; the charging protocol module 113 transmits a charging control signal to other electronic devices through the second pin pair ②; the USB protocol module 112 transmits data to other electronic devices through the first pin pair ①; in this way, data and charge control signals are transmitted over different pairs of pins of the USB interface. In addition, since the first pin pair ① and the second pin pair ② can both provide two pins, the mutual influence between the two pins is avoided when the electronic device based on the two-wire transmission of the charging control signal performs the negotiation of the data transmission and the charging protocol through the d+ pin/D-pin.
Further, referring to fig. 10, the electronic device further includes a main control module 111, and the main control module 111 is connected to the switching circuit 114; the main control module 111 is generally configured to transmit data through the USB protocol module 112 or transmit a charging control signal through the charging protocol module 113, and thus, in an embodiment of the present application, the main control module 111 is configured to send first control information to the switch circuit 114 when determining that there is data transmission, the first control information being used to control the switch circuit 114 to conduct the charging protocol module 113 with the second pin pair ② and to conduct the USB protocol module 112 with the first pin pair ①.
Specifically, referring to fig. 10, in order to implement the functions of the electronic device shown in fig. 9, one specific configuration of the switching circuit 114 includes: the first switch Q1, the second switch Q2, the third switch Q3, the fourth switch Q4, the fifth switch Q5, the sixth switch Q6, and the switch controller co.
The control end of the first switch Q1 is connected to the switch controller co, the first end of the first switch Q1 is connected to the output end DP-a of the USB protocol module 112 (e.g. fig. 10, the output end DP-a is connected through the connection port 1), and the second end of the first switch Q1 is connected to the d+ pin (e.g. fig. 10, the d+ pin is connected through the connection port 13).
ThecontrolendofthesecondswitchQ2isconnectedtotheswitchcontrollerco,thefirstendofthesecondswitchQ2isconnectedtotheoutputendDM-aoftheUSBprotocolmodule112(asshowninfig.10,theoutputendDM-aisconnectedthroughtheconnectionport2),andthesecondendofthesecondswitchQ2isconnectedtothed-pin(asshowninfig.10,thed-pinisconnectedthroughtheconnectionport12).
The control end of the third switch Q3 is connected to the switch controller co, the first end of the third switch Q3 is connected to the output end DP-B of the charging protocol module 113 (e.g. fig. 10, the output end DP-B is connected through the connection port 3), and the second end of the third switch Q3 is connected to the d+ pin (e.g. fig. 10, the d+ pin is connected through the connection port 11).
The control end of the fourth switch Q4 is connected to the switch controller co, the first end of the fourth switch Q4 is connected to the output end DM-B of the charging protocol module 113 (as shown in fig. 10, the output end DM-B is connected through the connection port 4), and the second end of the second switch Q2 is connected to the D-pin (as shown in fig. 10, the D-pin is connected through the connection port 10).
The control end of the fifth switch Q5 is connected to the switch controller co, the first end of the fifth switch Q5 is connected to the output end DP-B of the charging protocol module 113 (as shown in fig. 10, the output end DP-B is connected through the connection port 5), and the second end of the fifth switch Q5 is connected to the SBU1 pin (as shown in fig. 10, the SBU1 pin is connected through the connection port 9).
The control end of the sixth switch Q6 is connected to the switch controller co, the first end of the sixth switch Q6 is connected to the output end DM-B of the charging protocol module 113 (as shown in fig. 10, the output end DM-B is connected through the connection port 6), and the second end of the sixth switch Q6 is connected to the SBU2 pin (as shown in fig. 10, the SBU2 pin is connected through the connection port 8).
The switch controller co is connected to the main control module 111 (as shown in fig. 10, connected to the main control module 111 through the connection port 7). In this way, the switch controller co may turn on the first switch Q1 and the second switch Q2, turn off the third switch Q3 and the fourth switch Q4, and turn on the fifth switch Q5 and the sixth switch Q6 according to the first control signal, so as to turn on the charging protocol module 113 and the second pin pair ②, and turn on the USB protocol module 113 and the first pin pair ①. Or the switch controller co may turn off the first switch Q1 and the second switch Q2 according to the first control signal, turn on the third switch Q3 and the fourth switch Q4, and turn off the fifth switch Q5 and the sixth switch Q6, so as to achieve that the charging protocol module 113 is turned on with the first pin pair ①. Of course, in the solution shown in fig. 10, the connection port 9 may also be connected to the TX pin, and the connection port 8 may also be connected to the RX pin. That is, the TX pin and the RX pin form the second pin pair ②, for specific reasons, reference may be made to the description of the above example, which is not repeated here.
It should be noted that, the switch circuit 114 may be a switch chip and be provided with the 13 connection ports, in some examples, the connection ports 5 and 6 may be omitted, and the circuit between the connection port 5 and the output terminal DP-B and the circuit between the connection port 6 and the output terminal DM-B may be provided inside the switch chip, in some examples, the connection ports 10 and 11 may be omitted, and the circuit between the connection ports 11 and the d+ pin and the circuit between the connection ports 10 and D-may be provided inside the switch chip, which is advantageous in that the ports of the switch chip may be reduced; however, when the design of 13 connection ports is adopted, except the connection port 7, only one switching device is connected between every two other 12 connection ports, and no other connection line is arranged on the switching chip, so that the universality of the switching chip can be improved by mainly connecting the switches on the switching chip into a specific mode through external flying lines (the line between the connection port 5 and the output end DP-B, the line between the connection port 6 and the output end DM-B, the line between the connection port 11 and the D+ pin, and the line between the connection port 10 and the D-pin).
In another example, an embodiment of the present application provides an electronic device, as shown with reference to fig. 12, including: a main control module 111, a universal serial bus USB protocol module 112, a charging protocol module 113, a switching circuit 114, and a USB interface 130. The USB interface 130 includes a first pin pair ① and a second pin pair ②, each of the first pin pair ① and the second pin pair ② including a pair of pins disposed on the USB interface 130. Illustratively, the first pin pair ① includes a first pin and a second pin; the second pin pair ② includes a third pin and a fourth pin; in fig. 12, the first pin includes a d+ pin and the second pin includes a D-pin; the third pin comprises an SBU1 pin, and the fourth pin comprises an SBU2 pin; or the third pin may comprise a TX pin and the fourth pin may comprise an RX pin.
The USB protocol module 112 is connected to the first pin pair ① through the switch circuit 114; the charging protocol module 113 is connected to the switch circuit 114, and the switch circuit 114 is further connected to the first pin pair ① and the second pin pair ②; the USB interface 114 is used to connect other electronic devices through the USB cable 30; forexample,referringtoFIG.12,theUSBprotocolmodule112mayincludetwooutputsDP-AandDM-A; as described above, since the electronic device provided by the embodiment of the present application is based on two-wire negotiation, the charging protocol module 113 may include two output terminals DP-B and DM-B.
Specifically, the switching circuit 114 is configured to conduct the charging protocol module 113 with the first pin pair ①; a switching circuit 114 configured to switch the USB protocol module 112 on or off the first pin pair ①; the charging protocol module 113 is configured to transmit a charging control signal with other electronic devices through the first pin pair ①; or a switching circuit 114 configured to turn on the charging protocol module 113 with the second pin pair ②; a switching circuit 114 configured to turn on the USB protocol module 112 to the first pin pair ①; the charging protocol module 113 is configured to transmit a charging control signal with other electronic devices through the second pin pair ②; the USB protocol module 112 is configured to transmit data with other electronic devices over the first pin pair ①; or a switching circuit 114 configured to turn on the charging protocol module 113 with the first pin pair ①; a switching circuit 114 configured to turn on the USB protocol module 112 to the second pin pair ②; the charging protocol module 113 is configured to transmit a charging control signal with other electronic devices through the first pin pair ①; the USB protocol module 112 is configured to transfer data with other electronic devices via the second pin pair ②.
As shown in connection with fig. 13, the switching circuit 114 may have connection ports 1-17,17 connection ports. theoutputendDP-AoftheUSBprotocolmodule112isrespectivelyconnectedwiththeconnectionport1andtheconnectionport7,andtheoutputendDM-AoftheUSBprotocolmodule112isrespectivelyconnectedwiththeconnectionport2andtheconnectionport8; the output end DP-B of the charging protocol module 113 is respectively connected to the connection port 3 and the connection port 5, and the output end DM-B of the charging protocol module 113 is respectively connected to the connection port 4 and the connection port 6; the D+ pin is respectively connected with the connecting port 17 and the connecting port 15, and the D-pin is respectively connected with the connecting port 16 and the connecting port 14; the SBU1 pin is connected to connection port 13 and connection port 11, respectively, and the SBU2 pin is connected to connection port 12 and connection port 10. Then, referring to fig. 14 (a), when the switch circuit 114 turns on the USB protocol module 112 and the first pin pair ①, the connection port 1 is turned on with the connection port 17, the connection port 2 is turned on with the connection port 16, the connection port 7 is disconnected from the connection port 11, and the connection port 8 is disconnected from the connection port 10; when the switch circuit 114 turns on the charging protocol module 113 and the second pin pair ②, the connection port 5 and the connection port 13 are turned on, the connection port 6 and the connection port 12 are turned on, the connection port 3 and the connection port 15 are disconnected, and the connection port 4 and the connection port 14 are disconnected. Referring to fig. 14 (b), when the switch circuit 114 connects the USB protocol module 112 to the second pin pair ②, the connection port 7 is connected to the connection port 11, the connection port 8 is connected to the connection port 10, the connection port 1 is disconnected from the connection port 17, and the connection port 2 is disconnected from the connection port 16; when the switch circuit 114 turns on the charging protocol module 113 and the first pin pair ①, the connection port 3 is turned on with the connection port 15, the connection port 4 is turned on with the connection port 14, the connection port 5 is disconnected from the connection port 13, and the connection port 6 is disconnected from the connection port 12.
Thus, in some cases, when the USB protocol module 112 has no data transmission, the switch circuit 114 turns on the charging protocol module 113 and the first pin pair ①, and the charging protocol module 113 may transmit the charging control signal with other electronic devices through the first pin pair ①; since the USB protocol module 112 has no data transmission, the switch circuit 114 may keep the USB protocol module 112 conductive to the first pin pair ①, or to avoid the charging control signal from flowing back to the USB protocol module 112 through the first pin pair ① by the charging protocol module 113, the switch circuit 114 may disconnect the USB protocol module 112 from the first pin pair ①. When the USB protocol module 112 has data transmission, the switch circuit 114 conducts the charging protocol module 113 and the second pin pair ②; the charging protocol module 113 transmits a charging control signal to other electronic devices through the second pin pair ②; the switch circuit 114 conducts the USB protocol module 112 to the first pin pair ①; the USB protocol module 112 transmits data to other electronic devices through the first pin pair ①; or when the USB protocol module 112 has data transmission, the switch circuit 114 conducts the charging protocol module 113 and the first pin pair ①; the charging protocol module 113 transmits a charging control signal to other electronic devices through the first pin pair ①; the switch circuit 114 conducts the USB protocol module 112 to the second pin pair ②; the USB protocol module 112 transmits data to other electronic devices via the second pin pair ②. Of course, since the impedance design of the d+ pin and the D-pin is more advantageous for data transmission, it is considered that the first pin pair ① is preferentially used for data transmission with other electronic devices.
In this way, the data and the charging control signal are transmitted on different pin pairs of the USB interface, and in addition, since the first pin pair ① and the second pin pair ② can both provide two pins, the mutual influence between the two pins is avoided when the electronic device based on the two-wire transmission of the charging control signal performs the negotiation of the data transmission and the charging protocol through the d+ pin/D-pin.
Further, referring to fig. 13, the electronic device further includes a main control module 111, and the main control module 111 is connected to the switching circuit 114; the main control module 111 is generally configured to transmit data through the USB protocol module 112 or transmit a charging control signal through the charging protocol module 113, and thus, in an embodiment of the present application, the main control module 111 is configured to send first control information to the switch circuit 114 when it is determined that there is data transmission, the first control information being used to control the switch circuit 114 to conduct the charging protocol module 113 with the second pin pair ② and to conduct the USB protocol module 112 with the first pin pair ①; or the first control information is used to control the switch circuit 114 to conduct the charging protocol module 113 to the first pin pair ① and conduct the USB protocol module 112 to the second pin pair ②.
Specifically, referring to fig. 13, in order to implement the functions of the electronic device shown in fig. 11, one specific configuration of the switching circuit 114 includes: the first, second, third, fourth, fifth, sixth, seventh, eighth, and eighth switches Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, and the switch controller co.
The control end of the first switch Q1 is connected to the switch controller co, the first end of the first switch Q1 is connected to the output end DP-a of the USB protocol module 112 (e.g. fig. 13, the output end DP-a is connected through the connection port 1), and the second end of the first switch Q1 is connected to the d+ pin (e.g. fig. 13, the d+ pin is connected through the connection port 17).
ThecontrolendofthesecondswitchQ2isconnectedtotheswitchcontrollerco,thefirstendofthesecondswitchQ2isconnectedtotheoutputendDM-aoftheUSBprotocolmodule112(asshowninfig.13,theoutputendDM-aisconnectedthroughtheconnectionport2),andthesecondendofthesecondswitchQ2isconnectedtothed-pin(asshowninfig.13,thed-pinisconnectedthroughtheconnectionport16).
The control end of the third switch Q3 is connected to the switch controller co, the first end of the third switch Q3 is connected to the output end DP-B of the charging protocol module 113 (as shown in fig. 13, the output end DP-B is connected through the connection port 3), and the second end of the third switch Q3 is connected to the d+ pin (as shown in fig. 13, the d+ pin is connected through the connection port 15).
The control end of the fourth switch Q4 is connected to the switch controller co, the first end of the fourth switch Q4 is connected to the output end DM-B of the charging protocol module 113 (as shown in fig. 13, the output end DM-B is connected through the connection port 4), and the second end of the second switch Q2 is connected to the D-pin (as shown in fig. 13, the D-pin is connected through the connection port 14).
The control end of the fifth switch Q5 is connected to the switch controller co, the first end of the fifth switch Q5 is connected to the output end DP-B of the charging protocol module 113 (as shown in fig. 13, the output end DP-B is connected through the connection port 5), and the second end of the fifth switch Q5 is connected to the SBU1 pin (as shown in fig. 13, the SBU1 pin is connected through the connection port 13).
The control end of the sixth switch Q6 is connected to the switch controller co, the first end of the sixth switch Q6 is connected to the output end DM-B of the charging protocol module 113 (as shown in fig. 13, the output end DM-B is connected through the connection port 6), and the second end of the sixth switch Q6 is connected to the SBU2 pin (as shown in fig. 13, the SBU2 pin is connected through the connection port 12).
The control end of the seventh switch Q7 is connected to the switch controller co, the first end of the seventh switch Q7 is connected to the output end DP-a of the USB protocol module 112 (e.g. fig. 13, the output end DP-a is connected through the connection port 7), and the second end of the seventh switch Q7 is connected to the SBU1 pin (e.g. fig. 13, the SBU1 pin is connected through the connection port 11).
ThecontrolendoftheeighthswitchQ8isconnectedtotheswitchcontrollerco,thefirstendoftheeighthswitchQ8isconnectedtotheoutputendDM-aoftheUSBprotocolmodule112(asshowninfig.13,theoutputendDM-aisconnectedthroughtheconnectionport8),andthesecondendoftheeighthswitchQ8isconnectedtothesbu2pin(asshowninfig.13,thesbu2pinisconnectedthroughtheconnectionport10).
The switch controller co is connected to the main control module 111 (as shown in fig. 13, the main control module 111 is connected through the connection port 9). In this way, the switch controller co may turn on the first switch Q1 and the second switch Q2, turn off the third switch Q3 and the fourth switch Q4, turn on the fifth switch Q5 and the sixth switch Q6, and turn off the seventh switch Q7 and the eighth switch Q8 according to the first control signal, so as to turn on the charging protocol module 113 and the second pin pair ②, and turn on the USB protocol module 113 and the first pin pair ①. Or the switch controller co may turn off the first switch Q1 and the second switch Q2 according to the first control signal, turn on the third switch Q3 and the fourth switch Q4, turn off the fifth switch Q5 and the sixth switch Q6, and turn on the seventh switch Q7 and the eighth switch Q8, so as to achieve that the USB protocol module 113 is turned on with the second pin pair ②, and the charging protocol module 113 is turned on with the first pin pair ①. Of course, in the scheme shown in fig. 13, the connection ports 13 and 11 may be connected to TX pins, and the connection ports 12 and 10 may be connected to RX pins. That is, the TX pin and the RX pin form the second pin pair ②, for specific reasons, reference may be made to the description of the above example, which is not repeated here.
Itshouldbenotedthat,theswitchcircuit114maybeaswitchchipandbeprovidedwiththe17connectionports,insomeexamples,theconnectionports5and6maybeomitted,andtheconnectionport5andtheoutputportDP-Bmaybeprovidedwiththeconnectionport6andtheoutputportDM-Binsidetheswitchchip,insomeexamples,theconnectionports15and14maybeomitted,andtheconnectionport15andthed+pinmaybeprovidedwiththeconnectionport14andtheD-insidetheswitchchip,insomeexamples,theconnectionport7andtheconnectionport8maybeomitted,andtheconnectionport7andtheoutputportDP-amaybeprovidedwiththeconnectionport8andtheoutputportDM-ainsidetheswitchchip,insomeexamples,theconnectionport11andtheconnectionport10maybeomitted,andtheconnectionport11andthesbu1pinmaybeprovidedwiththeconnectionport10andthesbu2insidetheswitchchip,sothattheswitchchipmaybedesignedtoreducethenumberoftheswitchchip; however,whenthe17connectionportsaredesigned,itcanbeseenthatonlyoneswitchingdeviceisconnectedbetweeneverytwoother16connectionportsexceptfortheconnectionport9,andnootherconnectionlineisprovidedontheswitchingchip,sothattheswitchontheswitchingchipisconnectedinaspecificmannermainlythroughtheexternalflyinglines(thelinebetweentheconnectionport5andtheoutputterminalDP-B,thelinebetweentheconnectionport6andtheoutputterminalDM-B,thelinebetweentheconnectionport15andthed+pin,thelinebetweentheconnectionport14andtheD-pin,thelinebetweentheconnectionport7andtheoutputterminalDP-a,thelinebetweentheconnectionport8andtheoutputterminalDM-a,thelinebetweentheconnectionport11andthesbu1pin,andthelinebetweentheconnectionport10andthesbu2pin).
In other examples, referring to fig. 15, the difference from fig. 6 is that the second pin pair ② formed by the SBU1 pin and the SBU2 pin in the USB interface 130 in fig. 6 may be replaced by the wireless communication module 160, that is, the connection port 7 and the connection port 6 of the switch circuit 114 are directly connected to the wireless communication module 160, and other control manners may be similar to the control manner in which the control charging protocol module 113 shown in fig. 6 is conducted with the first pin pair ① or the second pin pair ②, which is not described herein. The wireless communication module 160 may be a short-range wireless communication method such as bluetooth, WIFI, NFC, etc. shown in fig. 3. Likewise, the second pin pair ② in the electronic device 10 provided in fig. 9 and 12 may be replaced with the wireless communication module 160.
Further, referring to fig. 16, a charging system in which a notebook computer 10 and a cellular phone 20 are connected by a USB cable 30 is taken as an example.
The switching flow of the pin pairs is as follows:
Step1: notebook 10 is connected to cellular phone 20 via USB cable 30.
Step2: notebook 10 negotiates with handset 20 as a power supply for charging.
For example, because the battery capacity of the notebook is large, the mobile phone is generally used as a power supply party to charge the mobile phone quickly, and the charging protocol module 113 of the notebook 10 is connected to the d+/D-transmission line of the USB cable 30 through the first pin pair ① (d+ pin and D-pin) in the default state; charging protocol module 113 of handset 20 is connected to the d+/D-transmission line of USB cable 30 via a first pin pair ① (d+ pin and D-pin). Thus, charging protocol module 113 of notebook 10 may communicate charging control signals with charging protocol module 113 of handset 20 via the D+/D-transmission line of USB cable 30.
Step3: handset 20 sends a data transfer request to notebook 10, or notebook 10 sends a data transfer request to handset 20.
Because notebook 10 establishes a connection with handset 20 via the d+/D-transmission line of USB cable 30, main control module 111 of handset 20 may send a data transmission request for transmitting USB2.0 data directly to notebook 10 via charging protocol module 113; or the main control module 111 of the notebook 10 may send a data transmission request for transmitting USB2.0 data to the mobile phone 20 through the charging protocol module 113.
Step4: main control module 111 of handset 20 controls switching circuit 114 to switch the pin pair connected to charging protocol module 113 to second pin pair ②; the main control module 111 of the notebook 10 controls the switching circuit 114 to switch the pair of pins connected to the charging protocol module 113 to the second pair of pins ②.
Specifically, after the mobile phone 20 sends the data transmission request, the main control module 111 of the mobile phone 20 controls the switch circuit 114 to conduct the charging protocol module 113 with the second pin pair ② (the SBU1 pin and the SBU2 pin (or the second pin pair ② may also be the TX pin and the RX pin)), and the charging protocol module 113 of the mobile phone 20 is connected with the SBU1/SBU2 transmission line of the USB cable 30 through the second pin pair ②; after receiving the data transmission request, the notebook 10 responds to the data transmission request that the charging protocol module 113 of the notebook 10 is conducted with the second pin pair ② (the SBU1 pin and the SBU2 pin (or the second pin pair ② may also be the TX pin and the RX pin)), and the charging protocol module 113 of the notebook 10 is connected with the SBU1/SBU2 transmission line of the USB cable 30 through the second pin pair ②; in this way, the charging protocol module 113 of the notebook 10 may transmit the charging control signal with the charging protocol module 113 of the mobile phone 20 through the SBU1/SBU2 transmission line of the USB cable 30. Of course, after the data transmission request is sent from the notebook 10 to the mobile phone 20, the operation of the two is similar, and will not be repeated.
Step5: main control module 111 of handset 20 controls switching circuit 114 to turn on USB protocol module 112 to first pin pair ①; the main control module 111 of the notebook 10 controls the switch circuit 114 to conduct the USB protocol module 112 to the first pin pair ①.
Thus, USB protocol module 112 of notebook 10 connects to the D+/D-transmission line of USB cable 30 via first pin pair ① (D+ pin and D-pin); USB protocol module 112 of handset 20 is connected to the D+/D-transmission line of USB cable 30 via a first pin pair ① (D+ pin and D-pin). Thus, USB protocol module 112 of notebook 10 may communicate data with USB protocol module 112 of handset 20 via the D+/D-transmission line of USB cable 30.
Step6: after the data transmission is finished, a reset operation request can also be initiated by the notebook 10 or the mobile phone 20.
For example, after determining that the data transmission is finished, the handset 20 initiates a reset operation request to the notebook 10, and in response to the reset operation request, the notebook 10 and the handset 20 switch the pins connected to the USB protocol module 112 and the charging protocol module 113 back to the default state described in Step 2.
In addition, embodiments of the present application do not constitute a strict order limitation for the steps Step1 to Step6 described above, and for example, the execution order of some steps may be adjusted in some examples, or some steps may be added or replaced in the above-described flow. For example, step4 and Step5 may occur simultaneously, or in an alternating sequence. For another example, for Step3, instead of sending the switching command of the pin pair to the notebook 10 by the mobile phone 20, so that the main control module 111 of the mobile phone 20 directly controls the switch circuit 114 to conduct the charging protocol module 113 with the second pin pair ② (the SBU1 pin and the SBU2 pin (or the second pin pair ② may also be the TX pin and the RX pin)) and the charging protocol module 113 of the mobile phone 20 is connected with the SBU1/SBU2 transmission line of the USB cable 30 through the second pin pair ②; after receiving the switch command of the pin pair, the charging protocol module 113 of the notebook 10 is turned on with the second pin pair ② (the SBU1 pin and the SBU2 pin (or the second pin pair ② may also be the TX pin and the RX pin)) in response to the switch command of the pin pair, and the charging protocol module 113 of the notebook 10 is connected with the SBU1/SBU2 transmission line of the USB cable 30 through the second pin pair ②. In this way, switching control of the pin pairs of the cellular phone 20 and the notebook 10 can be achieved. Of course, the design according to Step3 has the advantage that whether to perform data transmission is used as the trigger condition for switching the pin pairs, and the pin pairs are switched only when the data transmission is needed, and reset is performed after the data transmission is finished, so that the interruption of the data transmission can be avoided. Of course, in order to avoid interruption of data transmission, handset 20 may generate a pin pair switching instruction when it is determined that data needs to be transmitted to notebook 10.
Further, referring to fig. 17, taking the example of the USB cable 30 between the notebook 10 and the cellular phone 20 providing the first pin pair ①, the second pin pair ② is replaced with the wireless communication module 160.
The switching flow of the pin pairs is as follows:
Step1: notebook 10 is connected to cellular phone 20 via USB cable 30.
Step2: notebook 10 negotiates with handset 20 as a power supply for charging.
For example, because the battery capacity of the notebook is large, the mobile phone is generally used as a power supply party to charge the mobile phone quickly, and the charging protocol module 113 of the notebook 10 is connected to the d+/D-transmission line of the USB cable 30 through the first pin pair ① (d+ pin and D-pin) in the default state; charging protocol module 113 of handset 20 is connected to the d+/D-transmission line of USB cable 30 via a first pin pair ① (d+ pin and D-pin). Thus, charging protocol module 113 of notebook 10 may communicate charging control signals with charging protocol module 113 of handset 20 via the D+/D-transmission line of USB cable 30.
Step3: handset 20 sends a data transfer request to notebook 10, or notebook 10 sends a data transfer request to handset 20.
Because notebook 10 establishes a connection with handset 20 via the d+/D-transmission line of USB cable 30, main control module 111 of handset 20 may send a data transmission request for transmitting USB2.0 data directly to notebook 10 via charging protocol module 113; or the main control module 111 of the notebook 10 may send a data transmission request for transmitting USB2.0 data to the mobile phone 20 through the charging protocol module 113.
Step4: main control module 111 of handset 20 controls switching circuit 114 to switch the pin pair connected to charging protocol module 113 to wireless communication module 160; the main control module 111 of the notebook 10 controls the switching circuit 114 to switch the pin pair connected to the charging protocol module 113 to the wireless communication module 160.
Specifically, after the mobile phone 20 sends a data transmission request, the main control module 111 of the mobile phone 20 controls the switch circuit 114 to conduct the charging protocol module 113 with the wireless communication module 160, and the charging protocol module 113 of the mobile phone 20 is connected with the wireless communication module 160; after receiving the data transmission request, the notebook 10 responds to the data transmission request that the charging protocol module 113 of the notebook 10 is conducted with the wireless communication module 160, and the charging protocol module 113 of the notebook 10 is connected with the wireless communication module 160; in this way, the charging protocol module 113 of the notebook 10 may transmit the charging control signal through the wireless communication module 160 connected to the charging protocol module 113 of the mobile phone 20 by the wireless communication module 160. Of course, after the data transmission request is sent from the notebook 10 to the mobile phone 20, the operation of the two is similar, and will not be repeated.
Step5: main control module 111 of handset 20 controls switching circuit 114 to turn on USB protocol module 112 to first pin pair ①; the main control module 111 of the notebook 10 controls the switch circuit 114 to conduct the USB protocol module 112 to the first pin pair ①.
Thus, USB protocol module 112 of notebook 10 connects to the D+/D-transmission line of USB cable 30 via first pin pair ① (D+ pin and D-pin); USB protocol module 112 of handset 20 is connected to the D+/D-transmission line of USB cable 30 via a first pin pair ① (D+ pin and D-pin). Thus, USB protocol module 112 of notebook 10 may communicate data with USB protocol module 112 of handset 20 via the D+/D-transmission line of USB cable 30.
Step6: after the data transmission is finished, a reset operation request can also be initiated by the notebook 10 or the mobile phone 20.
For example, after determining that the data transmission is finished, the handset 20 initiates a reset operation request to the notebook 10, and in response to the reset operation request, the notebook 10 and the handset 20 switch the pins connected to the USB protocol module 112 and the charging protocol module 113 back to the default state described in Step 2.
Fig. 16 and 17 are merely two examples provided by the embodiments of the present application, and it is understood that any switching control scheme of the pin pair implemented based on the hardware architecture in the charging system formed by the electronic device provided in any one of fig. 6 to 15 should fall within the scope of protection of the embodiments of the present application.
The foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. An electronic device, comprising: the USB interface comprises a first pin pair and a second pin pair, wherein the first pin pair and the second pin pair at least comprise two pins;
wherein, the USB protocol module is connected with the first pin pair;
the charging protocol module is connected with the switch circuit, and the switch circuit is also connected with the first pin pair and the second pin pair;
The USB interface is used for connecting other electronic equipment through a USB cable;
the switching circuit is configured to conduct the charging protocol module with the first pin pair and disconnect the charging protocol module from the second pin pair; the charging protocol module is configured to transmit a charging control signal with the other electronic device through the first pair of pins;
Or alternatively
The switching circuit is configured to conduct the charging protocol module with the second pair of pins and disconnect the charging protocol module from the first pair of pins; the charging protocol module is configured to transmit a charging control signal to the other electronic device through the second pin pair; the USB protocol module is configured to communicate data with the other electronic device via the first pair of pins.
2. The electronic device of claim 1, wherein the USB protocol module is further coupled to the first pin pair through the switching circuit;
The switching circuit is configured to conduct the charging protocol module with the first pin pair; the switching circuit is configured to conduct the USB protocol module with the second pin pair; the USB protocol module is configured to transmit data with the other electronic device through the second pin pair;
Or alternatively
The switching circuit is configured to conduct the charging protocol module with the second pin pair; the switching circuit is configured to conduct the USB protocol module with the first pin pair;
Or alternatively
The switching circuit is configured to conduct the charging protocol module with the first pin pair; the switching circuit is configured to switch on or off the USB protocol module and the first pin pair when the charging protocol module transmits a charging control signal with the other electronic device through the first pin pair.
3. The electronic device of claim 1, further comprising a main control module; the main control module is connected with the switch circuit;
And the main control module is configured to send first control information to the switch circuit when data transmission is determined, wherein the first control information is used for controlling the switch circuit to conduct the charging protocol module with the second pin pair and disconnect the charging protocol module with the first pin pair.
4. The electronic device of claim 2, further comprising a main control module; the main control module is connected with the switch circuit;
The main control module is configured to send first control information to the switch circuit when data transmission is determined, wherein the first control information is used for controlling the switch circuit to conduct the charging protocol module and the second pin pair and conduct the USB protocol module and the first pin pair; or the first control information is used for controlling the switch circuit to conduct the charging protocol module with the first pin pair and conduct the USB protocol module with the second pin pair.
5. The electronic device of claim 1 or 3, wherein the first pin pair comprises a first pin and a second pin; the second pin pair comprises a third pin and a fourth pin;
The switching circuit includes: a first switch, a second switch, a third switch, a fourth switch, and a switch controller;
the control end of the first switch is connected with the switch controller, the first end of the first switch is connected with the first output end of the charging protocol module, and the second end of the first switch is connected with the first pin;
the control end of the second switch is connected with the switch controller, the first end of the second switch is connected with the second output end of the charging protocol module, and the second end of the second switch is connected with the second pin;
The control end of the third switch is connected with the switch controller, the first end of the third switch is connected with the first output end of the charging protocol module, and the second end of the third switch is connected with the third pin;
The control end of the fourth switch is connected with the switch controller, the first end of the fourth switch is connected with the second output end of the charging protocol module, and the second end of the fourth switch is connected with the fourth pin.
6. The electronic device of claim 2 or 4, wherein the first pin pair comprises a first pin and a second pin; the second pin pair comprises a third pin and a fourth pin;
the switching circuit includes: a first switch, a second switch, a third switch, a fourth switch, a fifth switch, a sixth switch, and a switch controller;
the control end of the first switch is connected with the switch controller, the first end of the first switch is connected with the first output end of the USB protocol module, and the second end of the first switch is connected with the first pin;
the control end of the second switch is connected with the switch controller, the first end of the second switch is connected with the second output end of the USB protocol module, and the second end of the second switch is connected with the second pin;
The control end of the third switch is connected with the switch controller, the first end of the third switch is connected with the first output end of the charging protocol module, and the second end of the third switch is connected with the first pin;
the control end of the fourth switch is connected with the switch controller, the first end of the fourth switch is connected with the second output end of the charging protocol module, and the second end of the fourth switch is connected with the second pin;
the control end of the fifth switch is connected with the switch controller, the first end of the fifth switch is connected with the first output end of the charging protocol module, and the second end of the fifth switch is connected with the third pin;
The control end of the sixth switch is connected with the switch controller, the first end of the sixth switch is connected with the second output end of the charging protocol module, and the second end of the sixth switch is connected with the fourth pin.
7. The electronic device of claim 2 or 4, wherein the first pin pair comprises a first pin and a second pin; the second pin pair comprises a third pin and a fourth pin;
The switching circuit includes: a first switch, a second switch, a third switch, a fourth switch, a fifth switch, a sixth switch, a seventh switch, an eighth switch, and a switch controller;
the control end of the first switch is connected with the switch controller, the first end of the first switch is connected with the first output end of the USB protocol module, and the second end of the first switch is connected with the first pin;
the control end of the second switch is connected with the switch controller, the first end of the second switch is connected with the second output end of the USB protocol module, and the second end of the second switch is connected with the second pin;
The control end of the third switch is connected with the switch controller, the first end of the third switch is connected with the first output end of the charging protocol module, and the second end of the third switch is connected with the first pin;
the control end of the fourth switch is connected with the switch controller, the first end of the fourth switch is connected with the second output end of the charging protocol module, and the second end of the fourth switch is connected with the second pin;
the control end of the fifth switch is connected with the switch controller, the first end of the fifth switch is connected with the first output end of the charging protocol module, and the second end of the fifth switch is connected with the third pin;
The control end of the sixth switch is connected with the switch controller, the first end of the sixth switch is connected with the second output end of the charging protocol module, and the second end of the sixth switch is connected with the fourth pin;
the control end of the seventh switch is connected with the switch controller, the first end of the seventh switch is connected with the first output end of the USB protocol module, and the second end of the seventh switch is connected with the third pin;
the control end of the eighth switch is connected with the switch controller, the first end of the eighth switch is connected with the second output end of the USB protocol module, and the second end of the eighth switch is connected with the fourth pin.
8. The electronic device of any of claims 5-7, wherein the first pin comprises a d+ pin and the second pin comprises a D-pin;
The third pin comprises an SBU1 pin, and the fourth pin comprises an SBU2 pin; or the third pin comprises a TX pin and the fourth pin comprises an RX pin.
9. The electronic device of any of claims 1-8, wherein the USB protocol module is disposed on a first chip and the charging protocol module is disposed on a second chip different from the first chip.
10. The electronic device of claim 7 or 8, wherein the USB protocol module and the main control module are provided in the same chip.
11. A charging system, comprising: a first electronic device, a second electronic device and a USB cable, the first electronic device and the second electronic device being connected by the USB cable, the first electronic device and the second electronic device comprising the electronic device according to any one of claims 1-10.
CN202211559822.4A 2022-12-06 2022-12-06 Electronic equipment and charging system Pending CN118152315A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211559822.4A CN118152315A (en) 2022-12-06 2022-12-06 Electronic equipment and charging system
PCT/CN2023/135470 WO2024120297A1 (en) 2022-12-06 2023-11-30 Electronic device and charging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211559822.4A CN118152315A (en) 2022-12-06 2022-12-06 Electronic equipment and charging system

Publications (1)

Publication Number Publication Date
CN118152315A true CN118152315A (en) 2024-06-07

Family

ID=91299725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211559822.4A Pending CN118152315A (en) 2022-12-06 2022-12-06 Electronic equipment and charging system

Country Status (2)

Country Link
CN (1) CN118152315A (en)
WO (1) WO2024120297A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101278466B1 (en) * 2012-06-21 2013-07-02 크레신 주식회사 Data cable for fast charging
CN108268411A (en) * 2016-12-30 2018-07-10 维沃移动通信有限公司 The method and mobile terminal of a kind of data transmission
WO2019113732A1 (en) * 2017-12-11 2019-06-20 深圳市柔宇科技有限公司 Electronic device and charging control method
CN115237841A (en) * 2022-07-25 2022-10-25 维沃移动通信有限公司 Electronic equipment, quick charging method, device, system and readable storage medium
CN114967894B (en) * 2022-07-27 2023-01-17 荣耀终端有限公司 Electronic device, device identification method and charging system

Also Published As

Publication number Publication date
WO2024120297A1 (en) 2024-06-13

Similar Documents

Publication Publication Date Title
CN112789867B (en) Bluetooth connection method and equipment
CN113228701B (en) Audio data synchronization method and device
CN111601199A (en) Wireless earphone box and system
CN112771900B (en) Data transmission method and electronic equipment
CN112042212A (en) Audio data transmission method and electronic equipment
CN112469010B (en) Bluetooth connection method and related device
CN112469013B (en) Bluetooth connection method and related device
CN112243220A (en) Method for establishing communication connection and wearable device
CN112737566B (en) Interface conversion circuit and electronic equipment
CN112806092B (en) Microphone MIC switching method and device
CN112469011A (en) Bluetooth pairing method and related device
CN112913321A (en) Method, equipment and system for carrying out call by using Bluetooth headset
CN111010693A (en) Method for providing wireless fidelity WiFi network access service and electronic equipment
CN113038627B (en) File sharing method, mobile device and computer storage medium
CN113672534B (en) Terminal device and switch circuit
CN114554012B (en) Incoming call answering method, electronic equipment and storage medium
CN112099741B (en) Display screen position identification method, electronic device and computer readable storage medium
US20230208156A1 (en) Method for switching connection status of cell, power supply system, and electronic device
CN116133165A (en) Headset connection system, method, headset, electronic device, and readable storage medium
WO2024120297A1 (en) Electronic device and charging system
CN219834364U (en) Audio circuit and terminal equipment
EP4149100A1 (en) Electronic device and camera module
CN111294905B (en) Image processing method, image processing device, storage medium and electronic apparatus
CN116346982B (en) Method for processing audio, electronic device and readable storage medium
CN115701120B (en) Electronic equipment and camera module

Legal Events

Date Code Title Description
PB01 Publication