8,367
edits
Changes
→RTL8821CU test
# Then use the '''lsusb''' command to see the device information of the rtl8821cu usb wifi module. Make sure the USB module is not in the Driver CDROM Mode
::{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''lsusb | grep "Realtek"'''
Bus 002 Device 003: ID 0bda:c820 Realtek Semiconductor Corp. 802.11ac NIC
|}
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
orangepi@orangepi:~$ '''lsusb | grep "Realtek"'''
Bus 002 Device 002: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter ('''<span style="color:blue">Driver CDROM Mode</span>''')
orangepi@orangepi:~$ '''sudo usb_modeswitch -KW -v 0bda -p 1a2b'''
|}
<ol start="3" style="list-style-type: decimal;">
<li>The Linux system will automatically load the RTL8821CU Bluetooth and WIFI -related kernel modules. You can see that the kernel module below is automatically loaded through the lsmod command</li>{| class="wikitable" style="width:800px;" |-|</olp> orangepi@orangepi:~$ '''lsmod'''</p> <span style="margin-right: 100px;">Module </span><span style="margin-right: 50px;">Size </span><span style="margin-right: 45px;">Used by</span><br> <span style="margin-right: 100px;">8821cu </span><span style="margin-right: 50px;">1839104 </span><span style="margin-right: 50px;">0</span><br> <span style="margin-right: 90px;">rtk_btusb </span><span style="margin-right: 50px;">61440 </span><span style="margin-right: 30px;">0</span><br>|}</ol>
<ol start="4" style="list-style-type: decimal;">
<li>You can see the loading information of the rtl8821cu module through the dmesg command</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''dmesg'''
[ 59.280119] rtl8821cu 2-1:1.2 wlx90de80521825: renamed from wlan0
|}
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Then you can see the RTL8821CU WiFi device node through the '''sudo ifconfig''' command. Please refer to the [[\lOrange Pi 3B#WIFI connection test|'''WiFi connection test''']] a section for WIFI connection and testing methods.</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''sudo ifconfig wlx90de80521825'''
wlx90de80521825: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
::ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B)
::RX errors packets 0 dropped bytes 0 overruns (0 frame .0B)
::TX errors packets 0 dropped bytes 0 overruns (0 carrier 0 collisions .0B)
::TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|}
</ol>
<ol start="6" style="list-style-type: decimal;">
<li>Then you can see the USB Bluetooth device through the '''hciconfig''' command</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''sudo apt-get update && sudo apt-get install -y bluez'''
orangepi@orangepi:~$ '''hciconfig'''
hci0: Type: Primary Bus: '''<span style="color:#FF0000">USB</span>''' BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16
::TX bytes:23307 acl:0 sco:0 commands:125 errors:0
|}
</ol>
<ol start="7" style="list-style-type: decimal;">
<li>Bluetooth icons can also be seen on the desktop. At this time, Bluetooth has not been opened, so a red '''<span style="color:#FF0000">x</span>''' will be displayed</li></ol>
[[File:pi3b-img243.png]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<li>Click '''Turn Bluetooth On''' to open Bluetooth</li></ol>
[[File:pi3b-img244.png]]
</ol>
<ol start="9" style="list-style-type: decimal;">
<li>The display after opening Bluetooth is shown below</li></ol>
[[File:pi3b-img245.png]]
</ol>
<ol start="10" style="list-style-type: decimal;">
<li>Please refer to the [[\lOrange Pi 3B#How to use Bluetooth|'''Bluetooth use chapter''']] for the Bluetooth test method. I won't go into details her</li></ol>
<span id="usb-camera-test"></span>