8,367
edits
Changes
→26pin's SPI test
== '''How to use Win32Diskimager to burn Linux image ''' ==
1) First prepare a TF card with a capacity of 16GB or more. The transmission speed of the TF card must be class 10 or above. It is recommended to use a TF card of SanDiskand other brands<br><br>
2) Then use the card reader to insert the TF card into the computer<br><br>
c. After the image writing is completed, click the "Exit" button to exit, and then you can pull out the TF card and insert it into the development board to start<br><br>
== '''Linux system instructions ''' ==
=== Supported Linux image types and kernel versions ===
{| class="wikitable" style="width:800px;"
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
|-
|'''There are three ways to check the IP address after the development board starts:'''<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. Enter the ip addr show eth0 command in the debugging serial terminal to view the IP address'''<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) 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) Check whether the network cable is plugged in tightly, or try another network cable;'''<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) 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>
'''In addition, it should be noted that the development board DHCP automatically assigns an IP address without any settings.'''<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;"
|-
|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. <br>
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=56 time=6.74 ms<br>
|}<br>
=== 查询 WIFI 连接测试 connection test ===
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
|-
|'''<span style="color:#FF0000">首先请注意 Orange Pi 5 开发板上是没有 Please do not connect to WIFI 模块的,需要外接 PCIe 网卡或者 USB 网卡才能使用 WIFI 功能。<by modifying the /etc/span>'''<br>外接 '''PCIe''' 网卡的使用说明请参考 <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 AP6275P PCIe 网卡使用方法 | AP6275P PCIe 网卡的使用方法]]<network/span> 一小节。外接 '''USBinterfaces configuration file. There will be problems connecting to the WIFI network in this way.''' 网卡的使用说明请参考 <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 USB 无线网卡测试 | USB 无线网卡测试]]</span>一小节。
|}
'''1. The server image connects to WIFI through commands'''
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
|-
|请不要通过修改'''/etc/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/interfaces''' 配置文件的方式来连接 '''WIFI''',通过这种方式连接 '''. 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 WIFInetwork.''' 网络使用会有问题。
|}
{| class="wikitable" style="width:800px;"
|-
|}
[[Image:Pi-5-details-pic60.png]]<br><br>
3) 然后使用 '''Then use the nmcli''' 命令连接扫描到的 command to connect to the scanned WIFI 热点,其中:hotspot, where:<br>a. '''wifi_name''' 需要换成想连接的 needs to be replaced with the name of the WIFI 热点的名字hotspot you want to connect to<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;"
|-
|orangepi@orangepi:~$ '''nmcli dev wifi connect <span style="color:#FF0000">wifi_name</span> password <span style="color:#FF0000">wifi_passwd</span>'''<br>
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''' 命令可以查看 wifi 的 IP 地址command<br>
{| class="wikitable" style="width:800px;"
|-
inet6 240e:3b7:3240:c3a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute<br>
valid_lft 259192sec preferred_lft 172792sec<br>
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroutevalid_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''' 快捷键来中断运行<br>
{| class="wikitable" style="width:800px;"
|-
^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
|}
'''2、服务器版镜像通过图形化方式连接WIFI2. The server image connects to WIFI in a graphical way'''<br><br>1) 先登录 First log in to the linux 系统,有下面三种方式system, there are the following three ways<br>a. 如果开发板连接了网线,可以通过 If the development board is connected with a network cable, you can remotely log in to the Linux system through ssh 远程登录 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 系统(串口软件请使用 MobaXterm,使用 system (please use MobaXterm for the serial port software, and minicom 无法显示图形界面)cannot display the graphical interface)<br>c. 如果连接了开发板到HDMI 显示器,可以通过HDMI 显示的终端登录到linux 系统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) 然后在命令行中输入 '''Then enter the nmtui''' 命令打开 command in the command line to open the wifi 连接的界面connection interface<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''nmtui'''
|}
3) 输入 Enter the nmtui 命令打开的界面如下所示command to open the interface as shown below<br><br>
[[Image:Pi-5-details-pic61.png]]<br><br>
4) 选择 Select '''Activate a connect''' 后回车and press Enter<br><br>
[[Image:Pi-5-details-pic62.png]]<br><br>
5) 然后就能看到所有搜索到的 Then you can see all the searched WIFI 热点hotspots<br><br>
[[Image:Pi-5-details-pic63.png]]<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>
7) 然后会弹出输入密码的对话框,在 Then a dialog box for entering a password will pop up, enter the corresponding password in '''PsswordPassword''' 内输入对应的密码然后回车就会开始连接 and press Enter to start connecting to WIFI<br><br>
[[Image:Pi-5-details-pic65.png]]<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>
9) 通过 You can view the IP address of wifi through the '''ip addr show wlan0''' 命令可以查看 wifi 的 IP 地址command<br>
{| class="wikitable" style="width:800px;"
|-
inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute<br>
valid_lft 259071sec preferred_lft 172671sec<br>
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''' 快捷键来中断运行<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''ip addr show wlanping www.orangepi.online -I wlan0'''<br>11: PING www.orangepi.online (182.92.236.130) from 192.168.1.49 wlan0: 56(84) bytes of data.<BROADCAST,MULTICAST,UP,LOWER_UPbr> mtu 1500 qdisc pfifo_fast state UP group default qlen 100064 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=1 ttl=52 time=43.5 ms<br>link/ether 2464 bytes from 182.92.236.130 (182.92.236.130):8cicmp_seq=2 ttl=52 time=41.3 ms<br>64 bytes from 182.92.236.130 (182.92.236.130):d3icmp_seq=3 ttl=52 time=44.9 ms<br>64 bytes from 182.92.236.130 (182.92.236.130):aa:76:bb brd ff:ff:ff:ff:ff:fficmp_seq=4 ttl=52 time=45.6 ms<br>inet 19264 bytes from 182.92.168236.1130 (182.11/24 brd 19292.168236.1130): icmp_seq=5 ttl=52 time=48.255 scope global dynamic noprefixroute wlan0 valid_lft 259069sec preferred_lft 259069sec8 ms<br>inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute^C<br>valid_lft 259071sec preferred_lft 172671sec--- www.orangepi.online ping statistics ---<br>inet6 fe80::42f1:6019:a80e:4c315 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 41.321/44.864/48.834/64 scope link noprefixroute 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>
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-pic69.png]]<br><br>
[[Image:Pi-5-details-pic70.png]]<br><br>
[[Image:Pi-5-details-pic71.png]]<br><br>
=== 查询 设置静态 How to set a static IP 地址的方法 address ===<br>'''1、使用nmtui 命令来设置静态IP 地址1.Use the nmtui command to set a static IP address'''<br><br>1) 首先运行 '''First run the nmtui''' 命令command<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''nmtui'''
|}
2) 然后选择 Then select '''Edit a connection''' 并按下回车键and press Enter<br><br>
[[Image:Pi-5-details-pic72.png]]<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''' 接口的静态 IP 地址选择 interface, select '''Wired connection 1''' 就可以了<br><br>
[[Image:Pi-5-details-pic73.png]]<br><br>
4) 然后通过 Then select '''TabEdit''' 键选择 via the '''EditTab''' 并按下回车键key and press the Enter key<br><br>
[[Image:Pi-5-details-pic74.png]]<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>
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>
7) 选择完后的显示如下图所示The display after selection is shown in the figure below<br><br>
[[Image:Pi-5-details-pic77.png]]<br><br>
8) 然后通过 Tab 键将光标移动到Then move the cursor to '''<Show>'''via the Tab key<br><br>
[[Image:Pi-5-details-pic78.png]]<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>
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>
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>
12) 然后点击Then click '''<Back>'''回退到上一级选择界面to return to the previous selection interface<br><br>
[[Image:Pi-5-details-pic82.png]]<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>
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>
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>
16) 然后通过Then you can exit nmtui through the '''<Back>'''和 and '''Quit''' 按钮就可以退出 nmtuibuttons<br><br>
[[Image:Pi-5-details-pic86.png]][[Image:Pi-5-details-pic86-1.png]]<br><br>
17) 然后通过Then through '''ip addr show eth0''' 就能看到网口的IP 地址已经变成前面设置的静态IP地址了, 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;"
|-
inet6 241e:3b8:3240:c3a0:e269:8305:dc08:135e/64 scope global dynamic noprefixroute<br>
valid_lft 259149sec preferred_lft 172749sec<br>
inet6 fe80::957d:bbbe:4928:3604/64 scope link noprefixroutevalid_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''' 快捷键来中断运行<br>
{| class="wikitable" style="width:800px;"
|-
|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>
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=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=5 ttl=64 time=0.275 ms <br>--- 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 地址2.Use the nmcli command to set a static IP address'''<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'''的静态 '''IP''' 地址,请先连接好 ''', please connect the WIFIfirst''',然后再开始设置静态 , and then start to set the static IP 地址address<br><br>2) 然后通过 Then you can view the name of the network device through the '''nmcli con show''' 命令可以查看网络设备的名字,如下所示command, as shown below<br>a. '''orangepi''' 为 is the name of the WIFI 网络接口的名字(名字不一定相同)network interface (the name is not necessarily the same)<br>b. '''Wired connection 1''' 为以太网接口的名字is the name of the Ethernet interface<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''nmcli con show'''
|}
{| class="wikitable" style="width:800px;border: none !important;"
| '''Wired connection 1''' || 9db058b7-7701-37b8-9411-efc2ae8bfa30 || ethernet || eth0
|}
3) 然后输入下面的命令,其中Then enter the following command, where<br>a. '''"Wired connection 1"''' 表示设置以太网口的静态 means to set the static IP 地址,如果需要设置WIFI 的静态 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''' 后面是要设置的静态 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''' 表示网关的地址represents the address of the gateway<br>
{| class="wikitable" style="width:800px;"
|-
|'''orangepi@orangepi:~$ '''nmcli con mod "Wired connection 1" \'''<br>
'''ipv4.addresses "192.168.1.110" \'''<br>
'''ipv4.gateway "192.168.1.1" \'''<br>
'''ipv4.method "manual"'''
|}
4) 然后重启 Then restart the linux 系统system<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''sudo reboot'''
|}
5) 然后重新进入linux 系统使用 Then re-enter the linux system and use the '''ip addr show eth0''' 命令就可以看到IP 地址已经设置为想要的值了command to see that the IP address has been set to the desired value<br>
{| class="wikitable" style="width:800px;"
|-
inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic noprefixroute<br>
valid_lft 259183sec preferred_lft 172783sec<br>
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<br><br>
[[Image:Pi-5-details-pic87.png]]<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>
3) 然后在 linux 系统中打开 Then open the configuration of the AP6275P PCIe 网卡的配置,步骤如下所示:network card in the linux system, the steps are as follows:<br>a. 首先运行下 First run '''orangepi-config''',普通用户记得加 ''', normal users remember to add sudo''' 权限permission<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''sudo orangepi-config'''
|}
b. 然后选择 Then select '''System'''<br><br>
[[Image:Pi-5-details-pic89.png]]<br><br>
c. 然后选择 Then select '''Hardware'''<br><br>
[[Image:Pi-5-details-pic90.png]]<br><br>
d. 然后使用使用键盘的方向键定位到 Then use the arrow keys on the keyboard to navigate to '''wifi-ap6275p''',再使用空格选中<br>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <br><big>, and then use the '''请不要同时选中 ssd-sata。space'''</big><br>to select<br>|}
[[Image:Pi-5-details-pic91.png]]<br><br>
e. 然后选择Then select '''<Save>'''保存to save<br><br>
[[Image:Pi-5-details-pic92.png]]<br><br>
f. 然后选择Then select '''<Back>'''<br><br>
[[Image:Pi-5-details-pic93.png]]<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>
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|上面的设置最终会在'''/boot/orangepiEnv.txt''' 中加入 '''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>如果觉得使用 '''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''' 这句配置也是可以。<br><br>orangepi@orangepi:~$ '''cat /boot/orangepiEnv.txt | grep “ap6275p”'''
|}
4) 重启系统后如果一切正常,此时使用下面的命令就能看到 If everything is normal after restarting the system, use the following command to see the device nodes of WIFI 和蓝牙的设备节点了and Bluetooth<br>a. 查看 The command to view the WIFI 设备节点的命令如下所示:device node is as follows:<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''ip addr show wlan0'''<br>
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500<br>
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. 查看蓝牙设备节点的命令如下所示:The command to view the Bluetooth device node is as follows:<br>
{| class="wikitable" style="width:800px;"
|-
|rangepiorangepi@orangepi:~$ '''hciconfig -a'''<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>
RX bytes:958 acl:0 sco:0 events:73 errors:0<br>
TX bytes:5544 acl:0 sco:0 commands:73 errors:0<br>Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87<br>
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3<br>
Link policy: RSWITCH SNIFF Link mode: SLAVE ACCEPT Name: 'orangepi5'<br>
Class: 0x1c0000<br>
Service Classes: Rendering, Capturing, Object Transfer Device Class: Miscellaneous,<br>
HCI Version: 5.1 (0xa) Revision: 0x3f9 <br>LMP Version: 5.1 (0xa) Subversion: 0x1111Manufacturer: Broadcom Corporation (15)
|}
5) For the wifi 的连接和测试方法请参看 connection and test method, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 connection test | the section of WIFI 连接测试connection test]]</span>一节,这里不再赘述, which will not be repeated here<br><br>6) 蓝牙的测试方法请参看<span style="color:#0066CC;">[[Orange Pi 5 detail#蓝牙使用方法 | 蓝牙使用方法]]</span>一节,这里不再赘述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 网卡通过 NIC creates WIFI hotspot via create_ap 创建 WIFI 热点的方法 ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|'''create_ap'''是一个帮助快速创建'''is a script that helps quickly create WIFI hotspots on Linux'''上的'''WIFI'''热点的脚本,并且支持''', and supports bridge'''和'''and NAT'''模式,能够自动结合'''modes. It can automatically combine hostapd''', '''dnsmasq'''和'''and iptables'''完成WIFI热点的设置,避免了用户进行复杂的配置,'''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>
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|如果使用的是最新的镜像,那么就已经预装了'''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'''命令来创建'''WIFI'''热点,'''command. The basic command format of create_apis as follows:'''的基本命令格式如下所示:<br><br>
'''create_ap [options] <wifi-interface> [<interface-with-internet>]''' <br>
'''[<access-point-name> [<passphrase>]]'''<br><br>'''options''':可以通过该参数指定加密方式、WIFI热点的频段、频宽模式、网络共享方式等,具体可以通过'''create_ap -h'''获取到有哪些'''option'''<br>'''wifi-interface''':无线网卡的名称<br>'''interface-with-internet''':可以联网的网卡名称,一般是'''eth0'''<br>'''access-point-name''':热点名称<br>'''passphrase''':热点的密码
|}
'''1、create_ap 以 1.create_ap method to create WIFI hotspot in NAT 模式创建 WIFI 热点的方法mode'''<br><br>1) 输入下面的命令以 NAT 模式创建名称为 Enter the following command to create a WIFI hotspot named '''orangepi'''、密码为 and password '''orangepi''' 的 WIFI 热点in NAT mode<br>
{| class="wikitable" style="width:800px;"
|-
|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<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi5:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi'''<br>
Config dir: /tmp/create_ap.wlan0.conf.fPItFUJ2 PID: 3831<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>
hostapd command-line interface: hostapd_cli -p<br>
/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'''的 WIFI 热点,然后可以点击 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>
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>
5) 在 In NAT 模式下,连接到开发板热点的无线设备是向开发板的 mode, the wireless device connected to the hotspot of the development board requests an IP address from the DHCP 服务请求 IP地址的,所以会有两个不同的网段,如这里开发板的 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;"
|-
RX errors 0 dropped 50 overruns 0 frame 0<br>
TX packets 3798 bytes 1519493 (1.5 MB)<br>
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>device interrupt 83
|}
[[Image:Pi-5-details-pic97.png]]<br><br>
[[Image:Pi-5-details-pic98.png]]<br><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 参数指定接入点 AP 的网段为 parameter as 192.168.2.1<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi5:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi -g 192.168.2.1'''
|}
[[Image:Pi-5-details-pic99.png]]<br><br>
[[Image:Pi-5-details-pic100.png]]<br><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;"
|-
|orangepi@orangepi:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi --freq-band 5'''
|}
8) 如果需要隐藏 SSID,可以指定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;"
|-
|orangepi@orangepi:~$ '''sudo create_ap -m nat wlan0 eth0 orangepi orangepi --hidden'''
|}
[[Image:Pi-5-details-pic101.png]]<br><br>
'''2、create_ap 以 2.create_ap method to create WIFI hotspot in bridge 模式创建WIFI 热点的方法mode'''<br><br>1) 输入下面的命令以 bridge 模式创建名称为 Enter the following command to create a WIFI hotspot named '''orangepi'''、密码为 and password '''orangepi''' 的 WIFI热点in bridge mode<br>
{| class="wikitable" style="width:800px;"
|-
|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<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi'''<br>
[sudo] password for orangepi:<br>
Config dir: /tmp/create_ap.wlan0.conf.fg9U5Xgt <br>PID: 3141<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>
hostapd command-line interface: hostapd_cli -p<br>
/tmp/create_ap.wlan0.conf.fg9U5Xgt/hostapd_ctrl <br>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<br><br>
[[Image:Pi-5-details-pic102.png]]<br><br>
4) 然后重启 linux 系统After the connection is successful, the display is as shown in the figure below<br><br>
[[Image:Pi-5-details-pic103.png]]<br><br>
5) 在 In bridge 模式下,连接到开发板热点的无线设备也是向主路由(开发板连接的路由器)的 mode, the wireless device connected to the hotspot of the development board also requests an IP address from the DHCP 服务请求 IP 地址的,如这里开发板的 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;"
|-
|orangepi@orangepi:~$ '''ifconfig eth0'''<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>inet6 fe80::938f:8776:5783:afa2 prefixlen 64 scopeid 0x20<link> <br>ether 4a:a0:c8:25:42:82 txqueuelen 1000 (Ethernet)<br>
RX packets 25370 bytes 2709590 (2.7 MB)<br>
RX errors 0 dropped 50 overruns 0 frame 0<br>
TX packets 3798 bytes 1519493 (1.5 MB)<br>
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>device interrupt 83
|}
[[Image:Pi-5-details-pic104.png]]<br><br>
[[Image:Pi-5-details-pic105.png]]<br><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;"
|-
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi --freq-band 5'''
|}
7) 如果需要隐藏 SSID,可以指定'''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;"
|-
|orangepi@orangepi:~$ '''sudo create_ap -m bridge wlan0 eth0 orangepi orangepi --hidden'''
|}
[[Image:Pi-5-details-pic106.png]]<br><br>
=== 查询 HDMI 显示测试 display test ===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>
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;"
|-
|注意,很多笔记本电脑虽然带有 '''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 HDMIoutput of other devices cannot be displayed on the notebook screen.''' 输出显示到笔记本的屏幕上。<br>当想把开发板的 '''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 infunction.''' 的功能。
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|当 '''When the HDMI''' 没有显示的时候,请先检查下 '''is not displayed, please check whether the HDMIcable 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<br>a. HDMI 转 to VGA 转换器Converter<br><br>
[[Image:Pi-5-details-pic108.png]]<br><br>
b. 一根 A VGA 线cable<br><br>
[[Image:Pi-5-details-pic109.png]]<br><br>
c. 一个支持 A monitor or TV that supports VGA 接口的显示器或者电视interface<br><br>2) HDMI 转 to VGA 显示测试如下所示display test as shown below<br><br>
[[Image:Pi-5-details-pic110.png]]<br><br>
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
| <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 转换器、VGA 线以及显示器是否有问题。converter, VGA cable and monitor.'''</big><br><br>
|}
=== 查询 HDMI 分辨率设置方法 resolution setting method ===1) 首先在 First open '''SettingsDisplay''' 中打开 in '''DisplaySettings'''<br><br>
[[Image:Pi-5-details-pic111.png]]<br><br>
2) 然后就能看到系统当前的分辨率Then you can see the current resolution of the system<br><br>
[[Image:Pi-5-details-pic112.png]]<br><br>
3) 点击 Resolution(分辨率)的下拉框,就可以看到显示器当前支持的所有分辨率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>
4) 然后选择想要设置的分辨率,再点击 Then select the resolution you want to set, and click Apply<br><br>
[[Image:Pi-5-details-pic114.png]]<br><br>
5) 等新的分辨率设置完后再选择 After the new resolution is set, select '''Keep the configuration''' 即可<br><br>
[[Image:Pi-5-details-pic115.png]]<br><br>
=== 蓝牙使用方法 How to use Bluetooth ==={| class="wikitable" style="background-color:#ffffdc;width:800px;" |-|<span style="color:#FF0000">请注意,'''Orange Pi 5''' 开发板上是没有蓝牙模块的,需要外接带蓝牙的 '''PCIe''' 网卡或者带蓝牙的 '''USB''' 网卡才能使用蓝牙功能。</span><br>外接 1.Test method of desktop image'''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) 点击桌面右上角的蓝牙图标Click the Bluetooth icon in the upper right corner of the desktop<br><br>
[[Image:Pi-5-details-pic116.png]]<br><br>
2) 然后选择适配器Then select the adapter<br><br>
[[Image:Pi-5-details-pic117.png]]<br><br>
3) 如果有提示下面的界面,请选择 If there is a prompt on the following interface, please select '''Yes'''<br><br>
[[Image:Pi-5-details-pic118.png]]<br><br>
4) 然后在蓝牙的适配器设置界面中设置 Then set the '''Visibility Setting''' 为 to '''Always visible''',然后关闭即可in the Bluetooth adapter setting interface, and then close it<br><br>
[[Image:Pi-5-details-pic119.png]]<br><br>
5) 然后打开蓝牙设备的配置界面Then open the configuration interface of the Bluetooth device<br><br>
[[Image:Pi-5-details-pic120.png]]<br><br>
6) 点击 Click '''Search''' 即可开始扫描周围的蓝牙设备to start scanning the surrounding Bluetooth devices<br><br>
[[Image:Pi-5-details-pic121.png]]<br><br>
7) 然后选择想要连接的蓝牙设备,再点击鼠标右键就会弹出对此蓝牙设备的操作界面,选择 '''Then select the Bluetooth device you want to connect to, and then click the right button of the mouse to pop up the operation interface of the Bluetooth device, select Pair''' 即可开始配对,这里演示的是和 to start pairing, and the demonstration here is to pair with an Android 手机配对phone<br><br>
[[Image:Pi-5-details-pic122.png]]<br><br>
8) 配对时,桌面的右上角会弹出配对确认框,选择 '''When pairing, a pairing confirmation box will pop up in the upper right corner of the desktop, just select Confirm''' 确认即可,此时手机上也同样需要进行确认to confirm, and the phone also needs to confirm at this time<br><br>
[[Image:Pi-5-details-pic123.png]]<br><br>
9) 和手机配对完后,可以选择已配对的蓝牙设备,然后右键选择 After pairing with the mobile phone, you can select the paired Bluetooth device, then right-click and select '''Send a File''' 即可开始给手机发送一张图片to start sending a picture to the mobile phone<br><br>
[[Image:Pi-5-details-pic124.png]]<br><br>
10) 发送图片的界面如下所示The interface for sending pictures is as follows<br><br>
[[Image:Pi-5-details-pic125.png]]<br><br>
=== 查询 连接 USB 鼠标或键盘测试 interface test ==={| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <br><big>'''The USB interface can be connected to a USB hub to expand the number of USB interfaces.'''</big><br><br>|}=== Connect USB mouse or keyboard to test ===1) 将 Insert the USB interface keyboard into the USB 接口的键盘插入 interface of the Orange Pi 开发板的 USB 接口中development board<br><br>2) 连接 Connect the Orange Pi 开发板到 development board to the HDMI 显示器display<br><br>3) 如果鼠标或键盘能正常操作系统说明 If the mouse or keyboard can operate normally, it means that the USB 接口使用正常(鼠标只有在桌面版的系统中才能使用)interface is working normally (the mouse can only be used in the desktop version of the system)<br><br>
=== 查询 连接 Connect USB 存储设备测试 storage device test ===1) 首先将 First insert the U 盘或者 disk or USB 移动硬盘插入 mobile hard disk into the USB interface of the Orange Pi 开发板的 USB 接口中development board<br><br>2) 执行下面的命令如果能看到 Execute the following command, if you can see the output of sdX 的输出说明 , it means that the U 盘识别成功disk is recognized successfully<br>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''cat /proc/partitions | grep "sd*"'''
|}
3) 使用 Use the mount 命令可以将 command to mount the U 盘挂载到disk to /mnt 中,然后就能查看 , and then you can view the files in the U 盘中的文件了disk<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''sudo mount /dev/sda1 /mnt/'''<br>orangepi@orangepi:~$ '''ls /mnt/'''<br>
test.txt
|}
The following command can be used to mount the U disk in exfat format on the Linux system<br>{| class="wikitable" style="width:800px;"|-|orangepi@orangepi:~$ '''sudo apt-get install exfat-utils exfat-fuse'''<br>orangepi@orangepi:~$ '''sudo mount -t exfat /dev/sda1 /mnt/'''|}4) 挂载完后通过 After mounting, you can view the capacity usage and mount point of the U disk through the '''df -h 命令就能查看 U 盘的容量使用情况和挂载点''' command<br>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''df -h | grep "sd"'''<br>
/dev/sda1 29G 208K 29G 1% /mnt
|}
=== 查询 USB 无线网卡测试 wireless network card test ===目前测试过的能用的 The usable USB 无线网卡如下所示,其他型号的 wireless network cards that have been tested so far are as follows. Please test other types of USB 无线网卡请自行测试,如果无法使用就需要移植对应的 wireless network cards by yourself. If they cannot be used, you need to transplant the corresponding USB 无线网卡驱动wireless network card driver.<br>
{| class="wikitable" style="width:800px;"
|-
| 序号 serial number || 型号 model ||
|-
| 1 || RTL8723BU <br>支持 Support 2.4G WIFI+BT4.0 || [[Image:Pi-5-details-pic126.png]]
|-
| 2 || RTL8811 <br>支持 Support 2.4G +5G WIFI || [[Image:Pi-5-details-pic127.png]]
|-
| 3 || RTL8821CU <br>支持 Support 2.4G +5G WIFI <br>支持 BT 4.2 || [[Image:Pi-5-details-pic128.png]]
|}
'''1、RTL8723BU 测试1.RTL8723BU test'''<br><br>1) 首先将 First insert the RTL8723BU 无线网卡模块插入开发板的 wireless network card module into the USB 接口中interface of the development board<br><br>2) 然后linux 系统会自动加载RTL8723BU 蓝牙和WIFI 相关的内核模块,通过 lsmod命令可以看到下面内核模块已自动加载Then the linux system will automatically load the RTL8723BU bluetooth and WIFI-related kernel modules, through the lsmod command, you can see that the following kernel modules have been automatically loaded<br>
{| class="wikitable" style="width:800px;"
|-
|}
|}
3) 通过 Through the dmesg 命令可以看到 command, you can see the loading information of the RTL8723BU 模块的加载信息module<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''dmesg'''
|}
4) 然后通过 Then you can see the device node of RTL8723BU WIFI through the '''sudo ifconfig''' 命令可以看到 RTL8723BU command. For the connection and test method of WIFI 的设备节点,WIFI 的连接和测试方法请参看 , please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 connection test | the section of WIFI 连接测试connection test]]</span>一节,这里不再赘述, which will not be repeated here<br>
{| class="wikitable" style="width:800px;"
|-
ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B)<br>
RX errors 0 dropped 0 overruns 0 frame 0<br>
TX packets 0 bytes 0 (0.0 B)<br>TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
|}
5) 然后通过 Then you can see the USB Bluetooth device through the '''hciconfig''' 命令可以看到 USB 的蓝牙设备command<br>
{| class="wikitable" style="width:800px;"
|-
BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16 DOWN<br>
RX bytes:1252 acl:0 sco:0 events:125 errors:0<br>
TX bytes:23307 acl:0 sco:0 commands:125 errors:0<br>
|}
6) 在桌面中也可以看到出现了蓝牙图标,此时蓝牙还未打开,所以会显示一个红色的 You can also see the bluetooth icon on the desktop. At this time, the bluetooth is not turned on, so a red '''<span style="color:#FF0000">x</span>'''will be displayed<br><br>
[[Image:Pi-5-details2-pic01.png]]<br><br>
7) 点击 Click '''Turn Bluetooth On''' 可以打开蓝牙to turn on Bluetooth<br><br>
[[Image:Pi-5-details2-pic02.png]]<br><br>
8) 打开蓝牙后的显示如下所示The display after turning on Bluetooth is as follows<br><br>
[[Image:Pi-5-details2-pic03.png]]<br><br>
9) 蓝牙的测试方法请参看For the test method of Bluetooth, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#蓝牙使用方法 How to use Bluetooth | 蓝牙使用方法the section on Bluetooth usage]]</span>一节,这里不再赘述, so I won’t go into details here<br><br>
'''2、RTL8811 测试2.RTL8811 test'''<br><br>1) 首先将 First insert the RTL8811 无线网卡模块插入开发板的 wireless network card module into the USB 接口中interface of the development board<br><br>2) 然后 Then the linux 系统会自动加载 system will automatically load the kernel module related to RTL8811 WIFI 相关的内核模块,通过 , through the lsmod 命令可以看到下面内核模块已自动加载command, you can see that the following kernel module has been automatically loaded<br>
{| class="wikitable" style="width:800px;"
|-
|}
|}
3) 通过 Through the dmesg 命令可以看到 command, you can see the loading information of the RTL8811 模块的加载信息module<br>
{| class="wikitable" style="width:800px;"
|-
[ 119.500530] usbcore: registered new interface driver rtl8821cu
|}
4) 然后通过 '''Then, you can see the WIFI device node through the sudo ifconfig''' 命令可以看到 command. For the WIFI 的设备节点,WIFI 的连接和测试方法请参看 connection and test method, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 connection test | the WIFI 连接测试connection test section]]</span>一节,这里不再赘述, which will not be repeated here<br>
{| class="wikitable" style="width:800px;"
|-
|}
'''3、RTL8821CU 测试3.RTL8821CU test'''<br><br>1) 首先将 First insert the rtl8821cu 无线网卡模块插入开发板的 wireless network card module into the usb 接口中interface of the development board<br><br>2) 然后使用 '''Then use the lsusb''' 命令就可以看到 command to see the device information of the rtl8821cu usb wifi 模块的设备信息,请确保 USB模块没有处于 module, please make sure that the USB module is not in Driver CDROM Mode<br>
{| class="wikitable" style="width:800px;"
|-
|-
|orangepi@orangepi:~$ '''lsusb | grep "Realtek"'''<br>
Bus 002 Device 002: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter '''<span style="color:#0066CC;">(Driver CDROM Mode)</span>'''<br><br>
|}
3) The linux 系统会自动加载 system will automatically load the rtl8821cu 蓝牙和 bluetooth and wifi 相关的内核模块,通过 related kernel modules, through the lsmod 命令可以看到下面内核模块已自动加载command, you can see that the following kernel modules have been automatically loaded<br>
{| class="wikitable" style="width:800px;"
|-
|}
|}
4) 通过 Through the dmesg 命令可以看到 command, you can see the loading information of the rtl8821cu 模块的加载信息module<br>
{| class="wikitable" style="width:800px;"
|-
[ 59.280119] rtl8821cu 2-1:1.2 wlx90de80521825: renamed from wlan0
|}
5) 然后通过 Then you can see the device node of rtl8821cu wifi through the '''sudo ifconfig''' 命令可以看到 rtl8821cu command. For the wifi 的设备节点,wifi 的连接和测试方法请参看 connection and test method, please refer to the section of <span style="color:#0066CC;">[[Orange Pi 5 detail#查询 WIFI 连接测试 connection test | WIFI 连接测试connection test]]</span>一节,这里不再赘述, which will not be repeated here<br>
{| class="wikitable" style="width:800px;"
|-
TX packets 0 bytes 0 (0.0 B)
|}
6) 然后通过 '''Then you can see the USB Bluetooth device through the hciconfig''' 命令可以看到 USB 的蓝牙设备command<br>
{| class="wikitable" style="width:800px;"
|-
TX bytes:23307 acl:0 sco:0 commands:125 errors:0
|}
7) 在桌面中也可以看到出现了蓝牙图标,此时蓝牙还未打开,所以会显示一个红色的 You can also see the bluetooth icon on the desktop. At this time, the bluetooth is not turned on, so a red '''<span style="color:#FF0000">x</span>'''will be displayed<br><br>
[[Image:Pi-5-details2-pic04.png]]<br><br>
8) 点击 Click '''Turn Bluetooth On 可以打开蓝牙''' to turn on Bluetooth<br><br>
[[Image:Pi-5-details2-pic05.png]]<br><br>
9) 打开蓝牙后的显示如下所示The display after turning on Bluetooth is as follows<br><br>
[[Image:Pi-5-details2-pic06.png]]<br><br>
=== 查询 USB 摄像头测试 camera test ===1) 首先需要准备一个下图所示的或者类似的支持 First, you need to prepare a USB camera that supports UVC 协议的 protocol as shown in the figure below or similar, and then insert the USB 摄像头,然后将USB 摄像头插入到 camera into the USB port of the Orange Pi 开发板的 USB 接口中development board<br><br>
[[Image:Pi-5-details2-pic07.png]]<br><br>
2) 通过 Through the v4l2-ctl 命令可以看到 command, you can see that the device node information of the USB 摄像头的设备节点信息为camera is '''/dev/video0'''<br>
{| class="wikitable" style="width:800px;"
|-
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
|-
|注意 '''Note that the l in v4l2''' 中的 '''l''' 是小写字母 '''is a lowercase letter l''',不是数字 ''', not the number 1.'''。<br><br>
|}
3) 在桌面系统中可以使用 In the desktop system, Cheese 直接打开 can be used to directly open the USB 摄像头,Cheese 打开方法如下图所示:camera. The method of opening Cheese is shown in the figure below.:<br><br>
[[Image:Pi-5-details2-pic08.png]]<br><br>
The interface after Cheese 打开 turns on the USB 摄像头后的界面如下图所示:camera is shown in the figure below:<br><br>
[[Image:Pi-5-details2-pic09.png]]<br><br>
4) 使用 Method of using fswebcam 测试 to test USB 摄像头的方法camera<br>a. 安装 Install fswebcam
{| class="wikitable" style="width:800px;"
|-
orangepi@orangepi:~$ '''sudo apt-get install -y fswebcam'''
|}
b. 安装完 After installing fswebcam 后可以使用下面的命令来拍照, you can use the following command to take pictures<br>a) -d 选项用于指定 option is used to specify the device node of the USB 摄像头的设备节点camera<br>b) --no-banner 用于去除照片的水印is used to remove the watermark of the photo<br>c) The -r 选项用于指定照片的分辨率option is used to specify the resolution of the photo<br>d) The -S 选项用设置于跳过前面的帧数option is used to set the number of previous frames to skip <br>e) ./image.jpg 用于设置生成的照片的名字和路径is used to set the name and path of the generated photo<br>
{| class="wikitable" style="width:800px;"
|-
'''--no-banner -r 1280x720 -S 5 ./image.jpg'''
|}
c. 在服务器版的 In the server version of the linux 系统中,拍完照后可以使用 system, you can use the scp 命令将拍好的图片传到Ubuntu command to transfer the taken pictures to the Ubuntu PC 上镜像观看for image viewing after taking pictures<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''scp image.jpg [email protected]:/home/test'''(根据实际情况修改 ( '''Modify the IP 地址和路径)address and path according to the actual situation''')
|}
d. 在桌面版的 In the desktop version of the linux 系统中,可以通过 system, you can directly view the captured pictures through the HDMI 显示器直接查看拍摄的图片display<br>
=== 查询 在桌面系统中测试音频方法 Testing audio methods on desktop systems ===1) 首先打开文件管理器First open the file manager<br><br>
[[Image:Pi-5-details2-pic10.png]]<br><br>
2) 然后找到下面这个文件(如果系统中没有这个音频文件,可以自己上传一个音频文件到系统中)Then find the following file (if there is no audio file in the system, you can upload an audio file to the system yourself)<br><br>
[[Image:Pi-5-details2-pic11.png]]<br><br>
3) 然后选中 Then select the audio.wav 文件,右键选择使用 file, right click and select open with vlc 打开就可以开始播放to start playing<br><br>
[[Image:Pi-5-details2-pic12.png]]<br><br>
4) 换 How to switch between different audio devices such as HDMI 播放和耳机播放等不同音频设备的方法playback and headphone playback<br>a. 首先打开音量控制界面First open the volume control interface<br><br>
[[Image:Pi-5-details2-pic13.png]]<br><br>
b. 播放音频的时候,在 When playing audio, the audio device options that the '''Playbackplayback''' 中会显示播放软件可以使用的音频设备选项, 如下图所示,在这里可以设置需要播放到哪个音频设备software can use will be displayed in Playback, as shown in the figure below, where you can set which audio device to play to<br><br>
[[Image:Pi-5-details2-pic14.png]]<br><br>
=== 查询 使用命令播放音频的方法 The method of using commands to play audio ==='''1、耳机接口播放音频测试1.Headphone interface playback audio test'''<br><br>1) 首先将耳机插入开发板的耳机孔中First insert the earphone into the earphone jack of the development board<br><br>
[[Image:Pi-5-details2-pic15.png]]<br><br>
2) 然后可以通过 '''Then you can use the aplay -l''' 命令可以查看下 command to view the sound card devices supported by the linux 系统支持的声卡设备,从下面的输出可知,'''system. From the output below, we can see that card 2''' 为 is the sound card device of es8388 的声卡设备,也就是耳机的声卡设备, that is, the sound card device of the headset<br>
{| class="wikitable" style="width:800px;"
|-
<span style="color:#0066CC;">Subdevices: 1/1</span>
|}
3) 然后使用 '''Then use the aplay''' 命令播放下系统自带的音频文件,如果耳机能听到声音说明硬件能正常使用command to play the audio file that comes with the system. If the earphone can hear the sound, it means that the hardware can be used normally.<br>
{| class="wikitable" style="width:800px;"
|-
|}
'''2、HDMI 音频播放测试2.HDMI audio playback test'''<br><br>1) 首先使用 First use the HDMI 转 to HDMI 线将 cable to connect the Orange Pi 开发板连接到电视机上(其他的 development board to the TV (other HDMI 显示器需要确保可以播放音频)monitors need to ensure that they can play audio)<br><br>2) 然后查看下 Then check the serial number of the HDMI 的声卡序号,从下面的输出可以知道 sound card. From the output below, you can know that the HDMI 的声卡为 '''sound card is card 1'''<br>
{| class="wikitable" style="width:800px;"
|-
card 2: rockchipes8388 [rockchip-es8388], device 0: dailink-multicodecs ES8323.6-0010-0 [dailink-multicodecs
|}
3) 然后使用 '''Then use the aplay''' 命令播放下系统自带的音频文件,如果 command to play the audio file that comes with the system. If the HDMI 显示器或者电视能听到声音说明硬件能正常使用monitor or TV can hear the sound, it means that the hardware can be used normally<br>
{| class="wikitable" style="width:800px;"
|-
|}
=== 查询 使用命令测试录音的方法 Method of using commands to test recording ===1) 开发板上有板载 MIC,位置如下所示:There is an onboard MIC on the development board, the location is as follows:<br><br>
[[Image:Pi-5-details2-pic16.png]]<br><br>
2) 运行 Running the '''test_record.sh main''' 命令会通过板载 command will record a piece of audio through the onboard MIC 录制一段音频,然后播放到 , and then play it to HDMI 和耳机。and headphones<br>
{| class="wikitable" style="width:800px;"
|-
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
|}
3) 除了板载 MIC,我们还可以通过带 In addition to the onboard MIC 功能的耳机来录制音频。将带 , we can also record audio through headphones with MIC 功能的耳机插入开发板后,运行 function. After inserting the headset with MIC function into the development board, run the '''test_record.sh headset''' 命令会通过耳机录制一段音频, 然后播放到 command to record a piece of audio through the headset, and then play it to HDMI 和耳机。and the headset.<br>
{| class="wikitable" style="width:800px;"
|-
|}
=== 26 Pin 接口引脚说明 Interface Pin Description ===1) Please refer to the figure below for the order of the 26 pin interface pins on the Orange Pi 5 开发板 26 pin 接口引脚的顺序请参考下图development board<br><br>
[[Image:Pi-5-details2-pic17.png]]<br><br>
2) The functions of the 26 pin interface pins on the Orange Pi 5 开发板 26 pin 接口引脚的功能如下表所示development board are shown in the table below<br>a. 下面是 The following is the complete pin diagram of 26pin 完整的引脚图<br><br>
[[Image:Pi-5-details2-pic18.png]]<br><br>
b. 下面的表格是上面完整表格左半边部分的图,能看得清楚点The table below is the picture of the left half of the complete table above, so you can see it clearly<br><br>
[[Image:Pi-5-details2-pic19.png]]<br><br>
c. 下面的表格是上面完整表格右半边部分的图,能看得清楚点The table below is the picture of the right half of the complete table above, so you can see it clearly<br><br>
[[Image:Pi-5-details2-pic20.png]]<br><br>
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
| <br><big>'''上面表格中 The pwm 都标出了对应的寄存器的基地址,在查看in the above table has marked the base address of the corresponding register, which is useful when checking which pwmchip in /sys/class/pwm/中哪个 pwmchip 对应 26pin 排针中哪个 corresponds to which pwm 引脚时很有用。'''</big><br><br>|}3) pin in the 26pin 接口中总共有 17 个 GPIO 口,所有 GPIO 口的电压都是 '''3.3v'''<br><br><br>{| class="wikitable" style="width:800px;" |-| <br><big>'''关于Linux系统使用说明更详细的资料,你可以在<span style="color:#0066CC;">[http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-pi-5header.html Orange Pi 5用户手册]</span>中查阅。'''</big><br><br>
|}
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>
== Android '''Instructions for the use of the android 12 系统的使用说明 system''' ===== 已支持的 Android 版本 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;"
|-
| Android 版本 Chip model || 内核版本Function |-| Android 12 VID&PID || Linux5.10|-| Android 12 Box || Linux5.10|} === Android 功能适配情况 ==={| class="wikitable" style="width:800px;"|-| 功能 || Android 12 || Android12 Box|-| USB2.0x2 || OK || OK|-| USB3.0x1 || OK || OKAdaptation
|-
| USB Type-C 3RTL8821CU || 2.4G +5G WIFI+BT 4.0 2 || OK 0bda:c820 || OK'''<span style="color:#FF0000">Only support wifi, Bluetooth needs to be adapted</span>'''
|-
| DP 显示 RTL8723BU || OK 2.4G WIFI+BT4.0 || OK0bda:b720 || '''<span style="color:#FF0000">Only support wifi, Bluetooth needs to be adapted</span>'''
|-
|}
2) 上面三款 The picture of the above three USB 无线网卡的图片如下所示:wireless network cards is shown below:<br>a. The picture of the RTL8821CU USB 无线网卡模块的图片如下所示:wireless network card module is shown below:<br><br>
[[Image:Pi-5-details2-pic21.png]]<br><br>
b. The pictures of the RTL8723BU USB 无线网卡模块的图片如下所示:wireless network card module are shown below:<br><br>
[[Image:Pi-5-details2-pic22.png]]<br><br>
c. The picture of the RTL8811CU USB 无线网卡模块的图片如下所示:wireless network card module is shown below:<br><br>
[[Image:Pi-5-details2-pic23.png]]<br><br>
3) 以上 The test methods of the USB wireless network cards of the above 3 种型号的 USB 无线网卡的测试方法都是相同的,首先需要将 models are the same. First, insert the USB 网卡插入开发板的 network card into the USB 接口<br><br>4) 然后 WIFI 的连接和测试方法请参考 <span style="color:#0066CC;">[[Orange Pi 5 detail#WIFI 的连接测试方法 | WIFI 的连接测试方法]]</span>一节<br><br>5) 蓝牙的测试请参考<span style="color:#0066CC;">[[Orange Pi 5 detail#蓝牙的测试方法 | 蓝牙的测试方法]]</span>一节<br><br> === AP6275P PCIe 网卡的使用方法 ===1) 首先需要购买一个下图所示的 AP6275P PCIe 网卡interface of the development board, and then enter '''Setting'''<br><br>
[[Image:Pi-5-details2-pic24.png]]<br><br>
[[Image:Pi-5-details2-pic25.png]]<br><br>
[[Image:Pi-5-details2-pic26.png]]<br><br>
[[Image:Pi-5-details2-pic27.png]]<br><br>
[[Image:Pi-5-details2-pic28.png]]<br><br>
[[Image:Pi-5-details2-pic29.png]]<br><br>
[[Image:Pi-5-details2-pic30.png]]<br><br>
[[Image:Pi-5-details2-pic31.png]]<br><br>
[[Image:Pi-5-details2-pic32.png]]<br><br>
[[Image:Pi-5-details2-pic33.png]]<br><br>
[[Image:Pi-5-details2-pic34.png]]<br><br>
[[Image:Pi-5-details2-pic35.png]]<br><br>
[[Image:Pi-5-details2-pic36.png]]<br><br>
[[Image:Pi-5-details2-pic37.png]]<br><br>
[[Image:Pi-5-details2-pic38.png]]<br><br>
[[Image:Pi-5-details2-pic39.png]]<br><br>
[[Image:Pi-5-details2-pic40.png]]<br><br>
[[Image:Pi-5-details2-pic41.png]]<br><br>
[[Image:Pi-5-details2-pic42.png]]<br><br>
[[Image:Pi-5-details2-pic43.png]]<br><br>
[[Image:Pi-5-details2-pic44.png]]<br><br>
[[Image:Pi-5-details2-pic45.png]]<br><br>
[[Image:Pi-5-details2-pic46.png]]<br><br>
[[Image:Pi-5-details2-pic47.png]]<br><br>
[[Image:Pi-5-details2-pic48.png]]<br><br>
[[Image:Pi-5-details2-pic49.png]]<br><br>
[[Image:Pi-5-details2-pic50.png]]<br><br>
[[Image:Pi-5-details2-pic51.png]]<br><br>
[[Image:Pi-5-details2-pic52.png]]<br><br>
[[Image:Pi-5-details2-pic53.png]]<br><br>
[[Image:Pi-5-details2-pic54.png]]<br><br>
[[Image:Pi-5-details2-pic55.png]]<br><br>
[[Image:Pi-5-details2-pic56.png]]<br><br>
[[Image:Pi-5-details2-pic59.png]]<br><br>
[[Image:Pi-5-details2-pic60.png]]<br><br>
[[Image:Pi-5-details2-pic61.png]]<br><br>
[[Image:Pi-5-details2-pic62.png]]<br><br>