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:

  1. Connect the device to the computer with the USB cable.

  2. Make sure the device has “USB debugging” mode enabled.

  3. Run the command:

    adb ​​tcpip 5555

  4. 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