Please be aware of all shipping deadlines before placing your order - we cannot guarantee orders will arrive before Christmas!

Occidentals2 and WiFi Module (ID 814)
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Occidentals2 and WiFi Module (ID 814)

by phedlund on Wed Jan 30, 2013 5:05 pm

I have the occidentails2 and are using the Miniature WiFi (802.11b/g/n) Module from Adafruit.
I am unable to get the wireless communications working.
Using Nano I have setup the network with my SSID and password for my wireless unit.
(I have 2 laptops set with the same settings
Following other threads I have the output from my ifconfig

Here is the output from my sudo ifconfig -a

eth0 Link encap:Ethernet HWaddr b8:27:eb:be:2e:9f
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)

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 00:e0:4c:10:46:f3
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)


I also tried the sudo ifconfig wlan0 up without any effect.
I have tried with and without a powered external hubs
I have tried e different hubs.

The Pi is powered by a 5.25 volt 1a power supply (from Adafruit)
Hub power supplies 1.0 amps, 2.5 amps, .5 amps
None of them worked with the wi-fi adapter.

What am I doing wrong or did i get a bad Wi-fi module?

Pete Hedlund
phedlund
 
Posts: 14
Joined: Fri Jan 18, 2013 3:06 pm

Re: Occidentals2 and WiFi Module (ID 814)

by pburgess on Wed Jan 30, 2013 9:29 pm

Hi Pete,

Is this a 'hidden' network, or is the SSID broadcast? What mode of authentication (WPA2, etc.) is used by the network?
User avatar
pburgess
 
Posts: 2760
Joined: Sun Oct 26, 2008 2:29 am

Re: Occidentals2 and WiFi Module (ID 814)

by phedlund on Thu Jan 31, 2013 9:49 am

My connection is open SSID and I am using WEP encryption with network security key.
phedlund
 
Posts: 14
Joined: Fri Jan 18, 2013 3:06 pm

Re: Occidentals2 and WiFi Module (ID 814)

by tldr on Thu Jan 31, 2013 4:26 pm

try lsmod. you should see something like this...

Code: Select all | TOGGLE FULL SIZE
pi@raspberrypi ~ $ lsmod
Module                  Size  Used by
i2c_dev                 5587  0
snd_bcm2835            12808  0
snd_pcm                74834  1 snd_bcm2835
snd_seq                52536  0
snd_timer              19698  2 snd_seq,snd_pcm
snd_seq_device          6300  1 snd_seq
snd                    52489  5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
snd_page_alloc          4951  1 snd_pcm
spidev                  5136  0
8192cu                485042  0
spi_bcm2708             4401  0
i2c_bcm2708             3681  0


this morning i wasn't seeing 8192cu which is the driver for the realtek chip used in the wifi adapter. i plugged in an ethernet cable and ran

sudo apt-get update

and

sudo apt-get upgrade

this took a while, (especially from the repository for raspberry pi documentation), but when it was finally over i rebooted with

sudo shutdown -r 0

and when it came back up the driver was loaded and the adapter was up and connected.
"If I had known it was harmless, I would have killed it myself." - Phillip K. Dick, A Scanner Darkly
User avatar
tldr
 
Posts: 466
Joined: Thu Aug 30, 2012 1:34 am

Re: Occidentals2 and WiFi Module (ID 814)

by phedlund on Sat Feb 02, 2013 10:49 am

After almost an hour i did the update / upgrade
It was successfull
After re-booting the wi-fi still does not respond.

ping google.com
ping: unknown host google.com

ifconfig shows the same as before.
lsmod shows

Module Size Used by
8192cu 485042 0

Is the wi-fi module broken?
and if so I need a RMA number.

Pete
phedlund
 
Posts: 14
Joined: Fri Jan 18, 2013 3:06 pm

Re: Occidentals2 and WiFi Module (ID 814)

by adafruit_support_rick on Sat Feb 02, 2013 11:10 am

Not sure you actually want to do the upgrade - that seems to overwrite some of the adafruit hardware extensions in occidentalis.

Do you have the WiFi module connected directly to the Pi? We don't recommend this, as the Pi typically does not supply enough power to run the WiFi module reliably. Try the module through a powered hub.

adafruit_support_rick
 
Posts: 14541
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Occidentals2 and WiFi Module (ID 814)

by phedlund on Sat Feb 02, 2013 11:57 am

As I have stated above, I have tried this with 3 different hubs.
Before and after the update
the Wi-fi module is not responding
the pi does work when connected to ethernet

Is there a way to use a crossover cable and use the wifi on the laptop ?
phedlund
 
Posts: 14
Joined: Fri Jan 18, 2013 3:06 pm

Re: Occidentals2 and WiFi Module (ID 814)

by tldr on Sat Feb 02, 2013 2:01 pm

what does "iwlist wlan0 scan" show?
"If I had known it was harmless, I would have killed it myself." - Phillip K. Dick, A Scanner Darkly
User avatar
tldr
 
Posts: 466
Joined: Thu Aug 30, 2012 1:34 am

Re: Occidentals2 and WiFi Module (ID 814)

by adafruit_support_rick on Sat Feb 02, 2013 7:15 pm

Alright, sounds like a funky adapter. Please contact support@adafruit.com for a replacement. Reference this thread and include your original order number.

adafruit_support_rick
 
Posts: 14541
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Occidentals2 and WiFi Module (ID 814)

by phedlund on Sun Feb 03, 2013 10:12 am

I have run lsmod, ifconfig and iwlsit with the following results.
I used a hub with a 1amp supply and the wifi adapter was the only item on the hub.

pi@raspberrypi ~ $ lsmod
Module Size Used by
i2c_dev 5587 0
snd_bcm2835 12808 0
snd_pcm 74834 1 snd_bcm2835
snd_seq 52536 0
snd_timer 19698 2 snd_seq,snd_pcm
snd_seq_device 6300 1 snd_seq
snd 52489 5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
snd_page_alloc 4951 1 snd_pcm
8192cu 485042 0
evdev 8682 3
spidev 5136 0
spi_bcm2708 4401 0
i2c_bcm2708 3681 0

pi@raspberrypi ~ $ sudo iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 0C:D5:02:61:F2:82
ESSID:"10FX12184429"
Protocol:IEEE 802.11bg
Mode:Master
Frequency:2.437 GHz (Channel 6)
Encryption key:on
Bit Rates:54 Mb/s
Quality=96/100 Signal level=94/100
Cell 02 - Address: 00:24:B2:1B:85:C0
ESSID:"wireless"
Protocol:IEEE 802.11bg
Mode:Master
Frequency:2.462 GHz (Channel 11)
Encryption key:on
Bit Rates:54 Mb/s
Extra:wpa_ie=dd160050f20101000050f20201000050f20201000050f202
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Quality=55/100 Signal level=3/100
Cell 03 - Address: 74:44:01:A1:46:1A
ESSID:"Nacho Internet"
Protocol:IEEE 802.11bg
Mode:Master
Frequency:2.447 GHz (Channel 8)
Encryption key:off
Bit Rates:54 Mb/s
IE: Unknown: DD0E0050F204104A0001101044000102
Quality=0/100 Signal level=7/100

pi@raspberrypi ~ $ sudo ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:be:2e:9f
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)

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 00:e0:4c:10:46:f3
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)
phedlund
 
Posts: 14
Joined: Fri Jan 18, 2013 3:06 pm

Re: Occidentals2 and WiFi Module (ID 814)

by adafruit_support_rick on Sun Feb 03, 2013 10:43 am

What do you see on the console during boot? Do you see any DHCP requests? Any DHCP failures, like no DHCPOFFERS?

adafruit_support_rick
 
Posts: 14541
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Occidentals2 and WiFi Module (ID 814)

by phedlund on Sun Feb 03, 2013 11:05 am

DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7

intermals change

results
no DCHPOFFERS found
phedlund
 
Posts: 14
Joined: Fri Jan 18, 2013 3:06 pm

Re: Occidentals2 and WiFi Module (ID 814)

by adafruit_support_rick on Sun Feb 03, 2013 11:36 am

Ah. Well, based on that, and your results from sudo iwlist wlan0 scan, I'm inlined to think that there's nothing wrong with your WiFi module after all.

You're certain that SSID broadcast is enabled on your access point?

Verify that you have /etc/network/interfaces configured correctly. The example in the Adafruit Learning System assumes that you are using WPA encryption. If you are using WEP, you need a slightly different configuration. I found the following WEP setup here

Code: Select all | TOGGLE FULL SIZE
# The loopback network interface
auto lo
iface lo inet loopback

# The primary (wired) network interface
iface eth0 inet dhcp

# The wifi (wireless) network interface
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
        wireless-essid YOUR_SSID
        wireless-key YOUR_WEP_KEY

adafruit_support_rick
 
Posts: 14541
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY