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 (将#修改为@)