跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
Mcuzone Wiki
搜索
搜索
外观
登录
个人工具
登录
查看“︁4004 R5S R5C R6S R6C 4G WiFi EN”︁的源代码
页面
讨论
大陆简体
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
特殊页面
页面信息
外观
移至侧栏
隐藏
←
4004 R5S R5C R6S R6C 4G WiFi EN
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
[[4004 R5S R5C R6S R6C 4G WiFi|切换语言为中文]] == '''Keywords''' == FriendlyElec NanoPi R5S, R5C, R6S, R6C, RK3568B2, RK3588S, USB3.2, M.2 NVME, WiFi6, 4G LTE, FriendlyWrt, OpenWrt, Debian, Ubuntu == '''I. Introduction''' == By leveraging the NanoPi R5S/R6C's PCIe M.2 M-KEY NVMe SSD interface, we can expand it into various interfaces, combining multi-network ports, lightweight NAS, and video playback in one compact system. Perfect for IoT development, tinkering, and creative exploration, it unlocks endless possibilities for unique projects. NanoPi R5S (abbreviated as "R5S") is a development board designed by the FriendlyElec team, featuring three network ports (dual 2.5G Ethernet + Gigabit Ethernet). It uses the Rockchip RK3568B2 as its main processor, equipped with 4GB LPDDR4x RAM and 32GB eMMC flash storage. It also supports booting from a TF card and running OSs like FriendlyWrt. The R5S features a rich set of interfaces with a compact layout, and its motherboard measures only 90x62mm. It can be paired with an integrated CNC-machined aluminum oxide shell. It features one HDMI output port and can run OSs such as Android, Buildroot, and Ubuntu Desktop, as well as serve as a command-line mode favored by geeks. It also supports decoding and playback of 4K60p H.265/H.264 videos. The NanoPi R5C is a streamlined version of the R5S, with a built-in Wi-Fi interface and support for external 4G module expansion. NanoPi R6C (abbreviated as "R6C") is an open-source, high-performance all-in-one edge computing platform designed and produced by the FriendlyElec team. It features dual network ports, including a 2.5G and a Gigabit Ethernet port. Powered by the Rockchip RK3588S as its main processor, it comes with 4GB/8GB LPDDR4x RAM and optional 32GB eMMC flash storage. The device supports multiple OSs, including FriendlyWrt, Android, Debian, and Ubuntu, and offers GPU and VPU acceleration. The R6C features a rich set of interfaces and a compact layout, with a motherboard size of only 90x62 mm. It comes with a 30-pin GPIO, including general-purpose I/O ports, I2C, I2S, PWM, and SPI interfaces. Additionally, it is equipped with an HDMI output port capable of decoding and playing videos in formats up to 8K@60fps H.265/VP9, as well as 8K@30fps H.264. For developers' convenience, the R6C also comes with a built-in USB-to-serial converter and is equipped with a USB Type-C port. The R6C also comes with one M.2 NVMe SSD slot, one USB 3.0 port, and one USB 2.0 port, and supports the currently popular PD fast charging (USB-C port), eliminating concerns about insufficient power when connecting external hard drives. Additionally, an optional integrated CNC-machined aluminum oxide shell is available for installation. == '''II. Extended peripherals''' == === 2.1. NVMe to WiFi6 adapter board === This adapter board converts the PCIe M.2 M-Key interface for hard drives on the R5S/R6C into an M.2 A-Key WiFi interface. In terms of hardware, it can be used to connect WiFi6 modules such as the MT7922, MT7921K, AX210, and AX200. It also supports WiFi5 modules like the Intel 8265C, and it can even connect to Google's Coral TPU module, the R5S can recognize the TPU device. The hardware requires corresponding drivers in the OS to function. The latest OS for Nano Pi supports the MT7922 and MT7921. The adapter board is 2.9mm thick and can be fully embedded inside the R5S device without the need to replace the base. The adapter board reserves the USB Bluetooth interface for the WiFi module, with a 1.25mm-4P connector. To use Bluetooth, this interface needs to be connected to the USB port of the R5S, and Bluetooth drivers and applications are required. If Bluetooth is used, its thickness of 4.2mm makes it incompatible with the original R5S dock. You can choose to equip a 3D mounting bracket to raise the dock or replace the dock altogether. '''''This adapter board is compatible with three models: NanoPi R5S, R6C, and M6.''''' http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_68.jpg === 2.2. NVMe to dual WiFi6 adapter board === This adapter board utilizes a switch chip to split the PCIe interface of the R5S's M.2 M-KEY SSD slot into two channels, expanding the original SSD slot into two M.2 A-KEY interfaces. In terms of hardware, these interfaces can be used to connect WiFi6 modules such as the MT7922, MT7921K, AX210, or AX200, as well as WiFi5 modules like the Intel 8265C. The hardware requires corresponding drivers in the OS to function. The latest FriendlyElec's OSs for Nano Pi supports MT7922 and MT7921K, which can function as a wireless repeater—one WiFi connects to the upstream router, and another WiFi acts as an AP to share the hotspot. The adapter board reserves a USB Bluetooth interface for the WiFi module itself, with a 1.25mm-4P connector. If Bluetooth functionality is required, this interface needs to be connected to the USB port of the R5S, along with the necessary Bluetooth drivers and applications. The thickness of the adapter plate is 4.2mm, it needs to be used with a 3D fixing frame, and the original CNC shell base of the R5S machine can still be utilized. '''''This adapter board is compatible with two models: NanoPi R5S, R6C.''''' http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_62.jpg === 2.3. NVMe to SSD+WiFi7 adapter board === This adapter board utilizes a switch chip to split the PCIe interface of the R5S's M.2 M-KEY SSD slot into two channels, expanding the original SSD slot into one SSD interface and one M.2 E-KEY WiFi7 interface. The SSD interface supports NVMe SSDs in 2242/2280 sizes, with the 2280 mounting post pre-soldered by default. The M.2 E-Key interface can be used to connect WiFi7, such as the BE200 and MT7925, as well as WiFi6 devices like the MT7922, MT7921K, AX210, and AX200. It also supports WiFi 5 modules, such as the Intel 8265C. The hardware requires corresponding drivers in the OS to function properly. The latest FriendlyElec's OSs for Nano Pi supports MT7922 and MT7921K. The adapter board reserves the USB Bluetooth interface for the WiFi module, featuring a 1.25mm-4P connector. To use Bluetooth, this interface must be connected to the USB port of the R5S, and Bluetooth drivers and applications are required. The thickness of the adapter plate is 4.2mm; when used with the 3D mounting frame, it remains compatible with the machine's original CNC enclosure base. '''''This adapter board is compatible with two models: NanoPi R5S, R6C.''''' http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_63.jpg === 2.4. NVMe to WiFi6+4G adapter board (with fixing holes) === This adapter board converts the R5S's hard drive interface from PCIe M.2 M-KEY to M.2 A-KEY WiFi6, while also adding mounting holes for a 4G module. The M.2 A-KEY interface can be used to connect WiFi6 modules such as the MT7922, MT7921K, AX210, and AX200. It can also support WiFi5 modules like the Intel 8265C, and even Google's Coral TPU module, which can be detected by the R5S. For the hardware to function, the corresponding drivers must be available in the system. The latest system from Nano Pi supports the MT7922 and MT7921K. The adapter board reserves the USB Bluetooth interface for the WiFi module, with a 1.25mm-4P connector. If Bluetooth functionality is required, this interface must be connected to the USB port of the R5S/R6C, along with the necessary Bluetooth drivers and applications. The 4G fixing hole is designed for our company's CM4 4G mini module. The 4G module is a USB device, which connects to the USB port of the R5S machine via a 1.25 4p USB cable. The latest FriendlyElec's OSs for Nano Pi supports 4G, offering plug-and-play functionality with auto-identification, eliminating the need for additional drivers. '''''This adapter board is compatible with two models: NanoPi R5S, R6C.''''' http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_64.jpg This adapter board converts the R5S's PCIe M.2 M-KEY hard drive interface into a USB port, connects the USB to 4G, and features an onboard Nano SIM card slot. The latest FriendlyElec's OSs for Nano Pi supports 4G, supports 4G with plug-and-play functionality, auto-identification without the need for additional drivers. '''''This adapter board is compatible with two models: NanoPi R5S, R6C.'''''http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_65.jpg === 2.6. 4G carrier board === ==== 2.6.1 The 4G carrier board for R5S/R6C/R6S ==== This is a carrier board designed for the R5S based on our company's CM4 4G mini module. It can be assembled at the bottom of the R5S. The 4G module is a USB device connected to the USB port of the R5S via a 1.25mm 4-pin USB cable. Both the latest FriendlyElec's OSs and the newest iStore OS support 4G connectivity. '''''This adapter board is compatible with three models: NanoPi R5S, R6C, and R6S.''''' http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_130.jpg ==== 2.6.2 The 4G carrier board for R5C ==== Based on our company's CM4 4G mini module, we have designed a 4G carrier board compatible with the R5C, and redesigned a 3D-printed base to replace the original R5C shell base, integrating the 4G antenna internally. The 4G module is driver-free and auto-identification in both the latest FriendlyElec's OSs and the newest iStore OS, requiring no additional driver installation. http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_67.jpg === 2.7. Note for 4G === Our company offers multiple 4G models. Under FriendWrt, the Qualcomm 4G/Qualcomm 4G-GPS module and NL668-EU/EAU/AM 4G module and the R5S can be auto-identification upon startup when assembled together. However, other modules such as the CAT4 4G/ZTE CAT4/ZTE CAT4-EU module need to be inserted after FriendWrt has booted up. Otherwise, the network interface order may become disordered due to the 4G module being recognized earlier than the network card, which could prevent access to the backend. == '''III. Work with FriendlyWrt''' == No matter which adapter board is used, the operation methods for 4G and WiFi are the same. ▶ The 4G modules used are Qualcomm 4G/Qualcomm 4G-GPS, NL668-EU/EAU/AM 4G, CAT4 4G/ZTE CAT4/ZTE CAT4-EU. The 4G modules are driver-free, meaning the firmware comes with built-in drivers and is auto-identification, requiring no additional driver installation. http://www.mcuzone.com/wiki/3007_CM4_4G_Mini/3007_CM4_4G_Mini_59.jpg http://www.mcuzone.com/wiki/3007_CM4_4G_Mini/3007_CM4_4G_Mini_75.jpg ▶ The WiFi module used is the MT7922, whose driver is the same as that of the MT7921K. The WiFi module requires firmware with a driver to enable WiFi functionality. The WiFi module can operate in AP mode (as a wireless hotspot). In this mode, the 4G module serves as the WAN, while the WiFi acts as the LAN (wireless hotspot), providing wireless internet access for other devices. ▶ R5S/R5C: The tested FriendlyWrt's version is: rk3568-eflasher-friendlywrt-23.05-20241112.img.gz, and boot from the eMMC. You can download it in: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5S/zh#.E4.B8.8B.E8.BD.BD.E5.9B.BA.E4.BB.B6 ▶ R6S/R6C: The tested FriendlyWrt's version is: rk3588-eflasher-friendlywrt-23.05-20241112.img.gz, and boot from the eMMC. You can download it in: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R6C/zh#.E4.B8.8B.E8.BD.BD.E5.9B.BA.E4.BB.B6 === 3.1 The operation of the 4G module === ==== 3.1.1 Identify the 4G module ==== The 4G module is used as the WAN port in the FriendlyWrt. Connect the LAN port of the R5S/R5C/R6S/R6C to the PC's Ethernet port using a network cable. Power on the OS, then open the browser on the PC and navigate to 192.168.2.1 to access the FriendlyWrt's backend page (default username: <code>root</code>, password: <code>password</code>). Click on "Services - Terminal," then log in to the terminal: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_69.jpg The default username is <code>root</code>, and the password is the "<code>password</code>": http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_70.jpg Execute <code>ip addr</code>, and the result is as follows, usb0 is the Qualcomm 4G (or Qualcomm 4G-GPS, or NL668-EU/EAU/AM 4G): http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_71.jpg If it is a CAT4 4G/ZTE CAT4/ZTE CAT4-EU module, it will be recognized as eth3 or eth2 (depending on the number of wired network ports on the device), as shown in the figure below: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_72.jpg '''''Note 1: The numbering of eth interfaces is based on the number of the device's own network ports, starting from 0. For example, the R5S has 3 network ports, so its own ports are numbered eth0, eth1, and eth2, and the 4G interface will be eth3. For the R5C/R6C, which have 2 network ports, the device's own ports are eth0 and eth1, and the 4G interface will be recognized as eth2.''''' '''''Note 2: Modules such as the CAT4 4G must be inserted into the USB port only after the FriendlyWrt system has fully booted. Otherwise, the computer will not be able to obtain the correct IP address, making it impossible to access the FriendlyWrt backend configuration page.''''' '''''Note 3: If you are using third-party firmware and the <code>eth</code> or <code>usb0</code> device does not appear in the terminal, it means the firmware was not compiled with the 4G driver, and thus 4G cannot be used. In this case, you will need to replace the firmware.''''' ==== 3.1.2 Set the 4G module as WAN ==== Click "Network - Interfaces" - "Add new interface...": <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_73.jpg" width=700></html> Configure as shown in the figure (the "Name" can be customized), Device selection: "usb0" (Qualcomm 4G/Qualcomm 4G-GPS, or NL668-EU/EAU/AM 4G) or "eth3" (or "eth2", varying based on the number of wired network ports on the device, CAT4 4G/ZTE CAT4/ZTE CAT4-EU), then click "Create Interface". <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_74.jpg" width=700></html> In the "Firewall Settings", set "Create/Assign firewall-zone" to "wan", then click "Save": http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_108.jpg Return to the previous page, click "Save & Apply": <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_76.jpg" width=700></html> After a short wait, we can see that the 4G module has obtained an IP address: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_77.jpg Then we return to the terminal and execute <code>ifconfig -a</code>(or <code>ifconfig -a eth3</code>), with the following result: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_78.jpg Pinging the domain name is successful, and the 4G module is working normally: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_79.jpg Now that the PC is online, we can run a speed test on the [https://www.speedtest.cn/ speed test website]: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_80.jpg '''''Note: Network speed tests are affected by the network environment and testing methods. Please refer to the actual speed, as this test is for reference only.''''' ==== 3.1.3 AT command operations ==== If you want to perform AT command operations on the 4G module, you first need to download a serial port tool. The steps are as follows: Click on "System - Software: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_81.jpg Click on "Update lists..." button on the Software page: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_82.jpg" width=700></html> After the update is complete, enter "minicom" in the "Download and install package" field and click the OK button. Then click the "Install" button, wait a moment for the installation to complete, and click the "Dismiss" button to finish: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_83.jpg <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_84.jpg" width=700></html> Now we can view minicom's software details on the "Installed" page: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_85.jpg" width=700></html> Click on "Services - Terminal," then log in to the terminal. Taking the Qualcomm 4G module as an example, execute the command <code>lsusb</code> in the terminal, as shown in the figure below: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_86.jpg Record the ID value of the 4G module: 05c6 90b6. Use the following command to open the ttyUSB serial port, where the value after echo is the ID recorded above: <code>modprobe option</code> <code>sh -c 'echo 05c6 90b6 > /sys/bus/usb-serial/drivers/option1/new_id'</code> After execution is complete, execute: <code>ls /dev/ttyUSB*</code> Now you should be able to see three devices under the dev directory: ttyUSB0 through ttyUSB2: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_87.jpg Open the AT command serial port through minicom: <code>minicom -D /dev/ttyUSB0</code> (Note: The selection of which serial port to use should be based on entering the port and being able to input AT commands without garbled characters or erratic results.) The first time you enter an AT command, there may be no echo. If you then type <code>at</code> and press Enter, and it returns "OK," it means the system is working properly. If you need to check the echo, type the command: <code>ATE1</code>, then press Enter. Continue typing other commands and press Enter to see the echo. http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_88.jpg {{ATCOMM_EN}} ==== 3.1.4 Modify the 4G IP address ==== If the default 4G IP address assigned at the factory conflicts with the IP address being used by the user, or if there is a need to modify the IP address, you can change the 4G module's IP. '''Qualcomm 4G/Qualcomm 4G-GPS/NL668-EU/NL668-EAU/NL668-AM, ZTE CAT4 4G:''' Set the 4G module's IP to directly obtain a public IP. Please execute the AT command: Set the IP to public: <code>AT+GTIPPASS=1</code> Set the IP to private: <code>AT+GTIPPASS=0</code> Check whether the current IP is a public or private IP: <code>AT+GTIPPASS?</code> After modifying the IP, a power cycle reboot is required for the changes to take effect. '''CAT4 4G:''' Execute the AT command: <code>AT+ROUTEIP=<newip></code> Note: only addresses in the format of 192.168.x.1 are supported. If you set <code>AT+ROUTEIP=192.168.3.1</code>, the final IP address obtained will be 192.168.3.100. After making the changes, you need to power off and restart the OS. Query current IP: <code>AT+ROUTEIP?</code>, it returns two values, the first one is the old IP, and the second one is the new IP. Test command: <code>AT+ROUTEIP=?</code> === 3.2 The operation of a single WiFi (WiFi as a wireless AP) === ==== 3.2.1 View WiFi information ==== Click on "Services - Terminal," then log in to the terminal. Execute <code>lspci</code> to check the information of the wireless module: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_106.jpg Execute <code>ifconfig wlan0</code> to check the network information of the wireless module: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_110.jpg ==== 3.2.2 Set up a wireless network ==== Click "'''Network - Wireless'''" to enter the wireless settings: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_89.jpg" style="border: 1px solid black;"></html> click the "'''Add'''" button next to "'''radio0'''", and the "Edit Wireless Network" page will pop up: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_90.jpg" style="border: 1px solid black;"></html> Please set the wireless channel in the "'''Device Configuration - General Setup - Operating frequency'''" section as shown below: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_91.jpg" style="border: 1px solid black;"></html> In the "'''Device Configuration - Advanced Settings'''" section, set the "'''Country Code'''" to US. <html><img src="http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_27.jpg" style="border: 1px solid black;"></html> Under "'''Interface Configuration - General Setup'''", enter the hotspot name (which can be customized) in the "'''ESSID'''" field, and check the "'''lan'''" option in the "'''Network'''" section. <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_92.jpg" style="border: 1px solid black;"></html> Click on "'''Interface Configuration - Wireless Security'''", then set the encryption type (e.g., "WPA2-PSK (strong security)") and the password: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_93.jpg" style="border: 1px solid black;"></html> '''''Note: Setting a key may result in the inability to connect to the wireless network. Therefore, if there is no specific need, it is recommended not to set a key, i.e., select "No Encryption (open network)".''''' Click on "'''Interface Configuration - Advanced Settings'''", enter "wlan1" (the name can be customized) in the "'''Interface name'''" field: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_109.jpg" width=700 style="border: 1px solid black;"></html> Then click "Save", return to the previous page, click "Save & Apply": <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_95.jpg" style="border: 1px solid black;"></html> Since a reboot is required for the changes to take effect, click "System - Reboot": <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_96.jpg" style="border: 1px solid black;"></html> If it keeps showing "Loading view", please manually power off and reboot. ==== 3.2.3 Set up operating frequency ==== After reboot, return to "'''Network - Wireless'''", click the "'''Disable'''" button in the red box to deactivate the default hotspot, as only one hotspot can be active at a time. <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_97.jpg" style="border: 1px solid black;"></html> Then click "'''Edit'''" for the newly created third wireless hotspot: <html><img src="http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_34.jpg" style="border: 1px solid black;"></html> In the "'''Device Configuration - General Setup - Operating frequency'''" section, set the wireless channel as shown below: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_99.jpg" style="border: 1px solid black;"></html> Then click "Save", return to the previous page, click "Save & Apply": <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_104.jpg" style="border: 1px solid black;"></html> After the page refreshes, we can see that this hotspot has been activated: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_101.jpg" style="border: 1px solid black;"></html> ==== 3.2.4 Connect to the hotspot and test the speed ==== You can connect to this hotspot using your mobile phone or other mobile devices: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_102.jpg" style="border: 1px solid black;"></html> In the previous section, the 4G module serves as the WAN, while the wireless hotspot acts as the LAN. Once a phone connects to it, it can access the internet via the 4G network through the wireless hotspot. After testing the speed on a [https://www.speedtest.cn/ speed test website], the results are as follows: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_103.jpg '''''Note: Network speed tests are affected by the network environment and testing methods. Please refer to the actual speed, as this test is for reference only.''''' === 3.3 The operation of dual WiFi === In the previous section, we used a single WiFi as a wireless AP. We can also insert two wireless network cards, one as a wireless AP (LAN) and the other to connect to the upstream wireless router (WAN). This way, devices like mobile phones can connect to the wireless AP and access the internet through the upstream's network via another network card. In the previous section, we have already set one network card as a wireless AP. Now, when inserting another wireless network card and navigating to "'''Network - Wireless'''", the display is as follows: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_133.jpg" width=640 style="border: 1px solid black;"></html> The red box indicates the newly added second wireless network card. Click the "Scan" button in the red box on the interface to scan the network: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_134.jpg" width=640 style="border: 1px solid black;"></html> Click the "Join Network" button next to the hotspot you want to connect to: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_135.jpg" width=640 style="border: 1px solid black;"></html> In the "Joining Network" configuration page, enter the key in the "WPA passphrase" field, keep the other settings as default, and click "Submit": <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_136.jpg" width=640 style="border: 1px solid black;"></html> Click "Interface Configuration - Advanced Settings", enter "wlan0" in the "Interface name" field, and then click "Save": <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_137.jpg" width=640 style="border: 1px solid black;"></html> Finally, click "Save & Apply": <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_138.jpg" width=640 style="border: 1px solid black;"></html> After a successful connection, you can view the IP address in "Network - Interfaces": <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_139.jpg" width=640 style="border: 1px solid black;"></html> We use devices such as mobile phones to connect to the hotspot set up in the previous section. Once connected, we can access the internet via the wireless hotspot, utilizing the network from the upstream router connected to the other wireless network card. In "Network - Wireless," you can view information about the mobile phone connecting to the wireless hotspot and the wireless network card connecting to the upstream router: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_140.jpg" width=640 style="border: 1px solid black;"></html> Internet speed test on mobile (the parent router has a 200M broadband connection, tested via: https://test.ustc.edu.cn/). Because the signal passes through two wireless network cards, the speed is noticeably reduced due to conversion losses: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_141.jpg" width=350 style="border: 1px solid black;"></html> <!--=== 3.3 NanoPi R6C的WiFi的操作 === 进入“服务 - 终端”,登录终端。 执行<code>lspci</code>,查看无线模块的信息: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_21.jpg 执行<code>ifconfig -a wlan0</code>,查看无线模块的网络信息: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_23.jpg 下面我们进行无线模块的设置。 点击 ”网络 - 无线“,进入无线设置: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_24.jpg 在界面上点击”Generic MAC80211 802.11ac/ax/b/g/n“后面的”添加“按钮,将会弹出”编辑无线网络“页面: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_25.jpg 在”设备配置 - 常规设置 - 工作频率“一栏中按下面所示的设置无线信道: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_26.jpg 在”设备配置 - 高级设置 - 工作频率“一栏中将国家代码设置为US: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_27.jpg 在”接口配置 - 常规设置“中,在”ESSID“一栏中,输入热点名称(可自定义名称),在”网络“一栏中,勾选”lan“,点击”无线安全“,设置加密类型 (例如”WPA2-PSK(强安全性)“)和密钥: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_28.jpg http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_29.jpg 点击“接口配置 - 高级设置”,在“接口名称”中输入“wlan1”(可自定义名称): http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_30.jpg 然后点击“保存”,自动返回上层页面,再点击“保存并应用”: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_31.jpg 由于需要重启才能生效,点击“系统 - 重启”: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_32.jpg 如果一直显示“正在载入视图”,请手动断电重启。 重启后回到”网络 - 无线“,点击第二个默认的Master模式后的“禁用”按钮: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_33.jpg 然后点击新建无线热点后的“编辑”按钮: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_34.jpg 在”设备配置 - 常规设置 - 工作频率“一栏中,按下面所示的设置无线信道: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_35.jpg 设置完毕后保存,自动返回上层页面,再点击“保存并应用”: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_36.jpg 待页面刷新后,我们可以看到这个热点已经激活,此时即可使用手机等设备去连接该热点: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_37.jpg http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_38.jpg 因为在上一节中已经设置好了4G上网,因此此时4G模块作为WAN,无线热点作为LAN,手机连接后即可通过无线热点,利用4G网络上网。 手机连接无线热点进行上网测速,测速网站<nowiki/>https://www.speedtest.cn/<nowiki/>: http://www.mcuzone.com/wiki/4007_R6C_4G/4007_R6C_4G_39.jpg '''''注意:网络测速受网络环境和测试方法影响,速度请以实际为准,本测试仅供参考。'''''--> == '''IV. Work with Debian OS''' == R5S/R5C: The tested Debian OS's version is: rk3568-eflasher-debian-bullseye-desktop-6.1-arm64-20250123.img.gz, and boot from the eMMC. You can download it in: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5S/zh#.E4.B8.8B.E8.BD.BD.E5.9B.BA.E4.BB.B6 R6S/R6C: The tested Debian OS's version is: rk3588-eflasher-debian-bullseye-desktop-6.1-arm64-20250123.img.gz, and boot from the eMMC. You can download it in: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R6C/zh#.E4.B8.8B.E8.BD.BD.E5.9B.BA.E4.BB.B6 The 4G modules included in this test are: Qualcomm 4G, CAT4 4G, and ZTE 4G. === 4.1 Qualcomm 4G module test === After the OS starts up, execute <code>ip addr</code> in the terminal: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_131.jpg" width=640></html> From the above image, we can see that the 4G module (usb0) has successfully obtained an IP address, and we can ping external network addresses, such as: <code>sudo ping www.mcuzone.com</code> http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_112.jpg It can also connect to the external network via the 4G module and access the [https://www.speedtest.cn/ speed test website] for testing, with the results as follows: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_113.jpg '''''Note: Network speed tests are affected by the network environment and testing methods. Please refer to the actual speed, as this test is for reference only.''''' === 4.2 CAT4 4G module test === After the OS starts up, execute <code>ip addr</code> in the terminal: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_114.jpg" width=640></html> From the above image, we can see that the 4G module (eth1, eth2, or eth3, depending on the number of wired network ports available on the device.) has successfully obtained an IP address, and we can ping external network addresses, such as: <code>sudo ping www.mcuzone.com</code> http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_115.jpg It can also connect to the external network via the 4G module and access the [https://www.speedtest.cn/ speed test website] for testing, with the results as follows: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_116.jpg '''''Note: Network speed tests are affected by the network environment and testing methods. Please refer to the actual speed, as this test is for reference only.''''' === 4.3 ZTE 4G module test === After the OS starts up, execute <code>ip addr</code> in the terminal: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_117.jpg" width=640></html> From the above image, we can see that the 4G module (eth3 or eth2, depending on the number of wired network ports available on the device.) has successfully obtained an IP address, and we can ping external network addresses, such as: <code>sudo ping www.mcuzone.com</code> http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_118.jpg It can also connect to the external network via the 4G module and access the [https://www.speedtest.cn/ speed test website] for testing, with the results as follows: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_119.jpg '''''Note: Network speed tests are affected by the network environment and testing methods. Please refer to the actual speed, as this test is for reference only.''''' == '''V. Work with Ubuntu OS''' == R5S/R5C: The tested Ubuntu OS's version is: rk3568-eflasher-ubuntu-focal-desktop-6.1-arm64-20250123.img.gz'''。'''烧写在eMMC内。 You can download it in: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5S/zh#.E4.B8.8B.E8.BD.BD.E5.9B.BA.E4.BB.B6 R6S/R6C: The tested Ubuntu OS's version is: rk3588-eflasher-ubuntu-noble-desktop-6.1-arm64-20250122.img.gz'''。'''烧写在eMMC内。 You can download it in: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R6C/zh#.E4.B8.8B.E8.BD.BD.E5.9B.BA.E4.BB.B6 The 4G modules included in this test are: Qualcomm 4G, CAT4 4G, and ZTE 4G. === 5.1 Qualcomm 4G module test === After the OS starts up, execute <code>ifconfig -a</code> in the terminal: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_132.jpg" width=640></html> From the above image, we can see that the 4G module (usb0) has successfully obtained an IP address, and we can ping external network addresses, such as: <code>sudo ping www.mcuzone.com</code> <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_121.jpg" width=640></html> It can also connect to the external network via the 4G module and access the [https://www.speedtest.cn/ speed test website] for testing, with the results as follows: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_122.jpg '''''Note: Network speed tests are affected by the network environment and testing methods. Please refer to the actual speed, as this test is for reference only.''''' === 5.2 CAT4 4G module test === After the OS starts up, execute <code>ifconfig -a</code> in the terminal: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_123.jpg" width=640></html> From the above image, we can see that the 4G module (eth1, eth2, or eth3, depending on the number of wired network ports available on the device.) has successfully obtained an IP address, and we can ping external network addresses, such as: <code>sudo ping www.mcuzone.com</code> <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_124.jpg" width=640></html> It can also connect to the external network via the 4G module and access the [https://www.speedtest.cn/ speed test website] for testing, with the results as follows: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_125.jpg '''''Note: Network speed tests are affected by the network environment and testing methods. Please refer to the actual speed, as this test is for reference only.''''' === 5.3 ZTE 4G module test === After the OS starts up, execute <code>ifconfig -a</code> in the terminal: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_126.jpg" width=640></html> From the above image, we can see that the 4G module (eth3 or eth2, depending on the number of wired network ports available on the device.) has successfully obtained an IP address, and we can ping external network addresses, such as: <code>sudo ping www.mcuzone.com</code> When executing the ping command, you may encounter a name server error: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_127.jpg" width=640></html> Connect the LAN port to the upstream router and install the DHCP software udhcpc: <code>sudo apt install udhcpc</code> After the installation is complete, unplug the network cable and execute: <code>sudo udhcpc -i eth3</code> Once the execution is finished, ping the external address, with the following result: <html><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_128.jpg" width=640></html> It can also connect to the external network via the 4G module and access the [https://www.speedtest.cn/ speed test website] for testing, with the results as follows: http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/4004_FriendlyElec_NanoPi_R5S_129.jpg '''''Note: Network speed tests are affected by the network environment and testing methods. Please refer to the actual speed, as this test is for reference only.''''' == '''VI. NanoPi 4G and WiFi selection guide''' == {| class="wikitable" !No. !NanoPi Model !CPU !'''Ethernet''' !'''Built-in 4G''' !'''Built-in WiFi''' !USB !'''Notes''' |- |1 |R2S PLUS |RK3328 |2 |CM4 CAT4/ CM4 Qualcomm 4G/NL668-EAU/EU/AM--USB |RTL8822(SDIO) |2 |1 USB left, after using 4G |- |2 |R3S |RK3566 |2 |CM4 Qualcomm 4G/NL668-EAU/EU/AM-USB |None |1 |No USB after using 4G |- |3 |R5C | rowspan="3" |RK3568B2 |2 |CM4 Qualcomm 4G/NL668-EAU/EU/AM-USB |MT7922/8822CE |2 |1 USB left, after using 4G |- | rowspan="2" |4 | rowspan="2" |R5S LTS | rowspan="2" |3 |CM4 Qualcomm 4G/NL668-EAU/EU/AM-USB |External MT7922/8822CE | rowspan="2" |2 |1 USB left ,after using 4G |- |Qualcomm 4G/NL668-EAU/EU/AM/ZTE CAT4-M.2 |None | |- | rowspan="2" |5 | rowspan="2" |R6C | rowspan="4" |RK3588S | rowspan="2" |2 |CM4 Qualcomm 4G/NL668-EAU/EU/AM-USB |External MT7922/8822CE | rowspan="2" |2 |1 USB left, after using 4G |- |Qualcomm 4G/NL668-EAU/EU/AM/ZTE CAT4-M.2 |None | |- |6 |M6 |1 |Qualcomm 4G/NL668-EAU/EU/AM/ZTE CAT4-M.2 |MT7922/8822CE |3 | |- |7 |R6S |3 |CM4 CAT4/Qualcomm 4G/NL668-EU/EAU / AM/ZTE CAT4-USB |None |2 |1 USB left ,after using 4G |- |8 |T6 (Ver. 2301) | rowspan="2" |RK3588 | rowspan="2" |2 |CAT4/Qualcomm 4G/NL668-EU/EAU/AM/ZTE CAT4(miniPCIe) |MT7922/8822CE |1 | |- |9 |T6 LTS |CM4 CAT4/Qualcomm 4G/NL668-EU/EAU/AM/ZTE CAT4-USB |MT7922/8822CE |3+2 |3+1 USB left, after using 4G |- |10 |R4S | rowspan="2" |RK3399 | rowspan="2" |2 |CM4 CAT4/Qualcomm 4G/NL668-EAU/EU/AM-USB |None |2+1 | |- |11 |R4SE |CM4 CAT4/Qualcomm 4G/NL668-EAU/EU/AM-USB |None |2 |1 USB left ,after using 4G |- |12 |Zero2 |RK3528A |1 |External CM4 CAT4/ Qualcomm 4G/NL668-EAU/EU/AM-USB |MT7922/8822CE |1 |No USB after using 4G |} == '''VII. Nano Pi selection guide''' == '''NanoPi Rockchip Platform Series Selection Guide. Click on the thumbnail to view the full-size image:''' <html><a href="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/rk_full.jpg" target="_blank"><img src="http://www.mcuzone.com/wiki/4004_FriendlyElec_NanoPi_R5S/rk_small.jpg" style="border: 1px solid black;"></a></html> == '''VIII. Summary''' == We only introduce the usage and operations for 4G module based on NanoPi R5S/R5C/R6C, without covering the operations and software system specific to the NanoPi R5S/R5C/R6C development board itself. For information about the NanoPi R5S boards, please visit the FriendlyElec's website: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5S/ For information about the NanoPi R5C boards, please visit the FriendlyElec's website: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5C/ For information about the NanoPi R6S boards, please visit the FriendlyElec's website: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R6S/ For information about the NanoPi R6C boards, please visit the FriendlyElec's website: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R6C/ {{Contact_Us_icon}}
该页面使用的模板:
模板:ATCOMM EN
(
查看源代码
)
模板:Contact Us icon
(
查看源代码
)
返回
4004 R5S R5C R6S R6C 4G WiFi EN
。