如何解决RaspberryPi Zero上的Wifi稳定性问题
我正在一个项目上使用RPI Zero w,并且我在wifi方面遇到了一些问题。 PIZW应该在打开热点和本地服务器后从用户那里获得wifi凭据,然后用户将发送wifi凭据。下一步,PIZW将连接到WIFI并开始运行。 此过程正在运行(也可以完美地在PI 3上运行) 关键是PIZW上的wifi不断断开连接(即使以无头方式配置) 断开连接需要2-3分钟,有时它会重新连接而无需重新启动,而其他时候则需要重新启动才能重新连接。
如果将我的interfaces文件配置为以下内容,则wifi不会出现问题,但是热点不会出现。
# 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
auto eth0
iface eth0 inet dhcp
pre-up /opt/utils/network_preup.sh
post-up /opt//utils/network_postup.sh
dns-nameserver 8.8.8.8
dns-nameserver 8.8.4.4
dns-search www.google.com
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
pre-up /opt//utils/network_preup.sh
post-up /opt//utils/network_postup.sh
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
当我将interfaces文件更改为以下文件时,热点可以工作,但wifi不稳定
# 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
任何方向?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。