我有一个简单的ATMEL微控制器,板上有一个LED灯,通过FTDI-232电缆和USB->micro-USB OTG电缆连接到Nexus平板电脑。如果出现以下情况,则无法识别设备:2)The OTG cable is connectedto the FTDI cable如果满足以下条件,则可以识别:
1)The FTDI cable is
我可以检测到OTG电缆是否已连接或断开。但如何在应用程序运行时检测OTG数据线是否已连接。我的应用程序只检测otg电缆是否连接或分离。//If Product and Vendor Id match then set boolean "true" in global variable
tv_otg.setText("External OTG storage device connected !")ACTION_US
{"pName":"BB8GB OTG USB Flash Drive for Smart Phone/Tablet PC Rose Red","pID":"1","pSKU":"81010229","pShortDescp":"BB8GB OTG USB Flash Drive for Smart Phone/Tablet PC Rose Red","pLongDesc