Wlan USB stick not working with Apalis TK1

Hello,

we tried the following Wlan USB stick with our Apalis TK1 module, but couldn’t get it to work properly:

LogiLink WL0145 Realtek RTL8188CUS

According to the instructions at Setting up Kernel Support for 3rd Party Wi-Fi Adapters in Toradex’s Linux Images this chipset should work out of the box.

When we plug in the stick it’s recognized correctly as shown with “dmesg”:

[ 2699.072328] usb 2-1: new high-speed USB device number 4 using tegra-ehci
[ 2699.232956] usb 2-1: New USB device found, idVendor=148f, idProduct=5370
[ 2699.241870] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2699.249667] usb 2-1: Product: 802.11 n WLAN
[ 2699.254245] usb 2-1: Manufacturer: Ralink
[ 2699.258505] usb 2-1: SerialNumber: 1.0

We then tried the following command:

root@apalis-tk1:~# connmanctl enable wifi
Error wifi: Method "SetProperty" with signature "sv" on interface "net.connman.Technology" doesn't exist

We also updated the drivers with “opkg update” and “opkg --force-depends install linux-firmware”.

The same also happened when we tried another different stick ( TL-WN823N-v3 rtl8192cu ).

Are we missing a step? Thanks for any help or suggestions!

Hi

As dmesg output states, you have Ralink card, not Realtek. Vid - pid pair just confirms it. Pid 5370 tells that most likely you have Ralink RT5370 card. You need to compile kernel and drivers with support for RT53XX enabled. Once applying defconfig for your Apalis, make menuconfig, then look into Device Drivers → Network device support → Wireless LAN → Ralink driver support. Enable rt27xx/rt28xx/rt30xx and then as well enable “Include support for rt53xx”.

Prior to digging into Connman you should check if card is visible from ifconfig -a. Sometimes card is recognised and available to system but Connman requires a bit more from card driver.

Thanks for the fast reply!

We also tried with TL-WN823N-v3 (RTL8192CU):

[ 4581.180876] usb 2-1: USB disconnect, device number 2
[ 4586.767565] usb 2-1: new high-speed USB device number 3 using tegra-ehci
[ 4586.912804] usb 2-1: New USB device found, idVendor=2357, idProduct=0109
[ 4586.921328] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4586.929412] usb 2-1: Product: 802.11n NIC
[ 4586.934576] usb 2-1: Manufacturer: Realtek
[ 4586.940294] usb 2-1: SerialNumber: 00e04c000001

This one also doesn’t show via ifconfig -a.

We want to avoid having to compile again therefore we tried using a card that is already supported.

Hi,

Looking at Apalis TK1 default kernel config it seems this card is as well not enabled by default, though drivers for both rtl8192cu and RT53XX are present in kernel tree. You need to get kernel sources, enable those drivers, make kernel+drivers and populate them to target.

Hi Edward,
is there any USB Wifi adapter that would work out of the box? The LM816 USB WiFi in the Toradex shop is not recommended for Embedded Linux. Is there any alternative?

Greetings @ann-kris91!

You can find a list of Wi-Fi modules known to work with our SoMs in this Developer page.

Thanks Gustavo, we will try with the WUBR-508N chipset.

Hi there,

we tried again with the mentioned chipset and it looks very similar:

root@apalis-tk1:~# dmesg
[   63.900479] usb 2-1: new high-speed USB device number 2 using tegra-ehci
[   64.052633] usb 2-1: New USB device found, idVendor=148f, idProduct=5572
[   64.060761] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   64.068400] usb 2-1: Product: 802.11 n WLAN
[   64.072998] usb 2-1: Manufacturer: Ralink
[   64.077518] usb 2-1: SerialNumber: 1.0

With ifconfig -a we get the following:

root@apalis-tk1:~# ifconfig -a
can0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP RUNNING NOARP  MTU:16  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:3 (3.0 B)  TX bytes:0 (0.0 B)

 

can1      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP RUNNING NOARP  MTU:16  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:65 (65.0 B)  TX bytes:64 (64.0 B)

 

dummy0    Link encap:Ethernet  HWaddr B6:A0:33:19:AF:FB
          BROADCAST NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

enp1s0    Link encap:Ethernet  HWaddr 00:14:2D:63:0A:87
          inet addr:192.168.106.53  Bcast:192.168.106.255  Mask:255.255.255.0
          inet6 addr: fe80::214:2dff:fe63:a87%lo/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:149 errors:0 dropped:0 overruns:0 frame:0
          TX packets:335 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14525 (14.1 KiB)  TX bytes:104834 (102.3 KiB)

 

ip6tnl0   Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1452  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1%1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:725 (725.0 B)  TX bytes:725 (725.0 B)

 

rmnetctl  Link encap:UNSPEC  HWaddr 00-00-00-00-31-34-00-32-00-00-00-00-00-00-00-00
          NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

rndis0    Link encap:Ethernet  HWaddr 6E:2E:8F:2E:50:8B
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

The entry rmnetctl only appears with ifconfig -a not with ifconfig.

With lsusb we get the following:

root@apalis-tk1:~# lsusb
Bus 001 Device 005: ID 222a:0001
Bus 001 Device 004: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 003: ID 17ef:6019 Lenovo
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

But when we want to enable the wifi we still get an error from connman:

root@apalis-tk1:~# connmanctl enable wifi
Error wifi: Method "SetProperty" with signature "sv" on interface "net.connman.Technology" doesn't exist

Do you have any other recommendations?

I don’t know what exactly you want to do with rmnetctl but it has definitely nothing to do with any of your Wi-Fi stuff. So please just deploy whatever proper driver for the exact USB Wi-Fi device you now want to use and connman will pick it up.