使用 tuya-convert 后 Wifi 无法使用

使用 tuya-convert 后 Wifi 无法使用

我打算使用“tuya-convert”在我的其中一台家用设备上刷新固件。我基本上安装了一些依赖项,然后运行了一个脚本,该脚本使用我的 Ubuntu 18 笔记本作为智能设备的热点。遗憾的是,重启后,我的 wifi 停止工作。它找不到任何网络,似乎已关闭。我尝试了很多方法,并在谷歌上搜索了很多,但我找不到解决方案。以太网仍然有效。

ifconfig 输出:

enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.178.51  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 fe80::f14a:9a76:388e:9ef5  prefixlen 64  scopeid 0x20<link>
        inet6 fd00::b554:8b13:68ab:161c  prefixlen 64  scopeid 0x0<global>
        inet6 fd00::ac63:a23b:daaf:30c5  prefixlen 64  scopeid 0x0<global>
        ether 54:ee:75:9b:9e:6a  txqueuelen 1000  (Ethernet)
        RX packets 3104  bytes 1484783 (1.4 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2071  bytes 472941 (472.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xe1200000-e1220000  

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  (Lokale Schleife)
        RX packets 676  bytes 63421 (63.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 676  bytes 63421 (63.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

没有显示 Wifi。

iwconfig 输出:

enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.178.51  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 fe80::f14a:9a76:388e:9ef5  prefixlen 64  scopeid 0x20<link>
        inet6 fd00::b554:8b13:68ab:161c  prefixlen 64  scopeid 0x0<global>
        inet6 fd00::ac63:a23b:daaf:30c5  prefixlen 64  scopeid 0x0<global>
        ether 54:ee:75:9b:9e:6a  txqueuelen 1000  (Ethernet)
        RX packets 3104  bytes 1484783 (1.4 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2071  bytes 472941 (472.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xe1200000-e1220000  

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  (Lokale Schleife)
        RX packets 676  bytes 63421 (63.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 676  bytes 63421 (63.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sudo lshw -C 网络:

enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.178.51  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 fe80::f14a:9a76:388e:9ef5  prefixlen 64  scopeid 0x20<link>
        inet6 fd00::b554:8b13:68ab:161c  prefixlen 64  scopeid 0x0<global>
        inet6 fd00::ac63:a23b:daaf:30c5  prefixlen 64  scopeid 0x0<global>
        ether 54:ee:75:9b:9e:6a  txqueuelen 1000  (Ethernet)
        RX packets 3104  bytes 1484783 (1.4 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2071  bytes 472941 (472.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xe1200000-e1220000  

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  (Lokale Schleife)
        RX packets 676  bytes 63421 (63.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 676  bytes 63421 (63.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

它显示 Wi-Fi 已停用。它在设置中已启用。当然,飞行模式已关闭。

iwlist wlp3s0 扫描输出:

wlp3s0    Failed to read scan data : Network is down

运行“ifconfig wlp3s0 up”并重做“iwlist wlp3s0 scan”只输出“无扫描结果”。

rfkill 列出全部

0: tpacpi_bluetooth_sw: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
2: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

我还尝试安装 Ubuntu ISO 并进入更新中心并检查“附加驱动程序”,但它不需要任何东西(通过以太网连接时)。

如您所见,我尝试了很多方法。有人知道发生了什么吗?

我将固件刷入智能家居设备时,却把一切都搞乱了:

git clone https://github.com/ct-Open-Source/tuya-convert

cd tuya-convert
sudo ./install_prereq.sh 

(安装dnsmasq hostapd screen curl python3-pip python3-setuptools python3-wheel mosquitto haveged net-tools并运行sudo pip3 install paho-mqtt pyaes tornado

然后我跑了

https://github.com/ct-Open-Source/tuya-convert/blob/master/start_flash.sh 

一直到第 66 行。也许第 60 行在这里很有趣?

相关内容