Application Debugging when Using a USB Pinpad
To debug the application with USB pinpads, it will often be necessary to place the device for TCP/IP debugging, instead of the conventional USB cable. In this case, follow the steps below:
-
Connect the device to the computer with the USB cable.
-
Make sure the device has “USB debugging” mode enabled.
-
Run the command:
adb tcpip 5555
-
Enter the connection command to the wifi device, indicating its IP (note that DHCP can give dynamic IPs to each connection):
adb connect <Android device IP>
Example, assuming the Android device is at IP 192.168.0.7:
C:\>adb tcpip 5555
restarting in TCP mode port: 5555
C:\>adb connect 192.168.0.7
connected to 192.168.0.7:5555
Okay, this way it should be possible to do wi-fi debugging through Eclipse.
To return adb to USB mode, plug the device back into your computer's USB port, and type:
adb usb
Other information:
http://developer.android.com/guide/topics/connectivity/usb/index.html
Updated 15 days ago