admin管理员组文章数量:1540710
树莓派4B+ 2G版,使用了一段时间后,突然发现wifi无法连接了上了,之前都成功连接wifi的;只好通过 eth0口插网线上去检查一下;
版本信息
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.4.79-v7l+ #1373 SMP Mon Nov 23 13:27:40 GMT 2020 armv7l GNU/Linux
查看 wlan0口正常!
检查没有连接上
iw wlan0 link
检查wlan0没有软关闭!
rfkill list
重启端口也没有用。
sudo ifconfig wlan0 up
进入gui窗口界面
查看wicd网络管理器(如果没有这个,参考这个连接解决)https://saitetu/en/entry/2019/09/15/001352
检查wifi配置(我的 密码 肯定没问题没输错,我用手机开热点,树莓派同样也无法连接热点,提示也算密码有误!感觉是树莓派的问题!)
配置WiFi需要配置wpa_supplicant.conf文件,指令:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
- 网络配置:
network={
ssid="你的WiFi名"
psk="WiFi密码"
}
怀疑是WPA的问题,继续检查关于WPA的设置,
尝试修改一下WPA客户端的 驱动程序试试第一个 "nl80211" !
wifi成功连接了
看看网络状态!wlan0口已经获取ip了,说明ok了!
pi@raspberrypi:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.113 netmask 255.255.255.0 broadcast 192.168.8.255
inet6 fd04:8c9a:7d9f:9200:dfe0:e4e0:991b:1457 prefixlen 64 scopeid 0x0<global>
inet6 fe80::f9ef:203:81b0:6a20 prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:de:ea:f9 txqueuelen 1000 (Ethernet)
RX packets 6153 bytes 568867 (555.5 KiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 13090 bytes 14347664 (13.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 28 bytes 2596 (2.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28 bytes 2596 (2.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.114 netmask 255.255.255.0 broadcast 192.168.8.255
ether dc:a6:32:de:ea:fa txqueuelen 1000 (Ethernet)
RX packets 1182 bytes 90087 (87.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4460 bytes 5639465 (5.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
pi@raspberrypi:~ $
pi@raspberrypi:~ $ iw wlan0 link
Connected to 04:8c:9a:7d:9f:93 (on wlan0)
SSID: louisHome
freq: 2447
RX: 17801 bytes (139 packets)
TX: 133344 bytes (190 packets)
signal: -49 dBm
rx bitrate: 72.2 MBit/s
tx bitrate: 72.2 MBit/s
bss flags: short-preamble short-slot-time
dtim period: 1
beacon int: 100
pi@raspberrypi:~ $
问题解决!
深层原因为啥不知道,哪位大神给讲解一下。谢谢
版权声明:本文标题:【已解决】树莓派4B+ wifi无法连接(提示认证失败) 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1727037929a1095241.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论