├── .cproject ├── .gitignore ├── .project ├── .settings ├── language.settings.xml ├── org.eclipse.cdt.codan.core.prefs ├── org.eclipse.cdt.core.prefs ├── org.eclipse.cdt.managedbuilder.core.prefs └── org.eclipse.core.resources.prefs ├── 10leds_ru.txt ├── AutoMake.bat ├── ESP-01_RS-485_sch.gif ├── ESP-ADC-192kHz.gif ├── LICENSE ├── Makefile ├── Power_Light_start_2sec.gif ├── Power_ST_AP_ReConnect.gif ├── ProgBin.bat ├── README.md ├── WEBFS22.exe ├── WEBFiles ├── $js.inc ├── 10dof.ovl ├── 404.htm ├── adc.htm ├── adc.wav ├── adc.xml ├── disk_er1.htm ├── disk_er2.htm ├── disk_er3.htm ├── disk_ok.htm ├── esp.gif ├── favicon.ico ├── footer.inc ├── grf.js ├── grfx1.inc ├── grfx2.inc ├── heap.htm ├── heap.xml ├── help │ ├── webvars.files │ │ ├── filelist.xml │ │ ├── sheet001.htm │ │ ├── sheet002.htm │ │ ├── stylesheet.css │ │ └── tabstrip.htm │ └── webvars.htm ├── i219u.ovl ├── i219ws.htm ├── ina219.htm ├── ina219.ovl ├── ina219.xml ├── index.htm ├── iointr.ovl ├── led.xml ├── leds.xml ├── logo.gif ├── menu.inc ├── protect │ ├── 10leds.ini │ ├── aps.xml │ ├── chiprams.xml │ ├── cookie.js │ ├── debug.htm │ ├── dsleep.htm │ ├── esp_init_data_default.bin │ ├── fullflash.bin │ ├── gpio.htm │ ├── gpio.xml │ ├── hexdmpb.htm │ ├── hexdmpb.txt │ ├── hexdmpd.htm │ ├── hexdmpd.txt │ ├── i219u.htm │ ├── init.ini │ ├── mdb.bin │ ├── mdb.htm │ ├── mdb.xml │ ├── mdbh.xml │ ├── pr_request.xml │ ├── ram.bin │ ├── rfinit1.htm │ ├── rfinit2.htm │ ├── rfinit3.htm │ ├── scan.htm │ ├── scan.xml │ ├── setup.htm │ ├── tstfuncs.htm │ ├── uart.htm │ ├── udptst.htm │ ├── udpwave.htm │ ├── upload.htm │ └── wifi.htm ├── sample.htm ├── scripts.js ├── sht7x.ovl ├── site.js ├── slider.js ├── smoothie.js ├── style.css ├── system.xml ├── tcp_client.ovl ├── time.inc ├── timeout.htm ├── timer.inc ├── tst.htm ├── tst.xml ├── uart.htm ├── udplog.ovl ├── udptp.ovl ├── vdd.htm ├── vdd.inc ├── vdd.xml ├── wdrv.ovl ├── websock.htm └── ws2.css ├── WEBFilesRS485 ├── $js.inc ├── 404.htm ├── adc.htm ├── adc.xml ├── disk_er1.htm ├── disk_er2.htm ├── disk_er3.htm ├── disk_ok.htm ├── esp.gif ├── favicon.ico ├── footer.inc ├── grf.js ├── grfx1.inc ├── grfx2.inc ├── heap.htm ├── heap.xml ├── help │ ├── webvars.files │ │ ├── filelist.xml │ │ ├── sheet001.htm │ │ ├── sheet002.htm │ │ ├── stylesheet.css │ │ └── tabstrip.htm │ └── webvars.htm ├── index.htm ├── led.xml ├── leds.xml ├── logo.gif ├── menu.inc ├── protect │ ├── aps.xml │ ├── chiprams.xml │ ├── cookie.js │ ├── debug.htm │ ├── dsleep.htm │ ├── esp_init_data_default.bin │ ├── fullflash.bin │ ├── gpio.htm │ ├── gpio.xml │ ├── hexdmpb.htm │ ├── hexdmpb.txt │ ├── hexdmpd.htm │ ├── hexdmpd.txt │ ├── init.ini │ ├── mdb.bin │ ├── mdb.htm │ ├── mdb.xml │ ├── mdbh.xml │ ├── mdbtrn.htm │ ├── mdbtst.htm │ ├── pr_request.xml │ ├── ram.bin │ ├── rfinit1.htm │ ├── rfinit2.htm │ ├── rfinit3.htm │ ├── scan.htm │ ├── scan.xml │ ├── setup.htm │ ├── tstfuncs.htm │ ├── uart.htm │ ├── upload.htm │ └── wifi.htm ├── sample.htm ├── scripts.js ├── sht7x.ovl ├── site.js ├── style.css ├── system.xml ├── time.inc ├── timeout.htm ├── timer.inc ├── tst.htm ├── tst.xml ├── udptp.ovl ├── vdd.htm ├── vdd.inc ├── vdd.xml ├── wdrv.ovl ├── websock.htm └── ws2.css ├── WEBFilesTCP2UART ├── $js.inc ├── 404.htm ├── adc.htm ├── adc.wav ├── adc.xml ├── disk_er1.htm ├── disk_er2.htm ├── disk_er3.htm ├── disk_ok.htm ├── esp.gif ├── favicon.ico ├── footer.inc ├── grf.js ├── grfx1.inc ├── grfx2.inc ├── heap.htm ├── heap.xml ├── help │ ├── webvars.files │ │ ├── filelist.xml │ │ ├── sheet001.htm │ │ ├── sheet002.htm │ │ ├── stylesheet.css │ │ └── tabstrip.htm │ └── webvars.htm ├── ina219.htm ├── ina219.ovl ├── ina219.xml ├── index.htm ├── led.xml ├── leds.xml ├── logo.gif ├── menu.inc ├── protect │ ├── 10leds.ini │ ├── aps.xml │ ├── chiprams.xml │ ├── cookie.js │ ├── debug.htm │ ├── dsleep.htm │ ├── esp_init_data_default.bin │ ├── fullflash.bin │ ├── gpio.htm │ ├── gpio.xml │ ├── hexdmpb.htm │ ├── hexdmpb.txt │ ├── hexdmpd.htm │ ├── hexdmpd.txt │ ├── init.ini │ ├── mdb.bin │ ├── mdb.htm │ ├── mdb.xml │ ├── mdbh.xml │ ├── pr_request.xml │ ├── ram.bin │ ├── rfinit1.htm │ ├── rfinit2.htm │ ├── rfinit3.htm │ ├── scan.htm │ ├── scan.xml │ ├── setup.htm │ ├── tstfuncs.htm │ ├── uart.htm │ ├── udpwave.htm │ ├── upload.htm │ └── wifi.htm ├── sample.htm ├── scripts.js ├── sht7x.ovl ├── site.js ├── style.css ├── system.xml ├── time.inc ├── timeout.htm ├── timer.inc ├── tst.htm ├── tst.xml ├── uart.htm ├── udptp.ovl ├── vdd.htm ├── vdd.inc ├── vdd.xml ├── wdrv.ovl ├── websock.htm └── ws2.css ├── WebSocket ├── ws2.css └── ws2.htm ├── app ├── .gitignore ├── Makefile ├── driver │ ├── Makefile │ ├── adc.c │ ├── gpio16.c │ ├── int_time_us.c │ ├── rs485drv.c │ └── sigma_delta.c ├── gdbstub │ ├── License │ ├── Makefile │ ├── README.md │ ├── eagle_soc.h │ ├── gdbcmds │ ├── gdbstub-cfg.h │ ├── gdbstub-entry.S │ ├── gdbstub-entry.h │ ├── gdbstub.c │ └── gdbstub.h ├── include │ ├── captdns.h │ ├── driver │ │ ├── adc.h │ │ ├── gpio16.h │ │ ├── i2c_master.h │ │ ├── int_time_us.h │ │ ├── rs485drv.h │ │ └── sigma_delta.h │ ├── flash_eep.h │ ├── mdbrs485.h │ ├── mdbtab.h │ ├── modbusrtu.h │ ├── modbustcp.h │ ├── netbios.h │ ├── overlay.h │ ├── sntp.h │ ├── sys_const_utils.h │ ├── tcp2uart.h │ ├── tcp_srv_conn.h │ ├── web_iohw.h │ ├── web_srv.h │ ├── web_utils.h │ ├── web_websocket.h │ ├── webfs.h │ ├── websock.h │ ├── wifi.h │ └── wifi_events.h ├── mdbtcp │ ├── Makefile │ ├── mdbfunc.c │ ├── mdbrs485.c │ ├── mdbtab.c │ └── modbustcp.c ├── sdklib │ ├── 80211 │ │ ├── Makefile │ │ └── wifi_tsf.c │ ├── .gitignore │ ├── Makefile │ ├── README.md │ ├── lwip │ │ ├── COPYING │ │ ├── Makefile │ │ ├── api │ │ │ ├── Makefile │ │ │ ├── api_lib.c │ │ │ ├── api_msg.c │ │ │ ├── err.c │ │ │ ├── netbuf.c │ │ │ ├── netdb.c │ │ │ ├── netifapi.c │ │ │ ├── sockets.c │ │ │ └── tcpip.c │ │ ├── app │ │ │ ├── Espressif.License │ │ │ ├── Makefile │ │ │ ├── dhcpserver.c │ │ │ ├── espconn.c │ │ │ ├── espconn_mdns.c │ │ │ ├── espconn_tcp.c │ │ │ ├── espconn_udp.c │ │ │ ├── netio.c │ │ │ └── ping.c │ │ ├── core │ │ │ ├── Makefile │ │ │ ├── def.c │ │ │ ├── dhcp.c │ │ │ ├── dns.c │ │ │ ├── init.c │ │ │ ├── ipv4 │ │ │ │ ├── Makefile │ │ │ │ ├── autoip.c │ │ │ │ ├── icmp.c │ │ │ │ ├── igmp.c │ │ │ │ ├── inet.c │ │ │ │ ├── inet_chksum.c │ │ │ │ ├── ip.c │ │ │ │ ├── ip_addr.c │ │ │ │ └── ip_frag.c │ │ │ ├── mdns.c │ │ │ ├── mem.c │ │ │ ├── memp.c │ │ │ ├── netif.c │ │ │ ├── pbuf.c │ │ │ ├── raw.c │ │ │ ├── sntp.c │ │ │ ├── stats.c │ │ │ ├── sys.c │ │ │ ├── tcp.c │ │ │ ├── tcp_in.c │ │ │ ├── tcp_out.c │ │ │ ├── timers.c │ │ │ └── udp.c │ │ └── netif │ │ │ ├── Makefile │ │ │ └── etharp.c │ ├── phy │ │ ├── Makefile │ │ └── phy_chip_v6_unused.c │ ├── pp │ │ ├── Makefile │ │ └── pplibadd.c │ ├── system │ │ ├── Makefile │ │ ├── app_main.c │ │ ├── eagle_lwip_if.c │ │ ├── ets_run_new.c │ │ ├── ets_timer.c │ │ ├── main-vectors.c │ │ ├── mem_manager.c │ │ ├── os_printf.c │ │ ├── rom2ram.c │ │ ├── spi_flash.c │ │ ├── spi_overlap.c │ │ └── wdt.c │ └── wpa │ │ ├── Makefile │ │ ├── os_xtensa.c │ │ └── wpa_debug.c ├── user │ ├── Makefile │ └── user_main.c └── web │ ├── Makefile │ ├── captdns.c │ ├── flash_eep.c │ ├── include │ └── web_srv_int.h │ ├── netbios.c │ ├── overlay.c │ ├── sntp.c │ ├── sys_const.c │ ├── tcp2uart.c │ ├── tcp_srv_conn.c │ ├── uart_tcp.c │ ├── web_fs_init.c │ ├── web_int_callbacks.c │ ├── web_int_vars.c │ ├── web_iohw.c │ ├── web_srv.c │ ├── web_utils.c │ ├── web_websocket.c │ ├── webfs.c │ ├── websock.c │ ├── wifi.c │ └── wifi_events.c ├── asm_damp.bat ├── bin ├── 0x00000.bin ├── 0x07000.bin ├── blank.bin ├── clear_eep.bin ├── esp_init_data_default.bin ├── rapid_loader.bin ├── rapid_loader_40m.bin └── readme.txt ├── esptool.py ├── include ├── arch │ ├── cc.h │ ├── perf.h │ └── sys_arch.h ├── bios.h ├── bios │ ├── add_funcs.h │ ├── cha1.h │ ├── ets.h │ ├── gpio.h │ ├── mem.h │ ├── rom_phy.h │ ├── rtc_dtm.h │ ├── spiflash.h │ ├── uart.h │ ├── vectors.h │ ├── xthal.h │ └── xtos.h ├── c_types.h ├── ets_sys.h ├── gpio.h ├── hw │ ├── core-isa.h │ ├── corebits.h │ ├── eagle_soc.h │ ├── eagle_soc_.h │ ├── esp8266.h │ ├── gpio_register.h │ ├── i2s_reg.h │ ├── pin_mux_register.h │ ├── sdio_slv.h │ ├── slc_register.h │ ├── specreg.h │ ├── spi.h │ ├── spi_register.h │ ├── timer_register.h │ └── uart_register.h ├── ip_addr.h ├── lwip │ ├── api.h │ ├── api_msg.h │ ├── app │ │ ├── dhcpserver.h │ │ ├── espconn.h │ │ ├── espconn_tcp.h │ │ ├── espconn_udp.h │ │ └── ping.h │ ├── arch.h │ ├── autoip.h │ ├── debug.h │ ├── def.h │ ├── dhcp.h │ ├── dns.h │ ├── err.h │ ├── icmp.h │ ├── igmp.h │ ├── inet.h │ ├── inet_chksum.h │ ├── init.h │ ├── ip.h │ ├── ip_addr.h │ ├── ip_frag.h │ ├── mdns.h │ ├── mem.h │ ├── memp.h │ ├── memp_std.h │ ├── netbuf.h │ ├── netdb.h │ ├── netif.h │ ├── netifapi.h │ ├── opt.h │ ├── pbuf.h │ ├── puck_def.h │ ├── raw.h │ ├── sio.h │ ├── snmp.h │ ├── snmp_asn1.h │ ├── snmp_msg.h │ ├── snmp_structs.h │ ├── sntp.h │ ├── sockets.h │ ├── stats.h │ ├── sys.h │ ├── tcp.h │ ├── tcp_impl.h │ ├── tcpip.h │ ├── timers.h │ └── udp.h ├── lwipopts.h ├── netif │ ├── etharp.h │ ├── if_llc.h │ ├── ppp_oe.h │ └── wlan_lwip_if.h ├── os_type.h ├── osapi.h ├── phy │ └── phy.h ├── pp │ └── esf_buf.h ├── queue.h ├── sdk │ ├── add_func.h │ ├── app_main.h │ ├── ets_run_new.h │ ├── fatal_errs.h │ ├── flash.h │ ├── libmain.h │ ├── mem_manager.h │ ├── os_printf.h │ ├── rom2ram.h │ ├── sdk_config.h │ ├── sys_const.h │ └── wdt.h ├── user_config.h └── user_interface.h ├── info ├── ESP8266_reg │ ├── ESP8266_Pin_List_141105.xlsx │ ├── ESP8266_RF_init_esp_init_data_default_bin.xlsx │ ├── gpio_reg.xlsx │ ├── pin_reg.xlsx │ ├── spi_reg.xlsx │ ├── timers_reg.xlsx │ └── uart_reg.xlsx ├── WebHTML │ ├── default.htm │ └── fsupload.htm └── libs │ ├── bios │ ├── SpiFlash.c │ ├── cha1.c │ ├── ets_run.c │ ├── gpio.c │ ├── mem.c │ ├── rtc_dtm.c │ ├── sip_slc.c │ ├── uartdev.c │ └── wdt.c │ ├── boot │ └── boot_1_2.c │ ├── main │ ├── UserEnter.s │ ├── debug-vector.s │ ├── double-vector.s │ ├── kernel-vector.s │ ├── nmi-vector.s │ ├── nmi.c │ ├── startup.c │ ├── user-vector.s │ ├── user_interface.c │ └── wdt.c │ ├── net80211 │ ├── Descript.ion │ └── ieee80211_output.h │ └── phy │ ├── phy.c │ ├── phy_chip_v6.c │ ├── phy_get_vdd33.c │ ├── phy_sleep.c │ └── sar_read_fast.c ├── ld ├── eagle.app.v6.ld ├── eagle.rom.addr.v6.ld ├── labels.ld └── overlay.ld ├── lib ├── clibsdk.bat ├── libcrypto.a ├── libdhcps.a ├── liblwipif.a ├── libmcrypto.a ├── libmgcc.a ├── libmlwip.a ├── libmmain.a ├── libmmain.a.patch.txt ├── libmphy.a ├── libmpp.a ├── libmwpa.a ├── libnet80211.a ├── libnet80211_new.a ├── libnet80211_new │ ├── wl_cnx_patch.o │ └── wl_cnx_patch.txt ├── libpp.a ├── mlibsdk.bat ├── new_libdhcps.bat ├── new_liblwipif.bat ├── new_libmcrypto.bat ├── new_libmgcc.bat ├── new_libmlwip.bat ├── new_libmmain.bat ├── new_libmphy.bat ├── new_libmpp.bat ├── new_libmwpa.bat ├── new_libnet80211.bat ├── o-asm.bat ├── rom_files_list.txt └── version.txt ├── lib200 ├── clibsdk.bat ├── libcrypto.a ├── libdhcps.a ├── liblwipif.a ├── libmcrypto.a ├── libmgcc.a ├── libmlwip.a ├── libmmain.a ├── libmmain.a.patch.txt ├── libmphy.a ├── libmpp.a ├── libmwpa.a ├── libnet80211.a ├── libnet80211_new.a ├── libpp.a ├── mlibsdk.bat ├── new_libdhcps.bat ├── new_liblwipif.bat ├── new_libmgcc.bat ├── new_libmlwip.bat ├── new_libmmain.bat ├── new_libmphy.bat ├── new_libmpp.bat ├── new_libmwpa.bat ├── new_libnet80211new.bat ├── o-asm.bat ├── rom_files_list.txt └── version.txt ├── make_webfs.bat ├── make_webfs_rs485.bat ├── make_webfs_tcp2uart.bat ├── mem.txt ├── mem_usage.bat ├── ovls.py ├── ovls ├── 10dof │ ├── Makefile │ ├── include │ │ ├── ak8963.h │ │ ├── bmp280.h │ │ ├── hspi_master.h │ │ ├── mpu9250.h │ │ └── ovl_config.h │ ├── main │ │ ├── Makefile │ │ ├── bmp280.c │ │ ├── hspi_master.c │ │ ├── main.c │ │ └── mpu9250.c │ └── readme.txt ├── Makefile ├── bin │ ├── aupload.htm │ ├── iointr.ovl │ ├── sht7x.ovl │ ├── supload.htm │ ├── tcp_client.ovl │ ├── udptp.ovl │ └── wdrv.ovl ├── esptool.py ├── i219u │ ├── Makefile │ ├── include │ │ ├── i2c_drv.h │ │ ├── ina219.h │ │ └── udp_ina219.h │ ├── main │ │ ├── Makefile │ │ ├── i2c_drv.c │ │ └── ina219u.c │ └── readme.txt ├── ina219 │ ├── Makefile │ ├── htm │ │ ├── ina219.htm │ │ └── ina219.xml │ ├── include │ │ ├── fost02.h │ │ ├── i2c_drv.h │ │ └── ina219.h │ ├── main │ │ ├── Makefile │ │ ├── i2c_drv.c │ │ └── ina219.c │ ├── readme.txt │ └── ws │ │ ├── esp.gif │ │ ├── grf.js │ │ ├── ina219ws.htm │ │ ├── logo.gif │ │ ├── slider.js │ │ ├── smoothie.js │ │ └── style.css ├── include │ └── ovl_sys.h ├── oiintr │ ├── Makefile │ ├── include │ │ └── gpios_intr.h │ ├── main │ │ ├── Makefile │ │ └── gpios_intr.c │ └── readme.txt ├── ovl_upload.py ├── ovls.py ├── readme.txt ├── sht7x │ ├── Makefile │ ├── include │ │ ├── fost02.h │ │ └── i2c_drv.h │ ├── main │ │ ├── Makefile │ │ ├── fost02.c │ │ └── i2c_drv.c │ └── readme.txt ├── sync │ ├── Makefile.1 │ ├── include │ │ └── gpios_intr.h │ ├── main │ │ ├── Makefile │ │ └── gpios_intr.c │ └── readme.txt ├── tcp_client │ ├── Makefile │ ├── main │ │ ├── Makefile │ │ └── tcp_client.c │ └── readme.txt ├── udplog │ ├── Makefile │ ├── include │ │ └── ovl_config.h │ ├── main │ │ ├── Makefile │ │ └── udp_debug_log.c │ └── readme.txt ├── udptp │ ├── Makefile │ ├── main │ │ ├── Makefile │ │ └── udp_test_port.c │ └── readme.txt └── wdrv │ ├── Makefile │ ├── include │ └── wdrv.h │ ├── main │ ├── Makefile │ └── wdrv.c │ └── readme.txt ├── uploader.py ├── webbin ├── Makefile └── WEBFiles.bin ├── webfs ├── README.md ├── WEBFS22.zip ├── webfs_upload1.py └── webfs_upload2.py ├── webvars_rs485.xlsx └── webvars_tcp2uart.xlsx /.gitignore: -------------------------------------------------------------------------------- 1 | /app/mdns 2 | /AutoMake/ 3 | /CreateLib/ 4 | /esp8266web.asm 5 | /eagle.app.v6.asm 6 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Web_Base 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | 27 | 28 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /10leds_ru.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/10leds_ru.txt -------------------------------------------------------------------------------- /AutoMake.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | @if %1x==x goto aaa_end 3 | @if not exist %1 goto err_end 4 | @echo ------------------------------------------------------------------------------ 5 | @C:\Python27\python.exe ..\esptool.py elf2image -o ..\bin\ -ff 80m -fm qio -fs 4m %1 6 | @echo ------------------------------------------------------------------------------ 7 | @if not exist ..\bin\0x00000.bin goto err_end 8 | @echo Add rapid_loader... 9 | @if exist ..\bin\0.bin del ..\bin\0.bin >nul 10 | @rename ..\bin\0x00000.bin 0.bin >nul 11 | @copy /b ..\bin\rapid_loader.bin + ..\bin\0.bin ..\bin\0x00000.bin >nul 12 | goto end 13 | :aaa_end 14 | echo Use Eclipse Manage Configurations: AutoMake! 15 | goto end 16 | :err_end 17 | echo Error! 18 | :end 19 | -------------------------------------------------------------------------------- /ESP-01_RS-485_sch.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/ESP-01_RS-485_sch.gif -------------------------------------------------------------------------------- /ESP-ADC-192kHz.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/ESP-ADC-192kHz.gif -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /Power_Light_start_2sec.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/Power_Light_start_2sec.gif -------------------------------------------------------------------------------- /Power_ST_AP_ReConnect.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/Power_ST_AP_ReConnect.gif -------------------------------------------------------------------------------- /ProgBin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | @if %1x==x goto aaa_end 3 | @if not exist bin/%1.bin goto err_end 4 | @C:/Python27/python.exe esptool.py -p %2 -b %3 write_flash -ff 80m -fm qio -fs 4m 0x00000 bin/0x00000.bin %1 bin/%1.bin 5 | goto end 6 | :aaa_end 7 | echo Use Eclipse! 8 | goto end 9 | :err_end 10 | echo Error! 11 | :end 12 | -------------------------------------------------------------------------------- /WEBFS22.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFS22.exe -------------------------------------------------------------------------------- /WEBFiles/$js.inc: -------------------------------------------------------------------------------- 1 | var $ = function(id){return document.getElementById(id);} -------------------------------------------------------------------------------- /WEBFiles/10dof.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/10dof.ovl -------------------------------------------------------------------------------- /WEBFiles/404.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 404 - Page not found 5 | 6 | 7 | 8 |

ESP8266 Built-in Web server ©

9 |
10 |

404 - Page not found

11 |

Sorry, the page you are requesting was not found on this server.

12 |
13 | ~inc:footer.inc~ 14 | -------------------------------------------------------------------------------- /WEBFiles/adc.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | ADC: ? 3 | 10 | ~inc:grfx2.inc~ -------------------------------------------------------------------------------- /WEBFiles/adc.wav: -------------------------------------------------------------------------------- 1 | ~test_adc~ -------------------------------------------------------------------------------- /WEBFiles/adc.xml: -------------------------------------------------------------------------------- 1 | ADC~sys_adc~ -------------------------------------------------------------------------------- /WEBFiles/disk_er1.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

Image Corrupt or Wrong Version!

3 | 4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFiles/disk_er2.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

File to big in flash!

3 | 4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFiles/disk_er3.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

Bad file!

3 | 4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFiles/disk_ok.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

Update Successful!

3 | 4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFiles/esp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/esp.gif -------------------------------------------------------------------------------- /WEBFiles/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/favicon.ico -------------------------------------------------------------------------------- /WEBFiles/footer.inc: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /WEBFiles/grfx2.inc: -------------------------------------------------------------------------------- 1 | 2 |
GET TimeOuts ? ms' 3 | 4 | 5 | 6 | ~inc:footer.inc~ 7 | -------------------------------------------------------------------------------- /WEBFiles/heap.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Heap Size: ? bytes 3 | ~inc:grfx2.inc~ 10 | -------------------------------------------------------------------------------- /WEBFiles/heap.xml: -------------------------------------------------------------------------------- 1 | Heap Size~sys_heap~ -------------------------------------------------------------------------------- /WEBFiles/help/webvars.files/filelist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WEBFiles/help/webvars.files/sheet001.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/help/webvars.files/sheet001.htm -------------------------------------------------------------------------------- /WEBFiles/help/webvars.files/sheet002.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/help/webvars.files/sheet002.htm -------------------------------------------------------------------------------- /WEBFiles/help/webvars.files/stylesheet.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/help/webvars.files/stylesheet.css -------------------------------------------------------------------------------- /WEBFiles/help/webvars.files/tabstrip.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
 WebVars  ModBus 
32 | 33 | 34 | -------------------------------------------------------------------------------- /WEBFiles/help/webvars.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/help/webvars.htm -------------------------------------------------------------------------------- /WEBFiles/i219u.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/i219u.ovl -------------------------------------------------------------------------------- /WEBFiles/ina219.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Ivcc: ? mA 3 | 4 | ~inc:grfx2.inc~ -------------------------------------------------------------------------------- /WEBFiles/ina219.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/ina219.ovl -------------------------------------------------------------------------------- /WEBFiles/ina219.xml: -------------------------------------------------------------------------------- 1 | Ish(eval(~mdbsw65~*0.0482)).toFixed(1) 2 | 3 | 4 | -------------------------------------------------------------------------------- /WEBFiles/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 5 | 6 | 7 | ~inc:menu.inc~ 8 |
9 |

Info

10 |

11 | Name: ~wifi_ap_ssid~ Password: ~wifi_ap_psw~
12 | TCP2UART connect: ~tcp_remote~, Web connect: ~web_remote~,
13 | Modbus TCP Connection: ~mdb_remote~
14 | WEB ver: ~sys_webver~, SDK ver: ~sys_sdkver~.
15 | Power: ? V
16 | ChipID: ~sys_cid~.

17 | DevTime: SNTP disable
18 | PowerStartTime: ?

19 |

20 | ~inc:footer.inc~ 21 | ~inc:vdd.inc~ 22 | ~inc:time.inc~ 23 | -------------------------------------------------------------------------------- /WEBFiles/iointr.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/iointr.ovl -------------------------------------------------------------------------------- /WEBFiles/led.xml: -------------------------------------------------------------------------------- 1 | 2 | ~gpio1_inp~ 3 | ~gpio1_out~ 4 | ~gpio1_dir~ 5 | ~gpio1_fun~ 6 | -------------------------------------------------------------------------------- /WEBFiles/leds.xml: -------------------------------------------------------------------------------- 1 | 2 | ~gpio_inp~ 3 | ~gpio_out~ 4 | ~gpio_dir~ 5 | -------------------------------------------------------------------------------- /WEBFiles/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/logo.gif -------------------------------------------------------------------------------- /WEBFiles/menu.inc: -------------------------------------------------------------------------------- 1 |

ESP8266 Built-in Web server ©

2 | 20 | -------------------------------------------------------------------------------- /WEBFiles/protect/10leds.ini: -------------------------------------------------------------------------------- 1 | cfg_pinclr=0 2 | cfg_debug=0 3 | cfg_tcp_port=0 4 | cfg_cdns=1 5 | cfg_save=1 6 | gpio0_out=1 7 | gpio0_dir=1 8 | gpio1_out=1 9 | gpio1_dir=1 10 | gpio2_out=1 11 | gpio2_dir=1 12 | gpio3_out=1 13 | gpio3_dir=1 14 | gpio4_out=1 15 | gpio4_dir=1 16 | gpio5_out=1 17 | gpio5_dir=1 18 | gpio12_out=1 19 | gpio12_dir=1 20 | gpio13_out=1 21 | gpio13_dir=1 22 | gpio14_out=1 23 | gpio14_dir=1 24 | gpio15_out=0 25 | gpio15_dir=1 -------------------------------------------------------------------------------- /WEBFiles/protect/aps.xml: -------------------------------------------------------------------------------- 1 | ~wifi_aps_xml~ 2 | -------------------------------------------------------------------------------- /WEBFiles/protect/chiprams.xml: -------------------------------------------------------------------------------- 1 | 2 | ~start~ 3 | ~xml_ram~ 4 | 5 | -------------------------------------------------------------------------------- /WEBFiles/protect/esp_init_data_default.bin: -------------------------------------------------------------------------------- 1 | ~bin_flash_const~ -------------------------------------------------------------------------------- /WEBFiles/protect/fullflash.bin: -------------------------------------------------------------------------------- 1 | ~bin_flash_all~ -------------------------------------------------------------------------------- /WEBFiles/protect/gpio.xml: -------------------------------------------------------------------------------- 1 | 2 | ~gpio_inp~ 3 | ~gpio_out~ 4 | ~gpio_dir~ 5 | ~gpio0_fun~ 6 | ~gpio1_fun~ 7 | ~gpio2_fun~ 8 | ~gpio3_fun~ 9 | ~gpio4_fun~ 10 | ~gpio5_fun~ 11 | ~gpio6_fun~ 12 | ~gpio7_fun~ 13 | ~gpio8_fun~ 14 | ~gpio9_fun~ 15 | ~gpio10_fun~ 16 | ~gpio11_fun~ 17 | ~gpio12_fun~ 18 | ~gpio13_fun~ 19 | ~gpio14_fun~ 20 | ~gpio15_fun~ 21 | ~gpio0_pull~ 22 | ~gpio1_pull~ 23 | ~gpio2_pull~ 24 | ~gpio3_pull~ 25 | ~gpio4_pull~ 26 | ~gpio5_pull~ 27 | ~gpio6_pull~ 28 | ~gpio7_pull~ 29 | ~gpio8_pull~ 30 | ~gpio9_pull~ 31 | ~gpio10_pull~ 32 | ~gpio11_pull~ 33 | ~gpio12_pull~ 34 | ~gpio13_pull~ 35 | ~gpio14_pull~ 36 | ~gpio15_pull~ 37 | ~gpio0_opd~ 38 | ~gpio1_opd~ 39 | ~gpio2_opd~ 40 | ~gpio3_opd~ 41 | ~gpio4_opd~ 42 | ~gpio5_opd~ 43 | ~gpio6_opd~ 44 | ~gpio7_opd~ 45 | ~gpio8_opd~ 46 | ~gpio9_opd~ 47 | ~gpio10_opd~ 48 | ~gpio11_opd~ 49 | ~gpio12_opd~ 50 | ~gpio13_opd~ 51 | ~gpio14_opd~ 52 | ~gpio15_opd~ 53 | -------------------------------------------------------------------------------- /WEBFiles/protect/hexdmpb.txt: -------------------------------------------------------------------------------- 1 | ~hexdmpb~ -------------------------------------------------------------------------------- /WEBFiles/protect/hexdmpd.txt: -------------------------------------------------------------------------------- 1 | ~hexdmpd~ -------------------------------------------------------------------------------- /WEBFiles/protect/init.ini: -------------------------------------------------------------------------------- 1 | sys_ram0x60000f00=0x48 2 | sys_ram0x60000f00=0x65 3 | sys_ram0x60000f00=0x6c 4 | sys_ram0x60000f00=0x6c 5 | sys_ram0x60000f00=0x6f 6 | sys_ram0x60000f00=0x21 7 | -------------------------------------------------------------------------------- /WEBFiles/protect/mdb.bin: -------------------------------------------------------------------------------- 1 | ~bin_mdb~ -------------------------------------------------------------------------------- /WEBFiles/protect/mdb.xml: -------------------------------------------------------------------------------- 1 | ~xml_mdb~ 2 | 3 | -------------------------------------------------------------------------------- /WEBFiles/protect/mdbh.xml: -------------------------------------------------------------------------------- 1 | ~xml_mdbh~ 2 | 3 | -------------------------------------------------------------------------------- /WEBFiles/protect/pr_request.xml: -------------------------------------------------------------------------------- 1 | ~wifi_prrq_xml~ -------------------------------------------------------------------------------- /WEBFiles/protect/ram.bin: -------------------------------------------------------------------------------- 1 | ~bin_ram~ -------------------------------------------------------------------------------- /WEBFiles/protect/scan.xml: -------------------------------------------------------------------------------- 1 | ~wifi_scan~ 2 | -------------------------------------------------------------------------------- /WEBFiles/protect/udptst.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UDP Test Port 6 | 7 | 8 | 9 | ~inc:menu.inc~ 10 |
11 |

UDP Test Port

12 | 13 | 14 | 15 | 18 |
UDP remote port: 16 | 17 |
19 |
20 | 21 |
22 |

UDP send:

23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |

32 |
'A?'ChipID, WiFi...
'I?'UDP + TCP connections
'U?'UDP connections
'T?'TCP connections
'S?'WEB connections
'H?''heap' size
'R?'Sysmem restart
......
33 | ~inc:footer.inc~ 34 | 38 | -------------------------------------------------------------------------------- /WEBFiles/protect/upload.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 WebFS Image Upload 5 | 6 | 7 | ~inc:menu.inc~ 8 |
9 |

WebFS Image Upload

10 |

11 | Select WEBFiles.bin file...

12 |

13 | 14 |

15 |
16 |

17 | Curent Disk has ~wfs_files~ files, Disk Size: ~wfs_size~ bytes.
18 | Disk Addres: ~wfs_addr~, Max Disk Size: ~wfs_max_size~ bytes, Max 250 files.

19 | Flash ID: ~sys_fid~, Size: ~sys_fsize~ bytes.
20 | Download fullflash.bin

21 |

22 | ~inc:footer.inc~ 23 | -------------------------------------------------------------------------------- /WEBFiles/sample.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 FWEB Image Upload 5 | 6 | 7 | ~inc:menu.inc~ 8 |
9 | Out UART1(debug port): 'Hello!'
10 | ~sys_ram0x60000f00=0x48~ 11 | ~sys_ram0x60000f00=0x65~ 12 | ~sys_ram0x60000f00=0x6c~ 13 | ~sys_ram0x60000f00=0x6c~ 14 | ~sys_ram0x60000f00=0x6f~ 15 | ~sys_ram0x60000f00=0x21~ 16 | ~sys_ram0x60000f00=0x0d~ 17 | ~sys_ram0x60000f00=0x0a~ 18 |
19 | Out UART0 tx: 'Hello!'
20 | ~sys_ram0x60000000=0x48~ 21 | ~sys_ram0x60000000=0x65~ 22 | ~sys_ram0x60000000=0x6c~ 23 | ~sys_ram0x60000000=0x6c~ 24 | ~sys_ram0x60000000=0x6f~ 25 | ~sys_ram0x60000000=0x21~ 26 | ~sys_ram0x60000000=0x0d~ 27 | ~sys_ram0x60000000=0x0a~ 28 | Read UART0 rx:~sys_ram0x60000000~
29 |
30 | Variant 2
31 | ~start=0x60000000~ 32 | Read UART0 regs:
33 | ~start~=~xml_ram~
34 | ~start~=~xml_ram~
35 | ~start~=~xml_ram~
36 | ~start~=~xml_ram~
37 |
38 | ~start=0x40200000~ 39 | Read RAM:
40 | ~start~=~xml_ram~
41 | ~start~=~xml_ram~
42 | ~start~=~xml_ram~
43 | ~start~=~xml_ram~
44 |
45 | Variant 2
46 | RAM0x40200000=~sys_ram0x40200000~
47 |
48 | ~inc:footer.inc~ 49 | 50 | -------------------------------------------------------------------------------- /WEBFiles/scripts.js: -------------------------------------------------------------------------------- 1 | var setFormValues = function(form, cfg) { 2 | var name, field; 3 | for (name in cfg){ 4 | if (form[name]) { 5 | field = form[name]; 6 | if (field[1] && field[1].type === 'checkbox') { 7 | field = field[1]; 8 | } 9 | if (field.type === 'checkbox'){ 10 | field.checked = cfg[name] === '1' ? true : false; 11 | } else { 12 | field.value = cfg[name]; 13 | } 14 | } 15 | } 16 | } 17 | var $ = function(id) { 18 | return document.getElementById(id); 19 | } 20 | var reloadTimer={ 21 | s:10, 22 | reload:function(start) { 23 | if(start) { 24 | this.s = start; 25 | } 26 | $('timer').innerHTML = this.s < 10 ? '0' + this.s : this.s; 27 | if (this.s == 0){ 28 | document.location.href = document.referrer != '' ? document.referrer : '/'; 29 | } 30 | this.s--; 31 | setTimeout('reloadTimer.reload()', 1000); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /WEBFiles/sht7x.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/sht7x.ovl -------------------------------------------------------------------------------- /WEBFiles/tcp_client.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/tcp_client.ovl -------------------------------------------------------------------------------- /WEBFiles/time.inc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WEBFiles/timeout.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 WIFI 5 | 6 | 7 | 8 |

ESP8266 Built-in Web server ©

9 |
10 |

Timeout ? sec...

11 | * Redirect: http://~sys_url~/ *

12 | Main 13 |
14 | ~inc:footer.inc~ 15 | 16 | 17 | -------------------------------------------------------------------------------- /WEBFiles/timer.inc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 5 | 6 | 7 | 8 |

ESP8266 Built-in Web server ©

9 |
10 |

Timeout ? sec...

11 | Redirect: Main 12 | 13 | -------------------------------------------------------------------------------- /WEBFiles/tst.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Test: ? 3 | ~inc:grfx2.inc~ -------------------------------------------------------------------------------- /WEBFiles/tst.xml: -------------------------------------------------------------------------------- 1 | Test-1*~wifi_st_rssi~? 2 | -------------------------------------------------------------------------------- /WEBFiles/uart.htm: -------------------------------------------------------------------------------- 1 | {"status": 200, "data": "~uart_data_tmo_100~"} -------------------------------------------------------------------------------- /WEBFiles/udplog.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/udplog.ovl -------------------------------------------------------------------------------- /WEBFiles/udptp.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/udptp.ovl -------------------------------------------------------------------------------- /WEBFiles/vdd.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Vdd: ?V 3 | ~inc:grfx2.inc~ 10 | 11 | -------------------------------------------------------------------------------- /WEBFiles/vdd.inc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WEBFiles/vdd.xml: -------------------------------------------------------------------------------- 1 | Vdd(eval(~sys_vdd33~*100.0/~sys_ucnst_0~.0)).toFixed(3) 2 | -------------------------------------------------------------------------------- /WEBFiles/wdrv.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/wdrv.ovl -------------------------------------------------------------------------------- /WEBFiles/websock.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFiles/websock.htm -------------------------------------------------------------------------------- /WEBFiles/ws2.css: -------------------------------------------------------------------------------- 1 | #consoleLog { 2 | overflow-y: scroll; 3 | width: 480px; 4 | height: 200px; 5 | border: solid 1px #aaaaaa; 6 | background-color: #ffffff; 7 | padding-left: 5px; } 8 | #consoleLog > pre { 9 | margin-top: 0; 10 | margin-bottom: 0; } 11 | #consoleLog > pre:nth-child(even) { 12 | background-color: #fafafa; } 13 | -------------------------------------------------------------------------------- /WEBFilesRS485/$js.inc: -------------------------------------------------------------------------------- 1 | var $ = function(id){return document.getElementById(id);} -------------------------------------------------------------------------------- /WEBFilesRS485/404.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 404 - Page not found 5 | 6 | 7 | 8 |

ESP8266 Built-in Web server ©

9 |
10 |

404 - Page not found

11 |

Sorry, the page you are requesting was not found on this server.

12 |
13 | ~inc:footer.inc~ 14 | -------------------------------------------------------------------------------- /WEBFilesRS485/adc.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | ADC: ? 3 | 10 | ~inc:grfx2.inc~ -------------------------------------------------------------------------------- /WEBFilesRS485/adc.xml: -------------------------------------------------------------------------------- 1 | ADC~sys_adc~ -------------------------------------------------------------------------------- /WEBFilesRS485/disk_er1.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

Image Corrupt or Wrong Version!

3 |
4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFilesRS485/disk_er2.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

File to big in flash!

3 | 4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFilesRS485/disk_er3.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

Bad file!

3 | 4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFilesRS485/disk_ok.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

Update Successful!

3 | 4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFilesRS485/esp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/esp.gif -------------------------------------------------------------------------------- /WEBFilesRS485/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/favicon.ico -------------------------------------------------------------------------------- /WEBFilesRS485/footer.inc: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /WEBFilesRS485/grfx2.inc: -------------------------------------------------------------------------------- 1 | 2 |
GET TimeOuts ? ms' 3 | 4 | 5 | 6 | ~inc:footer.inc~ 7 | -------------------------------------------------------------------------------- /WEBFilesRS485/heap.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Heap Size: ? bytes 3 | ~inc:grfx2.inc~ 10 | -------------------------------------------------------------------------------- /WEBFilesRS485/heap.xml: -------------------------------------------------------------------------------- 1 | Heap Size~sys_heap~ -------------------------------------------------------------------------------- /WEBFilesRS485/help/webvars.files/filelist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WEBFilesRS485/help/webvars.files/sheet001.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/help/webvars.files/sheet001.htm -------------------------------------------------------------------------------- /WEBFilesRS485/help/webvars.files/sheet002.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/help/webvars.files/sheet002.htm -------------------------------------------------------------------------------- /WEBFilesRS485/help/webvars.files/stylesheet.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/help/webvars.files/stylesheet.css -------------------------------------------------------------------------------- /WEBFilesRS485/help/webvars.files/tabstrip.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
 WebVars  Modbus 
32 | 33 | 34 | -------------------------------------------------------------------------------- /WEBFilesRS485/help/webvars.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/help/webvars.htm -------------------------------------------------------------------------------- /WEBFilesRS485/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 5 | 6 | 7 | ~inc:menu.inc~ 8 |
9 |

Info

10 |

11 | Name: ~wifi_ap_ssid~ Password: ~wifi_ap_psw~
12 | Modbus TCP Connection: ~mdb_remote~, Web connect: ~web_remote~,

13 | WEB ver: ~sys_webver~, SDK ver: ~sys_sdkver~.
14 | Power: ? V
15 | ChipID: ~sys_cid~.

16 | DevTime: SNTP disable
17 | PowerStartTime: ?

18 |

19 | ~inc:footer.inc~ 20 | ~inc:vdd.inc~ 21 | ~inc:time.inc~ 22 | -------------------------------------------------------------------------------- /WEBFilesRS485/led.xml: -------------------------------------------------------------------------------- 1 | 2 | ~gpio1_inp~ 3 | ~gpio1_out~ 4 | ~gpio1_dir~ 5 | ~gpio1_fun~ 6 | -------------------------------------------------------------------------------- /WEBFilesRS485/leds.xml: -------------------------------------------------------------------------------- 1 | 2 | ~gpio_inp~ 3 | ~gpio_out~ 4 | ~gpio_dir~ 5 | -------------------------------------------------------------------------------- /WEBFilesRS485/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/logo.gif -------------------------------------------------------------------------------- /WEBFilesRS485/menu.inc: -------------------------------------------------------------------------------- 1 |

ESP8266 Built-in Web server ©

2 | 20 | -------------------------------------------------------------------------------- /WEBFilesRS485/protect/aps.xml: -------------------------------------------------------------------------------- 1 | ~wifi_aps_xml~ 2 | -------------------------------------------------------------------------------- /WEBFilesRS485/protect/chiprams.xml: -------------------------------------------------------------------------------- 1 | 2 | ~start~ 3 | ~xml_ram~ 4 | 5 | -------------------------------------------------------------------------------- /WEBFilesRS485/protect/esp_init_data_default.bin: -------------------------------------------------------------------------------- 1 | ~bin_flash_const~ -------------------------------------------------------------------------------- /WEBFilesRS485/protect/fullflash.bin: -------------------------------------------------------------------------------- 1 | ~bin_flash_all~ -------------------------------------------------------------------------------- /WEBFilesRS485/protect/gpio.xml: -------------------------------------------------------------------------------- 1 | 2 | ~gpio_inp~ 3 | ~gpio_out~ 4 | ~gpio_dir~ 5 | ~gpio0_fun~ 6 | ~gpio1_fun~ 7 | ~gpio2_fun~ 8 | ~gpio3_fun~ 9 | ~gpio4_fun~ 10 | ~gpio5_fun~ 11 | ~gpio6_fun~ 12 | ~gpio7_fun~ 13 | ~gpio8_fun~ 14 | ~gpio9_fun~ 15 | ~gpio10_fun~ 16 | ~gpio11_fun~ 17 | ~gpio12_fun~ 18 | ~gpio13_fun~ 19 | ~gpio14_fun~ 20 | ~gpio15_fun~ 21 | ~gpio0_pull~ 22 | ~gpio1_pull~ 23 | ~gpio2_pull~ 24 | ~gpio3_pull~ 25 | ~gpio4_pull~ 26 | ~gpio5_pull~ 27 | ~gpio6_pull~ 28 | ~gpio7_pull~ 29 | ~gpio8_pull~ 30 | ~gpio9_pull~ 31 | ~gpio10_pull~ 32 | ~gpio11_pull~ 33 | ~gpio12_pull~ 34 | ~gpio13_pull~ 35 | ~gpio14_pull~ 36 | ~gpio15_pull~ 37 | ~gpio0_opd~ 38 | ~gpio1_opd~ 39 | ~gpio2_opd~ 40 | ~gpio3_opd~ 41 | ~gpio4_opd~ 42 | ~gpio5_opd~ 43 | ~gpio6_opd~ 44 | ~gpio7_opd~ 45 | ~gpio8_opd~ 46 | ~gpio9_opd~ 47 | ~gpio10_opd~ 48 | ~gpio11_opd~ 49 | ~gpio12_opd~ 50 | ~gpio13_opd~ 51 | ~gpio14_opd~ 52 | ~gpio15_opd~ 53 | -------------------------------------------------------------------------------- /WEBFilesRS485/protect/hexdmpb.txt: -------------------------------------------------------------------------------- 1 | ~hexdmpb~ -------------------------------------------------------------------------------- /WEBFilesRS485/protect/hexdmpd.txt: -------------------------------------------------------------------------------- 1 | ~hexdmpd~ -------------------------------------------------------------------------------- /WEBFilesRS485/protect/init.ini: -------------------------------------------------------------------------------- 1 | mdbfini=protect/mdbini.bin 2 | sys_ram0x60000f00=0x48 3 | sys_ram0x60000f00=0x65 4 | sys_ram0x60000f00=0x6c 5 | sys_ram0x60000f00=0x6c 6 | sys_ram0x60000f00=0x6f 7 | sys_ram0x60000f00=0x21 -------------------------------------------------------------------------------- /WEBFilesRS485/protect/mdb.bin: -------------------------------------------------------------------------------- 1 | ~bin_mdb~ -------------------------------------------------------------------------------- /WEBFilesRS485/protect/mdb.xml: -------------------------------------------------------------------------------- 1 | ~xml_mdb~ 2 | 3 | -------------------------------------------------------------------------------- /WEBFilesRS485/protect/mdbh.xml: -------------------------------------------------------------------------------- 1 | ~xml_mdbh~ 2 | 3 | -------------------------------------------------------------------------------- /WEBFilesRS485/protect/pr_request.xml: -------------------------------------------------------------------------------- 1 | ~wifi_prrq_xml~ -------------------------------------------------------------------------------- /WEBFilesRS485/protect/ram.bin: -------------------------------------------------------------------------------- 1 | ~bin_ram~ -------------------------------------------------------------------------------- /WEBFilesRS485/protect/scan.xml: -------------------------------------------------------------------------------- 1 | ~wifi_scan~ 2 | -------------------------------------------------------------------------------- /WEBFilesRS485/protect/upload.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 WebFS Image Upload 5 | 6 | 7 | ~inc:menu.inc~ 8 |
9 |

WebFS Image Upload

10 |

11 | Select WEBFiles.bin file...

12 |

13 | 14 |

15 |
16 |

17 | Curent Disk has ~wfs_files~ files, Disk Size: ~wfs_size~ bytes.
18 | Disk Addres: ~wfs_addr~, Max Disk Size: ~wfs_max_size~ bytes, Max 250 files.

19 | Flash ID: ~sys_fid~, Size: ~sys_fsize~ bytes.
20 | Download fullflash.bin

21 |

22 | ~inc:footer.inc~ 23 | -------------------------------------------------------------------------------- /WEBFilesRS485/sample.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 Samples 5 | 6 | 7 | ~inc:menu.inc~ 8 |
9 |
10 | Write Mdb[68] string 'Hello!'
~mdba68=Hello!~ 11 | Read Mdb[68] string: '~mdba68~'
12 | Read Mdb[10] string: '~mdba10~'
13 |
14 | Write Mdb[0] dword -12345678
~mdbd0=-12345678~ 15 | Read Mdb[0] unsigned dword = ~mdbud0~
16 | Read Mdb[0] signed dword = ~mdbsd0~
17 | Read Mdb[0] hex dword = 0x~mdbhd0~
18 | Read Mdb[0] unsigned word = ~mdbuw0~
19 | Read Mdb[1] unsigned word = ~mdbuw1~
20 | Read Mdb[0] signed word = ~mdbsw0~
21 | Read Mdb[1] signed word = ~mdbsw1~
22 | Read Mdb[0] hex word = 0x~mdbhw0~
23 | Read Mdb[1] hex word = 0x~mdbhw1~
24 |
25 | MdbTrn[0].id = 0x~mdbhw1001~
26 | MdbTrn[0].cmd = 0x~mdbhw1002~
27 | MdbTrn[0].len = 0x~mdbhw1003~
28 | MdbTrn[0].eaddr = 0x~mdbhw1004~
29 | MdbTrn[0].iaddr = 0x~mdbhw1005~
30 | MdbTrn[0].tims = 0x~mdbhw1006~
31 | MdbTrn[0].errs = 0x~mdbhw1007~
32 | MdbTrn[0].fifo = 0x~mdbhw1008~
33 | MdbTrn[0].timc = 0x~mdbhw1009~
34 |
35 | ~inc:footer.inc~ 36 | 37 | -------------------------------------------------------------------------------- /WEBFilesRS485/scripts.js: -------------------------------------------------------------------------------- 1 | var setFormValues = function(form, cfg) { 2 | var name, field; 3 | for (name in cfg){ 4 | if (form[name]) { 5 | field = form[name]; 6 | if (field[1] && field[1].type === 'checkbox') { 7 | field = field[1]; 8 | } 9 | if (field.type === 'checkbox'){ 10 | field.checked = cfg[name] === '1' ? true : false; 11 | } else { 12 | field.value = cfg[name]; 13 | } 14 | } 15 | } 16 | } 17 | var $ = function(id) { 18 | return document.getElementById(id); 19 | } 20 | var reloadTimer={ 21 | s:10, 22 | reload:function(start) { 23 | if(start) { 24 | this.s = start; 25 | } 26 | $('timer').innerHTML = this.s < 10 ? '0' + this.s : this.s; 27 | if (this.s == 0){ 28 | document.location.href = document.referrer != '' ? document.referrer : '/'; 29 | } 30 | this.s--; 31 | setTimeout('reloadTimer.reload()', 1000); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /WEBFilesRS485/sht7x.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/sht7x.ovl -------------------------------------------------------------------------------- /WEBFilesRS485/time.inc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WEBFilesRS485/timeout.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 WIFI 5 | 6 | 7 | 8 |

ESP8266 Built-in Web server ©

9 |
10 |

Timeout ? sec...

11 | * Redirect: http://~sys_url~/ *

12 | Main 13 |
14 | ~inc:footer.inc~ 15 | 16 | 17 | -------------------------------------------------------------------------------- /WEBFilesRS485/timer.inc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 5 | 6 | 7 | 8 |

ESP8266 Built-in Web server ©

9 |
10 |

Timeout ? sec...

11 | Redirect: Main 12 | 13 | -------------------------------------------------------------------------------- /WEBFilesRS485/tst.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Test: ? 3 | ~inc:grfx2.inc~ -------------------------------------------------------------------------------- /WEBFilesRS485/tst.xml: -------------------------------------------------------------------------------- 1 | Test-1*~wifi_st_rssi~? 2 | -------------------------------------------------------------------------------- /WEBFilesRS485/udptp.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/udptp.ovl -------------------------------------------------------------------------------- /WEBFilesRS485/vdd.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Vdd: ?V 3 | ~inc:grfx2.inc~ 10 | 11 | -------------------------------------------------------------------------------- /WEBFilesRS485/vdd.inc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WEBFilesRS485/vdd.xml: -------------------------------------------------------------------------------- 1 | Vdd(eval(~sys_vdd33~*100.0/~sys_ucnst_0~.0)).toFixed(3) 2 | -------------------------------------------------------------------------------- /WEBFilesRS485/wdrv.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/wdrv.ovl -------------------------------------------------------------------------------- /WEBFilesRS485/websock.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesRS485/websock.htm -------------------------------------------------------------------------------- /WEBFilesRS485/ws2.css: -------------------------------------------------------------------------------- 1 | #consoleLog { 2 | overflow-y: scroll; 3 | width: 480px; 4 | height: 200px; 5 | border: solid 1px #aaaaaa; 6 | background-color: #ffffff; 7 | padding-left: 5px; } 8 | #consoleLog > pre { 9 | margin-top: 0; 10 | margin-bottom: 0; } 11 | #consoleLog > pre:nth-child(even) { 12 | background-color: #fafafa; } 13 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/$js.inc: -------------------------------------------------------------------------------- 1 | var $ = function(id){return document.getElementById(id);} -------------------------------------------------------------------------------- /WEBFilesTCP2UART/404.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 404 - Page not found 5 | 6 | 7 | 8 |

ESP8266 Built-in Web server ©

9 |
10 |

404 - Page not found

11 |

Sorry, the page you are requesting was not found on this server.

12 |
13 | ~inc:footer.inc~ 14 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/adc.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | ADC: ? 3 | 10 | ~inc:grfx2.inc~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/adc.wav: -------------------------------------------------------------------------------- 1 | ~test_adc~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/adc.xml: -------------------------------------------------------------------------------- 1 | ADC~sys_adc~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/disk_er1.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

Image Corrupt or Wrong Version!

3 |
4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/disk_er2.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

File to big in flash!

3 | 4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/disk_er3.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

Bad file!

3 | 4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/disk_ok.htm: -------------------------------------------------------------------------------- 1 | ~inc:timer.inc~ 2 |

Update Successful!

3 | 4 | ~inc:footer.inc~ 5 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/esp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/esp.gif -------------------------------------------------------------------------------- /WEBFilesTCP2UART/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/favicon.ico -------------------------------------------------------------------------------- /WEBFilesTCP2UART/footer.inc: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/grfx2.inc: -------------------------------------------------------------------------------- 1 | 2 |
GET TimeOuts ? ms' 3 | 4 | 5 | 6 | ~inc:footer.inc~ 7 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/heap.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Heap Size: ? bytes 3 | ~inc:grfx2.inc~ 10 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/heap.xml: -------------------------------------------------------------------------------- 1 | Heap Size~sys_heap~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/help/webvars.files/filelist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/help/webvars.files/sheet001.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/help/webvars.files/sheet001.htm -------------------------------------------------------------------------------- /WEBFilesTCP2UART/help/webvars.files/sheet002.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/help/webvars.files/sheet002.htm -------------------------------------------------------------------------------- /WEBFilesTCP2UART/help/webvars.files/stylesheet.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/help/webvars.files/stylesheet.css -------------------------------------------------------------------------------- /WEBFilesTCP2UART/help/webvars.files/tabstrip.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
 WebVars  ModBus 
32 | 33 | 34 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/help/webvars.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/help/webvars.htm -------------------------------------------------------------------------------- /WEBFilesTCP2UART/ina219.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Ivcc: ? mA 3 | 4 | ~inc:grfx2.inc~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/ina219.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/ina219.ovl -------------------------------------------------------------------------------- /WEBFilesTCP2UART/ina219.xml: -------------------------------------------------------------------------------- 1 | Ish(eval(~mdbsw65~*0.0482)).toFixed(1) 2 | 3 | 4 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 5 | 6 | 7 | ~inc:menu.inc~ 8 |
9 |

Info

10 |

11 | Name: ~wifi_ap_ssid~ Password: ~wifi_ap_psw~
12 | TCP2UART connect: ~tcp_remote~, Web connect: ~web_remote~,
13 | Modbus TCP Connection: ~mdb_remote~
14 | WEB ver: ~sys_webver~, SDK ver: ~sys_sdkver~.
15 | Power: ? V
16 | ChipID: ~sys_cid~.

17 | DevTime: SNTP disable
18 | PowerStartTime: ?

19 |

20 | ~inc:footer.inc~ 21 | ~inc:vdd.inc~ 22 | ~inc:time.inc~ 23 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/led.xml: -------------------------------------------------------------------------------- 1 | 2 | ~gpio1_inp~ 3 | ~gpio1_out~ 4 | ~gpio1_dir~ 5 | ~gpio1_fun~ 6 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/leds.xml: -------------------------------------------------------------------------------- 1 | 2 | ~gpio_inp~ 3 | ~gpio_out~ 4 | ~gpio_dir~ 5 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/logo.gif -------------------------------------------------------------------------------- /WEBFilesTCP2UART/menu.inc: -------------------------------------------------------------------------------- 1 |

ESP8266 Built-in Web server ©

2 | 20 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/10leds.ini: -------------------------------------------------------------------------------- 1 | cfg_pinclr=0 2 | cfg_debug=0 3 | cfg_tcp_port=0 4 | cfg_cdns=1 5 | cfg_save=1 6 | gpio0_out=1 7 | gpio0_dir=1 8 | gpio1_out=1 9 | gpio1_dir=1 10 | gpio2_out=1 11 | gpio2_dir=1 12 | gpio3_out=1 13 | gpio3_dir=1 14 | gpio4_out=1 15 | gpio4_dir=1 16 | gpio5_out=1 17 | gpio5_dir=1 18 | gpio12_out=1 19 | gpio12_dir=1 20 | gpio13_out=1 21 | gpio13_dir=1 22 | gpio14_out=1 23 | gpio14_dir=1 24 | gpio15_out=0 25 | gpio15_dir=1 -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/aps.xml: -------------------------------------------------------------------------------- 1 | ~wifi_aps_xml~ 2 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/chiprams.xml: -------------------------------------------------------------------------------- 1 | 2 | ~start~ 3 | ~xml_ram~ 4 | 5 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/esp_init_data_default.bin: -------------------------------------------------------------------------------- 1 | ~bin_flash_const~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/fullflash.bin: -------------------------------------------------------------------------------- 1 | ~bin_flash_all~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/gpio.xml: -------------------------------------------------------------------------------- 1 | 2 | ~gpio_inp~ 3 | ~gpio_out~ 4 | ~gpio_dir~ 5 | ~gpio0_fun~ 6 | ~gpio1_fun~ 7 | ~gpio2_fun~ 8 | ~gpio3_fun~ 9 | ~gpio4_fun~ 10 | ~gpio5_fun~ 11 | ~gpio6_fun~ 12 | ~gpio7_fun~ 13 | ~gpio8_fun~ 14 | ~gpio9_fun~ 15 | ~gpio10_fun~ 16 | ~gpio11_fun~ 17 | ~gpio12_fun~ 18 | ~gpio13_fun~ 19 | ~gpio14_fun~ 20 | ~gpio15_fun~ 21 | ~gpio0_pull~ 22 | ~gpio1_pull~ 23 | ~gpio2_pull~ 24 | ~gpio3_pull~ 25 | ~gpio4_pull~ 26 | ~gpio5_pull~ 27 | ~gpio6_pull~ 28 | ~gpio7_pull~ 29 | ~gpio8_pull~ 30 | ~gpio9_pull~ 31 | ~gpio10_pull~ 32 | ~gpio11_pull~ 33 | ~gpio12_pull~ 34 | ~gpio13_pull~ 35 | ~gpio14_pull~ 36 | ~gpio15_pull~ 37 | ~gpio0_opd~ 38 | ~gpio1_opd~ 39 | ~gpio2_opd~ 40 | ~gpio3_opd~ 41 | ~gpio4_opd~ 42 | ~gpio5_opd~ 43 | ~gpio6_opd~ 44 | ~gpio7_opd~ 45 | ~gpio8_opd~ 46 | ~gpio9_opd~ 47 | ~gpio10_opd~ 48 | ~gpio11_opd~ 49 | ~gpio12_opd~ 50 | ~gpio13_opd~ 51 | ~gpio14_opd~ 52 | ~gpio15_opd~ 53 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/hexdmpb.txt: -------------------------------------------------------------------------------- 1 | ~hexdmpb~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/hexdmpd.txt: -------------------------------------------------------------------------------- 1 | ~hexdmpd~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/init.ini: -------------------------------------------------------------------------------- 1 | sys_ram0x60000f00=0x48 2 | sys_ram0x60000f00=0x65 3 | sys_ram0x60000f00=0x6c 4 | sys_ram0x60000f00=0x6c 5 | sys_ram0x60000f00=0x6f 6 | sys_ram0x60000f00=0x21 7 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/mdb.bin: -------------------------------------------------------------------------------- 1 | ~bin_mdb~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/mdb.xml: -------------------------------------------------------------------------------- 1 | ~xml_mdb~ 2 | 3 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/mdbh.xml: -------------------------------------------------------------------------------- 1 | ~xml_mdbh~ 2 | 3 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/pr_request.xml: -------------------------------------------------------------------------------- 1 | ~wifi_prrq_xml~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/ram.bin: -------------------------------------------------------------------------------- 1 | ~bin_ram~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/scan.xml: -------------------------------------------------------------------------------- 1 | ~wifi_scan~ 2 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/protect/upload.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 WebFS Image Upload 5 | 6 | 7 | ~inc:menu.inc~ 8 |
9 |

WebFS Image Upload

10 |

11 | Select WEBFiles.bin file...

12 |

13 | 14 |

15 |
16 |

17 | Curent Disk has ~wfs_files~ files, Disk Size: ~wfs_size~ bytes.
18 | Disk Addres: ~wfs_addr~, Max Disk Size: ~wfs_max_size~ bytes, Max 250 files.

19 | Flash ID: ~sys_fid~, Size: ~sys_fsize~ bytes.
20 | Download fullflash.bin

21 |

22 | ~inc:footer.inc~ 23 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/sample.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 FWEB Image Upload 5 | 6 | 7 | ~inc:menu.inc~ 8 |
9 | Out UART1(debug port): 'Hello!'
10 | ~sys_ram0x60000f00=0x48~ 11 | ~sys_ram0x60000f00=0x65~ 12 | ~sys_ram0x60000f00=0x6c~ 13 | ~sys_ram0x60000f00=0x6c~ 14 | ~sys_ram0x60000f00=0x6f~ 15 | ~sys_ram0x60000f00=0x21~ 16 | ~sys_ram0x60000f00=0x0d~ 17 | ~sys_ram0x60000f00=0x0a~ 18 |
19 | Out UART0 tx: 'Hello!'
20 | ~sys_ram0x60000000=0x48~ 21 | ~sys_ram0x60000000=0x65~ 22 | ~sys_ram0x60000000=0x6c~ 23 | ~sys_ram0x60000000=0x6c~ 24 | ~sys_ram0x60000000=0x6f~ 25 | ~sys_ram0x60000000=0x21~ 26 | ~sys_ram0x60000000=0x0d~ 27 | ~sys_ram0x60000000=0x0a~ 28 | Read UART0 rx:~sys_ram0x60000000~
29 |
30 | Variant 2
31 | ~start=0x60000000~ 32 | Read UART0 regs:
33 | ~start~=~xml_ram~
34 | ~start~=~xml_ram~
35 | ~start~=~xml_ram~
36 | ~start~=~xml_ram~
37 |
38 | ~start=0x40200000~ 39 | Read RAM:
40 | ~start~=~xml_ram~
41 | ~start~=~xml_ram~
42 | ~start~=~xml_ram~
43 | ~start~=~xml_ram~
44 |
45 | Variant 2
46 | RAM0x40200000=~sys_ram0x40200000~
47 |
48 | ~inc:footer.inc~ 49 | 50 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/scripts.js: -------------------------------------------------------------------------------- 1 | var setFormValues = function(form, cfg) { 2 | var name, field; 3 | for (name in cfg){ 4 | if (form[name]) { 5 | field = form[name]; 6 | if (field[1] && field[1].type === 'checkbox') { 7 | field = field[1]; 8 | } 9 | if (field.type === 'checkbox'){ 10 | field.checked = cfg[name] === '1' ? true : false; 11 | } else { 12 | field.value = cfg[name]; 13 | } 14 | } 15 | } 16 | } 17 | var $ = function(id) { 18 | return document.getElementById(id); 19 | } 20 | var reloadTimer={ 21 | s:10, 22 | reload:function(start) { 23 | if(start) { 24 | this.s = start; 25 | } 26 | $('timer').innerHTML = this.s < 10 ? '0' + this.s : this.s; 27 | if (this.s == 0){ 28 | document.location.href = document.referrer != '' ? document.referrer : '/'; 29 | } 30 | this.s--; 31 | setTimeout('reloadTimer.reload()', 1000); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/sht7x.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/sht7x.ovl -------------------------------------------------------------------------------- /WEBFilesTCP2UART/time.inc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/timeout.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 WIFI 5 | 6 | 7 | 8 |

ESP8266 Built-in Web server ©

9 |
10 |

Timeout ? sec...

11 | * Redirect: http://~sys_url~/ *

12 | Main 13 |
14 | ~inc:footer.inc~ 15 | 16 | 17 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/timer.inc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 5 | 6 | 7 | 8 |

ESP8266 Built-in Web server ©

9 |
10 |

Timeout ? sec...

11 | Redirect: Main 12 | 13 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/tst.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Test: ? 3 | ~inc:grfx2.inc~ -------------------------------------------------------------------------------- /WEBFilesTCP2UART/tst.xml: -------------------------------------------------------------------------------- 1 | Test-1*~wifi_st_rssi~? 2 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/uart.htm: -------------------------------------------------------------------------------- 1 | {"status": 200, "data": "~uart_data_tmo_100~"} -------------------------------------------------------------------------------- /WEBFilesTCP2UART/udptp.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/udptp.ovl -------------------------------------------------------------------------------- /WEBFilesTCP2UART/vdd.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Vdd: ?V 3 | ~inc:grfx2.inc~ 10 | 11 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/vdd.inc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/vdd.xml: -------------------------------------------------------------------------------- 1 | Vdd(eval(~sys_vdd33~*100.0/~sys_ucnst_0~.0)).toFixed(3) 2 | -------------------------------------------------------------------------------- /WEBFilesTCP2UART/wdrv.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/wdrv.ovl -------------------------------------------------------------------------------- /WEBFilesTCP2UART/websock.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WEBFilesTCP2UART/websock.htm -------------------------------------------------------------------------------- /WEBFilesTCP2UART/ws2.css: -------------------------------------------------------------------------------- 1 | #consoleLog { 2 | overflow-y: scroll; 3 | width: 480px; 4 | height: 200px; 5 | border: solid 1px #aaaaaa; 6 | background-color: #ffffff; 7 | padding-left: 5px; } 8 | #consoleLog > pre { 9 | margin-top: 0; 10 | margin-bottom: 0; } 11 | #consoleLog > pre:nth-child(even) { 12 | background-color: #fafafa; } 13 | -------------------------------------------------------------------------------- /WebSocket/ws2.css: -------------------------------------------------------------------------------- 1 | #consoleLog { 2 | overflow-y: scroll; 3 | width: 480px; 4 | height: 200px; 5 | border: solid 1px #aaaaaa; 6 | background-color: #ffffff; 7 | padding-left: 5px; } 8 | #consoleLog > pre { 9 | margin-top: 0; 10 | margin-bottom: 0; } 11 | #consoleLog > pre:nth-child(even) { 12 | background-color: #fafafa; } 13 | -------------------------------------------------------------------------------- /WebSocket/ws2.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/WebSocket/ws2.htm -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | *.output* 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /app/driver/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libdriver.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./ 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /app/gdbstub/License: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/app/gdbstub/License -------------------------------------------------------------------------------- /app/gdbstub/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libgdbstub.a 16 | endif 17 | 18 | 19 | ############################################################# 20 | # Configuration i.e. compile options etc. 21 | # Target specific stuff (defines etc.) goes in here! 22 | # Generally values applying to a tree are captured in the 23 | # makefile at its root level - these are then overridden 24 | # for a subtree within the makefile rooted therein 25 | # 26 | #DEFINES += 27 | 28 | ############################################################# 29 | # Recursion Magic - Don't touch this!! 30 | # 31 | # Each subtree potentially has an include directory 32 | # corresponding to the common APIs applicable to modules 33 | # rooted at that subtree. Accordingly, the INCLUDE PATH 34 | # of a module can only contain the include directories up 35 | # its parent path, and not its siblings 36 | # 37 | # Required for each makefile to inherit from the parent 38 | # 39 | 40 | INCLUDES += -I $(PDIR)include 41 | INCLUDES += -I ./ 42 | INCLUDES += -I ../../include/ets 43 | PDIR := ../$(PDIR) 44 | sinclude $(PDIR)Makefile 45 | 46 | -------------------------------------------------------------------------------- /app/gdbstub/gdbcmds: -------------------------------------------------------------------------------- 1 | file ../.output/eagle/image/eagle.app.v6.out 2 | #set remotedebug 1 3 | set remotelogfile gdb_rsp_logfile.txt 4 | #set serial baud 115200 5 | set remote hardware-breakpoint-limit 1 6 | set remote hardware-watchpoint-limit 1 7 | #set debug xtensa 4 8 | target remote COM2 9 | -------------------------------------------------------------------------------- /app/gdbstub/gdbstub-entry.h: -------------------------------------------------------------------------------- 1 | #ifndef GDBSTUB_ENTRY_H 2 | #define GDBSTUB_ENTRY_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | void gdbstub_init_debug_entry(); 9 | void gdbstub_do_break(); 10 | void gdbstub_icount_ena_single_step(); 11 | void gdbstub_save_extra_sfrs_for_exception(); 12 | void gdbstub_uart_entry(); 13 | 14 | int gdbstub_set_hw_breakpoint(int addr, int len); 15 | int gdbstub_set_hw_watchpoint(int addr, int len, int type); 16 | int gdbstub_del_hw_breakpoint(int addr); 17 | int gdbstub_del_hw_watchpoint(int addr); 18 | 19 | extern void* gdbstub_do_break_breakpoint_addr; 20 | 21 | #ifdef __cplusplus 22 | { 23 | #endif 24 | 25 | #endif -------------------------------------------------------------------------------- /app/gdbstub/gdbstub.h: -------------------------------------------------------------------------------- 1 | #ifndef GDBSTUB_H 2 | #define GDBSTUB_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | void gdbstub_init(); 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | 14 | #endif -------------------------------------------------------------------------------- /app/include/captdns.h: -------------------------------------------------------------------------------- 1 | /* 2 | * captdns.h 3 | */ 4 | 5 | #ifndef _INCLUDE_CAPTDNS_H_ 6 | #define _INCLUDE_CAPTDNS_H_ 7 | 8 | #define CAPTDNS_PORT 53 9 | 10 | bool captdns_init(void) ICACHE_FLASH_ATTR; 11 | void captdns_close(void) ICACHE_FLASH_ATTR; 12 | 13 | extern struct udp_pcb *pcb_cdns; 14 | extern const char HostNameLocal[]; 15 | extern const char httpHostNameLocal[]; 16 | 17 | #endif /* _INCLUDE_CAPTDNS_H_ */ 18 | -------------------------------------------------------------------------------- /app/include/driver/adc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * adc.h 3 | * 4 | * Created on: 12/02/2015 5 | * Author: PV` 6 | */ 7 | 8 | #ifndef _INCLUDE_DRIVER_ADC_H_ 9 | #define _INCLUDE_DRIVER_ADC_H_ 10 | 11 | extern uint32 wdrv_bufn; 12 | 13 | /* Инициализация SAR */ 14 | void sar_init(uint32 clk_div, uint32 win_cnt) ICACHE_FLASH_ATTR; 15 | /* Отключить SAR */ 16 | void sar_off(void) ICACHE_FLASH_ATTR; 17 | /* Чтение SAR */ 18 | void read_adcs(uint16 *ptr, uint16 len, uint32 cfg) ICACHE_FLASH_ATTR; 19 | 20 | #endif /* _INCLUDE_DRIVER_ADC_H_ */ 21 | -------------------------------------------------------------------------------- /app/include/driver/gpio16.h: -------------------------------------------------------------------------------- 1 | #ifndef __GPIO16_H__ 2 | #define __GPIO16_H__ 3 | 4 | void gpio16_output_conf(void); 5 | void gpio16_output_set(uint8 value); 6 | void gpio16_input_conf(void); 7 | uint8 gpio16_input_get(void); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /app/include/driver/int_time_us.h: -------------------------------------------------------------------------------- 1 | #ifndef __INT_TIME_US__ 2 | #define __INT_TIME_US__ 3 | 4 | void int_us_init(uint32 us) ICACHE_FLASH_ATTR; 5 | void int_us_disable(void) ICACHE_FLASH_ATTR; 6 | 7 | void set_new_time_int_us(uint32 us) ICACHE_FLASH_ATTR; 8 | 9 | #endif 10 | 11 | -------------------------------------------------------------------------------- /app/include/driver/sigma_delta.h: -------------------------------------------------------------------------------- 1 | /* 2 | * sigma_delta.h 3 | * 4 | * Created on: 14/02/2015 г. 5 | * Author: PV` 6 | */ 7 | 8 | #ifndef _DRIVER_SIGMA_DELTA_H_ 9 | #define _DRIVER_SIGMA_DELTA_H_ 10 | 11 | void sigma_delta_setup(uint32 GPIO_NUM) ICACHE_FLASH_ATTR; 12 | void sigma_delta_close(uint32 GPIO_NUM) ICACHE_FLASH_ATTR; 13 | void set_sigma_duty_312KHz(uint8 duty) ICACHE_FLASH_ATTR; 14 | 15 | #endif /* _DRIVER_SIGMA_DELTA_H_ */ 16 | -------------------------------------------------------------------------------- /app/include/mdbrs485.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: mdbrs485.h 3 | * ModBus TCP RTU <> RS-485 4 | * Author: PV` 5 | * (c) PV` 2015 6 | *******************************************************************************/ 7 | #ifndef _INCLUDE_MODBUSTCPRS485_H_ 8 | #define _INCLUDE_MODBUSTCPRS485_H_ 9 | 10 | #include "user_config.h" 11 | //#ifdef USE_RS485DRV 12 | //#include "driver/rs485drv.h" 13 | #include "modbusrtu.h" 14 | #include "mdbtab.h" 15 | //#include "modbustcp.h" 16 | 17 | #define MDB_TCP_RS485_MIN_HEAP 24576 18 | 19 | uint32 CalkCRC16tab(uint8 * blk, uint32 len); 20 | struct srs485msg * rs485_new_tx_msg(smdbtcp * p, bool flg_out) ICACHE_FLASH_ATTR; 21 | uint32 rs485_test_msg(uint8 * pbufi, uint32 len); 22 | bool rs485_rx_msg(struct srs485msg *msg); 23 | 24 | //#endif USE_RS485DRV 25 | #endif /* _INCLUDE_MODBUSTCPRS485_H_ */ 26 | -------------------------------------------------------------------------------- /app/include/modbustcp.h: -------------------------------------------------------------------------------- 1 | #ifndef _ModBusTcp_H_ 2 | //=============================================================================== 3 | // ModBusTCP.h 11.2010 pvvx 4 | //=============================================================================== 5 | #define _ModBusTcp_H_ 6 | 7 | #include "lwip/tcp.h" 8 | #include "tcp_srv_conn.h" 9 | 10 | #define DEFAULT_MDB_PORT USE_MODBUS // 502 11 | #define DEFAULT_MDB_ID 50 // номер устройства ESP8266 по шине modbus 12 | 13 | extern TCP_SERV_CFG * mdb_tcp_servcfg; 14 | extern TCP_SERV_CONN * mdb_tcp_conn; 15 | 16 | err_t mdb_tcp_start(uint16 portn) ICACHE_FLASH_ATTR; 17 | void mdb_tcp_close(void) ICACHE_FLASH_ATTR; 18 | uint32 WrMdbData(uint8 * dbuf, uint16 addr, uint32 len) ICACHE_FLASH_ATTR; 19 | uint32 RdMdbData(uint8 * mdbbuf, uint32 addr, uint32 len) ICACHE_FLASH_ATTR; 20 | 21 | #endif //_ModBusTcp_H_ 22 | -------------------------------------------------------------------------------- /app/include/netbios.h: -------------------------------------------------------------------------------- 1 | #ifndef __NETBIOS_H__ 2 | #define __NETBIOS_H__ 3 | 4 | #include "user_interface.h" 5 | 6 | #ifdef USE_NETBIOS 7 | 8 | /** default port number for "NetBIOS Name service */ 9 | #define NETBIOS_PORT 137 10 | 11 | /** size of a NetBIOS name */ 12 | #define NETBIOS_NAME_LEN 16 13 | 14 | extern uint8 netbios_name[NETBIOS_NAME_LEN + 1]; 15 | 16 | void netbios_init(void) ICACHE_FLASH_ATTR; 17 | struct udp_pcb * ICACHE_FLASH_ATTR netbios_pcb(void) ICACHE_FLASH_ATTR; 18 | void netbios_set_name(uint8 * name) ICACHE_FLASH_ATTR; 19 | bool netbios_off(void) ICACHE_FLASH_ATTR; 20 | 21 | #endif 22 | 23 | #endif /* __NETBIOS_H__ */ 24 | -------------------------------------------------------------------------------- /app/include/overlay.h: -------------------------------------------------------------------------------- 1 | /* 2 | * overlay.h 3 | * 4 | * Created on: 01/02/2016 5 | * Author: PVV 6 | */ 7 | #ifndef _INCLUDE_OVERLAY_H_ 8 | #define _INCLUDE_OVERLAY_H_ 9 | 10 | #include "tcp_srv_conn.h" 11 | 12 | typedef int tovl_call(int flg); 13 | 14 | extern tovl_call * ovl_call; 15 | 16 | int ovl_loader(uint8 *filename); 17 | 18 | 19 | #endif /* _INCLUDE_OVERLAY_H_ */ 20 | -------------------------------------------------------------------------------- /app/include/sntp.h: -------------------------------------------------------------------------------- 1 | #ifndef __SNTP_H__ 2 | #define __SNTP_H__ 3 | 4 | #include "lwip/ip_addr.h" 5 | #include 6 | 7 | bool sntp_inits(void); 8 | void sntp_close(void); 9 | time_t get_sntp_time(void); 10 | 11 | extern ip_addr_t dhcp_sntp_server_address; 12 | 13 | void sntp_send_request(ip_addr_t *server_addr) ICACHE_FLASH_ATTR; 14 | 15 | #endif /* __SNTP_H__ */ 16 | -------------------------------------------------------------------------------- /app/include/sys_const_utils.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: sys_const_utils.h 3 | * Description: read/write sdk_sys_cont (esp_init_data_default.bin) 4 | * Author: PV` 5 | *******************************************************************************/ 6 | #ifndef _INCLUDE_SYS_CONST_U_H_ 7 | #define _INCLUDE_SYS_CONST_U_H_ 8 | 9 | #include "hw/esp8266.h" 10 | #include "sdk/sys_const.h" 11 | 12 | uint8 read_sys_const(uint8 idx); 13 | bool write_sys_const(uint8 idx, uint8 data); 14 | 15 | #endif /* _INCLUDE_SYS_CONST_U_H_ */ 16 | -------------------------------------------------------------------------------- /app/include/web_iohw.h: -------------------------------------------------------------------------------- 1 | /* 2 | * web_iohw.h 3 | * 4 | */ 5 | 6 | #ifndef _WEB_IOHW_H_ 7 | #define _WEB_IOHW_H_ 8 | 9 | #include "user_config.h" 10 | 11 | void set_cpu_clk(void) ICACHE_FLASH_ATTR; // select cpu frequency 80 or 160 MHz 12 | void set_gpiox_mux_pull(uint8 pin_num, uint8 pull) ICACHE_FLASH_ATTR; 13 | void set_gpiox_mux_func(uint8 pin_num, uint8 func) ICACHE_FLASH_ATTR; 14 | uint32 get_gpiox_mux_func(uint8 pin_num) ICACHE_FLASH_ATTR; 15 | void set_gpiox_mux_func_ioport(uint8 pin_num) ICACHE_FLASH_ATTR; 16 | void set_gpiox_mux_func_default(uint8 pin_num) ICACHE_FLASH_ATTR; 17 | volatile uint32 * get_addr_gpiox_mux(uint8 pin_num) ICACHE_FLASH_ATTR; 18 | uint32 get_gpiox_mux(uint8 pin_num) ICACHE_FLASH_ATTR; 19 | 20 | void test_pin_clr_wifi_config(void) ICACHE_FLASH_ATTR; 21 | extern uint64 get_mac_time(void) ICACHE_FLASH_ATTR; 22 | #define get_tsf_ap() get_mac_time() 23 | extern uint32 get_tsf_station(void) ICACHE_FLASH_ATTR; 24 | extern volatile uint32 recv_tsf; // принятый TSF от внешней AP 25 | extern volatile uint32 recv_tsf_time; // время приема TSF (младшие 32 бита - считем, что для времязависимых приложений не ставят время следования beacon более 4294967296 us :) ) 26 | 27 | extern sint32 delta_mac; 28 | 29 | #endif /* _WEB_IOHW_H_ */ 30 | -------------------------------------------------------------------------------- /app/include/web_websocket.h: -------------------------------------------------------------------------------- 1 | #ifndef _WEB_WEBSOCKET_H_ 2 | /****************************************************************************** 3 | * FileName: web_websocket.h 4 | * Description: websocket for web ESP8266 5 | * Author: PV` 6 | * (c) PV` 2016 7 | *******************************************************************************/ 8 | #define _WEB_WEBSOCKET_H_ 9 | #include "user_config.h" 10 | #ifdef WEBSOCKET_ENA 11 | #include "websock.h" 12 | 13 | err_t websock_tx_close_err(TCP_SERV_CONN *ts_conn, uint32 err); 14 | bool websock_rx_data(TCP_SERV_CONN *ts_conn); 15 | 16 | #endif // WEBSOCKET_ENA 17 | #endif /* _WEB_WEBSOCKET_H_ */ 18 | -------------------------------------------------------------------------------- /app/include/wifi_events.h: -------------------------------------------------------------------------------- 1 | /* 2 | * wifi_events.h 3 | * Author: pvvx 4 | */ 5 | 6 | #ifndef _INCLUDE_WIFI_EVENTS_H_ 7 | #define _INCLUDE_WIFI_EVENTS_H_ 8 | 9 | #include "user_config.h" 10 | #include "user_interface.h" 11 | 12 | struct s_probe_requests { 13 | uint8 mac[6]; 14 | sint8 rssi_min; 15 | sint8 rssi_max; 16 | } __attribute__((packed)); 17 | 18 | #define MAX_COUNT_BUF_PROBEREQS 64 19 | extern struct s_probe_requests buf_probe_requests[MAX_COUNT_BUF_PROBEREQS]; 20 | extern uint32 probe_requests_count; 21 | 22 | void wifi_handle_event_cb(System_Event_t *evt) ICACHE_FLASH_ATTR; 23 | 24 | extern int flg_open_all_service; // default = false 25 | 26 | extern int st_reconn_count; 27 | extern os_timer_t st_disconn_timer; 28 | void station_reconnect_off(void) ICACHE_FLASH_ATTR; 29 | 30 | void close_all_service(void) ICACHE_FLASH_ATTR; 31 | void open_all_service(int flg) ICACHE_FLASH_ATTR; 32 | 33 | #endif // _INCLUDE_WIFI_EVENTS_H_ 34 | -------------------------------------------------------------------------------- /app/mdbtcp/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmdbtcp.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | PDIR := ../$(PDIR) 40 | sinclude $(PDIR)Makefile 41 | 42 | -------------------------------------------------------------------------------- /app/sdklib/.gitignore: -------------------------------------------------------------------------------- 1 | *.output* 2 | -------------------------------------------------------------------------------- /app/sdklib/80211/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = lib80211add.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | PDIR := ../$(PDIR) 40 | sinclude $(PDIR)Makefile 41 | 42 | -------------------------------------------------------------------------------- /app/sdklib/lwip/api/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | 16 | GEN_LIBS = liblwipapi.a 17 | 18 | endif 19 | 20 | 21 | ############################################################# 22 | # Configuration i.e. compile options etc. 23 | # Target specific stuff (defines etc.) goes in here! 24 | # Generally values applying to a tree are captured in the 25 | # makefile at its root level - these are then overridden 26 | # for a subtree within the makefile rooted therein 27 | # 28 | #DEFINES += 29 | 30 | ############################################################# 31 | # Recursion Magic - Don't touch this!! 32 | # 33 | # Each subtree potentially has an include directory 34 | # corresponding to the common APIs applicable to modules 35 | # rooted at that subtree. Accordingly, the INCLUDE PATH 36 | # of a module can only contain the include directories up 37 | # its parent path, and not its siblings 38 | # 39 | # Required for each makefile to inherit from the parent 40 | # 41 | 42 | INCLUDES := $(INCLUDES) -I $(PDIR)include 43 | INCLUDES += -I ./ 44 | PDIR := ../$(PDIR) 45 | sinclude $(PDIR)Makefile 46 | 47 | -------------------------------------------------------------------------------- /app/sdklib/lwip/api/netbuf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/app/sdklib/lwip/api/netbuf.c -------------------------------------------------------------------------------- /app/sdklib/lwip/api/tcpip.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/app/sdklib/lwip/api/tcpip.c -------------------------------------------------------------------------------- /app/sdklib/lwip/app/Espressif.License: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/app/sdklib/lwip/app/Espressif.License -------------------------------------------------------------------------------- /app/sdklib/lwip/app/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | 16 | GEN_LIBS = liblwipapp.a 17 | 18 | endif 19 | 20 | 21 | ############################################################# 22 | # Configuration i.e. compile options etc. 23 | # Target specific stuff (defines etc.) goes in here! 24 | # Generally values applying to a tree are captured in the 25 | # makefile at its root level - these are then overridden 26 | # for a subtree within the makefile rooted therein 27 | # 28 | #DEFINES += 29 | 30 | ############################################################# 31 | # Recursion Magic - Don't touch this!! 32 | # 33 | # Each subtree potentially has an include directory 34 | # corresponding to the common APIs applicable to modules 35 | # rooted at that subtree. Accordingly, the INCLUDE PATH 36 | # of a module can only contain the include directories up 37 | # its parent path, and not its siblings 38 | # 39 | # Required for each makefile to inherit from the parent 40 | # 41 | 42 | INCLUDES := $(INCLUDES) -I $(PDIR)include 43 | INCLUDES += -I ./ 44 | PDIR := ../$(PDIR) 45 | sinclude $(PDIR)Makefile 46 | 47 | -------------------------------------------------------------------------------- /app/sdklib/lwip/core/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | 16 | GEN_LIBS = liblwipcore.a 17 | 18 | endif 19 | 20 | 21 | ############################################################# 22 | # Configuration i.e. compile options etc. 23 | # Target specific stuff (defines etc.) goes in here! 24 | # Generally values applying to a tree are captured in the 25 | # makefile at its root level - these are then overridden 26 | # for a subtree within the makefile rooted therein 27 | # 28 | #DEFINES += 29 | 30 | ############################################################# 31 | # Recursion Magic - Don't touch this!! 32 | # 33 | # Each subtree potentially has an include directory 34 | # corresponding to the common APIs applicable to modules 35 | # rooted at that subtree. Accordingly, the INCLUDE PATH 36 | # of a module can only contain the include directories up 37 | # its parent path, and not its siblings 38 | # 39 | # Required for each makefile to inherit from the parent 40 | # 41 | 42 | INCLUDES := $(INCLUDES) -I $(PDIR)include 43 | INCLUDES += -I ./ 44 | PDIR := ../$(PDIR) 45 | sinclude $(PDIR)Makefile 46 | 47 | -------------------------------------------------------------------------------- /app/sdklib/lwip/core/ipv4/icmp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/app/sdklib/lwip/core/ipv4/icmp.c -------------------------------------------------------------------------------- /app/sdklib/lwip/netif/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | 16 | GEN_LIBS = liblwipnetif.a 17 | 18 | endif 19 | 20 | 21 | ############################################################# 22 | # Configuration i.e. compile options etc. 23 | # Target specific stuff (defines etc.) goes in here! 24 | # Generally values applying to a tree are captured in the 25 | # makefile at its root level - these are then overridden 26 | # for a subtree within the makefile rooted therein 27 | # 28 | #DEFINES += 29 | 30 | ############################################################# 31 | # Recursion Magic - Don't touch this!! 32 | # 33 | # Each subtree potentially has an include directory 34 | # corresponding to the common APIs applicable to modules 35 | # rooted at that subtree. Accordingly, the INCLUDE PATH 36 | # of a module can only contain the include directories up 37 | # its parent path, and not its siblings 38 | # 39 | # Required for each makefile to inherit from the parent 40 | # 41 | 42 | INCLUDES := $(INCLUDES) -I $(PDIR)include 43 | INCLUDES += -I ./ 44 | PDIR := ../$(PDIR) 45 | sinclude $(PDIR)Makefile 46 | 47 | -------------------------------------------------------------------------------- /app/sdklib/phy/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libaddmphy.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | PDIR := ../$(PDIR) 41 | sinclude $(PDIR)Makefile 42 | 43 | -------------------------------------------------------------------------------- /app/sdklib/pp/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libaddpp.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | PDIR := ../$(PDIR) 40 | sinclude $(PDIR)Makefile 41 | 42 | -------------------------------------------------------------------------------- /app/sdklib/pp/pplibadd.c: -------------------------------------------------------------------------------- 1 | /* 2 | * FileName: pplibadd.c 3 | * Description: Alternate SDK (libpp.a) 4 | * (c) PV` 2015 5 | */ 6 | #include "c_types.h" 7 | #include "user_config.h" 8 | 9 | #if DEF_SDK_VERSION >= 1300 10 | /* bit_popcount() используется из SDK libpp.a: if_hwctrl.o и trc.o */ 11 | uint32 ICACHE_FLASH_ATTR bit_popcount(uint32 x) 12 | { 13 | uint32 ret = 0; 14 | while(x) { 15 | ret += x & 1; 16 | x >>= 1; 17 | } 18 | return ret; 19 | } 20 | #endif 21 | -------------------------------------------------------------------------------- /app/sdklib/system/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libaddmmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | #INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /app/sdklib/wpa/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libaddwpa.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | PDIR := ../$(PDIR) 40 | sinclude $(PDIR)Makefile 41 | 42 | -------------------------------------------------------------------------------- /app/sdklib/wpa/wpa_debug.c: -------------------------------------------------------------------------------- 1 | /* 2 | * FileName: wpa_debug.c 3 | * Description: Alternate SDK (libwpa.a) 4 | * (c) PV` 2015 5 | */ 6 | #include "user_config.h" 7 | #include "bios.h" 8 | 9 | unsigned int ICACHE_FLASH_ATTR eloop_cancel_timeout(void) 10 | { 11 | return 0; 12 | } 13 | 14 | unsigned int ICACHE_FLASH_ATTR eloop_register_timeout(void) 15 | { 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /app/user/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libuser.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /app/web/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libweb.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /asm_damp.bat: -------------------------------------------------------------------------------- 1 | @if exist .\app\.output\eagle\image\eagle.app.v6.out C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-objdump -S .\app\.output\eagle\image\eagle.app.v6.out > eagle.app.v6.asm 2 | @if exist .\AutoMake\esp8266web.elf C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-objdump -S .\AutoMake\esp8266web.elf > esp8266web.asm 3 | 4 | 5 | -------------------------------------------------------------------------------- /bin/0x00000.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/bin/0x00000.bin -------------------------------------------------------------------------------- /bin/0x07000.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/bin/0x07000.bin -------------------------------------------------------------------------------- /bin/blank.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/bin/blank.bin -------------------------------------------------------------------------------- /bin/clear_eep.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/bin/clear_eep.bin -------------------------------------------------------------------------------- /bin/esp_init_data_default.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/bin/esp_init_data_default.bin -------------------------------------------------------------------------------- /bin/rapid_loader.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/bin/rapid_loader.bin -------------------------------------------------------------------------------- /bin/rapid_loader_40m.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/bin/rapid_loader_40m.bin -------------------------------------------------------------------------------- /bin/readme.txt: -------------------------------------------------------------------------------- 1 | Addr - file name - Info 2 | -------------------------------------------------------- 3 | 0x00000 - bin/0x00000.bin - Program codes IRAM/RAM 4 | 0x07000 - bin/0x07000.bin - Program codes Cache Flash 5 | 0x79000 - bin/clear_eep.bin - Clear settings EEP area 6 | 0x7C000 - bin/esp_init_data_default.bin - RF SDK options 7 | 0x7E000 - bin/blank.bin - Default SDK WiFi config 8 | 9 | bin/rapid_loader.bin - loader FlashSPI CLK x2 (80MHz) 10 | bin/rapid_loader_m40.bin - loader FlashSPI CLK x1 (40MHz) 11 | 12 | If Flash > 512 kbytes: 13 | 0x80000 - webbin/WEBFiles.bin 14 | Use PVFS2.exe or http://192.168.4.1/fsupload. 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /include/arch/sys_arch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/include/arch/sys_arch.h -------------------------------------------------------------------------------- /include/bios.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: bios.h 3 | * Description: funcs in ROM-BIOS 4 | * Alternate SDK 5 | * Author: PV` 6 | * (c) PV` 2015 7 | *******************************************************************************/ 8 | #ifndef _INCLUDE_BIOS_H_ 9 | #define _INCLUDE_BIOS_H_ 10 | #include "bios/spiflash.h" 11 | #include "bios/cha1.h" 12 | #include "bios/ets.h" 13 | #include "bios/gpio.h" 14 | #include "bios/uart.h" 15 | #include "bios/vectors.h" 16 | #include "bios/xthal.h" 17 | #include "bios/xtos.h" 18 | #include "bios/rtc_dtm.h" 19 | #include "bios/add_funcs.h" 20 | 21 | #endif // _INCLUDE_BIOS_H_ 22 | -------------------------------------------------------------------------------- /include/bios/add_funcs.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: add_funcs.h 3 | * Description: Do not sorted functions ROM-BIOS 4 | * Alternate SDK 5 | * Author: PV` 6 | * (c) PV` 2015 7 | *******************************************************************************/ 8 | #ifndef _INCLUDE_BIOS_ADD_FUNCS_H_ 9 | #define _INCLUDE_BIOS_ADD_FUNCS_H_ 10 | 11 | int rom_get_power_db(void); 12 | void rom_en_pwdet(int); 13 | void rom_i2c_writeReg(uint32 block, uint32 host_id, uint32 reg_add, uint32 data); 14 | void rom_i2c_writeReg_Mask(uint32 block, uint32 host_id, uint32 reg_add, uint32 Msb, uint32 Lsb, uint32 indata); 15 | uint8 rom_i2c_readReg_Mask(uint32 block, uint32 host_id, uint32 reg_add, uint32 Msb, uint32 Lsb); 16 | uint8 rom_i2c_readReg(uint32 block, uint32 host_id, uint32 reg_add); 17 | 18 | 19 | #endif /* _INCLUDE_BIOS_ADD_FUNCS_H_ */ 20 | -------------------------------------------------------------------------------- /include/bios/mem.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: mem.h 3 | * Description: mem funcs in ROM-BIOS 4 | * Alternate SDK 5 | * Author: PV` 6 | * (c) PV` 2015 7 | *******************************************************************************/ 8 | #ifndef _BIOS_MEM_H_ 9 | #define _BIOS_MEM_H_ 10 | 11 | #include "c_types.h" 12 | /* WARNING !!! mem_xxx use size < 4096 !!! */ 13 | extern void mem_init(void * start_addr); // uint8 * 14 | extern void * mem_malloc(uint16 size); // size < 4096 15 | extern void * mem_calloc(uint16 n, uint16 count); // n*count < 4096 16 | extern void * mem_zalloc(uint16 size); // size < 4096, = mem_calloc(1, size); 17 | extern void * mem_realloc(void * p, uint16 size); 18 | extern void * mem_trim(void * p, uint16 size); 19 | extern void mem_free(uint8 * x); 20 | 21 | /* 22 | PROVIDE ( mem_calloc = 0x40001c2c ); 23 | PROVIDE ( mem_free = 0x400019e0 ); 24 | PROVIDE ( mem_init = 0x40001998 ); 25 | PROVIDE ( mem_malloc = 0x40001b40 ); 26 | PROVIDE ( mem_realloc = 0x40001c6c ); 27 | PROVIDE ( mem_trim = 0x40001a14 ); 28 | PROVIDE ( mem_zalloc = 0x40001c58 ); 29 | */ 30 | #endif /* _BIOS_MEM_H_ */ 31 | -------------------------------------------------------------------------------- /include/bios/vectors.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: Vectors.h 3 | * Description: Vectors funcs in ROM-BIOS 4 | * Alternate SDK 5 | * Author: PV` 6 | * (c) PV` 2015 7 | *******************************************************************************/ 8 | 9 | #ifndef _INCLUDE_BIOS_VECTORS_H_ 10 | #define _INCLUDE_BIOS_VECTORS_H_ 11 | 12 | /* 13 | PROVIDE ( _DebugExceptionVector = 0x40000010 ); 14 | PROVIDE ( _NMIExceptionVector = 0x40000020 ); 15 | PROVIDE ( _KernelExceptionVector = 0x40000030 ); 16 | PROVIDE ( _UserExceptionVector = 0x40000050 ); 17 | PROVIDE ( _DoubleExceptionVector = 0x40000070 ); 18 | #PROVIDE ( _ResetVector = 0x40000080 ); 19 | PROVIDE ( _ResetHandler = 0x400000a4 ); 20 | */ 21 | 22 | void _ResetVector(void); 23 | 24 | #endif /* _INCLUDE_BIOS_VECTORS_H_ */ 25 | -------------------------------------------------------------------------------- /include/hw/sdio_slv.h: -------------------------------------------------------------------------------- 1 | #ifndef SDIO_SLAVE_H 2 | #define SDIO_SLAVE_H 3 | #include "hw/slc_register.h" 4 | #include "c_types.h" 5 | #include "user_interface.h" 6 | struct sdio_queue 7 | { 8 | uint32 blocksize:12; 9 | uint32 datalen:12; 10 | uint32 unused:5; 11 | uint32 sub_sof:1; 12 | uint32 eof:1; 13 | uint32 owner:1; 14 | 15 | uint32 buf_ptr; 16 | uint32 next_link_ptr; 17 | }; 18 | 19 | struct sdio_slave_status_element 20 | { 21 | uint32 wr_busy:1; 22 | uint32 rd_empty :1; 23 | uint32 comm_cnt :3; 24 | uint32 intr_no :3; 25 | uint32 rx_length:16; 26 | uint32 res:8; 27 | }; 28 | 29 | union sdio_slave_status 30 | { 31 | struct sdio_slave_status_element elm_value; 32 | uint32 word_value; 33 | }; 34 | 35 | #define RX_AVAILIBLE 2 36 | #define TX_AVAILIBLE 1 37 | #define INIT_STAGE 0 38 | 39 | #define SDIO_QUEUE_LEN 8 40 | #define MOSI 0 41 | #define MISO 1 42 | #define SDIO_DATA_ERROR 6 43 | 44 | #define SLC_INTEREST_EVENT (SLC_TX_EOF_INT_ENA | SLC_RX_EOF_INT_ENA | SLC_RX_UDF_INT_ENA | SLC_TX_DSCR_ERR_INT_ENA) 45 | #define TRIG_TOHOST_INT() SET_PERI_REG_MASK(SLC_INTVEC_TOHOST , BIT0);\ 46 | CLEAR_PERI_REG_MASK(SLC_INTVEC_TOHOST , BIT0) 47 | 48 | /* 49 | void sdio_slave_init(void); 50 | void sdio_slave_isr(void *para); 51 | void sdio_task_init(void); 52 | void sdio_err_task(os_event_t *e); 53 | void rx_buff_load_done(uint16 rx_len); 54 | void tx_buff_handle_done(void); 55 | void rx_buff_read_done(void); 56 | void tx_buff_write_done(void); 57 | */ 58 | #endif 59 | -------------------------------------------------------------------------------- /include/lwip/icmp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/include/lwip/icmp.h -------------------------------------------------------------------------------- /include/lwip/puck_def.h: -------------------------------------------------------------------------------- 1 | /* 2 | * puck_def.h 3 | * 4 | * Created on: Jul 22, 2010 5 | * Author: dtoma 6 | */ 7 | 8 | #ifndef PUCK_DEF_H_ 9 | #define PUCK_DEF_H_ 10 | 11 | 12 | 13 | #define INSTRUMENT_PORT 8760 14 | 15 | #define INSTRUMENT_LENGTH 80 16 | 17 | #define MDNS_NAME_LENGTH 68 //68 18 | 19 | char* PUCK_SERVICE = NULL; 20 | //#define PUCK_SERVICE "_Escpressif._tcp.local" 21 | #define DNS_SD_SERVICE "_services._dns-sd._udp.local" 22 | #define SERVICE_DESCRIPTION "PUCK PROTOCOL" 23 | #define PUCK_SERVICE_LENGTH 30 24 | 25 | #define UUID_LEN 16 26 | #define DS_VERS_LEN 2 27 | #define DS_SIZE_LEN 2 28 | #define MAN_ID_LEN 4 29 | #define MAN_MODEL_LEN 2 30 | #define MAN_VERS_LEN 2 31 | #define SER_NUM_LEN 4 32 | #define NAME_LEN 64 33 | #define PUCK_DATASHEET_SIZE 96 34 | 35 | #define UUID_OFFSET 0 36 | #define DS_VERS_OFFSET UUID_LEN + UUID_OFFSET 37 | #define DS_SIZE_OFFSET DS_VERS_LEN + DS_VERS_OFFSET 38 | #define MAN_ID_OFFSET DS_SIZE_LEN + DS_SIZE_OFFSET 39 | #define MAN_MODEL_OFFSET MAN_ID_LEN + MAN_ID_OFFSET 40 | #define MAN_VERS_OFFSET MAN_MODEL_LEN + MAN_MODEL_OFFSET 41 | #define SER_NUM_OFFSET MAN_VERS_LEN + MAN_VERS_OFFSET 42 | #define NAME_OFFSET SER_NUM_LEN + SER_NUM_OFFSET 43 | 44 | #endif /* __PUCK_DEF_H__ */ 45 | -------------------------------------------------------------------------------- /include/lwip/sntp.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_SNTP_H 2 | #define LWIP_SNTP_H 3 | 4 | #include "lwip/opt.h" 5 | #include "lwip/ip_addr.h" 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | /** The maximum number of SNTP servers that can be set */ 12 | #ifndef SNTP_MAX_SERVERS 13 | #define SNTP_MAX_SERVERS 3 14 | #endif 15 | 16 | /** Set this to 1 to implement the callback function called by dhcp when 17 | * NTP servers are received. */ 18 | #ifndef SNTP_GET_SERVERS_FROM_DHCP 19 | #define SNTP_GET_SERVERS_FROM_DHCP 0//LWIP_DHCP_GET_NTP_SRV 20 | #endif 21 | 22 | /* Set this to 1 to support DNS names (or IP address strings) to set sntp servers */ 23 | #ifndef SNTP_SERVER_DNS 24 | #define SNTP_SERVER_DNS 1 25 | #endif 26 | 27 | /** One server address/name can be defined as default if SNTP_SERVER_DNS == 1: 28 | * #define SNTP_SERVER_ADDRESS "pool.ntp.org" 29 | */ 30 | uint32 sntp_get_current_timestamp(); 31 | char* sntp_get_real_time(long t); 32 | 33 | void sntp_init(void); 34 | void sntp_stop(void); 35 | 36 | sint8 sntp_get_timezone(void); 37 | bool sntp_set_timezone(sint8 timezone); 38 | void sntp_setserver(u8_t idx, ip_addr_t *addr); 39 | ip_addr_t sntp_getserver(u8_t idx); 40 | 41 | #if SNTP_SERVER_DNS 42 | void sntp_setservername(u8_t idx, char *server); 43 | char *sntp_getservername(u8_t idx); 44 | #endif /* SNTP_SERVER_DNS */ 45 | 46 | #if SNTP_GET_SERVERS_FROM_DHCP 47 | void sntp_servermode_dhcp(int set_servers_from_dhcp); 48 | #else /* SNTP_GET_SERVERS_FROM_DHCP */ 49 | #define sntp_servermode_dhcp(x) 50 | #endif /* SNTP_GET_SERVERS_FROM_DHCP */ 51 | 52 | #ifdef __cplusplus 53 | } 54 | #endif 55 | 56 | #endif /* LWIP_SNTP_H */ 57 | -------------------------------------------------------------------------------- /include/netif/wlan_lwip_if.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010-2011 Espressif System 3 | * Add pvv 4 | */ 5 | 6 | #ifndef _WLAN_LWIP_IF_H_ 7 | #define _WLAN_LWIP_IF_H_ 8 | 9 | #define LWIP_IF0_PRIO 28 10 | #define LWIP_IF1_PRIO 29 11 | 12 | #ifdef USE_OPEN_LWIP 13 | 14 | struct ieee80211_conn { 15 | struct netif *myif; //+0 16 | #if DEF_SDK_VERSION >= 1400 // (SDK 1.4.0) 17 | uint32_t padding[(200-4)>>2]; //+4 (SDK 1.4.0) 18 | #else 19 | uint32_t padding[(176-4)>>2]; //+4 20 | #endif 21 | uint32_t dhcps_if; //+176 // + 0xB0 // +200 SDK 1.4.0 22 | }; 23 | #endif 24 | 25 | enum { 26 | SIG_LWIP_RX = 0, 27 | }; 28 | 29 | struct netif * eagle_lwip_if_alloc(struct ieee80211_conn *conn, uint8 *macaddr, struct ip_info *info) ICACHE_FLASH_ATTR; 30 | struct netif * eagle_lwip_getif(int index); 31 | 32 | #ifndef IOT_SIP_MODE 33 | err_t ieee80211_output_pbuf(struct netif *ifp, struct pbuf* pb); 34 | #else 35 | err_t ieee80211_output_pbuf(struct ieee80211_conn *conn, esf_buf *eb); 36 | #endif 37 | 38 | extern uint8 * hostname; 39 | extern bool default_hostname; // = true; 40 | 41 | #endif /* _WLAN_LWIP_IF_H_ */ 42 | -------------------------------------------------------------------------------- /include/os_type.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * mapping to ETS structures 4 | * 5 | */ 6 | #ifndef _OS_TYPES_H_ 7 | #define _OS_TYPES_H_ 8 | 9 | #include "ets_sys.h" 10 | 11 | #define os_signal_t ETSSignal 12 | #define os_param_t ETSParam 13 | #define os_event_t ETSEvent 14 | #define os_task_t ETSTask 15 | #define os_timer_t ETSTimer 16 | #define os_timer_func_t ETSTimerFunc 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /include/pp/esf_buf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * esf buffer data structure 4 | */ 5 | 6 | #ifndef _ESF_BUF_H_ 7 | #define _ESF_BUF_H_ 8 | 9 | #define EP_OFFSET 36 /* see comments in pbuf.h */ 10 | 11 | #endif /* _ESF_BUF_H_ */ 12 | -------------------------------------------------------------------------------- /include/sdk/app_main.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: aap_main.h 3 | * Description: Alternate SDK (libmain.a) 4 | * Author: PV` 5 | * (c) PV` 2015 6 | ******************************************************************************/ 7 | 8 | #ifndef _INCLUDE_APP_MAIN_H_ 9 | #define _INCLUDE_APP_MAIN_H_ 10 | 11 | #include "sdk/libmain.h" 12 | 13 | extern struct s_info info; // ip,mask,gw,mac AP, ST 14 | extern init_done_cb_t done_cb; 15 | extern ETSTimer check_timeouts_timer; // timer_lwip 16 | extern uint8 user_init_flag; 17 | //============================================================================= 18 | // funcs libmain.a: app_main.o 19 | //----------------------------------------------------------------------------- 20 | void sflash_something(uint32 flash_speed); 21 | void read_macaddr_from_otp(uint8 *mac); 22 | void user_uart_wait_tx_fifo_empty(uint32 n, uint32 x); 23 | void startup(void) ICACHE_FLASH_ATTR; 24 | void read_wifi_config(void) ICACHE_FLASH_ATTR; 25 | void init_wifi(uint8 * init_data, uint8 * mac) ICACHE_FLASH_ATTR; 26 | void uart_wait_tx_fifo_empty(void) ICACHE_FLASH_ATTR; 27 | void user_uart_wait_tx_fifo_empty(uint32 uart_num, uint32 x); 28 | //----------------------------------------------------------------------------- 29 | void uart1_write_char(char c); 30 | void uart0_write_char(char c); 31 | extern void jump_boot(void); // в sdklib\system\main-vectors.c 32 | void call_jump_boot(void); 33 | 34 | #endif /* _INCLUDE_APP_MAIN_H_ */ 35 | -------------------------------------------------------------------------------- /include/sdk/ets_run_new.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ets_run_new.h 3 | * 4 | * Created on: 22 авг. 2015 г. 5 | * Author: PVV 6 | */ 7 | 8 | #ifndef _SDK_ETS_RUN_NEW_H_ 9 | #define _SDK_ETS_RUN_NEW_H_ 10 | 11 | #include "sdk/sdk_config.h" 12 | #ifdef USE_ETS_RUN_NEW 13 | 14 | void ets_run_new(void); 15 | void task_delay_us(uint32 us); 16 | void run_sdk_tasks(void); 17 | 18 | #endif 19 | 20 | #endif /* _SDK_ETS_RUN_NEW_H_ */ 21 | -------------------------------------------------------------------------------- /include/sdk/fatal_errs.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: libmain.h 3 | * Description: Alternate SDK (libmain.a) 4 | * Author: PV` 5 | * (c) PV` 2015 6 | *******************************************************************************/ 7 | 8 | #ifndef _INCLUDE_FATAL_ERRS_H_ 9 | #define _INCLUDE_FATAL_ERRS_H_ 10 | 11 | enum rst_events { 12 | RST_EVENT_DEFAULT = 0, 13 | RST_EVENT_WDT, //1 14 | RST_EVENT_EXP, //2 15 | RST_EVENT_SOFT_WDT, //3 16 | RST_EVENT_SOFT_RESET, //4 17 | RST_EVENT_DEEP_SLEEP, //5 18 | RST_EXT_SYS, //6 19 | RST_EVENT_RES, //8 20 | FATAL_ERR_R6PHY, //9 // "register_chipv6_phy" 21 | FATAL_ERR_ALIGN, //10 // "Read align4" 22 | RST_EVENT_MAX = 32 23 | }; 24 | 25 | void fatal_error(uint32 errn, void *addr, void *txt); 26 | 27 | #endif // _INCLUDE_FATAL_ERRS_H_ 28 | -------------------------------------------------------------------------------- /include/sdk/mem_manager.h: -------------------------------------------------------------------------------- 1 | #ifndef __MEM_H__ 2 | #define __MEM_H__ 3 | 4 | // в модуле mem_manager.o 5 | 6 | void *pvPortMalloc( size_t xWantedSize ); 7 | void vPortFree( void *pv ); 8 | void *pvPortZalloc(size_t size); 9 | void *pvPortCalloc(unsigned int n, unsigned int count); 10 | void *pvPortRealloc(void * p, size_t size); 11 | size_t xPortGetFreeHeapSize(void); 12 | void prvHeapInit(void) ICACHE_FLASH_ATTR ; 13 | 14 | #define os_malloc pvPortMalloc 15 | #define os_free vPortFree 16 | #define os_zalloc pvPortZalloc 17 | #define os_calloc pvPortCalloc 18 | #define os_realloc pvPortRealloc 19 | #define system_get_free_heap_size xPortGetFreeHeapSize 20 | 21 | #endif // __MEM_H__ 22 | 23 | -------------------------------------------------------------------------------- /include/sdk/os_printf.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: os_printf.h 3 | * Description: Alternate SDK (libmain.a) 4 | * Author: PV` 5 | * (c) PV` 2015 6 | *******************************************************************************/ 7 | 8 | #ifndef _INCLUDE_OS_PRINTF_H_ 9 | #define _INCLUDE_OS_PRINTF_H_ 10 | 11 | 12 | int __wrap_os_printf_plus(const char *format, ...) ICACHE_FLASH_ATTR; 13 | //#define rom_printf __wrap_os_printf_plus 14 | //int rom_printf(const char *format, ...) ICACHE_FLASH_ATTR; 15 | void _sprintf_out(char c) ICACHE_FLASH_ATTR; 16 | int ets_sprintf(char *str, const char *format, ...) ICACHE_FLASH_ATTR; 17 | 18 | #endif /* _INCLUDE_OS_PRINTF_H_ */ 19 | -------------------------------------------------------------------------------- /include/sdk/wdt.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: wdt.h 3 | * Description: Alternate SDK (libmain.a) 4 | * Author: PV` 5 | * (c) PV` 2015 6 | * ver 0.0.0 (b0) 7 | *******************************************************************************/ 8 | 9 | #ifndef _INCLUDE_WDT_H_ 10 | #define _INCLUDE_WDT_H_ 11 | 12 | #include "ets_sys.h" 13 | #include "sdk/fatal_errs.h" 14 | 15 | #if DEF_SDK_VERSION >= 1119 // (SDK 1.1.1..1.1.2) 16 | void wdt_init(int flg) ICACHE_FLASH_ATTR; 17 | #else 18 | void wdt_init(void) ICACHE_FLASH_ATTR; 19 | void wdt_feed(void); 20 | void wdt_task(ETSEvent *e); 21 | #endif 22 | 23 | // #define DEBUG_EXCEPTION // для отладки 24 | 25 | #ifdef DEBUG_EXCEPTION 26 | struct exception_frame 27 | { 28 | uint32 epc; 29 | uint32 ps; 30 | uint32 sar; 31 | uint32 unused; 32 | union { 33 | struct { 34 | uint32 a0; 35 | // note: no a1 here! 36 | uint32 a2; 37 | uint32 a3; 38 | uint32 a4; 39 | uint32 a5; 40 | uint32 a6; 41 | uint32 a7; 42 | uint32 a8; 43 | uint32 a9; 44 | uint32 a10; 45 | uint32 a11; 46 | uint32 a12; 47 | uint32 a13; 48 | uint32 a14; 49 | uint32 a15; 50 | }; 51 | uint32 a_reg[15]; 52 | }; 53 | uint32 cause; 54 | }; 55 | void default_exception_handler(struct exception_frame *ef, uint32 cause); 56 | #else 57 | void default_exception_handler(void); 58 | #endif 59 | 60 | void store_exception_error(uint32 errn); 61 | 62 | void os_print_reset_error(void) ICACHE_FLASH_ATTR; 63 | 64 | 65 | #endif /* _INCLUDE_WDT_H_ */ 66 | -------------------------------------------------------------------------------- /info/ESP8266_reg/ESP8266_Pin_List_141105.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/info/ESP8266_reg/ESP8266_Pin_List_141105.xlsx -------------------------------------------------------------------------------- /info/ESP8266_reg/ESP8266_RF_init_esp_init_data_default_bin.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/info/ESP8266_reg/ESP8266_RF_init_esp_init_data_default_bin.xlsx -------------------------------------------------------------------------------- /info/ESP8266_reg/gpio_reg.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/info/ESP8266_reg/gpio_reg.xlsx -------------------------------------------------------------------------------- /info/ESP8266_reg/pin_reg.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/info/ESP8266_reg/pin_reg.xlsx -------------------------------------------------------------------------------- /info/ESP8266_reg/spi_reg.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/info/ESP8266_reg/spi_reg.xlsx -------------------------------------------------------------------------------- /info/ESP8266_reg/timers_reg.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/info/ESP8266_reg/timers_reg.xlsx -------------------------------------------------------------------------------- /info/ESP8266_reg/uart_reg.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/info/ESP8266_reg/uart_reg.xlsx -------------------------------------------------------------------------------- /info/WebHTML/default.htm: -------------------------------------------------------------------------------- 1 |

ESP8266 Built-in Web server ©

-------------------------------------------------------------------------------- /info/WebHTML/fsupload.htm: -------------------------------------------------------------------------------- 1 |
File Upload

-------------------------------------------------------------------------------- /info/libs/bios/gpio.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: gpio.c 3 | * Description: gpio funcs in ROM-BIOS 4 | * Alternate SDK ver 0.0.0 (b1) 5 | * Author: PV` 6 | * (c) PV` 2015 7 | *******************************************************************************/ 8 | #include "c_types.h" 9 | #include "bios.h" 10 | #include "hw/esp8266.h" 11 | 12 | // ROM:40004D90 13 | void gpio_pin_intr_state_set(uint32 i, GPIO_INT_TYPE intr_state) 14 | { 15 | ets_intr_lock(); 16 | volatile uint32 * gpio_pinx = &GPIO_PIN0; 17 | uint32 x = gpio_pinx[i] & 0xC7F; 18 | gpio_pinx[i] = x | intr_state << 7; 19 | ets_intr_unlock(); 20 | } 21 | -------------------------------------------------------------------------------- /info/libs/bios/mem.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * FileName: mem.c 3 | * Description: mem funcs in ROM-BIOS 4 | * Alternate SDK ver 0.0.0 (b0) 5 | * Author: PV` 6 | * (c) PV` 2015 7 | *******************************************************************************/ 8 | #include "c_types.h" 9 | #include "esp8266.h" 10 | 11 | struct _smem_ { // RAM_BIOS:3FFFDD30 12 | uint8 * x0; 13 | uint8 * x1; 14 | uint8 * x2; 15 | }_mem_; 16 | 17 | void mem_init(uint8 *a2) 18 | { 19 | uint8 * a4 = (a2 + 3) & 0xFFFFFFFC; 20 | a4[1] = 16; 21 | a4[2] = 0; 22 | a4[3] = 0; 23 | a4[4] = 0; 24 | uint8 * a7 = a4 + 0x1000; 25 | _mem_.x0 = a4; 26 | _mem_.x1 = a7; 27 | _mem_.x2 = a4; 28 | a4 += 0xf84; 29 | a4[124] = (uint8)a7; 30 | a4[125] = 16; 31 | a4[126] = (uint8)a7; 32 | a4[127] = 16; 33 | a4[128] = 1; 34 | } 35 | -------------------------------------------------------------------------------- /info/libs/main/UserEnter.s: -------------------------------------------------------------------------------- 1 | 2 | .begin literal_prefix .UserEnter 3 | .section .UserEnter.text, "ax" 4 | 5 | .align 4 6 | .global call_user_start 7 | 8 | call_user_start: 9 | movi a2, 0x401 10 | slli a2, a2, 20 11 | wsr.vecbase a2 12 | j call_user_start1 13 | 14 | // .size call_user_start, . - call_user_start 15 | 16 | .end literal_prefix 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /info/libs/main/debug-vector.s: -------------------------------------------------------------------------------- 1 | // This code goes at the debug exception vector 2 | 3 | .begin literal_prefix .DebugExceptionVector 4 | .section .DebugExceptionVector.text, "ax" 5 | 6 | .align 4 7 | .global _DebugExceptionVector 8 | 9 | _DebugExceptionVector: 10 | 11 | 1: waiti 2 // XCHAL_DEBUGLEVEL // unexpected debug exception, loop in low-power mode 12 | j 1b // infinite loop - unexpected debug exception 13 | 14 | .global pNmiFunc 15 | .align 4 16 | 17 | pNmiFunc: .word 0 18 | 19 | .size _DebugExceptionVector, . - _DebugExceptionVector 20 | 21 | .end literal_prefix 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /info/libs/main/double-vector.s: -------------------------------------------------------------------------------- 1 | 2 | .begin literal_prefix .DoubleExceptionVector 3 | .section .DoubleExceptionVector.text, "ax" 4 | 5 | .align 4 6 | .global _DoubleExceptionVector 7 | 8 | _DoubleExceptionVector: 9 | 10 | 1: break 1,4 11 | j 1b 12 | 13 | .size _DoubleExceptionVector, . - _DoubleExceptionVector 14 | 15 | .end literal_prefix 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /info/libs/main/kernel-vector.s: -------------------------------------------------------------------------------- 1 | 2 | .begin literal_prefix .KernelExceptionVector 3 | .section .KernelExceptionVector.text, "ax" 4 | 5 | .align 4 6 | .global _KernelExceptionVector 7 | 8 | _KernelExceptionVector: 9 | 10 | 1: break 1,0 // unexpected kernel exception 11 | j 1b // infinite loop - unexpected kernel exception 12 | 13 | .align 4 14 | .global puev_store_regs 15 | 16 | puev_store_regs: .word 0x3FFFC000 17 | 18 | .size _KernelExceptionVector, . - _KernelExceptionVector 19 | 20 | .end literal_prefix 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /info/libs/main/user-vector.s: -------------------------------------------------------------------------------- 1 | // Vector code 2 | .begin literal_prefix .UserExceptionVector 3 | .section .UserExceptionVector.text, "ax" 4 | 5 | .align 4 6 | .global _UserExceptionVector 7 | 8 | _UserExceptionVector: 9 | 10 | // wsr.excsave1 a0 11 | addmi a1, a1, -0x100 12 | s32i.n a2, a1, 0x14 13 | s32i.n a3, a1, 0x18 14 | l32r a3, puev_store_regs 15 | rsr.exccause a2 16 | addx4 a3, a2, a3 17 | l32i.n a3, a3, 0 18 | s32i.n a4, a1, 0x1C 19 | jx a3 20 | 21 | .end literal_prefix 22 | 23 | -------------------------------------------------------------------------------- /info/libs/net80211/Descript.ion: -------------------------------------------------------------------------------- 1 | net80211 https://github.com/freebsd/freebsd/tree/master/sys/net80211 2 | -------------------------------------------------------------------------------- /lib/clibsdk.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | @if not %1x==x goto aaa 3 | if exist ..\CreateLib\MinEspSDKLib.lib cd ..\CreateLib 4 | if exist ..\AutoMake\MinEspSDKLib.lib cd ..\AutoMake 5 | call ..\lib\clibsdk.bat MinEspSDKLib.lib 6 | cd ..\lib 7 | goto end 8 | :aaa 9 | if not exist %1 goto err_end 10 | if not exist ..\lib\libmmain.a goto err_end 11 | if not exist ..\lib\libmphy.a goto err_end 12 | if not exist ..\lib\libmwpa.a goto err_end 13 | if not exist ..\lib\libnet80211.a goto err_end 14 | if not exist ..\lib\libpp.a goto err_end 15 | if not exist ..\lib\libmgcc.a goto err_end 16 | if not exist ..\lib\libcrypto.a goto err_end 17 | if not exist _temp md _temp 18 | cd _temp 19 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\%1 20 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libmmain.a 21 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libmphy.a 22 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libmwpa.a 23 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libnet80211.a 24 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libpp.a 25 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libmgcc.a 26 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libcrypto.a 27 | if exist ..\..\lib\libsdk.a del ..\..\lib\libsdk.a 28 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\..\lib\libsdk.a *.o 29 | cd .. 30 | rd /q /s _temp 31 | if exist ..\lib\libsdk.a goto end 32 | :err_end 33 | echo "Error!" 34 | :end -------------------------------------------------------------------------------- /lib/libcrypto.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libcrypto.a -------------------------------------------------------------------------------- /lib/libdhcps.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libdhcps.a -------------------------------------------------------------------------------- /lib/liblwipif.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/liblwipif.a -------------------------------------------------------------------------------- /lib/libmcrypto.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libmcrypto.a -------------------------------------------------------------------------------- /lib/libmgcc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libmgcc.a -------------------------------------------------------------------------------- /lib/libmlwip.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libmlwip.a -------------------------------------------------------------------------------- /lib/libmmain.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libmmain.a -------------------------------------------------------------------------------- /lib/libmmain.a.patch.txt: -------------------------------------------------------------------------------- 1 | Path libmmain.a - error deep_sleep 2 | 00001483: 08 82 3 | 00001484: 71 69 4 | 00001485: 12 42 5 | 00001486: C1 06 6 | 00001487: 20 FF 7 | 00001488: 82 FF 8 | 00001489: 69 0D 9 | 0000148A: 42 F0 10 | -------------------------------------------------------------------------------- /lib/libmphy.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libmphy.a -------------------------------------------------------------------------------- /lib/libmpp.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libmpp.a -------------------------------------------------------------------------------- /lib/libmwpa.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libmwpa.a -------------------------------------------------------------------------------- /lib/libnet80211.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libnet80211.a -------------------------------------------------------------------------------- /lib/libnet80211_new.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libnet80211_new.a -------------------------------------------------------------------------------- /lib/libnet80211_new/wl_cnx_patch.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libnet80211_new/wl_cnx_patch.o -------------------------------------------------------------------------------- /lib/libnet80211_new/wl_cnx_patch.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libnet80211_new/wl_cnx_patch.txt -------------------------------------------------------------------------------- /lib/libpp.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib/libpp.a -------------------------------------------------------------------------------- /lib/mlibsdk.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | if not exist ..\app\sdklib\.output\eagle\lib\libsdk.a goto err_end 3 | del libsdk.a 4 | md sdklib 5 | cd sdklib 6 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\app\sdklib\.output\eagle\lib\libsdk.a 7 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libmmain.a 8 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libmphy.a 9 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libmwpa.a 10 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libcrypto.a 11 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libnet80211.a 12 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libpp.a 13 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libmgcc.a 14 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libsdk.a *.o 15 | cd .. 16 | rd /q /s sdklib 17 | goto end 18 | :err_end 19 | echo Error! 20 | :end -------------------------------------------------------------------------------- /lib/new_libdhcps.bat: -------------------------------------------------------------------------------- 1 | del libdhcps.a 2 | md main.lib 3 | cd main.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\liblwip.a 5 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libdhcps.a dhcpserver.o 6 | cd .. 7 | rd /q /s main.lib 8 | -------------------------------------------------------------------------------- /lib/new_liblwipif.bat: -------------------------------------------------------------------------------- 1 | del liblwipif.a 2 | md main.lib 3 | cd main.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\libmain.a 5 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\liblwipif.a eagle_lwip_if.o 6 | cd .. 7 | rd /q /s main.lib 8 | -------------------------------------------------------------------------------- /lib/new_libmcrypto.bat: -------------------------------------------------------------------------------- 1 | del libmcrypto.a 2 | md libcrypto.lib 3 | cd libcrypto.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK_154\lib\libcrypto.a 5 | @rem aes-cbc.o aes-internal.o aes-internal-dec.o aes-internal-enc.o aes-wrap.o bignum.o 6 | @rem crypto_internal.o crypto_internal-cipher.o crypto_internal-modexp.o crypto_internal-rsa.o 7 | @rem dh_group5.o dh_groups.o sha256.o sha256-internal.o 8 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmcrypto.a aes-wrap.o aes-internal-enc.o 9 | cd .. 10 | rd /q /s libcrypto.lib 11 | -------------------------------------------------------------------------------- /lib/new_libmgcc.bat: -------------------------------------------------------------------------------- 1 | del libmgcc.a 2 | md libgcc 3 | cd libgcc 4 | @rem C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\xtensa-lx106-elf\lib\gcc\xtensa-lx106-elf\4.8.2\libgcc.a 5 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\xtensa-lx106-elf\lib\gcc\xtensa-lx106-elf\5.1.0\libgcc.a 6 | @rem delete: 7 | @rem _fixunsdfsi.o _umoddi3.o _umodsi3.o _extendsfdf2.o _fixdfsi.o _divsi3.o _divdf3.o _divdi3.o _fixunssfsi.o 8 | @rem _floatsidf.o _floatsisf.o _floatunsidf.o _floatunsisf.o _muldf3.o _muldi3.o _mulsf3.o _truncdfsf2.o 9 | @rem _udivdi3.o _udivsi3.o _umulsidi3.o _addsubdf3.o _addsubsf3.o 10 | for /f "delims=" %%f in (../rom_files_list.txt) do del "%%f.o" 11 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmgcc.a *.o 12 | cd .. 13 | rd /q /s libgcc 14 | -------------------------------------------------------------------------------- /lib/new_libmlwip.bat: -------------------------------------------------------------------------------- 1 | del libmlwip.a 2 | md lwip.lib 3 | cd lwip.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\liblwip.a 5 | @rem sockets.o api_lib.o api_msg.o err.o netbuf.o netdb.o netifapi.o tcpip.o def.o mem.o stats.o sys.o sys_arch.o autoip.o inet.o ip_frag.o 6 | @rem del: mdns.o dhcpserver.o 7 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmlwip.a dhcp.o dns.o init.o memp.o netif.o pbuf.o tcp.o tcp_in.o tcp_out.o timers.o udp.o icmp.o igmp.o inet_chksum.o ip.o ip_addr.o etharp.o raw.o 8 | cd .. 9 | rd /q /s lwip.lib 10 | -------------------------------------------------------------------------------- /lib/new_libmmain.bat: -------------------------------------------------------------------------------- 1 | del libmmain.a 2 | md main.lib 3 | cd main.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\libmain.a 5 | @rem eagle_lib.o ets_timer.o mem_manager.o user_interface.o eagle_lwip_if.o 6 | @rem del: spi_flash.o app_main.o ets_timer.o eagle_lwip_if.o mem_manager.o eagle_lib.o 7 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmmain.a user_interface.o 8 | cd .. 9 | rd /q /s main.lib 10 | -------------------------------------------------------------------------------- /lib/new_libmphy.bat: -------------------------------------------------------------------------------- 1 | del libmphy.a 2 | md libphy.lib 3 | cd libphy.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\libphy.a 5 | @rem phy.o phy_chip_v6.o phy_chip_v6_ana.o phy_chip_v6_cal.o phy_sleep.o 6 | @rem delete: ate_test.o phy_chip_v6_unused.o 7 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmphy.a phy.o phy_chip_v6.o phy_chip_v6_ana.o phy_chip_v6_cal.o phy_sleep.o 8 | cd .. 9 | rd /q /s libphy.lib 10 | -------------------------------------------------------------------------------- /lib/new_libmpp.bat: -------------------------------------------------------------------------------- 1 | del libmpp.a 2 | md libpp.lib 3 | cd libpp.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\libpp.a 5 | @rem esf_buf.o if_hwctrl.o lmac.o mac_frame.o pm.o pm_for_bcn_only_mode.o pp.o rate_control.o trc.o wdev.o 6 | @rem delete: mac_frame.o 7 | @del mac_frame.o 8 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmpp.a *.o 9 | cd .. 10 | rd /q /s libpp.lib 11 | -------------------------------------------------------------------------------- /lib/new_libmwpa.bat: -------------------------------------------------------------------------------- 1 | del libmwpa.a 2 | md wpa.lib 3 | cd wpa.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x ..\00\libwpa.a 5 | @rem aes-internal-enc.o aes-wrap.o ap_config.o common.o ieee802_1x.o sta_info.o wpa.o wpa_auth.o wpa_auth_ie.o wpa_common.o wpa_ie.o wpa_main.o wpabuf.o wpas_glue.o 6 | @rem del: wpa_debug.o os_xtensa.o 7 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmwpa.a ap_config.o common.o ieee802_1x.o sta_info.o wpa.o wpa_auth.o wpa_auth_ie.o wpa_common.o wpa_ie.o wpa_main.o wpabuf.o wpas_glue.o 8 | @rem none: aes-internal-enc.o aes-wrap.o 9 | cd .. 10 | rd /q /s wpa.lib 11 | -------------------------------------------------------------------------------- /lib/new_libnet80211.bat: -------------------------------------------------------------------------------- 1 | del libnet80211_new.a 2 | rem md libnet80211.lib 3 | cd libnet80211_new 4 | @rem C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\libnet80211.a 5 | @rem phy.o phy_chip_v6.o phy_chip_v6_ana.o phy_chip_v6_cal.o phy_sleep.o 6 | @rem delete: ate_test.o phy_chip_v6_unused.o 7 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libnet80211_new.a *.o 8 | cd .. 9 | rem rd /q /s libnet80211.lib 10 | -------------------------------------------------------------------------------- /lib/o-asm.bat: -------------------------------------------------------------------------------- 1 | for %%a in (*.a) do ( 2 | md %%a.o 3 | cd %%a.o 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x ..\%%a 5 | for %%o in (*.o) do C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-objdump -S %%o > %%o.asm 6 | cd .. 7 | ) 8 | 9 | -------------------------------------------------------------------------------- /lib/rom_files_list.txt: -------------------------------------------------------------------------------- 1 | _addsubsf3 2 | _addsubdf3 3 | _divdf3 4 | _divdi3 5 | _divsi3 6 | _extendsfdf2 7 | _fixdfsi 8 | _fixunsdfsi 9 | _fixunssfsi 10 | _floatsidf 11 | _floatsisf 12 | _floatunsidf 13 | _floatunsisf 14 | _muldf3 15 | _muldi3 16 | _mulsf3 17 | _truncdfsf2 18 | _udivdi3 19 | _udivsi3 20 | _umoddi3 21 | _umodsi3 22 | _umulsidi3 -------------------------------------------------------------------------------- /lib/version.txt: -------------------------------------------------------------------------------- 1 | SDK 1.5.4 + patch -------------------------------------------------------------------------------- /lib200/clibsdk.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | @if not %1x==x goto aaa 3 | if exist ..\CreateLib\MinEspSDKLib.lib cd ..\CreateLib 4 | if exist ..\AutoMake\MinEspSDKLib.lib cd ..\AutoMake 5 | call ..\lib\clibsdk.bat MinEspSDKLib.lib 6 | cd ..\lib 7 | goto end 8 | :aaa 9 | if not exist %1 goto err_end 10 | if not exist ..\lib\libmmain.a goto err_end 11 | if not exist ..\lib\libmphy.a goto err_end 12 | if not exist ..\lib\libmwpa.a goto err_end 13 | if not exist ..\lib\libnet80211.a goto err_end 14 | if not exist ..\lib\libpp.a goto err_end 15 | if not exist ..\lib\libmgcc.a goto err_end 16 | if not exist ..\lib\libcrypto.a goto err_end 17 | if not exist _temp md _temp 18 | cd _temp 19 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\%1 20 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libmmain.a 21 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libmphy.a 22 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libmwpa.a 23 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libnet80211.a 24 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libpp.a 25 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libmgcc.a 26 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\lib\libcrypto.a 27 | if exist ..\..\lib\libsdk.a del ..\..\lib\libsdk.a 28 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\..\lib\libsdk.a *.o 29 | cd .. 30 | rd /q /s _temp 31 | if exist ..\lib\libsdk.a goto end 32 | :err_end 33 | echo "Error!" 34 | :end -------------------------------------------------------------------------------- /lib200/libcrypto.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libcrypto.a -------------------------------------------------------------------------------- /lib200/libdhcps.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libdhcps.a -------------------------------------------------------------------------------- /lib200/liblwipif.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/liblwipif.a -------------------------------------------------------------------------------- /lib200/libmcrypto.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libmcrypto.a -------------------------------------------------------------------------------- /lib200/libmgcc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libmgcc.a -------------------------------------------------------------------------------- /lib200/libmlwip.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libmlwip.a -------------------------------------------------------------------------------- /lib200/libmmain.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libmmain.a -------------------------------------------------------------------------------- /lib200/libmmain.a.patch.txt: -------------------------------------------------------------------------------- 1 | Path libmmain.a - error deep_sleep 2 | 000015B1: C8 06 3 | 000015B2: 81 FF 4 | 000015B3: 08 FF 5 | -------------------------------------------------------------------------------- /lib200/libmphy.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libmphy.a -------------------------------------------------------------------------------- /lib200/libmpp.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libmpp.a -------------------------------------------------------------------------------- /lib200/libmwpa.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libmwpa.a -------------------------------------------------------------------------------- /lib200/libnet80211.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libnet80211.a -------------------------------------------------------------------------------- /lib200/libnet80211_new.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libnet80211_new.a -------------------------------------------------------------------------------- /lib200/libpp.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/lib200/libpp.a -------------------------------------------------------------------------------- /lib200/mlibsdk.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | if not exist ..\app\sdklib\.output\eagle\lib\libsdk.a goto err_end 3 | del libsdk.a 4 | md sdklib 5 | cd sdklib 6 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\..\app\sdklib\.output\eagle\lib\libsdk.a 7 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libmmain.a 8 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libmphy.a 9 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libmwpa.a 10 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libcrypto.a 11 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libnet80211.a 12 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libpp.a 13 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar xo ..\libmgcc.a 14 | c:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libsdk.a *.o 15 | cd .. 16 | rd /q /s sdklib 17 | goto end 18 | :err_end 19 | echo Error! 20 | :end -------------------------------------------------------------------------------- /lib200/new_libdhcps.bat: -------------------------------------------------------------------------------- 1 | del libdhcps.a 2 | md main.lib 3 | cd main.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\liblwip.a 5 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libdhcps.a dhcpserver.o 6 | cd .. 7 | rd /q /s main.lib 8 | -------------------------------------------------------------------------------- /lib200/new_liblwipif.bat: -------------------------------------------------------------------------------- 1 | del liblwipif.a 2 | md main.lib 3 | cd main.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\libmain.a 5 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\liblwipif.a eagle_lwip_if.o 6 | cd .. 7 | rd /q /s main.lib 8 | -------------------------------------------------------------------------------- /lib200/new_libmgcc.bat: -------------------------------------------------------------------------------- 1 | del libmgcc.a 2 | md libgcc 3 | cd libgcc 4 | @rem C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\xtensa-lx106-elf\lib\gcc\xtensa-lx106-elf\4.8.2\libgcc.a 5 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\xtensa-lx106-elf\lib\gcc\xtensa-lx106-elf\5.1.0\libgcc.a 6 | @rem delete: 7 | @rem _fixunsdfsi.o _umoddi3.o _umodsi3.o _extendsfdf2.o _fixdfsi.o _divsi3.o _divdf3.o _divdi3.o _fixunssfsi.o 8 | @rem _floatsidf.o _floatsisf.o _floatunsidf.o _floatunsisf.o _muldf3.o _muldi3.o _mulsf3.o _truncdfsf2.o 9 | @rem _udivdi3.o _udivsi3.o _umulsidi3.o _addsubdf3.o _addsubsf3.o 10 | for /f "delims=" %%f in (../rom_files_list.txt) do del "%%f.o" 11 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmgcc.a *.o 12 | cd .. 13 | rd /q /s libgcc 14 | -------------------------------------------------------------------------------- /lib200/new_libmlwip.bat: -------------------------------------------------------------------------------- 1 | del libmlwip.a 2 | md lwip.lib 3 | cd lwip.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\liblwip.a 5 | @rem sockets.o api_lib.o api_msg.o err.o netbuf.o netdb.o netifapi.o tcpip.o def.o mem.o stats.o sys.o sys_arch.o autoip.o inet.o ip_frag.o 6 | @rem del: mdns.o dhcpserver.o 7 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmlwip.a dhcp.o dns.o init.o memp.o netif.o pbuf.o tcp.o tcp_in.o tcp_out.o timers.o udp.o icmp.o igmp.o inet_chksum.o ip.o ip_addr.o etharp.o raw.o 8 | cd .. 9 | rd /q /s lwip.lib 10 | -------------------------------------------------------------------------------- /lib200/new_libmmain.bat: -------------------------------------------------------------------------------- 1 | del libmmain.a 2 | md main.lib 3 | cd main.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\libmain.a 5 | @rem app_main.o debug-vector.o double-vector.o eagle_lib.o eagle_lwip_if.o ets_timer.o 6 | @rem kernel-vector.o mem_manager.o nmi-vector.o spi_flash.o spi_overlap.o time.o 7 | @rem user-vector.o user_interface.o vector.o 8 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmmain.a user_interface.o 9 | cd .. 10 | rd /q /s main.lib 11 | -------------------------------------------------------------------------------- /lib200/new_libmphy.bat: -------------------------------------------------------------------------------- 1 | del libmphy.a 2 | md libphy.lib 3 | cd libphy.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\libphy.a 5 | @rem phy.o phy_chip_v6.o phy_chip_v6_ana.o phy_chip_v6_cal.o phy_sleep.o 6 | @rem delete: ate_test.o phy_chip_v6_unused.o 7 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmphy.a phy.o phy_chip_v6.o phy_chip_v6_ana.o phy_chip_v6_cal.o phy_sleep.o 8 | cd .. 9 | rd /q /s libphy.lib 10 | -------------------------------------------------------------------------------- /lib200/new_libmpp.bat: -------------------------------------------------------------------------------- 1 | del libmpp.a 2 | md libpp.lib 3 | cd libpp.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\libpp.a 5 | @rem esf_buf.o if_hwctrl.o lmac.o mac_frame.o pm.o pm_for_bcn_only_mode.o pp.o rate_control.o trc.o wdev.o 6 | @del mac_frame.o 7 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmpp.a *.o 8 | cd .. 9 | rd /q /s libpp.lib 10 | -------------------------------------------------------------------------------- /lib200/new_libmwpa.bat: -------------------------------------------------------------------------------- 1 | del libmwpa.a 2 | md wpa.lib 3 | cd wpa.lib 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x C:\Espressif\ESP8266_SDK\lib\libwpa.a 5 | @rem ap_config.o common.o ieee802_1x.o os_xtensa.o sta_info.o wpa.o wpa_auth.o 6 | @rem wpa_auth_ie.o wpa_common.o wpa_debug.o wpa_ie.o wpa_main.o wpabuf.o wpas_glue.o 7 | @del wpa_debug.o 8 | @del os_xtensa.o 9 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libmwpa.a *.o 10 | cd .. 11 | rd /q /s wpa.lib 12 | -------------------------------------------------------------------------------- /lib200/new_libnet80211new.bat: -------------------------------------------------------------------------------- 1 | del libnet80211_new.a 2 | cd libnet80211_new 3 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x ..\libnet80211.a 4 | del wl_cnx.o 5 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar ru ..\libnet80211_new.a *.o 6 | cd .. 7 | 8 | -------------------------------------------------------------------------------- /lib200/o-asm.bat: -------------------------------------------------------------------------------- 1 | for %%a in (*.a) do ( 2 | md %%a.o 3 | cd %%a.o 4 | C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x ..\%%a 5 | for %%o in (*.o) do C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-objdump -S %%o > %%o.asm 6 | cd .. 7 | ) 8 | 9 | -------------------------------------------------------------------------------- /lib200/rom_files_list.txt: -------------------------------------------------------------------------------- 1 | _addsubsf3 2 | _addsubdf3 3 | _divdf3 4 | _divdi3 5 | _divsi3 6 | _extendsfdf2 7 | _fixdfsi 8 | _fixunsdfsi 9 | _fixunssfsi 10 | _floatsidf 11 | _floatsisf 12 | _floatunsidf 13 | _floatunsisf 14 | _muldf3 15 | _muldi3 16 | _mulsf3 17 | _truncdfsf2 18 | _udivdi3 19 | _udivsi3 20 | _umoddi3 21 | _umodsi3 22 | _umulsidi3 -------------------------------------------------------------------------------- /lib200/version.txt: -------------------------------------------------------------------------------- 1 | SDK 2.0.0 + patch -------------------------------------------------------------------------------- /make_webfs.bat: -------------------------------------------------------------------------------- 1 | WEBFS22.exe -h "*.htm, *.html, *.cgi, *.xml, *.bin, *.txt, *.wav" -z "mdbini.bin, *.inc, *.ini, snmp.bib, *.ovl" .\WEBFiles .\webbin WEBFiles.bin 2 | -------------------------------------------------------------------------------- /make_webfs_rs485.bat: -------------------------------------------------------------------------------- 1 | WEBFS22.exe -h "*.htm, *.html, *.cgi, *.xml, *.bin, *.txt, *.wav" -z "mdbini.bin, *.inc, *.ini, snmp.bib, *.ovl" .\WEBFilesRS485 .\webbin WEBFiles.bin 2 | -------------------------------------------------------------------------------- /make_webfs_tcp2uart.bat: -------------------------------------------------------------------------------- 1 | WEBFS22.exe -h "*.htm, *.html, *.cgi, *.xml, *.bin, *.txt, *.wav" -z "mdbini.bin, *.inc, *.ini, snmp.bib, *.ovl" .\WEBFilesTCP2UART .\webbin WEBFiles.bin 2 | -------------------------------------------------------------------------------- /mem_usage.bat: -------------------------------------------------------------------------------- 1 | C:\Espressif\utils\ESP8266\MemAnalyzer.exe C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-objdump.exe .\app\.output\eagle\image\eagle.app.v6.out >>mem.txt 2 | -------------------------------------------------------------------------------- /ovls/10dof/include/hspi_master.h: -------------------------------------------------------------------------------- 1 | /* 2 | * hspi_master.h 3 | * 4 | * Created on: 25 янв. 2016 г. 5 | * Author: PVV 6 | */ 7 | 8 | #ifndef _HSPI_MASTER_H_ 9 | #define _HSPI_MASTER_H_ 10 | 11 | #define SPI_CMD_READ 0x80 12 | 13 | //void hspi_cmd_addr_write(uint32 cs_pin, uint32 cmd, uint32 addr, uint8 * data, uint32 len); 14 | //void hspi_cmd_addr_read(uint32 cs_pin, uint32 cmd, uint32 addr, uint8 * data, uint32 len); 15 | 16 | void hspi_cmd_write(uint32 cs_pin, uint32 cmd, uint8 * data, uint32 len); 17 | void hspi_cmd_read(uint32 cs_pin, uint32 cmd, uint8 * data, uint32 len); 18 | 19 | //void hspi_byte_write(uint8 *data, uint32 len); 20 | //void hspi_byte_read(uint8 *data, uint32 len); 21 | 22 | //void hspi_cs_enable(uint32 pin_num); 23 | //void hspi_cs_disable(uint32 pin_num); 24 | 25 | uint32 hspi_master_init(uint32 flg, uint32 clock); 26 | 27 | #endif /* _HSPI_MASTER_H_ */ 28 | -------------------------------------------------------------------------------- /ovls/10dof/include/ovl_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ovl_config.h 3 | * 4 | * Created on: 17 марта 2016 г. 5 | * Author: PVV 6 | */ 7 | 8 | #ifndef _INCLUDE_OVL_CONFIG_H_ 9 | #define _INCLUDE_OVL_CONFIG_H_ 10 | 11 | #define CS_BMP280_PIN mdb_buf.ubuf[40] 12 | #define CS_MPU9250_PIN mdb_buf.ubuf[41] 13 | #define drv_host_ip ((ip_addr_t *)mdb_buf.ubuf)[42>>1] 14 | #define drv_host_port mdb_buf.ubuf[44] 15 | #define drv_init_usr mdb_buf.ubuf[45] // Флаг: =0 - драйвер закрыт, =1 - драйвер установлен и работает 16 | #define drv_error mdb_buf.ubuf[46] // Ошибки: =0 - нет ошибок 17 | #define drv_temp mdb_buf.ubuf[47] 18 | #define drv_press ((sint32 *)(mdb_buf.ubuf))[48>>1] // long 19 | 20 | typedef struct __attribute__ ((packed)) { 21 | sint32 mag[3]; //00..11 22 | sint16 accel[3]; //12..17 23 | sint16 gyro[3]; //18..23 24 | } el_sblk_data; 25 | 26 | #define MAX_TX_BLK_DATA 10 // ((1024-10)/sizeof(el_sblk_data)) 27 | 28 | // формат UDP посылки 29 | typedef struct { 30 | uint16 number; // номер остчета 31 | sint32 temp; // temperature in DegC, resolution is 0.01 DegC. 32 | uint32 press; // pressure in Pa as unsigned, resolution is 0.01 hPa. 33 | el_sblk_data data[MAX_TX_BLK_DATA]; 34 | }tsblk_data; 35 | 36 | //extern tsblk_data sblk_data; 37 | 38 | #endif /* _INCLUDE_OVL_CONFIG_H_ */ 39 | -------------------------------------------------------------------------------- /ovls/10dof/main/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /ovls/10dof/readme.txt: -------------------------------------------------------------------------------- 1 | 10dof.ovl 2 | 3 | Передача данных по UDP от 10-DOF GY-91 4 | (акселерометр, гироскоп, магнитометр, температура, давление) 5 | Опрос по SPI 100 замеров x,y,z (через FIFO) в секунду, 6 | вывод 10 UDP пакетов в секунду, в каждом 10 замеров. 7 | 8 | Подключение GY-91 - ESP8266: 9 | 10 | VIN - не использован 11 | 3V3 - 3V3 12 | GND - GND 13 | SCL - HSPICLK/GPIO14 14 | SDA - HSPIQ MISO/GPIO13 15 | SDO/SAO - HSPID MOSI/GPIO12 16 | NCS - GPIO4 (задается) 17 | CSB - GPIO5 (задается) 18 | 19 | Инициализация: 20 | mdb[40] - Номер пина (0..15) для сигнала CS_BMP280, по умолчанию GPIO5 21 | mdb[41] - Номер пина (0..15) для сигнала CS_MPU9250, по умолчанию GPIO4 22 | mdb[42] - dword host ip, по умолчанию 255.255.255.255 (всем) 23 | mdb[44] - word host port, по умолчанию 7777 24 | Переменные: 25 | mdb[45] - Флаг: 26 | =0 - драйвер закрыт 27 | =1 - драйвер установлен и работает 28 | mdb[46] - Ошибки: =0 - нет ошибок 29 | mdb[47] - temperature in DegC, resolution is 0.01 DegC, signed. 30 | mdb[48] - pressure in Pa as unsigned long, resolution is 0.01 hPa. 31 | 32 | Доп.команды: 33 | 34 | ovl$=2 - start передачи по UDP 35 | ovl$=3 - stop передачи по UDP 36 | 37 | 38 | Запрос / Выходная информация или команда по UDP 39 | '?' UDRV: ver 40 | 'A' UDRV: set remote ip , remote port 41 | 'S' UDRV: stop 42 | 'G' UDRV: start 43 | 44 | Формат UDP посылки см. в ovl_config.h 45 | -------------------------------------------------------------------------------- /ovls/bin/aupload.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 Overlay Upload 5 | 6 |
7 |

Overlay Upload

8 |

9 | Select Overlay file...

10 |

11 | 12 |

13 |
14 | -------------------------------------------------------------------------------- /ovls/bin/iointr.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/ovls/bin/iointr.ovl -------------------------------------------------------------------------------- /ovls/bin/sht7x.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/ovls/bin/sht7x.ovl -------------------------------------------------------------------------------- /ovls/bin/supload.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ESP8266 Overlay Upload 5 | 6 |
7 |

Overlay Upload

8 |

9 | Select Overlay file...

10 |

11 | 12 |

13 |
14 | -------------------------------------------------------------------------------- /ovls/bin/tcp_client.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/ovls/bin/tcp_client.ovl -------------------------------------------------------------------------------- /ovls/bin/udptp.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/ovls/bin/udptp.ovl -------------------------------------------------------------------------------- /ovls/bin/wdrv.ovl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/ovls/bin/wdrv.ovl -------------------------------------------------------------------------------- /ovls/i219u/include/i2c_drv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * i2c_drv.h 3 | * 4 | * Created on: 05.03.2016 5 | * Author: PVV 6 | */ 7 | 8 | #ifndef _I2C_DRV_H_ 9 | #define _I2C_DRV_H_ 10 | 11 | int i2c_init(uint32 scl, uint32 sda, uint32 time); // 400кГц CPU 160MHz time=92 12 | int i2c_deinit(void); 13 | 14 | uint32 i2c_test_sda(void); 15 | void i2c_start(void); 16 | void i2c_stop(void); 17 | uint32 i2c_wrd8ba(uint32 data); 18 | 19 | void i2c_set_sda(uint32 x); 20 | void i2c_set_scl(uint32 x); 21 | uint32 i2c_step_scl_sda(uint32 x); 22 | 23 | #endif /* _I2C_DRV_H_ */ 24 | -------------------------------------------------------------------------------- /ovls/i219u/main/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /ovls/i219u/readme.txt: -------------------------------------------------------------------------------- 1 | i219u.ovl 2 | 3 | Драйвер для работы с датчиком INA219 по UDP 4 | 5 | Инициализация: 6 | mdb[60] - Номер пина (0..15) для сигнала SCL, по умолчанию GPIO4 7 | mdb[61] - Номер пина (0..15) для сигнала SDA, по умолчанию GPIO5 8 | Переменные: 9 | mdb[62] - Счетчик опроса датчика. При смене указывает, что с датчика обработаны новые данные. 10 | mdb[63] - Флаг: 11 | =0 - данные верны, ошибок нет. 12 | =-1 - драйвер закрыт. 13 | =-2 - неисправность сенсора 14 | =-3 - ошибки в параметрах инициализации (номера пинов SCL, SDA) 15 | mdb[64] - напряжение (1 мВ) 16 | mdb[67] - сенсор тока (0.1 мА) 17 | 18 | mdb[70] - dword ADC sample rate 1..2000 SPS 19 | mdb[72] - dword host ip 20 | mdb[74] - word host port 21 | mdb[75] - word remote port 22 | Переменные: 23 | mdb[76] - Флаг: 24 | =0 - драйвер закрыт 25 | =1 - драйвер установлен и работает 26 | 27 | WebSocket: 28 | ovl$2 – отключить сканирование для UDP 29 | ovl$3 – получить значение напряжения в 0.5 мВ 30 | ovl$4 – получить значение тока в 0.1 мА 31 | 32 | 33 | UDP Запрос / Выходная информация или команда 34 | '?' WDRV: ver 35 | 'F=fx' WDRV: freg fx Hz 36 | 'A' WDRV: set remote ip , remote port 37 | 'S' WDRV: stop 38 | 'G' Start wave 39 | -------------------------------------------------------------------------------- /ovls/ina219/htm/ina219.htm: -------------------------------------------------------------------------------- 1 | ~inc:grfx1.inc~ 2 | Ivcc: ? mA 3 | 4 | ~inc:grfx2.inc~ -------------------------------------------------------------------------------- /ovls/ina219/htm/ina219.xml: -------------------------------------------------------------------------------- 1 | Ish(eval(~mdbsw65~*0.05)).toFixed(1) 2 | -------------------------------------------------------------------------------- /ovls/ina219/include/fost02.h: -------------------------------------------------------------------------------- 1 | #ifndef _FOST02_H_ 2 | #define _FOST02_H_ 3 | 4 | #define HDT14BIT 1 // =1 12/14bit, =0 8/12bit 5 | #define PTATD1 39.9 // = 39.6 if Vdd = 3.3V, = 39.9 if Vdd = 5V 6 | 7 | #define HTD_MT 0b00000011 //Read Measure Temperature 8 | #define HTD_MH 0b00000101 //Read Measure Humidity 9 | #define HTD_RS 0b00000111 //Read Status Register 10 | #define HTD_WS 0b00000110 //Write Status Register 11 | #define HTD_SR 0b00011110 //Soft reset 12 | 13 | //extern adc4value T,RH,Dp; 14 | 15 | int OpenHMSdrv(void); 16 | int CloseHMSdrv(void); 17 | void s_connectionreset(void); 18 | 19 | void ReadHMS(void); 20 | 21 | #endif //_FOST02_H_ 22 | -------------------------------------------------------------------------------- /ovls/ina219/include/i2c_drv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * i2c_drv.h 3 | * 4 | * Created on: 05.03.2016 5 | * Author: PVV 6 | */ 7 | 8 | #ifndef _I2C_DRV_H_ 9 | #define _I2C_DRV_H_ 10 | 11 | int i2c_init(uint32 scl, uint32 sda, uint32 time); // 400кГц CPU 160MHz time=92 12 | int i2c_deinit(void); 13 | 14 | uint32 i2c_test_sda(void); 15 | void i2c_start(void); 16 | void i2c_stop(void); 17 | uint32 i2c_wrd8ba(uint32 data); 18 | 19 | void i2c_set_sda(uint32 x); 20 | void i2c_set_scl(uint32 x); 21 | uint32 i2c_step_scl_sda(uint32 x); 22 | 23 | #endif /* _I2C_DRV_H_ */ 24 | -------------------------------------------------------------------------------- /ovls/ina219/main/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /ovls/ina219/readme.txt: -------------------------------------------------------------------------------- 1 | ina219.ovl 2 | 3 | Драйвер для работы с датчиком INA219 4 | 5 | Инициализация: 6 | mdb[60] - Номер пина (0..15) для сигнала SCL, по умолчанию GPIO4 7 | mdb[61] - Номер пина (0..15) для сигнала SDA, по умолчанию GPIO5 8 | Переменные: 9 | mdb[62] - Счетчик опроса датчика. При смене указывает, что с датчика обработаны новые данные. 10 | mdb[63] - Флаг: 11 | =0 - данные верны, ошибок нет. 12 | =-1 - драйвер закрыт. 13 | =-2 - неисправность сенсора 14 | =-3 - ошибки в параметрах инициализации (номера пинов SCL, SDA) 15 | mdb[64] - напряжение (1 мВ) 16 | mdb[65] - ток (50 мкА) 17 | mdb[66] - мощность (1 мВт) 18 | mdb[67] - сенсор тока (0.1 мА) 19 | 20 | WebSocket: 21 | ovl$2 – отключить сканирование для mdb 22 | ovl$3 – получить значение напряжения в 0.5 мВ 23 | ovl$4 – получить значение тока в 0.1 мА 24 | -------------------------------------------------------------------------------- /ovls/ina219/ws/esp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/ovls/ina219/ws/esp.gif -------------------------------------------------------------------------------- /ovls/ina219/ws/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/ovls/ina219/ws/logo.gif -------------------------------------------------------------------------------- /ovls/include/ovl_sys.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Переназначения для работы ovl с библиотекой web 3 | */ 4 | 5 | #include "mdbtab.h" 6 | 7 | // Переназначение для размещения процедур в IRAM 8 | #undef ICACHE_FLASH_ATTR 9 | #define ICACHE_FLASH_ATTR 10 | 11 | // Переназначение для размещения переменных в RAM: rodata 12 | #undef ICACHE_RODATA_ATTR 13 | #define ICACHE_RODATA_ATTR 14 | 15 | // Переназначение для размещения переменных в IRAM в другой секции 16 | #undef DATA_IRAM_ATTR 17 | #define DATA_IRAM_ATTR __attribute__((aligned(4), section(".iram.data"))) 18 | 19 | // #undef USE_OPTIMIZE_PRINTF 20 | 21 | // Переназначение для размещения строк в RAM: rodata 22 | #undef os_printf 23 | #define os_printf __wrap_os_printf_plus 24 | 25 | int ovl_init(int flg); 26 | -------------------------------------------------------------------------------- /ovls/oiintr/include/gpios_intr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GPIOs_intr.h 3 | * 4 | * Created on: 26 янв. 2016 г. 5 | * Author: PVV 6 | */ 7 | 8 | #ifndef _GPIOS_INTR_H_ 9 | #define _GPIOS_INTR_H_ 10 | 11 | #define GPIOs_intr_TASK_PRIO (USER_TASK_PRIO_1) 12 | #define GPIOs_intr_TASK_QUEUE_LEN 2 13 | #define GPIOs_intr_SIG_SAVE 1 14 | 15 | void init_GPIOs_intr(void); 16 | extern uint32 GPIO_INT_Count1, GPIO_INT_Count2; 17 | extern uint32 GPIO_INT_Counter1, GPIO_INT_Counter2; 18 | 19 | #endif /* _GPIOS_INTR_H_ */ 20 | -------------------------------------------------------------------------------- /ovls/oiintr/main/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /ovls/oiintr/readme.txt: -------------------------------------------------------------------------------- 1 | iointr.ovl 2 | 3 | По просьбе трудящихся. 4 | 5 | Инициализация: 6 | mdb[80] - номер пина (0..15) для счетчика Counter1, по умолчанию GPIO4 7 | mdb[81] - номер пина (0..15) для счетчика Counter2, по умолчанию GPIO5 8 | Переменные: 9 | mdb[82] - флаг =1 - драйвер работает, =0 остановлен 10 | 11 | ТЗ :) из темы 12 | http://esp8266.ru/forum/threads/ne-poluchaetsja-sobrat-proekty-ot-pvvx-pod-linux.926/#post-14214 13 | 14 | 15 | 16 | Counter1 и Counter2 доступны, как вэб переменные sys_ucnst_1 и sys_ucnst_2 17 | 18 | При старте считать Counter1 и Counter2 из EEPROM (sys_ucnst_1 и sys_ucnst_2). 19 | Приаттачить прерывание на GPIO 4 20 | Приаттачить прерывание на GPIO 5 21 | 22 | Обработчик прерывания по фронту на GPIO 4 23 | Count1++; 24 | if (Count1 == 10) { 25 | Count1=0; 26 | Counter1++; 27 | Сохранить значение Counter1 в EEPROM (sys_ucnst_1); 28 | } 29 | 30 | Обработчик прерывания по фронту на GPIO 5 31 | Count2++; 32 | if (Count2 == 10) { 33 | Count2=0; 34 | Counter2++; 35 | Сохранить значение Counter2 в EEPROM (sys_ucnst_2); 36 | } 37 | -------------------------------------------------------------------------------- /ovls/readme.txt: -------------------------------------------------------------------------------- 1 | Оверлеи/драйверы загружаются по HTTP или web-командой из web-диска в IRAM память ESP8266. 2 | 3 | Для работы с оверлеями web имеет такие команды: 4 | ovl=имя_файла_на_web_диске - загрузка оверлея с web-диска 5 | ovl$=N, где N - число. 0 - close, 1 - инициализация. Другие значения - передача опций для оверлея и специфичны. Параметр передается функции int ovl_init(int flg), как flg. 6 | ovl@=строка или список параметров - пока не задействована ни в одном примере. 7 | Аналогично ~ovl:имя_файла_на_web_диске~, ~ovl$N~, ~ovl@строка~. В этих случаях в поток TCP передается номер кода возврата (ошибки). 8 | 9 | Параметры инициализации и ответы для всех оверлеев обычно находятся в modbus таблице и имеют доступ к ним с любых интерфейсов web-сервера (см. описание переменных web-сервера). 10 | 11 | Web-сервер поддерживает один активный оверлей. Оверлеи можно загружать по очереди, по мере необходимости. При загрузке нового оверлея вызывается команда закрытия текущего оверлея ovl_init(0). Инициализация оверлея ovl_init(1) производится по закрытию Web-HTTP соединения для возможности передачи настроек инициализации в любом порядке, а в случае запроса из websocket – сразу после загрузки. 12 | 13 | Текущие ограничения по размеру кода оверлея около 8 килобайт, но если включить опцию IRAM=48к, то 16+8 килобайт. Для rodata/bss используется буфер в области памяти ROM-BIOS до 1 кило (остальные переменные, кратные 4 байт, размешаем в IRAM). 14 | 15 | Описания готовых оверлеев даны в их папках проекта. 16 | -------------------------------------------------------------------------------- /ovls/sht7x/include/fost02.h: -------------------------------------------------------------------------------- 1 | #ifndef _FOST02_H_ 2 | #define _FOST02_H_ 3 | 4 | #define HDT14BIT 1 // =1 12/14bit, =0 8/12bit 5 | #define PTATD1 39.9 // = 39.6 if Vdd = 3.3V, = 39.9 if Vdd = 5V 6 | 7 | #define HTD_MT 0b00000011 //Read Measure Temperature 8 | #define HTD_MH 0b00000101 //Read Measure Humidity 9 | #define HTD_RS 0b00000111 //Read Status Register 10 | #define HTD_WS 0b00000110 //Write Status Register 11 | #define HTD_SR 0b00011110 //Soft reset 12 | 13 | //extern adc4value T,RH,Dp; 14 | 15 | int OpenHMSdrv(void); 16 | int CloseHMSdrv(void); 17 | void s_connectionreset(void); 18 | 19 | void ReadHMS(void); 20 | 21 | #endif //_FOST02_H_ 22 | -------------------------------------------------------------------------------- /ovls/sht7x/include/i2c_drv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * i2c_drv.h 3 | * 4 | * Created on: 05.03.2016 5 | * Author: PVV 6 | */ 7 | 8 | #ifndef _I2C_DRV_H_ 9 | #define _I2C_DRV_H_ 10 | 11 | int i2c_init(uint32 scl, uint32 sda, uint32 time); // 400кГц CPU 160MHz time=92 12 | int i2c_deinit(void); 13 | 14 | uint32 i2c_test_sda(void); 15 | void i2c_start(void); 16 | void i2c_stop(void); 17 | uint32 i2c_wrd8ba(uint32 data); 18 | 19 | void i2c_set_sda(uint32 x); 20 | void i2c_set_scl(uint32 x); 21 | uint32 i2c_step_scl_sda(uint32 x); 22 | 23 | #endif /* _I2C_DRV_H_ */ 24 | -------------------------------------------------------------------------------- /ovls/sht7x/main/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /ovls/sht7x/readme.txt: -------------------------------------------------------------------------------- 1 | sht7x.ovl 2 | 3 | Драйвер для работы с датчиками влажности по I2C типа: FOST02, SHT1x, SHT7x. 4 | Данные с датчика усредняются за два замера в 0.54 секунды (один замер 0.27 сек). 5 | Всё делается по прерываниям и готовности датчика. 6 | http://esp8266.ru/forum/attachments/sht71-gif.1549/ 7 | 8 | 9 | Инициализация: 10 | mdb[60] - Номер пина (0..15) для сигнала SCL, по умолчанию GPIO4 11 | mdb[61] - Номер пина (0..15) для сигнала SDA, по умолчанию GPIO5 12 | Переменные: 13 | mdb[62] - Счетчик опроса датчика. При смене указывает, что с датчика обработаны новые данные. 14 | mdb[63] - Флаг: 15 | =0 - данные верны, ошибок нет. 16 | =1 - драйвер запущен, ждет первого замера. 17 | =-1 - драйвер закрыт. 18 | =-2 - неисправность сенсора влажности 19 | =-3 - ошибки в параметрах инициализации (номера пинов SCL, SDA) 20 | mdb[64] - Температура в 0.01 градуса (со знаком) 21 | mdb[65] - Влажность в 0.01% 22 | -------------------------------------------------------------------------------- /ovls/sync/include/gpios_intr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GPIOs_intr.h 3 | * 4 | * Created on: 26 янв. 2016 г. 5 | * Author: PVV 6 | */ 7 | 8 | #ifndef _GPIOS_INTR_H_ 9 | #define _GPIOS_INTR_H_ 10 | 11 | //#define GPIOs_intr_TASK_PRIO (USER_TASK_PRIO_1) 12 | //#define GPIOs_intr_TASK_QUEUE_LEN 2 13 | //#define GPIOs_intr_SIG_SAVE 1 14 | 15 | //void init_GPIOs_intr(void); 16 | //extern uint32 GPIO_INT_Count1, GPIO_INT_Count2; 17 | //extern uint32 GPIO_INT_Counter1, GPIO_INT_Counter2; 18 | 19 | #endif /* _GPIOS_INTR_H_ */ 20 | -------------------------------------------------------------------------------- /ovls/sync/main/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /ovls/sync/readme.txt: -------------------------------------------------------------------------------- 1 | sync.ovl 2 | 3 | По просьбе трудящихся. 4 | 5 | Инициализация: 6 | mdb[80] - номер пина (0..15) для счетчика Counter1, по умолчанию GPIO4 7 | mdb[81] - номер пина (0..15) для счетчика Counter2, по умолчанию GPIO5 8 | Переменные: 9 | mdb[82] - флаг =1 - драйвер работает, =0 остановлен 10 | 11 | ТЗ :) из темы 12 | http://esp8266.ru/forum/threads/ne-poluchaetsja-sobrat-proekty-ot-pvvx-pod-linux.926/#post-14214 13 | 14 | 15 | 16 | Counter1 и Counter2 доступны, как вэб переменные sys_ucnst_1 и sys_ucnst_2 17 | 18 | При старте считать Counter1 и Counter2 из EEPROM (sys_ucnst_1 и sys_ucnst_2). 19 | Приаттачить прерывание на GPIO 4 20 | Приаттачить прерывание на GPIO 5 21 | 22 | Обработчик прерывания по фронту на GPIO 4 23 | Count1++; 24 | if (Count1 == 10) { 25 | Count1=0; 26 | Counter1++; 27 | Сохранить значение Counter1 в EEPROM (sys_ucnst_1); 28 | } 29 | 30 | Обработчик прерывания по фронту на GPIO 5 31 | Count2++; 32 | if (Count2 == 10) { 33 | Count2=0; 34 | Counter2++; 35 | Сохранить значение Counter2 в EEPROM (sys_ucnst_2); 36 | } 37 | -------------------------------------------------------------------------------- /ovls/tcp_client/main/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /ovls/udplog/include/ovl_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ovl_config.h 3 | * 4 | * Created on: 17 марта 2016 г. 5 | * Author: PVV 6 | */ 7 | 8 | #ifndef _INCLUDE_OVL_CONFIG_H_ 9 | #define _INCLUDE_OVL_CONFIG_H_ 10 | 11 | #define drv_host_ip ((ip_addr_t *)mdb_buf.ubuf)[90>>1] 12 | #define drv_host_port mdb_buf.ubuf[92] 13 | #define drv_init_usr mdb_buf.ubuf[93] // Флаг: =0 - драйвер закрыт, =1 - драйвер установлен и работает 14 | #define drv_error mdb_buf.ubuf[94] // Ошибки: =0 - нет ошибок 15 | 16 | #define DEFAULT_UDP_PORT 1025 17 | 18 | #endif /* _INCLUDE_OVL_CONFIG_H_ */ 19 | -------------------------------------------------------------------------------- /ovls/udplog/main/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /ovls/udplog/readme.txt: -------------------------------------------------------------------------------- 1 | udplog.ovl 2 | 3 | Вывод отладочных логов в UDP port, вместо UART1. 4 | 5 | Инициализация: 6 | mdb[90] - dword, host ip, по умолчанию 255.255.255.255 (всем) 7 | mdb[92] - word, remote/host port, по умолчанию 1025 8 | Переменные: 9 | mdb[93] - Флаг: 10 | =0 - драйвер закрыт 11 | =1 - драйвер установлен и работает 12 | mdb[94] - Ошибки: =0 - нет ошибок 13 | 14 | Запрос / Выходная информация или команда по UDP 15 | 'A?' - DRV: set remote ip , remote port 16 | 'I?' - UDP, TCP, WEB pcb info 17 | 'M?' - System memory info 18 | 'W?' - WiFi info 19 | -------------------------------------------------------------------------------- /ovls/udptp/main/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /ovls/udptp/readme.txt: -------------------------------------------------------------------------------- 1 | udptp.ovl 2 | 3 | Тестовый UDP port. 4 | 5 | Инициализация: 6 | mdb[90] - remote port 7 | Переменные: 8 | mdb[91] - Флаг: 9 | =0 - драйвер закрыт 10 | =1 - драйвер установлен и работает 11 | =-1 - ошибка инициализации (номер порта) 12 | =-2 - ошибка инициализации (нехватает памяти) 13 | =-3 - ошибки в параметрах инициализации (номера пинов SCL, SDA) 14 | 15 | См. WEBFilesTCP2UART\protect\udptst.htm 16 | 17 | Запрос / Выходная информация или команда 18 | 'A?' ChipID, WiFi... 19 | 'I?' UDP + TCP connections 20 | 'U?' UDP connections 21 | 'T?' TCP connections 22 | 'S?' WEB connections 23 | 'H?' 'heap' size 24 | 'R?' Sysmem restart 25 | ... ..... -------------------------------------------------------------------------------- /ovls/wdrv/main/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ############################################################# 3 | # Required variables for each makefile 4 | # Discard this section from all parent makefiles 5 | # Expected variables (with automatic defaults): 6 | # CSRCS (all "C" files in the dir) 7 | # SUBDIRS (all subdirs with a Makefile) 8 | # GEN_LIBS - list of libs to be generated () 9 | # GEN_IMAGES - list of images to be generated () 10 | # COMPONENTS_xxx - a list of libs/objs in the form 11 | # subdir/lib to be extracted and rolled up into 12 | # a generated lib/image xxx.a () 13 | # 14 | ifndef PDIR 15 | GEN_LIBS = libmain.a 16 | endif 17 | 18 | ############################################################# 19 | # Configuration i.e. compile options etc. 20 | # Target specific stuff (defines etc.) goes in here! 21 | # Generally values applying to a tree are captured in the 22 | # makefile at its root level - these are then overridden 23 | # for a subtree within the makefile rooted therein 24 | # 25 | #DEFINES += 26 | 27 | ############################################################# 28 | # Recursion Magic - Don't touch this!! 29 | # 30 | # Each subtree potentially has an include directory 31 | # corresponding to the common APIs applicable to modules 32 | # rooted at that subtree. Accordingly, the INCLUDE PATH 33 | # of a module can only contain the include directories up 34 | # its parent path, and not its siblings 35 | # 36 | # Required for each makefile to inherit from the parent 37 | # 38 | 39 | #INCLUDES := $(INCLUDES) -I $(PDIR)include 40 | INCLUDES += -I ./include 41 | PDIR := ../$(PDIR) 42 | sinclude $(PDIR)Makefile 43 | 44 | -------------------------------------------------------------------------------- /ovls/wdrv/readme.txt: -------------------------------------------------------------------------------- 1 | udptp.ovl 2 | 3 | Тестовый UDP Wave port. 4 | Передает по UDP поток со входа ADC до 192 кГц. 5 | Выходной поток замеров в 2 байта 14..10 бит - зависит от скорости. 6 | 7 | Инициализация: 8 | mdb[70] - dword ADC sample rate 1..192000 SPS 9 | mdb[72] - dword host ip 10 | mdb[74] - word host port 11 | mdb[75] - word remote port 12 | Переменные: 13 | mdb[76] - Флаг: 14 | =0 - драйвер закрыт 15 | =1 - драйвер установлен и работает 16 | 17 | ovl$=2 - start передачи 18 | ovl$=3 - stop передачи 19 | 20 | См. WEBFilesTCP2UART\protect\udpwave.htm 21 | 22 | Запрос / Выходная информация или команда 23 | '?' WDRV: ver 24 | 'F=fx' WDRV: freg fx Hz 25 | 'A' WDRV: set remote ip , remote port 26 | 'S' WDRV: stop 27 | 'G' Start wave 28 | -------------------------------------------------------------------------------- /webbin/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | WEBFiles.bin: 3 | ../WEBFS22.exe -h "*.htm, *.html, *.cgi, *.xml, *.bin, *.txt, *.wav" -z "mdbini.bin, *.inc, *.ini, snmp.bib, *.ovl" ../WEBFiles ../webbin WEBFiles.bin 4 | 5 | PDIR := ../$(PDIR) 6 | sinclude $(PDIR)Makefile 7 | 8 | .PHONY: FORCE 9 | FORCE: 10 | -------------------------------------------------------------------------------- /webbin/WEBFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/webbin/WEBFiles.bin -------------------------------------------------------------------------------- /webfs/README.md: -------------------------------------------------------------------------------- 1 | # esp8266webfs 2 | 3 | Программа для формирования и обслуживания web-диска на Python v2.7.
4 | Проект не закончен и находится в начальной стадии.
5 | Пока содержит два варианта примера загрузчика готового диска на ESP8266 по HTTP.
6 | 7 | -------------------------------------------------------------------------------- /webfs/WEBFS22.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/webfs/WEBFS22.zip -------------------------------------------------------------------------------- /webfs/webfs_upload2.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: cp1251 -*- 3 | ''' 4 | test webfs_upload.py 5 | Created on 27/09/2015. 6 | 7 | @author: PVV 8 | ''' 9 | # 10 | # Use module 'requests' - http://docs.python-requests.org/ 11 | # 12 | 13 | import requests 14 | from requests.auth import HTTPBasicAuth 15 | 16 | 17 | if __name__ == '__main__': 18 | espurl = 'http://192.168.4.1/fsupload' 19 | username = 'ESP8266' 20 | password = '0123456789' 21 | filename = '../webbin/WEBFiles.bin' 22 | 23 | files = {'file': (filename, open(filename, 'rb'), 'application/octet-stream')} 24 | # postdata = {'':''} 25 | # headers = {'Connection' : 'keep-alive'} 26 | 27 | s = requests.Session() 28 | # q = s.post(theurl, auth=HTTPBasicAuth(username, password), headers=headers, data=postdata, files=files) 29 | q = s.post(espurl, auth=HTTPBasicAuth(username, password), files=files) 30 | print(q.status_code) 31 | -------------------------------------------------------------------------------- /webvars_rs485.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/webvars_rs485.xlsx -------------------------------------------------------------------------------- /webvars_tcp2uart.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pvvx/esp8266web/0de8a993c04ea6c8dfdef391dd1a1e7fec6466da/webvars_tcp2uart.xlsx --------------------------------------------------------------------------------