RTL8192CU speed issue

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: RTL8192CU speed issue

Post by Fourdee »

Castle wrote: Started up the Pi and... it connected with 300Mbt.......
It ran thru the first installation scripts and after the first reboot...... back to 72.2Mbit......

Here's the dump as per your request:
Thanks,

Signal strength is a little low -52dBm. Just wondering if the NL country code is causing a unexplaned reduction in Wifi performance. Raspbian is set to GB as standard (naughty), which is the same channels and ratings for WiFi G, although, unsure for N so you may want to check your countries legislation for wireless N.

Can you please try the following:
  • Put the RPi in the same room and level as the router (eg: next to it). Power on and get the iwconfig wlan0 results
  • Change the country code to GB (this is the same as NL for WiFi G, 1-11 channels and 100mW power: http://www.cisco.com/c/en/us/td/docs/wi ... cscod.html), so iw reg set GB then wait a few seconds and iwconfig wlan0
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Castle

Re: RTL8192CU speed issue

Post by Castle »

This is with the region set to GB.
I already tried this one :)

root@RPI-Keuken:~# iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:"Castlepoint"
Mode:Managed Frequency:2.427 GHz Access Point: E4:F4:C6:1C:4F:20
Bit Rate=72.2 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=65/70 Signal level=-45 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Regards,
Jelle
Castle

Re: RTL8192CU speed issue

Post by Castle »

Just comes to mind. At first boot after a clean install, the wifi adapter is recognised as a TP-link device.
After the first reboot initiated by the install script it get's a new ip from the dhcp server and is not recognised as a TP-link device.

Strange isn't it?

Jelle
Castle

Re: RTL8192CU speed issue

Post by Castle »

This is de lsusb output:

root@RPI-Keuken:~# lsusb
Bus 001 Device 004: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: RTL8192CU speed issue

Post by Fourdee »

Castle wrote:Just comes to mind. At first boot after a clean install, the wifi adapter is recognised as a TP-link device.
After the first reboot initiated by the install script it get's a new ip from the dhcp server and is not recognised as a TP-link device.

Strange isn't it?

Jelle
Hi Jelle,

Yep, very strange. DietPi doesn't do anything that would cause this to happen during 1st run, at least, not from looking at source code and patch code.
the wifi adapter is recognised as a TP-link device
Is this from the router webpage, or obtained by lsusb (or another) ?

Also, are you using the v133 RPi image (eg: DietPi_v133*.img) ?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Castle

Re: RTL8192CU speed issue

Post by Castle »

I'm using the 133 image.
And yes, it is from the router webpage.

Can I change the mac address in dietpi?

Regards,
Jelle

BTW
I got this from lsmod:
root@RPI-Keuken:~# lsmod
Module Size Used by
8192cu 560049 0
brcmfmac 186343 0
brcmutil 5661 1 brcmfmac
cfg80211 427855 2 brcmfmac,8192cu
rfkill 16037 2 cfg80211
bcm2835_wdt 3225 0
bcm2835_gpiomem 3040 0
uio_pdrv_genirq 3164 0
uio 8000 1 uio_pdrv_genirq
fuse 83461 1
ipv6 347530 20
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: RTL8192CU speed issue

Post by Fourdee »

Castle wrote:Can I change the mac address in dietpi?
As far as i'am aware Raspbian (which DietPi for RPi is based on) pulls the MAC codes directly from the device. Although, there is probably a way to override that somehow, but will require the Google treatment (search). :)
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Castle

Re: RTL8192CU speed issue

Post by Castle »

I gave up and reverted back to plain Jessie lite.
Now the wifi adapter is working at the proper 300Mbit.

It is now back on the proper MAC address, the one it has before the first reboot when installing Dietpi.

Something is wrong with the setup. I don't think it is the driver. Plain vanil;la Jessie uses the same.
It has something to do with the network setup. If I plug in a network cable, the cable and the WiFi share an ip/mac address and when I unplug the WiFi module, the Wlan0 stays online...

And this with a fresh unaltered install of v133...

I'll keep monitoring the this thread when somebody comes up with something...
I do like the Dietpi. It is working nicely on other Pies in my home.

Reagards,
Jelle
Castle

Re: RTL8192CU speed issue

Post by Castle »

Did a final check with the plain Jessie.

It uses the 8192eu settings. Dietpi uses the 8192cu version.

I will do a clean install and check if it makes a difference.

Keep you posted.

Regards,
Jelle
Castle

Re: RTL8192CU speed issue

Post by Castle »

There were several .conf files in the /etc/modprobe.d/ directory with the Dietpi image.
Even after deletion of all but one of them it doesn't work.

Back to Jessie lite again....
Post Reply