WO2017107147A1 - Usb connector, and detection method - Google Patents

Usb connector, and detection method Download PDF

Info

Publication number
WO2017107147A1
WO2017107147A1 PCT/CN2015/098763 CN2015098763W WO2017107147A1 WO 2017107147 A1 WO2017107147 A1 WO 2017107147A1 CN 2015098763 W CN2015098763 W CN 2015098763W WO 2017107147 A1 WO2017107147 A1 WO 2017107147A1
Authority
WO
WIPO (PCT)
Prior art keywords
pin
usb
interface
terminal device
ground
Prior art date
Application number
PCT/CN2015/098763
Other languages
French (fr)
Chinese (zh)
Inventor
马雷
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201580085480.9A priority Critical patent/CN108432066B/en
Priority to PCT/CN2015/098763 priority patent/WO2017107147A1/en
Publication of WO2017107147A1 publication Critical patent/WO2017107147A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R31/00Coupling parts supported only by co-operation with counterpart
    • H01R31/06Intermediate parts for linking two coupling parts, e.g. adapter

Definitions

  • the present invention relates to the field of data communication connection technologies, and in particular, to a USB connector and a detection method.
  • the OTG (On-The-Go) line is mainly used for connection between various devices (such as user terminals and USB flash drives, user terminals and digital cameras, etc.) so that data can be exchanged between devices.
  • the OTG line includes a micro USB interface and an OTG interface.
  • the OTG interface includes five lines, of which two data lines (D+ and D-), one power line (VBUS), one ground line (GND), and one identification ID line. .
  • the terminal device sets the GPIO port corresponding to the ID pin of the terminal device to a low level, and the terminal device supplies power to the USB device. And perform USB enumeration. It can be seen that when the micro USB interface of the terminal device is connected to the micro USB interface of the OTG line, and the USB device is not connected to the OTG line, the terminal device still supplies power to the USB device, and performs USB enumeration to increase the power consumption of the terminal device.
  • the embodiment of the invention provides a USB connector, in order to reduce the power consumption of the terminal device.
  • a first aspect of the present invention provides a USB connector, including a first interface and a second interface, where the first interface includes a first data pin, a second data pin, a first ground pin, and a first voltage lead And the first identification pin, the second interface includes a third data pin, a fourth data pin, a second ground pin, a second voltage pin, and a second identification pin, where the first data is a second data pin is connected to the third data pin, the second data pin is connected to the fourth data pin, the first ground pin is connected to the second ground pin, and the first voltage pin is connected to the first a second voltage pin, the first identity pin is connected to the second identity pin, and the second identity pin is connected to the second ground pin by a USB device, and the USB device is inserted into the second interface
  • the second ground pin is deformed such that the second identity pin is connected to the second ground pin, and when the USB device is pulled out from the second interface, the second ground pin is deformed to cause the first The second identification pin is disconnected from the second ground pin.
  • the second interface when the second interface is in a state in which the USB device is not inserted, the second ground pin is not deformed, and the second identifier is The pin is not connected to the second ground pin, and the second identity pin is in a floating state.
  • the second grounding Deformation of the foot when the second interface is in a USB device state, the second grounding Deformation of the foot, the second ground pin is connected to a ground pin of the interface of the USB device, and the second identity pin is connected to the second ground pin to short the second identity pin to ground .
  • a third possible implementation manner of the first aspect when the second interface is in a USB device state, the second grounding The foot is deformed, and the second identification pin and the second ground pin are connected to the ground pin of the USB device to short the second identification pin to the ground.
  • the foregoing second identity identifier pin and the foregoing is U-shaped.
  • the second identity identifier pin and the foregoing The shape of the two ground pins is L-shaped.
  • the first interface is a micro USB interface
  • the second interface is a USB interface
  • the first interface is a micro-seat USB interface; or the first interface is a micro-base USB interface.
  • the second interface is a public USB interface; or the second interface is a female USB interface.
  • a second aspect of the embodiment of the present invention provides a USB connector, a detection method, and the terminal device is connected to the USB connector of any one of the above claims 1 to 10, and the method includes the following steps:
  • the terminal device detects a status of an identity recognition pin of the micro USB interface of the terminal device
  • the terminal device If the terminal device detects that the level of the identification pin output of the micro USB interface of the terminal device changes from a high level to a low level, the terminal device supplies power to the voltage pin of the micro USB interface of the terminal device.
  • the terminal device is configured to supply power to a USB device connected to the USB connector; the terminal device performs USB enumeration;
  • the terminal device If the terminal device detects that the level of the identification pin output of the micro USB interface of the terminal device changes from a low level to a high level, the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device.
  • the USB device connected to the USB connector is powered off by disconnecting the above terminal device.
  • the method further includes:
  • the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device to disconnect the terminal device as a USB device connected to the USB connector. powered by.
  • the foregoing method also includes:
  • the terminal device outputs prompt information, and the prompt information is used to prompt the user to re-plug the USB device connected to the USB connector.
  • the second identification pin of the second interface is connected to the second ground pin through the USB device, and when the USB device is inserted into the second interface, the second ground pin occurs.
  • the deformation causes the second identification pin to be connected to the second ground pin, and when the USB device is pulled out from the second interface, the second ground pin is deformed to be disconnected such that the second identification pin is disconnected from the second ground pin .
  • the second identification pin of the second interface is in a floating state, and the terminal device is The GPIO port corresponding to the ID pin is still in a high state, and the terminal device does not supply power to the USB device.
  • the second identification pin is connected to the second ground pin, and the terminal device will The GPIO port corresponding to the ID pin of the terminal device is placed in a low state, the terminal device recognizes that the identification pin of the micro USB interface of the terminal device outputs a low level, the terminal device supplies power to the USB device, and performs USB enumeration. In turn, the power consumption of the terminal device is reduced.
  • FIG. 1 is a schematic diagram of a USB connector provided by the present invention.
  • FIG. 2 is a schematic view showing the connection of the USB connector of FIG. 1.
  • FIG. 3 is a schematic diagram of the connection of the USB connector of FIG. 1.
  • FIG. 3 is a schematic diagram of the connection of the USB connector of FIG. 1.
  • FIG. 4 is a schematic view showing the connection of the USB connector of FIG. 1.
  • FIG. 5 is a schematic flow chart of a detection method provided by the present invention.
  • the USB connector 100 of the present invention includes a first interface 10 and a second interface 20.
  • the first interface 10 includes a first data pin 11, a second data pin 12, and a first interface. a ground pin 13, a first voltage pin 14 and a first identification pin 15,
  • the second interface 20 includes a third data pin 21, a fourth data pin 22, a second ground pin 23, and a second voltage a pin 24 and a second identification pin 25, wherein the first data pin 11 is connected to the third data pin 21, the second data pin 12 is connected to the fourth data pin 22, and the first ground pin 13 is connected.
  • the first voltage pin 14 is connected to the second voltage pin 24, and the first identity pin 15 is connected to the second identity pin 25, wherein the second identity pin 25 Connected to the second ground pin 23 through the USB device, when the USB device is inserted into the second interface 20, the second ground pin 23 is deformed such that the second identity pin 25 is connected to the second ground pin 23, when the USB device When the second interface 20 is pulled out, the second ground pin 23 is deformed to disappear so that the second identity pin 25 and the second Ground pin 23 is disconnected.
  • the first interface 10 is a micro USB interface
  • the second interface 20 is a USB interface
  • the first interface 10 is a micro-seat USB interface; or the first interface 10 is a micro-seat USB interface.
  • the second interface 20 is a female USB interface; or the second interface 20 is a public USB interface.
  • the second interface 20 when the second interface 20 is in the state of not being inserted into the USB device, the second ground pin 23 is not deformed, the second identity pin 25 is not connected to the second ground pin 23, and the second identity pin is 25 is in a floating state.
  • the first interface 10 is connected to the micro USB interface of the terminal device
  • the second interface 20 is not connected to the USB device
  • the second identity identification pin 25 is in a floating state
  • the GPIO port corresponding to the ID pin of the terminal device is still in the In the high state
  • the terminal device recognizes that the identification pin of the micro USB interface of the terminal device outputs a high level, and the terminal device does not supply power to the USB device, and does not perform USB enumeration.
  • the second identity pin 25 of the second interface 20 of the USB connector provided by the present invention is not connected to the second ground pin 23, when the first interface 10
  • the terminal device recognizes that the ID is pulled high, the terminal device recognizes the slave device, the terminal device does not supply power to the USB device, does not perform USB enumeration, and reduces the terminal. The power consumption of the device.
  • the second ground pin 23 is deformed, and the second ground pin 23 is connected to the ground pin of the interface of the USB device, and the second identifier is The pin 25 and the second ground pin 23 are connected such that the second identity pin 25 is shorted to ground.
  • the second ground pin 23 is inserted into the second interface 20 by the USB device.
  • the terminal device sets the GPIO port of the terminal device corresponding to the ID pin to a low level, and the terminal device recognizes that the identification pin of the micro USB interface of the terminal device outputs a low level, and the terminal device supplies power to the USB device, and performs USB enumeration.
  • the shape of the second identity 25 pin and the second ground pin 23 are U-shaped. As shown in Figure 3.
  • the second identity 25 pin and the second ground pin 23 are L-shaped. As shown in Figure 4.
  • the second ground pin 23 is deformed, and the second identity pin 25 and the second ground pin 23 are connected to the ground pin of the interface of the USB device. Connected to short the second identity pin 25 to ground.
  • the second ground pin 23 and the second identity pin 25 are connected by the USB device.
  • the ground pin of the interface of the USB device is pressed to deform the second ground pin 23 and the second identity pin 23, so that the second ground pin 23 and the second identity pin 25 are The ground pin of the interface of the USB device is in contact such that the second identity pin 25 is shorted to ground.
  • the terminal device sets the GPIO port of the terminal device corresponding to the ID pin to a low level, and the terminal device recognizes that the identification pin of the micro USB interface of the terminal device outputs a low level, and the terminal device supplies power to the USB device, and performs USB enumeration.
  • the gap between the second identity pin 25 and the second ground pin 23 is less than or equal to 1 mm.
  • the second identification pin 25 of the second interface 20 is connected to the second ground pin 23 through the USB device, and when the USB device is inserted into the second interface 20, the second The ground pin 23 is deformed such that the second identity pin 25 is connected to the second ground pin 23. When the USB device is pulled out from the second interface 20, the second ground pin 23 is deformed to disappear so that the second identity pin 25 is disconnected from the second ground pin 23. It can be seen that when the first interface 10 of the USB connector is connected to the micro USB interface of the terminal device, and the second interface 20 of the USB connector is not connected to the USB device, the second identification pin 25 of the second interface 20 is in a floating state.
  • the GPIO port of the terminal device corresponding to the ID pin is still in a high state, and the terminal device does not supply power to the USB device. Only when the second interface 20 is connected to the USB device, the second identification pin 25 and the second grounding pin The pin 23 is connected, and the terminal device sets the GPIO port corresponding to the ID pin of the terminal device to a low level state, and the terminal device recognizes that the identification pin of the micro USB interface of the terminal device outputs a low level, and the terminal device supplies power to the USB device. And perform USB enumeration, which reduces the power consumption of the terminal device.
  • FIG. 5 specifically includes the following steps:
  • the terminal device detects a status of an identity identifier pin of the micro USB interface of the terminal device.
  • the terminal device detects that the level of the identification pin output of the micro USB interface of the terminal device changes from a high level to a low level, the terminal device is a voltage reference of the micro USB interface of the terminal device.
  • the foot is powered to cause the terminal device to supply power to the USB device connected to the USB connector; the terminal device performs USB enumeration.
  • the terminal device If the terminal device detects that the level of the identification pin output of the micro USB interface of the terminal device changes from a low level to a high level, the terminal device stops as a micro USB interface of the terminal device.
  • the voltage pin is powered to disconnect the terminal device to power the USB device connected to the USB connector.
  • the USB connector is a USB connector disclosed in the embodiment of the present invention, and the terminal device is connected to the USB connector.
  • the detection method provided by the embodiment of the present invention is not limited to the structure of the USB connector disclosed in FIG. 1-4, and other similar or enabling the terminal device to implement the above.
  • the structure of the USB connector of the detecting method is applicable to the embodiment of the present invention.
  • the terminal device is not connected to the USB connector, and the identification pin of the micro USB interface of the terminal device is in a floating state. At this time, the level of the identification pin output of the micro USB interface of the terminal device is a high level.
  • the micro USB interface of the terminal device is connected to the first interface of the USB connector, and the second interface of the USB connector is connected to the USB device, the second ground pin of the second interface of the USB connector is deformed such that the second interface The second identification pin is connected to the second ground pin.
  • the terminal device recognizes that the identification pin of the micro USB interface of the terminal device is short-circuited to the ground, and the terminal device sets the GPIO port of the terminal device corresponding to the ID pin.
  • the terminal device When placed at a low level, the terminal device recognizes that the level of the identification pin output of the micro USB interface of the terminal device changes from a high level to a low level, and the terminal device supplies power to the USB device so that the terminal device is connected to the USB connection. The USB device is powered, and then the terminal device performs USB enumeration.
  • the terminal device recognizes that the identification pin of the micro USB interface of the terminal device is suspended, and the terminal device sets the GPIO port of the terminal device corresponding to the ID pin to a high level, and the terminal device recognizes the terminal device.
  • the level of the identification pin output of the micro USB interface changes from a low level to a high level, and the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device to disconnect the terminal device to connect to the USB connection.
  • the USB device is powered.
  • the terminal device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (MID), a wearable device (such as a smart watch (such as an iwatch), a smart bracelet, a pedometer, etc. ) or other terminal equipment.
  • MID mobile internet device
  • a wearable device such as a smart watch (such as an iwatch), a smart bracelet, a pedometer, etc. ) or other terminal equipment.
  • the USB device can be a USB flash drive, a hard disk, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (MID), and the like.
  • MID mobile internet device
  • the second identification pin of the second interface of the USB connector is connected to the second ground pin through the USB device, when the first interface of the USB connector is connected to the micro USB interface of the terminal device, and the USB connection When the second interface of the device is not connected to the USB device, the second identification pin of the second interface is in a floating state, and the GPIO port of the terminal device corresponding to the ID pin is still in a high state, and the terminal device does not supply power to the USB device.
  • the terminal device do not perform USB enumeration, only connect USB device on the second interface
  • the terminal device sets the GPIO port of the terminal device corresponding to the ID pin to a low state, and the terminal device identifies the identity of the micro USB interface of the terminal device.
  • the pin outputs a low level, and the terminal device supplies power to the USB device and performs USB enumeration, thereby reducing the power consumption of the terminal device.
  • the method further includes:
  • the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device to disconnect the terminal device to supply power to the USB device connected to the USB connector.
  • the preset threshold may be 1, 2, 3, 5, 6, 7, or other values, for example.
  • the terminal device since the second ground pin is deformed such that the second identity pin is connected to the second ground pin, the terminal device sets the GPIO port of the terminal device corresponding to the ID pin to a low state, and the terminal device The identification pin of the micro USB interface that identifies the terminal device outputs a low level, and the terminal device supplies power to the USB device and performs USB enumeration. If the USB device connected to the USB device is a problematic USB device, the USB device enumeration in the terminal device cannot be enumerated successfully. In this case, if the terminal device has been enumerated by USB, the power consumption of the terminal device will increase. . Therefore, in order to reduce the power consumption of the terminal device, if the number of unsuccessful USB enumeration is greater than or equal to the preset threshold, the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device.
  • the terminal device further includes:
  • the terminal device outputs a prompt message for prompting the user to re-plug the USB device connected to the USB connector.
  • the manner in which the terminal device outputs the prompt information may be a short message reminder, a voice reminder or a breathing light reminder; and the like.

Landscapes

  • Power Sources (AREA)

Abstract

Disclosed is a USB connector (100), and connection of a second identification pin (25) of a second interface (20) included in the USB connector (100) to a second ground pin (23) is via a USB device. When a USB device is inserted in the second interface (20), the second ground pin (23) deforms to enable the second identification pin (25) to be connected to the second ground pin (23); when the USB device is unplugged from the second interface (20), the second ground pin (23) recovers from deformation to disconnect the second identification pin (25) from the second ground pin (23). As can be seen from the above, if a first interface (10) of the USB connector is connected to a micro USB interface of a terminal device and the second interface (20) of the USB connector is not connected to a USB device, the second identification pin (25) of the second interface (20) is floating, and the terminal device does not supply power to the USB device. In addition, the terminal device only supplies power to the USB device and enumerates the USB device if the second interface (20) is connected to the USB device to connect the second identification pin (25) to the second ground pin (23), and the terminal device identifies that an identification pin of the micro USB interface of the terminal device outputs a low level. In this way, power consumption of the terminal device is reduced.

Description

一种USB连接器以及检测方法USB connector and detection method 技术领域Technical field
本发明涉及数据通信连接技术领域,尤其涉及一种USB连接器以及检测方法。The present invention relates to the field of data communication connection technologies, and in particular, to a USB connector and a detection method.
背景技术Background technique
OTG(On-The-Go)线主要应用于各种不同的设备(比如用户终端与U盘、用户终端与数码相机等等)之间的联接,以使得设备之间可进行数据交换。OTG线包括微型USB接口和OTG接口,OTG接口中包括5条线,其中,两条数据线(D+和D-),一条电源线(VBUS),一条接地线(GND)以及一条身份识别ID线。终端设备的微型USB接口在未插入OTG线时,终端设备的微型USB接口的ID引脚处于悬空状态,终端设备的与ID引脚对应的通用输入/输出(General Purpose Input Output)端口置于高电平,当终端设备的微型USB接口与现有的OTG线的微型USB接口连接时,终端设备将终端设备的与ID引脚对应的GPIO端口置于低电平,终端设备为USB设备供电,并进行USB枚举。可见,当终端设备的微型USB接口与OTG线的微型USB接口连接,且OTG线上未连接USB设备时,终端设备仍为USB设备供电,并进行USB枚举,增加终端设备的功耗。The OTG (On-The-Go) line is mainly used for connection between various devices (such as user terminals and USB flash drives, user terminals and digital cameras, etc.) so that data can be exchanged between devices. The OTG line includes a micro USB interface and an OTG interface. The OTG interface includes five lines, of which two data lines (D+ and D-), one power line (VBUS), one ground line (GND), and one identification ID line. . When the micro USB interface of the terminal device is not inserted into the OTG line, the ID pin of the micro USB interface of the terminal device is left floating, and the general purpose input/output port corresponding to the ID pin of the terminal device is placed high. Level, when the micro USB interface of the terminal device is connected to the micro USB interface of the existing OTG line, the terminal device sets the GPIO port corresponding to the ID pin of the terminal device to a low level, and the terminal device supplies power to the USB device. And perform USB enumeration. It can be seen that when the micro USB interface of the terminal device is connected to the micro USB interface of the OTG line, and the USB device is not connected to the OTG line, the terminal device still supplies power to the USB device, and performs USB enumeration to increase the power consumption of the terminal device.
发明内容Summary of the invention
本发明实施例提供一种USB连接器,以期降低终端设备的功耗。The embodiment of the invention provides a USB connector, in order to reduce the power consumption of the terminal device.
本发明实施例第一方面提供一种USB连接器,包括第一接口和第二接口,上述第一接口包括第一数据引脚、第二数据引脚、第一接地引脚、第一电压引脚以及第一身份识别引脚,上述第二接口包括第三数据引脚、第四数据引脚、第二接地引脚、第二电压引脚以及第二身份识别引脚,上述第一数据引脚连接至上述第三数据引脚,上述第二数据引脚连接至上述第四数据引脚,上述第一接地引脚连接至上述第二接地引脚,上述第一电压引脚连接至上述第二电压引脚,上述第一身份标识引脚连接至上述第二身份标识引脚,上述第二身份标识引脚通过USB设备连接至上述第二接地引脚,当USB设备插入上述第二接口 时,上述第二接地引脚发生形变使得上述第二身份标识引脚与上述第二接地引脚连接,当USB设备从上述第二接口拔出时,上述第二接地引脚形变消失使得上述第二身份标识引脚与上述第二接地引脚断开连接。A first aspect of the present invention provides a USB connector, including a first interface and a second interface, where the first interface includes a first data pin, a second data pin, a first ground pin, and a first voltage lead And the first identification pin, the second interface includes a third data pin, a fourth data pin, a second ground pin, a second voltage pin, and a second identification pin, where the first data is a second data pin is connected to the third data pin, the second data pin is connected to the fourth data pin, the first ground pin is connected to the second ground pin, and the first voltage pin is connected to the first a second voltage pin, the first identity pin is connected to the second identity pin, and the second identity pin is connected to the second ground pin by a USB device, and the USB device is inserted into the second interface The second ground pin is deformed such that the second identity pin is connected to the second ground pin, and when the USB device is pulled out from the second interface, the second ground pin is deformed to cause the first The second identification pin is disconnected from the second ground pin.
结合本发明第一方面,在第一方面的第一种可能的实现方式中,当上述第二接口处于未插入USB设备状态时,上述第二接地引脚未发生形变,上述第二身份标识引脚未与上述第二接地引脚连接,上述第二身份标识引脚处于悬空状态。With reference to the first aspect of the present invention, in a first possible implementation manner of the first aspect, when the second interface is in a state in which the USB device is not inserted, the second ground pin is not deformed, and the second identifier is The pin is not connected to the second ground pin, and the second identity pin is in a floating state.
结合本发明第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,当上述第二接口处于插入USB设备状态时,上述第二接地引脚发生形变,上述第二接地引脚与上述USB设备的接口的接地引脚连接,上述第二身份标识引脚和上述第二接地引脚连接,以使得上述第二身份标识引脚对地短路。With reference to the first aspect of the present invention or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, when the second interface is in a USB device state, the second grounding Deformation of the foot, the second ground pin is connected to a ground pin of the interface of the USB device, and the second identity pin is connected to the second ground pin to short the second identity pin to ground .
结合本发明第一方面或第一方面的第一种可能的实现方式,在第一方面的第三种可能的实现方式中,当上述第二接口处于插入USB设备状态时,上述第二接地引脚发生形变,上述第二身份标识引脚和上述第二接地引脚与上述USB设备的接地引脚的连接,以使得上述第二身份标识引脚对地短路。With reference to the first aspect of the present invention or the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, when the second interface is in a USB device state, the second grounding The foot is deformed, and the second identification pin and the second ground pin are connected to the ground pin of the USB device to short the second identification pin to the ground.
结合本发明第一方面、第一方面的第一种至第三种任一种可能的实现方式,在第一方面的第四种可能的实现方式中,上述第二身份标识引脚和上述第二接地引脚的形状呈U型。With reference to the first aspect of the present invention, the first to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the foregoing second identity identifier pin and the foregoing The shape of the two ground pins is U-shaped.
结合本发明第一方面、第一方面的第一种至第三种任一种可能的实现方式,在第一方面的第五种可能的实现方式中,上述第二身份标识引脚和上述第二接地引脚的形状呈L型。With reference to the first aspect of the present invention, the first to the third possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the second identity identifier pin and the foregoing The shape of the two ground pins is L-shaped.
结合本发明第一方面、第一方面的第一种至第五种任一种可能的实现方式,在第一方面的第六种可能的实现方式中,上述第二身份标识引脚和上述第二接地引脚的间隙小于或等于1毫米。With reference to the first aspect of the present invention, any one of the first to fifth possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, the second identity identifier pin and the foregoing The gap between the two ground pins is less than or equal to 1 mm.
结合本发明第一方面、第一方面的第一种至第六种任一种可能的实现方式,在第一方面的第七种可能的实现方式中,上述第一接口为微型USB接口,上述第二接口为USB接口。 With reference to the first aspect of the present invention, the first to sixth possible implementation manners of the first aspect, in the seventh possible implementation manner of the first aspect, the first interface is a micro USB interface, The second interface is a USB interface.
结合本发明第一方面的第七种可能的实现方式,在第一方面的第八种可能的实现方式中,上述第一接口为微型公座USB接口;或者,上述第一接口为微型母座USB接口。With reference to the seventh possible implementation manner of the first aspect of the present invention, in the eighth possible implementation manner of the first aspect, the first interface is a micro-seat USB interface; or the first interface is a micro-base USB interface.
结合本发明第一方面的第七种可能的实现方式,在第一方面的第九种可能的实现方式中,上述第二接口为公座USB接口;或者,上述第二接口为母座USB接口。In a ninth possible implementation manner of the first aspect, the second interface is a public USB interface; or the second interface is a female USB interface. .
本发明实施例第二方面提供一种USB连接器,检测方法,终端设备与权1~10任一项上述的USB连接器连接,其特征在于,包括:A second aspect of the embodiment of the present invention provides a USB connector, a detection method, and the terminal device is connected to the USB connector of any one of the above claims 1 to 10, and the method includes the following steps:
上述终端设备检测上述终端设备的微型USB接口的身份识别引脚的状态;The terminal device detects a status of an identity recognition pin of the micro USB interface of the terminal device;
若上述终端设备检测到上述终端设备的微型USB接口的身份识别引脚输出的电平从高电平变为低电平,上述终端设备为上述终端设备的微型USB接口的电压引脚供电,以使得上述终端设备为连接于上述USB连接器的USB设备供电;上述终端设备进行USB枚举;If the terminal device detects that the level of the identification pin output of the micro USB interface of the terminal device changes from a high level to a low level, the terminal device supplies power to the voltage pin of the micro USB interface of the terminal device. The terminal device is configured to supply power to a USB device connected to the USB connector; the terminal device performs USB enumeration;
若上述终端设备检测到上述终端设备的微型USB接口的身份识别引脚输出的电平从低电平变为高电平,上述终端设备停止为上述终端设备的微型USB接口的电压引脚供电,以断开上述终端设备为连接于上述USB连接器的USB设备供电。If the terminal device detects that the level of the identification pin output of the micro USB interface of the terminal device changes from a low level to a high level, the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device. The USB device connected to the USB connector is powered off by disconnecting the above terminal device.
结合本发明第二方面,在第二方面的第一种可能的实现方式中,上述终端设备进行USB枚举之后,上述方法还包括:With reference to the second aspect of the present invention, in a first possible implementation manner of the second aspect, after the terminal device performs USB enumeration, the method further includes:
若上述USB枚举不成功的次数大于或等于预设阈值,上述终端设备停止为上述终端设备的微型USB接口的电压引脚供电,以断开上述终端设备为连接于上述USB连接器的USB设备供电。If the number of unsuccessful USB enumerations is greater than or equal to a preset threshold, the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device to disconnect the terminal device as a USB device connected to the USB connector. powered by.
结合本发明第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,上述终端设备停止为上述终端设备的微型USB接口的电压引脚供电之后,上述方法还包括:With reference to the first possible implementation manner of the second aspect of the present invention, in a second possible implementation manner of the second aspect, after the terminal device stops power supply of the voltage pin of the micro USB interface of the terminal device, the foregoing method Also includes:
上述终端设备输出提示信息,上述提示信息用于提示用户重新插拔连接于上述USB连接器的USB设备。 The terminal device outputs prompt information, and the prompt information is used to prompt the user to re-plug the USB device connected to the USB connector.
可以看出,在本发明提供的USB连接器中,第二接口的第二身份识别引脚通过USB设备连接至第二接地引脚,当USB设备插入第二接口时,第二接地引脚发生形变使得第二身份标识引脚与第二接地引脚连接,当USB设备从第二接口拔出时,第二接地引脚形变消失使得第二身份标识引脚与第二接地引脚断开连接。可见,当USB连接器的第一接口与终端设备的微型USB接口连接,且USB连接器的第二接口未连接USB设备时,第二接口的第二身份识别引脚处于悬空状态,终端设备的与ID引脚对应的GPIO端口仍处于高电平状态,终端设备不为USB设备供电,只有在第二接口连接USB设备时,第二身份识别引脚与第二接地引脚连接,终端设备将终端设备的与ID引脚对应的GPIO端口置于低电平状态,终端设备识别终端设备的微型USB接口的身份识别引脚输出低电平,终端设备为USB设备供电,并进行USB枚举,进而降低了终端设备的功耗。It can be seen that in the USB connector provided by the present invention, the second identification pin of the second interface is connected to the second ground pin through the USB device, and when the USB device is inserted into the second interface, the second ground pin occurs. The deformation causes the second identification pin to be connected to the second ground pin, and when the USB device is pulled out from the second interface, the second ground pin is deformed to be disconnected such that the second identification pin is disconnected from the second ground pin . It can be seen that when the first interface of the USB connector is connected to the micro USB interface of the terminal device, and the second interface of the USB connector is not connected to the USB device, the second identification pin of the second interface is in a floating state, and the terminal device is The GPIO port corresponding to the ID pin is still in a high state, and the terminal device does not supply power to the USB device. Only when the second interface is connected to the USB device, the second identification pin is connected to the second ground pin, and the terminal device will The GPIO port corresponding to the ID pin of the terminal device is placed in a low state, the terminal device recognizes that the identification pin of the micro USB interface of the terminal device outputs a low level, the terminal device supplies power to the USB device, and performs USB enumeration. In turn, the power consumption of the terminal device is reduced.
附图说明DRAWINGS
为了更清楚地说明本发明实施例技术方案,下面将对实施例和现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments and the prior art description will be briefly described below. Obviously, the drawings in the following description are only some implementations of the present invention. For example, other drawings may be obtained from those of ordinary skill in the art based on these drawings without any inventive labor.
图1为本发明提供的USB连接器的示意图。FIG. 1 is a schematic diagram of a USB connector provided by the present invention.
图2为图1中的USB连接器的连线示意图。2 is a schematic view showing the connection of the USB connector of FIG. 1.
图3为图1中的USB连接器的连线示意图。FIG. 3 is a schematic diagram of the connection of the USB connector of FIG. 1. FIG.
图4为图1中的USB连接器的连线示意图。4 is a schematic view showing the connection of the USB connector of FIG. 1.
图5为本发明提供的检测方法的流程示意图。FIG. 5 is a schematic flow chart of a detection method provided by the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
以下分别进行详细说明。The details are described below separately.
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。The terms "first", "second", "third", and "fourth" and the like in the specification and claims of the present invention are used to distinguish different objects, and are not intended to describe a specific order. .
请一并参见图1-图4,本发明提供的USB连接器100,包括第一接口10和第二接口20,第一接口10包括第一数据引脚11、第二数据引脚12、第一接地引脚13、第一电压引脚14以及第一身份识别引脚15,第二接口20包括第三数据引脚21、第四数据引脚22、第二接地引脚23、第二电压引脚24以及第二身份识别引脚25,其中,第一数据引脚11与第三数据引脚21连接,第二数据引脚12与第四数据引脚22连接,第一接地引脚13与第二接地引脚23连接,第一电压引脚14与第二电压引脚24连接,第一身份标识引脚15与第二身份标识引脚25连接,其中,第二身份识别引脚25通过USB设备连接至第二接地引脚23,当USB设备插入第二接口20时,第二接地引脚23发生形变使得第二身份标识引脚25与第二接地引脚23连接,当USB设备从第二接口20拔出时,第二接地引脚23形变消失使得第二身份标识引脚25与第二接地引脚23断开连接。Referring to FIG. 1 to FIG. 4, the USB connector 100 of the present invention includes a first interface 10 and a second interface 20. The first interface 10 includes a first data pin 11, a second data pin 12, and a first interface. a ground pin 13, a first voltage pin 14 and a first identification pin 15, the second interface 20 includes a third data pin 21, a fourth data pin 22, a second ground pin 23, and a second voltage a pin 24 and a second identification pin 25, wherein the first data pin 11 is connected to the third data pin 21, the second data pin 12 is connected to the fourth data pin 22, and the first ground pin 13 is connected. Connected to the second ground pin 23, the first voltage pin 14 is connected to the second voltage pin 24, and the first identity pin 15 is connected to the second identity pin 25, wherein the second identity pin 25 Connected to the second ground pin 23 through the USB device, when the USB device is inserted into the second interface 20, the second ground pin 23 is deformed such that the second identity pin 25 is connected to the second ground pin 23, when the USB device When the second interface 20 is pulled out, the second ground pin 23 is deformed to disappear so that the second identity pin 25 and the second Ground pin 23 is disconnected.
可选的,第一接口10为微型USB接口,第二接口20为USB接口。Optionally, the first interface 10 is a micro USB interface, and the second interface 20 is a USB interface.
可选的,第一接口10为微型母座USB接口;或者,第一接口10为微型公座USB接口。Optionally, the first interface 10 is a micro-seat USB interface; or the first interface 10 is a micro-seat USB interface.
可选的,第二接口20为母座USB接口;或者,第二接口20为公座USB接口。Optionally, the second interface 20 is a female USB interface; or the second interface 20 is a public USB interface.
可选的,当第二接口20处于未插入USB设备状态时,第二接地引脚23未发生形变,第二身份标识引脚25未与第二接地引脚23连接,第二身份标识引脚25处于悬空状态。举例来说,第一接口10与终端设备的微型USB接口连接,第二接口20未连接USB设备,第二身份标识引脚25处于悬空状态,终端设备的与ID引脚对应的GPIO端口仍处于高电平状态,终端设备识别终端设备的微型USB接口的身份识别引脚输出高电平,终端设备不为USB设备供电,不进行USB枚举。与现有技术相比,本发明提供的USB连接器的第二接口20的第二身份标识引脚25与第二接地引脚23未连接,当第一接口10 与终端设备的微型USB接口连接,第二接口20未连接USB设备时,终端设备识别ID拉高,终端设备识别为从设备,终端设备不为USB设备供电,不进行USB枚举,降低了终端设备的功耗。Optionally, when the second interface 20 is in the state of not being inserted into the USB device, the second ground pin 23 is not deformed, the second identity pin 25 is not connected to the second ground pin 23, and the second identity pin is 25 is in a floating state. For example, the first interface 10 is connected to the micro USB interface of the terminal device, the second interface 20 is not connected to the USB device, the second identity identification pin 25 is in a floating state, and the GPIO port corresponding to the ID pin of the terminal device is still in the In the high state, the terminal device recognizes that the identification pin of the micro USB interface of the terminal device outputs a high level, and the terminal device does not supply power to the USB device, and does not perform USB enumeration. Compared with the prior art, the second identity pin 25 of the second interface 20 of the USB connector provided by the present invention is not connected to the second ground pin 23, when the first interface 10 When the second interface 20 is not connected to the USB device, the terminal device recognizes that the ID is pulled high, the terminal device recognizes the slave device, the terminal device does not supply power to the USB device, does not perform USB enumeration, and reduces the terminal. The power consumption of the device.
可选的,当第二接口20处于插入USB设备状态时,第二接地引脚23发生形变,所述第二接地引脚23与上述USB设备的接口的接地引脚连接,第二身份标识引脚25和第二接地引脚23连接,以使得第二身份标识引脚25对地短路。举例来说,如图3或图4所示,当第一接口10与终端设备的微型USB接口连接,第二接口20连接USB设备时,第二接地引脚23因USB设备插入第二接口20时USB设备的接口的接地引脚挤压第二接地引脚23,第二接地引脚23发生形变,使得第二接地引脚23与第二身份标识引脚25接触,以使得第二身份标识引脚25对地短路。终端设备将终端设备的与ID引脚对应的GPIO端口置于低电平,终端设备识别所述终端设备的微型USB接口的身份识别引脚输出低电平,终端设备为USB设备供电,并进行USB枚举。Optionally, when the second interface 20 is in the state of inserting the USB device, the second ground pin 23 is deformed, and the second ground pin 23 is connected to the ground pin of the interface of the USB device, and the second identifier is The pin 25 and the second ground pin 23 are connected such that the second identity pin 25 is shorted to ground. For example, as shown in FIG. 3 or FIG. 4, when the first interface 10 is connected to the micro USB interface of the terminal device and the second interface 20 is connected to the USB device, the second ground pin 23 is inserted into the second interface 20 by the USB device. When the ground pin of the interface of the USB device presses the second ground pin 23, the second ground pin 23 is deformed, so that the second ground pin 23 is in contact with the second identity pin 25, so that the second identity Pin 25 is shorted to ground. The terminal device sets the GPIO port of the terminal device corresponding to the ID pin to a low level, and the terminal device recognizes that the identification pin of the micro USB interface of the terminal device outputs a low level, and the terminal device supplies power to the USB device, and performs USB enumeration.
可选的,第二身份标识25引脚和第二接地引脚23的形状呈U型。如图3所示。Optionally, the shape of the second identity 25 pin and the second ground pin 23 are U-shaped. As shown in Figure 3.
可选的,第二身份标识25引脚和第二接地引脚23的形状呈L型。如图4所示。Optionally, the second identity 25 pin and the second ground pin 23 are L-shaped. As shown in Figure 4.
可选的,当第二接口20处于插入USB设备状态时,第二接地引脚23发生形变,第二身份标识引脚25和第二接地引脚23与上述USB设备的接口的接地引脚的连接,以使得第二身份标识引脚25对地短路。举例来说,如图2所示,当第一接口10与终端设备的微型USB接口连接,第二接口20连接USB设备时,第二接地引脚23和第二身份标识引脚25因USB设备插入第二接口20时USB设备的接口的接地引脚挤压第二接地引脚23和第二身份标识引脚23而发生形变,使得第二接地引脚23和第二身份标识引脚25与USB设备的接口的接地引脚接触,以使得第二身份标识引脚25对地短路。终端设备将终端设备的与ID引脚对应的GPIO端口置于低电平,终端设备识别所述终端设备的微型USB接口的身份识别引脚输出低电平,终端设备为USB设备供电,并进行USB枚举。Optionally, when the second interface 20 is in the state of inserting the USB device, the second ground pin 23 is deformed, and the second identity pin 25 and the second ground pin 23 are connected to the ground pin of the interface of the USB device. Connected to short the second identity pin 25 to ground. For example, as shown in FIG. 2, when the first interface 10 is connected to the micro USB interface of the terminal device, and the second interface 20 is connected to the USB device, the second ground pin 23 and the second identity pin 25 are connected by the USB device. When the second interface 20 is inserted, the ground pin of the interface of the USB device is pressed to deform the second ground pin 23 and the second identity pin 23, so that the second ground pin 23 and the second identity pin 25 are The ground pin of the interface of the USB device is in contact such that the second identity pin 25 is shorted to ground. The terminal device sets the GPIO port of the terminal device corresponding to the ID pin to a low level, and the terminal device recognizes that the identification pin of the micro USB interface of the terminal device outputs a low level, and the terminal device supplies power to the USB device, and performs USB enumeration.
可选的,第二身份标识引脚25和第二接地引脚23的间隙小于或等于1毫米。 Optionally, the gap between the second identity pin 25 and the second ground pin 23 is less than or equal to 1 mm.
可以看出,在本发明提供的USB连接器中,第二接口20的第二身份识别引脚25通过USB设备连接至第二接地引脚23,当USB设备插入第二接口20时,第二接地引脚23发生形变使得第二身份标识引脚25与第二接地引脚23连接,当USB设备从第二接口20拔出时,第二接地引脚23形变消失使得第二身份标识引脚25与第二接地引脚23断开连接。可见,当USB连接器的第一接口10与终端设备的微型USB接口连接,且USB连接器的第二接口20未连接USB设备时,第二接口20的第二身份识别引脚25处于悬空状态,终端设备的与ID引脚对应的GPIO端口仍处于高电平状态,终端设备不为USB设备供电,只有在第二接口20连接USB设备时,第二身份识别引脚25与第二接地引脚23连接,终端设备将终端设备的与ID引脚对应的GPIO端口置于低电平状态,终端设备识别终端设备的微型USB接口的身份识别引脚输出低电平,终端设备为USB设备供电,并进行USB枚举,进而降低了终端设备的功耗。It can be seen that in the USB connector provided by the present invention, the second identification pin 25 of the second interface 20 is connected to the second ground pin 23 through the USB device, and when the USB device is inserted into the second interface 20, the second The ground pin 23 is deformed such that the second identity pin 25 is connected to the second ground pin 23. When the USB device is pulled out from the second interface 20, the second ground pin 23 is deformed to disappear so that the second identity pin 25 is disconnected from the second ground pin 23. It can be seen that when the first interface 10 of the USB connector is connected to the micro USB interface of the terminal device, and the second interface 20 of the USB connector is not connected to the USB device, the second identification pin 25 of the second interface 20 is in a floating state. The GPIO port of the terminal device corresponding to the ID pin is still in a high state, and the terminal device does not supply power to the USB device. Only when the second interface 20 is connected to the USB device, the second identification pin 25 and the second grounding pin The pin 23 is connected, and the terminal device sets the GPIO port corresponding to the ID pin of the terminal device to a low level state, and the terminal device recognizes that the identification pin of the micro USB interface of the terminal device outputs a low level, and the terminal device supplies power to the USB device. And perform USB enumeration, which reduces the power consumption of the terminal device.
请参见图5,图5为本发明提供的检测方法具体包括以下步骤:Referring to FIG. 5, FIG. 5 specifically includes the following steps:
S501、终端设备检测所述终端设备的微型USB接口的身份识别引脚的状态。S501. The terminal device detects a status of an identity identifier pin of the micro USB interface of the terminal device.
S502、若终端设备检测到所述终端设备的微型USB接口的身份识别引脚输出的电平从高电平变为低电平,所述终端设备为所述终端设备的微型USB接口的电压引脚供电,以使得所述终端设备为连接于所述USB连接器的所述USB设备供电;所述终端设备进行USB枚举。S502. If the terminal device detects that the level of the identification pin output of the micro USB interface of the terminal device changes from a high level to a low level, the terminal device is a voltage reference of the micro USB interface of the terminal device. The foot is powered to cause the terminal device to supply power to the USB device connected to the USB connector; the terminal device performs USB enumeration.
S503、若所述终端设备检测到所述终端设备的微型USB接口的身份识别引脚输出的电平从低电平变为高电平,所述终端设备停止为所述终端设备的微型USB接口的电压引脚供电,以断开所述终端设备为连接于所述USB连接器的所述USB设备供电。S503. If the terminal device detects that the level of the identification pin output of the micro USB interface of the terminal device changes from a low level to a high level, the terminal device stops as a micro USB interface of the terminal device. The voltage pin is powered to disconnect the terminal device to power the USB device connected to the USB connector.
需要说明的是,上述USB连接器为本发明实施例公开的USB连接器,且终端设备与上述USB连接器连接,上述USB连接器的结构的可以参照上述实施例的相关描述,此处不再赘述。可以理解的是,本发明实施例提供的检测方法也可不限于图1-4公开的USB连接器的结构,其他类似或能使终端设备实现上述 检测方法的USB连接器的结构均适用于本发明实施例。It should be noted that the USB connector is a USB connector disclosed in the embodiment of the present invention, and the terminal device is connected to the USB connector. For the structure of the USB connector, reference may be made to the related description of the foregoing embodiment. Narration. It can be understood that the detection method provided by the embodiment of the present invention is not limited to the structure of the USB connector disclosed in FIG. 1-4, and other similar or enabling the terminal device to implement the above. The structure of the USB connector of the detecting method is applicable to the embodiment of the present invention.
具体地,终端设备在未连接USB连接器,终端设备的微型USB接口的身份识别引脚处于悬空状态,此时,终端设备的微型USB接口的身份识别引脚输出的电平为高电平。当终端设备的微型USB接口与USB连接器的第一接口连接,且USB连接器的第二接口与USB设备连接时,USB连接器的第二接口的第二接地引脚发生形变使得第二接口的第二身份标识引脚与第二接地引脚连接,此时,终端设备识别终端设备的微型USB接口的身份识别引脚对地短路,终端设备将终端设备的与ID引脚对应的GPIO端口置于低电平,终端设备识别终端设备的微型USB接口的身份识别引脚输出的电平从高电平变为低电平,终端设备为USB设备供电,以使得终端设备为连接于USB连接器的USB设备供电,然后终端设备进行USB枚举。Specifically, the terminal device is not connected to the USB connector, and the identification pin of the micro USB interface of the terminal device is in a floating state. At this time, the level of the identification pin output of the micro USB interface of the terminal device is a high level. When the micro USB interface of the terminal device is connected to the first interface of the USB connector, and the second interface of the USB connector is connected to the USB device, the second ground pin of the second interface of the USB connector is deformed such that the second interface The second identification pin is connected to the second ground pin. At this time, the terminal device recognizes that the identification pin of the micro USB interface of the terminal device is short-circuited to the ground, and the terminal device sets the GPIO port of the terminal device corresponding to the ID pin. When placed at a low level, the terminal device recognizes that the level of the identification pin output of the micro USB interface of the terminal device changes from a high level to a low level, and the terminal device supplies power to the USB device so that the terminal device is connected to the USB connection. The USB device is powered, and then the terminal device performs USB enumeration.
当USB设备从USB连接器的第二接口拔出时,USB连接器的第二接口的第二接地引脚形变消失使得USB连接器的第二接口的第二身份标识引脚与第二接地引脚断开连接,此时,终端设备识别终端设备的微型USB接口的身份识别引脚悬空,终端设备将终端设备的与ID引脚对应的GPIO端口置于高电平,终端设备识别终端设备的微型USB接口的身份识别引脚输出的电平从低电平变为高电平,终端设备停止为终端设备的微型USB接口的电压引脚供电,以断开终端设备为连接于所述USB连接器的USB设备供电。When the USB device is unplugged from the second interface of the USB connector, the second ground pin deformation of the second interface of the USB connector disappears such that the second identification pin and the second ground lead of the second interface of the USB connector The foot is disconnected. At this time, the terminal device recognizes that the identification pin of the micro USB interface of the terminal device is suspended, and the terminal device sets the GPIO port of the terminal device corresponding to the ID pin to a high level, and the terminal device recognizes the terminal device. The level of the identification pin output of the micro USB interface changes from a low level to a high level, and the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device to disconnect the terminal device to connect to the USB connection. The USB device is powered.
其中,上述终端设备可以是手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(MID,mobile internet device)、可穿戴设备(例如智能手表(如iwatch等)、智能手环、计步器等)或其他终端设备。The terminal device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (MID), a wearable device (such as a smart watch (such as an iwatch), a smart bracelet, a pedometer, etc. ) or other terminal equipment.
其中,USB设备可以是U盘、硬盘、手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(MID,mobile internet device)等等。Among them, the USB device can be a USB flash drive, a hard disk, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (MID), and the like.
可以看出,由于USB连接器的第二接口的第二身份识别引脚通过USB设备连接至第二接地引脚,当USB连接器的第一接口与终端设备的微型USB接口连接,且USB连接器的第二接口未连接USB设备时,第二接口的第二身份识别引脚处于悬空状态,终端设备的与ID引脚对应的GPIO端口仍处于高电平状态,终端设备不为USB设备供电,不进行USB枚举,只有在第二接口连接USB设备 时,第二身份识别引脚与第二接地引脚连接,终端设备将终端设备的与ID引脚对应的GPIO端口置于低电平状态,终端设备识别终端设备的微型USB接口的身份识别引脚输出低电平,终端设备为USB设备供电,并进行USB枚举,进而降低了终端设备的功耗。It can be seen that since the second identification pin of the second interface of the USB connector is connected to the second ground pin through the USB device, when the first interface of the USB connector is connected to the micro USB interface of the terminal device, and the USB connection When the second interface of the device is not connected to the USB device, the second identification pin of the second interface is in a floating state, and the GPIO port of the terminal device corresponding to the ID pin is still in a high state, and the terminal device does not supply power to the USB device. , do not perform USB enumeration, only connect USB device on the second interface When the second identification pin is connected to the second ground pin, the terminal device sets the GPIO port of the terminal device corresponding to the ID pin to a low state, and the terminal device identifies the identity of the micro USB interface of the terminal device. The pin outputs a low level, and the terminal device supplies power to the USB device and performs USB enumeration, thereby reducing the power consumption of the terminal device.
可选的,在终端设备进行USB枚举之后,还包括:Optionally, after the terminal device performs USB enumeration, the method further includes:
若USB枚举不成功的次数大于或等于预设阈值,终端设备停止为终端设备的微型USB接口的电压引脚供电,以断开终端设备为连接于所述USB连接器的USB设备供电。If the number of times the USB enumeration is unsuccessful is greater than or equal to the preset threshold, the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device to disconnect the terminal device to supply power to the USB device connected to the USB connector.
其中,上述预设阈值例如可以为1、2、3、5、6、7或是其他值。The preset threshold may be 1, 2, 3, 5, 6, 7, or other values, for example.
举例来说,由于第二接地引脚发生形变使得第二身份标识引脚与第二接地引脚连接,终端设备将终端设备的与ID引脚对应的GPIO端口置于低电平状态,终端设备识别终端设备的微型USB接口的身份识别引脚输出低电平,终端设备为USB设备供电,并进行USB枚举。若第二接口连接USB设备是有问题的USB设备的时候,这种情况下终端设备进行USB枚举是不能枚举成功的,此时若终端设备一直USB枚举,会增加终端设备的功耗。因此,为了降低终端设备的功耗,若USB枚举不成功的次数大于或等于预设阈值,终端设备停止为终端设备的微型USB接口的电压引脚供电。For example, since the second ground pin is deformed such that the second identity pin is connected to the second ground pin, the terminal device sets the GPIO port of the terminal device corresponding to the ID pin to a low state, and the terminal device The identification pin of the micro USB interface that identifies the terminal device outputs a low level, and the terminal device supplies power to the USB device and performs USB enumeration. If the USB device connected to the USB device is a problematic USB device, the USB device enumeration in the terminal device cannot be enumerated successfully. In this case, if the terminal device has been enumerated by USB, the power consumption of the terminal device will increase. . Therefore, in order to reduce the power consumption of the terminal device, if the number of unsuccessful USB enumeration is greater than or equal to the preset threshold, the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device.
可选的,终端设备在停止为终端设备的微型USB接口的电压引脚供电之后,还包括:Optionally, after the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device, the terminal device further includes:
终端设备输出提示信息,提示信息用于提示用户重新插拔连接于USB连接器的USB设备。The terminal device outputs a prompt message for prompting the user to re-plug the USB device connected to the USB connector.
其中,终端设备输出提示信息的方式可以是短信提醒,语音提醒或是呼吸灯提醒;等等。The manner in which the terminal device outputs the prompt information may be a short message reminder, a voice reminder or a breathing light reminder; and the like.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or some of the technical features are replaced by equivalents; and the modifications or substitutions do not deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims (13)

  1. 一种USB连接器,其特征在于,包括第一接口和第二接口,所述第一接口包括第一数据引脚、第二数据引脚、第一接地引脚、第一电压引脚以及第一身份识别引脚,所述第二接口包括第三数据引脚、第四数据引脚、第二接地引脚、第二电压引脚以及第二身份识别引脚,所述第一数据引脚连接至所述第三数据引脚,所述第二数据引脚连接至所述第四数据引脚,所述第一接地引脚连接至所述第二接地引脚,所述第一电压引脚连接至所述第二电压引脚,所述第一身份标识引脚连接至所述第二身份标识引脚,所述第二身份标识引脚通过USB设备连接至所述第二接地引脚,当USB设备插入所述第二接口时,所述第二接地引脚发生形变使得所述第二身份标识引脚与所述第二接地引脚连接,当USB设备从所述第二接口拔出时,所述第二接地引脚形变消失使得所述第二身份标识引脚与所述第二接地引脚断开连接。A USB connector, comprising: a first interface and a second interface, the first interface comprising a first data pin, a second data pin, a first ground pin, a first voltage pin, and a An identification pin, the second interface includes a third data pin, a fourth data pin, a second ground pin, a second voltage pin, and a second identification pin, the first data pin Connected to the third data pin, the second data pin is connected to the fourth data pin, the first ground pin is connected to the second ground pin, the first voltage lead a pin connected to the second voltage pin, the first identity pin being connected to the second identity pin, the second identity pin being connected to the second ground pin by a USB device Demolition of the second ground pin when the USB device is inserted into the second interface, such that the second identity pin is connected to the second ground pin, when the USB device is pulled from the second interface When the second ground pin is deformed, the second identity disappears Identifying a second pin is disconnected from the ground pin.
  2. 根据权利要求1所述的USB连接器,其特征在于,当所述第二接口处于未插入USB设备状态时,所述第二接地引脚未发生形变,所述第二身份标识引脚未与所述第二接地引脚连接,所述第二身份标识引脚处于悬空状态。The USB connector according to claim 1, wherein when the second interface is in a state in which the USB device is not inserted, the second ground pin is not deformed, and the second identity pin is not The second ground pin is connected, and the second identity pin is in a floating state.
  3. 根据权利要求1或2所述的USB连接器,其特征在于,当所述第二接口处于插入USB设备状态时,所述第二接地引脚发生形变,所述第二接地引脚与所述USB设备的接口的接地引脚连接,所述第二身份标识引脚和所述第二接地引脚连接,以使得所述第二身份标识引脚对地短路。The USB connector according to claim 1 or 2, wherein when the second interface is in a state of being inserted into a USB device, the second ground pin is deformed, the second ground pin is A ground pin of the interface of the USB device is connected, and the second identity pin is coupled to the second ground pin to short the second identity pin to ground.
  4. 根据权利要求1或2所述的USB连接器,其特征在于,当所述第二接口处于插入USB设备状态时,所述第二接地引脚发生形变,所述第二身份标识引脚和所述第二接地引脚与所述USB设备的接地引脚的连接,以使得所述第二身份标识引脚对地短路。The USB connector according to claim 1 or 2, wherein when the second interface is in a state of being inserted into a USB device, the second ground pin is deformed, and the second identity pin and the device are The second ground pin is connected to the ground pin of the USB device to short the second identity pin to ground.
  5. 根据权利要求1-4任一项所述的USB连接器,其特征在于,所述第二身份标识引脚和所述第二接地引脚的形状呈U型。The USB connector according to any one of claims 1 to 4, wherein the shape of the second identity pin and the second ground pin are U-shaped.
  6. 根据权利要求1-4任一项所述的USB连接器,其特征在于,所述第二身份标识引脚和所述第二接地引脚的形状呈L型。The USB connector according to any one of claims 1 to 4, wherein the second identity pin and the second ground pin are L-shaped.
  7. 根据权利要求1-6任一项所述的USB连接器,其特征在于,所述第二 身份标识引脚和所述第二接地引脚的间隙小于或等于1毫米。The USB connector according to any one of claims 1 to 6, wherein the second The gap between the identification pin and the second ground pin is less than or equal to 1 mm.
  8. 根据权利要求1-7任一项所述的USB连接器,其特征在于,所述第一接口为微型USB接口,所述第二接口为USB接口。The USB connector according to any one of claims 1 to 7, wherein the first interface is a micro USB interface, and the second interface is a USB interface.
  9. 根据权利要求8所述的USB连接器,其特征在于,所述第一接口为微型公座USB接口;或者,所述第一接口为微型母座USB接口。The USB connector according to claim 8, wherein the first interface is a micro-seat USB interface; or the first interface is a micro-master USB interface.
  10. 根据权利要求8所述的USB连接器,其特征在于,所述第二接口为公座USB接口;或者,所述第二接口为母座USB接口。The USB connector according to claim 8, wherein the second interface is a male USB interface; or the second interface is a female USB interface.
  11. 一种检测方法,终端设备与权1~10任一项所述的USB连接器连接,其特征在于,包括:The invention is characterized in that: the terminal device is connected to the USB connector according to any one of claims 1 to 10, characterized in that it comprises:
    所述终端设备检测所述终端设备的微型USB接口的身份识别引脚的状态;The terminal device detects a status of an identity recognition pin of the micro USB interface of the terminal device;
    若所述终端设备检测到所述终端设备的微型USB接口的身份识别引脚输出的电平从高电平变为低电平,所述终端设备为所述终端设备的微型USB接口的电压引脚供电,以使得所述终端设备为连接于所述USB连接器的USB设备供电;所述终端设备进行USB枚举;If the terminal device detects that the level of the identification pin output of the micro USB interface of the terminal device changes from a high level to a low level, the terminal device is a voltage reference of the micro USB interface of the terminal device. Powering the foot to enable the terminal device to supply power to a USB device connected to the USB connector; the terminal device performs USB enumeration;
    若所述终端设备检测到所述终端设备的微型USB接口的身份识别引脚输出的电平从低电平变为高电平,所述终端设备停止为所述终端设备的微型USB接口的电压引脚供电,以断开所述终端设备为连接于所述USB连接器的USB设备供电。If the terminal device detects that the level of the identification pin output of the micro USB interface of the terminal device changes from a low level to a high level, the terminal device stops the voltage of the micro USB interface of the terminal device. The pin is powered to disconnect the terminal device to power a USB device connected to the USB connector.
  12. 根据权利要求11所述的方法,其特征在于,所述终端设备进行USB枚举之后,所述方法还包括:The method according to claim 11, wherein after the terminal device performs USB enumeration, the method further includes:
    若所述USB枚举不成功的次数大于或等于预设阈值,所述终端设备停止为所述终端设备的微型USB接口的电压引脚供电,以断开所述终端设备为连接于所述USB连接器的USB设备供电。If the number of times the USB enumeration is unsuccessful is greater than or equal to a preset threshold, the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device to disconnect the terminal device from being connected to the USB The connector's USB device is powered.
  13. 根据权利要求12所述的方法,其特征在于,所述终端设备停止为所述终端设备的微型USB接口的电压引脚供电之后,所述方法还包括:The method according to claim 12, wherein after the terminal device stops supplying power to the voltage pin of the micro USB interface of the terminal device, the method further includes:
    所述终端设备输出提示信息,所述提示信息用于提示用户重新插拔连接于所述USB连接器的USB设备。 The terminal device outputs prompt information, where the prompt information is used to prompt the user to re-plug the USB device connected to the USB connector.
PCT/CN2015/098763 2015-12-24 2015-12-24 Usb connector, and detection method WO2017107147A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580085480.9A CN108432066B (en) 2015-12-24 2015-12-24 USB connector and detection method
PCT/CN2015/098763 WO2017107147A1 (en) 2015-12-24 2015-12-24 Usb connector, and detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/098763 WO2017107147A1 (en) 2015-12-24 2015-12-24 Usb connector, and detection method

Publications (1)

Publication Number Publication Date
WO2017107147A1 true WO2017107147A1 (en) 2017-06-29

Family

ID=59088757

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/098763 WO2017107147A1 (en) 2015-12-24 2015-12-24 Usb connector, and detection method

Country Status (2)

Country Link
CN (1) CN108432066B (en)
WO (1) WO2017107147A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901201A (en) * 2010-08-06 2010-12-01 中兴通讯股份有限公司 Method and device for realizing USB OTG function on electronic equipment
CN202134745U (en) * 2011-05-09 2012-02-01 赵振涛 Multifunctional USB OTG data line
CN102544920A (en) * 2010-12-22 2012-07-04 昆达电脑科技(昆山)有限公司 Cable
US20130171875A1 (en) * 2011-12-28 2013-07-04 Byoung Jin Kwon Universal serial bus memory device and method of manufacturing the same
CN103346442A (en) * 2013-06-17 2013-10-09 三星半导体(中国)研究开发有限公司 Connector and memory device comprising same
CN103378505A (en) * 2012-04-26 2013-10-30 鸿富锦精密工业(深圳)有限公司 Connector assembly
CN104009354A (en) * 2013-02-25 2014-08-27 华为终端有限公司 Usb connector
KR101487763B1 (en) * 2013-08-06 2015-01-29 주식회사 네오랩컨버전스 Synchronization and control systems of smart devices and peripherals using USB communication and the methods

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2838083Y (en) * 2005-06-21 2006-11-15 上海莫仕连接器有限公司 Electronic card connector
CN101281421B (en) * 2007-12-29 2010-06-02 青岛海信电器股份有限公司 USB interface switching device
CN102244321B (en) * 2010-05-14 2015-04-01 中山市云创知识产权服务有限公司 USB (universal serial bus) connection cable

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901201A (en) * 2010-08-06 2010-12-01 中兴通讯股份有限公司 Method and device for realizing USB OTG function on electronic equipment
CN102544920A (en) * 2010-12-22 2012-07-04 昆达电脑科技(昆山)有限公司 Cable
CN202134745U (en) * 2011-05-09 2012-02-01 赵振涛 Multifunctional USB OTG data line
US20130171875A1 (en) * 2011-12-28 2013-07-04 Byoung Jin Kwon Universal serial bus memory device and method of manufacturing the same
CN103378505A (en) * 2012-04-26 2013-10-30 鸿富锦精密工业(深圳)有限公司 Connector assembly
CN104009354A (en) * 2013-02-25 2014-08-27 华为终端有限公司 Usb connector
CN103346442A (en) * 2013-06-17 2013-10-09 三星半导体(中国)研究开发有限公司 Connector and memory device comprising same
KR101487763B1 (en) * 2013-08-06 2015-01-29 주식회사 네오랩컨버전스 Synchronization and control systems of smart devices and peripherals using USB communication and the methods

Also Published As

Publication number Publication date
CN108432066B (en) 2020-09-29
CN108432066A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
TWI398759B (en) Power supply device, portable electronic apparatus and related method for determining types of a power supply device
CN104081368B (en) Mobile device automatic detection device and method
TWI553486B (en) Universal serial bus dock and associated method for charging a portable device
WO2018176901A1 (en) Adapter, terminal device and adapter system
US10540495B2 (en) USB-C usage indication
US20100174835A1 (en) Signal Converter for an All-In-One USB Connector
TW201602793A (en) Portable electronic device and power management method thereof
US20170005495A1 (en) Method and apparatus for charging electronic device with usb connection
KR20130122266A (en) System and apparatus and method for performing charging in host mode
TW201541228A (en) Cable error signal
TWI554889B (en) Electric system
WO2017107147A1 (en) Usb connector, and detection method
CN109346883A (en) A kind of system for realizing the positive anti-plug of Type-C interface
WO2016074388A1 (en) Charging method and apparatus
CN204835056U (en) USB transmission equipment
TWM496204U (en) Universal power delivery cable, power delivery controller applied to a universal serial bus cable, and universal serial bus cable
TWI545429B (en) Electronic device and charging interface
TW201543222A (en) Universal serial bus and mobile electronic device
TWI462560B (en) Portable electronic device, charging system and charging method
CN106374561A (en) Charging method of mobile terminal
WO2022253207A1 (en) Connector and power supply control method applied to connector
CN215954293U (en) TypeC connecting line and PD firmware upgrading system
US9774712B2 (en) Modular control interface
US10051395B2 (en) Accessory management and data communication using audio port
TWM561949U (en) Connection interface adapter

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15911146

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15911146

Country of ref document: EP

Kind code of ref document: A1