wifi模块不断重复连接
您好,我用的是ESP8266模块刷了机智云固件,用它来当做wifi模块,ESP8266模块如图http://mail.163.com/js6/s?func=mbox:getMessageData&sid=YAzeqqGMGyvHakvkSGMMUEZmWpbyJclT&mid=92:1tbiXBmbOlXlhmvpQAAAsQ&part=3
用机智云串口调试工具的模拟MCU端可以把数据上传到机智云,在机智云端可以通过查看日志可以看到,
http://mail.163.com/js6/s?func=mbox:getMessageData&sid=YAzeqqGMGyvHakvkSGMMUEZmWpbyJclT&mid=92:1tbiXBmbOlXlhmvpQAAAsQ&part=4http://mail.163.com/js6/s?func=mbox:getMessageData&sid=YAzeqqGMGyvHakvkSGMMUEZmWpbyJclT&mid=92:1tbiXBmbOlXlhmvpQAAAsQ&part=5
但是通过STM32芯片的话,ESP8266模块就不断重复去连接所配置的wifi,就是一连上就断开然后又去连接,这个情况是怎么解决呢?我是用机智云自动生成的MCU代码,里面的串口,定时器,以及设备key都初始化对应的了。串口1一直打印这些日志,不清楚什么原因导致
http://mail.163.com/js6/s?func=mbox:getMessageData&sid=YAzeqqGMGyvHakvkSGMMUEZmWpbyJclT&mid=92:1tbiXBmbOlXlhmvpQAAAsQ&part=6
ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
valueTypes ChanERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
ged
valuestatus Changed
valueTimeMonth Changed
valueTimeDay Changed
valueTimeYear Changed
valueAmount Changed
valuePhone Changed
valueCardID Changed
valueRemind Changed
changed, report data
MCU2WiFi: ff ff 00 44 05 00 00 00 04 05 03 0d 07 e1 00 00 00 00 00 00 00 1f 31 32 33 34 35 36 37 38 00 00 00 00 00 00 00 31 32 33 34 35 36 3ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
7 38 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b2ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
ERROR: no memory 0
ERROR: Failed to rbWrite
Warning:gizProtocolResendData 1871 1670 0
Warning: timeout, resend data
MCU2WiFi: ff ff 00 44 05 00 00 00 04 05 03 0d 07 e1 00 00 00 00 00 00 00 1f 31 32 33 34 35 36 37 38 00 00 00 00 00 00 00 31 32 33 34 35 36 37 38 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b2
valueTypes Changed
valuestatus Changed
valueAmount Changed
changed, report data
MCU2WiFi: ff ff 00 44 05 01 00 00 04 00 03 0d 07 e1 00 00 00 00 00 00 00 20 31 32 33 34 35 36 37 38 00 00 00 00 00 00 00 31 32 33 34 35 36 37 38 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 af
WarERROR: no memory 0
调了很久也不清楚原因,希望您能百忙之中抽空解答一下,非常感谢!
图片看不到,文件太大了,你裁剪下再发上来 这个原因是因为MCU处理不过来打印出来的内存不足。但不会影响后续的运行,把打印协议的日志宏关掉就看不到了 wifi不断重复连接的问题找到了,因为我把机智云自动生成的MCU代码移植到我的工程,我把在userInit()函数里忘了初始化用户数据,加上去就正常了 QH_飞蓬 发表于 2017-3-23 09:06
wifi不断重复连接的问题找到了,因为我把机智云自动生成的MCU代码移植到我的工程,我把在userInit()函数里 ...
您好请问初始化用户数据怎么加?
页:
[1]