usb debugging problem in Imx6 sabre board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

usb debugging problem in Imx6 sabre board

跳至解决方案
3,301 次查看
sameerarvikar
Contributor III

I am trying to use adb commands with the board , Its having kitkat installed on it

Now the problem is that usb debugging port (otg port ) in imx6 sabre board is also used for putting input devices (like mouse and keyboard)

So i enable usb debugging option in android using mouse

Now when i connect usb debugging using the cable with computer , the android asks for (allow device to connect on its display) , but because i have no option for input device like a mouse (as the port is busy ) so i can never allow the device to connect. and hence adb devices command output is always 

Device id  ---   unauthorised

So what is the solution or workaround of this problem ??

标签 (2)
标记 (2)
1 解答
2,544 次查看
houyong
Contributor III

I found the most effective way to solve the problem:

1. connect usb otg port and usb debug port to your pc

2. login through serial port

3. execute follow commands:

root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 66
root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 66

keyevent 61 means keyboard tab key

keyevent 66 means keyboard enter key

:smileymischief:

在原帖中查看解决方案

5 回复数
2,545 次查看
houyong
Contributor III

I found the most effective way to solve the problem:

1. connect usb otg port and usb debug port to your pc

2. login through serial port

3. execute follow commands:

root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 66
root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 66

keyevent 61 means keyboard tab key

keyevent 66 means keyboard enter key

:smileymischief:

2,544 次查看
bensonwu
Contributor III

Thank you a lot ! houyong

0 项奖励
回复
2,544 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello sameerarvikar,

   On SabreSD board, Only USB OTG port can be used, the port can work with Device Mode or Host mode, if you are connencting mouse on the port, it means the USB OTG is working with Host mode, so at the time, you can't use adb to debug your application.

   you will have to make it work with device mode if want to debug your application.

Best Regards,

Weidong

0 项奖励
回复
2,544 次查看
sameerarvikar
Contributor III

I got your point ,but how to click on yes when pop of allow device (some RSA check also) comes as soon as i connect usb cable 

0 项奖励
回复
2,544 次查看
houyong
Contributor III

i got the same problem now, how about the ethernet port? we may control the device through teamviewer.

0 项奖励
回复