New wireless adapter

Post Reply
User avatar
odroid
Site Admin
Posts: 37753
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1910 times
Been thanked: 1183 times
Contact:

New wireless adapter

Post by odroid »

We've started selling a new wireless adapter WiFi Module 5B.
IEEE 802.11ac/a/b/g/n WLAN and Bluetooth combo module with on-board 2.4Ghz and 5.8Ghz Dual band antenna.
https://www.hardkernel.com/shop/wifi-module-5b/
wifimodule5b.jpg
wifimodule5b.jpg (38.67 KiB) Viewed 13342 times
wifimodule5bboard.jpg
wifimodule5bboard.jpg (65.86 KiB) Viewed 13342 times
It works with ODROID-XU4/N2/C4 series.
Please use the latest version of OS images for Android and Linux compatibility.

– Realtek RTL8821CU chipset ( USB ID = 0BDA:C820, Initial CDROM mode = 0BDA:1A2B )
– Dual-Band 11ac 1×1 with 64/128/152 bit WEP, WPA/WPA-PSK,WPA2/WPA2-PSK securities
– Frequency Range: 2.4-2.483GHz ; 5.725~5.825GHz
– Support WLAN Standards: IEEE802.11ac/a/b/g/n
– Actual WiFi 11AC transfer Speed : up to 200 Mbps
– Support Bluetooth 2.1/3.0/4.2 (No BLE)
– USB 2.0 High-Speed host interface
– Built-in antenna Gain: 2dBi
– Dimension : 36 x 19 x 9 mm
– LED for wireless Link Activity
– Frequency Range: 2.4-2.483GHz ; 5.725~5.825GHz
– Dimension : 36 x 19 x 9 mm
– Weight : 5 g

* This chipset supports Soft-AP mode too.


Note: The WiFi Module 5B price is $8.9 same as the WiFi Module 5A.
Since the old chipset RTL8811AU in the WiFi Module 5A is being obsoleted by Realtek, the 5A adapter will discontinue in several months probably.

fvolk
Posts: 617
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 76 times
Contact:

Re: New wireless adapter

Post by fvolk »

Is this one supported by upstream kernel(s), or does this require custom patches that are pre-applied in Hardkernel's kernel source trees?

User avatar
tobetter
Posts: 8148
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 474 times
Been thanked: 1275 times
Contact:

Re: New wireless adapter

Post by tobetter »

fvolk wrote:
Wed Apr 28, 2021 6:32 pm
Is this one supported by upstream kernel(s), or does this require custom patches that are pre-applied in Hardkernel's kernel source trees?
For 5.x kernel, the driver will be delivered as DKMS package originally based on this and it is being tested.
https://github.com/brektrou/rtl8821CU

User avatar
mad_ady
Posts: 9540
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 604 times
Been thanked: 693 times
Contact:

Re: New wireless adapter

Post by mad_ady »

It looks nice, especially since it has BT support. Shame it's not BT-LE, though...

crashoverride
Posts: 5395
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 461 times
Contact:

Re: New wireless adapter

Post by crashoverride »

mad_ady wrote:
Thu Apr 29, 2021 3:13 am
Shame it's not BT-LE, though...
I have several devices based on this chip set. They all support BLE. I am not certain if this is an error.
https://www.realtek.com/en/products/com ... /rtl8821cu
Bluetooth 4.2
https://en.wikipedia.org/wiki/Bluetooth#Bluetooth_4.0
It includes Classic Bluetooth, Bluetooth high speed and Bluetooth Low Energy (BLE) protocols.

User avatar
odroid
Site Admin
Posts: 37753
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1910 times
Been thanked: 1183 times
Contact:

Re: New wireless adapter

Post by odroid »

@crashoverride,
Thank you for the information.
We need to buy some BLE devices and have to learn how to test the BLE protocol on Linux. ;)

User avatar
mad_ady
Posts: 9540
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 604 times
Been thanked: 693 times
Contact:

Re: New wireless adapter

Post by mad_ady »

Try pairing some BLE headphones. They should work under Linux.

User avatar
venn189
Posts: 28
Joined: Sat Dec 26, 2020 3:26 am
languages_spoken: english
ODROIDs: Odroid-Go Super
Has thanked: 8 times
Been thanked: 1 time
Contact:

Re: New wireless adapter

Post by venn189 »

Does this work with the Odroid-go Super?

User avatar
odroid
Site Admin
Posts: 37753
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1910 times
Been thanked: 1183 times
Contact:

Re: New wireless adapter

Post by odroid »

mad_ady wrote:
Thu Apr 29, 2021 5:11 pm
Try pairing some BLE headphones. They should work under Linux.
I couldn't find a BLE specific audio device. Do you have one?

User avatar
odroid
Site Admin
Posts: 37753
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1910 times
Been thanked: 1183 times
Contact:

Re: New wireless adapter

Post by odroid »

venn189 wrote:
Fri Apr 30, 2021 10:59 am
Does this work with the Odroid-go Super?
Yes, dual band WiFi connection works fine on the reference image at least.

User avatar
mad_ady
Posts: 9540
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 604 times
Been thanked: 693 times
Contact:

Re: New wireless adapter

Post by mad_ady »

odroid wrote:
mad_ady wrote:
Thu Apr 29, 2021 5:11 pm
Try pairing some BLE headphones. They should work under Linux.
I couldn't find a BLE specific audio device. Do you have one?
Sorry, I thought all modern BT headphones were using BTLE. My mistake!

User avatar
meveric
Posts: 11568
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 70 times
Been thanked: 483 times
Contact:

Re: New wireless adapter

Post by meveric »

apparently the GoPro cams are using BTLE as I'm currently helping someone with a project on the C2 that uses GoPro.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crashoverride
Posts: 5395
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 461 times
Contact:

Re: New wireless adapter

Post by crashoverride »

Almost any BT mouse made in the past few years is BLE. However, there is one device I know @odroid has that is guaranteed to be BLE: The ODROID-GO with Keyboard attachment:
https://github.com/OtherCrashOverride/bt-keyboard-go
venn189 wrote:
Fri Apr 30, 2021 10:59 am
Does this work with the Odroid-go Super?
The GO-Advance/Super will fully support this adapter. This includes WiFi and Bluetooth. Initially, the BT support is focused on speakers/headphones (A2DP).
These users thanked the author crashoverride for the post (total 2):
odroid (Mon May 03, 2021 9:23 am) • venn189 (Thu May 06, 2021 8:51 pm)

User avatar
venn189
Posts: 28
Joined: Sat Dec 26, 2020 3:26 am
languages_spoken: english
ODROIDs: Odroid-Go Super
Has thanked: 8 times
Been thanked: 1 time
Contact:

Re: New wireless adapter

Post by venn189 »

I just received this, and am looking forward to using it with my OGS. However, I plug it in, and it doesn't appear to work. I only had a few minutes this morning to play with it, and will try again this evening. Is there anything I need to do to set it up? My other wifi adapter I'm using works just by plugging it in. It is the grey one from hardkernel.

crashoverride
Posts: 5395
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 461 times
Contact:

Re: New wireless adapter

Post by crashoverride »

venn189 wrote:
Thu May 06, 2021 8:48 pm
Is there anything I need to do to set it up?
It depends on the image being used. It is tested and works out-of-the-box on the Reference Image.

Luke.go
Posts: 644
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 89 times
Been thanked: 96 times
Contact:

Re: New wireless adapter

Post by Luke.go »

It is tested on the ODROID-N2+ Android 20210427.
The Logitech PEBBLE M350 Wireless Mouse and Logitech K580 SLIM MULTI-DEVICE Wireless Keyboard are working as BLE HID mode.
So, some BLE devices are compatible at least. :D
These users thanked the author Luke.go for the post:
mctom (Mon May 24, 2021 6:59 pm)

specs
Posts: 93
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 29 times
Been thanked: 11 times
Contact:

Re: New wireless adapter

Post by specs »

I started to get the module working with the @tobetter link:
https://github.com/brektrou/rtl8821CU

With an intel laptop I got the 5B working (which is better than the 5A which I have never seen working).

However I want to use it with the N2p (Ubuntu 21.04, 5.13.0 kernel/tobetter).

So far:
I changed the Makefile to compile for the RPI/arm64 instead of i386.
I changed the Makefile in the /lib/modules/<kver>/build section to remove general-regs-only

The building proces with DKMS does not work yet, therefore I tried direct compiling with 'make'.
The build process ends with:
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.13.0-odroid-arm64/build M=/home/user/src/rtl8821CU modules
make[1]: Entering directory '/home/user/src/linux-5.13'
MODPOST /home/user/src/rtl8821CU/Module.symvers
ERROR: modpost: "proc_mkdir_data" [/home/user/src/rtl8821CU/8821cu.ko] undefined!
ERROR: modpost: "getboottime64" [/home/user/src/rtl8821CU/8821cu.ko] undefined!
ERROR: modpost: "proc_get_parent_data" [/home/user/src/rtl8821CU/8821cu.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:150: /home/user/src/rtl8821CU/Module.symvers] Error 1
make[2]: *** Deleting file '/home/user/src/rtl8821CU/Module.symvers'
make[1]: *** [Makefile:1762: modules] Error 2
make[1]: Leaving directory '/home/user/src/linux-5.13'
make: *** [Makefile:2212: modules] Error 2

I changed include/osdep_service_linux.h to include proc_fs and timekeeping:
include/osdep_service_linux.h:#include <linux/proc_fs.h>
include/osdep_service_linux.h:#include <linux/timekeeping.h>

But since that yields the same problem I hope someone here could give me a hint.

User avatar
tobetter
Posts: 8148
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 474 times
Been thanked: 1275 times
Contact:

Re: New wireless adapter

Post by tobetter »

specs wrote:
Sun Jul 04, 2021 1:35 am
I started to get the module working with the @tobetter link:
https://github.com/brektrou/rtl8821CU

With an intel laptop I got the 5B working (which is better than the 5A which I have never seen working).

However I want to use it with the N2p (Ubuntu 21.04, 5.13.0 kernel/tobetter).

So far:
I changed the Makefile to compile for the RPI/arm64 instead of i386.
I changed the Makefile in the /lib/modules/<kver>/build section to remove general-regs-only

The building proces with DKMS does not work yet, therefore I tried direct compiling with 'make'.
The build process ends with:
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.13.0-odroid-arm64/build M=/home/user/src/rtl8821CU modules
make[1]: Entering directory '/home/user/src/linux-5.13'
MODPOST /home/user/src/rtl8821CU/Module.symvers
ERROR: modpost: "proc_mkdir_data" [/home/user/src/rtl8821CU/8821cu.ko] undefined!
ERROR: modpost: "getboottime64" [/home/user/src/rtl8821CU/8821cu.ko] undefined!
ERROR: modpost: "proc_get_parent_data" [/home/user/src/rtl8821CU/8821cu.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:150: /home/user/src/rtl8821CU/Module.symvers] Error 1
make[2]: *** Deleting file '/home/user/src/rtl8821CU/Module.symvers'
make[1]: *** [Makefile:1762: modules] Error 2
make[1]: Leaving directory '/home/user/src/linux-5.13'
make: *** [Makefile:2212: modules] Error 2

I changed include/osdep_service_linux.h to include proc_fs and timekeeping:
include/osdep_service_linux.h:#include <linux/proc_fs.h>
include/osdep_service_linux.h:#include <linux/timekeeping.h>

But since that yields the same problem I hope someone here could give me a hint.
Please try this to install the driver package if you are trying to run the Wifi 5B.

Code: Select all

$ sudo apt update
$ sudo apt install linux-headers-$(uname -r) rtl8821cu-dkms

specs
Posts: 93
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 29 times
Been thanked: 11 times
Contact:

Re: New wireless adapter

Post by specs »

Let me start first by saying that the dkms package helped me a lot.
Unfortunately I did not get the adapter working yet.

I switched from the N2plus to the N2 since that configuration was cleaner (should not make much difference since both run 21.04).

Problems I ran into:
- I dropped the tobetter/github kernel to start with.
- I reinstalled the kernel-image-5.13.0-odroid-arm64 with headers so below my reference is the prepackaged tobetter kernel for 21.04.
(normally the sefl-compiled kernel should be independent, but with the 5.13.0 version some links are the same.)
- I found some missing linux-headers-5.13.0-odroid-common/scripts/modules-check.sh
- I installed linux-firmware for the rtl8821c firmware
- the wifi connection comes up but does not pass the authentication check (standard WPA2-PSK, some dmesg output included).

Like said before this is better than the compilation problems I ran into previously but still not working.
Attachments
rtl-error.txt
(32.39 KiB) Downloaded 9 times

igorpec
Posts: 980
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 59 times
Been thanked: 143 times
Contact:

Re: New wireless adapter

Post by igorpec »

specs wrote:
Sun Jul 04, 2021 1:35 am
I started to get the module working with the @tobetter link:
https://github.com/brektrou/rtl8821CU
That's also where you should be seeking for support. On Armbian EDGE (5.12.y ->) variant, we have the same problem - it doesn't want to connect. Except that Armbian experience is plug and play. You don't need to compile anything. Expecting that things that are supported by no-one / amateurs and that will just work on most recent kernel versions is just too optimistic :) Especially this goes for cheap Realtek wireless devices ...

It's a constant struggle to keep them operational.
specs wrote:
Sun Jul 04, 2021 1:35 am
However I want to use it with the N2p (Ubuntu 21.04, 5.13.0 kernel/tobetter).
If you are happy with a working plug and play solution, grab any Armbian for N2+ with LTS kernel (5.10.y), where this wifi dongle just works:

Code: Select all

[  5]   0.00-1.00   sec  11.0 MBytes  92.4 Mbits/sec                  
[  5]   1.00-2.00   sec  10.9 MBytes  91.1 Mbits/sec                  
[  5]   2.00-3.00   sec  9.82 MBytes  82.4 Mbits/sec                  
[  5]   3.00-4.00   sec  12.5 MBytes   105 Mbits/sec                  
[  5]   4.00-5.00   sec  11.6 MBytes  97.3 Mbits/sec                  
[  5]   5.00-6.00   sec  12.8 MBytes   108 Mbits/sec                  
[  5]   6.00-7.00   sec  13.0 MBytes   109 Mbits/sec                  
[  5]   7.00-8.00   sec  12.9 MBytes   108 Mbits/sec                  
[  5]   8.00-9.00   sec  12.7 MBytes   107 Mbits/sec                  
[  5]   9.00-10.00  sec  12.9 MBytes   108 Mbits/sec                  
[  5]  10.00-10.03  sec   345 KBytes   110 Mbits/sec
Full logs: http://ix.io/3rUh (failing 5.12.y -> downgrade to working 5.10.y)
ARMBIAN
Linux for ARM development boards
What is Armbian?

User avatar
tobetter
Posts: 8148
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 474 times
Been thanked: 1275 times
Contact:

Re: New wireless adapter

Post by tobetter »

specs wrote:
Sun Jul 04, 2021 6:50 pm
Let me start first by saying that the dkms package helped me a lot.
Unfortunately I did not get the adapter working yet.

I switched from the N2plus to the N2 since that configuration was cleaner (should not make much difference since both run 21.04).

Problems I ran into:
- I dropped the tobetter/github kernel to start with.
- I reinstalled the kernel-image-5.13.0-odroid-arm64 with headers so below my reference is the prepackaged tobetter kernel for 21.04.
(normally the sefl-compiled kernel should be independent, but with the 5.13.0 version some links are the same.)
- I found some missing linux-headers-5.13.0-odroid-common/scripts/modules-check.sh
- I installed linux-firmware for the rtl8821c firmware
- the wifi connection comes up but does not pass the authentication check (standard WPA2-PSK, some dmesg output included).

Like said before this is better than the compilation problems I ran into previously but still not working.
I've tested the driver and found the same authentication issue with WPA2, so the driver has been updated and uploaded. Plase do update with the new driver package.

Code: Select all

$ sudo apt update
$ sudo apt install rtl8821cu-dkms
$ sudo dpkg -l | grep rtl8821cu
ii  rtl8821cu-dkms                             5.8.1.7+202107042230~hirsute                                         arm64        DKMS files to build and install rtl8821cu
This driver would work, but one issue I found is that the Wifi driver only works after replugging which means that Wifi would not working aftre rebooting until replugging it. I am looking into this why.
These users thanked the author tobetter for the post:
specs (Mon Jul 05, 2021 2:41 am)

specs
Posts: 93
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 29 times
Been thanked: 11 times
Contact:

Re: New wireless adapter

Post by specs »

First: wifi works with the 5B adapter with the N2plus. (thanks!!)

Second: I wonder if the problems you saw with a restart was some kind of unclean restart.
Since I had a fixed IP on the fixed network I had some trouble switching to the wifi network with the same subnet, but it works now without disconnecting the wifi adapter.
I was thinking if there was something like IPv4 vs IPv6, but most stuff works after the umpteenth restart.

I cannot reproduce the problems with the startup where you had to disconnect the adapter before using it.
I did experience some lock-ups after disconnecting and reconnecting the adapter, where I had to disconnect the power.
Therefore I think I was forced to start clean where you might have had an unclean restart.
Unfortunately this means all is not perfect yet, but I will keep you informed if problems resurface in future.

User avatar
mad_ady
Posts: 9540
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 604 times
Been thanked: 693 times
Contact:

Re: New wireless adapter

Post by mad_ady »

As a dirty workaround you can toggle power to the usb bus...

basspapa
Posts: 1
Joined: Fri Jul 16, 2021 4:19 pm
languages_spoken: english, korean
Has thanked: 0
Been thanked: 0
Contact:

Re: New wireless adapter

Post by basspapa »

Is there any other alternatives for usb wireless adapter in Korea?
I can't buy it from HK official shop... due to Korean electrical appliances law.

specs
Posts: 93
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 29 times
Been thanked: 11 times
Contact:

Re: New wireless adapter

Post by specs »

tobetter wrote:
Mon Jul 05, 2021 12:36 am
This driver would work, but one issue I found is that the Wifi driver only works after replugging which means that Wifi would not working aftre rebooting until replugging it. I am looking into this why.
A short follow-up on the wifi adapter and the problems you faced on rebooting:
I found that with the C4 there was no network connection (STMMAC) with the 5.13-kernel while the 5.11-kernel had almost no problems.

After the umpteenth reboot I concluded that it was not a connection failure but rather a start with a large timeout.
The 5A started faster than the onboard STMMAC on the C4, but after a timeout both worked (normally I'd only use one of the 2 and I would not see it).

User avatar
odroid
Site Admin
Posts: 37753
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1910 times
Been thanked: 1183 times
Contact:

Re: New wireless adapter

Post by odroid »

basspapa wrote:
Fri Jul 16, 2021 4:27 pm
Is there any other alternatives for usb wireless adapter in Korea?
I can't buy it from HK official shop... due to Korean electrical appliances law.
If you speak Korean, this thread has an answer.
viewtopic.php?f=166&t=42681

Post Reply

Return to “News”

Who is online

Users browsing this forum: No registered users and 26 guests