Page 1 of 1

Realtech 8191su Wifi setup

Posted: Fri Jun 06, 2014 2:10 pm
by steveM
I cannot seem to get the above to work with my wireless router setup.

It seems every internet Raspberry Pi help site gives a slightly different way of setting up wifi. I've tried them all! What have I left out?

Here is what I have:

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.6.11+ #434 PREEMPT Wed May 1 21:13:52 BST 2013 armv6l GNU/Linux


pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 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.
Bus 001 Device 004: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter

pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo

iface lo inet loopback
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.2


allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "WiFi 2"
wpa-psk "Captain"
pi@raspberrypi ~ $

pi@raspberrypi ~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="WiFi 2"
psk="Captain"

pi@raspberrypi ~ $ iwconfig
wlan0 IEEE 802.11bgn ESSID:"WFYC WiFi 2" Nickname:"rtl_wifi"
Mode:Managed Frequency:2.437 GHz Access Point: F8:D1:11:B1:E4:56
Bit Rate:150 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=99/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

lo no wireless extensions.

ham0 no wireless extensions.

eth0 no wireless extensions.

pi@raspberrypi ~ $ iwlist wlan0 scan
Cell 06 - Address: F8:D1:11:B1:E4:56
ESSID:"WiFi 2"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.437 GHz (Channel 6)
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:wpa_ie=dd180050f20101000050f20401000050f20401000050f2020c00
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD730050F204104A00011010440001021041000100103B00010310470010BF0E09F788936CF72D484F649A6CC5F71021000754502D4C494E4B1023000754502D4C494E4B1024000631323334353610420004313233341054000800060050F20400011011000954442D57383936304E100800020088
Signal level=26/100

Re: Realtech 8191su Wifi setup

Posted: Fri Jun 06, 2014 3:45 pm
by MrEngman
With the setup you have for /etc/network/interfaces that should work and it does not need wpa_supplicant.conf setting up.

To use wpa_supplicant.conf one set up could be like

Code: Select all

 for /etc/network/interfaces
----------------------------------------------------
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
----------------------------------------------------

and for /etc/wpa_supplicant/wpa_supplicant.conf
----------------------------------------------------
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
	ssid="network-name"
	psk="network-password"
}
----------------------------------------------------
Just using /etc/network/interfaces

Code: Select all

for /etc/network/interfaces
----------------------------------------------------
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "network-name"
wpa-psk "network-password"

----------------------------------------------------
which is what I use and is similar to yours except you have eth0 set to use a fixed IP and it does not need wpa_supplicant.conf. I have also used a fixed IP and it is just like yours and worked OK.

To start up the wifi you could try using the command

Code: Select all

sudo ifup --force wlan0
more than once if it doesn't work the first time. Another way is to remove the wifi and reboot. Then shut down the PI add back the wifi and start it up again. This has worked for me and I think it does as it probably clears rubbish config data allowing it to start properly when rebooted with the wifi reconnected.


MrEngman

Re: Realtech 8191su Wifi setup

Posted: Sat Jun 07, 2014 10:28 am
by steveM
Thanks for the replies. Soon after my post it suddenly started working and has remaind stable ever since.
I guess it took a while longer for the router and WiFi dongle to establish communications.