为什么ADB over wifi多次尝试连接?

时间:2013-12-10 00:47:15

标签: adb adbwireless

当使用ADB通过WiFi连接到我的手机时,我发出命令adb connect <ip address>但是在命令工作之前通常需要3到10次尝试,为什么?

典型的会话如下所示,我在每个命令运行之间没有任何改变,但最终它神奇地起作用。一旦它开始工作,它就会继续工作。

我的手机已启用端口5555并启用了无线ADB。

gavin@gavin-Inspiron-N5010 ~ $ adb devices
List of devices attached 

gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
unable to connect to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
connected to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb devices
List of devices attached 
192.168.0.8:5555    device
gavin@gavin-Inspiron-N5010 ~ $ adb disconnect 192.168.0.8

gavin@gavin-Inspiron-N5010 ~ $ adb devices
List of devices attached 

gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
connected to 192.168.0.8:5555
gavin@gavin-Inspiron-N5010 ~ $ adb disconnect 192.168.0.8

gavin@gavin-Inspiron-N5010 ~ $ adb connect 192.168.0.8
connected to 192.168.0.8:5555

0 个答案:

没有答案