rosmo01
Posts: 1
Joined: Thu Sep 17, 2015 10:28 pm

Re: WiFi Issues ? Start here !

Thu Sep 17, 2015 10:40 pm

Hi,

I'm only getting to #1:

Bus 001 Device 002: ID 0424:9514 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 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

Drivers are not loaded for RT5370;

lsmod
Module Size Used by
i2c_dev 5781 0
i2c_mux_pca954x 2726 0
at24 4942 0
i2c_mux 2101 1 i2c_mux_pca954x
i2c_gpio 2120 0
leds_gpio 2079 0
i2c_algo_bit 6140 1 i2c_gpio
led_class 4118 1 leds_gpio
spi_bcm2708 4968 0

Dmesg not logging any attempt of loading either...

sudo ifup wlan0 result:
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
wpa_supplicant: /sbin/wpa_cli daemon failed to start
run-parts: /etc/network/if-up.d/wpasupplicant exited with return code 1

wpa_supplicant.conf:
GNU nano 2.2.6 File: /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="xlxlxlxlx"
psk="#hahaha"
#psk=77d452a1d6040edaafdf57816dcbcb246a141670294eef3cb475664df156fb88
scan_ssid=1
#key_mgmt=WPA-PSK
proto=RSN
pairwise=CCMP
#group=CCMP
auth_alg=OPEN
}

Morten

jaycyborg
Posts: 2
Joined: Thu Sep 17, 2015 12:45 pm

Re: WiFi Issues ? Start here !

Fri Sep 18, 2015 4:10 am

@MrEngman , thanks for replying. I got it worked by installing driver developed by Porjo from GitHub .
I still wonder why did the default driver that came with the kernel didn't work even after getting loaded . Any guess ?

MrEngman
Posts: 4016
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Fri Sep 18, 2015 8:18 am

jaycyborg wrote:@MrEngman , thanks for replying. I got it worked by installing driver developed by Porjo from GitHub .
I still wonder why did the default driver that came with the kernel didn't work even after getting loaded . Any guess ?
I just looked at your previous post again and you say your wiifi is mt7610 but looking at the screen shot it shows your wifi is actually an mt7601 device.

The mt7601 driver is now included in the kernel image but it needs firmware installing to get it to work.

You can install the firmware using the command

Code: Select all

sudo wget https://github.com/porjo/mt7601/raw/master/src/mcu/bin/MT7601.bin -O /lib/firmware/mt7601u.bin
After installing the firmware delete the driver file you installed and then reboot to get the built in driver working.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

art.horne
Posts: 17
Joined: Fri Jul 17, 2015 1:38 am

Re: WiFi Issues ? Start here !

Fri Sep 18, 2015 9:12 pm

Greetings, all.
I'm not finding any solutions to my problem. I've googled, looked at many forums, PM'ed a knowledgeable surporter of this thread and I'm at my wits end. I've seen many other posts saying they have exactly the same problem but none of their solutions has helped me.

I have a RPI 2B running wheezy. My problem is this. I can connect to the web with eth0, no problem. I show a properly configured wlan0 (If I put my mouse over the wlan symbol at the top right corner of the page it says “wlan0 associated with SSID and wlan0 configured 159.254.232.53/16, eth0 is down).
If I enter lsusb it say Bus001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n . (among other things) If I enter sudo ifdown wlan0 && sudo ifup wlan0 I get the following:
ioctl[SIOCSIWAP]Operation not permitted
ioctl[SIOSCSIWENCODEEXT]: Invalid argument
ioctl[SIOSCSIWENCODEEXT]: 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

If I go to the browser to connect to a web page (google.com, raspberrypi.org, etc) no matter what the url I get an error message that says “Cannot resolve host name (http://www.google.com)”. I get the same error no matter what url I enter. I can't ping anything either. When I try it says connect: Network is unreachable. Looks to me it can't connect to the DNS server, but WHY???????

The /etc/resolv.conf file says: #Generated by resolvconf
nameserver 192.168.1.1
nameserver 8.8.8.8
nameserver 8.8.4.4

My network/interfaces auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet manual

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
dns-nameservers 192.168.1.1 8.8.8.8 8.8.4.4

My wpa_supplicant.conf file says: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid=”SSID”
key_mgmt=NONE
wep_key0=”Password”
}

If there is any other information I can provide please let me know. Surely somebody out there has the solution. I would be eternally grateful if one of you whiz's would help me. Linux is new to me but I've been involved with designing and programming embedded systems since 1957 and I don't want to let Linux get the better of me. Please help an old man.
Thanks,
Art
Last edited by art.horne on Sat Sep 19, 2015 7:53 pm, edited 1 time in total.

art.horne
Posts: 17
Joined: Fri Jul 17, 2015 1:38 am

Re: WiFi Issues ? Start here !

Fri Sep 18, 2015 9:55 pm

Is it possible to edit a post to correct typo or add something to it? I wanted to add one more thing to my previous post (above).

When I boot the RPI the long scrolling display of the booting actions has one area that I'm not sure about. It starts near the bottom below where it says:
INIT: Entering runlevel:2
[info] Using makefile-style concurrent boot in runlevel2.
[ ok ] Network Interface Plugging Daemon...skip eth0...skip wlan0... done.
[info] Initializing cgroups.
[warn] Kernel lacks cgroups or memory controller not available, not starting cgroups. ... (warning)
[ ok ] Starting enhanced syslogd: rsyslogd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
dhcpcd[2045]: version 6.7.1 starting
dhcpcd[2045]: all: IPv6 kernal autoconf disabled
dhcpcd[2045]: eth0: adding address fe80::3e08:83a3:cbec:c12e
dhcpcd[2045]: if_address6: Opeation not supportd
dhcpcd[2045]: all: IPV6 kernel autoconf disabled
dhcpcd[2045]: wlan0: adding address fe80:: 6110:f7a0:53c2:f4fc
dhcpcd[2045]: if_address6: Operation not supported
dhcpcd[2045]: eth0: waiting for carrier
dhcpcd[2045]: DUID 00:01:00:01:1c:dd:63:4e:00:13:ef:70:01:29
dhcpcd[2045]:wlan0: IAID ef:70:01:29
dhcpcd[2045]: wlan0: soliciting a DHCP lease
dhcpcd[2045]: wlan0: using IPv4LL address 169.254.232.53
dhcpcd[2045]: wlan0 adding route to 169.254.0.0/16
dhcpcd[2045]: forked to background, child pid 2404
my IP address is 169.254.232.53

Is there anything in there that would help solve this problem? Sorry to be so long.
Thanks,
Art

MrEngman
Posts: 4016
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Sat Sep 19, 2015 1:06 am

Hi Art,

First apologies for not responding earlier to your PM.

There are a number of errors in the contents of the files you show but I am assuming they are typos.

I've been trying myself to connect to a WEP access point and had the same issue you had, however, I think I may now have found way round it. The main issue seems to be the new network setup included in the latest raspbian image. It's been causing a variety of issues for many people.

Anyway seems the problem you have is that the IP address being allocated to your wifi is essentially invalid. I have had the same issue where it was allocated an address like 168.254.xx.yy when connecting to an access point using WEP security when it should have been 192.168.xx.yy.

To set up the wifi I logged into the GUI and ran the command wpa_gui rather than the wifi icon on the top right of the gui as that kept giving errors about the password being too short. So select MENU/Run and then type wpa_gui in the dialog box that appears. Select scan and double click the network you want to connect to and the dialog box with all the necessary setting required will open. Fill in the necessary items - wep_key0 is the one I selected - and select add to finish.

The wifi then appeared to connect but I got an address 169.254.xx.yy which is not right for my network. I believe this address is given if the wifi is detected but no address is offered by the access point. With the access point set to WPA2 security I had no issues connecting but with it set to WEP security I only seemed to get this invalid address.

With wpa_gui running and showing an IP of 169.254.xx.yy what I did next appeared to sort it. I unplugged the wifi adapter and after a short time wpa_gui showed the wifi was disconnected, I then waited a few seconds, and then plugged it back in. wpa_gui then indicated the wifi was connected but the IP address remained blank for quite a while but then appeared with a valid address 192.168.xx.yy that was valid for my wifi network and internet access was now available.

Rebooting the Pi and I now received a valid IP address, where previously when the bad address was allocated rebooting just ended up with the same invalid address.

Before trying this reset your file /etc/wpa_sipplicant/wpa_supplicant.conf to its default state

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
You can edit the file using command

Code: Select all

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Use keys cntl-x, y, enter to terminate the edit. You should probably also reboot as well before running wpa_gui.

Whether this will work for you I don't know, but hopefully it will. If you still get an invalid address I would check your router to ensure it is setup with a dhcp server to provide the necessary addresses to devices connected to it. I expect it will be but you never know.

To edit a post select "edit post" at the start of the post you want to edit on the same line as your name. The text is pretty much hidden until you position the mouse cursor over the post you want to edit. So position the mouse cursor on the text in the post and then the commands regarding editing the post and other items will then be much more obvious.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

sassabetudo
Posts: 9
Joined: Sat Sep 19, 2015 2:56 pm

Re: WiFi Issues ? Start here !

Sat Sep 19, 2015 4:35 pm

My is 4.1.6-v7+ #810

wget https://dl.dropboxusercontent.com/u/802 ... 0-4.1.[b]6[/b]-v7-810.tar.gz

don't work
MrEngman wrote:
jaycyborg wrote:I am using MediaTek 7610 wifi dongle , the dongle is getting detected by the rasbian but when I try ifconfig command , the wlan interface is not listed .I have attached the screen shot of the configs. I hope it helps. If any more details are required please do let me know. Any help is appreciated. Thanks.
Image
You need to download and install an mt7610 driver as there is not one included with the kernel image.

I have compiled a driver and you can download and install it using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/mt7610-4.1.7-v7-813.tar.gz
tar xzf mt7610-4.1.7-v7-813.tar.gz
./install.sh
After installing reboot to bring up the driver.

I've only tried it very briefly on a Pi 2B with TP-Link T2U wifi, but at least it boots OK and the wifi is up and running.


MrEngman

MrEngman
Posts: 4016
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Sat Sep 19, 2015 7:16 pm

sassabetudo wrote:My is 4.1.6-v7+ #810

wget https://dl.dropboxusercontent.com/u/802 ... 810.tar.gz

don't work
Try again, it should work now.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

art.horne
Posts: 17
Joined: Fri Jul 17, 2015 1:38 am

Re: WiFi Issues ? Start here !

Sat Sep 19, 2015 9:11 pm

MrEngman,

First, I have to learn how to type better! Those typos were why I wanted to know how to edit. I fixed them. Thank you for that.
Now the BIG THANKYOU for the rest of your post!!!! I now have wlan0 access to the web. It took a while because I started doing as you suggested without first resetting my wpa_supplicant/wpa_supplicant.conf file to it's original state. That was the key.
Then I kept making typos on the configuration. After several tries it worked exactly as you said it would.

I am fascinated by the pi but I am very disappointed by what it took me to get it working. I am a retired electronics engineer with many years in embedded system design and programming and it took me two full months to get wlan0 to work and only because of your efforts. I saw many other users have similar problems. Why didn't raspberrypi.org fix this a long time ago? Do you think there will be a update that will fix it permanently?

You, sir, have earned my undying gratitude for all your help. Thank you again,

Art

sassabetudo
Posts: 9
Joined: Sat Sep 19, 2015 2:56 pm

Re: WiFi Issues ? Start here !

Sat Sep 19, 2015 9:39 pm

Is it correct?

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static
address 192.168.0.106
netmask 255.255.255.0
gateway 192.168.0.1
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp


ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid=" "
psk=" "
}

MrEngman wrote:
sassabetudo wrote:My is 4.1.6-v7+ #810

wget https://dl.dropboxusercontent.com/u/802 ... 810.tar.gz

don't work
Try again, it should work now.


MrEngman

MrEngman
Posts: 4016
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Sun Sep 20, 2015 1:39 am

sassabetudo wrote:Is it correct?

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static
address 192.168.0.106
netmask 255.255.255.0
gateway 192.168.0.1
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp


ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid=" "
psk=" "
}

I don't normally use fixed IP so I'm not really familiar with the settings required but /etc/network/interfaces doesn't look right to me. I have tried using a fixed IP on various Pi's with the old network setup before the newest version of raspbian appeared with the new network setup.

I set up the network configuration by just editing /etc/network/interfaces like

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.80
gateway 192.168.1.1
netmask 255.255.255.0
wpa-ssid "network-name"
wpa-psk "network-password"
With the newest raspbian image the network setup has been changed and I believe to set a static IP you shouldn't edit /etc/network/interfaces but set the fixed IP setting in the file /etc/dhcpcd.conf. details here viewtopic.php?p=798866#p798866 with wlan0 similar except defining the setup using the line "interfaces wlan0" instead of "interfaces eth0".


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

greenarrow
Posts: 1
Joined: Tue Sep 22, 2015 3:21 pm

Re: WiFi Issues ? Start here !

Tue Sep 22, 2015 8:01 pm

Just starting out with my new Raspberry Pi 2 and have made my way to the LDXE GUI. I am able to get online via the ethernet connection. My keyboard is an iPazzPort 2.4GHz Mini Wireless Keyboard and Mouse connecting via a key into one of the USB ports. My Power supply is The PiHut 5V=2000mA.

I’d like to dispense with my Ethernet connection and move to WiFi, but the WiFi key does appear to function.

Following suggestions from earlier in this post, I have

Run “lsusb” (without the quotes)
Bus 001 Device 002: ID 0424:9514 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 005: ID 0c10:8000

I have tried the Realtek RTL8188EU Wireless LAN on a Windows Laptop and it works there. (having first disabled the inbuilt wireless feature of the Laptop)

Run “lsmod”
Module Size Used by
cfg80211 386500 0
rfk1ll 16651 1 cfg80211
snd_bcn2835 18649 0
snd_pcm 73475 1 snd_bcn2835
snd_seq 53078 0
snd_seq_device 5620 1 snd_seq
snd_timer 17781 2 snd_pcm,snd_seq
snd 51038 5 snd_bcn2035,snd_timer,snd_pcm,snd_seq,snd_seq_device
joydev 8879 0
evdev 9950 2
r8188eu 434809 0
uio_pdrv_genlrq 2958 0
uio 8199 1 uio_pdrv_genirq

Run “ifconfig –a”
shows only etho and lo in the output

Run “apt-get install <firmware-realtek>”
results in
-bash: syntax error near unexpected token “newline”

Run “sudo nano /etc/network/interfaces”
results in
auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet manual

auto wlan0
allow hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto wlan1
allow hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Run “ifconfig –a”
shows only etho and lo in the output


Any suggestions for what I should be trying next?

Dodgeball2d
Posts: 2
Joined: Mon Sep 28, 2015 2:48 pm

Re: WiFi Issues ? Start here !

Mon Sep 28, 2015 4:13 pm

I'm having a bit of an odd problem with my wifi. I just installed everything this morning and I click on the network icon in the top right corner and can see my network. I click on it, type in my wifi password and nothing happens. Is there some other setting I need to access here to be able to log into my wifi?

I'm brand new with this stuff and have only really ever used Windows in the past. So please treat me like a child :)

jamesyeatesfowler
Posts: 2
Joined: Tue Sep 29, 2015 4:12 am

Re: WiFi Issues ? Start here !

Tue Sep 29, 2015 4:30 am

I am using an Edimax EW-7811Un. It appears I am not getting an IP address. When I run ifconfig -a, I see walnut listed. When I run ping -c3 192.168.ggg.yyy #(my IP address), it returns ping: unknown host 192.168.ggg.yyy. With ping -c3 8.8.8.8 it returns connect: Network is unreachable. With cat /etc/resolv.conf, it returns name server 8.8.8.8. With pin -c3 google.com, it returns ping: unknown host google.com.

When I look at internet connections in the start gui, my network appears, but no websites load. Instead an error message appears - Oops! it was not possible to show this website. Also my edimax is blinking, so I think it is communicating with the router.

Any help?

art.horne
Posts: 17
Joined: Fri Jul 17, 2015 1:38 am

Re: WiFi Issues ? Start here !

Tue Sep 29, 2015 6:57 pm

James,
Go back up this thread until you see the post from MrEngman on Fri Sep 18, 2015 5:06 pm. I had the same problem and his solution fixed my problem.

Good luck,
Art

jamesyeatesfowler
Posts: 2
Joined: Tue Sep 29, 2015 4:12 am

Re: WiFi Issues ? Start here !

Sat Oct 03, 2015 12:52 am

I tried what MrEngman suggested, scanning my network from the wpa_gui command, pulling out the wifi adapter and putting it back into the raspberry pi. Unlike MrEngman, I do not see the IP address come up even though the internet status shows that I am connected to my network. Any help would be greatly appreciated. I have a robot car built and want to unchain the pi.

cornpone
Posts: 4
Joined: Sun Nov 23, 2014 12:11 am
Location: Fort Worth, TX

Re: WiFi Issues ? Start here !

Sun Oct 04, 2015 10:47 pm

I am at wit's end with this DHCPCD!

I have a new Raspi2 with the latest Debian Jesse. However, my RT5370 WiFi dongle is not connecting with my wireless router. The dhcpcd icon at the top, when left clicked, shows my wireless network ssid correctly, and then I put in the "Pre-Shared Key", and....nothing. I have checked that the dongle is recognized and the modules are loaded. Hovering over the icon shows "wlan0 not associated." I have added the following to /etc/dhcpcd.conf:

interface wlan0
static ip_address=192.168.1.99/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1

Right clicking the icon to configure the wlan0 interface brings up four boxes (e.g., IP Address, Router, DNS Server, etc.) but I with these values inside.

In the previous Wheezy distribution, I could go to /usr/sbin/wpa_gui and get back to the old method, but now that, too is gone!

Can someone please help! This is supposed to be a beginner's tool, and it really shouldn't be this hard to connect to the internet!!

Thanks in advance for any assistance offered!

2ud4nderson
Posts: 1
Joined: Tue Oct 06, 2015 1:27 am

Re: WiFi Issues ? Start here !

Tue Oct 06, 2015 1:35 am

Hello,
I have the same issue as cornpone on my RPi2 with Jessie 2015-09-24. My ralink 5370L adapter is using the rt2800 driver, but the interface doesn't come up on boot. If I bring it up with ifconfig wlan0 up or ifup wlan0, it throws errors. I've tried WICD thinking GUI would be easier, but it doesn't see it either. I have never compiled drivers with linux and didn't think I would have to after installing drivers via apt-get install firmware-ralink, but obviously this isn't working. Please help us out and thanks!

tarzanno
Posts: 26
Joined: Tue Jul 07, 2015 4:33 pm

Re: WiFi Issues ? Start here !

Tue Oct 06, 2015 8:20 pm

I am still struggling with this Wifi connection. This is so frustrating! I don't even know where to start the debug... On PI, I am running the Apache and mysql server, because I am running a php site on it with localhost/index.php at the boot. I have the connection to the internet via Ethernet cable (Pi connected to router) and I can connect via Putty then. But I can't connect via Wifi dongle at all. I think I tried everything, even wicd-curses. I don't know what else should I check...




When I run

Code: Select all

sudo ifdown wlan0 && sudo ifup wlan0 
I get the message:

Code: Select all

ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
And I am using the solution from the first post of this topic.

Can you help me debug this?

pegasis
Posts: 87
Joined: Sat Mar 02, 2013 2:47 pm

Re: WiFi Issues ? Start here !

Sat Oct 10, 2015 11:48 am

Hello

I am having logon/connection issues

my wifi was working until I reset the router password.
now I am using the same method to update the new passsword, but the wifi does not connect.

I am trying to connect wit WPA2 security

I am missing something

how can I find out what I am missing, trouble shoot the issue

thefiendman
Posts: 1
Joined: Sat Oct 10, 2015 9:56 pm

Re: WiFi Issues ? Start here !

Sat Oct 10, 2015 11:44 pm

Alright, total n00b here...
I'm trying to get my wifi on my Pi to connect and I'm still having trouble even after following this and several other tutorials. I'm able to enter my network key via the little icon at the top right of the screen, but my wifi still won't connect. Here's what's in my wpa_supplicant.conf file:

Code: Select all

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

network={
        ssid="<mySSID>"
        key_mgmt=NONE
        wep_key0="<myNetworkKey>"
}
Where, of course <mySSID> and <myNetworkKey> are replaced w/ my actual SSID and network key (keeping the quotation marks). If I take the quotation marks out, the system won't read any networks at all (not sure why that is). I've tried rebooting the Pi after each thing that I try, but to no avail...

Some other (potentially relevant) details here:
1) If I try to change wpa_supplicant.conf to this and reboot my Pi:

Code: Select all

network={
        ssid="<mySSID>"
        psk="<myNetworkKey>"
}
it puts the

Code: Select all

key_mgmt
and

Code: Select all

wep_key0
lines back into the code. Why does it do that?

2) I'm using Raspbian installed off of the latest version of NOOBS (v1.4.2)

Some of the tutorials I've tried include:
viewtopic.php?f=28&t=44044
http://docs.brewpi.com/installing-your- ... setup.html
http://thepihut.com/blogs/raspberry-pi- ... i-raspbian
https://www.raspberrypi.org/documentati ... ess-cli.md

(Side-question: When posting code, how do you get it to indent your lines?)

Any and all help/input would be most sincerely appreciated here... !

trulio
Posts: 7
Joined: Mon Jul 21, 2014 9:40 pm

Re: WiFi Issues ? Start here !

Fri Oct 16, 2015 6:58 pm

Hi,

here is another investigation for wifi stability, and particularly in case of cheap usb wifi dongles bought a few dollars on ebay.

You must keep in mind that these cheap devices are designed to just work once you plug them, but not to be reliable on long time use. Moreover, sometimes, these cheap devices are build using chips that didn't pass advanced Quality Control tests.

For my part, i get good result with cheap devices from ebay, by disabling power managment but also by lowering txpower.

Don't forget that TX operation is a more power consuming operation than RX listening.
It means that TX operation can cause current draw surge that can bring the system in its limits.

The problem is detecting when a device reach it limits.

If you can use your raspberry device at a few meters from your router, lowering by a factor 4 (lowering txpower from 20 to 14) gives me good endurance and keep the wifi connected and reliable.

For the others that want optimal TX operations, don't by a cheap usb wifi dongle but a branded one that should have succesfully passed advanced QC tests.

Of course it could work with some cheap devices with good tolerance but this is only luck.

here is my wlan /etc/network/interfaces configuration:
"auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
wireless-power off
wireless-txpower 14
iface default inet dhcp"

here is a reminder to explain txpower 14:
http://www.cisco.com/c/en/us/support/do ... 23231.html

This table provides approximate dBm to mW values:
dBm mW
14 25
15 32
16 40
17 50
18 64
19 80
20 100

25mW max TXpower seems to not push cheap design in its limits.

Wish this will help you make more reliable your wifi connexion

pegasis
Posts: 87
Joined: Sat Mar 02, 2013 2:47 pm

Re: WiFi Issues ? Start here !

Sat Oct 17, 2015 3:13 pm

thanks

ThomasDr
Posts: 55
Joined: Tue May 20, 2014 2:16 pm

rtl8192cu problem with Raspbian jessie

Thu Oct 22, 2015 6:30 pm

Hello,

i setup a Raspberry Pi B2 with a WiFi dongel with rtl8192cu chip.
The Dongel connect to my Accesspoint show SNR(db) 43 and CCQ(%) 100, but the Datarate show between 1 - 2 Mbps.
I try 2 dongels a Edimax and a dongel that show my 0bda:8178 in the lsusb.
Wenn i switch to a TP-Link TL-WN722N the Raspberry connects properly.
I test it with and without a hub.
I find a lot of questions on the subject, but no solution.

Can any one help?

regards
Thomas

rmb1059
Posts: 1
Joined: Fri Oct 16, 2015 3:58 am

Re: WiFi Issues ? Start here !

Sun Nov 01, 2015 4:19 am

I have a different type of wifi issue. I installed Electrum-2.5.2 according to the instructions:

Install dependencies:
sudo apt-get install python-qt4 python-pip
Install Electrum:
sudo pip install https://download.electrum.org/2.5.2/Ele ... 5.2.tar.gz

Everything appeared to go smoothly and the addresses generated, but it won't connect to the server. No matter what i change the settings to in the network configuration box nothing happens. Can someone help me with this?

Return to “Troubleshooting”