esp8266web
Small WEB server on ESP8266 + TCP2UART or Modbus RS-485
HTTP-Web supports more than hundred variables -
All I/O, Wifi, system, ... variables.
GET/POST/websocket, cookie, load/upload data/Flash, multipart/form-data,...
TCP2UART: 300..3000000 Baud, Flow Control On/Off, Inverse On/Of all signals, ...
RS-485: half-duplex 300..1000000 Baud
HTTP-Web services to more than 10 simultaneous open connections.
Websocket open uri: '/web.cgi'
Supports Overlay drivers.
TCP/HTTP transfer speed:
~1 Mbytes/sec (debug off).
UDP Wave server (Integrated SAR ADC):
Sends 14-bit samples at 1 Hz .. 48 kHz (max 192 kHz 12 bits).
Modbus TCP port 502:
GPIOs, ADC, VDD.
RS-485 chematics:
Supported options 48 kbytes IRAM.
Supported 'Rapid Loader' and Flash 512 ΠΊbytes - 16 Mbytes.
ΠΠΎΠ΄Π΄Π΅ΡΠΆΠΊΠ° ΡΠ°ΡΡΠΈΡΠ΅Π½Π½ΠΎΠΉ ΠΏΠ°ΠΌΡΡΠΈ IRAM Π² 48 ΠΊΠΈΠ»ΠΎΠ±Π°ΠΉΡ,
Flash ΠΎΡ 512 ΠΊΠΈΠ»ΠΎΠ±Π°ΠΉΡ Π΄ΠΎ 16 ΠΠ΅Π³Π°Π±Π°ΠΉΡ ΠΈ ΡΡΠΊΠΎΡΡΡΡΠ΅Π³ΠΎ Π·Π°Π³ΡΡΠ·ΠΊΡ SDK 'Π»ΠΎΠ°Π΄Π΅ΡΠ°'.
From Espressif SDK used only:
libpp.a, libwpa.a, libnet80211.a, parts libphy.a, libcrypto.a, user_interface.o
ΠΠ· Espressif SDK ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡΡΡΡ ΡΠΎΠ»ΡΠΊΠΎ ΠΎΠΏΠΈΡΠ°Π½Π½ΡΠ΅ ΡΠ°ΡΡΠΈ.
ΠΡΡΠ°Π»ΡΠ½ΡΠ΅ ΡΠ°ΡΡΠΈ Π΄Π°Π½Ρ Ρ ΠΈΡΡ
ΠΎΠ΄Π½ΡΠΌΠΈ ΠΊΠΎΠ΄Π°ΠΌΠΈ.
LwIP based on Open source LWIP for ESP_IOT_SDK_V1.5.4.
Options programming Flash:
SPI_SPEED: 40MHz or 80MHz.
SPI_MODE: QIO only.
FLASH_SIZE: Always set the size to 512 KB flash.
Automatic determination of the real size of the flash.
ΠΡΠΈ Π·Π°Π»ΠΈΠ²ΠΊΠ΅ ΠΏΡΠΎΡΠΈΠ²ΠΊΠΈ Π² ΠΌΠΎΠ΄ΡΠ»Ρ Π²ΡΠ΅Π³Π΄Π° ΡΡΡΠ°Π½Π°Π²Π»ΠΈΠ²Π°ΠΉΡΠ΅ ΡΠ°Π·ΠΌΠ΅Ρ Flash Π² 512 ΠΊΠΈΠ»ΠΎΠ±Π°ΠΉΡ.
Π Π΅Π°Π»ΡΠ½ΡΠΉ ΡΠ°Π·ΠΌΠ΅Ρ Flash ΠΎΠΏΡΠ΅Π΄Π΅Π»ΡΠ΅ΡΡΡ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈ Π²ΠΎ Π²ΡΠ΅ΠΌΡ ΡΡΠ°ΡΡΠ° SDK.
Make WEBFS CmdLine:
WEBFS22.exe -h "*.htm, *.html, *.cgi, *.xml, *.bin, *.txt, *.wav" -z "mdbini.bin, *.inc, *.ini, snmp.bib" .\WEBFiles .\webbin WEBFiles.bin
Upload WEBFS:
- Connect AP 'ESP8266', password '0123456789'
- Explorer: http://192.168.4.1/fsupload (name and password from WiFi AP)
- Select WEBFiles.bin file. Upload.
ΠΠ»Ρ ΠΊΠΎΠΌΠΏΠΈΠ»ΡΡΠΈΠΈ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ Unofficial Developer Kit.
ΠΠ΅ΡΠ΅ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΏΡΠΎΠ΅ΠΊΡΠ° Ρ TCP2UART Π½Π° MODBUS RS-485 ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ΄ΠΈΡΡΡ Π² include/user_config.h.
ΠΠ΅ΡΠ΅ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ Π²Π΅ΡΡΠΈΠΉ SDK Ρ 1.5.4 Π½Π° 2.0.0 ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ΄ΠΈΡΡΡ Π² include/sdk/sdk_config.h ΠΈ Π·Π°ΠΌΠ΅Π½ΠΎΠΉ Π΄ΠΈΡΠ΅ΠΊΡΠΎΡΠΈΡ lib*.
Π€Π°ΠΉΠ»Ρ Π΄Π»Ρ web-Π΄ΠΈΡΠΊΠ° Π΄Π»Ρ ΠΏΡΠΎΠ΅ΠΊΡΠΎΠ² Π½Π°Ρ
ΠΎΠ΄ΡΡΡΡ Π² ΡΠ°Π·Π½ΡΡ
ΠΏΠ°ΠΏΠΊΠ°Ρ
.
ΠΠ΅Π»Π°ΡΠ΅Π»ΡΠ½ΠΎ ΠΏΠ΅ΡΠ΅ΠΌΠ΅ΡΡΠΈΡΡ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΠΌΡΠ΅ Π΄Π»Ρ ΠΏΡΠΎΠ΅ΠΊΡΠ° Π² ΠΏΠ°ΠΏΠΊΡ WEBFiles.
ΠΠΎ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ ΠΈ make_webfs_rs485.bat ΠΈΠ»ΠΈ make_webfs_tcp2uart.bat.
Π Eclipse Π·Π°Π΄Π°Π½Ρ 3 ΠΎΠΏΡΠΈΠΈ Manage Configurations:
- AutoMake (ΡΠΎΠ±ΡΠ°ΡΡ ΠΏΡΠΎΠ΅ΠΊΡ Π΄Π»Ρ ΠΏΡΠΎΡΠΈΠ²ΠΊΠΈ, ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡΡΡΡ ΡΡΡΠ°Π½ΠΎΠ²ΠΊΠΈ Π² Eclipse)
- CreateLib (ΡΠΎΠ±ΡΠ°ΡΡ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΡ libsdk.a (meSDK), ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡΡΡΡ ΡΡΡΠ°Π½ΠΎΠ²ΠΊΠΈ Π² Eclipse)
- Default (ΡΠΎΠ±ΡΠ°ΡΡ ΠΏΡΠΎΠ΅ΠΊΡ Π΄Π»Ρ ΠΏΡΠΎΡΠΈΠ²ΠΊΠΈ, ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡ makefile)
Forum esp8266web Web_Base Forum Modbus TCP / RTU RS-485 + WEB server