『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 4066|回复: 4

[技术探讨] 8266开发板刷tasmota反复重启的问题

[复制链接]

7

主题

188

帖子

2345

积分

金牌会员

Rank: 6Rank: 6

积分
2345
金钱
2157
HASS币
0
发表于 2019-12-8 16:14:21 | 显示全部楼层 |阅读模式
买了一个sonoff的基本版,刷了tasmota6.4.1,加个继电器用来控制车库门,这个比较正常。

后来又买了个8266开发板,也刷了tasmota6.4.1固件,结果没几分钟就重启一次,车库门不停的开关。
360截图-9064375.jpg
以下是SONOFF板的日志,是正常的

00:00:00 项目: sonoff Sonoff 版本 6.4.1(sonoff)-2_4_2
00:00:00 WIF: 连接到 AP1 tomato 模式: 11N 名称: sonoff1-4634...
00:00:04 WIF: 已连接
00:00:04 DNS: 初始化完成
00:00:04 HTP: Web 服务器地址: sonoff1-4634.local IP 地址: 192.168.5.90
07:05:31 MQT: 尝试连接...
07:05:31 MQT: 已连接
07:05:31 MQT: tele/sonoff1/LWT = 在线 (已保留)
07:05:31 MQT: cmnd/sonoff1/POWER =
07:05:31 MQT: tele/sonoff1/INFO1 = {"Module":"Sonoff Basic","Version":"6.4.1(sonoff)","FallbackTopic":"cmnd/DVES_B6921A_fb/","GroupTopic":"sonoffs"}
07:05:31 MQT: tele/sonoff1/INFO2 = {"WebServerMode":"Admin","Hostname":"sonoff1-4634","IPAddress":"192.168.5.90"}
07:05:31 MQT: tele/sonoff1/INFO3 = {"RestartReason":"Power on"}
07:05:31 MQT: stat/sonoff1/RESULT = {"POWER":"OFF"}
07:05:31 MQT: stat/sonoff1/POWER = OFF
07:05:39 MQT: tele/sonoff1/STATE = {"Time":"2019-12-08T07:05:39","Uptime":"0T00:00:14","Vcc":4.466,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"OFF","Wifi":{"AP":1,"SSId":"tomato","BSSId":"代替MAC地址","Channel":3,"RSSI":100}}
07:10:39 MQT: tele/sonoff1/STATE = {"Time":"2019-12-08T07:10:39","Uptime":"0T00:05:14","Vcc":4.466,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"OFF","Wifi":{"AP":1,"SSId":"tomato","BSSId":"代替MAC地址","Channel":3,"RSSI":100}}
07:13:34 CMD: pulsetime 8
07:13:34 MQT: stat/sonoff1/RESULT = {"PulseTime1":"8 (Active 8)"}
07:13:35 MQT: stat/sonoff1/RESULT = {"POWER":"OFF"}
07:13:35 MQT: stat/sonoff1/POWER = OFF
07:15:25 APP: 串口日志已禁用
07:15:39 MQT: tele/sonoff1/STATE = {"Time":"2019-12-08T07:15:39","Uptime":"0T00:10:14","Vcc":4.466,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"OFF","Wifi":{"AP":1,"SSId":"tomato","BSSId":"FE:7C111111","Channel":3,"RSSI":100}}

这是那个8266开发板的,过一会儿就自己重启一次,然后出个stat/sonoff1/POWER = ON stat/sonoff1/POWER = OFF,而正常的那个只是执行个stat/sonoff1/POWER = OFF。

00:00:00 项目: sonoff Sonoff 版本 6.4.1(sonoff)-2_4_2
00:00:00 WIF: 连接到 AP1 tomato 模式: 11N 名称: sonoff-ys1-6765...
00:00:04 WIF: 已连接
00:00:04 DNS: 初始化完成
00:00:04 HTP: Web 服务器地址: sonoff-ys1-6765.local IP 地址: 192.168.5.91
07:34:20 MQT: 尝试连接...
07:34:20 MQT: 已连接
07:34:20 MQT: tele/sonoff-ys1/LWT = 在线 (已保留)
07:34:20 MQT: cmnd/sonoff-ys1/POWER =
07:34:20 MQT: tele/sonoff-ys1/INFO1 = {"Module":"Generic","Version":"6.4.1(sonoff)","FallbackTopic":"cmnd/DVES_B3BA6D_fb/","GroupTopic":"sonoffs"}
07:34:20 MQT: tele/sonoff-ys1/INFO2 = {"WebServerMode":"Admin","Hostname":"sonoff-ys1-6765","IPAddress":"192.168.5.91"}
07:34:20 MQT: tele/sonoff-ys1/INFO3 = {"RestartReason":"Software/System restart"}
07:34:20 MQT: stat/sonoff-ys1/RESULT = {"POWER":"OFF"}
07:34:20 MQT: stat/sonoff-ys1/POWER = OFF
07:34:20 MQT: stat/sonoff-ys1/RESULT = {"POWER":"ON"}
07:34:20 MQT: stat/sonoff-ys1/POWER = ON
07:34:21 MQT: stat/sonoff-ys1/RESULT = {"POWER":"OFF"}
07:34:21 MQT: stat/sonoff-ys1/POWER = OFF
07:34:28 MQT: tele/sonoff-ys1/STATE = {"Time":"2019-12-08T07:34:28","Uptime":"0T00:00:14","Vcc":2.976,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"OFF","Wifi":{"AP":1,"SSId":"tomato","BSSId":"代替MAC地址","Channel":3,"RSSI":70}}
07:34:43 DNS: 初始化完成
07:34:44 MQT: 尝试连接...
07:34:44 MQT: 已连接
07:34:44 MQT: tele/sonoff-ys1/LWT = 在线 (已保留)
07:34:44 MQT: cmnd/sonoff-ys1/POWER =
07:34:44 MQT: stat/sonoff-ys1/RESULT = {"POWER":"ON"}
07:34:44 MQT: stat/sonoff-ys1/POWER = ON
07:34:45 MQT: stat/sonoff-ys1/RESULT = {"POWER":"OFF"}
07:34:45 MQT: stat/sonoff-ys1/POWER = OFF
07:37:32 MQT: 尝试连接...
07:37:35 MQT: 已连接
07:37:35 MQT: tele/sonoff-ys1/LWT = 在线 (已保留)
07:37:35 MQT: cmnd/sonoff-ys1/POWER =
07:37:36 MQT: stat/sonoff-ys1/RESULT = {"POWER":"ON"}
07:37:36 MQT: stat/sonoff-ys1/POWER = ON
07:37:36 MQT: stat/sonoff-ys1/RESULT = {"POWER":"OFF"}
07:37:36 MQT: stat/sonoff-ys1/POWER = OFF
07:39:31 MQT: tele/sonoff-ys1/STATE = {"Time":"2019-12-08T07:39:31","Uptime":"0T00:05:17","Vcc":2.973,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"OFF","Wifi":{"AP":1,"SSId":"tomato","BSSId":"代替MAC地址","Channel":3,"RSSI":72}}



感觉是连接MQTT的问题,固件是一样的,为什么8266开发板的在重启时为什么会执行次stat/sonoff-ys1/POWER = OFF,求大神指教

回复

使用道具 举报

6

主题

287

帖子

4151

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
4151
金钱
3859
HASS币
0
发表于 2019-12-8 17:01:33 | 显示全部楼层
很可能是2.4.2  版本的esp8266库有问题,请更换为其他的版本,比如2.3.0
回复

使用道具 举报

6

主题

287

帖子

4151

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
4151
金钱
3859
HASS币
0
发表于 2019-12-8 17:03:49 | 显示全部楼层
https://community.home-assistant ... ion-please/92345/15

这是hass英文论坛的讨论,2.4.2版本确实是有问题的
回复

使用道具 举报

18

主题

704

帖子

4024

积分

元老级技术达人

积分
4024
金钱
3310
HASS币
60
发表于 2019-12-8 18:54:59 | 显示全部楼层
最新版本7.1.2 是2.6.1的。
回复

使用道具 举报

7

主题

188

帖子

2345

积分

金牌会员

Rank: 6Rank: 6

积分
2345
金钱
2157
HASS币
0
 楼主| 发表于 2019-12-8 20:15:39 | 显示全部楼层
Roger 发表于 2019-12-8 17:03
https://community.home-assistant.io/t/how-reliable-are-the-tasmotaed-sonoffs-in-the-long-run-share-y ...

谢谢指导,换个版本试试
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 15:36 , Processed in 0.052687 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表