cd C:\Program Files\Android\android-sdk\platform-tools
意思是切換資料夾到剛剛找的路徑
adb tcpip 5555
意思是用tcpip連線,連接埠號5555做Debug伺服器
5. 然後就可以脫離USB連線了
在同一個地方再打入像是
adb connect 192.168.1.3:5555
中間換成你手機的IP位址
意思是讓電腦使用網路連線到你的手機
6. 這時候你就可以用無線做操作了
你可以打 adb logcat
就會動態傳輸手機的Log到畫面上 (按Ctrl+C結束)
打入adb devices,就會列出這個特別的裝置
List of devices attached 192.168.1.3:5555 device
就不會是類似
List of devices attached SH11KRX10258 device
這樣
回到Eclipse上,DDMS已經出現這個特別的裝置了
————————————————————
還原回正常的USB傳輸線的模式,要打 adb usb
————————————————————
官方原文截錄
用 USB 傳輸線接上你的手機
到Android SDK的路徑 platform-tools/ 資料夾
directory, enter adb tcpip 5555 at the command prompt.
Enter adb connect <device-ip-address>:5555 You should now be connected to the Android-powered device and can issue the usual adb commands like adb logcat.
To set your device to listen on USB, enter adb usb.
# change PATH to be what your environment needs usually what is in # /etc/environment #PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games” #export PATH=$PATH
# for PATH and LANG from /etc/environment # pam will auto process the environment file if /etc/pam.d/xrdp-sesman # includes # auth required pam_env.so readenv=1 #. /etc/environment #export PATH=$PATH #export LANG=$LANG
# for bash profile #. ~/.bash_profile #. /etc/profile
for WindowManager in $SESSIONS do which $WindowManager if test $? -eq 0 then echo “Starting $WindowManager” $WindowManager exit 0 fi done
Note: Steps are true for firmwares current as of the author date of this article. v2.4, post SP2 firmwares. These steps were done with build 12307 (2009 06 17), widely regarded as stable. Other firmware builds of DD-WRT have the same or very similar steps.
Open up the Web Interface to your DD-WRT Device
Set WAN ‘Connection Type’ to Disabled.
Down the Basic Setup page, the option WAN Port appears. Check the box ‘Assign WAN Port to Switch’.
Save/Reboot
The WAN port is now the same as the other LAN ports.
先開啟網頁介面
到Basic Setup-> WAN Connection Type,設定成Disabled
基本設定 -> WAN 連接類型,設定成「關閉」
然後捲軸往下拉,有個
Assign WAN Port to Switch (將 WAN 端指定給交換器) 的勾勾,把它勾起來