mr99_
Posts: 3
Joined: Thu Sep 27, 2012 8:38 am

How to config USB wifi

Thu Sep 27, 2012 8:55 am

i have a usb wifi, and i'm using the newest image (published at 9-18),
the type of chip of my usb wifi is rtl8192

and when i type:
iwconfig
It seems that the driver is working, and list wlan0 .........
but how to config it to connect the net?

the command: sudo iwconfig wlan0 essid *** key ***
it doesn't work!

when i use this usb wifi in Ubuntu, it can be configed by using GUI, and i just have to click the mouse to choose a wlan, and type the passward, the net can be connected automatically.
So this device is OK!

i just don't know how to config it, can anybody tell me

User avatar
MrBunsy
Posts: 185
Joined: Mon Feb 20, 2012 1:48 pm
Location: Southampton, UK
Contact: Website

Re: How to config USB wifi

Thu Sep 27, 2012 11:42 am

Have you tried the new GUI tool? There's a link to it on the desktop if you run startx.

mr99_
Posts: 3
Joined: Thu Sep 27, 2012 8:38 am

Re: How to config USB wifi

Fri Sep 28, 2012 12:58 pm

No, I did'nt use the GUI tool of raspbian, actually, I just want to config it with command line. But the guide in the web seems can not work. Did anyone config the wifi of raspbi successfully?
MrBunsy wrote:Have you tried the new GUI tool? There's a link to it on the desktop if you run startx.

Olaf_Ramge
Posts: 16
Joined: Thu Sep 27, 2012 12:23 pm

Re: How to config USB wifi

Sat Sep 29, 2012 9:39 am

Hi,
iwconfig works only with wep encryption.
If you use WPA/WPA2 then iwconfig will not work.

My /etc/network/interfaces looks just like this:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "secret-wiki-net"
wpa-psk "verysecret-wpa-psk"

I can shut wlan0 up/down with:
ifup wlan0
ifdown wlan0

I can look with:
root@raspberrypi:/etc/default# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"secret-wifi-net"
Mode:Managed Frequency:2.472 GHz Access Point: 74:EA:3A:FD:07:6F
Bit Rate=52 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=35/70 Signal level=-75 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:9 Missed beacon:0

And get a dynamic ip with:
dhclient wlan0


Hope that helps.

Olaf

mr99_
Posts: 3
Joined: Thu Sep 27, 2012 8:38 am

Re: How to config USB wifi

Sun Oct 07, 2012 9:16 am

Thanks a lot!
Olaf_Ramge wrote:Hi,
iwconfig works only with wep encryption.
If you use WPA/WPA2 then iwconfig will not work.

My /etc/network/interfaces looks just like this:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "secret-wiki-net"
wpa-psk "verysecret-wpa-psk"

I can shut wlan0 up/down with:
ifup wlan0
ifdown wlan0

I can look with:
root@raspberrypi:/etc/default# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"secret-wifi-net"
Mode:Managed Frequency:2.472 GHz Access Point: 74:EA:3A:FD:07:6F
Bit Rate=52 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=35/70 Signal level=-75 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:9 Missed beacon:0

And get a dynamic ip with:
dhclient wlan0


Hope that helps.

Olaf

Return to “Add-ons”

Who is online

Users browsing this forum: No registered users and 6 guests