red6
Posts: 61
Joined: Thu Sep 20, 2012 12:32 am
Location: Toronto, Canada

Wifi Out of the Box on Sep 17 2012 Raspbian

Mon Sep 24, 2012 10:02 pm

I might be stupid but I am no dummy....

What am I missing? I cannot associate with my Wireless AP. I just bought a Patriot Wifi USB stick today and it works on my Centos 6.3 Laptop but I can't seem to get to the last step of getting it running on either of my 2 Pi's. As you can see below, I was careful to select a RLTK chip.

Ethernet works great. I like to run headless with Putty.
Have SFTP, Apache2, PHP, Shorewall working.

Powered hub seems to be doing a nice job including powering the Pi.

HDMI works okay when configured exactly to meet my Samsung HiDef 19inch TV.

Wireless mouse works great.

Wired keyboard is touch and go. No pun intended.

USB SD card for rsync backups every night working 90%.

Just can't connect to my WLAN... Help anyone? Please?

Here is my config...

Code: Select all

root@raspberrypi:~# cat /proc/cpuinfo
Processor       : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2708
Revision        : 0003
Serial          : 00000000bbc9b6e3


root@raspberrypi:~# uname -a
Linux raspberrypi 3.2.27+ #160 PREEMPT Mon Sep 17 23:18:42 BST 2012 armv6l GNU/Linux

root@raspberrypi:~# cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="Asus520GC"
        psk="xxxxxxxxxxxxxx"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=TKIP
        auth_alg=OPEN
}

root@raspberrypi:~# cat /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

root@raspberrypi:~# ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:c9:b6:e3
          inet addr:192.168.1.138  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1374 errors:0 dropped:0 overruns:0 frame:0
          TX packets:505 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:136733 (133.5 KiB)  TX bytes:62839 (61.3 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1104 (1.0 KiB)  TX bytes:1104 (1.0 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:02:72:bb:6d:53
          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)

root@raspberrypi:~# iwconfig
lo        no wireless extensions.

wlan0     unassociated  Nickname:"rtl_wifi"
          Mode:Managed  Access Point: Not-Associated   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key: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.

root@raspberrypi:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 046d:c31d Logitech, Inc.
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 006: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 007: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter

root@raspberrypi:~# iwlist wlan0 scan
wlan0     Scan completed :
<snip>
          Cell 03 - Address: 90:E6:BA:92:AE:34
                    ESSID:"Asus520GC"
                    Protocol:IEEE 802.11bg
                    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=dd180050f20101000050f20201000050f20201000050f2020c00
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    Signal level=100/100

AllegroMan
Posts: 11
Joined: Sat May 19, 2012 10:41 pm

Re: Wifi Out of the Box on Sep 17 2012 Raspbian

Mon Sep 24, 2012 11:04 pm

Are you missing auto wlan0 in your /etc/network/interfaces ?

What happens if you do ifup wlan0 at the command line ?

I'm not too familiar with using a supplicant file, but I can connect to my wlan with just the following in /etc/network/interfaces:

Code: Select all

auto wlan0
iface wlan0 inet dhcp
    wireless-essid ssid
    wireless-mode managed
    wireless-key key
Or for a static IP

Code: Select all

auto wlan0
iface wlan0 inet static
    address 192.168.1.72
    netmask 255.255.255.0
    gateway 192.168.1.1
    wireless-essid ssid
    wireless-mode managed
    wireless-key key
Try putting that in and booting from cold. Watch the messages - you should see it assign an IP via dhcp if it's working.

red6
Posts: 61
Joined: Thu Sep 20, 2012 12:32 am
Location: Toronto, Canada

Re: Wifi Out of the Box on Sep 17 2012 Raspbian

Tue Sep 25, 2012 3:03 am

Just attempted your config's.

Still no association with my AP.

JustPat
Posts: 35
Joined: Fri Jul 27, 2012 1:47 am

Re: Wifi Out of the Box on Sep 17 2012 Raspbian

Tue Sep 25, 2012 3:25 am

Ok, I have no answer to you Wifi problem, but I notice another problem. You say you power your pi with your USB hub. Do you have a Rev2 board, the one with the mounting holes? I'm a complete noob at this and I did this exact same thing to power my pi when I realized it worked, but supposedly its bad for the Rev1 pis to power through a USB port on the pi. Supposedly some resistors that the Rev1 have that the Rev2 don't have can corrupt the SD card if you backfeed power through the USB port without also forward feeding power through the mirco USB port. Somebody please correct me if I'm wrong, but I don't think it's good to only power the pi through the USB port without also powering through the micro USB port.

red6
Posts: 61
Joined: Thu Sep 20, 2012 12:32 am
Location: Toronto, Canada

Re: Wifi Out of the Box on Sep 17 2012 Raspbian

Tue Sep 25, 2012 3:50 am

JustPat wrote:Ok, I have no answer to you Wifi problem, but I notice another problem. You say you power your pi with your USB hub. Do you have a Rev2 board, the one with the mounting holes? I'm a complete noob at this and I did this exact same thing to power my pi when I realized it worked, but supposedly its bad for the Rev1 pis to power through a USB port on the pi. Supposedly some resistors that the Rev1 have that the Rev2 don't have can corrupt the SD card if you backfeed power through the USB port without also forward feeding power through the mirco USB port. Somebody please correct me if I'm wrong, but I don't think it's good to only power the pi through the USB port without also powering through the micro USB port.
Thanks for your help. I should have been more specific. The powered USB hub has a port on it dedicated for recharging. (No data signals and possbily a higher current than a 'standard' usb port. So I don't have any backfeed power. ie: if the microUSB connector is not plugged in the PI is very dead, no hint of power.

As for my wireless, I am still stumped.

JustPat
Posts: 35
Joined: Fri Jul 27, 2012 1:47 am

Re: Wifi Out of the Box on Sep 17 2012 Raspbian

Tue Sep 25, 2012 4:13 am

Ok, I gotcha. Sorry I can't help with your Wifi problem.

AllegroMan
Posts: 11
Joined: Sat May 19, 2012 10:41 pm

Re: Wifi Out of the Box on Sep 17 2012 Raspbian

Tue Sep 25, 2012 12:15 pm

You sound clued up enough to have checked this already, but I'll ask anway... :) Do you have MAC address filtering enabled on your router? I have mine set to permit only mode, so I have to specify the MAC address of each device that is allowed to connect.

Also, have you tried changing the wifi channel on the router? I don't know what your usb wifi supports, but I have some devices ('chipad' tablets and a Dell laptop) that only conform to international standards which are channels 1 through 10. In the UK we also have channels 11 and 12. If my router is set to channel 11 or 12, these devices can't connect.

red6
Posts: 61
Joined: Thu Sep 20, 2012 12:32 am
Location: Toronto, Canada

Re: Wifi Out of the Box on Sep 17 2012 Raspbian

Tue Sep 25, 2012 1:33 pm

AllegroMan wrote:You sound clued up enough to have checked this already, but I'll ask anway... :) Do you have MAC address filtering enabled on your router? I have mine set to permit only mode, so I have to specify the MAC address of each device that is allowed to connect.

Also, have you tried changing the wifi channel on the router? I don't know what your usb wifi supports, but I have some devices ('chipad' tablets and a Dell laptop) that only conform to international standards which are channels 1 through 10. In the UK we also have channels 11 and 12. If my router is set to channel 11 or 12, these devices can't connect.
Interesting. It does seem that DHCP is not working. I'll have to turn my router logs on to verbose.

red6
Posts: 61
Joined: Thu Sep 20, 2012 12:32 am
Location: Toronto, Canada

Re: Wifi Out of the Box on Sep 17 2012 Raspbian

Tue Sep 25, 2012 2:23 pm

Used the gui desktop to run wicd this morning. I was able to connect to a router. Not sure why wicd did some magic that I could NOT do by editing /etc/network/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf. Only problem is that I am connected to the wrong router. Bust be something different between the 2 routers also.

Does anyone know if wicd is dependant on wpa_supplicant daemon?

Return to “Beginners”