Skip to content

Merge pull request #1 from pvvx/master #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .gitignore

This file was deleted.

Binary file added CreateLib/Web_Base.lib
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/api/api_lib.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/api/api_msg.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/api/err.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/api/netbuf.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/api/netdb.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/api/netifapi.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/api/sockets.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/api/tcpip.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/app/dhcpserver.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/app/espconn.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/app/espconn_mdns.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/app/espconn_tcp.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/app/espconn_udp.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/app/netio.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/app/ping.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/def.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/dhcp.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/dns.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/init.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/ipv4/autoip.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/ipv4/icmp.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/ipv4/igmp.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/ipv4/inet.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/ipv4/inet_chksum.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/ipv4/ip.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/ipv4/ip_addr.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/ipv4/ip_frag.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/mdns.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/mem.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/memp.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/netif.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/pbuf.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/raw.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/sntp.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/stats.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/sys.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/tcp.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/tcp_in.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/tcp_out.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/timers.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/core/udp.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/lwip/netif/etharp.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/phy/phy_chip_v6_unused.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/pp/pplibadd.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/app_main.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/eagle_lwip_if.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/ets_run_new.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/ets_timer.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/main-vectors.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/mem_manager.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/os_printf.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/rom2ram.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/spi_flash.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/spi_overlap.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/system/wdt.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/wpa/os_xtensa.o
Binary file not shown.
Binary file added CreateLib/app/sdklib/wpa/wpa_debug.o
Binary file not shown.
Binary file removed ESP-01_RS-485_sch.gif
Binary file not shown.
57 changes: 37 additions & 20 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,24 +1,41 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
Данная лицензия разрешает лицам, получившим копию данного программного
обеспечения и сопутствующей документации (в дальнейшем именуемыми
<Программное Обеспечение>), безвозмездно использовать Программное
Обеспечение без ограничений, включая неограниченное право на
использование, копирование, изменение, добавление, публикацию,
распространение, сублицензирование и/или продажу копий Программного
Обеспечения, а также лицам, которым предоставляется данное Программное
Обеспечение, при соблюдении следующих условий:

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
Указанное выше уведомление об авторском праве и данные условия должны быть
включены во все копии или значимые части данного Программного Обеспечения.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ <КАК ЕСТЬ>,
БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ,
ВКЛЮЧАЯ ГАРАНТИИ ТОВАРНОЙ ПРИГОДНОСТИ, СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ
НАЗНАЧЕНИЮ И ОТСУТСТВИЯ НАРУШЕНИЙ, НО НЕ ОГРАНИЧИВАЯСЬ ИМИ. НИ В КАКОМ
СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО КАКИМ-ЛИБО
ИСКАМ, ЗА УЩЕРБ ИЛИ ПО ИНЫМ ТРЕБОВАНИЯМ, В ТОМ ЧИСЛЕ, ПРИ ДЕЙСТВИИ
КОНТРАКТА, ДЕЛИКТЕ ИЛИ ИНОЙ СИТУАЦИИ, ВОЗНИКШИМ ИЗ-ЗА ИСПОЛЬЗОВАНИЯ
ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫХ ДЕЙСТВИЙ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ.

For more information, please refer to <http://unlicense.org/>
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
#############################################################

ESPOPTION ?= -p COM6 -b 460800
ESPOPTION ?= -p COM2 -b 460800

# SPI_SPEED = 40MHz or 80MHz
SPI_SPEED?=80
Expand Down
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# esp8266web
Small WEB server on ESP8266 + TCP2UART or Modbus RS-485
Small WEB server on ESP8266 + TCP2UART (server/client)
---

HTTP-Web supports more than hundred variables -<br>
All I/O, Wifi, system, ... variables.<br>
GET/POST/websocket, cookie, load/upload data/Flash, multipart/form-data,...<br>
TCP2UART: 300..3000000 Baud, Flow Control On/Off, Inverse On/Of all signals, ...<br>
RS-485: half-duplex 300..1000000 Baud <br>
HTTP-Web services to more than 10 simultaneous open connections.<br>
Websocket open uri: '/web.cgi'<br>

Expand All @@ -18,8 +17,6 @@ Sends 14-bit samples at 1 Hz .. 48 kHz ([max 192 kHz 12 bits](https://github.co

Modbus TCP port 502:<br>
GPIOs, ADC, VDD.<br>
RS-485 chematics:
![SCH](https://github.com/pvvx/esp8266web/blob/master/ESP-01_RS-485_sch.gif)

Supported options 48 kbytes IRAM.<br>
Supported '[Rapid Loader](https://github.com/pvvx/Rapid_Loader/)' and Flash 512 кbytes - 16 Mbytes.<br>
Expand Down Expand Up @@ -51,17 +48,12 @@ Upload WEBFS:<br>
2) Explorer: http://192.168.4.1/fsupload (name and password from WiFi AP)<br>
3) Select WEBFiles.bin file. Upload.<br>

Для компиляции SDK используется [Unofficial Developer Kit](http://esp8266.ru/forum/forums/devkit/).<br><br>

Переключение проекта с TCP2UART на MODBUS RS-485 производится в include/user_config.h.<br>
Файлы для web-диска для проектов находятся в разных папках.<br>
Желательно переместить используемые для проекта в папку WEBFiles.<br>
Но возможно использование и make_webfs_rs485.bat или make_webfs_tcp2uart.bat.<br>
[Forum esp8266web Web_Base](http://esp8266.ru/forum/threads/razrabotka-biblioteki-malogo-webservera-na-esp8266.56/)

Для компиляции SDK используется [Unofficial Developer Kit](http://esp8266.ru/forum/forums/devkit/).<br>

В Eclipse заданы 3 опции Manage Configurations:<br>
1. AutoMake (собрать проект для прошивки, используются установки в Eclipse)<br>
2. CreateLib (собрать библиотеку libsdk.a (meSDK), используются установки в Eclipse)<br>
3. Default (собрать проект для прошивки, используя makefile)<br>

[Forum esp8266web Web_Base](http://esp8266.ru/forum/threads/razrabotka-biblioteki-malogo-webservera-na-esp8266.56/)
[Forum Modbus TCP / RTU RS-485 + WEB server](http://esp8266.ru/forum/threads/modbus-tcp-rtu-rs-485-web-server.911/)
1 change: 0 additions & 1 deletion WEBFilesRS485/$js.inc

This file was deleted.

14 changes: 0 additions & 14 deletions WEBFilesRS485/404.htm

This file was deleted.

10 changes: 0 additions & 10 deletions WEBFilesRS485/adc.htm

This file was deleted.

1 change: 0 additions & 1 deletion WEBFilesRS485/adc.xml

This file was deleted.

5 changes: 0 additions & 5 deletions WEBFilesRS485/disk_er1.htm

This file was deleted.

5 changes: 0 additions & 5 deletions WEBFilesRS485/disk_er2.htm

This file was deleted.

5 changes: 0 additions & 5 deletions WEBFilesRS485/disk_er3.htm

This file was deleted.

5 changes: 0 additions & 5 deletions WEBFilesRS485/disk_ok.htm

This file was deleted.

Binary file removed WEBFilesRS485/esp.gif
Binary file not shown.
Binary file removed WEBFilesRS485/favicon.ico
Binary file not shown.
5 changes: 0 additions & 5 deletions WEBFilesRS485/footer.inc

This file was deleted.

Loading