8,460
个编辑
更改
创建页面,内容为“{| class="wikitable" style="background-color:#ffffdc;width:800px;" |- | <br><big>'''使用网络 adb 无需 USB Typc C 接口的数据线来连接电脑和开发板…”
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
| <br><big>'''使用网络 adb 无需 USB Typc C 接口的数据线来连接电脑和开发板,而是通过网络来通信,所以首先请确保开发板的有线或者无线网络已经连接好了,然后获取开发板的 IP 地址,后面要用到。'''</big><br><br>
|}
1) 确保 Android 系统的 '''service.adb.tcp.port''' 设置为 5555 端口号<br>
{| class="wikitable" style="width:800px;"
|-
|
console:/ # '''getprop | grep "adb.tcp"'''<br>
[service.adb.tcp.port]: [5555]
|}
2) 如果 '''service.adb.tcp.port''' 没有设置,可以使用下面的命令设置网络 adb 的端口号<br>
{| class="wikitable" style="width:800px;"
|-
|
console:/ # '''setprop service.adb.tcp.port 5555'''<br>
console:/ # '''stop adbd'''<br>
console:/ # '''start adbd'''
|}
3) 在 Ubuntu PC 上安装 adb 工具<br>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''sudo apt update'''<br>
test@test:~$ '''sudo apt install -y adb'''
|}
4) 然后在 Ubuntu PC 上连接网络 adb<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''adb connect 192.168.1.xxx''' ('''IP''' 地址需要修改为开发板的 '''IP''' 地址)<br>
daemon not running; starting now at tcp:5037<br>
daemon started successfully <br>
connected to 192.168.1.xxx:5555<br><br><br>
test@test:~$ '''adb devices'''<br>
List of devices attached <br>
192.168.1.xxx:5555 device
|}
5) 然后在 Ubuntu PC 上通过 adb shell 就可以登录到 android 系统了<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''adb shell'''<br>
console:/ #
|}
|-
| <br><big>'''使用网络 adb 无需 USB Typc C 接口的数据线来连接电脑和开发板,而是通过网络来通信,所以首先请确保开发板的有线或者无线网络已经连接好了,然后获取开发板的 IP 地址,后面要用到。'''</big><br><br>
|}
1) 确保 Android 系统的 '''service.adb.tcp.port''' 设置为 5555 端口号<br>
{| class="wikitable" style="width:800px;"
|-
|
console:/ # '''getprop | grep "adb.tcp"'''<br>
[service.adb.tcp.port]: [5555]
|}
2) 如果 '''service.adb.tcp.port''' 没有设置,可以使用下面的命令设置网络 adb 的端口号<br>
{| class="wikitable" style="width:800px;"
|-
|
console:/ # '''setprop service.adb.tcp.port 5555'''<br>
console:/ # '''stop adbd'''<br>
console:/ # '''start adbd'''
|}
3) 在 Ubuntu PC 上安装 adb 工具<br>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''sudo apt update'''<br>
test@test:~$ '''sudo apt install -y adb'''
|}
4) 然后在 Ubuntu PC 上连接网络 adb<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''adb connect 192.168.1.xxx''' ('''IP''' 地址需要修改为开发板的 '''IP''' 地址)<br>
daemon not running; starting now at tcp:5037<br>
daemon started successfully <br>
connected to 192.168.1.xxx:5555<br><br><br>
test@test:~$ '''adb devices'''<br>
List of devices attached <br>
192.168.1.xxx:5555 device
|}
5) 然后在 Ubuntu PC 上通过 adb shell 就可以登录到 android 系统了<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''adb shell'''<br>
console:/ #
|}