okdreamy
Posts: 5
Joined: Sun Aug 02, 2015 8:44 pm

8192cu wifi dongle doesn't work

Sun Aug 09, 2015 9:10 am

Hello,

I have a problem with a usb wifi dongle on the raspberry pi.
I have simply plug it to the raspberry pi, I won't see the device when typing lsusb:

Code: Select all

pi@raspberrypi:~$ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
typing dmesg will shows me that the kernel was able to find it, but disconnect it somehow... Could that be a driver problem?

Code: Select all

[    3.035169] usb 1-1.5: new high-speed USB device number 4 using dwc_otg
[    3.156681] usb 1-1.5: New USB device found, idVendor=0bda, idProduct=8176
[    3.167685] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.181740] usb 1-1.5: Product: 802.11n WLAN Adapter
[    3.190350] usb 1-1.5: Manufacturer: Realtek
[    3.196996] usb 1-1.5: SerialNumber: 00e04c000001
[    3.306885] udevd[175]: starting version 175
[    4.192960] random: nonblocking pool is initialized
[    4.265271] usbcore: registered new interface driver rtl8192cu
[    5.673676] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[    5.962127] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[   12.018574] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   12.392229] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS
[   12.889050] usb 1-1.5: USB disconnect, device number 4
[   12.889471] rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 482
[   13.061924] uart-pl011 3f201000.uart: no DMA platform data
[   13.438779] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xDDE1
sudo ifup wlan0 shows the following

Code: Select all

Cannot find device "wlan0"
Bind socket to interface: No such device
Failed to bring up wlan0.
and a ifconfig doesn't show me any wlan0 interface.

lsmod will display the module

Code: Select all

8192cu                528485  0 
If I add this module into the modprobe.d/blacklist.conf, then the wifi dongle will start to appears into 'lsusb', but no more in 'lsmod' and still nothing with ifconfig...

By the way, I have the raspberry pi powered using an external power supply

Does anyone have any information? I have updated the raspberry pi updated to 4.1.4 v7+ kernel

User avatar
rpdom
Posts: 17170
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: 8192cu wifi dongle doesn't work

Sun Aug 09, 2015 9:53 am

Have you increased the USB current to 1200mA instead of the default 600mA?

Some wifi dongles take more power than others which might be what causes it to disconnect once it starts to get activated.

Put

Code: Select all

max_usb_current=1
in /boot/config.txt and reboot for it to take effect.

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: 8192cu wifi dongle doesn't work

Sun Aug 09, 2015 10:49 am

What does
dpkg -l | grep -i 'realtek'
show? Have you got the firmware-realtek package installed?

Or get Mr Engman's driver from https://lb.raspberrypi.org/forums/viewt ... 28&t=62371
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

MrEngman
Posts: 4032
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: 8192cu wifi dongle doesn't work

Sun Aug 09, 2015 11:16 am

DougieLawson wrote:What does
dpkg -l | grep -i 'realtek'
show? Have you got the firmware-realtek package installed?

Or get Mr Engman's driver from https://lb.raspberrypi.org/forums/viewt ... 28&t=62371
Hi,

OP has an 8188cus/8192cu wifi, not an 8188eu wifi so I don't think that link is going to help much. :lol:


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 4032
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: 8192cu wifi dongle doesn't work

Sun Aug 09, 2015 11:35 am

Hi okdreamy,

Just tried a wifi with USB id 0BDA:8176, an old Micronet SP907NS, using the 8192cu driver and it is up and running OK on my Pi 2B running raspbian 4.1.4-v7+ #808.

Also tried an Edimax EW-7811Un using the same 8192cu driver and that is OK as well.

And no need to edit the /boot/config.txt file to increase the max USB current. Max current used by the 8188cus/8192cu wifi dongles is generally around 150mA.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 4032
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: 8192cu wifi dongle doesn't work

Sun Aug 09, 2015 11:40 am

Hi okdreamy,

Problem could be the power supply you are using to power your Pi, or the cable connecting the power supply to the Pi is poor quality, too thin or too long.

What is the power supply specification?


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

okdreamy
Posts: 5
Joined: Sun Aug 02, 2015 8:44 pm

Sun Aug 09, 2015 11:53 am

Thanks for all your replies.

@rpdom
Have you increased the USB current to 1200mA instead of the default 600mA?
Nop, I didn't try it yet, but from MrEngman's reply, I wouldn't need to do that

@DougieLawson
Have you got the firmware-realtek package installed?
Yes I did have installed that, and I have also installed wpasupplicant

@MrEngman
What is the power supply specification?
I have tried with a either xiaomi Power Bank 10400mAh and a USB to TTL Serial Cable, but none of them made the wifi stick worked.

I don't know if they have any differences, but I currently use this following wifi stick:
https://www.adafruit.com/product/1012

MrEngman
Posts: 4032
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: 8192cu wifi dongle doesn't work

Sun Aug 09, 2015 12:44 pm

Hi okdreamy,

What OS are you using. I'm assuming it is raspbian, is that right?

You do not need to install the firmware-realtek package as the driver has the required firmware included in it. And why load wpasupplicant as it is already installed as well?

I would suspect your power source is the problem, or the cable connecting it to the Pi, although looking at the spec it looks as though it may be OK.

I normally use these power supplies http://cpc.farnell.com/pro-power/mwusb3 ... tAodDOwC2g, but the Pi 2B I have the 8192cu wif currently connect to is powered from a usb port on my laptop, but with a very short thick cable plugged into the power socket on the Pi.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

okdreamy
Posts: 5
Joined: Sun Aug 02, 2015 8:44 pm

Re: 8192cu wifi dongle doesn't work

Sun Aug 09, 2015 1:36 pm

I would suspect your power source is the problem, or the cable connecting it to the Pi, although looking at the spec it looks as though it may be OK.
I have another Android charger
that I would be able to try tonight.

By the way I took the noob package and used wheezy.
And about the packages, the firmware realtek were in fact already there but I'm not so sure about the wpasupplicant one because I remembered it did something... Sorry I am kind of new with this raspberry :)

okdreamy
Posts: 5
Joined: Sun Aug 02, 2015 8:44 pm

Re: 8192cu wifi dongle doesn't work

Mon Aug 10, 2015 11:23 am

It doesn't seem to work with the android charger microusb either.
Do you know if there is a way to reset the raspberry pi to its original version?

MrEngman
Posts: 4032
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: 8192cu wifi dongle doesn't work

Mon Aug 10, 2015 1:29 pm

okdreamy wrote:It doesn't seem to work with the android charger microusb either.
Do you know if there is a way to reset the raspberry pi to its original version?
Re-format the SD card and re-install the original image you used.

Do you have another system you can check the wifi works with, maybe a windows laptop or similar? Just to make sure the wifi is working.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

capslock118
Posts: 43
Joined: Wed Mar 21, 2012 6:25 pm
Location: New Haven, CT
Contact: Website

Re: 8192cu wifi dongle doesn't work

Tue Aug 11, 2015 9:07 pm

I just noticed this thread after I had already posted an issue with a similar chipset :(.

My issue seems to be different than yours (viewtopic.php?f=28&t=117843) but I wonder if there is something related between the two, why do we both happen to have an issue with the same chipset within the same time frame? I question the coincidence here. For instance I have seen my wifi dongle disappear from lsusb and it is even powered via a dedicated hub.

MrEngman
Posts: 4032
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: 8192cu wifi dongle doesn't work

Tue Aug 11, 2015 10:06 pm

capslock118 wrote:I just noticed this thread after I had already posted an issue with a similar chipset :(.

My issue seems to be different than yours (viewtopic.php?f=28&t=117843) but I wonder if there is something related between the two, why do we both happen to have an issue with the same chipset within the same time frame? I question the coincidence here. For instance I have seen my wifi dongle disappear from lsusb and it is even powered via a dedicated hub.
Does the hub have it's own PSU? How are you powering the Pi?


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

capslock118
Posts: 43
Joined: Wed Mar 21, 2012 6:25 pm
Location: New Haven, CT
Contact: Website

Re: 8192cu wifi dongle doesn't work

Tue Aug 11, 2015 11:17 pm

MrEngman wrote:
capslock118 wrote:I just noticed this thread after I had already posted an issue with a similar chipset :(.

My issue seems to be different than yours (viewtopic.php?f=28&t=117843) but I wonder if there is something related between the two, why do we both happen to have an issue with the same chipset within the same time frame? I question the coincidence here. For instance I have seen my wifi dongle disappear from lsusb and it is even powered via a dedicated hub.
Does the hub have it's own PSU? How are you powering the Pi?


MrEngman
Yep, the hub is powered independently. The pi is using a 5v 2amp power connection.

EDIT: Your reply to my post seemed to have resolved my issue, so thanks for that :)

Return to “Troubleshooting”