登錄 注冊
購物車0
TOP
Imgs 行業(yè)資訊

0

ADB wifi連接多臺鴻蒙設(shè)備的準備工作

2021-04-16 17:46:06

首先將兩臺鴻蒙設(shè)備插入電腦的usb上
查看兩臺鴻蒙設(shè)備的deviceid
C:\Users\Administrator》adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
FRU6R2011500QWER unauthorized
MVT5T1970300ABCD unauthorized
切換成wifi調(diào)試,將以下命令依次輸入
adb -s MVT5T1970300ABCD tcpip 55555
restarting in TCP mode port: 55555
adb -s FRU6R2011500QWER tcpip 55556
restarting in TCP mode port: 55556
依次進入每臺鴻蒙設(shè)備看一下上面的ip地址
依次連接兩臺鴻蒙設(shè)備
C:\Users\Administrator》adb connect 192.168.0.10:55555
connected to 192.168.0.10:55555
C:\Users\Administrator》adb connect 192.168.0.20:55556
connected to 192.168.0.20:55556
#試錯,看看重復(fù)連會怎么樣
C:\Users\Administrator》adb connect 192.168.0.10:55555
already connected to 192.168.0.10:55555
使用scrcpy 連接一臺鴻蒙設(shè)備
C:\Users\Administrator》scrcpy -s 192.168.0.10:55555
INFO: scrcpy 1.17 《https://github.com/Genymobile/scrcpy
C:\ProgramData\chocolatey\lib\scrcpy\tools\scrcpy-server: 1 file pushed, 0 skipped. 1.0 MB/s (34930 bytes in 0.034s)
[server] INFO: Device: HUAWEI TAS-AL00 (Android 10)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2336
使用鴻蒙專用deveco開發(fā)工具連接:運行

使用鴻蒙專用deveco開發(fā)工具連接:調(diào)試

結(jié)論:鴻蒙系統(tǒng)兼容adb wifi調(diào)試,對于想不要約束的開發(fā)者,可以使用.

高都電子,為客戶創(chuàng)造價值!

雙面板免費加費,四層板加急打樣,厚銅電路板打樣

Xcm