Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 5 detail

10,860 bytes removed, 09:50, 24 April 2023
26pin's SPI test
== '''How to use Win32Diskimager to burn Linux image ''' ==
1) First prepare a TF card with a capacity of 16GB or more. The transmission speed of the TF card must be class 10 or above. It is recommended to use a TF card of SanDiskand other brands<br><br>
2) Then use the card reader to insert the TF card into the computer<br><br>
c. After the image writing is completed, click the "Exit" button to exit, and then you can pull out the TF card and insert it into the development board to start<br><br>
== '''Linux system instructions ''' ==
=== Supported Linux image types and kernel versions ===
{| class="wikitable" style="width:800px;"
LMP Version: 5.1 (0xa) Subversion: 0x1111 Manufacturer: Broadcom Corporation (15)
|}
5) For the wifi connection and test method, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#WIFI connection test | the section of WIFI connection test]]</span>, which will not be repeated here<br><br>
6) For the test method of Bluetooth, please refer to the section on Bluetooth usage, so I won’t go into details here<br><br>
1) Click the Bluetooth icon in the upper right corner of the desktop<br><br>
[[Image:Pi-5-details-pic116.png]]<br><br>
2) 然后选择适配器Then select the adapter<br><br>
[[Image:Pi-5-details-pic117.png]]<br><br>
3) 如果有提示下面的界面,请选择 If there is a prompt on the following interface, please select '''Yes'''<br><br>
[[Image:Pi-5-details-pic118.png]]<br><br>
4) 然后在蓝牙的适配器设置界面中设置 Then set the '''Visibility Setting''' to '''Always visible''',然后关闭即可in the Bluetooth adapter setting interface, and then close it<br><br>
[[Image:Pi-5-details-pic119.png]]<br><br>
5) 然后打开蓝牙设备的配置界面Then open the configuration interface of the Bluetooth device<br><br>
[[Image:Pi-5-details-pic120.png]]<br><br>
6) 点击 Click '''Search''' 即可开始扫描周围的蓝牙设备to start scanning the surrounding Bluetooth devices<br><br>
[[Image:Pi-5-details-pic121.png]]<br><br>
7) 然后选择想要连接的蓝牙设备,再点击鼠标右键就会弹出对此蓝牙设备的操作界面,选择 '''Then select the Bluetooth device you want to connect to, and then click the right button of the mouse to pop up the operation interface of the Bluetooth device, select Pair''' 即可开始配对,这里演示的是和 to start pairing, and the demonstration here is to pair with an Android 手机配对phone<br><br>
[[Image:Pi-5-details-pic122.png]]<br><br>
8) 配对时,桌面的右上角会弹出配对确认框,选择 '''When pairing, a pairing confirmation box will pop up in the upper right corner of the desktop, just select Confirm''' 确认即可,此时手机上也同样需要进行确认to confirm, and the phone also needs to confirm at this time<br><br>
[[Image:Pi-5-details-pic123.png]]<br><br>
9) 和手机配对完后,可以选择已配对的蓝牙设备,然后右键选择 After pairing with the mobile phone, you can select the paired Bluetooth device, then right-click and select '''Send a File''' 即可开始给手机发送一张图片to start sending a picture to the mobile phone<br><br>
[[Image:Pi-5-details-pic124.png]]<br><br>
10) 发送图片的界面如下所示The interface for sending pictures is as follows<br><br>
[[Image:Pi-5-details-pic125.png]]<br><br>
=== 查询 连接 USB 鼠标或键盘测试 interface test ==={| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <br><big>'''The USB interface can be connected to a USB hub to expand the number of USB interfaces.'''</big><br><br>|}=== Connect USB mouse or keyboard to test ===1) Insert the USB interface keyboard into the USB 接口的键盘插入 interface of the Orange Pi 开发板的 USB 接口中development board<br><br>2) 连接 Connect the Orange Pi 开发板到 development board to the HDMI 显示器display<br><br>3) 如果鼠标或键盘能正常操作系统说明 If the mouse or keyboard can operate normally, it means that the USB 接口使用正常(鼠标只有在桌面版的系统中才能使用)interface is working normally (the mouse can only be used in the desktop version of the system)<br><br>
=== 查询 连接 Connect USB 存储设备测试 storage device test ===1) 首先将 First insert the U 盘或者 disk or USB 移动硬盘插入 mobile hard disk into the USB interface of the Orange Pi 开发板的 USB 接口中development board<br><br>2) 执行下面的命令如果能看到 Execute the following command, if you can see the output of sdX 的输出说明 , it means that the U 盘识别成功disk is recognized successfully<br>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''cat /proc/partitions | grep "sd*"'''
|}
3) 使用 Use the mount 命令可以将 command to mount the U 盘挂载到disk to /mnt 中,然后就能查看 , and then you can view the files in the U 盘中的文件了disk<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''sudo mount /dev/sda1 /mnt/'''<br>orangepi@orangepi:~$ '''ls /mnt/'''<br>
test.txt
|}
The following command can be used to mount the U disk in exfat format on the Linux system<br>{| class="wikitable" style="width:800px;"|-|orangepi@orangepi:~$ '''sudo apt-get install exfat-utils exfat-fuse'''<br>orangepi@orangepi:~$ '''sudo mount -t exfat /dev/sda1 /mnt/'''|}4) 挂载完后通过 After mounting, you can view the capacity usage and mount point of the U disk through the '''df -h 命令就能查看 U 盘的容量使用情况和挂载点''' command<br>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''df -h | grep "sd"'''<br>
/dev/sda1 29G 208K 29G 1% /mnt
|}
=== 查询 USB 无线网卡测试 wireless network card test ===目前测试过的能用的 The usable USB 无线网卡如下所示,其他型号的 wireless network cards that have been tested so far are as follows. Please test other types of USB 无线网卡请自行测试,如果无法使用就需要移植对应的 wireless network cards by yourself. If they cannot be used, you need to transplant the corresponding USB 无线网卡驱动wireless network card driver.<br>
{| class="wikitable" style="width:800px;"
|-
| 序号 serial number || 型号 model ||
|-
| 1 || RTL8723BU <br>支持 Support 2.4G WIFI+BT4.0 || [[Image:Pi-5-details-pic126.png]]
|-
| 2 || RTL8811 <br>支持 Support 2.4G +5G WIFI || [[Image:Pi-5-details-pic127.png]]
|-
| 3 || RTL8821CU <br>支持 Support 2.4G +5G WIFI <br>支持 BT 4.2 || [[Image:Pi-5-details-pic128.png]]
|}
'''1、RTL8723BU 测试1.RTL8723BU test'''<br><br>1) 首先将 First insert the RTL8723BU 无线网卡模块插入开发板的 wireless network card module into the USB 接口中interface of the development board<br><br>2) 然后linux 系统会自动加载RTL8723BU 蓝牙和WIFI 相关的内核模块,通过 lsmod命令可以看到下面内核模块已自动加载Then the linux system will automatically load the RTL8723BU bluetooth and WIFI-related kernel modules, through the lsmod command, you can see that the following kernel modules have been automatically loaded<br>
{| class="wikitable" style="width:800px;"
|-
|}
|}
3) 通过 Through the dmesg 命令可以看到 command, you can see the loading information of the RTL8723BU 模块的加载信息module<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''dmesg'''
|}
4) 然后通过 Then you can see the device node of RTL8723BU WIFI through the '''sudo ifconfig''' 命令可以看到 RTL8723BU command. For the connection and test method of WIFI 的设备节点,WIFI 的连接和测试方法请参看 , please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 connection test | the section of WIFI 连接测试connection test]]</span>一节,这里不再赘述, which will not be repeated here<br>
{| class="wikitable" style="width:800px;"
|-
ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B)<br>
RX errors 0 dropped 0 overruns 0 frame 0<br>
TX packets 0 bytes 0 (0.0 B)<br>TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
|}
5) 然后通过 Then you can see the USB Bluetooth device through the '''hciconfig''' 命令可以看到 USB 的蓝牙设备command<br>
{| class="wikitable" style="width:800px;"
|-
BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16 DOWN<br>
RX bytes:1252 acl:0 sco:0 events:125 errors:0<br>
TX bytes:23307 acl:0 sco:0 commands:125 errors:0<br>
|}
6) 在桌面中也可以看到出现了蓝牙图标,此时蓝牙还未打开,所以会显示一个红色的 You can also see the bluetooth icon on the desktop. At this time, the bluetooth is not turned on, so a red '''<span style="color:#FF0000">x</span>'''will be displayed<br><br>
[[Image:Pi-5-details2-pic01.png]]<br><br>
7) 点击 Click '''Turn Bluetooth On''' 可以打开蓝牙to turn on Bluetooth<br><br>
[[Image:Pi-5-details2-pic02.png]]<br><br>
8) 打开蓝牙后的显示如下所示The display after turning on Bluetooth is as follows<br><br>
[[Image:Pi-5-details2-pic03.png]]<br><br>
9) 蓝牙的测试方法请参看For the test method of Bluetooth, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#蓝牙使用方法 How to use Bluetooth | 蓝牙使用方法the section on Bluetooth usage]]</span>一节,这里不再赘述, so I won’t go into details here<br><br>
'''2、RTL8811 测试2.RTL8811 test'''<br><br>1) 首先将 First insert the RTL8811 无线网卡模块插入开发板的 wireless network card module into the USB 接口中interface of the development board<br><br>2) 然后 Then the linux 系统会自动加载 system will automatically load the kernel module related to RTL8811 WIFI 相关的内核模块,通过 , through the lsmod 命令可以看到下面内核模块已自动加载command, you can see that the following kernel module has been automatically loaded<br>
{| class="wikitable" style="width:800px;"
|-
|}
|}
3) 通过 Through the dmesg 命令可以看到 command, you can see the loading information of the RTL8811 模块的加载信息module<br>
{| class="wikitable" style="width:800px;"
|-
[ 119.500530] usbcore: registered new interface driver rtl8821cu
|}
4) 然后通过 '''Then, you can see the WIFI device node through the sudo ifconfig''' 命令可以看到 command. For the WIFI 的设备节点,WIFI 的连接和测试方法请参看 connection and test method, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 connection test | the WIFI 连接测试connection test section]]</span>一节,这里不再赘述, which will not be repeated here<br>
{| class="wikitable" style="width:800px;"
|-
|}
'''3、RTL8821CU 测试3.RTL8821CU test'''<br><br>1) 首先将 First insert the rtl8821cu 无线网卡模块插入开发板的 wireless network card module into the usb 接口中interface of the development board<br><br>2) 然后使用 '''Then use the lsusb''' 命令就可以看到 command to see the device information of the rtl8821cu usb wifi 模块的设备信息,请确保 USB模块没有处于 module, please make sure that the USB module is not in Driver CDROM Mode<br>
{| class="wikitable" style="width:800px;"
|-
|-
|orangepi@orangepi:~$ '''lsusb | grep "Realtek"'''<br>
Bus 002 Device 002: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter '''<span style="color:#0066CC;">(Driver CDROM Mode)</span>'''<br><br>
如果 '''lsusb''' 命令看到的 '''If the USB WIFI''' 模块处于 '''module seen by the lsusb command is in Driver CDROM Mode''',请重新拔插下 ''', please unplug the USB WIFImodule again. If not, please manually execute the following command to switch to the next mode:''' 模块。如果还不行,请手动执行下面的命令切换下模式:
|}
3) The linux 系统会自动加载 system will automatically load the rtl8821cu 蓝牙和 bluetooth and wifi 相关的内核模块,通过 related kernel modules, through the lsmod 命令可以看到下面内核模块已自动加载command, you can see that the following kernel modules have been automatically loaded<br>
{| class="wikitable" style="width:800px;"
|-
|}
|}
4) 通过 Through the dmesg 命令可以看到 command, you can see the loading information of the rtl8821cu 模块的加载信息module<br>
{| class="wikitable" style="width:800px;"
|-
[ 59.280119] rtl8821cu 2-1:1.2 wlx90de80521825: renamed from wlan0
|}
5) 然后通过 Then you can see the device node of rtl8821cu wifi through the '''sudo ifconfig''' 命令可以看到 rtl8821cu command. For the wifi 的设备节点,wifi 的连接和测试方法请参看 connection and test method, please refer to the section of <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 connection test | WIFI 连接测试connection test]]</span>一节,这里不再赘述, which will not be repeated here<br>
{| class="wikitable" style="width:800px;"
|-
TX packets 0 bytes 0 (0.0 B)
|}
6) 然后通过 '''Then you can see the USB Bluetooth device through the hciconfig''' 命令可以看到 USB 的蓝牙设备command<br>
{| class="wikitable" style="width:800px;"
|-
TX bytes:23307 acl:0 sco:0 commands:125 errors:0
|}
7) 在桌面中也可以看到出现了蓝牙图标,此时蓝牙还未打开,所以会显示一个红色的 You can also see the bluetooth icon on the desktop. At this time, the bluetooth is not turned on, so a red '''<span style="color:#FF0000">x</span>'''will be displayed<br><br>
[[Image:Pi-5-details2-pic04.png]]<br><br>
8) 点击 Click '''Turn Bluetooth On 可以打开蓝牙''' to turn on Bluetooth<br><br>
[[Image:Pi-5-details2-pic05.png]]<br><br>
9) 打开蓝牙后的显示如下所示The display after turning on Bluetooth is as follows<br><br>
[[Image:Pi-5-details2-pic06.png]]<br><br>
蓝牙的测试方法请参看10) For the test method of Bluetooth, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#蓝牙使用方法 How to use Bluetooth | 蓝牙使用方法the section on Bluetooth usage]]</span>一节,这里不再赘述, so I won’t go into details here<br><br>
=== 查询 USB 摄像头测试 camera test ===1) 首先需要准备一个下图所示的或者类似的支持 First, you need to prepare a USB camera that supports UVC 协议的 protocol as shown in the figure below or similar, and then insert the USB 摄像头,然后将USB 摄像头插入到 camera into the USB port of the Orange Pi 开发板的 USB 接口中development board<br><br>
[[Image:Pi-5-details2-pic07.png]]<br><br>
2) 通过 Through the v4l2-ctl 命令可以看到 command, you can see that the device node information of the USB 摄像头的设备节点信息为camera is '''/dev/video0'''<br>
{| class="wikitable" style="width:800px;"
|-
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
|-
|注意 '''Note that the l in v4l2''' 中的 '''l''' 是小写字母 '''is a lowercase letter l''',不是数字 ''', not the number 1.'''<br><br>
另外 '''In addition, the serial number of the video''' 的序号不一定都是 '''is not necessarily video0, please refer to what you actually see.''',请以实际看到的为准。
|}
3) 在桌面系统中可以使用 In the desktop system, Cheese 直接打开 can be used to directly open the USB 摄像头,Cheese 打开方法如下图所示:camera. The method of opening Cheese is shown in the figure below.:<br><br>
[[Image:Pi-5-details2-pic08.png]]<br><br>
The interface after Cheese 打开 turns on the USB 摄像头后的界面如下图所示:camera is shown in the figure below:<br><br>
[[Image:Pi-5-details2-pic09.png]]<br><br>
4) 使用 Method of using fswebcam 测试 to test USB 摄像头的方法camera<br>a. 安装 Install fswebcam
{| class="wikitable" style="width:800px;"
|-
orangepi@orangepi:~$ '''sudo apt-get install -y fswebcam'''
|}
b. 安装完 After installing fswebcam 后可以使用下面的命令来拍照, you can use the following command to take pictures<br>a) -d 选项用于指定 option is used to specify the device node of the USB 摄像头的设备节点camera<br>b) --no-banner 用于去除照片的水印is used to remove the watermark of the photo<br>c) The -r 选项用于指定照片的分辨率option is used to specify the resolution of the photo<br>d) The -S 选项用设置于跳过前面的帧数option is used to set the number of previous frames to skip <br>e) ./image.jpg 用于设置生成的照片的名字和路径is used to set the name and path of the generated photo<br>
{| class="wikitable" style="width:800px;"
|-
'''--no-banner -r 1280x720 -S 5 ./image.jpg'''
|}
c. 在服务器版的 In the server version of the linux 系统中,拍完照后可以使用 system, you can use the scp 命令将拍好的图片传到Ubuntu command to transfer the taken pictures to the Ubuntu PC 上镜像观看for image viewing after taking pictures<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''scp image.jpg [email protected]:/home/test'''(根据实际情况修改 ( '''Modify the IP 地址和路径)address and path according to the actual situation''')
|}
d. 在桌面版的 In the desktop version of the linux 系统中,可以通过 system, you can directly view the captured pictures through the HDMI 显示器直接查看拍摄的图片display<br>
=== 查询 在桌面系统中测试音频方法 Testing audio methods on desktop systems ===1) 首先打开文件管理器First open the file manager<br><br>
[[Image:Pi-5-details2-pic10.png]]<br><br>
2) 然后找到下面这个文件(如果系统中没有这个音频文件,可以自己上传一个音频文件到系统中)Then find the following file (if there is no audio file in the system, you can upload an audio file to the system yourself)<br><br>
[[Image:Pi-5-details2-pic11.png]]<br><br>
3) 然后选中 Then select the audio.wav 文件,右键选择使用 file, right click and select open with vlc 打开就可以开始播放to start playing<br><br>
[[Image:Pi-5-details2-pic12.png]]<br><br>
4) How to switch between different audio devices such as HDMI 播放和耳机播放等不同音频设备的方法playback and headphone playback<br>a. 首先打开音量控制界面First open the volume control interface<br><br>
[[Image:Pi-5-details2-pic13.png]]<br><br>
b. 播放音频的时候,在 When playing audio, the audio device options that the '''Playbackplayback''' 中会显示播放软件可以使用的音频设备选项, 如下图所示,在这里可以设置需要播放到哪个音频设备software can use will be displayed in Playback, as shown in the figure below, where you can set which audio device to play to<br><br>
[[Image:Pi-5-details2-pic14.png]]<br><br>
=== 查询 使用命令播放音频的方法 The method of using commands to play audio ==='''1、耳机接口播放音频测试1.Headphone interface playback audio test'''<br><br>1) 首先将耳机插入开发板的耳机孔中First insert the earphone into the earphone jack of the development board<br><br>
[[Image:Pi-5-details2-pic15.png]]<br><br>
2) 然后可以通过 '''Then you can use the aplay -l''' 命令可以查看下 command to view the sound card devices supported by the linux 系统支持的声卡设备,从下面的输出可知,'''system. From the output below, we can see that card 2''' 为 is the sound card device of es8388 的声卡设备,也就是耳机的声卡设备, that is, the sound card device of the headset<br>
{| class="wikitable" style="width:800px;"
|-
<span style="color:#0066CC;">Subdevices: 1/1</span>
|}
3) 然后使用 '''Then use the aplay''' 命令播放下系统自带的音频文件,如果耳机能听到声音说明硬件能正常使用command to play the audio file that comes with the system. If the earphone can hear the sound, it means that the hardware can be used normally.<br>
{| class="wikitable" style="width:800px;"
|-
|}
'''2、HDMI 音频播放测试2.HDMI audio playback test'''<br><br>1) 首先使用 First use the HDMI to HDMI 线将 cable to connect the Orange Pi 开发板连接到电视机上(其他的 development board to the TV (other HDMI 显示器需要确保可以播放音频)monitors need to ensure that they can play audio)<br><br>2) 然后查看下 Then check the serial number of the HDMI 的声卡序号,从下面的输出可以知道 sound card. From the output below, you can know that the HDMI 的声卡为 '''sound card is card 1'''<br>
{| class="wikitable" style="width:800px;"
|-
card 2: rockchipes8388 [rockchip-es8388], device 0: dailink-multicodecs ES8323.6-0010-0 [dailink-multicodecs
|}
3) 然后使用 '''Then use the aplay''' 命令播放下系统自带的音频文件,如果 command to play the audio file that comes with the system. If the HDMI 显示器或者电视能听到声音说明硬件能正常使用monitor or TV can hear the sound, it means that the hardware can be used normally<br>
{| class="wikitable" style="width:800px;"
|-
|}
=== 查询 使用命令测试录音的方法 Method of using commands to test recording ===1) 开发板上有板载 MIC,位置如下所示:There is an onboard MIC on the development board, the location is as follows:<br><br>
[[Image:Pi-5-details2-pic16.png]]<br><br>
2) 运行 Running the '''test_record.sh main''' 命令会通过板载 command will record a piece of audio through the onboard MIC 录制一段音频,然后播放到 , and then play it to HDMI 和耳机。and headphones<br>
{| class="wikitable" style="width:800px;"
|-
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
|}
3) 除了板载 MIC,我们还可以通过带 In addition to the onboard MIC 功能的耳机来录制音频。将带 , we can also record audio through headphones with MIC 功能的耳机插入开发板后,运行 function. After inserting the headset with MIC function into the development board, run the '''test_record.sh headset''' 命令会通过耳机录制一段音频, 然后播放到 command to record a piece of audio through the headset, and then play it to HDMI 和耳机。and the headset.<br>
{| class="wikitable" style="width:800px;"
|-
|}
=== 26 Pin 接口引脚说明 Interface Pin Description ===1) Please refer to the figure below for the order of the 26 pin interface pins on the Orange Pi 5 开发板 26 pin 接口引脚的顺序请参考下图development board<br><br>
[[Image:Pi-5-details2-pic17.png]]<br><br>
2) The functions of the 26 pin interface pins on the Orange Pi 5 开发板 26 pin 接口引脚的功能如下表所示development board are shown in the table below<br>a. 下面是 The following is the complete pin diagram of 26pin 完整的引脚图<br><br>
[[Image:Pi-5-details2-pic18.png]]<br><br>
b. 下面的表格是上面完整表格左半边部分的图,能看得清楚点The table below is the picture of the left half of the complete table above, so you can see it clearly<br><br>
[[Image:Pi-5-details2-pic19.png]]<br><br>
c. 下面的表格是上面完整表格右半边部分的图,能看得清楚点The table below is the picture of the right half of the complete table above, so you can see it clearly<br><br>
[[Image:Pi-5-details2-pic20.png]]<br><br>
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
| <br><big>'''上面表格中 The pwm 都标出了对应的寄存器的基地址,在查看in the above table has marked the base address of the corresponding register, which is useful when checking which pwmchip in /sys/class/pwm/中哪个 pwmchip 对应 26pin 排针中哪个 corresponds to which pwm 引脚时很有用。'''</big><br><br>|}3) pin in the 26pin 接口中总共有 17 个 GPIO 口,所有 GPIO 口的电压都是 '''3.3v'''<br><br><br>{| class="wikitable" style="width:800px;" |-| <br><big>'''关于Linux系统使用说明更详细的资料,你可以在<span style="color:#0066CC;">[http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-pi-5header.html Orange Pi 5用户手册]</span>中查阅。'''</big><br><br>|}  == Android 12 系统的使用说明 ===== 已支持的 Android 版本 ==={| class="wikitable" style="width:800px;"|-| Android 版本 || 内核版本|-| Android 12 || Linux5.10|-| Android 12 Box || Linux5.10|} === Android 功能适配情况 ==={| class="wikitable" style="width:800px;"|-| 功能 || Android 12 || Android12 Box|-| USB2.0x2 || OK || OK|-| USB3.0x1 || OK || OK|-| USB Type-C 3.0 || OK || OK|-| DP 显示 || OK || OK|-| M.2 NVMe SSD 启动 || OK || OK |-| M.2 SATA SSD 启动 || OK || OK |-| AP6275P-WIFI || OK || OK |-| AP6275P-蓝牙 || OK || OK |-| GPIO(26pin) || OK || OK |-| UART(26pin) || OK || OK |-| SPI(26pin) || OK || OK |-| I2C(26pin) || OK || OK |-| PWM(26pin) || OK || OK |-| 3pin 调试串口 || OK || OK |-| TF 卡启动 || OK || OK |-| HDMI 视频 || OK || OK |-| HDMI 音频 || OK || OK |-| OV13850 摄像头 || OK || OK |-| OV13855 摄像头 || OK || OK |-| LCD1 || OK || '''<span style="color:#FF0000">NO</span>'''|-| LCD2 || OK || '''<span style="color:#FF0000">NO</span>'''|-| 千兆网口 || OK || OK |-| 网口状态灯 || OK || OK |-| MIC || OK || OK |-| 耳机播放 || OK || OK |-| 耳机录音 || OK || OK |-| LED 灯 || OK || OK |-| GPU || OK || OK |-| NPU || OK || OK |-| VPU || OK || OK |-| 开关机按键 || OK || OK |-| HDMI CEC 功能 || '''<span style="color:#FF0000">NO</span>''' || OK
|}
3) There are a total of 17 GPIO ports in the 26pin interface, and the voltage of all GPIO ports is '''<span style="color:#FF0000">3.3v</span>'''<br><br>
=='''Instructions for the use of the android 12 system''' = USB 无线网卡的使用方法 ==== How to use the use of wireless network card ===1) 目前镜像适配的 At present, the USB 无线网卡型号如下所示:wireless network card model that is adapted to the image is shown below:<br>
{| class="wikitable" style="width:800px;"
|-
| 芯片型号 Chip model || 功能 Function || VID&PID || 适配情况Adaptation
|-
| RTL8821CU || 2.4G +5G WIFI+BT 4.2 || 0bda:c820 || 支持 WIFI、蓝牙和开热点'''<span style="color:#FF0000">Only support wifi, Bluetooth needs to be adapted</span>'''
|-
| RTL8723BU || 2.4G WIFI+BT4.0 || 0bda:b720 || 支持 WIFI 和蓝牙功能,不支持开热点'''<span style="color:#FF0000">Only support wifi, Bluetooth needs to be adapted</span>'''
|-
| RTL8811CU || 2.4G +5G WIFI || 0bda:c811 || 支持 '''Only WIFI 功能和开热点function, supported'''
|}
2) 上面三款 The picture of the above three USB 无线网卡的图片如下所示:wireless network cards is shown below:<br>a. The picture of the RTL8821CU USB 无线网卡模块的图片如下所示:wireless network card module is shown below:<br><br>
[[Image:Pi-5-details2-pic21.png]]<br><br>
b. The pictures of the RTL8723BU USB 无线网卡模块的图片如下所示:wireless network card module are shown below:<br><br>
[[Image:Pi-5-details2-pic22.png]]<br><br>
c. The picture of the RTL8811CU USB 无线网卡模块的图片如下所示:wireless network card module is shown below:<br><br>
[[Image:Pi-5-details2-pic23.png]]<br><br>
3) 以上 The test methods of the USB wireless network cards of the above 3 种型号的 USB 无线网卡的测试方法都是相同的,首先需要将 models are the same. First, insert the USB 网卡插入开发板的 network card into the USB 接口<br><br>4) 然后 WIFI 的连接和测试方法请参考 <span style="color:#0066CC;">[[Orange Pi 5 detail#WIFI 的连接测试方法 | WIFI 的连接测试方法]]</span>一节<br><br>5) 蓝牙的测试请参考<span style="color:#0066CC;">[[Orange Pi 5 detail#蓝牙的测试方法 | 蓝牙的测试方法]]</span>一节<br><br> === AP6275P PCIe 网卡的使用方法 ===1) 首先需要购买一个下图所示的 AP6275P PCIe 网卡interface of the development board, and then enter '''Setting'''<br><br>
[[Image:Pi-5-details2-pic24.png]]<br><br>
24) 然后将 AP6275P PCIe 网卡插入开发板的 M.2 接口中并固定好Then choose '''Network & internet'''<br><br>
[[Image:Pi-5-details2-pic25.png]]<br><br>
3) 然后给开发板接上 Type-C 接口的电源,并上电<br><br>4) 系统启动后,WIFI 的连接和测试方法请参考 <span style="color:#0066CC;">[[Orange Pi 5 detail#WIFI 的连接测试方法 | WIFI 的连接测试方法]]</span>一节<br><br>5) 蓝牙的测试请参考<span style="color:#0066CC;">[[Orange Pi 5 detail#蓝牙的测试方法 | 蓝牙的测试方法]]</span>一节<br><br> === WIFI 的连接测试方法 ===1) 首先点击进入 Then choose '''SettingInternet'''<br><br>
[[Image:Pi-5-details2-pic26.png]]<br><br>
26) 然后选择 Then turn on the '''Network & internetWi-Fi'''switch<br><br>
[[Image:Pi-5-details2-pic27.png]]<br><br>
37) 然后选择 If everything is normal after opening the '''InternetWi-Fi''', you can scan to the nearby Wi-Fi hotspot<br><br>
[[Image:Pi-5-details2-pic28.png]]<br><br>
48) 然后打开 '''Then select the Wi-Fi''' 开关you want to connect, and you will pop up the password input interface shown in the figure below<br><br>
[[Image:Pi-5-details2-pic29.png]]<br><br>
59) 打开 '''WiThen use the keyboard to enter the corresponding password of the wi-Fi''' 后如果一切正常,就可以扫描到附近的 fi, and then use the mouse to click the Enter button in the virtual keyboard to start connecting Wi-Fi 热点了<br><br>
[[Image:Pi-5-details2-pic30.png]]<br><br>
610) 然后选择想连接的 The display after the Wi-Fi 后会弹出下图所示的密码输入界面connection is successful as shown in the figure below:<br><br>
[[Image:Pi-5-details2-pic31.png]]<br><br>
7=== 26pin GPIO port test ===1) 然后使用键盘输入 Wi-Fi 对应的密码,再使用鼠标点击虚拟键盘中的回车按钮就会开始连接 Wi-Fi 了First click the Wiringop icon to open the Wiringop App<br><br>
[[Image:Pi-5-details2-pic32.png]]<br><br>
82) Wi-Fi 连接成功后的显示如下图所示:The main interface of the Wiringop app is displayed as shown in the figure below, and then click the '''GPIO_TEST''' button to open the GPIO test interface<br><br>
[[Image:Pi-5-details2-pic33.png]]<br><br>
 === Wi3) The GPIO test interface is shown in the figure below. The two rows of the '''CheckBox''' button on the left and the 26PIN pin are one -Fi hospot 的使用方法 ===1) 首先请确保以太网口已连接网线,并且能正常上网<br><br>2) 然后选择 to -one relationship. When checking the '''CheckBox''' button, the corresponding pin will be set to '''OUT''' mode, the pin level settings will be set. For high levels, when the check -up is canceled, the pin level is set to a low level; when clicking the '''SettingsGPIO READALL'''button on the right, you can get the WPI, GPIO mode, pin level information, etc.<br><br>
[[Image:Pi-5-details2-pic34.png]]<br><br>
34) 然后选择 Then click the '''Network & internetGPIO READALL'''button, and the output information is shown in the figure below<br><br>
[[Image:Pi-5-details2-pic35.png]]<br><br>
45) 然后选择 Taking the high and low level of the '''Hotspot & tetheringGPIO2_D4'''as an example, click the '''CheckBox''' button in the figure below. When the button is selected, the '''GPIO2_D4''' is set to a high level. After setting, you can use the value of the voltage of the pins by the multimeter. If it is '''3.3v''', Explain that setting high -electricity is successful<br><br>
[[Image:Pi-5-details2-pic36.png]]<br><br>
56) 然后选择 Then click the '''Wi-Fi hotspotGPIO READALL'''button to see that the pins mode of the current '''GPIO2_D4''' is '''OUT''', and the pin level is high level<br><br>
[[Image:Pi-5-details2-pic37.png]]<br><br>
67) 然后打开 Click the '''Wi-Fi hotspotCheckBox''' button in the figure below to cancel the check status. The '''GPIO2_D4''' pin is set to a low level. After setting, you can use the value of the voltage of the multimeter to measure the pins.If it is '''0v''',下图中还可以看到生成的热点的名字和密码,记住它们,在连接热点的时候要用到(<span style="color:#0066CC;">如果需要修改热点的名字和密码,需要先关闭 Wi, the low -Fi hotspot,然后才能修改</span>)power flat is set.<br><br>
[[Image:Pi-5-details2-pic38.png]]<br><br>
78) 此时可以拿出你的手机,如果一切正常,在手机搜索到的 WI-FI 列表中就能找到上图 Then click the '''Hotspot nameGPIO READALL''' 下面显示的同名(这里为 '''AndroidAP_6953''')的 WIFI 热点了。然后可以点击 '''AndroidAP_6953''' 连接热点,密码在上图的 '''Hotspot password''' 下面可以看到button to see that the pins mode of the current GPIO2_D4 is OUT, and the pin level is low<br><br>
[[Image:Pi-5-details2-pic39.png]]<br><br>
8=== 26pin UART test ===1) 连接成功后显示如下图所示(不同手机界面会有区别,具体界面以你手机显示的为准)。此时就可以在手机上打开一个网页看下能否上网了,如果能正常打开网页, 说明开发板的 '''WI-FI Hotspot''' 能正常使用In Android default, the UART0 serial port is only opened. The position of UART0 at 26pin is shown in the figure below. The corresponding device node is/dev/ttys0<br><br>
[[Image:Pi-5-details2-pic40.png]]<br><br>
 === 蓝牙的测试方法 ===12) 首先点击进入 '''Setting'''First click the WiringOP icon to open the Wiringop App<br><br>
[[Image:Pi-5-details2-pic41.png]]<br><br>
23) 然后选择 The main interface of the WiringOP APP is displayed as shown in the figure below, and then click the '''Connected devicesUART_TEST'''button to open the UART test interface<br><br>
[[Image:Pi-5-details2-pic42.png]]<br><br>
34) 然后点击 '''Pair new device''' 打开蓝牙并开始扫描周围的蓝牙设备The serial test interface of the APP is shown in the figure below<br><br>
[[Image:Pi-5-details2-pic43.png]]<br><br>
45) 搜索到的蓝牙设备会在 Then enter the baud rate you want to set in the editing box, and then click the '''Available devicesOPEN''' 下面显示出来button to open the '''/dev/ttyS0''' node. After successful, the '''OPEN''' button becomes an optional state.The '''CLOSE''' button and the '''SEND''' button become an optional state<br><br>
[[Image:Pi-5-details2-pic44.png]]<br><br>
56) 然后点击想要连接的蓝牙设备就可以开始配对了,当弹出下面的界面时,请使用鼠标选择 '''Pair''' 选项Then use the DuPont line to shorte the RXD and TXD pin of uart0<br><br>
[[Image:Pi-5-details2-pic45.png]]<br><br>
67) 这里测试的是开发板和安卓手机蓝牙的配置过程,此时在手机上会弹出下面的确认界面,在手机上也点击配对按钮后就会开始配对过程Then you can enter a section of characters in the editing box below, click the '''SEND''' button to start sending<br><br>
[[Image:Pi-5-details2-pic46.png]]<br><br>
78) 配对完成后,可以看到如下图所示的已配对的蓝牙设备If everything is normal, the receiving string will be displayed in the receiving box<br><br>
[[Image:Pi-5-details2-pic47.png]]<br><br>
8=== 26pin's PWM test ===1) 此时可以使用手机蓝牙给开发板发送一张图片,发送后,在开发板的安卓系统中可以看到下面的确认界面,然后点击 Android only opened '''AcceptPWM15''' 就可以开始接收手机发过来的图片了by default. The corresponding pins are at the position of 26Pin.<br><br>
[[Image:Pi-5-details2-pic48.png]]<br><br>
92) 开发板 Android 系统蓝牙接收到的图片可以在文件管理器中打开 '''Download''' 目录查看First click theWiringOP icon to open the Wiringop App<br><br>
[[Image:Pi-5-details2-pic49.png]]<br><br>
 === 10.1 寸 MIPI 屏幕的使用方法 ==={| class="wikitable" style="background-color:#ffffdc;width:800px;" |-|请确保使用的镜像为下面的三个版本的镜像: <br>'''OrangePi5_RK3588S_Android12_lcd_v1.x.x.img''' <br>3) Then click the '''OrangePi5_RK3588S_Android12_spi-nvme_lcd_v1.x.x.imgPWM_TEST'''<br>'''OrangePi5_RK3588S_Android12_spi-sata_lcd_v1.x.x.img'''<br>|}1) 首先需要组装好屏幕,请参考 <span style="color:#0066CC;">[[Orange Pi 5 detail#AP6275P PCIe 网卡的使用方法 | AP6275P PCIe 网卡的使用方法]]</span><br><br>2) 开发板上有两个 mipi lcd 屏幕的接口,我们定义:<br>a. lcd1 接口的位置为:button to enter the PWM test interface at the main interface of WiringOP<br><br>
[[Image:Pi-5-details2-pic50.png]]<br><br>
b4) The corresponding address corresponding to the PWM15 is '''febf0030'''. The right side of PWMCHIP0 is exactly the '''febf0030.pwm'''. If the displayed base address is wrong, please click the drop -down option to select other PWMCHIP until the '''febf0030''' is displayed on the right. lcd2 接口的位置为:<br><br>
[[Image:Pi-5-details2-pic51.png]]<br><br>
35) 将组装好的屏幕接到 lcd1 或者 lcd2 接口,给板子接通 Type-C 电源,并上电,系统启动后,就可以看到屏幕显示如下图所示Then confirm the PWM cycle. The default configuration is '''50000ns''', and the PWM frequency is '''20KHz'''. You can modify it by yourself.Click on the button to export '''PWM15'''<br><br>
[[Image:Pi-5-details2-pic52.png]]<br><br>
 === OV13850 和 OV13855 MIPI 摄像头的测试方法 ===目前开发板支持两款MIPI摄像头,OV13850 和OV13855,具体的图片如下所示:<br><br>a. 1300 万MIPI接口的OV13850 摄像头6) Then drag the drag below to change the PWM duty ratio, and then check the enable to output PWM<br><br>
[[Image:Pi-5-details2-pic53.png]]<br><br>
b. 1300 万MIPI接口的OV13855 摄像头<br><br>
[[Image:Pi-5-details2-pic54.png]]<br><br>
OV13850 和OV13855 摄像头使用的转接板和FPC排线是一样的,只是两款摄像头接在转接板上的位置不一样。FPC排线如下图所示,请注意FPC排线是有方向的, 标注=== 26pin'''TO MB'''那端需要插到开发板的摄像头接口中,标注'''TO CAMERA'''那端需要插到摄像头转接板上。s SPI test ===1) From the schematic diagram of the 26pin interface, the SPI available for Orange Pi 5 is spi4<br><br>
[[Image:Pi-5-details2-pic55.png]]<br><br>
摄像头转接板上总共有 3 个摄像头的接口,同一时间只能接一个使用,如下图所示,其中:<br>a. '''1''' 号接口接 '''OV13850''' 摄像头<br>b. '''2''' 号接口接 '''OV13855''' 摄像头<br>c) Here is the w25q64 module to test the SPI interface, and first access the w25q64 device at the SPI4 interface. 3 号接口未使用,忽略即可<br><br>
[[Image:Pi-5-details2-pic56.png]]<br><br>
Orange Pi 5 开发板上总共有 3 个摄像头接口,我们定义 Cam1、Cam2 和 Cam3的位置如下图所示:) Then click the WiringOP icon to open the WiringOP APP<br><br>[[Image:Pi-5-details2-pic57.png]]<br><br>4) The main interface of the WiringOP APP shows as shown in the figure below, click the SPI_TEST button to open the SPI test interface<br><br>[[Image:Pi-5-details2-pic58.png]]<br><br>摄像头插在开发板的 Cam1 接口的方法如下所示:5) Then click the '''OPEN''' button to initialize SPI<br><br>
[[Image:Pi-5-details2-pic59.png]]<br><br>
摄像头插在开发板的 Cam2 接口的方法如下所示:6) Then fill in bytes that need to be sent, such as reading the ID information of W25Q64, fill in the address 0x9F in data [0], and then click the '''TRANSFER''' button<br><br>
[[Image:Pi-5-details2-pic60.png]]<br><br>
摄像头插在开发板的 Cam3 接口的方法如下所示:7) The last app will display the ID information read<br><br>
[[Image:Pi-5-details2-pic61.png]]<br><br>
安卓系统默认打开的是 '''Cam1''' 和 '''Cam3''' 的配置,所以如果要使用摄像头,请选择 '''Cam1''' 和 '''Cam3''' 接口中的一个。连接好摄像头到开发板上后,我们可以使用下面的方法来测试下摄像头:<br>a. 在桌面中打开相机 APP8) The MANUFACTURER ID of the w25q64 module is EFh, the Device ID is 4017h, and the value read above is corresponding (H represents hexadecimal)<br><br>
[[Image:Pi-5-details2-pic62.png]]<br><br>
b. 然后就能看到摄像头的预览画面了<br><br>
[[Image:Pi-5-details2-pic63.png]]<br><br>
除了单摄外, 我们还可以同时接两个摄像头。需要注意的是,目前测试双摄像头请使用 '''Cam1 + Cam3''' 的组合(支持 ov13850 和 ov13855 混搭)。接好双摄后,然后和前面步骤一样,打开摄像头 APP 后即可看到其中一个摄像头的画面。<br><br>
切换另一个摄像头的方法为:<br>
a. 首先点击右上角的这三个点<br><br>
[[Image:Pi-5-details2-pic64.png]]<br><br>
b. 然后点击下图所示的位置即可切换摄像头<br><br>
[[Image:Pi-5-details2-pic65.png]]<br><br>
在摄像头APP 下图红框所示的区域中按住鼠标然后向右拖动可以调出拍照和摄像的切换界面<br><br>
[[Image:Pi-5-details2-pic66.png]]<br><br>
拍照和摄像的切换界面如下所示,点击 '''Video''' 即可切换到录像模式<br><br>
[[Image:Pi-5-details2-pic67.png]]<br><br>
点击下图所示的位置可以进入摄像头的设置界面<br><br>
[[Image:Pi-5-details2-pic68.png]]<br><br>
摄像头的设置界面如下所示:<br><br>
[[Image:Pi-5-details2-pic69.png]]<br><br>
目前测试 OV13850 不支持 4K 录制视频(OV13855 支持),最高只支持 1080p, 录制视频时请在设置中将视频格式切换到 1080p,步骤如下所示:<br>
a. 首先进入摄像头 APP 的设置界面,然后点击 '''Resolution & quality'''<br><br>
[[Image:Pi-5-details2-pic70.png]]<br><br>
b. 然后在 '''Video''' 中将视频格式设置为 1080p<br><br>
[[Image:Pi-5-details2-pic71.png]]<br><br>
 
=== 26pin GPIO 口测试 ===
1) 首先点击 wiringOP 图标打开 wiringOP APP<br><br>
[[Image:Pi-5-details2-pic72.png]]<br><br>
2) wiringOP APP 的主界面显示如下图所示,然后点击 '''GPIO_TEST''' 按钮打开 GPIO测试界面<br><br>
[[Image:Pi-5-details2-pic73.png]]<br><br>
3) GPIO 测试界面如下图所示,左边的两排 '''CheckBox''' 按钮跟 26pin 引脚是一一对应的关系。当勾选 '''CheckBox''' 按钮时,对应的 GPIO 引脚会被设置为 '''OUT''' 模式,引脚电平设置为高电平;当取消勾选时,GPIO 引脚电平设置为低电平;当点击右边的 '''GPIO READALL''' 按钮时,可以获取到 wPi 号、GPIO 模式、引脚电平等信息。<br><br>
[[Image:Pi-5-details2-pic74.png]]<br><br>
4) 然后点击 '''GPIO READALL''' 按钮,输出信息如下图所示:<br><br>
[[Image:Pi-5-details2-pic75.png]]<br><br>
5) 开发板 26pin 中总共有 16 个 GPIO 口可以使用,下面以 7 号引脚——对应 GPIO 为 GPIO1_C6 ——对应 wPi 序号为 2——为例演示如何设置 GPIO 口的高低电平。首先点击 7 号引脚对应的 '''CheckBox''' 按钮,当按钮为选中状态时,7 号引脚会设置为高电平,设置完后可以使用万用表测量引脚的电压的数值,如果为 '''3.3v''',说明设置高电平成功<br><br>
[[Image:Pi-5-details2-pic76.png]]<br><br>
6) 然后点击 '''GPIO READALL''' 按钮,可以看到当前的 7 号引脚模式为 '''OUT''',引脚电平为高电平<br><br>
[[Image:Pi-5-details2-pic77.png]]<br><br>
7) 再次点击下图的 '''CheckBox''' 按钮取消勾选状态,7 号引脚会设置为低电平,设置完后可以使用万用表测量引脚的电压的数值,如果为 '''0v''',说明设置低电平成功<br><br>
[[Image:Pi-5-details2-pic78.png]]<br><br>
8) 然后点击 '''GPIO READALL''' 按钮,可以看到当前的 7 号引脚模式为 OUT,引脚电平为低电平<br><br>
[[Image:Pi-5-details2-pic79.png]]<br><br>
 
=== 26pin 的 UART 测试 ===
1) Android 中默认只打开了 UART0 一个串口,UART0 在 26pin 的位置如下图所示, 对应的设备节点是'''/dev/ttyS0'''<br><br>
[[Image:Pi-5-details2-pic80.png]]<br><br>
2) 首先点击 wiringOP 图标打开 wiringOP APP<br><br>
[[Image:Pi-5-details2-pic81.png]]<br><br>
3) wiringOP APP 的主界面显示如下图所示,然后点击 '''UART_TEST''' 按钮打开UART测试界面<br><br>
[[Image:Pi-5-details2-pic82.png]]<br><br>
4) APP 的串口测试界面如下图所示<br><br>
[[Image:Pi-5-details2-pic83.png]]<br><br>
5) 接着在编辑框中输入想要设置的波特率,然后点击 '''OPEN''' 按钮打开'''/dev/ttyS0''' 节点,打开成功后,'''OPEN''' 按钮变为不可选中状态,'''CLOSE''' 按钮和 '''SEND''' 按钮变为可选中状态<br><br>
[[Image:Pi-5-details2-pic84.png]]<br><br>
6) 然后使用杜邦线短接 uart0 的 RXD 和 TXD 引脚<br><br>
[[Image:Pi-5-details2-pic85.png]]<br><br>
7) 然后可以在下面的发送编辑框中输入一段字符,点击 '''SEND''' 按钮开始发送<br><br>
[[Image:Pi-5-details2-pic86.png]]<br><br>
8) 如果一切正常,接收框内会显示已接收到的字符串<br><br>
[[Image:Pi-5-details2-pic87.png]]<br><br>
 
=== 26pin 的 SPI 测试 ===
1) 由 26pin 接口的原理图可知,Orange Pi 5B 可用的 spi 为 spi4<br><br>
[[Image:Pi-5-details2-pic88.png]]<br><br>
2) 这里通过 w25q64 模块来测试 SPI 接口,首先在 SPI4 接口接入 w25q64 设备<br><br>
[[Image:Pi-5-details2-pic89.png]]<br><br>
3) 然后点击 wiringOP 图标打开 wiringOP APP<br><br>
[[Image:Pi-5-details2-pic90.png]]<br><br>
4) wiringOP APP 的主界面显示如下图所示,点击 SPI_TEST 按钮打开 SPI 的测试界面<br><br>
[[Image:Pi-5-details2-pic91.png]]<br><br>
5) 然后点击 '''OPEN''' 按钮初始化 SPI<br><br>
[[Image:Pi-5-details2-pic92.png]]<br><br>
6) 然后填充需要发送的字节,比如读取 w25q64 的 ID 信息,在 data[0]中填入地址0x9f,然后点击 '''TRANSFER''' 按钮<br><br>
[[Image:Pi-5-details2-pic93.png]]<br><br>
7) 最后 APP 会显示读取到的 ID 信息<br><br>
[[Image:Pi-5-details2-pic94.png]]<br><br>
8) w25q64 模块的 MANUFACTURER ID 为 EFh,Device ID 为 4017h,跟上面读取到的值是对应的(h 代表是 16 进制)<br><br>
[[Image:Pi-5-details2-pic95.png]]<br><br>
 
=== 26pin 的 PWM 测试 ===
1) Android 默认只开启了 '''PWM15''',对应的引脚在 26pin 的所在位置如下图所示<br><br>
[[Image:Pi-5-details2-pic96.png]]<br><br>
2) 首先点击 wiringOP 图标打开 wiringOP APP<br><br>
[[Image:Pi-5-details2-pic97.png]]<br><br>
3) 然后在 wiringOP 的主界面点击 '''PWM_TEST''' 按钮进入 PWM 的测试界面<br><br>
[[Image:Pi-5-details2-pic98.png]]<br><br>
4) PWM15 对应的基地址是 '''febf0030''' , 这里 pwmchip0 右边显示的刚好就是'''febf0030.pwm''', 如果显示的基地址不对,请点击下拉选项选择其它的 pwmchip,直到右边显示 '''febf0030''' 为止<br><br>
[[Image:Pi-5-details2-pic99.png]]<br><br>
5) 然后确认 PWM 的周期,默认的配置是 '''50000ns''',转换为 PWM 频率是 '''20KHz''', 可自行修改,点击开启按钮导出 '''PWM15'''<br><br>
[[Image:Pi-5-details2-pic100.png]]<br><br>
6) 然后拖动下面的拖动条,就可以改变 PWM 的占空比,然后勾选 Enable 就可以输出 PWM 波形了<br><br>
[[Image:Pi-5-details2-pic101.png]]<br><br>
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:/ #
|}
 
=== Android Box 测试过的 2.4G USB 遥控器 ===
1) 目前测试过的一款 2.4G USB 遥控器如下图所示<br>
a. 包含一个遥控器<br><br>
[[Image:Pi-5-details2-pic104.png]]<br><br>
b. 一个 USB 无线接收器<br><br>
[[Image:Pi-5-details2-pic105.png]]<br><br>
2) Android Box 系统无需任何配置,插上就可以用了<br><br>
 
=== Android Box 系统 HDMI CEC 功能的使用方法 ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''HDMI CEC 允许用户只用一个遥控器,就能通过 HDMI 控制所有连接的设备, 基于这个功能,我们用电视机的遥控器就可以控制开发板。'''</big><br><br>
<big>'''<span style="color:#FF0000">测试此功能前,请确保您的电视机是支持 HDMI CEC 的。</span>'''</big>
|}
1) 首先将开发板通过 HDMI 线连接到电视,然后上电启动<br><br>
2) 然后在电视的设置中开启 HDMI CEC 功能,不同电视开启方式可能有差异,这里以小米电视为例,按下遥控器的菜单键,然后选中 CEC 遥控并按下确认键<br><br>
[[Image:Pi-5-details2-pic106.png]]<br><br>
3) 然后选择“开”就可以打开 HDMI CEC 遥控<br><br>
[[Image:Pi-5-details2-pic107.png]]<br><br>
4) 此时就可以通过电视的遥控器控制开发板的 Android Box 系统了<br><br>