For a full flatout 802.11b/g/n (300 Mbps) device you could use EDUP MS8512 this is based on the RTL 8191SU chipset and the setup instructions are the exact same.
The raspi is not connected to any display so everything is over the terminal, ie headless. I started reading about setting up wifi on a raspi, and then generic linux and it took me quite a while to figure out, but eventually we have both interfaces up!
I am sharing my config here for others, as this is the only thing that worked for me.
TEST SETUP : WPA-PSK2 TKIP with hidden ssid but this will work with any WPA combo you are going to use at home.
Once you connect the Edimax, it gets detected and setup hardware wise by itself, a reboot is a good idea if for some reason the pi does not bring it up.
Output to iwconfig should look so...
Code: Select all
$ iwconfig
lo no wireless extensions.
wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
Your /etc/network/interfaces file should be configured so...
lines starting with a # are commented, adding/removing # enables disables comments(not considered part of configuration as far as setup is concerned)
In case you need to change from DHCP to static IPs, you just need to swap the commenting and provide the 3 parameters manually.
Code: Select all
$ sudo cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wireless-essid myssid
#address 192.168.1.30
#netmask 255.255.255.0
#gateway 192.168.1.20
pre-up wpa_supplicant -B w -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
post-down killall -q wpa_supplicant
#wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
This is a very IMPORTANT step, your pi is not gonna go wifi without this.
You know your ssid, and you know the password, it will generate the psk key, COPY that.
Code: Select all
$ wpa_passphrase myssid password
network={
ssid="myssid"
#psk="password"
psk=2fe820b1e836cb734fb88172egfi01c5d40bb8449cc55c6e26ce300bbe8e04c7
}
It should look so...
Code: Select all
$ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="myssid"
proto=WPA RSN
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=2fe820b1e836cb734fb88172egfi01c5d40bb8449cc55c6e26ce300bbe8e04c7
}
To bring the interface up..
Code: Select all
$ sudo ifup wlan0
rfkill: Cannot open RFKILL control device
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
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/80:1f:02:7e:8d:cd
Sending on LPF/wlan0/80:1f:02:7e:8d:cd
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.1.20
DHCPACK from 192.168.1.20
bound to 192.168.1.28 -- renewal in 40141 seconds.
Now when you check iwconfig, you should see an output like this.
Code: Select all
$ iwconfig
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"epi" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.412 GHz Access Point: 00:23:69:9A:A9:48
Bit Rate:150 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=100/100 Signal level=100/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
Quick testing from remote machine...
Code: Select all
$ ssh [email protected]
[email protected]'s password:
Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Dec 24 19:25:01 2012 from 192.168.1.22
pi@raspberrypi ~ $ telnet www.google.com 80
Trying 74.125.224.49...
Connected to www.google.com.
Escape character is '^]'.
GET / HTTP/1.1
Host: www.google.com
HTTP/1.1 200 OK
Date: Tue, 25 Dec 2012 03:38:53 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie: PREF=ID=c2653dc8c69ffb91:FF=0:TM=1356406733:LM=1356406733:S=jnS9KGePLuB2RomV; expires=Thu, 25-Dec-2014 03:38:53 GMT; path=/; domain=.google.com
Set-Cookie: NID=67=GpLMt0TfULT7vC2QxTOHyyRnj6__4V6vhxL_GLgj6tYk3OhYNLTnSi94ozeW7i2jHRrijXDPk4TNI6LhcoMGaetRAbWHX3TKdKu8Dg_QZvPOie_IFbNQPFdpT5Nq96t3; expires=Wed, 26-Jun-2013 03:38:53 GMT; path=/; domain=.google.com; HttpOnly
P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Transfer-Encoding: chunked