USB WiFi ID:1012

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/
User avatar
jdwbmc
 
Posts: 22
Joined: Fri Aug 26, 2011 10:39 am

USB WiFi ID:1012

Post by jdwbmc »

I am trying to use the OurLink USB WiFi module (Adafruit ID:1012). I have been following the instructions in the Raspberry Pi User Guide for setting up wifi. No joy. I have the right firmware - realtek. I have been able to edit the /etc/network/interfaces file. I was also able to create a wpa.conf file that contains the ssid and other information for connecting to the network. The command "sudo iwlist scan | less" finds my network. Any chance of a tutorial or instructions on how to get this device running? Thanks.

John

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: USB WiFi ID:1012

Post by adafruit »

are you using Occidentalis?

User avatar
jdwbmc
 
Posts: 22
Joined: Fri Aug 26, 2011 10:39 am

Re: USB WiFi ID:1012

Post by jdwbmc »

I've tried this with both Occidentalis 0.2 and the 2012-09-18-wheezy-raspbian images.

User avatar
jdwbmc
 
Posts: 22
Joined: Fri Aug 26, 2011 10:39 am

Re: USB WiFi ID:1012

Post by jdwbmc »

I should also mention that I'm running the Pi headless over an ethernet cable. PuTTY works fine. Xming will pop up a window on my laptop if I run Midori or Idle. I also now have Tightvnc running so I can see the Pi screen. I'm trying to get to the next stage so I can connect to the Pi wirelessly and still run it headless. Thanks.

John

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: USB WiFi ID:1012

Post by adafruit »

delete wpa.conf and any other files you made. you should only require editing /etc/network/interfaces

reboot with the wifi adapter installed. run ifconfig -a and post the results

User avatar
jdwbmc
 
Posts: 22
Joined: Fri Aug 26, 2011 10:39 am

Re: USB WiFi ID:1012

Post by jdwbmc »

Here is the result of the experiment:

The following are with 2012-09-18 wheezy first without wifi plugged in and then with it plugged in.
These are with the default /etc/network/interfaces file and no wpa.conf file
Cannot connect to system when started with both wireless and ethernet plugged in at the same time.

pi@raspberrypi ~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:6a:8a:31
inet addr:192.168.1.27 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4888 errors:0 dropped:0 overruns:0 frame:0
TX packets:143 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:231980 (226.5 KiB) TX bytes:16461 (16.0 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)

pi@raspberrypi ~ $

----

pi@raspberrypi /etc $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:6a:8a:31
inet addr:192.168.1.27 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5112 errors:0 dropped:0 overruns:0 frame:0
TX packets:327 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:247886 (242.0 KiB) TX bytes:42757 (41.7 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:e0:4c:0a:7d:16
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:23 errors:0 dropped:211 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3059 (2.9 KiB) TX bytes:3565 (3.4 KiB)

pi@raspberrypi /etc $

----
With Occidentalis 0.2 ethernet cable only - standard configuration

pi@raspberrypi ~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:6a:8a:31
inet addr:192.168.1.31 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4940 errors:0 dropped:0 overruns:0 frame:0
TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:234773 (229.2 KiB) TX bytes:19729 (19.2 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: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)

pi@raspberrypi ~ $
---
After plugging in wifi into running Occidentalis 0.2

pi@raspberrypi ~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:6a:8a:31
inet addr:192.168.1.31 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4996 errors:0 dropped:0 overruns:0 frame:0
TX packets:184 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:240970 (235.3 KiB) TX bytes:23361 (22.8 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: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:0a:7d:16
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)

pi@raspberrypi ~ $ iwconfig
lo no wireless extensions.

eth0 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

pi@raspberrypi ~ $ sudo iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: A0:21:B7:75:BC:C6
ESSID:"bmc2_EXT"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.417 GHz (Channel 2)
Encryption key:on
Bit Rates:300 Mb/s
Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD7E0050F204104A00011010440001021041000100103B00010310470010DEA1CB8D7392ACC4DB87D2FC2A8B79241021000D4E4554474541522C20496E632E10230008574E33303030525010240008574E3330303052501042000230311054000800060050F204000110110008574E333030305250100800020084103C000101
Quality=97/100 Signal level=48/100
Cell 02 - Address: E0:91:F5:CC:38:24
ESSID:"bmc2"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.417 GHz (Channel 2)
Encryption key:on
Bit Rates:300 Mb/s
Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD860050F204104A0001101044000102103B0001031047001000000000000010000000E091F5CC38241021000D4E6574676561722C20496E632E10230008574E4452333730301024000456314831104200046E6F6E651054000800060050F204000110110017574E445233373030763228576972656C65737320415029100800020086103C000103
Quality=100/100 Signal level=86/100

pi@raspberrypi ~ $ sudo ifup wlan0
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/00:e0:4c:0a:7d:16
Sending on LPF/wlan0/00:e0:4c:0a:7d:16
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
Unable to obtain a lease on first try. Exiting.
Failed to bring up wlan0.

pi@raspberrypi ~ $

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: USB WiFi ID:1012

Post by adafruit »

hate to ask, but are you absolutely positive you're using WPA and the password is right? the wifi module is working - it just cant connect to your router and get a lease!

User avatar
jdwbmc
 
Posts: 22
Joined: Fri Aug 26, 2011 10:39 am

Re: USB WiFi ID:1012

Post by jdwbmc »

A fair question to ask. Yes, I'm using WPA. I edited the /etc/network/interfaces file to account for the wpa-ssid and wpa-psk. If TI first try to shutdown the wireless I get the following:

pi@raspberrypi ~ $ sudo ifdown wlan0
ifdown: interface wlan0 not configured

This makes me wonder about what is needed to configure wlan0 beyond what I've done so far.

John

User avatar
guysmith
 
Posts: 2
Joined: Fri Sep 28, 2012 9:17 am

Re: USB WiFi ID:1012

Post by guysmith »

I have the same problem. edited interfaces file to add my ssid and pw. made sure router was set up for wpa2 (which i understand is what it really is looking for (did both wpa and wpa2)) . no joy. will not give scan results. (No scan results.) also i DO see the 255.255 bit of trying to get a lease. In ifconfig it does show the mac addr for the wlan0. Using the same ourlink micro wifi dongle form adafruit. was going to try unsecured connection to router but not sure if the Pi can do unsecured or the code needed in the interfaces file to do it. HELP here also...pls.
Using Occ 02 and also check wifi moule in a win7 computer. works fine there.
Also another symptom (?) ... there is no light on wifi moule showing connection. The light in the module does not come on anytime.

...guy

found a post on unsecured set up trying that.
also when I put Wifi module on usb and reboot the eth0 goes crazy. gets kevent 4 may have been dropped (like 250 of them streaming.)

User avatar
jdwbmc
 
Posts: 22
Joined: Fri Aug 26, 2011 10:39 am

Re: USB WiFi ID:1012

Post by jdwbmc »

Any further thoughts on a potential solution?

John

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: USB WiFi ID:1012

Post by adafruit »

jdwbmc wrote:Any further thoughts on a potential solution?

John
not sure what to say, hundreds of them are working well and we've never had a problem - we think its something on your network, not the module. we can give you a refund - email [email protected]

User avatar
guysmith
 
Posts: 2
Joined: Fri Sep 28, 2012 9:17 am

Re: USB WiFi ID:1012

Post by guysmith »

Over the last weekend I got the Wheezy distro from raspberry pi site. GUESS WHAT.... Everything works great with NO PROBLEMS to set up. Even had a WiFi setup on the gui page that worked great. I originally got the adafruit distro for the i2c and spi but the new Wheezy distro has those already in it. Just had to add to the modules and all worked. My chronodot clock works great. And the WiFi came right up so don't think the response that it must be "on my side" was all that accurate. So sorry Adafruit....going with Wheezy distro for now. You might think of adding the part of the Wheezy distro for the WiFi module setup on the GUI to the next gen of the Occi 0.2. p.s. Even the One Wire module works in Wheezy with my 18B20's...


....guy

User avatar
jdwbmc
 
Posts: 22
Joined: Fri Aug 26, 2011 10:39 am

Re: USB WiFi ID:1012

Post by jdwbmc »

While I appreciate the opportunity to get a refund, I'd prefer to solve the problem. Following Guy's suggestion, I did create an SD card with Wheezy as the OS. With this I could run wpa_gui. I noticed a few things. A scan would find all the wireless networks in the area. When trying to connect to my network, it would get as far as displaying a message about a 4 way handshake (station), but it never actually acquired an IP address. It also displayed the BSSID. Does this provide a better indication of what I might try next?

John

User avatar
svinzant
 
Posts: 19
Joined: Mon May 16, 2011 2:30 pm

Re: USB WiFi ID:1012

Post by svinzant »

John,
Have you verified that the SSID and password you entered in the /etc/network/interfaces config file were entered in the proper cAsE sEnSiTiViTy?
Scott

User avatar
jdwbmc
 
Posts: 22
Joined: Fri Aug 26, 2011 10:39 am

Re: USB WiFi ID:1012

Post by jdwbmc »

Good question. Yes I had the case and network information correct. I have 8 devices set up to use the wifi network. I just want to add one more ;-)
I wonder if I have some complication arising from the fact that I'm running headless with an ethernet cable while trying to get wireless working. I'm going to try and just hook up a keyboard/monitor/mouse and see if I can get it running without running headless at the same time.

Locked
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/

Return to “Adafruit Raspberry Pi® accessories”