problem with WiFi adapter Adafruit ID:814 on Pi

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/
Locked
dboyd
 
Posts: 4
Joined: Wed Mar 05, 2014 7:22 pm

problem with WiFi adapter Adafruit ID:814 on Pi

Post by dboyd »

Hi

I have been trying unsuccessfully to get my new Miniature WiFi adapter (Adafruit ID: 814) working.
I am using Occidentalis v0.2 and followed the tutorial (Adafruit's Raspberry Pi Lesson 3. Network Setup) to edit the configuration file (see below). I also tried editing the file for hidden SSID (not shown below), disabled the power saver and tried the adapter in the USB on the PI and in a powered USB hub.
I installed the adapter on my laptop and it worked fine.
Can you give me some more things to try?
Thanks Dennis

dboyd (order# 441436)

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "Pithon2"
wpa-psk "1A2B3C4D5E"

# Disable power saving
options 8192cu rtw_power_mgnt=0

pi@raspberrypi ~ $ sudo ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:f5:e3:46
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:761 errors:0 dropped:0 overruns:0 frame:0
TX packets:1188 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49926 (48.7 KiB) TX bytes:1275262 (1.2 MiB)

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:13:ef:d0:24:7d
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)

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: problem with WiFi adapter Adafruit ID:814 on Pi

Post by adafruit_support_mike »

What output do you get from `lsusb` and `sudo ifup wlan0`?

dboyd
 
Posts: 4
Joined: Wed Mar 05, 2014 7:22 pm

Re: problem with WiFi adapter Adafruit ID:814 on Pi

Post by dboyd »

Thanks Mike for the Very Fast Response

--------WiFi Adapter in USB on Pi--------

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:13:ef:d0:24:7d
Sending on LPF/wlan0/00:13:ef:d0:24:7d
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
Unable to obtain a lease on first try. Exiting.
Failed to bring up wlan0.


pi@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 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter



--------WiFi Adapter in the powered USB hub--------

pi@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 010: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 011: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 012: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB


pi@raspberrypi ~ $ sudo ifup wlan0
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWAP]: Operation not permitted
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
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:13:ef:d0:24:7d
Sending on LPF/wlan0/00:13:ef:d0:24:7d
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
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 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
Unable to obtain a lease on first try. Exiting.
Failed to bring up wlan0.
pi@raspberrypi ~ $


pi@raspberrypi ~ $ sudo ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:f5:e3:46
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15258 errors:0 dropped:0 overruns:0 frame:0
TX packets:21036 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:893710 (872.7 KiB) TX bytes:20672140 (19.7 MiB)

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:13:ef:d0:24:7d
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 ~ $

Thanks Dennis

dboyd
 
Posts: 4
Joined: Wed Mar 05, 2014 7:22 pm

Re: problem with WiFi adapter Adafruit ID:814 on Pi

Post by dboyd »

Any one have any Idea ????

Thanks Dennis

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: problem with WiFi adapter Adafruit ID:814 on Pi

Post by adafruit_support_mike »

Sorry for the delay in answering.. this one dropped off my screen.

After you try connecting the wifi dongle to the network with `sudo ifup wlan0`, do you see anything in /var/log/messages that looks like a problem with wpa_supplicant, or some other complaint from the network system?

dboyd
 
Posts: 4
Joined: Wed Mar 05, 2014 7:22 pm

Re: problem with WiFi adapter Adafruit ID:814 on Pi

Post by dboyd »

Sorry for the delay, we have had a death in the family. I will get back to this project a little later
Thanks Dennis

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: problem with WiFi adapter Adafruit ID:814 on Pi

Post by adafruit_support_mike »

I'm so sorry to hear that.. you have our sympathy.

We'll be here when you have mental space for such things again.

User avatar
Father2S0n
 
Posts: 2
Joined: Sat Apr 12, 2014 7:57 pm

Re: problem with WiFi adapter Adafruit ID:814 on Pi

Post by Father2S0n »

I also am having problems with the same WiFi adapter that I purchased from Adafruit back around the November-December 2013 time frame. I was following this thread for a few weeks in hopes of finding a solution, but since it appears to have stalled, I decided to do some research on my own. My goal here is to either solve the problem myself and post my results here, or to at least provide enough information to Adafruit support in hopes of finding a solution to this problem.

For my tests, I set up two identical Model B Rev. 2 Raspberry Pi boards, both running fresh installs of NOOBS 1.3 (Raspbian) on their respective SD cards.

The first Pi (RasPi1) has a "USB WiFi (802.11b/g/n) Module with Antenna for Raspberry Pi" (https://www.adafruit.com/product/1030) connected directly to the USB port on the Pi, and it works perfectly with my wireless router. The only difference between the model I have and the one listed as product 1030 is that it is branded as "OurLink". lsusb reports that this WiFi adapter is using the RTL8188CUS chipset. This Pi receives power from the "5V 1A (1000mA) USB port power supply - UL Listed" (https://www.adafruit.com/products/501). This setup is my control unit - I connect to it via SSH.

The second Pi (RasPi2) has the "Miniature WiFi (802.11b/g/n) Module: For Raspberry Pi" (https://www.adafruit.com/products/814) connected directly to the USB port on the Pi. This setup is my test unit - since I can't get a wireless connection to this unit, I connect to it via the "USB to TTL Serial Cable - Debug / Console Cable for Raspberry Pi" (https://www.adafruit.com/product/954). This Pi is powered via the 5v line on the TTL serial cable.

On both RasPi1 and RasPi2, I did the following:

- Ran sudo apt-get update
- Ran sudo apt-get upgrade
- Ran sudo apt-get install avahi-daemon
- Updated /etc/network/interfaces per Simon Monk's tutorial on the Adafruit Learning system (https://learn.adafruit.com/adafruits-ra ... cidentalis). The interfaces file matches exactly between RasPi1 and RasPi2, since I copy/pasted the contents of one file to the other via terminal windows I opened in PuTTY.

In attempting to diagnose this problem, I had the following results:

- Ran lsusb with identical results
- ifconfig shows that RasPi1 has an IP address, but RasPi2 does not.
- iwconfig shows that wlan0 has a link on RasPi1, but wlan0 on RasPi2 is shown to be "unassociated"

I also tried:
- Running "sudo ifup --force wlan0 on RasPi2". It had no effect.
- Swapping the WiFi adapters between the RasPi1 and RasPi2. No change in behavior.
- Connecting the the Miniature WiFi adapter to RasPi2 via a powered USB hub (https://www.adafruit.com/products/961). There was a slight change in behavior, but it did not solve the problem.

The only significant difference I see between RasPi1 and RasPi2 is that when I run "iwlist wlan0 scan", RasPi1 shows all SSIDs within range, whereas RasPi2 only shows one, which does not happen to be the SSID of the router I want to connect to. I gain only a slight improvement on RasPi2 if I connect the Mini WiFi adapter to the Pi via the powered hub, and then iwlist shows 2 SSIDs. Running iwlist on RasPi1 lists all 16 SSIDs in my neighborhood.

Can Adafruit support provide some insight as to why iwlist only shows one to two SSIDs (out of 16) when using the Mini WiFi adapter?

Side note: I've successfully used the Mini WiFi adapter with the https://learn.adafruit.com/setting-up-a ... cess-point tutorial.

If it helps, here are the results of all of the diagnostics I ran while trying to resolve this issue:

pi@raspi2:~$ 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:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

pi@raspi2:~$ cat /etc/network/interfaces
auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "JTL"
wpa-psk "**********"

pi@raspi2:~$ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:36:1d:e3
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:13:ef:d0:24:ad
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@raspi2:~$ iwconfig
wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.462 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

lo no wireless extensions.

eth0 no wireless extensions.

pi@raspi2:~$ sudo ifup --force 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:13:ef:d0:24:ad
Sending on LPF/wlan0/00:13:ef:d0:24:ad
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
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 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

pi@raspi2:~$ iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 08:86:3B:00:2A:D2
ESSID:"belkin.ad2"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.412 GHz (Channel 1)
Encryption key:on
Bit Rates:300 Mb/s
Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD0E0050F204104A0001101044000102
Quality=40/100 Signal level=26/100

dmesg

[ 3.272015] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[ 3.394172] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8176
[ 3.411767] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.433389] usb 1-1.2: Product: 802.11n WLAN Adapter
[ 3.440978] usb 1-1.2: Manufacturer: Realtek
[ 3.461722] usb 1-1.2: SerialNumber: 00e04c000001

Sorry about this message being so long, but I wanted to provide Adafruit Support with as much info as possible to try to narrow down the cause of this problem.

Thank you for your time.
Jason

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: problem with WiFi adapter Adafruit ID:814 on Pi

Post by adafruit_support_mike »

Father2S0n wrote:Can Adafruit support provide some insight as to why iwlist only shows one to two SSIDs (out of 16) when using the Mini WiFi adapter?
Power consumption is the most likely cause.

The RasPi has a fairly tight on-board power budget. The input protection polyfuse F3 will only allow about 800mA to reach the +5v rail before its resistance starts to rise. Its guaranteed trip current is 1.1A. The onboard USB ports are limited to 140mA.

Most wifi devices have performance behavior something like:

- 125mA to 150mA : functional
- 150mA to 175mA : nominal
- 175mA to 200mA : optimal

which puts the RasPi's onboard USB at the boundary between 'functional' and 'nominal'.

User avatar
Father2S0n
 
Posts: 2
Joined: Sat Apr 12, 2014 7:57 pm

Re: problem with WiFi adapter Adafruit ID:814 on Pi

Post by Father2S0n »

Power consumption is the most likely cause.
Thank you for the prompt response. I ran another test, and I'm not convinced that it's a power issue.

Because I was powering the PI from the USB to TTL serial cable in my previous tests, I tried one last test to rule out any possible power issues (see configuration below). Unfortunately, iwlist still only returns one cell, which indicentally, belongs to a neighbor's router. If I power down and swap out the Mini WiFi Adapter with the larger USB WiFi (802.11b/g/n) Module with the Antenna (https://www.adafruit.com/product/1030), the setup works perfectly after I boot up the Pi.

If you have other suggestions for me to try in order to get the mini adapter to work, I'm willing to try them, but I'm afraid I'm just about ready to return it for store credit.

Here's the configuration I used for my last test:
Thanks again for your help.
Jason

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: problem with WiFi adapter Adafruit ID:814 on Pi

Post by adafruit_support_mike »

If you were running the dongle from a powered USB hub, you're right that it wouldn't be a power problem.

Sounds like you have a marginal dongle. Send a note to [email protected] with a link to this thread and the folks there will get you a new one.

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”