User avatar
Cancelor
Posts: 754
Joined: Wed Aug 28, 2013 4:09 pm
Location: UK

Re: WiFi Issues ? Start here !

Wed Apr 13, 2016 6:37 am

alanredbull wrote:Hi,
I just got a pi3, and i want to connect to my school wifi (WPA2 enterprise).

But i dont know how to do it. I watched around, it seems like i need to edit wpa_supplicant.conf file ? Can some one give me a hint what should i do?

So far I can connect to open network, but when i click on the my school network, nothing happens.
The Desktop Interface has a Network Icon on the Task Bar, use this to get a list of access points, select the one (ssid) you want and log in using the network password.
Can't find the thread you want? Try googling : YourSearchHere site:raspberrypi.org

josepz
Posts: 47
Joined: Tue Mar 22, 2016 2:49 pm

Re: WiFi Issues ? Start here !

Thu Apr 14, 2016 8:41 am

I own a rpi3, working as wifi AP. When I try to download a file from the rpi3 to my tablet the downloading is a good speed at the first minutes, but then goes down until 200kb or less.

If I do the same from my router AP, I can download files fine. How can I know why the wifi speed of my rpi3 goes down after some minutes of downloading a file?

dchao99
Posts: 45
Joined: Fri Jan 15, 2016 9:26 pm

Re: WiFi Issues ? Start here !

Sat Apr 16, 2016 5:09 pm

josepz wrote:I own a rpi3, working as wifi AP. When I try to download a file from the rpi3 to my tablet the downloading is a good speed at the first minutes, but then goes down until 200kb or less.

If I do the same from my router AP, I can download files fine. How can I know why the wifi speed of my rpi3 goes down after some minutes of downloading a file?
The onboard WiFi is not very stable at the moment. I'm having the same problem.

dchao99
Posts: 45
Joined: Fri Jan 15, 2016 9:26 pm

Re: WiFi Issues ? Start here !

Sat Apr 16, 2016 5:11 pm

Cancelor wrote:
alanredbull wrote:Hi,
I just got a pi3, and i want to connect to my school wifi (WPA2 enterprise).

But i dont know how to do it. I watched around, it seems like i need to edit wpa_supplicant.conf file ? Can some one give me a hint what should i do?

So far I can connect to open network, but when i click on the my school network, nothing happens.
The Desktop Interface has a Network Icon on the Task Bar, use this to get a list of access points, select the one (ssid) you want and log in using the network password.
I think the Desktop UI only will do WPA personal. For WPA enterprise, I think you have to modify the

Code: Select all

/etc/wpa_supplicant/wpa_supplicant.conf
file yourself

hockeydad
Posts: 3
Joined: Sun Apr 17, 2016 4:57 am

Re: WiFi Issues ? Start here !

Sun Apr 17, 2016 5:05 am

Ok. New to the Pi, the last programming I did was 25 years ago in college. Tying to get this set up for my son who wants to learn. Trying to set up the WiFi. I followed the instructions and as far as I can tell all is well. I have gotten all the way through step 4 and I appear to have a wlan0 IP address. However, when I try to go to say google, or cnn I get "Oops! It was not possible to show this website"...cannot resolve hostname.

What am I missing? How can I have an IP address, but not be able to get out to the internet?

I tried scrolling though all the comments, but didn't see anything that looked helpful, but maybe I missed it.

lbog
Posts: 127
Joined: Sun Mar 06, 2016 9:44 am

Re: WiFi Issues ? Start here !

Sun Apr 17, 2016 7:49 am

hockeydad wrote:How can I have an IP address, but not be able to get out to the internet?
What is on your PI, the output of:

Code: Select all

ping -c 3 -W 2 8.8.8.8
host -t A cnn.com 8.8.8.8
host -t A cnn.com
cat /etc/resolv.conf
ip r
?

ashmck73
Posts: 23
Joined: Tue Mar 29, 2016 9:45 am
Location: Brisbane, Australia
Contact: Website

Re: WiFi Issues ? Start here !

Sun Apr 17, 2016 9:24 am

Interesting to read all these posts as since day 1 after buying my Pi3 haven't had any issues setting up or using the built in Wifi.

I'm using a Pi3 as a PLEX media streamer and watch many 1080p videos on it - all streamed across Wifi.

Guess maybe I'm one of the lucky ones.
--------------------------------------------------------------------------
Ashley
the curator @
www.raspberryretro.com

--------------------------------------------------------------------------

cyrissist
Posts: 1
Joined: Sun Apr 17, 2016 3:01 pm

Re: WiFi Issues ? Start here !

Sun Apr 17, 2016 3:26 pm

I recently got a Raspberry Pi 2 Model B v1.1, and bought a Archer T1U wireless adapter for it. However it doesn't look like Raspbian has a driver for it. I'm using NOOBS v1.9.0. Below are my lsusb, lsmod, and uname.
[email protected]:/etc/wpa_supplicant $ lsusb
Bus 001 Device 005: ID 2357:0105
Bus 001 Device 004: ID 046d:c534 Logitech, Inc.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[email protected]:/etc/wpa_supplicant $ lsmod
Module Size Used by
cfg80211 407580 0
rfkill 16036 1 cfg80211
sg 18023 0
evdev 10278 4
joydev 9024 0
bcm2835_gpiomem 2860 0
bcm2835_rng 1763 0
snd_bcm2835 19802 3
snd_pcm 73474 1 snd_bcm2835
snd_timer 18848 1 snd_pcm
snd 50779 9 snd_bcm2835,snd_timer,snd_pcm
uio_pdrv_genirq 2944 0
uio 7753 1 uio_pdrv_genirq
i2c_dev 5671 0
fuse 80694 3
ipv6 338660 26
[email protected]:/etc/wpa_supplicant $ uname -a
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
Can anyone help me find a driver that will work for this? I'm not versed in think kind of stuff at all.

jchi
Posts: 7
Joined: Sun Apr 17, 2016 6:30 pm

Re: WiFi Issues ? Start here !

Sun Apr 17, 2016 7:03 pm

MrEngman wrote:
f-pi-00 wrote:
Sorry but I forgot to ask you to post the output of command uname -a as well. Can you do that please?

MrEngman
That's ok. The uname -a output is: Linux raspberrypi 4.1.13 - v7 + #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux

thanks
You should be able to download and install the driver using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/mt7610-4.1.13-v7-826.tar.gz
tar xzf mt7610-4.1.13-v7-826.tar.gz
./install.sh
There is, for some reason I haven't figured out why, an issue that the driver will not work at 5GHz on kernel 4.1.xx, but it runs alright at 2.4GHz.

EDIT: If you get an error downloading wait a while as there are a number of files uploading to Dropbox and it may take some time.

MrEngman
I think I'm in the right place. I too have a TP-LINK Archer T1U Wireless AC450.

Code: Select all

[email protected]:~ $ lsusb
Bus 001 Device 005: ID 2357:0105  
Bus 001 Device 004: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

[email protected]:~ $ uname -a
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
I tried the driver downloaded from https://dl.dropboxusercontent.com/u/802 ... 826.tar.gz, and s/kernel=4.1.13-v7+/kernel=4.1.19-v7+ in install.sh hoping it would be as simple as that... doh! Not quite.

Code: Select all

[email protected]:~ $ dmesg
...
...
[    3.423246] usb 1-1.3: New USB device found, idVendor=2357, idProduct=0105
[    3.423262] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.423271] usb 1-1.3: Product: WiFi
[    3.423280] usb 1-1.3: Manufacturer: MediaTek
[    3.423288] usb 1-1.3: SerialNumber: 1.0
[    3.481434] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    3.493695] systemd[1]: Starting Delayed Shutdown Socket.
[    3.510467] systemd[1]: Listening on Delayed Shutdown Socket.
[    3.521532] systemd[1]: Starting Journal Socket (/dev/log).
[    3.538557] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.549837] systemd[1]: Starting udev Control Socket.
[    3.566204] systemd[1]: Listening on udev Control Socket.
[    3.576898] systemd[1]: Starting udev Kernel Socket.
[    3.592724] systemd[1]: Listening on udev Kernel Socket.
[    3.603132] systemd[1]: Starting Journal Socket.
[    3.618552] systemd[1]: Listening on Journal Socket.
[    3.628625] systemd[1]: Starting System Slice.
[    3.643854] systemd[1]: Created slice System Slice.
[    3.653654] systemd[1]: Starting File System Check on Root Device...
[    3.673591] systemd[1]: Starting system-systemd\x2dfsck.slice.
[    3.690397] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    3.701561] systemd[1]: Starting system-autologin.slice.
[    3.717674] systemd[1]: Created slice system-autologin.slice.
[    3.728375] systemd[1]: Starting system-serial\x2dgetty.slice.
[    3.744500] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    3.755537] systemd[1]: Starting Increase datagram queue length...
[    3.775344] systemd[1]: Starting Restore / save the current clock...
[    3.798421] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    3.833757] systemd[1]: Started Set Up Additional Binary Formats.
[    3.861331] systemd[1]: Starting Load Kernel Modules...
[    3.883920] systemd[1]: Mounting Debug File System...
[    3.904517] systemd[1]: Mounted Huge Pages File System.
[    3.915029] systemd[1]: Starting udev Coldplug all Devices...
[    3.939209] systemd[1]: Mounting POSIX Message Queue File System...
[    3.956364] fuse init (API version 7.23)
[    3.969757] systemd[1]: Starting Slices.
[    3.984754] systemd[1]: Reached target Slices.
[    4.002849] systemd[1]: Mounted POSIX Message Queue File System.
[    4.011357] i2c /dev entries driver
[    4.028488] systemd[1]: Mounted Debug File System.
[    4.045299] systemd[1]: Started File System Check on Root Device.
[    4.077077] systemd[1]: Started Increase datagram queue length.
[    4.094660] systemd[1]: Started Restore / save the current clock.
[    4.112423] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    4.133407] systemd[1]: Started Load Kernel Modules.
[    4.155767] systemd[1]: Time has been changed
[    4.231794] systemd[1]: Started udev Coldplug all Devices.
[    4.383556] systemd[1]: Mounting Configuration File System...
[    4.403584] systemd[1]: Mounting FUSE Control File System...
[    4.424366] systemd[1]: Starting Apply Kernel Variables...
[    4.445865] systemd[1]: Starting Create Static Device Nodes in /dev...
[    4.467611] systemd[1]: Starting Syslog Socket.
[    4.474399] systemd[1]: Listening on Syslog Socket.
[    4.474783] systemd[1]: Starting Journal Service...
[    4.491151] systemd[1]: Started Journal Service.
[    4.638456] systemd-udevd[107]: starting version 215
[    5.090276] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    5.579985] EXT4-fs (mmcblk0p7): re-mounted. Opts: (null)
[    5.936112] mt7610u_sta: disagrees about version of symbol module_layout
...
I gather the mt7610u_sta.ko was compiled against 4.1.13-v7 and probably is incompatible w/ 4.1.19-v7 ?

Would it be possible for you to build a TP-LINK Archer T1U Wireless AC450 installer for the 4.1.19-v7+ version of the kernel?

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

Re: WiFi Issues ? Start here !

Mon Apr 18, 2016 12:16 am

jchi wrote:I think I'm in the right place. I too have a TP-LINK Archer T1U Wireless AC450.

Code: Select all

[email protected]:~ $ lsusb
Bus 001 Device 005: ID 2357:0105  
Bus 001 Device 004: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

[email protected]:~ $ uname -a
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
I tried the driver downloaded from https://dl.dropboxusercontent.com/u/802 ... 826.tar.gz, and s/kernel=4.1.13-v7+/kernel=4.1.19-v7+ in install.sh hoping it would be as simple as that... doh! Not quite.

Code: Select all

[email protected]:~ $ dmesg
...
...
[    3.423246] usb 1-1.3: New USB device found, idVendor=2357, idProduct=0105
[    3.423262] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.423271] usb 1-1.3: Product: WiFi
[    3.423280] usb 1-1.3: Manufacturer: MediaTek
[    3.423288] usb 1-1.3: SerialNumber: 1.0
[    3.481434] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    3.493695] systemd[1]: Starting Delayed Shutdown Socket.
[    3.510467] systemd[1]: Listening on Delayed Shutdown Socket.
[    3.521532] systemd[1]: Starting Journal Socket (/dev/log).
[    3.538557] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.549837] systemd[1]: Starting udev Control Socket.
[    3.566204] systemd[1]: Listening on udev Control Socket.
[    3.576898] systemd[1]: Starting udev Kernel Socket.
[    3.592724] systemd[1]: Listening on udev Kernel Socket.
[    3.603132] systemd[1]: Starting Journal Socket.
[    3.618552] systemd[1]: Listening on Journal Socket.
[    3.628625] systemd[1]: Starting System Slice.
[    3.643854] systemd[1]: Created slice System Slice.
[    3.653654] systemd[1]: Starting File System Check on Root Device...
[    3.673591] systemd[1]: Starting system-systemd\x2dfsck.slice.
[    3.690397] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    3.701561] systemd[1]: Starting system-autologin.slice.
[    3.717674] systemd[1]: Created slice system-autologin.slice.
[    3.728375] systemd[1]: Starting system-serial\x2dgetty.slice.
[    3.744500] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    3.755537] systemd[1]: Starting Increase datagram queue length...
[    3.775344] systemd[1]: Starting Restore / save the current clock...
[    3.798421] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    3.833757] systemd[1]: Started Set Up Additional Binary Formats.
[    3.861331] systemd[1]: Starting Load Kernel Modules...
[    3.883920] systemd[1]: Mounting Debug File System...
[    3.904517] systemd[1]: Mounted Huge Pages File System.
[    3.915029] systemd[1]: Starting udev Coldplug all Devices...
[    3.939209] systemd[1]: Mounting POSIX Message Queue File System...
[    3.956364] fuse init (API version 7.23)
[    3.969757] systemd[1]: Starting Slices.
[    3.984754] systemd[1]: Reached target Slices.
[    4.002849] systemd[1]: Mounted POSIX Message Queue File System.
[    4.011357] i2c /dev entries driver
[    4.028488] systemd[1]: Mounted Debug File System.
[    4.045299] systemd[1]: Started File System Check on Root Device.
[    4.077077] systemd[1]: Started Increase datagram queue length.
[    4.094660] systemd[1]: Started Restore / save the current clock.
[    4.112423] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    4.133407] systemd[1]: Started Load Kernel Modules.
[    4.155767] systemd[1]: Time has been changed
[    4.231794] systemd[1]: Started udev Coldplug all Devices.
[    4.383556] systemd[1]: Mounting Configuration File System...
[    4.403584] systemd[1]: Mounting FUSE Control File System...
[    4.424366] systemd[1]: Starting Apply Kernel Variables...
[    4.445865] systemd[1]: Starting Create Static Device Nodes in /dev...
[    4.467611] systemd[1]: Starting Syslog Socket.
[    4.474399] systemd[1]: Listening on Syslog Socket.
[    4.474783] systemd[1]: Starting Journal Service...
[    4.491151] systemd[1]: Started Journal Service.
[    4.638456] systemd-udevd[107]: starting version 215
[    5.090276] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    5.579985] EXT4-fs (mmcblk0p7): re-mounted. Opts: (null)
[    5.936112] mt7610u_sta: disagrees about version of symbol module_layout
...
I gather the mt7610u_sta.ko was compiled against 4.1.13-v7 and probably is incompatible w/ 4.1.19-v7 ?

Would it be possible for you to build a TP-LINK Archer T1U Wireless AC450 installer for the 4.1.19-v7+ version of the kernel?
Do not go editing the install.sh file, it will not work if you do, as you found.

Try this

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/mt7610-4.1.19-v7-858.tar.gz
tar xzf mt7610-4.1.19-v7-858.tar.gz
./install.sh
and be aware it may not work with 5GHz, not sure why but I'm trying to find out why not.

I use a standard format for the driver filenames. If you update your kernel use uname -a to find the new kernel version and build and then update the filename in the commands above with the new values from uname -a to download the driver for the updated kernel version.

As an alternative I have a download script that will automatically download the right driver for the wifi and kernel you use. You can download it using

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz
tar xzf install-wifi.tar.gz
Use command ./install-wifi -h for details on how to use it.



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

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

dchao99
Posts: 45
Joined: Fri Jan 15, 2016 9:26 pm

Re: WiFi Issues ? Start here !

Mon Apr 18, 2016 8:27 pm

ashmck73 wrote:Interesting to read all these posts as since day 1 after buying my Pi3 haven't had any issues setting up or using the built in Wifi.

I'm using a Pi3 as a PLEX media streamer and watch many 1080p videos on it - all streamed across Wifi.

Guess maybe I'm one of the lucky ones.
What bitrates are your 1080p videos encoded at?
Most 1080p h264 video are encoded with a bitrate of 4-8mbps. If you use more heavy compression 4mbps is usually enough. The speed of a good 802.11g network is about 15mbps. So steaming a 1080p video doesn't usually use the full bandwidth of the 802.11g network. What you need to do is to copy a file to/from the Pi3, and measure if you are getting the 15mbps throughput. Also pinging a Pi-3, you should be getting packet delays of <10ms consistantly.

dglidden
Posts: 1
Joined: Mon Apr 18, 2016 9:03 pm

Re: WiFi Issues ? Start here !

Mon Apr 18, 2016 9:11 pm

I have a Pi3 and am using the internal Wifi. I've read in several places now that the internal wifi "isn't very stable" at the moment, but I can't keep it running at all. As soon as the Pi3 generates any significant CPU usage, the wifi drops out. I'm not 100% positive it's related to heat, but it sure seems to be. I've tried turning power savings on the Wifi adapter off, but that doesn't help either. I don't get any messages that the wifi has dropped out, or that the device has been reloaded or anything, it seems as it if simply stops tx/rx until the CPU cools off again. This makes my Pi3 fairly useless unless I get an external Wifi dongle, which sort of defeats the purpose of having the Pi3 with internal Wifi/Bluetooth. Has anyone else seen these symptoms or have any idea on how to fix them?

edit: If I underclock the CPU, it behaves a lot better.
Last edited by dglidden on Tue Apr 19, 2016 3:53 pm, edited 1 time in total.

hockeydad
Posts: 3
Joined: Sun Apr 17, 2016 4:57 am

Re: WiFi Issues ? Start here !

Tue Apr 19, 2016 1:34 am

lbog wrote:
hockeydad wrote:How can I have an IP address, but not be able to get out to the internet?
What is on your PI, the output of:

Code: Select all

ping -c 3 -W 2 8.8.8.8
     Unknown host C

host -t A cnn.com 8.8.8.8
     connection timed out, no servers could be reached

host -t A cnn.com
     same as above

cat /etc/resolv.conf
     no such file or directory

ip r
     169.254.0.0/16 dev wlan0 proto kernel scope link src 169.254.216.96 metric 303

?
In other news, I talked to a buddy who knows a bit more about network stuff than I do, but not enough to be helpful to solve this. He said my IP address needed to start with 192 for it to work. Not sure how to make the pi do that. I also tried an ipconfig command to try to get the pi to give me the address, I received "bash: ip config: command not found".

for reference have a Pi 2.

thoughts?

prowess2014
Posts: 2
Joined: Mon Apr 18, 2016 11:37 pm

Re: WiFi Issues ? Start here !

Tue Apr 19, 2016 3:02 am

The connection to WPA2 wifi is always a problem. I have googled so many solutions, but none of them works. such as: https://netbeez.net/2014/10/14/connect- ... upplicant/
http://ubuntuforums.org/showthread.php?t=249654
viewtopic.php?f=63&t=56641
viewtopic.php?f=28&t=86253
...

My Raspberry pi 3 B model is running Raspbian, and I can successfully connect to my university's wifi when installing os.

Hope there will be a solution for this global problem. Is there any config tools except wpa_supplicant? like the one when I install os. Thanks.

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4248
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: WiFi Issues ? Start here !

Tue Apr 19, 2016 6:54 pm

hockeydad wrote:
lbog wrote:
hockeydad wrote:How can I have an IP address, but not be able to get out to the internet?
What is on your PI, the output of:

Code: Select all

ip r
     169.254.0.0/16 dev wlan0 proto kernel scope link src 169.254.216.96 metric 303

?
In other news, I talked to a buddy who knows a bit more about network stuff than I do, but not enough to be helpful to solve this. He said my IP address needed to start with 192 for it to work.
Not 192, exactly, but not what you have.

169.254.xxx.xxx is what is known as a "link-local" address, it is local to the network that it is on and can't be routed anywhere else -- the Internet for example. If you are getting such an address it means all other methods of getting an address have failed. DHCP didn't work and there was no static address configured.

Where a link-local address works well is when you have two random boxes talking to each other on their own little network, but you won't be able to talk to the Internet.

Generally speaking, your home network will have addresses in the form "192.168.xxx.xxx" (or it might be 10.xxx.xxx.xxx and I think there is one other.) All of the devices on the network need to have unique addresses in the form that they all expect. It gets more complex too. Unless you want to dive into all that, the best way to get a Pi working is to use DHCP and get a dynamic address. Then install Samba on the Pi ,or Apple printer sharing on your windows PC (Apple computers will just work) and you will be able to talk to the Pi by name -- and forget all about IP addresses.

And to do that, you can ignore all the configuration files except maybe wpa_supplicant.

geoffr
Posts: 80
Joined: Wed Aug 22, 2012 11:25 am
Location: Melbourne, VIC

Re: WiFi Issues ? Start here !

Wed Apr 20, 2016 12:16 pm

I've been running into some funnies with WiFi on my Pi Zero, particularly with WiFi dropping out.
On the zero, my logs indicate that it is failing to authenticate to the AP (Netgear D6200). When I reboot that AP, the zero successfully authenticates with the other AP (Apple Airport Express), which is further away.

These issues however only seem to be occurring when I use a WiPi WiFi adaptor (purchased from Element14). A "cheap and cheerful" Edup adaptor, purchased from Dealextreme does not seem to have the problem.
I have another WiPi adaptor in a Pi2 which is running OSMC flawlessly. The only thing here is that the Pi2 is about 1.5m below the Airport Express, so I suspect it never tries to connect to the D6200.

When the WiFi dropouts occur, I get the following log entries:

Code: Select all

Mar 23 05:18:18 zero kernel: [   82.628926] wlan0: authenticate with 6c:b0:ce:81:a4:02
Mar 23 05:18:18 zero kernel: [   82.671492] wlan0: send auth to 6c:b0:ce:81:a4:02 (try 1/3)
Mar 23 05:18:18 zero kernel: [   82.706843] wlan0: send auth to 6c:b0:ce:81:a4:02 (try 2/3)
Mar 23 05:18:18 zero kernel: [   82.749070] wlan0: send auth to 6c:b0:ce:81:a4:02 (try 3/3)
Mar 23 05:18:18 zero kernel: [   82.794728] wlan0: authentication with 6c:b0:ce:81:a4:02 timed out
my WiFi configs look as follows:

/etc/network/interfaces:

Code: Select all

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    wireless-power off

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    wireless-power off
/etc/wpa_supplicant/wpa_supplicant.conf:

Code: Select all

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

network={
    scan_ssid=1
    ssid="<SSID name>"
    psk="<password>"
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP
    auth_alg=OPEN
}
Does anyone have any ideas why I am experiencing these problems?

I am now trying the WiPi interface on a Pi1 model B.

DirkS
Posts: 9509
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: WiFi Issues ? Start here !

Wed Apr 20, 2016 12:24 pm

Code: Select all

    scan_ssid=1
Do you use a hidden network?
If not, then this setting should not be necessary (AFAIK at least)

Try wpa_supplicant.conf with just

Code: Select all

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

network={
    ssid="<SSID name>"
    psk="<password>"
}

hockeydad
Posts: 3
Joined: Sun Apr 17, 2016 4:57 am

Re: WiFi Issues ? Start here !

Wed Apr 20, 2016 3:08 pm

rurwin wrote:
hockeydad wrote:
lbog wrote:
What is on your PI, the output of:

Code: Select all

ip r
     169.254.0.0/16 dev wlan0 proto kernel scope link src 169.254.216.96 metric 303

?
In other news, I talked to a buddy who knows a bit more about network stuff than I do, but not enough to be helpful to solve this. He said my IP address needed to start with 192 for it to work.
Not 192, exactly, but not what you have.

169.254.xxx.xxx is what is known as a "link-local" address, it is local to the network that it is on and can't be routed anywhere else -- the Internet for example. If you are getting such an address it means all other methods of getting an address have failed. DHCP didn't work and there was no static address configured.

Where a link-local address works well is when you have two random boxes talking to each other on their own little network, but you won't be able to talk to the Internet.

Generally speaking, your home network will have addresses in the form "192.168.xxx.xxx" (or it might be 10.xxx.xxx.xxx and I think there is one other.) All of the devices on the network need to have unique addresses in the form that they all expect. It gets more complex too. Unless you want to dive into all that, the best way to get a Pi working is to use DHCP and get a dynamic address. Then install Samba on the Pi ,or Apple printer sharing on your windows PC (Apple computers will just work) and you will be able to talk to the Pi by name -- and forget all about IP addresses.

And to do that, you can ignore all the configuration files except maybe wpa_supplicant.
Ok...so, I want the pie to talk to the internet. In the mean time, WiFi seems to be an issue. I'm not sure how to use DHCP and get a dynamic address since it failed. I tried setting a static address, and it did work, but I still can't get to the internet. I'm not a computer programmer, but am a technician. So, lets start eliminating variables and do some diagnostics. So...I went and bought an Ethernet cable, drug the pie and all the peripherals into the living room, and hooked it all back up. I have green and orange blinky lights and I have a 192.169.xxx.xxx address (the Pi is still using the static address i gave it earlier...hmmm). All seems well and as far as I am aware, this means I should be able to get to the internet. I select menu-->internet-->pie store and get a pi store page with no information. selecting explore on the page results in no information. instead of pie store I select raspberry pie resources, I get oops, it was not possible to show this web site. Same happens for google. I had a friend help me and we logged into the router and pinged the Pi. it worked, the router see's the Pi. So, it seems like the Pi can't get to the internet. Interesting enough, while I can open the network preference from the menu bar (dhcpcdui), if I try an ipconfig from terminal I get a bash, command not found. As far as I know from reading some resources online, ipconfig should give results. It's acting like it's missing some configuration files somewhere.

Is there a configuration file somewhere I need to turn on? Is there some form of checkbox my son may have said no to when he first started playing with this thing when he got it for Christmas because we didn't have the internet connection setup at the time? Maybe this isn't a WiFi issue, maybe it's an internal configuration issue?

Thoughts? Perhaps an OS reload (and how would you do that?)

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

Re: WiFi Issues ? Start here !

Wed Apr 20, 2016 3:17 pm

Use iwconfig, not ipconfig a Windows program.

AFAIK Pi Store no longer exists.



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

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

jelicicm
Posts: 2
Joined: Thu Apr 21, 2016 2:32 pm

Re: WiFi Issues ? Start here !

Thu Apr 21, 2016 2:56 pm

Hello everybody. First time Pi user. My Pi2, model B arrived today and I'm very excited. I installed Raspbian (by using NOOBS). It would be a lot of hassle for me to connect it to Ethernet cable, so what I tried first was WiFi module.

I bought a WiFi dongle and tried to set up WiFi by following posts online, and troubleshooting them by following first post of this thread.

My "lsusb" command recognizes my WiFi dongle, and also my keyboard and mouse. "lsmod" gives exactly the same results as in first post - I guess the dongle is the same...
8192cu 458649 0
In my GUI, that little WiFi icon, it says that no wireless interfaces are available. But, when I try searching in terminal:
sudo iwlist wlan0 scan
I get a nice list of networks in my neighborhood. Same list I get when I scan it with my phone.


I tried changing wpa_supplicant.conf:
country=RS
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid = "TP-LINK_BDD8C2"
psk = "misatumbas"
}
RS is for Serbia and I'm sure my ssid and psk are correct.

Next, what I tried is:
ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:83:29:5b
inet6 addr: fe80::3cdc:e0a1:3ce0:6c46/64 Scope:Link
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
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:455 errors:0 dropped:0 overruns:0 frame:0
TX packets:455 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35948 (35.1 KiB) TX bytes:35948 (35.1 KiB)

wlan0 Link encap:Ethernet HWaddr 00:13:ef:65:13:fd
inet6 addr: fe80::4308:d75a:1250:8b2c/64 Scope:Link
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)
Not an expert, but looks good to me.


I open my /etc/network/interfaces and it looks like this:
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

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

allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Then, I seem to have located the problem:
[email protected]:~ $ sudo ifdown wlan0 && sudo ifup wlan0
ifdown: interface wlan0 not configured
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 bring up wlan0.

So, it seems like I can't even boot up wlan0 interface.

Does anyone have any suggestions to how I could fix this problem? Thanks in advance.

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

Re: WiFi Issues ? Start here !

Thu Apr 21, 2016 4:29 pm

jelicicm wrote:Hello everybody. First time Pi user. My Pi2, model B arrived today and I'm very excited. I installed Raspbian (by using NOOBS). It would be a lot of hassle for me to connect it to Ethernet cable, so what I tried first was WiFi module.

I tried changing wpa_supplicant.conf:
country=RS
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid = "TP-LINK_BDD8C2"
psk = "misatumbas"
}
RS is for Serbia and I'm sure my ssid and psk are correct.

Does anyone have any suggestions to how I could fix this problem? Thanks in advance.
Remove the spaces around the = signs in wpa_supplicant.conf, so you have ssid="TP-LINK_BDD8C2" and psk="misatumbas". wpa_supplicant.conf does not work if you have spaces before and/or after the equals (=) signs in any of the lines in that file.



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

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

jelicicm
Posts: 2
Joined: Thu Apr 21, 2016 2:32 pm

Re: WiFi Issues ? Start here !

Thu Apr 21, 2016 4:39 pm

Wow, just wow. I changed what you said, and then sudo reboot, and now I'm typing this from Raspbian.

Thanks a lot! Who would have known that such a insignificant thing would make a difference.

jchi
Posts: 7
Joined: Sun Apr 17, 2016 6:30 pm

Re: WiFi Issues ? Start here !

Fri Apr 22, 2016 6:27 am

MrEngman wrote:
jchi wrote:I think I'm in the right place. I too have a TP-LINK Archer T1U Wireless AC450.

Code: Select all

[email protected]:~ $ lsusb
Bus 001 Device 005: ID 2357:0105  
Bus 001 Device 004: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

[email protected]:~ $ uname -a
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
...

Would it be possible for you to build a TP-LINK Archer T1U Wireless AC450 installer for the 4.1.19-v7+ version of the kernel?
Do not go editing the install.sh file, it will not work if you do, as you found.

Try this

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/mt7610-4.1.19-v7-858.tar.gz
tar xzf mt7610-4.1.19-v7-858.tar.gz
./install.sh
and be aware it may not work with 5GHz, not sure why but I'm trying to find out why not.

I use a standard format for the driver filenames. If you update your kernel use uname -a to find the new kernel version and build and then update the filename in the commands above with the new values from uname -a to download the driver for the updated kernel version.

As an alternative I have a download script that will automatically download the right driver for the wifi and kernel you use. You can download it using

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz
tar xzf install-wifi.tar.gz
Use command ./install-wifi -h for details on how to use it.

MrEngman
Thanks for doing that for me. I think we're a bit further along, but still no wifi. At least now I can see wlan0 in...

Code: Select all

[email protected]:~ $ ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr ec:08:6b:0a:64:79  
          inet addr:169.254.215.54  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::ee08:6bff:fe0a:6479/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:499 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6882 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:40105 (39.1 KiB)  TX bytes:495936 (484.3 KiB)
Here's the dmesg output...

Code: Select all

[    3.360332] usb 1-1.3: New USB device found, idVendor=2357, idProduct=0105
[    3.360344] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.360353] usb 1-1.3: Product: WiFi
[    3.360362] usb 1-1.3: Manufacturer: MediaTek
[    3.360370] usb 1-1.3: SerialNumber: 1.0
[    3.405797] systemd[1]: Reached target Remote File Systems (Pre).
[    3.414230] systemd[1]: Starting Encrypted Volumes.
[    3.423975] systemd[1]: Reached target Encrypted Volumes.
[    3.431773] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    3.448202] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.462165] systemd[1]: Starting Swap.
[    3.470692] systemd[1]: Reached target Swap.
[    3.477175] systemd[1]: Expecting device dev-mmcblk0p6.device...
[    3.487720] systemd[1]: Starting Root Slice.
[    3.496536] systemd[1]: Created slice Root Slice.
[    3.503292] systemd[1]: Starting User and Session Slice.
[    3.513210] systemd[1]: Created slice User and Session Slice.
[    3.521029] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[    3.532345] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    3.541548] systemd[1]: Starting Delayed Shutdown Socket.
[    3.551772] systemd[1]: Listening on Delayed Shutdown Socket.
[    3.559762] systemd[1]: Starting Journal Socket (/dev/log).
[    3.570212] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.578410] systemd[1]: Starting udev Control Socket.
[    3.588169] systemd[1]: Listening on udev Control Socket.
[    3.595727] systemd[1]: Starting udev Kernel Socket.
[    3.605155] systemd[1]: Listening on udev Kernel Socket.
[    3.612567] systemd[1]: Starting Journal Socket.
[    3.621797] systemd[1]: Listening on Journal Socket.
[    3.628935] systemd[1]: Starting System Slice.
[    3.638028] systemd[1]: Created slice System Slice.
[    3.645071] systemd[1]: Starting File System Check on Root Device...
[    3.659234] systemd[1]: Starting system-systemd\x2dfsck.slice.
[    3.670544] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    3.679129] systemd[1]: Starting system-autologin.slice.
[    3.689545] systemd[1]: Created slice system-autologin.slice.
[    3.697525] systemd[1]: Starting system-serial\x2dgetty.slice.
[    3.708373] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    3.716979] systemd[1]: Starting Increase datagram queue length...
[    3.731101] systemd[1]: Starting Restore / save the current clock...
[    3.753142] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    3.797081] systemd[1]: Started Set Up Additional Binary Formats.
[    3.816690] systemd[1]: Starting Load Kernel Modules...
[    3.831675] systemd[1]: Mounting Debug File System...
[    3.845938] systemd[1]: Mounted Huge Pages File System.
[    3.853940] systemd[1]: Starting udev Coldplug all Devices...
[    3.867416] fuse init (API version 7.23)
[    3.869894] systemd[1]: Mounting POSIX Message Queue File System...
[    3.889100] systemd[1]: Starting Slices.
[    3.898375] systemd[1]: Reached target Slices.
[    3.911529] systemd[1]: Mounted POSIX Message Queue File System.
[    3.922675] systemd[1]: Mounted Debug File System.
[    3.931272] i2c /dev entries driver
[    3.939684] systemd[1]: Started Increase datagram queue length.
[    3.964257] systemd[1]: Started File System Check on Root Device.
[    3.977157] systemd[1]: Started Restore / save the current clock.
[    3.989636] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    4.006935] systemd[1]: Started Load Kernel Modules.
[    4.026579] systemd[1]: Time has been changed
[    4.097070] systemd[1]: Started udev Coldplug all Devices.
[    4.245540] systemd[1]: Mounting Configuration File System...
[    4.259672] systemd[1]: Mounting FUSE Control File System...
[    4.274401] systemd[1]: Starting Apply Kernel Variables...
[    4.290189] systemd[1]: Starting Create Static Device Nodes in /dev...
[    4.306353] systemd[1]: Starting Syslog Socket.
[    4.316717] systemd[1]: Listening on Syslog Socket.
[    4.316971] systemd[1]: Starting Journal Service...
[    4.327436] systemd[1]: Started Journal Service.
[    4.468449] systemd-udevd[107]: starting version 215
[    5.232104] EXT4-fs (mmcblk0p7): re-mounted. Opts: (null)
[    5.685889] rtusb init rt2870 --->
[    5.723839] 

=== pAd = bbe73000, size = 857568 ===

[    5.724036] <-- RTMPAllocTxRxRingMemory, Status=0
[    5.725052] <-- RTMPAllocAdapterBlock, Status=0
[    5.736882] ==>RT65xx_WLAN_ChipOnOff(): OnOff:1, Reset= 0, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0xff000002
[    5.798754] MCUType = 2
[    5.799434] NVM is EFUSE
[    5.799468] Endpoint(8) is for In-band Command
[    5.799497] Endpoint(4) is for WMM0 AC0
[    5.799519] Endpoint(5) is for WMM0 AC1
[    5.799533] Endpoint(6) is for WMM0 AC2
[    5.799544] Endpoint(7) is for WMM0 AC3
[    5.799554] Endpoint(9) is for WMM1 AC0
[    5.799567] Endpoint(84) is for Data-In
[    5.799578] Endpoint(85) is for Command Rsp
[    5.802376] usbcore: registered new interface driver rt2870
[    5.933641] bcm2835-rng 3f104000.rng: hwrng registered
[    5.934361] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    5.978571] usb 1-1.3 wlan0: renamed from ra0
[    6.045618] systemd-udevd[160]: renamed network interface ra0 to wlan0
[    6.116227] systemd-journald[105]: Received request to flush runtime journal from PID 1
[    6.594599] -->RTUSBVenderReset
[    6.595534] <--RTUSBVenderReset
[    6.600581] fw version:0.1.00 build:7640
[    6.600607] build time:201308221655____
[    6.600670] ilm length = 68780(bytes)
[    6.600684] dlm length = 11476(bytes)
[    6.624907] #
[    6.631077] loading fw......
[    6.694787] #
[    6.915840] RTMP_TimerListAdd: add timer obj bbef1b84!
[    6.915874] RTMP_TimerListAdd: add timer obj bbef1bcc!
[    6.915887] RTMP_TimerListAdd: add timer obj bbef1c14!
[    6.915902] RTMP_TimerListAdd: add timer obj bbef1b3c!
[    6.915919] RTMP_TimerListAdd: add timer obj bbef1a64!
[    6.915932] RTMP_TimerListAdd: add timer obj bbef1aac!
[    6.915945] RTMP_TimerListAdd: add timer obj bbe85c2c!
[    6.915958] RTMP_TimerListAdd: add timer obj bbe7503c!
[    6.915971] RTMP_TimerListAdd: add timer obj bbe75088!
[    6.915983] RTMP_TimerListAdd: add timer obj bbe85d14!
[    6.916000] RTMP_TimerListAdd: add timer obj bbe85b9c!
[    6.916021] RTMP_TimerListAdd: add timer obj bbe85ccc!
[    6.921643] no file read method
[    6.921666] Read file "/etc/Wireless/RT2870STA/RT2870STA.dat" failed(errCode=-1)!
[    6.921691] 1. Phy Mode = 6
[    6.921701] 2. Phy Mode = 6
[    6.921715] NVM is Efuse and its size =1d[1e0-1fc] 
[    6.941446] /home/richard/src/mt7610/os/linux/../../chips/mt76x0.c:2115 assert (pAd->TxPower[choffset].Channel == 36)failed
[    6.955667] ERROR!!! E2PROM: WRONG VERSION 0x2, should be 1
[    6.960389] mt76x0_read_tx_alc_info_from_eeprom: EEPROM_MT76x0_TEMPERATURE_OFFSET (0xD1) = 0xf8
[    6.960404] mt76x0_read_tx_alc_info_from_eeprom: TemperatureOffset = 0xfffffff8
[    6.960414] Temperature Tx ALC not enabled
[    6.980103] 3. Phy Mode = 6
[    6.980124] AntCfgInit: primary/secondary ant 0/1
[    6.986951] RTMPSetPhyMode: channel is out of range, use first channel=1 
[    6.986973] MCS Set = 00 00 00 00 00
[    6.997050] <==== rt28xx_init, Status=0
[    6.998250] 0x1300 = 00073200
[    6.998263] RTMPDrvSTAOpen(1):Check if PDMA is idle!
[    6.998433] RTMPDrvSTAOpen(2):Check if PDMA is idle!
[    7.461158] cfg80211: Calling CRDA to update world regulatory domain
[    7.537202] cfg80211: World regulatory domain updated:
[    7.537230] cfg80211:  DFS Master region: unset
[    7.537240] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    7.537254] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.537265] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.537276] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    7.537289] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    7.537301] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    7.537312] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    7.537323] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    7.537333] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    7.584879] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:159740k SSFS
[    7.609140] /home/richard/src/mt7610/os/linux/../../common/cmm_asic.c:2112 assert KeyIdx < 4failed
[    7.609718] /home/richard/src/mt7610/os/linux/../../common/cmm_asic.c:2112 assert KeyIdx < 4failed
Is this a 5Khz issue?

iwconfig seems to indicate wlan0 is up on 2.4ghz, but can't find ssid...

Code: Select all

[email protected]:~ $ iwconfig
wlan0     Ralink STA  ESSID:""  Nickname:"MT7610U_STA"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Bit Rate:1 Mb/s   
          RTS thr:off   Fragment thr:off
          Link Quality=10/100  Signal level:0 dBm  Noise level:0 dBm
          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.
Maybe it can't read /etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

[email protected]:~ $ ls -al /etc/wpa_supplicant/wpa_supplicant.conf 
-rw------- 1 root root 137 Apr 22 04:02 /etc/wpa_supplicant/wpa_supplicant.conf
That seems to be ok.
What next? :-/

Bosse_B
Posts: 689
Joined: Thu Jan 30, 2014 9:53 am

Re: WiFi Issues ? Start here !

Sat Apr 23, 2016 10:57 pm

I have a strange problem with an RPi3 (using built-in WiFi), which connects to a WiFi device publishing an access point.
The system is sitting in Texas and I am in Sweden.

What happens is this:
I have set up the wpa_supplicant file with the necessary information to connect to SSID "Development7139" and it does this and remains connected for about 24 hours. I do not know exactly because I have not been on remotely from here all the time.
If I connect using TightVNC to the RPi3 (it is dual homed with a wired network too and I can VPN into that network) I can see regular activity on the network icon but it always fails to connect now. Has been working fine since last night this time and up until a short while.

I looked at the syslog and I found a number of strange things there like:

Code: Select all

Apr 24 00:42:12 rpi3-agi1 wpa_supplicant[1757]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=SE
Apr 24 00:42:12 rpi3-agi1 kernel: [139273.555326] cfg80211: Regulatory domain changed to country: SE
Why is it doing this? It is in Texas, USA and not in Sweden!

And it goes on:

Code: Select all

Apr 24 00:43:12 rpi3-agi1 wpa_supplicant[1757]: wlan0: WPA: TKIP countermeasures stopped
Apr 24 00:43:13 rpi3-agi1 wpa_supplicant[1757]: wlan0: Trying to associate with SSID 'Development7139'
Apr 24 00:43:13 rpi3-agi1 wpa_supplicant[1757]: wlan0: Associated with 00:03:94:1d:22:b9
Apr 24 00:43:16 rpi3-agi1 wpa_supplicant[1757]: wlan0: WPA: Key negotiation completed with 00:03:94:1d:22:b9 [PTK=TKIP GTK=TKIP]
Apr 24 00:43:16 rpi3-agi1 wpa_supplicant[1757]: wlan0: CTRL-EVENT-CONNECTED - Connection to 00:03:94:1d:22:b9 completed [id=3 id_str=]
Apr 24 00:43:16 rpi3-agi1 dhcpcd[406]: wlan0: carrier acquired
Apr 24 00:43:16 rpi3-agi1 dhcpcd[406]: all: IPv6 kernel autoconf disabled
Apr 24 00:43:16 rpi3-agi1 dhcpcd[406]: wlan0: IAID eb:03:9d:cd
Apr 24 00:43:16 rpi3-agi1 dhcpcd[406]: wlan0: soliciting a DHCP lease
Apr 24 00:43:16 rpi3-agi1 wpa_supplicant[1757]: wlan0: Michael MIC failure detected
Apr 24 00:43:16 rpi3-agi1 wpa_supplicant[1757]: wlan0: WPA: Sending EAPOL-Key Request (error=1 pairwise=0 ptk_set=1 len=99)
Apr 24 00:43:17 rpi3-agi1 wpa_supplicant[1757]: wlan0: Michael MIC failure detected
Apr 24 00:43:17 rpi3-agi1 wpa_supplicant[1757]: wlan0: WPA: Sending EAPOL-Key Request (error=1 pairwise=0 ptk_set=1 len=99)
Apr 24 00:43:17 rpi3-agi1 wpa_supplicant[1757]: wlan0: TKIP countermeasures started
Apr 24 00:43:17 rpi3-agi1 kernel: [139338.119932] cfg80211: Calling CRDA to update world regulatory domain
Apr 24 00:43:17 rpi3-agi1 wpa_supplicant[1757]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:03:94:1d:22:b9 reason=14 locally_generated=1
Apr 24 00:43:17 rpi3-agi1 wpa_supplicant[1757]: nl80211: Was expecting local disconnect but got another disconnect event first
Apr 24 00:43:17 rpi3-agi1 dhcpcd[406]: wlan0: carrier lost
Apr 24 00:43:17 rpi3-agi1 wpa_supplicant[1757]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Apr 24 00:43:17 rpi3-agi1 kernel: [139338.136886] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
Apr 24 00:43:17 rpi3-agi1 kernel: [139338.136920] cfg80211: World regulatory domain updated:
Apr 24 00:43:17 rpi3-agi1 kernel: [139338.136931] cfg80211:  DFS Master region: unset
I am at a loss as to why the disconnect happens and why the RPi3 is no longer able to reconnect.
Any ideas?
I am running Raspbian Jessie from the March release.
Bo Berglund
Sweden

vbman213
Posts: 6
Joined: Thu Mar 24, 2016 12:38 pm

Re: WiFi Issues ? Start here !

Sun Apr 24, 2016 5:34 am

I have two new Raspberry Pi 3 units. I am seeing major issues with the built-in Wi-Fi.

I'm running iPerf3 to test throughput and I frequently see results like this:

Code: Select all

[email protected]:~ $ iperf3 -c iperf.scottlinux.com
Connecting to host iperf.scottlinux.com, port 5201
[  4] local 192.168.10.105 port 45707 connected to 173.230.156.66 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   617 KBytes  5.05 Mbits/sec    0    151 KBytes
[  4]   1.00-2.00   sec   672 KBytes  5.50 Mbits/sec    0    180 KBytes
[  4]   2.00-3.00   sec   386 KBytes  3.16 Mbits/sec    0    202 KBytes
[  4]   3.00-4.00   sec   136 KBytes  1.11 Mbits/sec    0    202 KBytes
[  4]   4.00-5.00   sec  0.00 Bytes  0.00 bits/sec    0    202 KBytes
[  4]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec    0    202 KBytes
[  4]   6.00-7.00   sec  0.00 Bytes  0.00 bits/sec    0    202 KBytes
[  4]   7.00-8.00   sec  0.00 Bytes  0.00 bits/sec    0    202 KBytes
[  4]   8.00-9.00   sec   137 KBytes  1.12 Mbits/sec    0    202 KBytes
[  4]   9.00-10.00  sec   649 KBytes  5.32 Mbits/sec    1    144 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  2.54 MBytes  2.13 Mbits/sec    1             sender
[  4]   0.00-10.00  sec  2.27 MBytes  1.91 Mbits/sec                  receiver

iperf Done.
If I use my Edimax WiFi adapter I see the full bandwidth of my internet connection (about 25 Mbits/sec)

Return to “Troubleshooting”