打开主菜单

Wiki-Orange Pi β

更改

Orange Pi 5 detail

添加2,810字节, 2023年4月20日 (四) 15:51
26pin 的 PWM 测试
7) 然后使用示波器测量开发板 26pin 中的第 7 号引脚就可以看到下面的波形了<br><br>
[[Image:Pi-5-details2-pic102.png]]<br><br>
 
=== 使用数据线连接 adb 调试 ===
1) 首先准备一根品质良好的 Type-C 数据线<br><br>
[[Image:Pi-5-details2-pic103.png]]<br><br>
2) 然后使用 Type-C 数据线将开发板连接到电脑的 USB 接口中(请同时使用 TypeC电源给开发板供电)<br><br>
3) 在 Ubuntu PC 上安装 adb 工具<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''sudo apt update'''<br>
test@test:~$ '''sudo apt -y install adb'''
|}
4) 通过下面的命令可以查看识别到的 ADB 设备<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''adb devices''' <br>
List of devices attached <br>
S63QCF54CJ device <br>
test@test:~$ '''lsusb'''<br>
Bus 003 Device 006: ID 2207:0006
|}
5) 然后在 Ubuntu PC 上通过 adb shell 就可以登录到 android 系统了<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''adb shell'''<br>
console:/ $
|}
6) 执行命令重新挂载 Android 系统<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''adb root'''<br>
test@test:~$ '''adb remount'''
 
|}
7) 然后就可以传输文件到 Android 系统了<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''adb push example.txt /system/'''
|}
 
=== 使用网络连接 adb 调试 ===
{| 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:/ #
|}
8,460
个编辑