esp8266_iot_platform-master

所属分类:单片机开发
开发工具:C/C++
文件大小:2014KB
下载次数:9
上传日期:2016-01-03 20:27:21
上 传 者 adenisio
说明:  esp8266 e iot_sdk_v0.9.5_15_01_22 Release Note

文件列表:
30D_ESP_Smart_Plug__User_Guide__EN_v1.0_20150907.pdf (2027953, 2015-09-07)
License (1847, 2015-09-07)
Makefile (3410, 2015-09-07)
driver (0, 2015-09-07)
driver\Makefile (1490, 2015-09-07)
driver\gpio.c (6459, 2015-09-07)
driver\key.c (6911, 2015-09-07)
driver\uart.c (13319, 2015-09-07)
gen_misc.bat (3030, 2015-09-07)
gen_misc.sh (3527, 2015-09-07)
html_light (0, 2015-09-07)
html_light\140medley.min.js (825, 2015-09-07)
html_light\index.html (1008, 2015-09-07)
html_light\picker.js (25752, 2015-09-07)
html_light\wifi (0, 2015-09-07)
html_light\wifi\140medley.min.js (825, 2015-09-07)
html_light\wifi\connecting.html (1255, 2015-09-07)
html_light\wifi\icons.png (914, 2015-09-07)
html_light\wifi\style.css (386, 2015-09-07)
html_light\wifi\wifi.tpl (2503, 2015-09-07)
html_plug (0, 2015-09-07)
html_plug\140medley.min.js (825, 2015-09-07)
html_plug\index.html (1917, 2015-09-07)
html_plug\plug_off.png (3429, 2015-09-07)
html_plug\plug_on.png (3959, 2015-09-07)
html_plug\wifi (0, 2015-09-07)
html_plug\wifi\140medley.min.js (825, 2015-09-07)
html_plug\wifi\connecting.html (1255, 2015-09-07)
html_plug\wifi\icons.png (914, 2015-09-07)
html_plug\wifi\style.css (386, 2015-09-07)
html_plug\wifi\wifi.tpl (2503, 2015-09-07)
include (0, 2015-09-07)
include\driver (0, 2015-09-07)
include\driver\gpio.h (4646, 2015-09-07)
include\driver\key.h (688, 2015-09-07)
include\driver\uart.h (3440, 2015-09-07)
include\driver\uart_register.h (7038, 2015-09-07)
include\ssl (0, 2015-09-07)
... ...

# ESP8266 IOT Platform # ---------- ESP8266 SDK provides users with a simple, fast and efficient development platform for Internet of Things products. The ESP8266 IOT Platform is based on the FreeRTOS ESP8266 SDK and adds on to it some commonly used functionalities, in an example application of a smart plug. This application uses the ESP-TOUCH protocol to realise smart configuration of the device. The communication protocols used are JSON and HTTP REST. An Android mobile APK is also included as a basic template for the users. ## Code Structure ## ## usr directory ## user_main.c: The entry point for the main program. user_webserver.c: Creates the TCP webserver, using JSON packets and REST architecture. user_devicefind.c: Creates a UDP service, which recieves special finder message on port 1025 and allows the user to discover devices on the network. user_esp_platform.c: provides the Espressif Smart Configuration API (ESP-TOUCH) example; communicates with the Espressif Cloud servers (customize this to connect to your own servers); maintains the network status and data transmission to server. user_plug.c: implements the functionality of a smart plug in this example. user_esp_platform_timer.c: implements the timer functionalities. user_light.c: could be used to output PWM signals that can be used for smart lighting. user_cgi.c: implents an adapter between the HTTP webserver and the SDK. ## upgrade directory ## upgrade.c: firmware upgrade example. upgrade_lib.c: operations on FLASH devices pertaining the upgrade of firmware. ## include directory ## The include directory includes the relevant headers needed for the project. Of interest, is "user_config.h", which can be used to configure or select the examples. By setting the MACROs, we can enable the relevant functionality, e.g. PLUG_DEVICE and LIGHT_DEVICE. Please note that you have to adjust these parameters based on your flash map. For more details, please refer to "2A-ESP8266 __IOT_SDK_User_Manuel" user_esp_platform.h: #define ESP_PARAM_START_SEC 0x7D user_light.h: #define PRIV_PARAM_START_SEC 0x7C user_plug.h: #define PRIV_PARAM_START_SEC 0x7C ## Driver Directory ## This contains the GPIO interface. ## libesphttpd Directory ## This directory implements a small HTTP server. It is compatible with most web browsers. Core contains the parser implementing the HTTP protocol and a simple file system. ESPFS is a file system with simple compression capabilites built in. util contains the interface with WiFi and DNS related codes. ## html_light and html_plug Directories ## These directories contain the JavaScript and HTML pages and user interface resources. ## Usage ## ## Configuration ## Target device can be configured through defining user_config.h macro. This application default configuration is a smart power plug (or smart power socket) (#define PLUG_DEVICE 1), and supports the HTTP server function (#define HTTPD_SERVER 1). ## Compiling the Code ## First export the two parameters specifying the paths of esp8266 RTOS SDK and compiler generated firmware. export SDK_PATH=~/esp_iot_sdk_freertos(esp8266 RTOS SDK path) export BIN_PATH=~/esp8266_bin(the folder to save target binary) Run the compilation script ./gen_misc.sh; you will prompted for some configuration parameters. User the firmware download tool to flash the device with the bins generated. For my version of FreeRTOS ESP8266 SDK 1.2.0.3, I have used the following parameters in the upload: boot_v1.4(b1).bin, downloads to flash 0x00000 user1.2048.new.3.bin, downloads to flash 0x10000 esp_init_data_default.bin, downloads to 0x1fc000 blank.bin, downloads to flash 0x1fe000

近期下载者

相关文件


收藏者