OurLink Wifi Connection Problems w/ Pi2B

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
byronpurvis
 
Posts: 5
Joined: Sun Jan 09, 2022 10:47 pm

OurLink Wifi Connection Problems w/ Pi2B

Post by byronpurvis »

Hi, I bought the OurLink Wifi adapter (Invoice# 2750257, Jan 2nd 2022) to connect a Raspberry Pi 2B running LibreElec 9.2.6 to my router. The connection is very slow and sometimes after a while it will eventually drop connection altogether, and I have to reboot the Pi. I also have a Pi3 and Pi4 (running LibreElec) that I've used with the built-in wifi connected to the same router with no problems.

I ran ifconfig wlan0 on the Pi2B, and here's what I got...

Code: Select all

Bedroom-Pi:~ # uptime
 14:39:52 up 16:51,  load average: 0.29, 0.25, 0.15
Bedroom-Pi:~ # ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:E0:4C:26:AE:37
          inet addr:192.168.0.106  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:209946 errors:0 dropped:74215 overruns:0 frame:0
          TX packets:12544 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:84236447 (80.3 MiB)  TX bytes:1535924 (1.4 MiB)
74215 dropped packets!

For comparison, here's my Pi4 with only 2 dropped packets after being up for over 10 days...

Code: Select all

LibreELEC-Pi42G:~ # uptime
 14:39:39 up 10 days, 14:01,  load average: 0.35, 0.31, 0.28
LibreELEC-Pi42G:~ # ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr DC:A6:32:01:DD:F2
          inet addr:192.168.0.185  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13104915 errors:0 dropped:2 overruns:0 frame:0
          TX packets:2997772 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17064647064 (15.8 GiB)  TX bytes:289306879 (275.9 MiB)
Did I just get a dud OurLink unit, or is there something I can do in the OS to fixed the dropped packet issue? Keep in mind, I'm running LibreElec, so it's more limited than a full version of Raspbian/Raspberry Pi OS.
Thanks!
-Byron

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: OurLink Wifi Connection Problems w/ Pi2B

Post by adafruit_support_carter »

How are you powering the Pi 2B that is using the USB WiFi dongle?

Do you know what driver LibreElec ends up using for the adapter? (it's RTl8192cu based)

User avatar
byronpurvis
 
Posts: 5
Joined: Sun Jan 09, 2022 10:47 pm

Re: OurLink Wifi Connection Problems w/ Pi2B

Post by byronpurvis »

Powered with a 5v 2.4a micro usb adapter. Should be plenty for the Pi2.

# lsusb
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

Looks like it's being recognized as RTL8188CUS, but I'm not sure how to fix that in LibreElec?

User avatar
byronpurvis
 
Posts: 5
Joined: Sun Jan 09, 2022 10:47 pm

Re: OurLink Wifi Connection Problems w/ Pi2B

Post by byronpurvis »

I dug around and found various files related to the 8192 listed in the firmware directory, but I am not quite sure how to force LibreElec to use a different wifi driver...

/var/lib/firmware/rtlwifi # ls
LICENCE.rtlwifi_firmware.txt rtl8723aufw_A.bin
rtl8188efw.bin rtl8723aufw_B.bin
rtl8188eufw.bin rtl8723aufw_B_NoBT.bin
rtl8192cfw.bin rtl8723befw.bin
rtl8192cfwU.bin rtl8723befw_36.bin
rtl8192cfwU_B.bin rtl8723bs_ap_wowlan.bin
rtl8192cufw.bin rtl8723bs_bt.bin
rtl8192cufw_A.bin rtl8723bs_nic.bin
rtl8192cufw_B.bin rtl8723bs_wowlan.bin
rtl8192cufw_TMSC.bin rtl8723bu_ap_wowlan.bin
rtl8192defw.bin rtl8723bu_nic.bin
rtl8192dufw.bin rtl8723bu_wowlan.bin
rtl8192dufw_wol.bin rtl8723defw.bin
rtl8192eefw.bin rtl8723fw.bin
rtl8192eu_ap_wowlan.bin rtl8723fw_B.bin
rtl8192eu_nic.bin rtl8821aefw.bin
rtl8192eu_wowlan.bin rtl8821aefw_29.bin
rtl8192sefw.bin rtl8821aefw_wowlan.bin
rtl8712u.bin rtl8822befw.bin

User avatar
byronpurvis
 
Posts: 5
Joined: Sun Jan 09, 2022 10:47 pm

Re: OurLink Wifi Connection Problems w/ Pi2B

Post by byronpurvis »

Here's the output of dmesg

http://ix.io/3M2i

User avatar
byronpurvis
 
Posts: 5
Joined: Sun Jan 09, 2022 10:47 pm

Re: OurLink Wifi Connection Problems w/ Pi2B

Post by byronpurvis »

lsmod shows the correct driver loaded...

# lsmod
Module Size Used by
8192cu 540672 0
cfg80211 512000 1 8192cu
rfkill 24576 3 cfg80211
bcm2835_gpiomem 16384 0
fixed 16384 0
wireguard 143360 0
ip6_udp_tunnel 16384 1 wireguard
udp_tunnel 16384 1 wireguard

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”