Difference between revisions of "Orange Pi 5 detail"

From Wiki-Orange Pi
Jump to: navigation, search
(Created page with "== 使用 RKDevTool 烧录 Linux 镜像到 TF 卡中的方法 == 1) 首先需要准备一根品质良好的 Type-C 接口的数据线<br><br> Image:Pi-5-details-pic31.png<...")
 
(26pin's SPI test)
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
== 使用 RKDevTool 烧录 Linux 镜像到 TF 卡中的方法 ==
+
== '''How to use Win32Diskimager to burn Linux image''' ==
1) 首先需要准备一根品质良好的 Type-C 接口的数据线<br><br>
+
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>
[[Image:Pi-5-details-pic31.png]]<br><br>
+
2) Then use the card reader to insert the TF card into the computer<br><br>
2) 还需要准备一张 16GB 或更大容量的 TF 卡,TF 卡的传输速度必须为 '''class10''' 级或 '''class10''' 级以上,建议使用闪迪等品牌的 TF 卡<br><br>
+
3) Then format the TF card<br>
3) 然后将 TF 卡插入开发板的卡槽中<br><br>
+
a. '''SD Card Formatter''' can be used to format the TF card. The download address is:<br>
[[Image:Pi-5-details-pic32.png]]<br><br>
 
4) 然后从<span style="color:#0066CC;">[http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-pi-5.html Orange Pi 的资料下载页面]</span>下载瑞芯微驱动 '''DriverAssitant_v5.12.zip''' 和 '''MiniLoader''' 以 及 烧 录 工 具 '''RKDevTool_Release_v2.96.zip''' ,'''<span style="color:#FF0000">请确保下载的 RKDevTool 工具的的版本为 v2.96</span>'''<br>
 
a. 在 Orange Pi 的资料下载页面首先选择官方工具,然后进入下面的文件夹中<br><br>
 
[[Image:Pi-5-details-pic33.png]]<br><br>
 
b. 然后下载下面的所有文件<br><br>
 
[[Image:Pi-5-details-pic34.png]]<br><br>
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
|-
 
| <br><big>'''注意,MiniLoader-烧录Linux镜像才需要用到的东西文件夹下文简称为MiniLoader文件夹。'''</big><br><br>
 
|}
 
5) 然后从<span style="color:#0066CC;">[http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-pi-5.html Orange Pi 的资料下载页面]</span>下载想要烧录的 Linux 操作系统镜像文件压缩包,然后使用解压软件解压,解压后的文件中,以“.img”结尾的文件就是操作系统的镜像文件,大小一般都在 2GB 以上<br><br>
 
6) 然后用解压软件解压 '''DriverAssitant_v5.12.zip''',再在解压后的文件夹中找到'''DriverInstall.exe''' 可执行文件并打开即可<br><br>
 
[[Image:Pi-5-details-pic35.png]]<br><br>
 
7) 打开 '''DriverInstall.exe''' 后安装瑞芯微驱动的步骤如下所示<br>
 
a. 点击“驱动安装”按钮<br><br>
 
[[Image:Pi-5-details-pic36.png]]<br><br>
 
b. 等待一段时间后,会弹出窗口提示“安装驱动成功”,然后点击“确定” 按钮即可<br><br>
 
[[Image:Pi-5-details-pic37.png]]<br><br>
 
8) 然后解压 '''RKDevTool_Release_v2.96.zip''',此软件无需安装,在解压后的文件夹中找到 '''RKDevTool''' 打开即可<br><br>
 
[[Image:Pi-5-details-pic38.png]]<br><br>
 
9) 打开 '''RKDevTool''' 烧录工具后,因为电脑此时还没有通过 Type-C 线连接上开发板,所以左下角会提示“没有发现设备”<br><br>
 
[[Image:Pi-5-details-pic39.png]]<br><br>
 
10) 然后开始烧录 Linux 镜像到 eMMC 中<br>
 
a. 首先通过 Type-C 数据线连接好开发板与 Windows 电脑,开发板 Type-C 接口的位置如下图所示<br><br>
 
[[Image:Pi-5-details-pic40.png]]<br><br>
 
b. 确保开发板没有连接电源<br><br>
 
c. 还需确保下图位置的白色 USB2.0 接口没有插入 USB 设备<br><br>
 
[[Image:Pi-5-details-pic41.png]]<br><br>
 
d. 然后按住开发板的 MaskROM 按键不放,MaskROM 按键在开发板的位置如下图所示:<br><br>
 
[[Image:Pi-5-details-pic42.png]]<br><br>
 
e. 然后给开发板接上 Type-C 接口的电源,并上电<br><br>
 
[[Image:Pi-5-details-pic43.png]]<br><br>
 
f. 如果前面的步骤顺利,此时开发板会进入 '''MASKROM''' 模式,在烧录工具的界面上会提示“发现一个 '''MASKROM''' 设备”<br><br>
 
[[Image:Pi-5-details-pic44.png]]<br><br>
 
g. 然后将鼠标光标放在下面的这片区域中<br><br>
 
[[Image:Pi-5-details-pic45.png]]<br><br>
 
h. 然后点击鼠标右键会弹出下图所示的选择界面<br><br>
 
[[Image:Pi-5-details-pic46.png]]<br><br>
 
i. 然后选择'''导入配置'''选项<br><br>
 
[[Image:Pi-5-details-pic47.png]]<br><br>
 
j. 然后选择前面下载的 '''MiniLoader''' 文件夹中的 '''rk3588_linux_tfcard.cfg''' 配置文件,再点击'''打开'''<br><br>
 
k. 然后点击'''确定'''<br><br>
 
[[Image:Pi-5-details-pic48.png]]<br><br>
 
l. 然后点击下图所示的位置<br><br>
 
[[Image:Pi-5-details-pic49.png]]<br><br>
 
m. 再选择前面下载的 '''MiniLoader''' 文件夹中 '''MiniLoaderAll.bin''',再点击'''打开'''<br><br>
 
n. 然后点击下图所示的位置<br><br>
 
[[Image:Pi-5-details-pic50.png]]<br><br>
 
o. 然后选择想要烧录的 linux 镜像的路径,再点击'''打开'''<br><br>
 
[[Image:Pi-5-details-pic51.png]]<br><br>
 
p. 然后请勾选上'''强制按地址写'''选项<br><br>
 
[[Image:Pi-5-details-pic52.png]]<br><br>
 
q. 再点击执行按钮就会开始烧录 linux 镜像到开发板的 tf 卡中<br><br>
 
[[Image:Pi-5-details-pic53.png]]<br><br>
 
r. linux 镜像烧录完后的显示 log 如下图所示<br><br>
 
[[Image:Pi-5-details-pic54.png]]<br><br>
 
s. 烧录完 linux 镜像到 tf 卡中后,linux 系统会自动启动。<br><br>
 
 
 
== 使用 Win32Diskimager 烧录 Linux 镜像的方法 ==
 
1) 首先准备一张 16GB 或更大容量的 TF 卡,TF 卡的传输速度必须为 class10 级或 class10 级以上,建议使用闪迪等品牌的 TF <br><br>
 
2) 然后使用读卡器把 TF 卡插入电脑<br><br>
 
3) 接着格式化 TF <br>
 
a. 可以使用 SD Card Formatter 这个软件格式化 TF 卡,其下载地址为<br>
 
 
  <big>'''https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip'''</big>
 
  <big>'''https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip'''</big>
b. 下载完后直接解压安装即可,然后打开软件<br><br>
+
b. After downloading, unzip and install directly, and then open the software<br><br>
c. 如果电脑只插入了 TF 卡,则“Select card”一栏中会显示 TF 卡的盘符,如果电脑插入了多个 USB 存储设备,可以通过下拉框选择 TF 卡对应的盘符<br><br>
+
c. If only a TF card is inserted into the computer, the drive letter of the TF card will be displayed in the '''"Select card"''' column. If multiple USB storage devices are inserted into the computer, you can select the corresponding drive letter of the TF card through the drop-down box<br><br>
 
[[Image:Pi-5-details-pic55.png]]<br><br>
 
[[Image:Pi-5-details-pic55.png]]<br><br>
d. 然后点击“Format”,格式化前会弹出一个警告框,选择“是(Y)”后就会开始格式化<br><br>
+
d. Then click '''"Format"''', a warning box will pop up before formatting, and formatting will start after selecting "Yes (Y)"<br><br>
 
[[Image:Pi-5-details-pic56.png]]<br><br>
 
[[Image:Pi-5-details-pic56.png]]<br><br>
e. 格式化完 TF 卡后会弹出下图所示的信息,点击确定即可<br><br>
+
e. After formatting the TF card, the information shown in the figure below will pop up, click OK<br><br>
 
[[Image:Pi-5-details-pic57.png]]<br><br>
 
[[Image:Pi-5-details-pic57.png]]<br><br>
4) 从Orange Pi的资料下载页面下载想要烧录的Linux操作系统镜像文件压缩包, 然后使用解压软件解压,解压后的文件中,以“.img”结尾的文件就是操作系统的镜像文件,大小一般都在 2GB以上<br><br>
+
4) Download the Linux operating system image file compression package that you want to burn from <span style="color:#0066CC;">[http://www.orangepi.online/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-pi-5.html the Orange Pi data download page]</span>, and then use the decompression software to decompress it. Among the decompressed files, the file ending with ".img" is the image file of the operating system. The size is generally more than 2GB<br><br>
5) 使用 Win32Diskimager 烧录 Linux 镜像到 TF <br>
+
5) Use '''Win32Diskimager''' to burn the Linux image to the TF card<br>
a. Win32Diskimager 的下载页面为<br>
+
a. The download page of Win32Diskimager is<br>
 
  <big>'''http://sourceforge.net/projects/win32diskimager/files/Archive/'''</big>
 
  <big>'''http://sourceforge.net/projects/win32diskimager/files/Archive/'''</big>
b. 下载完后直接安装即可,Win32Diskimager 界面如下所示<br>
+
b. After downloading, install it directly. The interface of Win32Diskimager is as follows<br>
a)首先选择镜像文件的路径<br>
+
a) First select the path of the image file<br>
b)然后确认下 TF 卡的盘符和“设备”一栏中显示的一致<br>
+
b) Then confirm that the drive letter of the TF card is consistent with that displayed in the '''"Device"''' column<br>
c)最后点击“写入”即可开始烧录<br><br>
+
c) Finally click "Write" to start burning<br><br>
 
[[Image:Pi-5-details-pic58.png]]<br><br>
 
[[Image:Pi-5-details-pic58.png]]<br><br>
c. 镜像写入完成后,点击“退出”按钮退出即可,然后就可以拔出 TF 卡插到开发板中启动<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系统使用说明 ==
+
== '''Linux system instructions''' ==
=== 已支持的Linux 镜像类型和内核版本 ===
+
=== Supported Linux image types and kernel versions ===
 
{| class="wikitable"  style="width:800px;"
 
{| class="wikitable"  style="width:800px;"
 
|-
 
|-
| Linux 镜像类型 || 内核版本 || 服务器版 || 桌面版
+
| Linux image type || kernel version || server version || desktop version
 
|-
 
|-
| Debian 11 - Bullseye || Linux5.10 || 支持 || 支持
+
| Debian 11 - Bullseye || Linux5.10 || support || support
 
|-
 
|-
| Ubuntu 20.04 - Focal || Linux5.10 || 支持 || 支持
+
| Ubuntu 20.04 - Focal || Linux5.10 || support || support
 
|-
 
|-
| Ubuntu 22.04 - Jammy || Linux5.10 || 支持 || 支持
+
| Ubuntu 22.04 - Jammy || Linux5.10 || support || support
 
|}
 
|}
  
=== 板载LED 灯测试说明 ===
+
=== Onboard LED Light Test Instructions ===
1) 开发板上有两个 LED 灯,一个绿灯,一个红灯,所在位置如下图所示:<br><br>
+
1) There are two LED lights on the development board, one is green and the other is red. The location is shown in the figure below:<br><br>
 
[[Image:Pi-5-details-pic59.png]]<br><br>
 
[[Image:Pi-5-details-pic59.png]]<br><br>
2) 只要开发板打开了电源,红色的 LED 灯就会常亮,这是由硬件控制的,软件无法关闭。<br><br>
+
2) As long as the development board is powered on, the red LED light will always be on, which is controlled by the hardware and cannot be turned off by the software.<br><br>
3) 绿色的 LED 灯在内核启动后会一直闪烁,这是由软件控制的。<br><br>
+
3) The green LED light will keep flashing after the kernel is started, which is controlled by software.<br><br>
4) 设置绿灯亮灭和闪烁的方法如下所示<br>
+
4) The method of setting the green light on and off and flashing is as follows<br>
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
|-
 
|-
| <br><big>'''注意,下面的操作请在 root 用户下进行。'''</big><br><br>
+
| <br><big>'''Note that the following operations should be performed under the root user.'''</big><br><br>
 
|}
 
|}
a. 首先进入绿灯的设置目录<br>
+
a. First enter the setting directory of the green light<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|root@orangepi:~# '''cd /sys/class/leds/status_led'''
 
|root@orangepi:~# '''cd /sys/class/leds/status_led'''
 
|}
 
|}
b. 设置绿灯停止闪烁的命令如下<br>
+
b. The command to set the green light to stop flashing is as follows<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
|root@orangepi:/sys/class/leds/status_led# '''echo none > trigger'''
+
|root@orangepi:/sys/class/leds/status_led# '''echo none''' > trigger
 
|}
 
|}
c. 设置绿灯常亮的命令如下<br>
+
c. The command to set the green light to be on is as follows<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
|root@orangepi:/sys/class/leds/status_led# '''echo default-on > trigger'''
+
|root@orangepi:/sys/class/leds/status_led# '''echo 1 > brightness'''
 
|}
 
|}
d. 设置绿灯闪烁的命令如下<br>
+
d. The command to set the green light to flash is as follows<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 130: Line 67:
 
|}
 
|}
  
=== 查询 以太网口测试 ===
+
=== Ethernet port test ===
1) 首先将网线的一端插入开发板的以太网接口,网线的另一端接入路由器,并确保网络是畅通的<br><br>
+
1) First, insert one end of the network cable into the Ethernet interface of the development board, and connect the other end of the network cable to the router, and ensure that the network is unblocked<br><br>
2) 系统启动后会通过 '''DHCP''' 自动给以太网卡分配 IP 地址,'''<span style="color:#FF0000">不需要其他任何配置</span>'''<br><br>
+
2) After the system starts, it will automatically assign an IP address to the Ethernet card through DHCP,'''<span style="color:#FF0000">No other configuration is required</span>'''<br><br>
3) 在开发板的 Linux 系统中查看 IP 地址的命令如下所示<br>
+
3) The command to view the IP address in the Linux system of the development board is as follows<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
|rangepi@orangepi:~$ '''ip addr show eth0'''<br>
+
|orangepi@orangepi:~$ '''ip addr show eth0'''<br>
 
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000<br>
 
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000<br>
 
link/ether 4a:fe:2b:3d:17:1c brd ff:ff:ff:ff:ff:ff<br>
 
link/ether 4a:fe:2b:3d:17:1c brd ff:ff:ff:ff:ff:ff<br>
Line 144: Line 81:
 
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
|-
 
|-
|当使用 '''ifconfig''' 查看 IP 地址时,如果提示下面的信息,是因为没有加 '''sudo''' 导致的,正确的命令是:'''sudo ifconfig'''<br><br>
+
|'''When using ifconfig to view the IP address, if the following information is displayed, it is because sudo is not added. The correct command is:sudo ifconfig'''<br><br>
  
orangepi@orangepi:~$ '''ifconfig'''<br>
 
 
Command 'ifconfig' is available in the following places<br>
 
Command 'ifconfig' is available in the following places<br>
 
/sbin/ifconfig<br>
 
/sbin/ifconfig<br>
Line 152: Line 88:
 
The command could not be located because '/sbin:/usr/sbin' is not included in the PATH environment variable.<br>
 
The command could not be located because '/sbin:/usr/sbin' is not included in the PATH environment variable.<br>
 
This is most likely caused by the lack of administrative privileges associated with your user account.<br>
 
This is most likely caused by the lack of administrative privileges associated with your user account.<br>
ifconfig: command not found<br>
+
ifconfig: command not found
 
|}
 
|}
 
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
|-
 
|-
|开发板启动后查看 '''IP''' 地址有三种方法:<br>
+
|'''There are three ways to check the IP address after the development board starts:'''<br>
1. 接 '''HDMI''' 显示器,然后登录系统使用 '''ip addr show eth0''' 命令查看 IP 地址<br>
+
'''1. Connect the HDMI monitor, then log in to the system and use the ip addr show eth0 command to view the IP address'''<br>
2. 在调试串口终端输入 '''ip addr show eth0''' 命令来查看 IP 地址<br>
+
'''2. Enter the ip addr show eth0 command in the debugging serial terminal to view the IP address'''<br>
3. 如果没有调试串口,也没有 '''HDMI''' 显示器,还可以通过路由器的管理界面来查看开发板网口的 '''IP''' 地址。不过这种方法经常有人会无法正常看到开发板的 '''IP''' 地址。如果看不到,调试方法如下所示:<br>
+
'''3. If there is no debugging serial port and no HDMI display, you can also check the IP address of the development board's network port through the router's management interface. However, in this method, some people often cannot see the IP address of the development board normally. If you can't see it, the debug method looks like this:'''<br>
A) 首先检查 '''Linux''' 系统是否已经正常启动,如果开发板的绿灯在闪烁了,一般是正常启动了,如果只亮红灯,说明系统都没正常启动;<br>
+
'''A) First check whether the Linux system has started normally. If the green light of the development board is blinking, it is generally started normally. If only the red light is on, it means that the system has not started normally;'''<br>
B) 检查网线有没有插紧,或者换根网线试下;<br>
+
'''B) Check whether the network cable is plugged in tightly, or try another network cable;'''<br>
C) 换个路由器试下(路由器的问题有遇到过很多,比如路由器无法正常分配'''IP''' 地址,或者已正常分配 '''IP''' 地址但在路由器中看不到);<br>
+
'''C) Try another router (I have encountered many problems with the router, such as the router cannot assign the IP address normally, or the IP address has been assigned normally but cannot be seen in the router);'''<br>
D) 如果没有路由器可换就只能连接 '''HDMI''' 显示器或者使用调试串口来查看 '''IP'''地址。<br>
+
'''D) If there is no router to replace, you can only connect to an HDMI display or use the debugging serial port to check the IP address.'''<br>
  
另外需要注意的是开发板 '''DHCP''' 自动分配 '''IP''' 地址是不需要任何设置的。<br>
+
'''In addition, it should be noted that the development board DHCP automatically assigns an IP address without any settings.'''<br>
 
|}
 
|}
4) 测试网络连通性的命令如下,ping 命令可以通过 Ctrl+C 快捷键来中断运行<br>
+
4) The command to test the network connectivity is as follows, the ping command can be interrupted through the shortcut key of '''Ctrl+C'''<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi:~$ '''ping www.baidu.com -I eth0'''<br>
 
|orangepi@orangepi:~$ '''ping www.baidu.com -I eth0'''<br>
PING www.a.shifen.com (14.215.177.38) from 192.168.1.12 eth0: 56(84) bytes of data. 64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=56 time=6.74 ms<br>
+
PING www.a.shifen.com (14.215.177.38) from 192.168.1.12 eth0: 56(84) bytes of data. <br>
 +
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=56 time=6.74 ms<br>
 
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=56 time=6.80 ms<br>
 
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=56 time=6.80 ms<br>
 
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=3 ttl=56 time=6.26 ms<br>
 
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=3 ttl=56 time=6.26 ms<br>
Line 177: Line 114:
 
^C<br>
 
^C<br>
 
--- www.a.shifen.com ping statistics ---<br>
 
--- www.a.shifen.com ping statistics ---<br>
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
+
4 packets transmitted, 4 received, 0% packet loss, time 3002ms <br>
 +
rtt min/avg/max/mdev = 6.260/6.770/7.275/0.373 ms
 
|}<br>
 
|}<br>
  
=== 查询 WIFI 连接测试 ===
+
=== WIFI connection test ===
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
|-
 
|'''<span style="color:#FF0000">首先请注意 Orange Pi 5 开发板上是没有 WIFI 模块的,需要外接 PCIe 网卡或者 USB 网卡才能使用 WIFI 功能。</span>'''<br>
 
外接 '''PCIe''' 网卡的使用说明请参考 <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 AP6275P PCIe 网卡使用方法 | AP6275P PCIe 网卡的使用方法]]</span> 一小节。外接 '''USB''' 网卡的使用说明请参考 <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 USB 无线网卡测试 | USB 无线网卡测试]]</span>一小节。
 
|}
 
 
 
 
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
|-
 
|-
|请不要通过修改'''/etc/network/interfaces''' 配置文件的方式来连接 '''WIFI''',通过这种方式连接 '''WIFI''' 网络使用会有问题。
+
|'''Please do not connect to WIFI by modifying the /etc/network/interfaces configuration file. There will be problems connecting to the WIFI network in this way.'''
 
|}
 
|}
'''1、服务器版镜像通过命令连接WIFI'''
+
'''1. The server image connects to WIFI through commands'''
 
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
|-
 
|-
|当开发板没有连接以太网,没有连接 '''HDMI''' 显示器,只连接了串口时,推荐使用此小节演示的命令来连接 '''WIFI''' 网络。因为 '''nmtui''' 在某些串口软件(如 '''minicom''') 中只能显示字符,无法正常显示图形界面。当然,如果开发板连接了以太网或者'''HDMI''' 显示屏,也可以使用此小节演示的命令来连接 '''WIFI''' 网络的。
+
|'''When the development board is not connected to Ethernet, not connected to HDMI display, but only connected to the serial port, it is recommended to use the commands demonstrated in this section to connect to the WIFI network. Because nmtui can only display characters in some serial port software (such as minicom), and cannot display the graphical interface normally. Of course, if the development board is connected to an Ethernet or HDMI display, you can also use the commands demonstrated in this section to connect to the WIFI network.'''
 
|}
 
|}
1) 先登录 linux 系统,有下面三种方式<br>
+
1) First log in to the linux system, there are the following three ways<br>
a. 如果开发板连接了网线,可以通过 ssh 远程登录 linux 系统<br>
+
a. If the development board is connected with a network cable, you can remotely log in to the Linux system through ssh<br>
b. 如果开发板连接好了调试串口,可以使用串口终端登录 linux 系统<br>
+
b. If the development board is connected to the debugging serial port, you can use the serial port terminal to log in to the Linux system<br>
c. 如果连接了开发板到HDMI 显示器,可以通过HDMI 显示的终端登录到linux 系统<br><br>
+
c. If the development board is connected to the HDMI display, you can log in to the linux system through the terminal displayed on the HDMI<br><br>
2) 首先使用  '''nmcli dev wifi''' 命令扫描周围的 WIFI 热点<br>
+
2) First use the '''nmcli dev wifi''' command to scan the surrounding WIFI hotspots<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 206: Line 138:
 
|}
 
|}
 
[[Image:Pi-5-details-pic60.png]]<br><br>
 
[[Image:Pi-5-details-pic60.png]]<br><br>
3) 然后使用 '''nmcli''' 命令连接扫描到的 WIFI 热点,其中:<br>
+
3) Then use the nmcli command to connect to the scanned WIFI hotspot, where:<br>
a. '''wifi_name''' 需要换成想连接的 WIFI 热点的名字<br>
+
a. '''wifi_name''' needs to be replaced with the name of the WIFI hotspot you want to connect to<br>
b. '''wifi_passwd''' 需要换成想连接的 WIFI 热点的密码<br>
+
b. '''wifi_passwd''' needs to be replaced with the password of the WIFI hotspot you want to connect to<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
|orangepi@orangepi:~$ '''nmcli dev wifi connect <span style="color:#FF0000">wifi_name</span> password <span style="color:#FF0000">wifi_passwd</span>'''<br>
+
|orangepi@orangepi:~$ '''nmcli dev wifi connect <span style="color:#FF0000">wifi_name</span> password <span style="color:#FF0000">wifi_passwd</span>'''
 
Device 'wlan0' successfully activated with 'cf937f88-ca1e-4411-bb50-61f402eef293'.
 
Device 'wlan0' successfully activated with 'cf937f88-ca1e-4411-bb50-61f402eef293'.
 
|}
 
|}
  
4) 通过 '''ip addr show wlan0''' 命令可以查看 wifi 的 IP 地址<br>
+
4) You can view the IP address of wifi through the '''ip addr show wlan0''' command<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
Line 224: Line 156:
 
inet6 240e:3b7:3240:c3a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute<br>
 
inet6 240e:3b7:3240:c3a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute<br>
 
valid_lft 259192sec preferred_lft 172792sec<br>
 
valid_lft 259192sec preferred_lft 172792sec<br>
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute
+
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute valid_lft forever preferred_lft forever
 
|}
 
|}
5) 使用 '''ping''' 命令可以测试 wifi 网络的连通性,'''ping''' 命令可以通过 '''Ctrl+C''' 快捷键来中断运行<br>
+
5) Use the '''ping''' command to test the connectivity of the wifi network, and the '''ping''' command can be interrupted through the shortcut key '''Ctrl+C'''<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
Line 238: Line 170:
 
^C<br>
 
^C<br>
 
--- www.orangepi.online ping statistics ---<br>
 
--- www.orangepi.online ping statistics ---<br>
5 packets transmitted, 5 received, 0% packet loss, time 4006ms  
+
5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms
 
|}
 
|}
  
'''2、服务器版镜像通过图形化方式连接WIFI'''<br><br>
+
'''2. The server image connects to WIFI in a graphical way'''<br><br>
1) 先登录 linux 系统,有下面三种方式<br>
+
1) First log in to the linux system, there are the following three ways<br>
a. 如果开发板连接了网线,可以通过 ssh 远程登录 linux 系统<br>
+
a. If the development board is connected with a network cable, you can remotely log in to the Linux system through ssh<br>
b. 如果开发板连接好了调试串口,可以使用串口终端登录 linux 系统(串口软件请使用 MobaXterm,使用 minicom 无法显示图形界面)<br>
+
b. If the development board is connected to the debugging serial port, you can use the serial port terminal to log in to the linux system (please use MobaXterm for the serial port software, and minicom cannot display the graphical interface)<br>
c. 如果连接了开发板到HDMI 显示器,可以通过HDMI 显示的终端登录到linux 系统<br><br>
+
c. If the development board is connected to the HDMI display, you can log in to the linux system through the terminal displayed on the HDMI<br><br>
2) 然后在命令行中输入 '''nmtui''' 命令打开 wifi 连接的界面<br>
+
2) Then enter the nmtui command in the command line to open the wifi connection interface<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi:~$ '''nmtui'''
 
|orangepi@orangepi:~$ '''nmtui'''
 
|}
 
|}
3) 输入 nmtui 命令打开的界面如下所示<br><br>
+
3) Enter the nmtui command to open the interface as shown below<br><br>
 
[[Image:Pi-5-details-pic61.png]]<br><br>
 
[[Image:Pi-5-details-pic61.png]]<br><br>
4) 选择 '''Activate a connect''' 后回车<br><br>
+
4) Select '''Activate a connect''' and press Enter<br><br>
 
[[Image:Pi-5-details-pic62.png]]<br><br>
 
[[Image:Pi-5-details-pic62.png]]<br><br>
5) 然后就能看到所有搜索到的 WIFI 热点<br><br>
+
5) Then you can see all the searched WIFI hotspots<br><br>
 
[[Image:Pi-5-details-pic63.png]]<br><br>
 
[[Image:Pi-5-details-pic63.png]]<br><br>
6) 选择想要连接的 WIFI 热点后再使用 Tab 键将光标定位到 '''Activate''' 后回车<br><br>
+
6) Select the WIFI hotspot you want to connect to, then use the Tab key to position the cursor on '''Activate''' and press Enter<br><br>
 
[[Image:Pi-5-details-pic64.png]]<br><br>
 
[[Image:Pi-5-details-pic64.png]]<br><br>
7) 然后会弹出输入密码的对话框,在 '''Pssword''' 内输入对应的密码然后回车就会开始连接 WIFI<br><br>
+
7) Then a dialog box for entering a password will pop up, enter the corresponding password in '''Password''' and press Enter to start connecting to WIFI<br><br>
 
[[Image:Pi-5-details-pic65.png]]<br><br>
 
[[Image:Pi-5-details-pic65.png]]<br><br>
8) WIFI 连接成功后会在已连接的 WIFI 名称前显示一个“*”<br><br>
+
8) After the WIFI connection is successful, a "*" will be displayed in front of the connected WIFI name<br><br>
 
[[Image:Pi-5-details-pic66.png]]<br><br>
 
[[Image:Pi-5-details-pic66.png]]<br><br>
9) 通过 '''ip addr show wlan0''' 命令可以查看 wifi 的 IP 地址<br>
+
9) You can view the IP address of wifi through the '''ip addr show wlan0''' command<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
Line 272: Line 204:
 
inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute<br>
 
inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute<br>
 
valid_lft 259071sec preferred_lft 172671sec<br>
 
valid_lft 259071sec preferred_lft 172671sec<br>
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute  
+
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute valid_lft forever preferred_lft forever
 
|}
 
|}
10) 使用 '''ping''' 命令可以测试 wifi 网络的连通性,'''ping''' 命令可以通过 '''Ctrl+C''' 快捷键来中断运行<br>
+
10) Use the '''ping''' command to test the connectivity of the wifi network, and the '''ping''' command can be interrupted through the shortcut key '''Ctrl+C'''<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
|orangepi@orangepi:~$ '''ip addr show wlan'''<br>
+
|orangepi@orangepi:~$ '''ping www.orangepi.online -I wlan0'''<br>
11: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000<br>
+
PING www.orangepi.online (182.92.236.130) from 192.168.1.49 wlan0: 56(84) bytes of data.<br>
link/ether 24:8c:d3:aa:76:bb brd ff:ff:ff:ff:ff:ff<br>
+
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=1 ttl=52 time=43.5 ms<br>
inet 192.168.1.11/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0 valid_lft 259069sec preferred_lft 259069sec<br>
+
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=2 ttl=52 time=41.3 ms<br>
inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute<br>
+
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=3 ttl=52 time=44.9 ms<br>
valid_lft 259071sec preferred_lft 172671sec<br>
+
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=4 ttl=52 time=45.6 ms<br>
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute
+
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=5 ttl=52 time=48.8 ms<br>
 +
^C<br>
 +
--- www.orangepi.online ping statistics ---<br>
 +
5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms
 
|}
 
|}
 +
 +
'''3. Test method of desktop image'''<br><br>
 +
1) Click the network configuration icon in the upper right corner of the desktop (please do not connect the network cable when testing WIFI)<br><br>
 
[[Image:Pi-5-details-pic67.png]]<br><br>
 
[[Image:Pi-5-details-pic67.png]]<br><br>
 +
2) Click '''More networks''' in the pop-up drop-down box to see all scanned WIFI hotspots, and then select the WIFI hotspot you want to connect to<br><br>
 
[[Image:Pi-5-details-pic68.png]]<br><br>
 
[[Image:Pi-5-details-pic68.png]]<br><br>
11) 然后输入 WIFI 热点的密码,再点击 '''Connect''' 就会开始连接 WIFI<br><br>
+
3) Then enter the password of the WIFI hotspot, and then click Connect to start connecting to WIFI<br><br>
 
[[Image:Pi-5-details-pic69.png]]<br><br>
 
[[Image:Pi-5-details-pic69.png]]<br><br>
12) 连接好 WIFI 后,可以打开浏览器查看是否能上网,浏览器的入口如下图所示<br><br>
+
4) After connecting to WIFI, you can open the browser to check whether you can access the Internet. The entrance of the browser is shown in the figure below<br><br>
 
[[Image:Pi-5-details-pic70.png]]<br><br>
 
[[Image:Pi-5-details-pic70.png]]<br><br>
13) 打开浏览器后如果能打开其他网页说明 WIFI 连接正常<br><br>
+
5) If you can open other web pages after opening the browser, it means that the WIFI connection is normal<br><br>
 
[[Image:Pi-5-details-pic71.png]]<br><br>
 
[[Image:Pi-5-details-pic71.png]]<br><br>
  
=== 查询 设置静态 IP 地址的方法 ===
+
=== How to set a static IP address ===
<br>'''1、使用nmtui 命令来设置静态IP 地址'''<br><br>
+
<br>'''1.Use the nmtui command to set a static IP address'''<br><br>
1) 首先运行 '''nmtui''' 命令<br>
+
1) First run the nmtui command<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi:~$ '''nmtui'''
 
|orangepi@orangepi:~$ '''nmtui'''
 
|}
 
|}
2) 然后选择 '''Edit a connection''' 并按下回车键<br><br>
+
2) Then select '''Edit a connection''' and press Enter<br><br>
 
[[Image:Pi-5-details-pic72.png]]<br><br>
 
[[Image:Pi-5-details-pic72.png]]<br><br>
3) 然后选择需要设置静态 IP 地址的网络接口,比如设置 '''Ethernet''' 接口的静态 IP 地址选择 '''Wired connection 1''' 就可以了<br><br>
+
3) Then select the network interface that needs to set a static IP address, for example, to set the static IP address of the '''Ethernet''' interface, select '''Wired connection 1'''<br><br>
 
[[Image:Pi-5-details-pic73.png]]<br><br>
 
[[Image:Pi-5-details-pic73.png]]<br><br>
4) 然后通过 '''Tab''' 键选择 '''Edit''' 并按下回车键<br><br>
+
4) Then select '''Edit''' via the '''Tab''' key and press the Enter key<br><br>
 
[[Image:Pi-5-details-pic74.png]]<br><br>
 
[[Image:Pi-5-details-pic74.png]]<br><br>
5) 然后通过 Tab 键将光标移动到下图所示的'''<Automatic>'''位置进行 IPv4 的配置<br><br>
+
5) Then use the Tab key to move the cursor to the '''<Automatic>''' position shown in the figure below to configure IPv4<br><br>
 
[[Image:Pi-5-details-pic75.png]]<br><br>
 
[[Image:Pi-5-details-pic75.png]]<br><br>
6) 然后回车,通过上下方向键选择 '''Manual''',然后回车确定<br><br>
+
6) Then press Enter, select '''Manual''' through the up and down arrow keys, and press Enter to confirm<br><br>
 
[[Image:Pi-5-details-pic76.png]]<br><br>
 
[[Image:Pi-5-details-pic76.png]]<br><br>
7) 选择完后的显示如下图所示<br><br>
+
7) The display after selection is shown in the figure below<br><br>
 
[[Image:Pi-5-details-pic77.png]]<br><br>
 
[[Image:Pi-5-details-pic77.png]]<br><br>
8) 然后通过 Tab 键将光标移动到'''<Show>'''<br><br>
+
8) Then move the cursor to '''<Show>''' via the Tab key<br><br>
 
[[Image:Pi-5-details-pic78.png]]<br><br>
 
[[Image:Pi-5-details-pic78.png]]<br><br>
9) 然后回车,回车后会弹出下面的设置界面<br><br>
+
9) Then press Enter, and the following setting interface will pop up after entering<br><br>
 
[[Image:Pi-5-details-pic79.png]]<br><br>
 
[[Image:Pi-5-details-pic79.png]]<br><br>
10) 然后就可以在下图所示的位置设置 IP 地址(Addresses)、网关(Gateway)DNS 服务器的地址(里面还有很多其他设置选项,请自行探索),'''<span style="color:#FF0000">请根据自己的具体需求来设置,下图中设置的值只是一个示例</span>'''<br><br>
+
10) Then you can set the IP address (Addresses), gateway (Gateway) and DNS server address in the position shown in the figure below (there are many other setting options in it, '''<span style="color:#FF0000">please explore by yourself),Please set it according to your specific needs, the value set in the figure below is just an example</span>'''<br><br>
 
[[Image:Pi-5-details-pic80.png]]<br><br>
 
[[Image:Pi-5-details-pic80.png]]<br><br>
11) 设置完后将光标移动到右下角的'''<OK>''',然后回车确认<br><br>
+
11) After setting, move the cursor to '''<OK>''' in the lower right corner, and press Enter to confirm<br><br>
 
[[Image:Pi-5-details-pic81.png]]<br><br>
 
[[Image:Pi-5-details-pic81.png]]<br><br>
12) 然后点击'''<Back>'''回退到上一级选择界面<br><br>
+
12) Then click '''<Back>''' to return to the previous selection interface<br><br>
 
[[Image:Pi-5-details-pic82.png]]<br><br>
 
[[Image:Pi-5-details-pic82.png]]<br><br>
13) 然后选择 '''Activate a connection''',再将光标移动到'''<OK>''',最后点击回车<br><br>
+
13) Then select '''Activate a connection''', then move the cursor to '''<OK>''', and finally click Enter<br><br>
 
[[Image:Pi-5-details-pic83.png]]<br><br>
 
[[Image:Pi-5-details-pic83.png]]<br><br>
14) 然后选择需要设置的网络接口,比如 '''Wired connection 1''',然后将光标移动到 '''<Deactivate>''',再按下回车键禁用 '''Wired connection 1'''<br><br>
+
14) Then select the network interface that needs to be set, such as '''Wired connection 1''', then move the cursor to '''<Deactivate>''', and press Enter to disable '''Wired connection 1'''<br><br>
 
[[Image:Pi-5-details-pic84.png]]<br><br>
 
[[Image:Pi-5-details-pic84.png]]<br><br>
15) 然后请不要移动光标,再按下回车键重新使能 '''Wired connection 1''',这样前面设置的静态 IP 地址就会生效了<br><br>
+
15) Then please do not move the cursor, and then press the Enter key to re-enable '''Wired connection 1''', so that the static IP address set earlier will take effect<br><br>
 
[[Image:Pi-5-details-pic85.png]]<br><br>
 
[[Image:Pi-5-details-pic85.png]]<br><br>
16) 然后通过'''<Back>''''''Quit''' 按钮就可以退出 nmtui<br><br>
+
16) Then you can exit nmtui through the '''<Back>''' and '''Quit''' buttons<br><br>
 
[[Image:Pi-5-details-pic86.png]][[Image:Pi-5-details-pic86-1.png]]<br><br>
 
[[Image:Pi-5-details-pic86.png]][[Image:Pi-5-details-pic86-1.png]]<br><br>
17) 然后通过'''ip addr show eth0''' 就能看到网口的IP 地址已经变成前面设置的静态IP地址了<br>
+
17) Then through '''ip addr show eth0''', you can see that the IP address of the network port has changed to the static IP address set earlier<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
Line 340: Line 279:
 
inet6 241e:3b8:3240:c3a0:e269:8305:dc08:135e/64 scope global dynamic noprefixroute<br>
 
inet6 241e:3b8:3240:c3a0:e269:8305:dc08:135e/64 scope global dynamic noprefixroute<br>
 
valid_lft 259149sec preferred_lft 172749sec<br>
 
valid_lft 259149sec preferred_lft 172749sec<br>
inet6 fe80::957d:bbbe:4928:3604/64 scope link noprefixroute
+
inet6 fe80::957d:bbbe:4928:3604/64 scope link noprefixroute valid_lft forever preferred_lft forever
 
|}
 
|}
18) 然后就可以测试网络的连通性来检查 IP 地址是否配置 OK 了,'''ping''' 命令可以通过 '''Ctrl+C''' 快捷键来中断运行<br>
+
18) Then you can test the connectivity of the network to check whether the IP address is configured OK, and the '''ping''' command can be interrupted through the shortcut key '''Ctrl+C'''<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
 
|orangepi@orangepi:~$ '''ping 192.168.1.47 -I eth0'''<br>
 
|orangepi@orangepi:~$ '''ping 192.168.1.47 -I eth0'''<br>
 
PING 192.168.1.47 (192.168.1.47) from 192.168.1.188 eth0: 56(84) bytes of data.<br>
 
PING 192.168.1.47 (192.168.1.47) from 192.168.1.188 eth0: 56(84) bytes of data.<br>
64 bytes from 192.168.1.47: icmp_seq=1 ttl=64 time=0.233 ms <br>
+
64 bytes from 192.168.1.47: icmp_seq=1 ttl=64 time=0.233 ms<br>
64 bytes from 192.168.1.47: icmp_seq=2 ttl=64 time=0.263 ms <br>
+
64 bytes from 192.168.1.47: icmp_seq=2 ttl=64 time=0.263 ms<br>
64 bytes from 192.168.1.47: icmp_seq=3 ttl=64 time=0.273 ms <br>
+
64 bytes from 192.168.1.47: icmp_seq=3 ttl=64 time=0.273 ms<br>
64 bytes from 192.168.1.47: icmp_seq=4 ttl=64 time=0.269 ms <br>
+
64 bytes from 192.168.1.47: icmp_seq=4 ttl=64 time=0.269 ms<br>
64 bytes from 192.168.1.47: icmp_seq=5 ttl=64 time=0.275 ms <br>
+
64 bytes from 192.168.1.47: icmp_seq=5 ttl=64 time=0.275 ms
--- 192.168.1.47 ping statistics ---<br>
 
5 packets transmitted, 5 received, 0% packet loss, time 4042ms <br>
 
rtt min/avg/max/mdev = 0.233/0.262/0.275/0.015 ms
 
 
|}
 
|}
  
<br>'''2、使用nmcli 命令来设置静态IP 地址'''<br><br>
+
<br>'''2.Use the nmcli command to set a static IP address'''<br><br>
1) 如果要设置网口的静态 IP 地址,请先将网线插入开发板,如果需要设置 '''WIFI'''的静态 '''IP''' 地址,请先连接好 '''WIFI''',然后再开始设置静态 IP 地址<br><br>
+
1) If you want to set the static IP address of the network port, please insert the network cable into the development board first. '''If you need to set the static IP address of WIFI, please connect the WIFI first''', and then start to set the static IP address<br><br>
2) 然后通过 '''nmcli con show''' 命令可以查看网络设备的名字,如下所示<br>
+
2) Then you can view the name of the network device through the '''nmcli con show''' command, as shown below<br>
a. '''orangepi''' WIFI 网络接口的名字(名字不一定相同)<br>
+
a. '''orangepi''' is the name of the WIFI network interface (the name is not necessarily the same)<br>
b. '''Wired connection 1''' 为以太网接口的名字<br>
+
b. '''Wired connection 1''' is the name of the Ethernet interface<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
|orangepi@orangepi:~$ '''nmcli con show'''
+
|orangepi@orangepi:~$ nmcli con show
 
|}
 
|}
 
{| class="wikitable" style="width:800px;border: none !important;"
 
{| class="wikitable" style="width:800px;border: none !important;"
Line 374: Line 310:
 
| '''Wired connection 1''' || 9db058b7-7701-37b8-9411-efc2ae8bfa30 || ethernet || eth0
 
| '''Wired connection 1''' || 9db058b7-7701-37b8-9411-efc2ae8bfa30 || ethernet || eth0
 
|}
 
|}
3) 然后输入下面的命令,其中<br>
+
3) Then enter the following command, where<br>
a. '''Wired connection 1''' 表示设置以太网口的静态 IP 地址,如果需要设置WIFI 的静态 IP 地址,请修改为 WIFI 网络接口对应的名字(通过 '''nmcli con show''' 命令可以获取到)<br>
+
a. '''"Wired connection 1"''' means to set the static IP address of the Ethernet port. If you need to set the static IP address of the WIFI, please modify it to the corresponding name of the WIFI network interface (you can get it through the '''nmcli con show''' command)<br>
b. '''ipv4.addresses''' 后面是要设置的静态 IP 地址,可以修改为自己想要设置的值<br>
+
b. '''ipv4.addresses''' is followed by the static IP address to be set, which can be modified to the value you want to set<br>
c. '''ipv4.gateway''' 表示网关的地址<br>
+
c. '''ipv4.gateway''' represents the address of the gateway<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
|orangepi@orangepi:~$ '''nmcli con mod "Wired connection 1" \'''<br>
+
|'''orangepi@orangepi:~$ '''nmcli con mod "Wired connection 1" \''' <br>
 
'''ipv4.addresses "192.168.1.110" \'''<br>
 
'''ipv4.addresses "192.168.1.110" \'''<br>
 
'''ipv4.gateway "192.168.1.1" \'''<br>
 
'''ipv4.gateway "192.168.1.1" \'''<br>
Line 386: Line 322:
 
'''ipv4.method "manual"'''
 
'''ipv4.method "manual"'''
 
|}
 
|}
4) 然后重启 linux 系统<br>
+
4) Then restart the linux system<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
 
|orangepi@orangepi:~$ '''sudo reboot'''
 
|orangepi@orangepi:~$ '''sudo reboot'''
 
|}
 
|}
5) 然后重新进入linux 系统使用 '''ip addr show eth0''' 命令就可以看到IP 地址已经设置为想要的值了<br>
+
5) Then re-enter the linux system and use the '''ip addr show eth0''' command to see that the IP address has been set to the desired value<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
Line 400: Line 336:
 
inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic noprefixroute<br>
 
inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic noprefixroute<br>
 
valid_lft 259183sec preferred_lft 172783sec<br>
 
valid_lft 259183sec preferred_lft 172783sec<br>
inet6 fe80::3312:861a:a589:d3c/64 scope link noprefixroute  
+
inet6 fe80::3312:861a:a589:d3c/64 scope link noprefixroute valid_lft forever preferred_lft forever
 
|}
 
|}
  
=== 查询 AP6275P PCIe 网卡使用方法 ===
+
=== How to use AP6275P PCIe network card ===
1) 首先需要购买一个下图所示的 AP6275P PCIe 网卡<br><br>
+
1) First, you need to purchase an AP6275P PCIe network card as shown in the figure below<br><br>
 
[[Image:Pi-5-details-pic87.png]]<br><br>
 
[[Image:Pi-5-details-pic87.png]]<br><br>
2) 然后将 AP6275P PCIe 网卡插入开发板的 M.2 接口中并固定好<br><br>
+
2) Then insert the AP6275P PCIe network card into the M.2 interface of the development board and fix it<br><br>
 
[[Image:Pi-5-details-pic88.png]]<br><br>
 
[[Image:Pi-5-details-pic88.png]]<br><br>
3) 然后在 linux 系统中打开 AP6275P PCIe 网卡的配置,步骤如下所示:<br>
+
3) Then open the configuration of the AP6275P PCIe network card in the linux system, the steps are as follows:<br>
a. 首先运行下 '''orangepi-config''',普通用户记得加 '''sudo''' 权限<br>
+
a. First run '''orangepi-config''', normal users remember to add sudo permission<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi:~$ '''sudo orangepi-config'''
 
|orangepi@orangepi:~$ '''sudo orangepi-config'''
 
|}
 
|}
b. 然后选择 '''System'''<br><br>
+
b. Then select '''System'''<br><br>
 
[[Image:Pi-5-details-pic89.png]]<br><br>
 
[[Image:Pi-5-details-pic89.png]]<br><br>
c. 然后选择 '''Hardware'''<br><br>
+
c. Then select '''Hardware'''<br><br>
 
[[Image:Pi-5-details-pic90.png]]<br><br>
 
[[Image:Pi-5-details-pic90.png]]<br><br>
d. 然后使用使用键盘的方向键定位到 '''wifi-ap6275p''',再使用空格选中<br>
+
d. Then use the arrow keys on the keyboard to navigate to '''wifi-ap6275p''', and then use the '''space''' to select<br>
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
|-
 
| <br><big>'''请不要同时选中 ssd-sata。'''</big><br><br>
 
|}
 
 
[[Image:Pi-5-details-pic91.png]]<br><br>
 
[[Image:Pi-5-details-pic91.png]]<br><br>
e. 然后选择'''<Save>'''保存<br><br>
+
e. Then select '''<Save>''' to save<br><br>
 
[[Image:Pi-5-details-pic92.png]]<br><br>
 
[[Image:Pi-5-details-pic92.png]]<br><br>
f. 然后选择'''<Back>'''<br><br>
+
f. Then select '''<Back>'''<br><br>
 
[[Image:Pi-5-details-pic93.png]]<br><br>
 
[[Image:Pi-5-details-pic93.png]]<br><br>
g. 然后选择'''<Reboot>'''重启系统使配置生效<br><br>
+
g. Then select '''<Reboot>''' to restart the system to make the configuration take effect<br><br>
 
[[Image:Pi-5-details-pic94.png]]<br><br>
 
[[Image:Pi-5-details-pic94.png]]<br><br>
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
|-
 
|-
|上面的设置最终会在'''/boot/orangepiEnv.txt''' 中加入 '''<span style="color:#FF0000">overlays=wifi-ap6275p</span>''' 这句配置。设置完后可以先检查下。如果不存在这句配置,那么设置就是有问题。<br>
+
|'''The above settings will eventually add the configuration of <span style="color:#FF0000">overlays=wifi-ap6275p</span> to /boot/orangepiEnv.txt. After setting, you can check it first. If this configuration does not exist, then there is a problem with the settings.'''<br>
如果觉得使用 '''orangepi-config''' 比较麻烦,也可以打开'''/boot/orangepiEnv.txt''',然后加入 '''overlays=wifi-ap6275p''' 这句配置也是可以。<br><br>
+
'''If you find it troublesome to use orangepi-config, you can also open /boot/orangepiEnv.txt, and then add the configuration of overlays=wifi-ap6275p.'''
orangepi@orangepi:~$ '''cat /boot/orangepiEnv.txt | grep “ap6275p”'''  
 
 
|}
 
|}
4) 重启系统后如果一切正常,此时使用下面的命令就能看到 WIFI 和蓝牙的设备节点了<br>
+
4) If everything is normal after restarting the system, use the following command to see the device nodes of WIFI and Bluetooth<br>
a. 查看 WIFI 设备节点的命令如下所示:<br>
+
a. The command to view the WIFI device node is as follows:<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi:~$ '''ip addr show wlan0'''<br>
 
|orangepi@orangepi:~$ '''ip addr show wlan0'''<br>
 
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500<br>
 
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500<br>
qdisc fq_codel state DORMANT group default qlen 1000 link/ether 70:f7:54:b8:b3:17 brd ff:ff:ff:ff:ff:ff
+
qdisc fq_codel state DORMANT group default qlen 1000 <br>
 +
link/ether 70:f7:54:b8:b3:17 brd ff:ff:ff:ff:ff:ff
 
|}
 
|}
b. 查看蓝牙设备节点的命令如下所示:<br>
+
b. The command to view the Bluetooth device node is as follows:<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
|rangepi@orangepi:~$ '''hciconfig -a'''<br>
+
|orangepi@orangepi:~$ '''hciconfig -a'''<br>
 
hci0: Type: Primary Bus: UART<br>
 
hci0: Type: Primary Bus: UART<br>
 
BD Address: 82:CC:AE:62:CE:3E ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING<br>
 
BD Address: 82:CC:AE:62:CE:3E ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING<br>
 
RX bytes:958 acl:0 sco:0 events:73 errors:0<br>
 
RX bytes:958 acl:0 sco:0 events:73 errors:0<br>
TX bytes:5544 acl:0 sco:0 commands:73 errors:0<br>
+
TX bytes:5544 acl:0 sco:0 commands:73 errors:0 Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87<br>
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87<br>
 
 
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3<br>
 
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3<br>
 
Link policy: RSWITCH SNIFF Link mode: SLAVE ACCEPT Name: 'orangepi5'<br>
 
Link policy: RSWITCH SNIFF Link mode: SLAVE ACCEPT Name: 'orangepi5'<br>
 
Class: 0x1c0000<br>
 
Class: 0x1c0000<br>
 
Service Classes: Rendering, Capturing, Object Transfer Device Class: Miscellaneous,<br>
 
Service Classes: Rendering, Capturing, Object Transfer Device Class: Miscellaneous,<br>
HCI Version: 5.1 (0xa) Revision: 0x3f9 LMP Version: 5.1 (0xa) Subversion: 0x1111
+
HCI Version: 5.1 (0xa) Revision: 0x3f9<br>
 +
LMP Version: 5.1 (0xa) Subversion: 0x1111 Manufacturer: Broadcom Corporation (15)
 
|}
 
|}
5) wifi 的连接和测试方法请参看 <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 | WIFI 连接测试]]</span>一节,这里不再赘述<br><br>
+
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) 蓝牙的测试方法请参看<span style="color:#0066CC;">[[Orange Pi 5 detail#蓝牙使用方法 | 蓝牙使用方法]]</span>一节,这里不再赘述<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>
  
=== 查询 AP6275P PCIe 网卡通过 create_ap 创建 WIFI 热点的方法 ===
+
=== AP6275P PCIe NIC creates WIFI hotspot via create_ap ===
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
|-
 
|-
|'''create_ap'''是一个帮助快速创建'''Linux'''上的'''WIFI'''热点的脚本,并且支持'''bridge'''和'''NAT'''模式,能够自动结合'''hostapd''', '''dnsmasq'''和'''iptables'''完成WIFI热点的设置,避免了用户进行复杂的配置,'''github'''地址如下:<br>
+
|create_ap is a script that helps quickly create WIFI hotspots on Linux, and supports bridge and NAT modes. It can automatically combine hostapd, dnsmasq and iptables to complete the setting of WIFI hotspots, avoiding complex configuration for users. The github address is as follows:<br>
 
<span style="color:#0066CC;">https://github.com/oblique/create_ap</span>
 
<span style="color:#0066CC;">https://github.com/oblique/create_ap</span>
 
|}
 
|}
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
|-
 
|-
|如果使用的是最新的镜像,那么就已经预装了'''create_ap'''脚本,可以通过'''create_ap'''命令来创建'''WIFI'''热点,'''create_ap'''的基本命令格式如下所示:<br><br>
+
|'''If you using the latest image, the create_ap script has been pre-installed, and you can create a WIFI hotspot through the create_ap command. The basic command format of create_ap is as follows:'''<br><br>
 
'''create_ap [options] <wifi-interface> [<interface-with-internet>]''' <br>
 
'''create_ap [options] <wifi-interface> [<interface-with-internet>]''' <br>
'''[<access-point-name> [<passphrase>]]'''<br><br>
+
'''[<access-point-name> [<passphrase>]]'''
'''options''':可以通过该参数指定加密方式、WIFI热点的频段、频宽模式、网络共享方式等,具体可以通过'''create_ap -h'''获取到有哪些'''option'''<br>
 
'''wifi-interface''':无线网卡的名称<br>
 
'''interface-with-internet''':可以联网的网卡名称,一般是'''eth0'''<br>
 
'''access-point-name''':热点名称<br>
 
'''passphrase''':热点的密码
 
 
|}
 
|}
'''1、create_ap 以 NAT 模式创建 WIFI 热点的方法'''<br><br>
+
'''1.create_ap method to create WIFI hotspot in NAT mode'''<br><br>
1) 输入下面的命令以 NAT 模式创建名称为 '''orangepi'''、密码为 '''orangepi''' 的 WIFI 热点<br>
+
1) Enter the following command to create a WIFI hotspot named '''orangepi''' and password '''orangepi''' in NAT mode<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi5:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi'''
 
|orangepi@orangepi5:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi'''
 
|}
 
|}
2) 如果有下面的信息输出,说明 WIFI 热点创建成功<br>
+
2) If the following information is output, it means that the WIFI hotspot is created successfully<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi5:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi'''<br>
 
|orangepi@orangepi5:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi'''<br>
 
Config dir: /tmp/create_ap.wlan0.conf.fPItFUJ2 PID: 3831<br>
 
Config dir: /tmp/create_ap.wlan0.conf.fPItFUJ2 PID: 3831<br>
Network Manager found, set ap0 as unmanaged device... DONE Creating a virtual WiFi interface... ap0 created.<br>
+
Network Manager found, set ap0 as unmanaged device... DONE <br>
 +
Creating a virtual WiFi interface... ap0 created.<br>
 
Sharing Internet using method: nat<br>
 
Sharing Internet using method: nat<br>
 
hostapd command-line interface: hostapd_cli -p<br>
 
hostapd command-line interface: hostapd_cli -p<br>
 
/tmp/create_ap.wlan0.conf.fPItFUJ2/hostapd_ctrl ap0: interface state UNINITIALIZED->ENABLED  
 
/tmp/create_ap.wlan0.conf.fPItFUJ2/hostapd_ctrl ap0: interface state UNINITIALIZED->ENABLED  
 
|}
 
|}
3) 此时拿出手机,在搜索到的 WIFI 列表中就能找到开发板创建的名为 '''orangepi'''的 WIFI 热点,然后可以点击 '''orangepi'''连接热点,密码就是上面设置的 '''orangepi'''<br><br>
+
3) Take out the mobile phone at this time, in the searched WIFI list, you can find the WIFI hotspot named '''orangepi''' created by the development board, and then click '''orangepi''' to connect to the hotspot, the password is the '''orangepi''' set above<br><br>
 
[[Image:Pi-5-details-pic95.png]]<br><br>
 
[[Image:Pi-5-details-pic95.png]]<br><br>
4) 连接成功后的显示如下图所示<br><br>
+
4) After the connection is successful, the display is as shown in the figure below<br><br>
 
[[Image:Pi-5-details-pic96.png]]<br><br>
 
[[Image:Pi-5-details-pic96.png]]<br><br>
5) NAT 模式下,连接到开发板热点的无线设备是向开发板的 DHCP 服务请求 IP地址的,所以会有两个不同的网段,如这里开发板的 IP 192.168.1.X<br>
+
5) In NAT mode, the wireless device connected to the hotspot of the development board requests an IP address from the DHCP service of the development board, so there will be two different network segments, for example, the IP of the development board is 192.168.1.X<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 510: Line 438:
 
RX errors 0 dropped 50 overruns 0 frame 0<br>
 
RX errors 0 dropped 50 overruns 0 frame 0<br>
 
TX packets 3798 bytes 1519493 (1.5 MB)<br>
 
TX packets 3798 bytes 1519493 (1.5 MB)<br>
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
+
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
 +
device interrupt 83
 
|}
 
|}
而开发板的 DHCP 服务默认会给接入热点的设备分配 '''192.168.12.0/24''' 的 IP 地址,这时点击已经连接的 WIFI 热点 '''orangepi''',然后就可以看到手机的 IP 地址是'''192.168.12.X'''<br><br>
+
By default, the DHCP service of the development board will assign an IP address of '''192.168.12.0/24''' to the device connected to the hotspot. At this time, click on the connected WIFI hotspot '''orangepi''', and then you can see that the IP address of the mobile phone is '''192.168.12.X'''<br><br>
 
[[Image:Pi-5-details-pic97.png]]<br><br>
 
[[Image:Pi-5-details-pic97.png]]<br><br>
 
[[Image:Pi-5-details-pic98.png]]<br><br>
 
[[Image:Pi-5-details-pic98.png]]<br><br>
6) 如果想要为接入的设备指定不同的网段,可以通过-g 参数指定,如通过-g 参数指定接入点 AP 的网段为 192.168.2.1<br>
+
6) If you want to specify a different network segment for the connected device, you can specify it through the -g parameter, such as specifying the network segment of the access point AP through the -g parameter as 192.168.2.1<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi5:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi -g 192.168.2.1'''
 
|orangepi@orangepi5:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi -g 192.168.2.1'''
 
|}
 
|}
此时通过手机连接到热点后,点击已经连接的 WIFI 热点 '''orangepi''',然后可以看到手机的 IP 地址是 '''192.168.2.X'''<br><br>
+
At this time, after connecting to the hotspot through the mobile phone, click the connected WIFI hotspot orangepi, and then you can see that the IP address of the mobile phone is '''192.168.2.X'''<br><br>
 
[[Image:Pi-5-details-pic99.png]]<br><br>
 
[[Image:Pi-5-details-pic99.png]]<br><br>
 
[[Image:Pi-5-details-pic100.png]]<br><br>
 
[[Image:Pi-5-details-pic100.png]]<br><br>
7) 在不指定'''--freq-band''' 参数的情况下,默认创建的热点是 2.4G 频段的,如果想要创建 5G 频段的热点可以通过'''--freq-band 5''' 参数指定,具体命令如下<br>
+
7) If the '''--freq-band''' parameter is not specified, the hotspot created by default is in the 2.4G frequency band. If you want to create a hotspot in the 5G frequency band, you can specify it through the '''--freq-band 5''' parameter. The specific command is as follows<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi --freq-band 5'''
 
|orangepi@orangepi:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi --freq-band 5'''
 
|}
 
|}
8) 如果需要隐藏 SSID,可以指定'''--hidden''' 参数,具体命令如下<br>
+
8) If you need to hide the SSID, you can specify the '''--hidden''' parameter, the specific command is as follows<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi --hidden'''
 
|orangepi@orangepi:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi --hidden'''
 
|}
 
|}
此时手机是搜索不到 WIFI 热点的,需要手动指定 WIFI 热点名称,并输入密码来连接 WIFI 热点<br><br>
+
At this time, the mobile phone cannot search for the WIFI hotspot. You need to manually specify the name of the WIFI hotspot and enter the password to connect to the WIFI hotspot<br><br>
 
[[Image:Pi-5-details-pic101.png]]<br><br>
 
[[Image:Pi-5-details-pic101.png]]<br><br>
  
'''2、create_ap 以 bridge 模式创建WIFI 热点的方法'''<br><br>
+
'''2.create_ap method to create WIFI hotspot in bridge mode'''<br><br>
1) 输入下面的命令以 bridge 模式创建名称为 '''orangepi'''、密码为 '''orangepi''' 的 WIFI热点<br>
+
1) Enter the following command to create a WIFI hotspot named '''orangepi''' and password '''orangepi''' in bridge mode<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
 
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi'''
 
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi'''
 
|}
 
|}
2) 如果有下面的信息输出,说明 WIFI 热点创建成功<br>
+
2) If the following information is output, it means that the WIFI hotspot is created successfully<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
 
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi'''<br>
 
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi'''<br>
 
[sudo] password for orangepi:<br>
 
[sudo] password for orangepi:<br>
Config dir: /tmp/create_ap.wlan0.conf.fg9U5Xgt PID: 3141<br>
+
Config dir: /tmp/create_ap.wlan0.conf.fg9U5Xgt <br>
Network Manager found, set ap0 as unmanaged device... DONE<br>
+
PID: 3141<br>
Creating a virtual WiFi interface... ap0 created. Sharing Internet using method: bridge<br>
+
Network Manager found, set ap0 as unmanaged device... DONE <br>
 +
Creating a virtual WiFi interface... ap0 created.<br>
 +
Sharing Internet using method: bridge <br>
 
Create a bridge interface... br0 created.<br>
 
Create a bridge interface... br0 created.<br>
 
hostapd command-line interface: hostapd_cli -p<br>
 
hostapd command-line interface: hostapd_cli -p<br>
/tmp/create_ap.wlan0.conf.fg9U5Xgt/hostapd_ctrl ap0: interface state UNINITIALIZED->ENABLED ap0: AP-ENABLED
+
/tmp/create_ap.wlan0.conf.fg9U5Xgt/hostapd_ctrl <br>
 +
ap0: interface state UNINITIALIZED->ENABLED ap0: AP-ENABLED
 
|}
 
|}
3) 此时拿出手机,在搜索到的 WIFI 列表中就能找到开发板创建的名为 '''orangepi'''的 WIFI 热点,然后可以点击 '''orangepi''' 连接热点,密码就是上面设置的 '''orangepi'''<br><br>
+
3) Take out the mobile phone at this time, and you can find the WIFI hotspot named orangepi created by the development board in the searched WIFI list, and then you can click orangepi to connect to the hotspot, and the password is the orangepi set above<br><br>
 
[[Image:Pi-5-details-pic102.png]]<br><br>
 
[[Image:Pi-5-details-pic102.png]]<br><br>
4) 然后重启 linux 系统<br><br>
+
4) After the connection is successful, the display is as shown in the figure below<br><br>
 
[[Image:Pi-5-details-pic103.png]]<br><br>
 
[[Image:Pi-5-details-pic103.png]]<br><br>
5) bridge 模式下,连接到开发板热点的无线设备也是向主路由(开发板连接的路由器)的 DHCP 服务请求 IP 地址的,如这里开发板的 IP '''192.168.1.X'''<br>
+
5) In bridge mode, the wireless device connected to the hotspot of the development board also requests an IP address from the DHCP service of the main router (the router connected to the development board), for example, the IP of the development board is '''192.168.1.X'''<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
 
|orangepi@orangepi:~$ '''ifconfig eth0'''<br>
 
|orangepi@orangepi:~$ '''ifconfig eth0'''<br>
 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500<br>
 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500<br>
inet '''<span style="color:#FF0000">192.168.1.150</span>''' netmask 255.255.255.0 broadcast 192.168.1.255 <br>
+
inet '''<span style="color:#FF0000">192.168.1.150</span>''' netmask 255.255.255.0 broadcast 192.168.1.255 <br>
inet6 fe80::938f:8776:5783:afa2 prefixlen 64 scopeid 0x20<link> <br>
+
inet6 fe80::938f:8776:5783:afa2 prefixlen 64 scopeid 0x20<link><br>
ether 4a:a0:c8:25:42:82 txqueuelen 1000 (Ethernet)<br>
+
ether 4a:a0:c8:25:42:82 txqueuelen 1000 (Ethernet) <br>
 
RX packets 25370 bytes 2709590 (2.7 MB)<br>
 
RX packets 25370 bytes 2709590 (2.7 MB)<br>
 
RX errors 0 dropped 50 overruns 0 frame 0<br>
 
RX errors 0 dropped 50 overruns 0 frame 0<br>
 
TX packets 3798 bytes 1519493 (1.5 MB)<br>
 
TX packets 3798 bytes 1519493 (1.5 MB)<br>
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
+
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
 +
device interrupt 83
 
|}
 
|}
而接入 WIFI 热点的设备的 IP 也是由主路由分配的,所以连接 WIFI 热点的手机和开发板处于相同的网段,这时点击已经连接的 WIFI 热点 '''orangepi''',然后就可以看到手机的 IP 地址也是 '''192.168.1.X'''<br><br>
+
The IP of the device connected to the WIFI hotspot is also assigned by the main router, so the mobile phone connected to the WIFI hotspot and the development board are in the same network segment. At this time, click on the connected WIFI hotspot orangepi, and then you can see the IP address of the mobile phone Also 192.168.1.X<br><br>
 
[[Image:Pi-5-details-pic104.png]]<br><br>
 
[[Image:Pi-5-details-pic104.png]]<br><br>
 
[[Image:Pi-5-details-pic105.png]]<br><br>
 
[[Image:Pi-5-details-pic105.png]]<br><br>
6) 在不指定'''--freq-band''' 参数的情况下,默认创建的热点是 2.4G 频段的,如果想要创建 5G 频段的热点可以通过'''--freq-band 5''' 参数指定,具体命令如下<br>
+
6) If the --freq-band parameter is not specified, the hotspot created by default is in the 2.4G frequency band. If you want to create a hotspot in the 5G frequency band, you can specify the --freq-band 5 parameter. The specific command is as follows<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
 
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi --freq-band 5'''
 
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi --freq-band 5'''
 
|}
 
|}
7) 如果需要隐藏 SSID,可以指定'''--hidden''' 参数,具体命令如下<br>
+
7) If you need to hide the SSID, you can specify the --hidden parameter, the specific command is as follows<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
 
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi --hidden'''
 
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi --hidden'''
 
|}
 
|}
此时手机是搜索不到 WIFI 热点的,需要手动指定 WIFI 热点名称,并输入密码来连接 WIFI 热点<br><br>
+
At this time, the mobile phone cannot search for the WIFI hotspot. You need to manually specify the name of the WIFI hotspot and enter the password to connect to the WIFI hotspot.<br><br>
 
[[Image:Pi-5-details-pic106.png]]<br><br>
 
[[Image:Pi-5-details-pic106.png]]<br><br>
  
=== 查询 HDMI 显示测试 ===
+
=== HDMI display test ===
1) 使用 HDMI HDMI 线连接 Orange Pi 开发板和 HDMI 显示器<br><br>
+
1) Use HDMI to HDMI cable to connect Orange Pi development board and HDMI display<br><br>
 
[[Image:Pi-5-details-pic107.png]]<br><br>
 
[[Image:Pi-5-details-pic107.png]]<br><br>
2) 启动 linux 系统后如果 HDMI 显示器有图像输出说明 HDMI 接口使用正常<br>
+
2) After starting the linux system, if the HDMI monitor has image output, it means that the HDMI interface is working normally<br>
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
|-
 
|-
|注意,很多笔记本电脑虽然带有 '''HDMI''' 接口,但是笔记本的 '''HDMI''' 接口一般只有输出功能,并没有 '''HDMI in''' 的功能,也就是说并不能将其他设备的 '''HDMI''' 输出显示到笔记本的屏幕上。<br>
+
|'''Note that although many notebook computers have an HDMI interface, the HDMI interface of the notebook generally only has the output function, and does not have the function of HDMI in, that is to say, the HDMI output of other devices cannot be displayed on the notebook screen.'''<br>
当想把开发板的 '''HDMI''' 接到笔记本电脑 '''HDMI''' 接口时,请先确认清楚您的笔记本是支持 '''HDMI in''' 的功能。
+
'''When you want to connect the HDMI of the development board to the HDMI port of the laptop, please make sure that your laptop supports the HDMI in function.'''
 
|}
 
|}
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
|-
 
|-
|'''HDMI''' 没有显示的时候,请先检查下 '''HDMI''' 线有没有插紧,确认接线没问题后,可以换一个不同的屏幕试下有没有显示。
+
|'''When the HDMI is not displayed, please check whether the HDMI cable is plugged in tightly. After confirming that there is no problem with the connection, you can change a different screen and try to see if it is displayed.'''
 
|}
 
|}
  
=== 查询 HDMI VGA 显示测试 ===
+
=== HDMI to VGA display test ===
1) 首先需要准备下面的配件<br>
+
1) First, you need to prepare the following accessories<br>
a. HDMI VGA 转换器<br><br>
+
a. HDMI to VGA Converter<br><br>
 
[[Image:Pi-5-details-pic108.png]]<br><br>
 
[[Image:Pi-5-details-pic108.png]]<br><br>
b. 一根 VGA 线<br><br>
+
b. A VGA cable<br><br>
 
[[Image:Pi-5-details-pic109.png]]<br><br>
 
[[Image:Pi-5-details-pic109.png]]<br><br>
c. 一个支持 VGA 接口的显示器或者电视<br><br>
+
c. A monitor or TV that supports VGA interface<br><br>
2) HDMI VGA 显示测试如下所示<br><br>
+
2) HDMI to VGA display test as shown below<br><br>
 
[[Image:Pi-5-details-pic110.png]]<br><br>
 
[[Image:Pi-5-details-pic110.png]]<br><br>
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
|-
 
|-
| <br><big>'''使用 HDMI VGA 显示时,开发板以及开发板的 Linux 系统是不需要做任何设置的,只需要开发板 HDMI 接口能正常显示就可以了。所以如果测试有问题,请检查 HDMI VGA 转换器、VGA 线以及显示器是否有问题。'''</big><br><br>
+
| <br><big>'''When using HDMI to VGA display, the development board and the Linux system of the development board do not need to make any settings, only the HDMI interface of the development board can display normally. So if there is a problem with the test, please check whether there is a problem with the HDMI to VGA converter, VGA cable and monitor.'''</big><br><br>
 
|}
 
|}
  
=== 查询 HDMI 分辨率设置方法 ===
+
=== HDMI resolution setting method ===
1) 首先在 '''Settings''' 中打开 '''Display'''<br><br>
+
1) First open '''Display''' in '''Settings'''<br><br>
 
[[Image:Pi-5-details-pic111.png]]<br><br>
 
[[Image:Pi-5-details-pic111.png]]<br><br>
2) 然后就能看到系统当前的分辨率<br><br>
+
2) Then you can see the current resolution of the system<br><br>
 
[[Image:Pi-5-details-pic112.png]]<br><br>
 
[[Image:Pi-5-details-pic112.png]]<br><br>
3) 点击 Resolution(分辨率)的下拉框,就可以看到显示器当前支持的所有分辨率<br><br>
+
3) Click the drop-down box of Resolution to see all resolutions currently supported by the display<br><br>
 
[[Image:Pi-5-details-pic113.png]]<br><br>
 
[[Image:Pi-5-details-pic113.png]]<br><br>
4) 然后选择想要设置的分辨率,再点击 Apply<br><br>
+
4) Then select the resolution you want to set, and click Apply<br><br>
 
[[Image:Pi-5-details-pic114.png]]<br><br>
 
[[Image:Pi-5-details-pic114.png]]<br><br>
5) 等新的分辨率设置完后再选择 '''Keep the configuration''' 即可<br><br>
+
5) After the new resolution is set, select '''Keep the configuration'''<br><br>
 
[[Image:Pi-5-details-pic115.png]]<br><br>
 
[[Image:Pi-5-details-pic115.png]]<br><br>
  
=== 蓝牙使用方法 ===
+
=== How to use Bluetooth ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
+
'''1.Test method of desktop image'''<br><br>
|-
+
1) Click the Bluetooth icon in the upper right corner of the desktop<br><br>
|<span style="color:#FF0000">请注意,'''Orange Pi 5''' 开发板上是没有蓝牙模块的,需要外接带蓝牙的 '''PCIe''' 网卡或者带蓝牙的 '''USB''' 网卡才能使用蓝牙功能。</span><br>
 
外接 '''PCIe''' 网卡的使用说明请参考 <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 AP6275P PCIe 网卡使用方法 | AP6275P PCIe 网卡的使用方法]]</span>一小节。外接 '''USB''' 网卡的使用说明请参考 <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 USB 无线网卡测试 | USB 无线网卡测试]]</span>一小节。
 
|}
 
桌面版镜像的测试方法<br><br>
 
1) 点击桌面右上角的蓝牙图标<br><br>
 
 
[[Image:Pi-5-details-pic116.png]]<br><br>
 
[[Image:Pi-5-details-pic116.png]]<br><br>
2) 然后选择适配器<br><br>
+
2) Then select the adapter<br><br>
 
[[Image:Pi-5-details-pic117.png]]<br><br>
 
[[Image:Pi-5-details-pic117.png]]<br><br>
3) 如果有提示下面的界面,请选择 '''Yes'''<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>
 
[[Image:Pi-5-details-pic118.png]]<br><br>
4) 然后在蓝牙的适配器设置界面中设置 '''Visibility Setting''' '''Always visible''',然后关闭即可<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>
 
[[Image:Pi-5-details-pic119.png]]<br><br>
5) 然后打开蓝牙设备的配置界面<br><br>
+
5) Then open the configuration interface of the Bluetooth device<br><br>
 
[[Image:Pi-5-details-pic120.png]]<br><br>
 
[[Image:Pi-5-details-pic120.png]]<br><br>
6) 点击 '''Search''' 即可开始扫描周围的蓝牙设备<br><br>
+
6) Click '''Search''' to start scanning the surrounding Bluetooth devices<br><br>
 
[[Image:Pi-5-details-pic121.png]]<br><br>
 
[[Image:Pi-5-details-pic121.png]]<br><br>
7) 然后选择想要连接的蓝牙设备,再点击鼠标右键就会弹出对此蓝牙设备的操作界面,选择 '''Pair''' 即可开始配对,这里演示的是和 Android 手机配对<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>
 
[[Image:Pi-5-details-pic122.png]]<br><br>
8) 配对时,桌面的右上角会弹出配对确认框,选择 '''Confirm''' 确认即可,此时手机上也同样需要进行确认<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>
 
[[Image:Pi-5-details-pic123.png]]<br><br>
9) 和手机配对完后,可以选择已配对的蓝牙设备,然后右键选择 '''Send a File''' 即可开始给手机发送一张图片<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>
 
[[Image:Pi-5-details-pic124.png]]<br><br>
10) 发送图片的界面如下所示<br><br>
+
10) The interface for sending pictures is as follows<br><br>
 
[[Image:Pi-5-details-pic125.png]]<br><br>
 
[[Image:Pi-5-details-pic125.png]]<br><br>
  
=== 查询 连接 USB 鼠标或键盘测试 ===
+
=== USB interface test ===
1) USB 接口的键盘插入 Orange Pi 开发板的 USB 接口中<br><br>
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
2) 连接 Orange Pi 开发板到 HDMI 显示器<br><br>
+
|-
3) 如果鼠标或键盘能正常操作系统说明 USB 接口使用正常(鼠标只有在桌面版的系统中才能使用)<br><br>
+
| <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 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>
  
=== 查询 连接 USB 存储设备测试 ===
+
=== Connect USB storage device test ===
1) 首先将 U 盘或者 USB 移动硬盘插入 Orange Pi 开发板的 USB 接口中<br><br>
+
1) First insert the U disk or USB mobile hard disk into the USB interface of the Orange Pi development board<br><br>
2) 执行下面的命令如果能看到 sdX 的输出说明 U 盘识别成功<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;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
 
|
 
|
orangepi@orangepi:~$ cat /proc/partitions | grep "sd"
+
orangepi@orangepi:~$ '''cat /proc/partitions | grep "sd*"'''
 
|}
 
|}
3) 使用 mount 命令可以将 U 盘挂载到/mnt 中,然后就能查看 U 盘中的文件了<br>
+
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;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
|orangepi@orangepi:~$ sudo mount /dev/sda1 /mnt/<br>
+
|orangepi@orangepi:~$ '''sudo mount /dev/sda1 /mnt/'''<br>
orangepi@orangepi:~$ ls /mnt/<br>
+
orangepi@orangepi:~$ '''ls /mnt/'''<br>
 
test.txt
 
test.txt
 
|}
 
|}
4) 挂载完后通过 df -h 命令就能查看 U 盘的容量使用情况和挂载点<br>
+
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''' command<br>
 
{| class="wikitable" style="width:800px;"
 
{| class="wikitable" style="width:800px;"
 
|-
 
|-
 
|
 
|
orangepi@orangepi:~$ df -h | grep "sd"<br>
+
orangepi@orangepi:~$ '''df -h | grep "sd"'''<br>
 
/dev/sda1 29G 208K 29G 1% /mnt
 
/dev/sda1 29G 208K 29G 1% /mnt
 
|}
 
|}
  
=== 查询 USB 无线网卡测试 ===
+
=== USB wireless network card test ===
目前测试过的能用的 USB 无线网卡如下所示,其他型号的 USB 无线网卡请自行测试,如果无法使用就需要移植对应的 USB 无线网卡驱动<br>
+
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;"
 
{| class="wikitable"  style="width:800px;"
 
|-
 
|-
| 序号 || 型号 ||   
+
| serial number || model ||   
 
|-
 
|-
| 1 || RTL8723BU <br>支持 2.4G WIFI+BT4.0 || [[Image:Pi-5-details-pic126.png]]
+
| 1 || RTL8723BU <br>Support 2.4G WIFI+BT4.0 || [[Image:Pi-5-details-pic126.png]]
 
|-
 
|-
| 2 || RTL8811 <br>支持 2.4G +5G WIFI || [[Image:Pi-5-details-pic127.png]]
+
| 2 || RTL8811 <br>Support 2.4G +5G WIFI || [[Image:Pi-5-details-pic127.png]]
 
|-
 
|-
| 3 || RTL8821CU <br>支持 2.4G +5G WIFI <br>支持 BT 4.2 || [[Image:Pi-5-details-pic128.png]]
+
| 3 || RTL8821CU <br>Support 2.4G +5G WIFI <br>支持 BT 4.2 || [[Image:Pi-5-details-pic128.png]]
 
|}
 
|}
'''1、RTL8723BU 测试'''<br><br>
+
'''1.RTL8723BU test'''<br><br>
1) 首先将 RTL8723BU 无线网卡模块插入开发板的 USB 接口中<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命令可以看到下面内核模块已自动加载<br>
+
2) 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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 712: Line 651:
 
|}
 
|}
 
|}
 
|}
3) 通过 dmesg 命令可以看到 RTL8723BU 模块的加载信息<br>
+
3) Through the dmesg command, you can see the loading information of the RTL8723BU module<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
 
|orangepi@orangepi:~$ '''dmesg'''
 
|orangepi@orangepi:~$ '''dmesg'''
 
|}
 
|}
4) 然后通过 '''sudo ifconfig''' 命令可以看到 RTL8723BU WIFI 的设备节点,WIFI 的连接和测试方法请参看 <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 | WIFI 连接测试]]</span>一节,这里不再赘述<br>
+
4) Then you can see the device node of RTL8723BU WIFI through the '''sudo ifconfig''' command. For the connection and test method of 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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 724: Line 663:
 
ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B)<br>
 
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>
 
RX errors 0 dropped 0 overruns 0 frame 0<br>
TX packets 0 bytes 0 (0.0 B)
+
TX packets 0 bytes 0 (0.0 B)<br>
 +
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
 
|}
 
|}
5) 然后通过 '''hciconfig''' 命令可以看到 USB 的蓝牙设备<br>
+
5) Then you can see the USB Bluetooth device through the '''hciconfig''' command<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 734: Line 674:
 
BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16 DOWN<br>
 
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>
 
RX bytes:1252 acl:0 sco:0 events:125 errors:0<br>
TX bytes:23307 acl:0 sco:0 commands:125 errors:0
+
TX bytes:23307 acl:0 sco:0 commands:125 errors:0<br>
 
|}
 
|}
6) 在桌面中也可以看到出现了蓝牙图标,此时蓝牙还未打开,所以会显示一个红色的 '''<span style="color:#FF0000">x</span>'''<br><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>
 
[[Image:Pi-5-details2-pic01.png]]<br><br>
7) 点击 '''Turn Bluetooth On''' 可以打开蓝牙<br><br>
+
7) Click '''Turn Bluetooth On''' to turn on Bluetooth<br><br>
 
[[Image:Pi-5-details2-pic02.png]]<br><br>
 
[[Image:Pi-5-details2-pic02.png]]<br><br>
8) 打开蓝牙后的显示如下所示<br><br>
+
8) The display after turning on Bluetooth is as follows<br><br>
 
[[Image:Pi-5-details2-pic03.png]]<br><br>
 
[[Image:Pi-5-details2-pic03.png]]<br><br>
9) 蓝牙的测试方法请参看<span style="color:#0066CC;">[[Orange Pi 5 detail#蓝牙使用方法 | 蓝牙使用方法]]</span>一节,这里不再赘述<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 测试'''<br><br>
+
'''2.RTL8811 test'''<br><br>
1) 首先将 RTL8811 无线网卡模块插入开发板的 USB 接口中<br><br>
+
1) First insert the RTL8811 wireless network card module into the USB interface of the development board<br><br>
2) 然后 linux 系统会自动加载 RTL8811 WIFI 相关的内核模块,通过 lsmod 命令可以看到下面内核模块已自动加载<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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 757: Line 697:
 
|}
 
|}
 
|}
 
|}
3) 通过 dmesg 命令可以看到 RTL8811 模块的加载信息<br>
+
3) Through the dmesg command, you can see the loading information of the RTL8811 module<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 768: Line 708:
 
[ 119.500530] usbcore: registered new interface driver rtl8821cu
 
[ 119.500530] usbcore: registered new interface driver rtl8821cu
 
|}
 
|}
4) 然后通过 '''sudo ifconfig''' 命令可以看到 WIFI 的设备节点,WIFI 的连接和测试方法请参看 <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 | WIFI 连接测试]]</span>一节,这里不再赘述<br>
+
4) Then, you can see the WIFI device node through the sudo ifconfig command. For the 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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 779: Line 719:
 
|}
 
|}
  
'''3、RTL8821CU 测试'''<br><br>
+
'''3.RTL8821CU test'''<br><br>
1) 首先将 rtl8821cu 无线网卡模块插入开发板的 usb 接口中<br><br>
+
1) First insert the rtl8821cu wireless network card module into the usb interface of the development board<br><br>
2) 然后使用 '''lsusb''' 命令就可以看到 rtl8821cu usb wifi 模块的设备信息,请确保 USB模块没有处于 Driver CDROM Mode<br>
+
2) Then use the lsusb command to see the device information of the rtl8821cu usb wifi module, please make sure that the USB module is not in Driver CDROM Mode<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 790: Line 730:
 
|-
 
|-
 
|orangepi@orangepi:~$ '''lsusb | grep "Realtek"'''<br>
 
|orangepi@orangepi:~$ '''lsusb | grep "Realtek"'''<br>
Bus 002 Device 002: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter '''(Driver CDROM Mode)'''<br><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''' 命令看到的 '''USB WIFI''' 模块处于 '''Driver CDROM Mode''',请重新拔插下 '''USB WIFI''' 模块。如果还不行,请手动执行下面的命令切换下模式:
+
'''If the USB WIFI module seen by the lsusb command is in Driver CDROM Mode, please unplug the USB WIFI module again. If not, please manually execute the following command to switch to the next mode:'''
 
|}
 
|}
3) linux 系统会自动加载 rtl8821cu 蓝牙和 wifi 相关的内核模块,通过 lsmod 命令可以看到下面内核模块已自动加载<br>
+
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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 807: Line 747:
 
|}
 
|}
 
|}
 
|}
4) 通过 dmesg 命令可以看到 rtl8821cu 模块的加载信息<br>
+
4) Through the dmesg command, you can see the loading information of the rtl8821cu module<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 833: Line 773:
 
[ 59.280119] rtl8821cu 2-1:1.2 wlx90de80521825: renamed from wlan0
 
[ 59.280119] rtl8821cu 2-1:1.2 wlx90de80521825: renamed from wlan0
 
|}
 
|}
5) 然后通过 '''sudo ifconfig''' 命令可以看到 rtl8821cu wifi 的设备节点,wifi 的连接和测试方法请参看 <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 | WIFI 连接测试]]</span>一节,这里不再赘述<br>
+
5) Then you can see the device node of rtl8821cu wifi through the '''sudo ifconfig''' command. For the 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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 842: Line 782:
 
TX packets 0 bytes 0 (0.0 B)
 
TX packets 0 bytes 0 (0.0 B)
 
|}
 
|}
6) 然后通过 '''hciconfig''' 命令可以看到 USB 的蓝牙设备<br>
+
6) Then you can see the USB Bluetooth device through the hciconfig command<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 852: Line 792:
 
TX bytes:23307 acl:0 sco:0 commands:125 errors:0
 
TX bytes:23307 acl:0 sco:0 commands:125 errors:0
 
|}
 
|}
7) 在桌面中也可以看到出现了蓝牙图标,此时蓝牙还未打开,所以会显示一个红色的 '''<span style="color:#FF0000">x</span>'''<br><br>
+
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>
 
[[Image:Pi-5-details2-pic04.png]]<br><br>
8) 点击 Turn Bluetooth On 可以打开蓝牙<br><br>
+
8) Click '''Turn Bluetooth On''' to turn on Bluetooth<br><br>
 
[[Image:Pi-5-details2-pic05.png]]<br><br>
 
[[Image:Pi-5-details2-pic05.png]]<br><br>
9) 打开蓝牙后的显示如下所示<br><br>
+
9) The display after turning on Bluetooth is as follows<br><br>
 
[[Image:Pi-5-details2-pic06.png]]<br><br>
 
[[Image:Pi-5-details2-pic06.png]]<br><br>
蓝牙的测试方法请参看<span style="color:#0066CC;">[[Orange Pi 5 detail#蓝牙使用方法 | 蓝牙使用方法]]</span>一节,这里不再赘述<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 摄像头测试 ===
+
=== USB camera test ===
1) 首先需要准备一个下图所示的或者类似的支持 UVC 协议的 USB 摄像头,然后将USB 摄像头插入到 Orange Pi 开发板的 USB 接口中<br><br>
+
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 camera into the USB port of the Orange Pi development board<br><br>
 
[[Image:Pi-5-details2-pic07.png]]<br><br>
 
[[Image:Pi-5-details2-pic07.png]]<br><br>
2) 通过 v4l2-ctl 命令可以看到 USB 摄像头的设备节点信息为'''/dev/video0'''<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;"  
 
|-
 
|-
Line 874: Line 814:
 
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 
|-
 
|-
|注意 '''v4l2''' 中的 '''l''' 是小写字母 '''l''',不是数字 '''1'''<br><br>
+
|'''Note that the l in v4l2 is a lowercase letter l, not the number 1.'''<br><br>
  
另外 '''video''' 的序号不一定都是 '''video0''',请以实际看到的为准。
+
'''In addition, the serial number of the video is not necessarily video0, please refer to what you actually see.'''
 
|}
 
|}
3) 在桌面系统中可以使用 Cheese 直接打开 USB 摄像头,Cheese 打开方法如下图所示:<br><br>
+
3) In the desktop system, Cheese can be used to directly open the USB camera. The method of opening Cheese is shown in the figure below.:<br><br>
 
[[Image:Pi-5-details2-pic08.png]]<br><br>
 
[[Image:Pi-5-details2-pic08.png]]<br><br>
Cheese 打开 USB 摄像头后的界面如下图所示:<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>
 
[[Image:Pi-5-details2-pic09.png]]<br><br>
4) 使用 fswebcam 测试 USB 摄像头的方法<br>
+
4) Method of using fswebcam to test USB camera<br>
a. 安装 fswebcam
+
a. Install fswebcam
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 889: Line 829:
 
orangepi@orangepi:~$ '''sudo apt-get install -y fswebcam'''
 
orangepi@orangepi:~$ '''sudo apt-get install -y fswebcam'''
 
|}
 
|}
b. 安装完 fswebcam 后可以使用下面的命令来拍照<br>
+
b. After installing fswebcam, you can use the following command to take pictures<br>
a) -d 选项用于指定 USB 摄像头的设备节点<br>
+
a) -d option is used to specify the device node of the USB camera<br>
b) --no-banner 用于去除照片的水印<br>
+
b) --no-banner is used to remove the watermark of the photo<br>
c) -r 选项用于指定照片的分辨率<br>
+
c) The -r option is used to specify the resolution of the photo<br>
d) -S 选项用设置于跳过前面的帧数<br>
+
d) The -S option is used to set the number of previous frames to skip <br>
e) ./image.jpg 用于设置生成的照片的名字和路径<br>
+
e) ./image.jpg is used to set the name and path of the generated photo<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 900: Line 840:
 
'''--no-banner -r 1280x720 -S 5 ./image.jpg'''
 
'''--no-banner -r 1280x720 -S 5 ./image.jpg'''
 
|}
 
|}
c. 在服务器版的 linux 系统中,拍完照后可以使用 scp 命令将拍好的图片传到Ubuntu PC 上镜像观看<br>
+
c. In the server version of the linux system, you can use the scp command to transfer the taken pictures to the Ubuntu PC for image viewing after taking pictures<br>
 
{| class="wikitable" style="width:800px;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
|orangepi@orangepi:~$ '''scp image.jpg [email protected]:/home/test'''(根据实际情况修改 IP 地址和路径)
+
|orangepi@orangepi:~$ '''scp image.jpg [email protected]:/home/test'''( '''Modify the IP address and path according to the actual situation''')
 
|}
 
|}
d. 在桌面版的 linux 系统中,可以通过 HDMI 显示器直接查看拍摄的图片<br>
+
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) 首先打开文件管理器<br><br>
+
1) First open the file manager<br><br>
 
[[Image:Pi-5-details2-pic10.png]]<br><br>
 
[[Image:Pi-5-details2-pic10.png]]<br><br>
2) 然后找到下面这个文件(如果系统中没有这个音频文件,可以自己上传一个音频文件到系统中)<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>
 
[[Image:Pi-5-details2-pic11.png]]<br><br>
3) 然后选中 audio.wav 文件,右键选择使用 vlc 打开就可以开始播放<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>
 
[[Image:Pi-5-details2-pic12.png]]<br><br>
4) HDMI 播放和耳机播放等不同音频设备的方法<br>
+
4) How to switch between different audio devices such as HDMI playback and headphone playback<br>
a. 首先打开音量控制界面<br><br>
+
a. First open the volume control interface<br><br>
 
[[Image:Pi-5-details2-pic13.png]]<br><br>
 
[[Image:Pi-5-details2-pic13.png]]<br><br>
b. 播放音频的时候,在 '''Playback''' 中会显示播放软件可以使用的音频设备选项, 如下图所示,在这里可以设置需要播放到哪个音频设备<br><br>
+
b. When playing audio, the audio device options that the '''playback''' 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>
 
[[Image:Pi-5-details2-pic14.png]]<br><br>
  
=== 查询 使用命令播放音频的方法 ===
+
=== The method of using commands to play audio ===
'''1、耳机接口播放音频测试'''<br><br>
+
'''1.Headphone interface playback audio test'''<br><br>
1) 首先将耳机插入开发板的耳机孔中<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>
 
[[Image:Pi-5-details2-pic15.png]]<br><br>
2) 然后可以通过 '''aplay -l''' 命令可以查看下 linux 系统支持的声卡设备,从下面的输出可知,'''card 2''' 为 es8388 的声卡设备,也就是耳机的声卡设备<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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 937: Line 877:
 
<span style="color:#0066CC;">Subdevices: 1/1</span>
 
<span style="color:#0066CC;">Subdevices: 1/1</span>
 
|}
 
|}
3) 然后使用 '''aplay''' 命令播放下系统自带的音频文件,如果耳机能听到声音说明硬件能正常使用<br>
+
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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 944: Line 884:
 
|}
 
|}
  
'''2、HDMI 音频播放测试'''<br><br>
+
'''2.HDMI audio playback test'''<br><br>
1) 首先使用 HDMI HDMI 线将 Orange Pi 开发板连接到电视机上(其他的 HDMI 显示器需要确保可以播放音频)<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) 然后查看下 HDMI 的声卡序号,从下面的输出可以知道 HDMI 的声卡为 '''card 1'''<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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 957: Line 897:
 
card 2: rockchipes8388 [rockchip-es8388], device 0: dailink-multicodecs ES8323.6-0010-0 [dailink-multicodecs  
 
card 2: rockchipes8388 [rockchip-es8388], device 0: dailink-multicodecs ES8323.6-0010-0 [dailink-multicodecs  
 
|}
 
|}
3) 然后使用 '''aplay''' 命令播放下系统自带的音频文件,如果 HDMI 显示器或者电视能听到声音说明硬件能正常使用<br>
+
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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 963: Line 903:
 
|}
 
|}
  
=== 查询 使用命令测试录音的方法 ===
+
=== Method of using commands to test recording ===
1) 开发板上有板载 MIC,位置如下所示:<br><br>
+
1) There is an onboard MIC on the development board, the location is as follows:<br><br>
 
[[Image:Pi-5-details2-pic16.png]]<br><br>
 
[[Image:Pi-5-details2-pic16.png]]<br><br>
2) 运行 '''test_record.sh main''' 命令会通过板载 MIC 录制一段音频,然后播放到 HDMI 和耳机。<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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 975: Line 915:
 
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
|}
 
|}
3) 除了板载 MIC,我们还可以通过带 MIC 功能的耳机来录制音频。将带 MIC 功能的耳机插入开发板后,运行 '''test_record.sh headset''' 命令会通过耳机录制一段音频, 然后播放到 HDMI 和耳机。<br>
+
3) 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;"  
 
{| class="wikitable" style="width:800px;"  
 
|-
 
|-
Line 985: Line 925:
 
|}
 
|}
  
=== 26 Pin 接口引脚说明 ===
+
=== 26 Pin Interface Pin Description ===
1) Orange Pi 5 开发板 26 pin 接口引脚的顺序请参考下图<br><br>
+
1) Please refer to the figure below for the order of the 26 pin interface pins on the Orange Pi 5 development board<br><br>
 
[[Image:Pi-5-details2-pic17.png]]<br><br>
 
[[Image:Pi-5-details2-pic17.png]]<br><br>
2) Orange Pi 5 开发板 26 pin 接口引脚的功能如下表所示<br>
+
2) The functions of the 26 pin interface pins on the Orange Pi 5 development board are shown in the table below<br>
a. 下面是 26pin 完整的引脚图<br><br>
+
a. The following is the complete pin diagram of 26pin<br><br>
 
[[Image:Pi-5-details2-pic18.png]]<br><br>
 
[[Image:Pi-5-details2-pic18.png]]<br><br>
b. 下面的表格是上面完整表格左半边部分的图,能看得清楚点<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>
 
[[Image:Pi-5-details2-pic19.png]]<br><br>
c. 下面的表格是上面完整表格右半边部分的图,能看得清楚点<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>
 
[[Image:Pi-5-details2-pic20.png]]<br><br>
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
|-
 
|-
| <br><big>'''上面表格中 pwm 都标出了对应的寄存器的基地址,在查看/sys/class/pwm/中哪个 pwmchip 对应 26pin 排针中哪个 pwm 引脚时很有用。'''</big><br><br>
+
| <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/ corresponds to which pwm pin in the 26pin header.'''</big><br><br>
|}
 
3) 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-5.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>
  
=== USB 无线网卡的使用方法 ===
+
== '''Instructions for the use of the android 12 system''' ==
1) 目前镜像适配的 USB 无线网卡型号如下所示:<br>
+
=== 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;"
 
{| class="wikitable"  style="width:800px;"
 
|-
 
|-
| 芯片型号 || 功能 || VID&PID || 适配情况
+
| Chip model || Function || VID&PID || Adaptation
 
|-
 
|-
| RTL8821CU || 2.4G +5G WIFI+BT 4.2 || 0bda:c820 || 支持 WIFI、蓝牙和开热点
+
| RTL8821CU || 2.4G +5G WIFI+BT 4.2 || 0bda:c820 || '''<span style="color:#FF0000">Only support wifi, Bluetooth needs to be adapted</span>'''
 
|-
 
|-
| RTL8723BU || 2.4G WIFI+BT4.0 || 0bda:b720 || 支持 WIFI 和蓝牙功能,不支持开热点
+
| RTL8723BU || 2.4G WIFI+BT4.0 || 0bda:b720 || '''<span style="color:#FF0000">Only support wifi, Bluetooth needs to be adapted</span>'''
 
|-
 
|-
| RTL8811CU || 2.4G +5G WIFI || 0bda:c811 || 支持 WIFI 功能和开热点
+
| RTL8811CU || 2.4G +5G WIFI || 0bda:c811 || '''Only WIFI function, supported'''
 
|}
 
|}
2) 上面三款 USB 无线网卡的图片如下所示:<br>
+
2) The picture of the above three USB wireless network cards is shown below:<br>
a. RTL8821CU USB 无线网卡模块的图片如下所示:<br><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>
 
[[Image:Pi-5-details2-pic21.png]]<br><br>
b. RTL8723BU USB 无线网卡模块的图片如下所示:<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>
 
[[Image:Pi-5-details2-pic22.png]]<br><br>
c. RTL8811CU USB 无线网卡模块的图片如下所示:<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>
 
[[Image:Pi-5-details2-pic23.png]]<br><br>
3) 以上 3 种型号的 USB 无线网卡的测试方法都是相同的,首先需要将 USB 网卡插入开发板的 USB 接口<br><br>
+
3) The test methods of the USB wireless network cards of the above 3 models are the same. First, insert the USB network card into the USB interface of the development board, and then enter '''Setting'''<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 网卡<br><br>
 
 
[[Image:Pi-5-details2-pic24.png]]<br><br>
 
[[Image:Pi-5-details2-pic24.png]]<br><br>
2) 然后将 AP6275P PCIe 网卡插入开发板的 M.2 接口中并固定好<br><br>
+
4) Then choose '''Network & internet'''<br><br>
 
[[Image:Pi-5-details2-pic25.png]]<br><br>
 
[[Image:Pi-5-details2-pic25.png]]<br><br>
3) 然后给开发板接上 Type-C 接口的电源,并上电<br><br>
+
5) Then choose '''Internet'''<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) 首先点击进入 '''Setting'''<br><br>
 
 
[[Image:Pi-5-details2-pic26.png]]<br><br>
 
[[Image:Pi-5-details2-pic26.png]]<br><br>
2) 然后选择 '''Network & internet'''<br><br>
+
6) Then turn on the '''Wi-Fi''' switch<br><br>
 
[[Image:Pi-5-details2-pic27.png]]<br><br>
 
[[Image:Pi-5-details2-pic27.png]]<br><br>
3) 然后选择 '''Internet'''<br><br>
+
7) If everything is normal after opening the '''Wi-Fi''', you can scan to the nearby Wi-Fi hotspot<br><br>
 
[[Image:Pi-5-details2-pic28.png]]<br><br>
 
[[Image:Pi-5-details2-pic28.png]]<br><br>
4) 然后打开 '''Wi-Fi''' 开关<br><br>
+
8) 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>
 
[[Image:Pi-5-details2-pic29.png]]<br><br>
5) 打开 '''Wi-Fi''' 后如果一切正常,就可以扫描到附近的 Wi-Fi 热点了<br><br>
+
9) Then use the keyboard to enter the corresponding password of the wi-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>
 
[[Image:Pi-5-details2-pic30.png]]<br><br>
6) 然后选择想连接的 Wi-Fi 后会弹出下图所示的密码输入界面<br><br>
+
10) 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>
 
[[Image:Pi-5-details2-pic31.png]]<br><br>
7) 然后使用键盘输入 Wi-Fi 对应的密码,再使用鼠标点击虚拟键盘中的回车按钮就会开始连接 Wi-Fi 了<br><br>
+
 
 +
=== 26pin GPIO port test ===
 +
1) First click the Wiringop icon to open the Wiringop App<br><br>
 
[[Image:Pi-5-details2-pic32.png]]<br><br>
 
[[Image:Pi-5-details2-pic32.png]]<br><br>
8) Wi-Fi 连接成功后的显示如下图所示:<br><br>
+
2) 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>
 
[[Image:Pi-5-details2-pic33.png]]<br><br>
 
+
3) 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 -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 '''GPIO READALL''' button on the right, you can get the WPI, GPIO mode, pin level information, etc.<br><br>
=== Wi-Fi hospot 的使用方法 ===
 
1) 首先请确保以太网口已连接网线,并且能正常上网<br><br>
 
2) 然后选择 '''Settings'''<br><br>
 
 
[[Image:Pi-5-details2-pic34.png]]<br><br>
 
[[Image:Pi-5-details2-pic34.png]]<br><br>
3) 然后选择 '''Network & internet'''<br><br>
+
4) Then click the '''GPIO READALL''' button, and the output information is shown in the figure below<br><br>
 
[[Image:Pi-5-details2-pic35.png]]<br><br>
 
[[Image:Pi-5-details2-pic35.png]]<br><br>
4) 然后选择 '''Hotspot & tethering'''<br><br>
+
5) Taking the high and low level of the '''GPIO2_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>
 
[[Image:Pi-5-details2-pic36.png]]<br><br>
5) 然后选择 '''Wi-Fi hotspot'''<br><br>
+
6) Then click the '''GPIO 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>
 
[[Image:Pi-5-details2-pic37.png]]<br><br>
6) 然后打开 '''Wi-Fi hotspot''',下图中还可以看到生成的热点的名字和密码,记住它们,在连接热点的时候要用到(<span style="color:#0066CC;">如果需要修改热点的名字和密码,需要先关闭 Wi-Fi hotspot,然后才能修改</span>)<br><br>
+
7) Click the '''CheckBox''' 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''', the low -power flat is set.<br><br>
 
[[Image:Pi-5-details2-pic38.png]]<br><br>
 
[[Image:Pi-5-details2-pic38.png]]<br><br>
7) 此时可以拿出你的手机,如果一切正常,在手机搜索到的 WI-FI 列表中就能找到上图 '''Hotspot name''' 下面显示的同名(这里为 '''AndroidAP_6953''')的 WIFI 热点了。然后可以点击 '''AndroidAP_6953''' 连接热点,密码在上图的 '''Hotspot password''' 下面可以看到<br><br>
+
8) Then click the '''GPIO READALL''' 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>
 
[[Image:Pi-5-details2-pic39.png]]<br><br>
8) 连接成功后显示如下图所示(不同手机界面会有区别,具体界面以你手机显示的为准)。此时就可以在手机上打开一个网页看下能否上网了,如果能正常打开网页, 说明开发板的 '''WI-FI Hotspot''' 能正常使用<br><br>
+
 
 +
=== 26pin UART test ===
 +
1) 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>
 
[[Image:Pi-5-details2-pic40.png]]<br><br>
 
+
2) First click the WiringOP icon to open the Wiringop App<br><br>
=== 蓝牙的测试方法 ===
 
1) 首先点击进入 '''Setting'''<br><br>
 
 
[[Image:Pi-5-details2-pic41.png]]<br><br>
 
[[Image:Pi-5-details2-pic41.png]]<br><br>
2) 然后选择 '''Connected devices'''<br><br>
+
3) The main interface of the WiringOP APP is displayed as shown in the figure below, and then click the '''UART_TEST''' button to open the UART test interface<br><br>
 
[[Image:Pi-5-details2-pic42.png]]<br><br>
 
[[Image:Pi-5-details2-pic42.png]]<br><br>
3) 然后点击 '''Pair new device''' 打开蓝牙并开始扫描周围的蓝牙设备<br><br>
+
4) The serial test interface of the APP is shown in the figure below<br><br>
 
[[Image:Pi-5-details2-pic43.png]]<br><br>
 
[[Image:Pi-5-details2-pic43.png]]<br><br>
4) 搜索到的蓝牙设备会在 '''Available devices''' 下面显示出来<br><br>
+
5) Then enter the baud rate you want to set in the editing box, and then click the '''OPEN''' 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>
 
[[Image:Pi-5-details2-pic44.png]]<br><br>
5) 然后点击想要连接的蓝牙设备就可以开始配对了,当弹出下面的界面时,请使用鼠标选择 '''Pair''' 选项<br><br>
+
6) Then use the DuPont line to shorte the RXD and TXD pin of uart0<br><br>
 
[[Image:Pi-5-details2-pic45.png]]<br><br>
 
[[Image:Pi-5-details2-pic45.png]]<br><br>
6) 这里测试的是开发板和安卓手机蓝牙的配置过程,此时在手机上会弹出下面的确认界面,在手机上也点击配对按钮后就会开始配对过程<br><br>
+
7) 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>
 
[[Image:Pi-5-details2-pic46.png]]<br><br>
7) 配对完成后,可以看到如下图所示的已配对的蓝牙设备<br><br>
+
8) If everything is normal, the receiving string will be displayed in the receiving box<br><br>
 
[[Image:Pi-5-details2-pic47.png]]<br><br>
 
[[Image:Pi-5-details2-pic47.png]]<br><br>
8) 此时可以使用手机蓝牙给开发板发送一张图片,发送后,在开发板的安卓系统中可以看到下面的确认界面,然后点击 '''Accept''' 就可以开始接收手机发过来的图片了<br><br>
+
 
 +
=== 26pin's PWM test ===
 +
1) Android only opened '''PWM15''' by default. The corresponding pins are at the position of 26Pin.<br><br>
 
[[Image:Pi-5-details2-pic48.png]]<br><br>
 
[[Image:Pi-5-details2-pic48.png]]<br><br>
9) 开发板 Android 系统蓝牙接收到的图片可以在文件管理器中打开 '''Download''' 目录查看<br><br>
+
2) First click theWiringOP icon to open the Wiringop App<br><br>
 
[[Image:Pi-5-details2-pic49.png]]<br><br>
 
[[Image:Pi-5-details2-pic49.png]]<br><br>
 
+
3) Then click the '''PWM_TEST''' button to enter the PWM test interface at the main interface of WiringOP<br><br>
=== 10.1 寸 MIPI 屏幕的使用方法 ===
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
|-
 
|请确保使用的镜像为下面的三个版本的镜像: <br>
 
'''OrangePi5_RK3588S_Android12_lcd_v1.x.x.img''' <br>
 
'''OrangePi5_RK3588S_Android12_spi-nvme_lcd_v1.x.x.img'''<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 接口的位置为:<br><br>
 
 
[[Image:Pi-5-details2-pic50.png]]<br><br>
 
[[Image:Pi-5-details2-pic50.png]]<br><br>
b. lcd2 接口的位置为:<br><br>
+
4) 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.<br><br>
 
[[Image:Pi-5-details2-pic51.png]]<br><br>
 
[[Image:Pi-5-details2-pic51.png]]<br><br>
3) 将组装好的屏幕接到 lcd1 或者 lcd2 接口,给板子接通 Type-C 电源,并上电,系统启动后,就可以看到屏幕显示如下图所示<br><br>
+
5) 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>
 
[[Image:Pi-5-details2-pic52.png]]<br><br>
 
+
6) Then drag the drag below to change the PWM duty ratio, and then check the enable to output PWM<br><br>
=== OV13850 和 OV13855 MIPI 摄像头的测试方法 ===
 
目前开发板支持两款MIPI摄像头,OV13850 和OV13855,具体的图片如下所示:<br><br>
 
a. 1300 万MIPI接口的OV13850 摄像头<br><br>
 
 
[[Image:Pi-5-details2-pic53.png]]<br><br>
 
[[Image:Pi-5-details2-pic53.png]]<br><br>
b. 1300 万MIPI接口的OV13855 摄像头<br><br>
 
 
[[Image:Pi-5-details2-pic54.png]]<br><br>
 
[[Image:Pi-5-details2-pic54.png]]<br><br>
OV13850 和OV13855 摄像头使用的转接板和FPC排线是一样的,只是两款摄像头接在转接板上的位置不一样。FPC排线如下图所示,请注意FPC排线是有方向的, 标注'''TO MB'''那端需要插到开发板的摄像头接口中,标注'''TO CAMERA'''那端需要插到摄像头转接板上。<br><br>
+
 
 +
=== 26pin'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>
 
[[Image:Pi-5-details2-pic55.png]]<br><br>
摄像头转接板上总共有 3 个摄像头的接口,同一时间只能接一个使用,如下图所示,其中:<br>
+
2) Here is the w25q64 module to test the SPI interface, and first access the w25q64 device at the SPI4 interface.<br><br>
a. '''1''' 号接口接 '''OV13850''' 摄像头<br>
 
b. '''2''' 号接口接 '''OV13855''' 摄像头<br>
 
c. 3 号接口未使用,忽略即可<br><br>
 
 
[[Image:Pi-5-details2-pic56.png]]<br><br>
 
[[Image:Pi-5-details2-pic56.png]]<br><br>
Orange Pi 5 开发板上总共有 3 个摄像头接口,我们定义 Cam1、Cam2 和 Cam3的位置如下图所示:<br><br>
+
3) Then click the WiringOP icon to open the WiringOP APP<br><br>
[[Image:Pi-5-details2-pic57.png]][[Image:Pi-5-details2-pic58.png]]<br><br>
+
[[Image:Pi-5-details2-pic57.png]]<br><br>
摄像头插在开发板的 Cam1 接口的方法如下所示:<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>
 +
5) Then click the '''OPEN''' button to initialize SPI<br><br>
 
[[Image:Pi-5-details2-pic59.png]]<br><br>
 
[[Image:Pi-5-details2-pic59.png]]<br><br>
摄像头插在开发板的 Cam2 接口的方法如下所示:<br><br>
+
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>
 
[[Image:Pi-5-details2-pic60.png]]<br><br>
摄像头插在开发板的 Cam3 接口的方法如下所示:<br><br>
+
7) The last app will display the ID information read<br><br>
 
[[Image:Pi-5-details2-pic61.png]]<br><br>
 
[[Image:Pi-5-details2-pic61.png]]<br><br>
安卓系统默认打开的是 '''Cam1''' 和 '''Cam3''' 的配置,所以如果要使用摄像头,请选择 '''Cam1''' 和 '''Cam3''' 接口中的一个。连接好摄像头到开发板上后,我们可以使用下面的方法来测试下摄像头:<br>
+
8) 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>
a. 在桌面中打开相机 APP<br><br>
 
 
[[Image:Pi-5-details2-pic62.png]]<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>
 

Latest revision as of 09:50, 24 April 2023

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

2) Then use the card reader to insert the TF card into the computer

3) Then format the TF card
a. SD Card Formatter can be used to format the TF card. The download address is:

https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip

b. After downloading, unzip and install directly, and then open the software

c. If only a TF card is inserted into the computer, the drive letter of the TF card will be displayed in the "Select card" column. If multiple USB storage devices are inserted into the computer, you can select the corresponding drive letter of the TF card through the drop-down box

Pi-5-details-pic55.png

d. Then click "Format", a warning box will pop up before formatting, and formatting will start after selecting "Yes (Y)"

Pi-5-details-pic56.png

e. After formatting the TF card, the information shown in the figure below will pop up, click OK

Pi-5-details-pic57.png

4) Download the Linux operating system image file compression package that you want to burn from the Orange Pi data download page, and then use the decompression software to decompress it. Among the decompressed files, the file ending with ".img" is the image file of the operating system. The size is generally more than 2GB

5) Use Win32Diskimager to burn the Linux image to the TF card
a. The download page of Win32Diskimager is

http://sourceforge.net/projects/win32diskimager/files/Archive/

b. After downloading, install it directly. The interface of Win32Diskimager is as follows
a) First select the path of the image file
b) Then confirm that the drive letter of the TF card is consistent with that displayed in the "Device" column
c) Finally click "Write" to start burning

Pi-5-details-pic58.png

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

Linux system instructions

Supported Linux image types and kernel versions

Linux image type kernel version server version desktop version
Debian 11 - Bullseye Linux5.10 support support
Ubuntu 20.04 - Focal Linux5.10 support support
Ubuntu 22.04 - Jammy Linux5.10 support support

Onboard LED Light Test Instructions

1) There are two LED lights on the development board, one is green and the other is red. The location is shown in the figure below:

Pi-5-details-pic59.png

2) As long as the development board is powered on, the red LED light will always be on, which is controlled by the hardware and cannot be turned off by the software.

3) The green LED light will keep flashing after the kernel is started, which is controlled by software.

4) The method of setting the green light on and off and flashing is as follows


Note that the following operations should be performed under the root user.

a. First enter the setting directory of the green light

root@orangepi:~# cd /sys/class/leds/status_led

b. The command to set the green light to stop flashing is as follows

root@orangepi:/sys/class/leds/status_led# echo none > trigger

c. The command to set the green light to be on is as follows

root@orangepi:/sys/class/leds/status_led# echo 1 > brightness

d. The command to set the green light to flash is as follows

root@orangepi:/sys/class/leds/status_led# echo heartbeat > trigger

Ethernet port test

1) First, insert one end of the network cable into the Ethernet interface of the development board, and connect the other end of the network cable to the router, and ensure that the network is unblocked

2) After the system starts, it will automatically assign an IP address to the Ethernet card through DHCP,No other configuration is required

3) The command to view the IP address in the Linux system of the development board is as follows

orangepi@orangepi:~$ ip addr show eth0

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 4a:fe:2b:3d:17:1c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.150/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0 valid_lft 43150sec preferred_lft 43150sec
inet6 fe80::9a04:3703:faed:23be/64 scope link noprefixroute

When using ifconfig to view the IP address, if the following information is displayed, it is because sudo is not added. The correct command is:sudo ifconfig

Command 'ifconfig' is available in the following places
/sbin/ifconfig
/usr/sbin/ifconfig
The command could not be located because '/sbin:/usr/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
ifconfig: command not found

There are three ways to check the IP address after the development board starts:

1. Connect the HDMI monitor, then log in to the system and use the ip addr show eth0 command to view the IP address
2. Enter the ip addr show eth0 command in the debugging serial terminal to view the IP address
3. If there is no debugging serial port and no HDMI display, you can also check the IP address of the development board's network port through the router's management interface. However, in this method, some people often cannot see the IP address of the development board normally. If you can't see it, the debug method looks like this:
A) First check whether the Linux system has started normally. If the green light of the development board is blinking, it is generally started normally. If only the red light is on, it means that the system has not started normally;
B) Check whether the network cable is plugged in tightly, or try another network cable;
C) Try another router (I have encountered many problems with the router, such as the router cannot assign the IP address normally, or the IP address has been assigned normally but cannot be seen in the router);
D) If there is no router to replace, you can only connect to an HDMI display or use the debugging serial port to check the IP address.

In addition, it should be noted that the development board DHCP automatically assigns an IP address without any settings.

4) The command to test the network connectivity is as follows, the ping command can be interrupted through the shortcut key of Ctrl+C

orangepi@orangepi:~$ ping www.baidu.com -I eth0

PING www.a.shifen.com (14.215.177.38) from 192.168.1.12 eth0: 56(84) bytes of data.
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=56 time=6.74 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=56 time=6.80 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=3 ttl=56 time=6.26 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=4 ttl=56 time=7.27 ms
^C
--- www.a.shifen.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 6.260/6.770/7.275/0.373 ms


WIFI connection test

Please do not connect to WIFI by modifying the /etc/network/interfaces configuration file. There will be problems connecting to the WIFI network in this way.

1. The server image connects to WIFI through commands

When the development board is not connected to Ethernet, not connected to HDMI display, but only connected to the serial port, it is recommended to use the commands demonstrated in this section to connect to the WIFI network. Because nmtui can only display characters in some serial port software (such as minicom), and cannot display the graphical interface normally. Of course, if the development board is connected to an Ethernet or HDMI display, you can also use the commands demonstrated in this section to connect to the WIFI network.

1) First log in to the linux system, there are the following three ways
a. If the development board is connected with a network cable, you can remotely log in to the Linux system through ssh
b. If the development board is connected to the debugging serial port, you can use the serial port terminal to log in to the Linux system
c. If the development board is connected to the HDMI display, you can log in to the linux system through the terminal displayed on the HDMI

2) First use the nmcli dev wifi command to scan the surrounding WIFI hotspots

orangepi@orangepi:~$ nmcli dev wifi

Pi-5-details-pic60.png

3) Then use the nmcli command to connect to the scanned WIFI hotspot, where:
a. wifi_name needs to be replaced with the name of the WIFI hotspot you want to connect to
b. wifi_passwd needs to be replaced with the password of the WIFI hotspot you want to connect to

orangepi@orangepi:~$ nmcli dev wifi connect wifi_name password wifi_passwd

Device 'wlan0' successfully activated with 'cf937f88-ca1e-4411-bb50-61f402eef293'.

4) You can view the IP address of wifi through the ip addr show wlan0 command

orangepi@orangepi:~$ ip addr show wlan0

11: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 23:8c:d6:ae:76:bb brd ff:ff:ff:ff:ff:ff
inet 192.168.1.11/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0 valid_lft 259192sec preferred_lft 259192sec
inet6 240e:3b7:3240:c3a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute
valid_lft 259192sec preferred_lft 172792sec
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute valid_lft forever preferred_lft forever

5) Use the ping command to test the connectivity of the wifi network, and the ping command can be interrupted through the shortcut key Ctrl+C

orangepi@orangepi:~$ ping www.orangepi.online -I wlan0

PING www.orangepi.online (182.92.236.130) from 192.168.1.49 wlan0: 56(84) bytes of data.
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=1 ttl=52 time=43.5 ms
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=2 ttl=52 time=41.3 ms
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=3 ttl=52 time=44.9 ms
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=4 ttl=52 time=45.6 ms
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=5 ttl=52 time=48.8 ms
^C
--- www.orangepi.online ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms

2. The server image connects to WIFI in a graphical way

1) First log in to the linux system, there are the following three ways
a. If the development board is connected with a network cable, you can remotely log in to the Linux system through ssh
b. If the development board is connected to the debugging serial port, you can use the serial port terminal to log in to the linux system (please use MobaXterm for the serial port software, and minicom cannot display the graphical interface)
c. If the development board is connected to the HDMI display, you can log in to the linux system through the terminal displayed on the HDMI

2) Then enter the nmtui command in the command line to open the wifi connection interface

orangepi@orangepi:~$ nmtui

3) Enter the nmtui command to open the interface as shown below

Pi-5-details-pic61.png

4) Select Activate a connect and press Enter

Pi-5-details-pic62.png

5) Then you can see all the searched WIFI hotspots

Pi-5-details-pic63.png

6) Select the WIFI hotspot you want to connect to, then use the Tab key to position the cursor on Activate and press Enter

Pi-5-details-pic64.png

7) Then a dialog box for entering a password will pop up, enter the corresponding password in Password and press Enter to start connecting to WIFI

Pi-5-details-pic65.png

8) After the WIFI connection is successful, a "*" will be displayed in front of the connected WIFI name

Pi-5-details-pic66.png

9) You can view the IP address of wifi through the ip addr show wlan0 command

orangepi@orangepi:~$ ip addr show wlan0

11: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 24:8c:d3:aa:76:bb brd ff:ff:ff:ff:ff:ff
inet 192.168.1.11/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0 valid_lft 259069sec preferred_lft 259069sec
inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute
valid_lft 259071sec preferred_lft 172671sec
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute valid_lft forever preferred_lft forever

10) Use the ping command to test the connectivity of the wifi network, and the ping command can be interrupted through the shortcut key Ctrl+C

orangepi@orangepi:~$ ping www.orangepi.online -I wlan0

PING www.orangepi.online (182.92.236.130) from 192.168.1.49 wlan0: 56(84) bytes of data.
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=1 ttl=52 time=43.5 ms
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=2 ttl=52 time=41.3 ms
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=3 ttl=52 time=44.9 ms
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=4 ttl=52 time=45.6 ms
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=5 ttl=52 time=48.8 ms
^C
--- www.orangepi.online ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms

3. Test method of desktop image

1) Click the network configuration icon in the upper right corner of the desktop (please do not connect the network cable when testing WIFI)

Pi-5-details-pic67.png

2) Click More networks in the pop-up drop-down box to see all scanned WIFI hotspots, and then select the WIFI hotspot you want to connect to

Pi-5-details-pic68.png

3) Then enter the password of the WIFI hotspot, and then click Connect to start connecting to WIFI

Pi-5-details-pic69.png

4) After connecting to WIFI, you can open the browser to check whether you can access the Internet. The entrance of the browser is shown in the figure below

Pi-5-details-pic70.png

5) If you can open other web pages after opening the browser, it means that the WIFI connection is normal

Pi-5-details-pic71.png

How to set a static IP address


1.Use the nmtui command to set a static IP address

1) First run the nmtui command

orangepi@orangepi:~$ nmtui

2) Then select Edit a connection and press Enter

Pi-5-details-pic72.png

3) Then select the network interface that needs to set a static IP address, for example, to set the static IP address of the Ethernet interface, select Wired connection 1

Pi-5-details-pic73.png

4) Then select Edit via the Tab key and press the Enter key

Pi-5-details-pic74.png

5) Then use the Tab key to move the cursor to the <Automatic> position shown in the figure below to configure IPv4

Pi-5-details-pic75.png

6) Then press Enter, select Manual through the up and down arrow keys, and press Enter to confirm

Pi-5-details-pic76.png

7) The display after selection is shown in the figure below

Pi-5-details-pic77.png

8) Then move the cursor to <Show> via the Tab key

Pi-5-details-pic78.png

9) Then press Enter, and the following setting interface will pop up after entering

Pi-5-details-pic79.png

10) Then you can set the IP address (Addresses), gateway (Gateway) and DNS server address in the position shown in the figure below (there are many other setting options in it, please explore by yourself),Please set it according to your specific needs, the value set in the figure below is just an example

Pi-5-details-pic80.png

11) After setting, move the cursor to <OK> in the lower right corner, and press Enter to confirm

Pi-5-details-pic81.png

12) Then click <Back> to return to the previous selection interface

Pi-5-details-pic82.png

13) Then select Activate a connection, then move the cursor to <OK>, and finally click Enter

Pi-5-details-pic83.png

14) Then select the network interface that needs to be set, such as Wired connection 1, then move the cursor to <Deactivate>, and press Enter to disable Wired connection 1

Pi-5-details-pic84.png

15) Then please do not move the cursor, and then press the Enter key to re-enable Wired connection 1, so that the static IP address set earlier will take effect

Pi-5-details-pic85.png

16) Then you can exit nmtui through the <Back> and Quit buttons

Pi-5-details-pic86.pngPi-5-details-pic86-1.png

17) Then through ip addr show eth0, you can see that the IP address of the network port has changed to the static IP address set earlier

orangepi@orangepi:~$ ip addr show eth0

3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 5e:ac:14:a5:92:b3 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.177/24 brd 192.168.1.255 scope global noprefixroute eth0 valid_lft forever preferred_lft forever
inet6 241e:3b8:3240:c3a0:e269:8305:dc08:135e/64 scope global dynamic noprefixroute
valid_lft 259149sec preferred_lft 172749sec
inet6 fe80::957d:bbbe:4928:3604/64 scope link noprefixroute valid_lft forever preferred_lft forever

18) Then you can test the connectivity of the network to check whether the IP address is configured OK, and the ping command can be interrupted through the shortcut key Ctrl+C

orangepi@orangepi:~$ ping 192.168.1.47 -I eth0

PING 192.168.1.47 (192.168.1.47) from 192.168.1.188 eth0: 56(84) bytes of data.
64 bytes from 192.168.1.47: icmp_seq=1 ttl=64 time=0.233 ms
64 bytes from 192.168.1.47: icmp_seq=2 ttl=64 time=0.263 ms
64 bytes from 192.168.1.47: icmp_seq=3 ttl=64 time=0.273 ms
64 bytes from 192.168.1.47: icmp_seq=4 ttl=64 time=0.269 ms
64 bytes from 192.168.1.47: icmp_seq=5 ttl=64 time=0.275 ms


2.Use the nmcli command to set a static IP address

1) If you want to set the static IP address of the network port, please insert the network cable into the development board first. If you need to set the static IP address of WIFI, please connect the WIFI first, and then start to set the static IP address

2) Then you can view the name of the network device through the nmcli con show command, as shown below
a. orangepi is the name of the WIFI network interface (the name is not necessarily the same)
b. Wired connection 1 is the name of the Ethernet interface

orangepi@orangepi:~$ nmcli con show
NAME UUID TYPE DEVICE
orangepi cfc4f922-ae48-46f1-84e1-2f19e9ec5e2a wifi wlan0
Wired connection 1 9db058b7-7701-37b8-9411-efc2ae8bfa30 ethernet eth0

3) Then enter the following command, where
a. "Wired connection 1" means to set the static IP address of the Ethernet port. If you need to set the static IP address of the WIFI, please modify it to the corresponding name of the WIFI network interface (you can get it through the nmcli con show command)
b. ipv4.addresses is followed by the static IP address to be set, which can be modified to the value you want to set
c. ipv4.gateway represents the address of the gateway

orangepi@orangepi:~$ nmcli con mod "Wired connection 1" \

ipv4.addresses "192.168.1.110" \
ipv4.gateway "192.168.1.1" \
ipv4.dns "8.8.8.8" \
ipv4.method "manual"

4) Then restart the linux system

orangepi@orangepi:~$ sudo reboot

5) Then re-enter the linux system and use the ip addr show eth0 command to see that the IP address has been set to the desired value

orangepi@orangepi:~$ ip addr show eth0

3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 5e:ae:14:a5:91:b3 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.110/32 brd 192.168.1.110 scope global noprefixroute eth0 valid_lft forever preferred_lft forever
inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic noprefixroute
valid_lft 259183sec preferred_lft 172783sec
inet6 fe80::3312:861a:a589:d3c/64 scope link noprefixroute valid_lft forever preferred_lft forever

How to use AP6275P PCIe network card

1) First, you need to purchase an AP6275P PCIe network card as shown in the figure below

Pi-5-details-pic87.png

2) Then insert the AP6275P PCIe network card into the M.2 interface of the development board and fix it

Pi-5-details-pic88.png

3) Then open the configuration of the AP6275P PCIe network card in the linux system, the steps are as follows:
a. First run orangepi-config, normal users remember to add sudo permission

orangepi@orangepi:~$ sudo orangepi-config

b. Then select System

Pi-5-details-pic89.png

c. Then select Hardware

Pi-5-details-pic90.png

d. Then use the arrow keys on the keyboard to navigate to wifi-ap6275p, and then use the space to select
Pi-5-details-pic91.png

e. Then select <Save> to save

Pi-5-details-pic92.png

f. Then select <Back>

Pi-5-details-pic93.png

g. Then select <Reboot> to restart the system to make the configuration take effect

Pi-5-details-pic94.png

The above settings will eventually add the configuration of overlays=wifi-ap6275p to /boot/orangepiEnv.txt. After setting, you can check it first. If this configuration does not exist, then there is a problem with the settings.

If you find it troublesome to use orangepi-config, you can also open /boot/orangepiEnv.txt, and then add the configuration of overlays=wifi-ap6275p.

4) If everything is normal after restarting the system, use the following command to see the device nodes of WIFI and Bluetooth
a. The command to view the WIFI device node is as follows:

orangepi@orangepi:~$ ip addr show wlan0

3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500
qdisc fq_codel state DORMANT group default qlen 1000
link/ether 70:f7:54:b8:b3:17 brd ff:ff:ff:ff:ff:ff

b. The command to view the Bluetooth device node is as follows:

orangepi@orangepi:~$ hciconfig -a

hci0: Type: Primary Bus: UART
BD Address: 82:CC:AE:62:CE:3E ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING
RX bytes:958 acl:0 sco:0 events:73 errors:0
TX bytes:5544 acl:0 sco:0 commands:73 errors:0 Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF Link mode: SLAVE ACCEPT Name: 'orangepi5'
Class: 0x1c0000
Service Classes: Rendering, Capturing, Object Transfer Device Class: Miscellaneous,
HCI Version: 5.1 (0xa) Revision: 0x3f9
LMP Version: 5.1 (0xa) Subversion: 0x1111 Manufacturer: Broadcom Corporation (15)

5) For the wifi connection and test method, please refer to the section of WIFI connection test, which will not be repeated here

6) For the test method of Bluetooth, please refer to the section on Bluetooth usage, so I won’t go into details here

AP6275P PCIe NIC creates WIFI hotspot via create_ap

create_ap is a script that helps quickly create WIFI hotspots on Linux, and supports bridge and NAT modes. It can automatically combine hostapd, dnsmasq and iptables to complete the setting of WIFI hotspots, avoiding complex configuration for users. The github address is as follows:

https://github.com/oblique/create_ap

If you using the latest image, the create_ap script has been pre-installed, and you can create a WIFI hotspot through the create_ap command. The basic command format of create_ap is as follows:

create_ap [options] <wifi-interface> [<interface-with-internet>]
[<access-point-name> [<passphrase>]]

1.create_ap method to create WIFI hotspot in NAT mode

1) Enter the following command to create a WIFI hotspot named orangepi and password orangepi in NAT mode

orangepi@orangepi5:~$ sudo create_ap -m nat wlan0 eth0 orangepi orangepi

2) If the following information is output, it means that the WIFI hotspot is created successfully

orangepi@orangepi5:~$ sudo create_ap -m nat wlan0 eth0 orangepi orangepi

Config dir: /tmp/create_ap.wlan0.conf.fPItFUJ2 PID: 3831
Network Manager found, set ap0 as unmanaged device... DONE
Creating a virtual WiFi interface... ap0 created.
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p
/tmp/create_ap.wlan0.conf.fPItFUJ2/hostapd_ctrl ap0: interface state UNINITIALIZED->ENABLED

3) Take out the mobile phone at this time, in the searched WIFI list, you can find the WIFI hotspot named orangepi created by the development board, and then click orangepi to connect to the hotspot, the password is the orangepi set above

Pi-5-details-pic95.png

4) After the connection is successful, the display is as shown in the figure below

Pi-5-details-pic96.png

5) In NAT mode, the wireless device connected to the hotspot of the development board requests an IP address from the DHCP service of the development board, so there will be two different network segments, for example, the IP of the development board is 192.168.1.X

orangepi@orangepi5:~$ ifconfig eth0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.150 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::938f:8776:5783:afa2 prefixlen 64 scopeid 0x20<link>
ether 4a:a0:c8:25:42:82 txqueuelen 1000 (Ethernet)
RX packets 25370 bytes 2709590 (2.7 MB)
RX errors 0 dropped 50 overruns 0 frame 0
TX packets 3798 bytes 1519493 (1.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 83

By default, the DHCP service of the development board will assign an IP address of 192.168.12.0/24 to the device connected to the hotspot. At this time, click on the connected WIFI hotspot orangepi, and then you can see that the IP address of the mobile phone is 192.168.12.X

Pi-5-details-pic97.png

Pi-5-details-pic98.png

6) If you want to specify a different network segment for the connected device, you can specify it through the -g parameter, such as specifying the network segment of the access point AP through the -g parameter as 192.168.2.1

orangepi@orangepi5:~$ sudo create_ap -m nat wlan0 eth0 orangepi orangepi -g 192.168.2.1

At this time, after connecting to the hotspot through the mobile phone, click the connected WIFI hotspot orangepi, and then you can see that the IP address of the mobile phone is 192.168.2.X

Pi-5-details-pic99.png

Pi-5-details-pic100.png

7) If the --freq-band parameter is not specified, the hotspot created by default is in the 2.4G frequency band. If you want to create a hotspot in the 5G frequency band, you can specify it through the --freq-band 5 parameter. The specific command is as follows

orangepi@orangepi:~$ sudo create_ap -m nat wlan0 eth0 orangepi orangepi --freq-band 5

8) If you need to hide the SSID, you can specify the --hidden parameter, the specific command is as follows

orangepi@orangepi:~$ sudo create_ap -m nat wlan0 eth0 orangepi orangepi --hidden

At this time, the mobile phone cannot search for the WIFI hotspot. You need to manually specify the name of the WIFI hotspot and enter the password to connect to the WIFI hotspot

Pi-5-details-pic101.png

2.create_ap method to create WIFI hotspot in bridge mode

1) Enter the following command to create a WIFI hotspot named orangepi and password orangepi in bridge mode

orangepi@orangepi:~$ sudo create_ap -m bridge wlan0 eth0 orangepi orangepi

2) If the following information is output, it means that the WIFI hotspot is created successfully

orangepi@orangepi:~$ sudo create_ap -m bridge wlan0 eth0 orangepi orangepi

[sudo] password for orangepi:
Config dir: /tmp/create_ap.wlan0.conf.fg9U5Xgt
PID: 3141
Network Manager found, set ap0 as unmanaged device... DONE
Creating a virtual WiFi interface... ap0 created.
Sharing Internet using method: bridge
Create a bridge interface... br0 created.
hostapd command-line interface: hostapd_cli -p
/tmp/create_ap.wlan0.conf.fg9U5Xgt/hostapd_ctrl
ap0: interface state UNINITIALIZED->ENABLED ap0: AP-ENABLED

3) Take out the mobile phone at this time, and you can find the WIFI hotspot named orangepi created by the development board in the searched WIFI list, and then you can click orangepi to connect to the hotspot, and the password is the orangepi set above

Pi-5-details-pic102.png

4) After the connection is successful, the display is as shown in the figure below

Pi-5-details-pic103.png

5) In bridge mode, the wireless device connected to the hotspot of the development board also requests an IP address from the DHCP service of the main router (the router connected to the development board), for example, the IP of the development board is 192.168.1.X

orangepi@orangepi:~$ ifconfig eth0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.150 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::938f:8776:5783:afa2 prefixlen 64 scopeid 0x20<link>
ether 4a:a0:c8:25:42:82 txqueuelen 1000 (Ethernet)
RX packets 25370 bytes 2709590 (2.7 MB)
RX errors 0 dropped 50 overruns 0 frame 0
TX packets 3798 bytes 1519493 (1.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 83

The IP of the device connected to the WIFI hotspot is also assigned by the main router, so the mobile phone connected to the WIFI hotspot and the development board are in the same network segment. At this time, click on the connected WIFI hotspot orangepi, and then you can see the IP address of the mobile phone Also 192.168.1.X

Pi-5-details-pic104.png

Pi-5-details-pic105.png

6) If the --freq-band parameter is not specified, the hotspot created by default is in the 2.4G frequency band. If you want to create a hotspot in the 5G frequency band, you can specify the --freq-band 5 parameter. The specific command is as follows

orangepi@orangepi:~$ sudo create_ap -m bridge wlan0 eth0 orangepi orangepi --freq-band 5

7) If you need to hide the SSID, you can specify the --hidden parameter, the specific command is as follows

orangepi@orangepi:~$ sudo create_ap -m bridge wlan0 eth0 orangepi orangepi --hidden

At this time, the mobile phone cannot search for the WIFI hotspot. You need to manually specify the name of the WIFI hotspot and enter the password to connect to the WIFI hotspot.

Pi-5-details-pic106.png

HDMI display test

1) Use HDMI to HDMI cable to connect Orange Pi development board and HDMI display

Pi-5-details-pic107.png

2) After starting the linux system, if the HDMI monitor has image output, it means that the HDMI interface is working normally

Note that although many notebook computers have an HDMI interface, the HDMI interface of the notebook generally only has the output function, and does not have the function of HDMI in, that is to say, the HDMI output of other devices cannot be displayed on the notebook screen.

When you want to connect the HDMI of the development board to the HDMI port of the laptop, please make sure that your laptop supports the HDMI in function.

When the HDMI is not displayed, please check whether the HDMI cable is plugged in tightly. After confirming that there is no problem with the connection, you can change a different screen and try to see if it is displayed.

HDMI to VGA display test

1) First, you need to prepare the following accessories
a. HDMI to VGA Converter

Pi-5-details-pic108.png

b. A VGA cable

Pi-5-details-pic109.png

c. A monitor or TV that supports VGA interface

2) HDMI to VGA display test as shown below

Pi-5-details-pic110.png


When using HDMI to VGA display, the development board and the Linux system of the development board do not need to make any settings, only the HDMI interface of the development board can display normally. So if there is a problem with the test, please check whether there is a problem with the HDMI to VGA converter, VGA cable and monitor.

HDMI resolution setting method

1) First open Display in Settings

Pi-5-details-pic111.png

2) Then you can see the current resolution of the system

Pi-5-details-pic112.png

3) Click the drop-down box of Resolution to see all resolutions currently supported by the display

Pi-5-details-pic113.png

4) Then select the resolution you want to set, and click Apply

Pi-5-details-pic114.png

5) After the new resolution is set, select Keep the configuration

Pi-5-details-pic115.png

How to use Bluetooth

1.Test method of desktop image

1) Click the Bluetooth icon in the upper right corner of the desktop

Pi-5-details-pic116.png

2) Then select the adapter

Pi-5-details-pic117.png

3) If there is a prompt on the following interface, please select Yes

Pi-5-details-pic118.png

4) Then set the Visibility Setting to Always visible in the Bluetooth adapter setting interface, and then close it

Pi-5-details-pic119.png

5) Then open the configuration interface of the Bluetooth device

Pi-5-details-pic120.png

6) Click Search to start scanning the surrounding Bluetooth devices

Pi-5-details-pic121.png

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

Pi-5-details-pic122.png

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

Pi-5-details-pic123.png

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

Pi-5-details-pic124.png

10) The interface for sending pictures is as follows

Pi-5-details-pic125.png

USB interface test


The USB interface can be connected to a USB hub to expand the number of USB interfaces.

Connect USB mouse or keyboard to test

1) Insert the USB interface keyboard into the USB interface of the Orange Pi development board

2) Connect the Orange Pi development board to the HDMI display

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)

Connect USB storage device test

1) First insert the U disk or USB mobile hard disk into the USB interface of the Orange Pi development board

2) Execute the following command, if you can see the output of sdX, it means that the U disk is recognized successfully

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

orangepi@orangepi:~$ sudo mount /dev/sda1 /mnt/

orangepi@orangepi:~$ ls /mnt/
test.txt

The following command can be used to mount the U disk in exfat format on the Linux system

orangepi@orangepi:~$ sudo apt-get install exfat-utils exfat-fuse

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 command

orangepi@orangepi:~$ df -h | grep "sd"
/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.

serial number model
1 RTL8723BU
Support 2.4G WIFI+BT4.0
Pi-5-details-pic126.png
2 RTL8811
Support 2.4G +5G WIFI
Pi-5-details-pic127.png
3 RTL8821CU
Support 2.4G +5G WIFI
支持 BT 4.2
Pi-5-details-pic128.png

1.RTL8723BU test

1) First insert the RTL8723BU wireless network card module into the USB interface of the development board

2) 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

orangepi@orangepi:~$ lsmod
Module Size Used by
rfcomm 57344 16
rtl8xxxu 106496 0
rtk_btusb 61440 0

3) Through the dmesg command, you can see the loading information of the RTL8723BU module

orangepi@orangepi:~$ dmesg

4) Then you can see the device node of RTL8723BU WIFI through the sudo ifconfig command. For the connection and test method of WIFI, please refer to the section of WIFI connection test, which will not be repeated here

orangepi@orangepi:~$ sudo ifconfig wlx0013eff458ae

wlx0013eff458ae: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

5) Then you can see the USB Bluetooth device through the hciconfig command

orangepi@orangepi:~$ sudo apt update && sudo apt install bluez

orangepi@orangepi:~$ hciconfig
hci0: Type: Primary Bus: USB
BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16 DOWN
RX bytes:1252 acl:0 sco:0 events:125 errors:0
TX bytes:23307 acl:0 sco:0 commands:125 errors:0

6) You can also see the bluetooth icon on the desktop. At this time, the bluetooth is not turned on, so a red x will be displayed

Pi-5-details2-pic01.png

7) Click Turn Bluetooth On to turn on Bluetooth

Pi-5-details2-pic02.png

8) The display after turning on Bluetooth is as follows

Pi-5-details2-pic03.png

9) For the test method of Bluetooth, please refer to the section on Bluetooth usage, so I won’t go into details here

2.RTL8811 test

1) First insert the RTL8811 wireless network card module into the USB interface of the development board

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

orangepi@orangepi:~$ lsmod
Module Size Used by
8821cu 1839104 0

3) Through the dmesg command, you can see the loading information of the RTL8811 module

orangepi@orangepi:~$ dmesg

[ 118.618194] usb 2-1: new high-speed USB device number 2 using ehci-platform
[ 118.767152] usb 2-1: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[ 118.767181] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 118.767199] usb 2-1: Product: 802.11ac NIC
[ 118.767219] usb 2-1: Manufacturer: Realtek
[ 118.767235] usb 2-1: SerialNumber: 123456
[ 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 connection and test method, please refer to the WIFI connection test section, which will not be repeated here

orangepi@orangepi:~$ sudo ifconfig wlx1cbfced9d260

wlx1cbfced9d260: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 1c:bf:ce:d9:d2:60 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)

3.RTL8821CU test

1) First insert the rtl8821cu wireless network card module into the usb interface of the development board

2) Then use the lsusb command to see the device information of the rtl8821cu usb wifi module, please make sure that the USB module is not in Driver CDROM Mode

grep "Realtek"

Bus 002 Device 003: ID 0bda:c820 Realtek Semiconductor Corp. 802.11ac NIC

grep "Realtek"

Bus 002 Device 002: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (Driver CDROM Mode)

If the USB WIFI module seen by the lsusb command is in Driver CDROM Mode, please unplug the USB WIFI module 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

orangepi@orangepi:~$ lsmod
Module Size Used by
8821cu 1839104 0
rtk_btusb 61440 0

4) Through the dmesg command, you can see the loading information of the rtl8821cu module

orangepi@orangepi:~$ dmesg

......
[ 57.083693] usb 2-1: new high-speed USB device number 2 using ehci-platform
[ 57.231888] usb 2-1: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 2.00
[ 57.231916] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 57.231937] usb 2-1: Product: DISK
[ 57.242594] usb-storage 2-1:1.0: USB Mass Storage device detected [ 57.245674] scsi host0: usb-storage 2-1:1.0
[ 58.069172] usb 2-1: USB disconnect, device number 2
[ 58.440025] usb 2-1: new high-speed USB device number 3 using ehci-platform
[ 58.587819] usb 2-1: New USB device found, idVendor=0bda, idProduct=c820, bcdDevice= 2.00
[ 58.587827] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 58.587833] usb 2-1: Product: 802.11ac NIC
[ 58.587838] usb 2-1: Manufacturer: Realtek
[ 58.587844] usb 2-1: SerialNumber: 123456
[ 58.610463] rtk_btusb: Realtek Bluetooth USB driver ver 3.1.6d45ddf.20220519-142432
[ 58.610656] usbcore: registered new interface driver rtk_btusb
[ 58.634631] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[ 58.636729] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 58.636740] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 58.664190] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[ 58.664746] Bluetooth: hci0: RTL: cfg_sz 10, total sz 31990
[ 59.122471] Bluetooth: hci0: RTL: fw version 0x829a7644
[ 59.265513] usbcore: registered new interface driver rtl8821cu
[ 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 command. For the wifi connection and test method, please refer to the section of WIFI connection test, which will not be repeated here

orangepi@orangepi:~$ sudo ifconfig wlx90de80521825

wlx90de80521825: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)

6) Then you can see the USB Bluetooth device through the hciconfig command

orangepi@orangepi:~$ sudo apt-get update && sudo apt-get install -y bluez

orangepi@orangepi:~$ hciconfig
hci0: Type: Primary Bus: USB
BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16 DOWN
RX bytes:1252 acl:0 sco:0 events:125 errors:0
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 x will be displayed

Pi-5-details2-pic04.png

8) Click Turn Bluetooth On to turn on Bluetooth

Pi-5-details2-pic05.png

9) The display after turning on Bluetooth is as follows

Pi-5-details2-pic06.png

10) For the test method of Bluetooth, please refer to the section on Bluetooth usage, so I won’t go into details here

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 camera into the USB port of the Orange Pi development board

Pi-5-details2-pic07.png

2) Through the v4l2-ctl command, you can see that the device node information of the USB camera is /dev/video0

orangepi@orangepi:~$ v4l2-ctl --list-devices

Q8 HD Webcam: Q8 HD Webcam (usb-fc880000.usb-1):
/dev/video0
/dev/video1
/dev/media0

Note that the l in v4l2 is a lowercase letter l, not the number 1.

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 camera. The method of opening Cheese is shown in the figure below.:

Pi-5-details2-pic08.png

The interface after Cheese turns on the USB camera is shown in the figure below:

Pi-5-details2-pic09.png

4) Method of using fswebcam to test USB camera
a. Install fswebcam

orangepi@orangepi:~$ sudo apt update

orangepi@orangepi:~$ sudo apt-get install -y fswebcam

b. After installing fswebcam, you can use the following command to take pictures
a) -d option is used to specify the device node of the USB camera
b) --no-banner is used to remove the watermark of the photo
c) The -r option is used to specify the resolution of the photo
d) The -S option is used to set the number of previous frames to skip
e) ./image.jpg is used to set the name and path of the generated photo

orangepi@orangepi:~$ sudo fswebcam -d /dev/video0 \

--no-banner -r 1280x720 -S 5 ./image.jpg

c. In the server version of the linux system, you can use the scp command to transfer the taken pictures to the Ubuntu PC for image viewing after taking pictures

orangepi@orangepi:~$ scp image.jpg [email protected]:/home/testModify 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

Testing audio methods on desktop systems

1) First open the file manager

Pi-5-details2-pic10.png

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)

Pi-5-details2-pic11.png

3) Then select the audio.wav file, right click and select open with vlc to start playing

Pi-5-details2-pic12.png

4) How to switch between different audio devices such as HDMI playback and headphone playback
a. First open the volume control interface

Pi-5-details2-pic13.png

b. When playing audio, the audio device options that the playback software can use will be displayed in Playback, as shown in the figure below, where you can set which audio device to play to

Pi-5-details2-pic14.png

The method of using commands to play audio

1.Headphone interface playback audio test

1) First insert the earphone into the earphone jack of the development board

Pi-5-details2-pic15.png

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

orangepi@orangepi:~$ aplay -l
        • List of PLAYBACK Hardware Devices ****

card 0: rockchipdp0 [rockchip-dp0], device 0: rockchip-dp0 spdif-hifi-0 [rockchip-dp0 spdif-hifi-0] Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: rockchiphdmi0 [rockchip-hdmi0], device 0: rockchip-hdmi0 i2s-hifi-0 [rockchip-hdmi0 i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: rockchipes8388 [rockchip-es8388], device 0: dailink-multicodecs ES8323.6-0010-0 [dailink-multicodecs ES8323.6-0010-0]
Subdevices: 1/1

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.

rangepi@orangepi:~$ aplay -D hw:2,0 /usr/share/sounds/alsa/audio.wav

Playing WAVE 'audio.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

2.HDMI audio playback test

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)

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

orangepi@orangepi:~$ aplay -l
        • List of PLAYBACK Hardware Devices ****

card 0: rockchipdp0 [rockchip-dp0], device 0: rockchip-dp0 spdif-hifi-0 [rockchip-dp0 spdif-hifi-0] Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: rockchiphdmi0 [rockchip-hdmi0], device 0: rockchip-hdmi0 i2s-hifi-0 [rockchip-hdmi0 i2s-hifi-0] Subdevices: 1/1
Subdevice #0: subdevice #0
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

orangepi@orangepi:~$ aplay -D hw:1,0 /usr/share/sounds/alsa/audio.wav

Method of using commands to test recording

1) There is an onboard MIC on the development board, the location is as follows:

Pi-5-details2-pic16.png

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

orangepi@orangepi:~$ test_record.sh main

Start recording: /tmp/test.wav
Recording WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Start playing
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

3) 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.

orangepi@orangepi:~$ test_record.sh headset

Start recording: /tmp/test.wav
Recording WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Start playing
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

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 development board

Pi-5-details2-pic17.png

2) The functions of the 26 pin interface pins on the Orange Pi 5 development board are shown in the table below
a. The following is the complete pin diagram of 26pin

Pi-5-details2-pic18.png

b. The table below is the picture of the left half of the complete table above, so you can see it clearly

Pi-5-details2-pic19.png

c. The table below is the picture of the right half of the complete table above, so you can see it clearly

Pi-5-details2-pic20.png


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/ corresponds to which pwm pin in the 26pin header.

3) There are a total of 17 GPIO ports in the 26pin interface, and the voltage of all GPIO ports is 3.3v

Instructions for the use of the android 12 system

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:

Chip model Function VID&PID Adaptation
RTL8821CU 2.4G +5G WIFI+BT 4.2 0bda:c820 Only support wifi, Bluetooth needs to be adapted
RTL8723BU 2.4G WIFI+BT4.0 0bda:b720 Only support wifi, Bluetooth needs to be adapted
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:
a. The picture of the RTL8821CU USB wireless network card module is shown below:

Pi-5-details2-pic21.png

b. The pictures of the RTL8723BU USB wireless network card module are shown below:

Pi-5-details2-pic22.png

c. The picture of the RTL8811CU USB wireless network card module is shown below:

Pi-5-details2-pic23.png

3) The test methods of the USB wireless network cards of the above 3 models are the same. First, insert the USB network card into the USB interface of the development board, and then enter Setting

Pi-5-details2-pic24.png

4) Then choose Network & internet

Pi-5-details2-pic25.png

5) Then choose Internet

Pi-5-details2-pic26.png

6) Then turn on the Wi-Fi switch

Pi-5-details2-pic27.png

7) If everything is normal after opening the Wi-Fi, you can scan to the nearby Wi-Fi hotspot

Pi-5-details2-pic28.png

8) Then select the Wi-Fi you want to connect, and you will pop up the password input interface shown in the figure below

Pi-5-details2-pic29.png

9) Then use the keyboard to enter the corresponding password of the wi-fi, and then use the mouse to click the Enter button in the virtual keyboard to start connecting Wi-Fi

Pi-5-details2-pic30.png

10) The display after the Wi-Fi connection is successful as shown in the figure below:

Pi-5-details2-pic31.png

26pin GPIO port test

1) First click the Wiringop icon to open the Wiringop App

Pi-5-details2-pic32.png

2) 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

Pi-5-details2-pic33.png

3) 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 -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 GPIO READALL button on the right, you can get the WPI, GPIO mode, pin level information, etc.

Pi-5-details2-pic34.png

4) Then click the GPIO READALL button, and the output information is shown in the figure below

Pi-5-details2-pic35.png

5) Taking the high and low level of the GPIO2_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

Pi-5-details2-pic36.png

6) Then click the GPIO READALL button to see that the pins mode of the current GPIO2_D4 is OUT, and the pin level is high level

Pi-5-details2-pic37.png

7) Click the CheckBox 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, the low -power flat is set.

Pi-5-details2-pic38.png

8) Then click the GPIO READALL button to see that the pins mode of the current GPIO2_D4 is OUT, and the pin level is low

Pi-5-details2-pic39.png

26pin UART test

1) 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

Pi-5-details2-pic40.png

2) First click the WiringOP icon to open the Wiringop App

Pi-5-details2-pic41.png

3) The main interface of the WiringOP APP is displayed as shown in the figure below, and then click the UART_TEST button to open the UART test interface

Pi-5-details2-pic42.png

4) The serial test interface of the APP is shown in the figure below

Pi-5-details2-pic43.png

5) Then enter the baud rate you want to set in the editing box, and then click the OPEN 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

Pi-5-details2-pic44.png

6) Then use the DuPont line to shorte the RXD and TXD pin of uart0

Pi-5-details2-pic45.png

7) Then you can enter a section of characters in the editing box below, click the SEND button to start sending

Pi-5-details2-pic46.png

8) If everything is normal, the receiving string will be displayed in the receiving box

Pi-5-details2-pic47.png

26pin's PWM test

1) Android only opened PWM15 by default. The corresponding pins are at the position of 26Pin.

Pi-5-details2-pic48.png

2) First click theWiringOP icon to open the Wiringop App

Pi-5-details2-pic49.png

3) Then click the PWM_TEST button to enter the PWM test interface at the main interface of WiringOP

Pi-5-details2-pic50.png

4) 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.

Pi-5-details2-pic51.png

5) 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

Pi-5-details2-pic52.png

6) Then drag the drag below to change the PWM duty ratio, and then check the enable to output PWM

Pi-5-details2-pic53.png

Pi-5-details2-pic54.png

26pin's SPI test

1) From the schematic diagram of the 26pin interface, the SPI available for Orange Pi 5 is spi4

Pi-5-details2-pic55.png

2) Here is the w25q64 module to test the SPI interface, and first access the w25q64 device at the SPI4 interface.

Pi-5-details2-pic56.png

3) Then click the WiringOP icon to open the WiringOP APP

Pi-5-details2-pic57.png

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

Pi-5-details2-pic58.png

5) Then click the OPEN button to initialize SPI

Pi-5-details2-pic59.png

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

Pi-5-details2-pic60.png

7) The last app will display the ID information read

Pi-5-details2-pic61.png

8) The MANUFACTURER ID of the w25q64 module is EFh, the Device ID is 4017h, and the value read above is corresponding (H represents hexadecimal)

Pi-5-details2-pic62.png