HOW-TO: RPI + Linksys WUSB54GC dongle


23 posts
by Stomp » Mon Aug 06, 2012 4:50 pm
Hi
A little guide how to use Linksys WUSB54GC WiFi dongle on Raspberry Pi (Raspbian “wheezy”). The dongle is pretty old but I used it just for the test :)

(1) You need self-powered USB hub!
(2) Plug the dongle in the hub:
pi@raspberrypi:~$ dmesg
[ 111.915950] usb 1-1.3.2: new high speed USB device number 5 using dwc_otg
[ 112.216207] usb 1-1.3.2: New USB device found, idVendor=13b1, idProduct=0020
[ 112.216240] usb 1-1.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 112.216261] usb 1-1.3.2: Product: Compact Wireless-G USB Adapter
[ 112.216290] usb 1-1.3.2: Manufacturer: Cisco-Linksys
[ 112.311511] cfg80211: Calling CRDA to update world regulatory domain
[ 112.495964] usb 1-1.3.2: reset high speed USB device number 5 using dwc_otg
[ 112.978042] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 112.981551] Registered led device: rt73usb-phy0::radio
[ 112.982146] Registered led device: rt73usb-phy0::assoc
[ 112.982727] Registered led device: rt73usb-phy0::quality
[ 112.987435] usbcore: registered new interface driver rt73usb

We can also see the drivers are loaded:
pi@raspberrypi:~$ lsmod
Module Size Used by
...
rt73usb 23490 0
rt2x00usb 12077 1 rt73usb
rt2x00lib 43890 2 rt2x00usb,rt73usb
mac80211 253889 2 rt2x00lib,rt2x00usb
cfg80211 180459 2 mac80211,rt2x00lib


(3) wlan0 interface is auto created:
pi@raspberrypi:~$ ifconfig
wlan0 Link encap:Ethernet HWaddr 00:1d:7e:11:c4:56
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)

(4) To automatically connect to WiFi AP add this to /etc/network/interfaces:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid <AP-SSID>
wpa-psk <KEY>

(5) Restart networking:
pi@raspberrypi:~$ sudo /etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/00:1d:7e:11:c4:56
Sending on LPF/wlan0/00:1d:7e:11:c4:56
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.32.1
DHCPACK from 192.168.32.1
bound to 192.168.32.104 -- renewal in 32936 seconds.
done.[/code]
(6) Done! :twisted:
[code]pi@raspberrypi:~$ dmesg
[ 374.243090] wlan0: authenticate with 00:b0:0c:4f:25:10 (try 1)
[ 374.244913] wlan0: authenticated
[ 374.307729] wlan0: associate with 00:b0:0c:4f:25:10 (try 1)
[ 374.312512] wlan0: RX AssocResp from 00:b0:0c:4f:25:10 (capab=0x411 status=0 aid=1)
[ 374.312540] wlan0: associated

pi@raspberrypi:~$ ifconfig
wlan0 Link encap:Ethernet HWaddr 00:1d:7e:11:c4:56
inet addr:192.168.32.104 Bcast:192.168.32.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10652 (10.4 KiB) TX bytes:4726 (4.6 KiB)

(7) Ping test:
pi@raspberrypi:~$ ping google.com
PING google.com (209.85.148.101) 56(84) bytes of data.
64 bytes from fra07s07-in-f101.1e100.net (209.85.148.101): icmp_req=1 ttl=56 time=34.7 ms
64 bytes from fra07s07-in-f101.1e100.net (209.85.148.101): icmp_req=2 ttl=56 time=46.4 ms
64 bytes from fra07s07-in-f101.1e100.net (209.85.148.101): icmp_req=3 ttl=56 time=45.8 ms
...

So for the test I left it pinging for some time. Haven't seen any issues yet :)
User avatar
Posts: 35
Joined: Mon Aug 06, 2012 4:34 pm
by shapr » Mon Aug 13, 2012 6:17 pm
After fighting with firmware loading failures for a bit, at some point this worked perfectly with my WUSB54GC dongle on Raspbian, thanks!

PS. I did not need a powered hub, I plugged the dongle directly into my Raspberry Pi.
Posts: 3
Joined: Thu May 31, 2012 4:01 pm
by Stomp » Mon Aug 13, 2012 6:58 pm
Good that it worked for you :)
Without hub I was getting very disturbing messages in dmesg (didn't saved them to show you :( ) when I was trying to bring wlan0 UP.

btw I just made the "1Ohm modification" suggested here and I'm currently running web server with this dongle. No hub.
User avatar
Posts: 35
Joined: Mon Aug 06, 2012 4:34 pm
by CrazyMouldy » Fri Aug 31, 2012 7:47 pm
when i use my powered hub, it disables the mouse and only lets the keyboard and dongle run? Help please!
Posts: 10
Joined: Fri Aug 31, 2012 7:43 pm
by Stomp » Fri Aug 31, 2012 8:20 pm
Don't think the dongle is causing the problem... Have you tried with different hub?
User avatar
Posts: 35
Joined: Mon Aug 06, 2012 4:34 pm
by CrazyMouldy » Fri Aug 31, 2012 10:00 pm
Yeah, but i don't think it's the hub, on startup, it recognises all the products, my keyboard, mouse and dongle, but as it boots the desktop, it disables a random accessory! :(
Posts: 10
Joined: Fri Aug 31, 2012 7:43 pm
by CrazyMouldy » Fri Aug 31, 2012 10:52 pm
and i'm using a linksys WUSB54GC V.3 dongle, is that okay?
Posts: 10
Joined: Fri Aug 31, 2012 7:43 pm
by Stomp » Sat Sep 01, 2012 5:45 am
I guess it's OK... (I can't check my dongle version right now)
Is this happening only when the dongle is plugged?? :|
User avatar
Posts: 35
Joined: Mon Aug 06, 2012 4:34 pm
by CrazyMouldy » Sat Sep 01, 2012 11:43 am
Yeah, the mouse and keyboard are fine, do I need to be connected via Ethernet?
Posts: 10
Joined: Fri Aug 31, 2012 7:43 pm
by Stomp » Sun Sep 02, 2012 6:33 am
Maybe try replacing the dongle with another peripheral with similar consumption and check if the hub will disable again.
User avatar
Posts: 35
Joined: Mon Aug 06, 2012 4:34 pm
by CrazyMouldy » Sun Sep 02, 2012 6:20 pm
right, will do :)
Posts: 10
Joined: Fri Aug 31, 2012 7:43 pm
by CrazyMouldy » Mon Sep 03, 2012 11:31 am
the strange thing is, i plugged my mouse and keyboard into the hub, and the dongle into the pi, yet the dongle won't work??
Posts: 10
Joined: Fri Aug 31, 2012 7:43 pm
by Stomp » Mon Sep 03, 2012 12:45 pm
Don't know what to suggest :cry:
I don't use keyboard/mouse on my Pi (don't need GUI).
I have tried webcam+wusb54gc dongle directly into the Pi (F2/3 replaced with 0Ohm resistors) and they're working fine together.
User avatar
Posts: 35
Joined: Mon Aug 06, 2012 4:34 pm
by dojjah » Thu Sep 13, 2012 11:59 pm
I am getting the following in raspbmc...

Code: Select all
[....] Running /etc/init.d/networking restart is deprecated because it may not r[warnble some interfaces ... (warning).
[....] Reconfiguring network interfaces...ifdown: failed to open statefile /run/network/ifstate: No such file or directory
ifup: failed to open statefile /run/network/ifstate: No such file or directory
failed.


Any advice? I have edited the interfaces file just like you said, and the device is recognized.
Posts: 2
Joined: Thu Sep 13, 2012 11:57 pm
by dojjah » Fri Sep 14, 2012 1:26 pm
dojjah wrote:I am getting the following in raspbmc...

Code: Select all
[....] Running /etc/init.d/networking restart is deprecated because it may not r[warnble some interfaces ... (warning).
[....] Reconfiguring network interfaces...ifdown: failed to open statefile /run/network/ifstate: No such file or directory
ifup: failed to open statefile /run/network/ifstate: No such file or directory
failed.


Any advice? I have edited the interfaces file just like you said, and the device is recognized.


Nevermind this post. I installed the Network Manager add-on in raspbmc and it detected this card right away. Working excellent! Oh and I did not need a USB self powered hub. I was using a Droid X2 charger initially and it would power the card, but when adding another device both would not work (like the above posters issue)..so I hooked it up to my iPad2 power adapter and I was able to power the card and a keyboard/mouse. I hope this is not too much power being pushed to the unit.
Posts: 2
Joined: Thu Sep 13, 2012 11:57 pm
by Stomp » Sat Sep 15, 2012 7:24 pm
dojjah wrote:I hope this is not too much power being pushed to the unit.

I think the main fuse was 1,1A.
User avatar
Posts: 35
Joined: Mon Aug 06, 2012 4:34 pm
by CrazyMouldy » Thu Sep 27, 2012 8:52 pm
well, I've finally got all the hardware working! :D but when I try to overwrite /etc/network/interfaces it says "cannot open file to write". Is there something I'm doing wrong?
Posts: 10
Joined: Fri Aug 31, 2012 7:43 pm
by Stomp » Fri Sep 28, 2012 6:46 am
CrazyMouldy wrote:well, I've finally got all the hardware working! :D

What was the problem?

CrazyMouldy wrote:but when I try to overwrite /etc/network/interfaces it says "cannot open file to write". Is there something I'm doing wrong?

No idea... You are editing it with root privileges, right?
User avatar
Posts: 35
Joined: Mon Aug 06, 2012 4:34 pm
by CrazyMouldy » Fri Sep 28, 2012 6:53 am
the hub had a faulty port, i think ;) i'll have to check tonight, i'll post what happens :)
Posts: 10
Joined: Fri Aug 31, 2012 7:43 pm
by CrazyMouldy » Fri Sep 28, 2012 9:30 pm
right, i've added the wlan0 stuff, but it's not liking the networking restart, its got to "reconfiguring network interfaces..." and the copyright and has been there for about 10 minutes, i've already tried it several times with no success :(
how long should it usually take?
Posts: 10
Joined: Fri Aug 31, 2012 7:43 pm
by Stomp » Sat Sep 29, 2012 6:54 am
Like immediately? :? Maybe it's a good idea to double check all the changes you made.
User avatar
Posts: 35
Joined: Mon Aug 06, 2012 4:34 pm
by CrazyMouldy » Sun Sep 30, 2012 5:37 pm
finally finished and left it pinging for an hour :D thanks a lot mate :)
Posts: 10
Joined: Fri Aug 31, 2012 7:43 pm
by cisasteelersfan » Sat Nov 03, 2012 10:17 pm
My network is WEP (Yes, I know insecure). So it obviously isn't working for me. I tried changing

wpa-ssid <AP-SSID>
wpa-psk <KEY>


to

wireless-essid <SSID>
wireless-key <KEY>


but it still isn't working. Anybody know of a solution?

Any suggestions are appreciated
Posts: 3
Joined: Sat Nov 03, 2012 7:44 pm