Skip to content

koltegirish/ESP8266_MESH_DEMO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

------------------------------------------------------------------------------------------------------
Description:
1. The mesh_demo is used to connect multiple IOT nodes to local server.
2. Every node sends one packet to server per 5 seconds after it joins mesh network.
3. When local server receives one packet from node ,it just echoes the packet back to the node.
4. When node receives packet from server, it prints the content of the packet.
5. Mesh_demo provides recommendation for general protocol parser setup.
------------------------------------------------------------------------------------------------------


------------------------------------------------------------------------------------------------------
Please follow below steps to run mesh_demo:
1. Set up mesh_demo server according to demo_server.py.
2. After mesh_demo server setup, please update server_ip in user_config.h according to your demo server.
3. Build run image using gen_misc.sh.
4. Download run image to device, then start mesh demo.
------------------------------------------------------------------------------------------------------


------------------------------------------------------------------------------------------------------
How to set up local server:
1. Prepare one computer and make sure python script can run on the computer.
2. Run demo_server.py on the computer
------------------------------------------------------------------------------------------------------


------------------------------------------------------------------------------------------------------
How to build run image:
1. Export SDK_BASE=/directory_of_your_mesh_demo_project in gen_misc.sh.
2. Obtain IP address of local server.
3. Change server_ip in user_config.h according to the IP address of local server.
4. Run ./gen_misc.h
   boot version: boot_v1.2+
   bin generate: user1.bin
   spi speed: 40MHz
   spi mode: QIO
   spi size and map: 1024 (512KB + 512KB)
------------------------------------------------------------------------------------------------------


------------------------------------------------------------------------------------------------------
Download image to device:
1. Get download tools from the official website of Esressif at http://espressif.com.
2. Download the following four files in ./bin/ to device:
------------------------------------------------------------------------------------------------------
          file                     download_address
---------------------------------------------------------------
esp_init_data_default.bin             0xfc000
blank.bin                             0xfe000
boot_v1.4(b1).bin                     0x00000
upgrade/user1.1024.new1.bin           0x01000
---------------------------------------------------------------
NOTE: Before starting to download, please make sure you have selected the right flash size (8 Mbit).

About

A demo that should be run with ESP8266 Non-OS SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published