If you have many custom NodeMCU firmware, but the firmware name does not contain the details of info about what the NodeMCU module libraries are present. This article explains ESP8266 NodeMCU – How to know firmware information?, if ESPlorer works fine means ESP8266 returns the firmware details, some times ESPlorer IDE does not auto-detect the firmware details. so you should note that your custom NodeMCU firmware details yourself. This post will help to firmware details list easily by using small code.
The NodeMCU firmware is designed to work with the Lua scripting language. Lua is a lightweight and powerful scripting language that is well-suited for embedded systems.
The firmware is often used in conjunction with the NodeMCU development kit, which includes the ESP8266 WiFi module and a USB-to-Serial converter. The kit simplifies the development process and makes it easy to upload Lua scripts to the ESP8266
Contents
First Watch Video Demonstration
Issue
Can’t auto detect firmware, because proper answer not got!
Solution
Two ways to know NodeMCU Firmware Details.
- Auto Detect NodeMCU Firmware info in ESPlorer IDE (DO software restart ESP8266 in ESPlorer IDE)
- Use a small piece of code to know the NodeMCU firmware details
Required Components
- ESPlorer IDE
- ESP8266 Module
- USB to TTL/Serial Programmer or Use our Arduino board.
Basic Connection Diagram
Lua Code
-- this program will help if ESPlorer is shows --'Can't autodetect firmware, because proper answer -- not received (may be unknown firmware). --Please, reset module or continue.' --[[ Tested On Firmware and Details Below NodeMCU custom build by frightanic.com branch: master SSL: false modules: bit,enduser_setup,file,gpio,http,i2c,mdns,mqtt,net,node,ow,pwm,rtcfifo,rtcmem,rtctime,sntp,tmr,uart,wifi powered by Lua 5.1.4 on SDK 1.5.4.1(39cb9a32) ]]-- -- https://aruneworld.com/embedded/espressif/esp8266/nodemcu_esp8266/ -- Tested By : Arun(20170219) -- Example Name : AEW_NodeMCU_Firmware_info.lua ----------------------------------------------------------- -- functions {require,pairs} -- lightfunction{print,dofile,loadfile,collectgarbage,pcall,select} --table {package} --romtable {string,math,table,coroutine,debug} --Please update all modules name in below two tables- > Module_Names , Modules Module_Names ={ 'adc','adxl345','am2320','apa102','bit','bme280','bmp085','cjsom','coap','collectgarbage','coroutine','cron','crypto','debug','dht','dofile','encoder','enduser_setup', 'file','gdbstub','gpio','hmc5883l','http','hx711','i2c','loadfile','l3g4200d','math','mdns','mqtt','net','node','ow','package','pairs','pcall','pcm','pref','print', 'pwm', 'rc','require','rfswitch','rotary','rtcfifo','rtcmem','rtctime','select','sigma_delta','sntp','somfy','spi','string','struct','switec', 'table','tls','tm1829','tmr','tsl2561', 'u8g','uart','ucg','websocket', 'wifi', 'wps', 'ws2801', 'ws2812'} Modules = { adc, adxl345, am2320, apa102,bit, bme280, bmp085, cjson, coap,collectgarbage, coroutine, cron, crypto, debug,dht,dofile, encoder, enduser_setup, file, gdbstub,gpio, hmc5883l, http, hx711, i2c,loadfile, l3g4200d, math,mdns, mqtt, net, node, ow,package,pairs,pcall,pcm, pref, print, pwm, rc, require,rfswitch, rotary, rtcfifo, rtcmem, rtctime, select,sigma_delta, sntp, somfy, spi,string, struct, switec, table,tls, tm1829, tmr, tsl2561, u8g, uart, ucg, websocket, wifi, wps, ws2801, ws2812} print("total Modules : "..#Module_Names) --_version print("Firmware conatains Modlues are ") total_modules = 0 for count = 1,#Module_Names do if nil ~= (Modules[count]) then total_modules = total_modules + 1 print("Modulue- "..count.." : "..Module_Names[count],Modules[count]) end end print("Firmware conatains Total Modlues are : "..total_modules)
Step to follow for ESP8266 NodeMCU Firmware information
- Flash old NodeMCU firmware to ESP8266 using Flasher tool
- Upload the above NodeMCU Lua code to ESP8266 using ESPlorer IDE.
- Run(dofile(AEW_NodeMCU_Info.lua) the file in file list.
- Done (you can see the details of NodeMCU firmware details)
Hope this is very useful for you. if you have any questions about this tutorial ask in the command section.
NEXT
|
ESP32 NodeMCU Module – Basic UART,Timer |
ESP32 NodeMCU I2C |
ESP32 NodeMCU Module – WiFi |
ESP32 NodeMCU Net |
|
ESP32 NodeMCU Interface DS18B20 |
|
ESP32 NodeMCU Sitemap |
ESP32 NodeMCU All Post |