Open main menu

Wiki-Orange Pi β

Changes

USB wireless network card test

10,008 bytes added, 15:55, 24 April 2023
Created page with "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, y..."
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 test'''<br><br>
1) First insert the RTL8723BU wireless network card module into the USB interface of the development board<br><br>
2) Then the linux system will automatically load the RTL8723BU bluetooth and WIFI-related kernel modules, through the lsmod command, you can see that the following kernel modules have been automatically loaded<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''lsmod'''
{| class="wikitable" style="width:800px;"
|-
| Module || Size || Used by
|-
| rfcomm || 57344 || 16
|-
| rtl8xxxu || 106496 || 0
|-
| rtk_btusb || 61440 || 0
|}
|}
3) Through the dmesg command, you can see the loading information of the RTL8723BU module<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''dmesg'''
|}
4) Then you can see the device node of RTL8723BU WIFI through the '''sudo ifconfig''' command. For the connection and test method of WIFI, please refer to <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;"
|-
|orangepi@orangepi:~$ '''sudo ifconfig wlx0013eff458ae'''<br>
wlx0013eff458ae: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500<br>
ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B)<br>
RX errors 0 dropped 0 overruns 0 frame 0<br>
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''' command<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''sudo apt update && sudo apt install bluez'''<br>
orangepi@orangepi:~$ '''hciconfig'''<br>
hci0: Type: Primary Bus: '''<span style="color:#FF0000">USB</span>'''<br>
BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16 DOWN<br>
RX bytes:1252 acl:0 sco:0 events:125 errors:0<br>
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 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;"
|-
|orangepi@orangepi:~$ '''lsmod'''
{| class="wikitable" style="width:800px;"
|-
| Module || Size || Used by
|-
| 8821cu || 1839104 || 0
|}
|}
3) Through the dmesg command, you can see the loading information of the RTL8811 module<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''dmesg'''<br>
[ 118.618194] usb 2-1: new high-speed USB device number 2 using ehci-platform<br>
[ 118.767152] usb 2-1: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00<br>
[ 118.767181] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 118.767199] usb 2-1: Product: 802.11ac NIC<br>
[ 118.767219] usb 2-1: Manufacturer: Realtek<br>
[ 118.767235] usb 2-1: SerialNumber: 123456<br>
[ 119.500530] usbcore: registered new interface driver rtl8821cu
|}
4) Then, you can see the WIFI device node through the sudo ifconfig command. For the WIFI connection and test method, please refer to <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;"
|-
|orangepi@orangepi:~$ '''sudo ifconfig wlx1cbfced9d260'''<br>
wlx1cbfced9d260: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 <br>
ether 1c:bf:ce:d9:d2:60 txqueuelen 1000 (Ethernet)<br>
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)
|}

'''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 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 003: ID 0bda:c820 Realtek Semiconductor Corp. 802.11ac NIC
|}
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
|-
|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>

'''If the USB WIFI module seen by the lsusb command is in Driver CDROM Mode, please unplug the USB WIFI module again. If not, please manually execute the following command to switch to the next mode:'''
|}
3) The linux system will automatically load the rtl8821cu bluetooth and wifi related kernel modules, through the lsmod command, you can see that the following kernel modules have been automatically loaded<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''lsmod'''
{| class="wikitable" style="width:800px;"
|-
| Module || Size || Used by
|-
| 8821cu || 1839104 || 0
|-
| rtk_btusb || 61440 || 0
|}
|}
4) Through the dmesg command, you can see the loading information of the rtl8821cu module<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''dmesg'''<br>
......<br>
[ 57.083693] usb 2-1: new high-speed USB device number 2 using ehci-platform<br>
[ 57.231888] usb 2-1: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 2.00<br>
[ 57.231916] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 57.231937] usb 2-1: Product: DISK<br>
[ 57.242594] usb-storage 2-1:1.0: USB Mass Storage device detected [ 57.245674] scsi host0: usb-storage 2-1:1.0<br>
[ 58.069172] usb 2-1: USB disconnect, device number 2<br>
[ 58.440025] usb 2-1: new high-speed USB device number 3 using ehci-platform<br>
[ 58.587819] usb 2-1: New USB device found, idVendor=0bda, idProduct=c820, bcdDevice= 2.00<br>
[ 58.587827] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 58.587833] usb 2-1: Product: 802.11ac NIC<br>
[ 58.587838] usb 2-1: Manufacturer: Realtek<br>
[ 58.587844] usb 2-1: SerialNumber: 123456<br>
[ 58.610463] rtk_btusb: Realtek Bluetooth USB driver ver 3.1.6d45ddf.20220519-142432<br>
[ 58.610656] usbcore: registered new interface driver rtk_btusb<br>
[ 58.634631] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821<br>
[ 58.636729] Bluetooth: hci0: RTL: rom_version status=0 version=1 <br>
[ 58.636740] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin<br>
[ 58.664190] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin <br>
[ 58.664746] Bluetooth: hci0: RTL: cfg_sz 10, total sz 31990<br>
[ 59.122471] Bluetooth: hci0: RTL: fw version 0x829a7644<br>
[ 59.265513] usbcore: registered new interface driver rtl8821cu<br>
[ 59.280119] rtl8821cu 2-1:1.2 wlx90de80521825: renamed from wlan0
|}
5) Then you can see the device node of rtl8821cu wifi through the '''sudo ifconfig''' command. For the wifi connection and test method, please refer to the section of <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;"
|-
|orangepi@orangepi:~$ '''sudo ifconfig wlx90de80521825'''<br>
wlx90de80521825: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500<br>
ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B)<br>
RX errors 0 dropped 0 overruns 0 frame 0<br>
TX packets 0 bytes 0 (0.0 B)
|}
6) Then you can see the USB Bluetooth device through the hciconfig command<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''sudo apt-get update && sudo apt-get install -y bluez'''<br>
orangepi@orangepi:~$ '''hciconfig'''<br>
hci0: Type: Primary Bus: '''<span style="color:#FF0000">USB</span>'''<br>
BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16 DOWN<br>
RX bytes:1252 acl:0 sco:0 events:125 errors:0<br>
TX bytes:23307 acl:0 sco:0 commands:125 errors:0
|}
7) You can also see the bluetooth icon on the desktop. At this time, the bluetooth is not turned on, so a red '''<span style="color:#FF0000">x</span>''' will be displayed<br><br>
[[Image:Pi-5-details2-pic04.png]]<br><br>
8) Click '''Turn Bluetooth On''' to turn on Bluetooth<br><br>
[[Image:Pi-5-details2-pic05.png]]<br><br>
9) The display after turning on Bluetooth is as follows<br><br>
[[Image:Pi-5-details2-pic06.png]]<br><br>
10) For the test method of Bluetooth, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#How to use Bluetooth | the section on Bluetooth usage]]</span>, so I won’t go into details here<br><br>