NodeMCU自定义固件问题 [英] NodeMCU Custom Firmware Problems

查看:249
本文介绍了NodeMCU自定义固件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用自定义NodeMCU编译ESP8266之后,该版本将无法使用以前的版本。对于自定义版本,我在先前版本的 http://nodemcu-build.com 中使用了云服务。是来自github的nodemcu_float_0.9.6-dev_20150704.bin。



现在的问题是,通过串行端口进行的通信现在很古怪,有时似乎可以正常工作,有时却不能。

p>

例如:



当我列出文件时:

 >对于成对的k,v(file.list())l = string.format(%-15s,k)
print(l ..> .v .. bytes)结尾
stdin:1:')'预期在'bytes'附近
>
>

或者当我执行node.chipid()

 þ®ÈJÀHƒÌHÜÞ{½ÝÕ½{ommẃíë= node.chipid()
> =node.cèipid()
stdin:1:'< eof>'预期在'è'附近
> = node。,+?¥' ¡)
stdin:1:'< name>'预期靠近','
> = node。,+?¥'¡)
stdin:1:'< name> '预期接近','
> = node.chipid()
13840686
> = node.chipid()
13840686
> = node.chipid ()
13840686
>

在上面的示例中,我执行了$ .b.b $ b。node.chipid()六到七次,后两次是有效的。这种错误一遍又一遍,上传lua文件不起作用。 $ b

我已经用LuaLoader和LuaUploader尝试过了,它是可复制的。固件,一切都按预期工作,但未提供我要使用的某些模块。为了进行闪烁,我使用了ESP8266Flasher.exe。



出了什么问题?我做错什么了?更改波特率确实会有所不同,但问题仍然存在。

解决方案

我认为默认波特率已随最新版本更改,请尝试将读取方的波特率设置为115200。



或者,尝试使用init文件中的lua代码将ESP的波特率设置为较低(9600),mayby 115200也是如此快速为您的串行芯片。


After flashing an ESP8266 with a custom NodeMCU build ist doesn't work as with the version before. For the custom build I've used the cloud service at http://nodemcu-build.com, the prior version was nodemcu_float_0.9.6-dev_20150704.bin from github.

The problem now is that communication over serial port now is quirky, sometimes it seems to work, sometime not.

Example:

When I list files:

> for k,v in pairs(file.list()) do l = string.format("%-15s",k)
print(l.."   >..v.." bytes") end
stdin:1: ')' expected near 'bytes'
> 
> 

Or when I execute node.chipid()

þ®ÈJÀHƒÌHÜÞ{½ÝÕ½{ommw¯­íë= node.chipid()
> = node.cèipid()
stdin:1: '<eof>' expected near 'è'
> = node.,+¥‘¡)
stdin:1: '<name>' expected near ','
> = node.,+¥‘¡)
stdin:1: '<name>' expected near ','
> = node.chipid()
13840686
> = node.chipid()
13840686
> = node.chipid()
13840686
> 

In the above exapmle I've executed node.chipid() six or seven times, the latter two times it worked. Errors of this kind happen over and over again, uploading lua files doesn't work, although success was stated.

I've tried it with LuaLoader and LuaUploader, it is reproducable. When flashing the older firmware, everything works as expected, but it doesn't provided some modules I want to use. For flashing I've used ESP8266Flasher.exe.

What is going wrong? What did I do wrong? Changing baud rates did make some differences, but the problems persist.

解决方案

I think the default baud changed with the latest version, try setting the reading side's baud rate to 115200.

Alternatively, try setting the baud rate of the ESP lower (9600) using lua code in the init file, mayby 115200 is too fast for your serial chip.

这篇关于NodeMCU自定义固件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆