Changes

Jump to: navigation, search

Orange Pi 5 detail

874 bytes added, 15:39, 21 April 2023
查询 WIFI 连接测试
|}<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.''' 网络使用会有问题。
|}
'''1、服务器版镜像通过命令连接WIFI'''{| class="wikitable" style="width:800px;background-color:#ffffdc;"|-|当开发板没有连接以太网,没有连接 '''HDMI''' 显示器,只连接了串口时,推荐使用此小节演示的命令来连接 '''WIFI''' 网络。因为 '''nmtui''' 在某些串口软件(如 '''minicom''') 中只能显示字符,无法正常显示图形界面。当然,如果开发板连接了以太网或者'''HDMI''' 显示屏,也可以使用此小节演示的命令来连接 '''WIFI''' 网络的。|}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. 如果开发板连接好了调试串口,可以使用串口终端登录 linux 系统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 系统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) 首先使用 First use the '''nmcli dev wifi''' 命令扫描周围的 command to scan the surrounding WIFI 热点hotspots<br>
{| 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>
113) 然后输入 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>
124) 连接好 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>
135) 打开浏览器后如果能打开其他网页说明 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>

Navigation menu