Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days.
0

OurLink Wifi Connection Problems w/ Pi2B
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

OurLink Wifi Connection Problems w/ Pi2B

by byronpurvis on Mon Jan 10, 2022 3:52 pm

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 | TOGGLE FULL SIZE
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 | TOGGLE FULL SIZE
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

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

Re: OurLink Wifi Connection Problems w/ Pi2B

by adafruit_support_carter on Wed Jan 12, 2022 5:15 pm

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)

adafruit_support_carter
 
Posts: 22293
Joined: Tue Nov 29, 2016 2:45 pm

Re: OurLink Wifi Connection Problems w/ Pi2B

by byronpurvis on Wed Jan 12, 2022 5:52 pm

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?

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

Re: OurLink Wifi Connection Problems w/ Pi2B

by byronpurvis on Wed Jan 12, 2022 6:29 pm

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

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

Re: OurLink Wifi Connection Problems w/ Pi2B

by byronpurvis on Wed Jan 12, 2022 10:15 pm

Here's the output of dmesg

http://ix.io/3M2i

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

Re: OurLink Wifi Connection Problems w/ Pi2B

by byronpurvis on Wed Jan 12, 2022 10:22 pm

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

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

Please be positive and constructive with your questions and comments.