Android Development of Wireless Debugging Method for Mobile Phone

  • 2021-10-25 07:58:50
  • OfStack

Are you still sad that the mobile phone usb is occupied and can't link to the compiler? Do you feel that wireless debugging is out of reach?

Read the following steps to make wireless debugging easy for you.

1. Connect your phone to the Wi-Fi network first 2. Link your phone to your computer 3. Configure Window, adb, Linux and install adb 4. Make sure your phone is connected to the same wireless network as your computer 5. Enter on the command side

$ adb tcpip 5555  ( 5555 Is the port number, which can be specified freely) 

Then enter the following command

$ adb tcpip

At this time, you can view the ip address of your mobile phone as follows

10.39.211.183/8 0x000000c1 d2:41:80:1f:55:11

Unplug your cell phone

Enter last


 $ adb connect Mobile phone IP : 5555  (e.g. $ adb connect10.39.211.183:5555 ) 

At this point you see your Android Android Monitor has a device link at this time you can run 1 to their own program to be prepared, relatively slow.
You can also use the following command to see if it has been linked

 $ adb devices

If you have not unplugged USB at this time, you can see that the link is two devices, and multiple devices can link as long as the port numbers set are different.

After debugging, you can use the following command or restart the camera

$ adb usb

Advantages of wireless debugging:

Convenient, flexible, in the effective distance can be used, very suitable for TV-based set-top box and mobile phone need peripheral development debugging

Disadvantages of wireless debugging:

The signal is affected by the surrounding environment, which will lead to instability, slow transmission speed and easy disconnection of Window. Sogou QQ Cool Dog Storm will seize the mobile phone port and exit like one.

Summarize


Related articles: