Esp8266 auth: Unterschied zwischen den Versionen
Pete (Diskussion | Beiträge) |
Pete (Diskussion | Beiträge) |
||
Zeile 28: | Zeile 28: | ||
Use esptool in python to flash firmware on esp. <br> | Use esptool in python to flash firmware on esp. <br> | ||
Press flash button and reset and then release first reset button to get in flash mode <br> | Press flash button and reset and then release first reset button to get in flash mode <br> | ||
<b>actual working firmware:</b> | <b>actual working firmware:</b> <br> | ||
Flashing the nodemcu cloud build on 4MB flash ESP8266 : <br> | Flashing the nodemcu cloud build on 4MB flash ESP8266 : <br> | ||
<code> ./esptool.py -p /dev/tty<SERIALPORT> write_flash -fm dio 0x00000 <binaryname>.bin</code> | <code> ./esptool.py -p /dev/tty<SERIALPORT> write_flash -fm dio 0x00000 <binaryname>.bin</code> |
Version vom 3. April 2017, 14:03 Uhr
WHAT
ESP 8266 based authentication system used in various things @ metalab.at
Source code is found on github
What exactly?
- Scannerroom
- Elektronikkammerl
Command Features
- add User IButton via learning Mode
- List saved Users
- delete Users <-- NEW
How
Take an ESP8266 module
Flash the NodeMCU LUA firmware github -- actual working precompiled Datei:ESP8266 firmware.zip
old precompiled: Datei:Esp8266-firmware.zip
Upload the files.
How to flash firmware
Use esptool in python to flash firmware on esp.
Press flash button and reset and then release first reset button to get in flash mode
actual working firmware:
Flashing the nodemcu cloud build on 4MB flash ESP8266 :
./esptool.py -p /dev/tty<SERIALPORT> write_flash -fm dio 0x00000 <binaryname>.bin
Flashing the nodemcu cloud build on 512 kByte flash ESP8266 :
./esptool.py -p /dev/tty<SERIALPORT> write_flash -fm qio 0x00000 <binaryname>.bin
Also check out README file in zip for more information.
Old firmware:
Flash command für precompiled Firmware oben
esptool.py -p /dev/tty<SERIALPORT> write_flash 0x00000 0x00000.bin 0x10000 0x10000.bin
or with newer versions of esptool (e.g. 0.4.6 on debian): esptool -ca 0x00000 -cf 0x00000.bin -ca 0x10000 -cf 0x10000.bin
How to flash .lua files
For people who enjoy GUIs:
Use ESPlorer tool. Its user friendly and powerful with integrated editor and lots of commands.
Supports NodeMCU and MicroPython.
Needs Java and works on all major PC Plattforms
If you like commandline tools:
Use for example the nodemcu-uploader:
nodemcu-uploader -B 115200 upload *.lua
Beware: The tool will not tell you that lines are too long and can not be uploaded but instead throw some error messages you do not understand and exit... The solution is to remove the comments at the beginning of the file before uploading or split them up.
Todo
- Add schematics of current setups for elektrinkkammerl and scannerraum
- Add more doku on how to flash and import the scripts
- Design a breakoutboard with standardized connectors for I-button, and relays