参考:http://hi.baidu.com/sanlong99/item/23f8e9ad51c3e99e14107372 确切的说,目前手机支持的扁口micro-USB,为micro-USB-B口,其正视图如下: 引脚的定义:
Pin Name Color Description 1 VCC Red +5 V 2 D− White Data − 3 D+ Green Data + 4 ID none permits distinction of Micro-A- and Micro-B-Plug. Type A: connected to Ground, Type B: not connected 5 GND Black Signal Ground 如果买到的micro-USB插头的话,其引线是这样的(后面正视): The back of the connector looks like this: — — — — — Pins are: 5 3 1
4 2 很清楚了吧!因此制作OTG线很简单,只需要4脚接地即可,这样当插到手机上时,手机检测4脚为低,则会知道插入了一个从设备,会向其供电并读取设备信息等(但至不支持OTG关键看手机型号,不是线的问题)。