Raspberry Pi 3 WiFi Problem

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
colinng
 
Posts: 8
Joined: Thu Aug 30, 2012 2:56 am

Raspberry Pi 3 WiFi Problem

Post by colinng »

Hi,

I bought a Raspberry Pi 3 - Model B - ARMv8 with 1G RAM[ID:3055], Adafruit order 1315437-7460584741 on December 23rd, 2017.
IMG_6548 (1).jpg
IMG_6548 (1).jpg (163.17 KiB) Viewed 2409 times
IMG_6547 (1).jpg
IMG_6547 (1).jpg (130.97 KiB) Viewed 2409 times
It's connected to micro USB power, HDMI, and now Ethernet.

When I received my Raspberry Pi 3 the beginning of January, the built-in WiFi worked, using Raspbian Jessie with Pixel 2016-11-25-raspbian-jessie.img.

4 days ago the built-in WiFi stopped detecting APs. The WiFi menu shows "No APs found - scanning..." nonstop. It used to see all 8 APs around my area. To confirm I'm not in a deadzone or having interference - when I plug in a USB WiFi dongle (TP-Link TL-WN725N) it will see all 8 APs.

I tried update/upgrade, and I re-imaged the microSD; they have since updated:
2017-01-11-raspbian-jessie.img downloaded from https://www.raspberrypi.org/downloads/raspbian/.

The built-in WiFi is still not detecting any APs.

Any ideas on what I can try? I followed the steps in the "WiFi Issues ? Start here !" at https://www.raspberrypi.org/forums/view ... 28&t=44044.

1) Check whether the WiFi stick is being picked up at all
The Pi 3 has WiFi built-in, and I don't think it is via the USB bus... but here goes:

Code: Select all

$ lsusb
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
2) Check whether the modules loaded

It is detected as wlan0, but here is the requested output:

Code: Select all

$ lsmod
Module                  Size  Used by
bnep                   10340  2 
hci_uart               17943  1 
btbcm                   5929  1 hci_uart
bluetooth             326105  22 bnep,btbcm,hci_uart
binfmt_misc             6388  1 
brcmfmac              186403  0 
brcmutil                5661  1 brcmfmac
cfg80211              428431  1 brcmfmac
rfkill                 16037  4 cfg80211,bluetooth
snd_bcm2835            20447  1 
snd_pcm                75762  1 snd_bcm2835
snd_timer              19288  1 snd_pcm
snd                    51908  5 snd_bcm2835,snd_timer,snd_pcm
bcm2835_gpiomem         3040  0 
bcm2835_wdt             3225  0 
uio_pdrv_genirq         3164  0 
uio                     8000  1 uio_pdrv_genirq
i2c_dev                 5859  0 
fuse                   84037  3 
ipv6                  347594  52 
3) Check the WiFi NIC

Code: Select all

$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr b8:27:eb:8c:0e:e5  
          inet addr:192.168.100.234  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::d17b:86fe:dc56:3134/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6185 errors:0 dropped:31 overruns:0 frame:0
          TX packets:5700 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:549207 (536.3 KiB)  TX bytes:2123706 (2.0 MiB)

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:209 errors:0 dropped:0 overruns:0 frame:0
          TX packets:209 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:17176 (16.7 KiB)  TX bytes:17176 (16.7 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:d9:5b:b0  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:165 errors:0 dropped:165 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11579 (11.3 KiB)  TX bytes:0 (0.0 B)
4) Check the WiFi configuration

The only config I needed was wpa_supplicant.conf. This is pretty much the same config I had when WiFi was working, and this config works with my USB WiFi dongle:

Code: Select all

$ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf 
country=CA
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
	ssid="<my ESSID>"
	psk="<my valid password>"
}
4d) Make Sure The WiFi Network Can Be Detected
And this goes right back to my problem - it doesn't see any APs:

Code: Select all

$ sudo wpa_cli scan && sleep 5 && wpa_cli scan_results
Selected interface 'wlan0'
OK
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
Here's a few more things I tried:

Code: Select all

$ iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=31 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

$ iwlist wlan0 scanning
wlan0     No scan results

$ iwlist wlan0 frequency
wlan0     13 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
$ iwlist wlan0 ap
wlan0     Interface doesn't have a list of Peers/Access-Points

$ iwlist wlan0 power
wlan0     Current mode:on

$ iwlist wlan0 txpower
wlan0     unknown transmit-power information.
          

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

Re: Raspberry Pi 3 WiFi Problem

Post by adafruit_support_mike »

The `ifconfig` output shows that packets are being dropped as fast as they arrive. Do you see anything that looks relevant in /var/log/messages?

User avatar
colinng
 
Posts: 8
Joined: Thu Aug 30, 2012 2:56 am

Re: Raspberry Pi 3 WiFi Problem

Post by colinng »

Nothing stands out in /var/log/messages

There's a couple lines mentioning wlan0 but I don't think they are relevant:

Code: Select all

Jan 18 20:58:48 raspberrypi kernel: [   13.793211] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jan 18 20:58:51 raspberrypi kernel: [   17.029910] Adding 102396k swap on /var/swap.  Priority:-1 extents:3 across:208896k SSFS
Jan 18 20:58:51 raspberrypi vncserver-x11[428]: ServerManager: Server started
Jan 18 20:58:53 raspberrypi vncserver-x11[428]: ConsoleDisplay: Cannot find a running X server on vt1
Jan 18 20:58:53 raspberrypi vncserver-x11[428]: ConsoleDisplay: Found running X server (pid=544)
Jan 18 20:59:05 raspberrypi kernel: [   30.927292] R8188EU: ERROR assoc success
Jan 18 20:59:05 raspberrypi kernel: [   30.927566] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jan 18 20:59:07 raspberrypi kernel: [   33.203768] Bluetooth: Core ver 2.21
I've attached the log of messages since my Pi booted up... uptime was about 2h40.
messages.tgz
(90.64 KiB) Downloaded 290 times

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

Re: Raspberry Pi 3 WiFi Problem

Post by adafruit_support_mike »

Those are fairly standard..

Could you post the output from `dmesg` please?

User avatar
colinng
 
Posts: 8
Joined: Thu Aug 30, 2012 2:56 am

Re: Raspberry Pi 3 WiFi Problem

Post by colinng »

I was curious what was broken on the Pi 3's WiFi - so now I've put the Pi 3 directly on top of my WiFi Router (Symbol AP-5131) and now the Pi detects it - and only it. The other 7 access points (1 in my house, several in the neighbouring houses) are still not seen.

Code: Select all

$ iwlist wlan0 scanning
wlan0     Scan completed :
          Cell 01 - Address: 00:A0:F8:72:28:30
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=34/70  Signal level=-76 dBm  
                    Encryption key:on
                    ESSID:"ngland.net"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000000000000
                    Extra: Last beacon: 28790ms ago
                    IE: Unknown: 000A6E676C616E642E6E6574
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030106
                    IE: Unknown: 0706434149010B1E
                    IE: Unknown: 0B050500723D09
                    IE: Unknown: 2A0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32043048606C
                    IE: Unknown: AD0F00A0F8050004002000000000000000

Just saw your message - The full output of dmesg is also
dmesg.txt
(22.86 KiB) Downloaded 284 times
attached.

Code: Select all

[    4.400902] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[    4.420209] random: nonblocking pool is initialized
[    4.422853] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    4.604244] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    4.604255] cfg80211: World regulatory domain updated:
[    4.604264] cfg80211:  DFS Master region: unset
[    4.604265] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    4.604278] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    4.604290] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    4.604297] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    4.604306] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    4.604317] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    4.604325] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    4.604332] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    4.604339] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    5.005382] systemd-journald[135]: Received request to flush runtime journal from PID 1
[    5.407329] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
[    5.407346] brcmfmac: brcmf_add_if: ignore IF event
[    5.411662] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    5.411681] brcmfmac: power management disabled
[    5.561673] uart-pl011 3f201000.uart: no DMA platform data
[    5.952936] cfg80211: Regulatory domain changed to country: GB
[    5.952943] cfg80211:  DFS Master region: ETSI
[    5.952944] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    5.952949] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    5.952955] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    5.952959] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    5.952963] cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2700 mBm), (0 s)
[    5.952966] cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[    6.151496] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:217084k SSFS
[    6.350988] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    6.351223] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.953885] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

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

Re: Raspberry Pi 3 WiFi Problem

Post by adafruit_support_mike »

The dmesg trace shows that your Wifi domain is Great Britain. Is that correct?

User avatar
colinng
 
Posts: 8
Joined: Thu Aug 30, 2012 2:56 am

Re: Raspberry Pi 3 WiFi Problem

Post by colinng »

Yes, I didn't bother changing it to Canada this time because it hadn't made a difference in the past.

http://www.radio-electronics.com/info/w ... dwidth.php

I'll change it now to CA and see if it makes a difference!

User avatar
colinng
 
Posts: 8
Joined: Thu Aug 30, 2012 2:56 am

Re: Raspberry Pi 3 WiFi Problem

Post by colinng »

Okay changed it to CA and here's the latest output. I couldn't get it to see my base station from just 10 feet away, so this is with it 2 feet away - and the scan is intermittent.

Code: Select all

pi@raspberrypi:~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:8c:0e:e5  
          inet addr:192.168.100.234  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::d17b:86fe:dc56:3134/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:169 errors:0 dropped:3 overruns:0 frame:0
          TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:19856 (19.3 KiB)  TX bytes:22249 (21.7 KiB)

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:145 errors:0 dropped:0 overruns:0 frame:0
          TX packets:145 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:11992 (11.7 KiB)  TX bytes:11992 (11.7 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:d9:5b:b0  
          inet6 addr: fe80::8a03:61ef:441d:f074/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:2 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:123 (123.0 B)  TX bytes:0 (0.0 B)

pi@raspberrypi:~ $ iwlist wlan0 scan
wlan0     No scan results

pi@raspberrypi:~ $ iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:A0:F8:72:28:30
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=34/70  Signal level=-76 dBm  
                    Encryption key:on
                    ESSID:"ngland.net"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000000000000
                    Extra: Last beacon: 1140ms ago
                    IE: Unknown: 000A6E676C616E642E6E6574
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030106
                    IE: Unknown: 0706434149010B1E
                    IE: Unknown: 0B0505006C3D09
                    IE: Unknown: 2A0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32043048606C
                    IE: Unknown: AD0F00A0F8050006002700000000000000

pi@raspberrypi:~ $ 

User avatar
colinng
 
Posts: 8
Joined: Thu Aug 30, 2012 2:56 am

Re: Raspberry Pi 3 WiFi Problem

Post by colinng »

Oh and here is 'dmesg'

Code: Select all

[    5.596563] cfg80211: Regulatory domain changed to country: CA
[    5.596585] cfg80211:  DFS Master region: FCC
[    5.596594] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    5.596608] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[    5.596624] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 1700 mBm), (N/A)
[    5.596641] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2400 mBm), (0 s)
[    5.596657] cfg80211:   (5490000 KHz - 5600000 KHz @ 80000 KHz), (N/A, 2400 mBm), (0 s)
[    5.596666] cfg80211:   (5650000 KHz - 5730000 KHz @ 80000 KHz), (N/A, 2400 mBm), (0 s)
[    5.596673] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)

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

Re: Raspberry Pi 3 WiFi Problem

Post by adafruit_support_mike »

Hrm.. the signal strength is normal, but at such a short range I'd expect it to be higher. That could indicate an antenna problem.

What values do you get at 10'?

User avatar
colinng
 
Posts: 8
Joined: Thu Aug 30, 2012 2:56 am

Re: Raspberry Pi 3 WiFi Problem

Post by colinng »

I get this at 10'

Code: Select all

$ iwlist wlan0 scanning
wlan0     Scan completed :
          Cell 01 - Address: 00:A0:F8:72:28:30
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=23/70  Signal level=-87 dBm  
                    Encryption key:on
                    ESSID:"ngland.net"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000000000000
                    Extra: Last beacon: 15510ms ago
                    IE: Unknown: 000A6E676C616E642E6E6574
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030106
                    IE: Unknown: 0706434149010B1E
                    IE: Unknown: 0B0504009C3D09
                    IE: Unknown: 2A0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32043048606C
                    IE: Unknown: AD0F00A0F8040006002D00000000000000


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

Re: Raspberry Pi 3 WiFi Problem

Post by adafruit_support_mike »

Thank you. That's a lot more attentuation than I'd expect from such a small change in distance. I think we can call that a bad/marginal antenna.

Send a note containing a link to this thread and your order number to [email protected]. The folks there will get you another Pi3.


(#3055)

User avatar
colinng
 
Posts: 8
Joined: Thu Aug 30, 2012 2:56 am

Re: Raspberry Pi 3 WiFi Problem

Post by colinng »

Thanks Mike for your help! I also learned a lot during this process (i.e. reading up on dBm, ham radio, etc.).

User avatar
nsmdigital
 
Posts: 1
Joined: Mon Feb 20, 2017 8:15 pm

Re: Raspberry Pi 3 WiFi Problem

Post by nsmdigital »

I have the same problem, almost exactly, my wifi is intermittent, blue tooth is working great. The wifi on this RPI3 device has never connected but yet it shows it has saved my ssid and wep-key. Any thoughts on how to resolve the problem?

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”