You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+13-7
Original file line number
Diff line number
Diff line change
@@ -44,13 +44,19 @@ ESP-MDF consists of Utils, Components and Examples (see the below figure). Utils
44
44
-[Mlink](https://docs.espressif.com/projects/esp-mdf/en/latest/api-guides/mlink.html): LAN control module
45
45
46
46
-**Examples**:
47
-
-[Function demo](examples/function_demo/): demonstrates how functions can be used
48
-
-[Development Kit](examples/development_kit/): provides ESP32-MeshKit and ESP32-Buddy application demos
49
-
-[Aliyun link Kit](examples/maliyun_linkkit/):ESP32-Mesh access to Alibaba Cloud platform example
50
-
- Solution: offers a routerless solution, as well as the solutions for indoor positioning, street light control, etc.
51
-
47
+
-[Function demo](examples/function_demo/): Example of use of each function module
48
+
- Mwifi: An example of common networking methods: no router, no router. First develop based on this example, then add distribution, upgrade, wireless test and other functions based on it.
49
+
- Mupgrade: Upgrade example of the device
50
+
- Mconfig: Example of network configuration of the device
51
+
- Mcommon: Common Module Example, Event Processing Memory Management Example of Using Information Store
52
+
- [Console Test] (examples/function_demo/mwifi/console_test): Test the ESP-MESH throughput, network configuration, and packet delay by entering commands through the serial port.
53
+
- [Wireless Debug](examples/wireless_debug/): ESP-MDF debugging via wireless
54
+
- [Development Kit](examples/development_kit/): ESP32-MeshKit usage example for research and understanding of ESP-MESH
55
+
- [Aliyun link Kit](examples/maliyun_linkkit/): Example of ESP-MESH access to Alibaba Cloud platform
52
56
## Develop with ESP-MDF
53
57
58
+
You first need to read [ESP-MESH Communication Protocol] (https://docs.espressif.com/projects/esp-idf/en/stable/api-guides/mesh.html) and [ESP-MDF Compilation Guide] ( Https://docs.espressif.com/projects/esp-mdf/en/latest/?badge=latest) and research and learn about ESP-MESH through the ESP32-MeshKit development kit. Secondly, based on [Function demo] (examples/function_demo/) for your project development, when you can encounter problems in development, you can first go to [Official Forum] (https://esp32.com/viewforum.php?f= 21&sid=27bd50a0e45d47b228726ee55437f57e) and [Official GitHub] (https://github.com/espressif/esp-mdf/issues) to find out if a similar problem already exists. If there is no similar problem, you can also ask directly on the website.
59
+
54
60
### Development Boards
55
61
56
62
#### ESP32-MeshKit Development board
@@ -93,7 +99,7 @@ The directory ``~/esp`` will be used further to install the compiling toolchain,
If you clone without the `--recursive` option, please navigate to the esp-mdf directory and run the command`git submodule update --init`
102
+
If you clone without the `--recursive` option, please navigate to the esp-mdf directory and run the command`git submodule update --init --recursive`
97
103
98
104
3. **Set up ESP-MDF Path**: Toolchain uses the environment variable ``MDF_PATH`` to access ESP-MDF. The setup of this variable is similar to that of the variable ``IDF_PATH``. Please refer to [`Add IDF_PATH to User Profile`](https://docs.espressif.com/projects/esp-idf/en/stable/get-started/add-idf_path-to-profile.html).
99
105
```shell
@@ -198,7 +204,7 @@ The directory ``~/esp`` will be used further to install the compiling toolchain,
198
204
## Related Documentation
199
205
200
206
* For ESP-MDF related documents, please go to [ESP-MDF Programming Guide](https://docs.espressif.com/projects/esp-mdf/en/latest/?badge=latest).
201
-
* [ESP-MESH](https://esp-idf.readthedocs.io/en/latest/api-guides/mesh.html) is the basic wireless communication protocol for ESP-MDF.
207
+
* [ESP-MESH](https://docs.espressif.com/projects/esp-idf/en/stable/api-guides/mesh.html) is the basic wireless communication protocol for ESP-MDF.
202
208
* [ESP-IDF Programming Guide](https://docs.espressif.com/projects/esp-idf/en/stable/) describes Espressif's IoT development framework.
203
209
* To report a bug or request a function, please go to [Issues](https://github.com/espressif/esp-mdf/issues) on GitHub to submit them. Before submitting an issue, please check if it has already been covered.
204
210
* If you want to contribute ESP-MDF related codes, please refer to [Code Contribution Guide](docs/en/contribute/index.rst).
This directory contains examples for two common networking modes of ESP-MESH: with router or without router.
6
+
7
+
In the ESP-MESH networking, there are two ways to generate root node:
8
+
9
+
1. Automatically selected root node: automatically elected based on the signal strength of the idle node and the router.
10
+
2. Fixed root node: choose a device as the root node in the code, and the remaining devices are non-root nodes
11
+
12
+
According to the two generation ways of root node, the networking mode can be simply divided into two cases: with router and without router.
13
+
14
+
## Without router
15
+
16
+
When there is no router in the case, we can only choose the fixed root node mode. Refer to [No Routing Sample Program] (./no_router)
17
+
18
+
##With router
19
+
20
+
When there are routers in the case, we can choose either of the two modes for networking. In the example we use the automatically selected root node. The automatical selection of the root node involves the election process between all idle nodes based on their signal strength with the router, so only in the presence of a router, each idle node will send its MAC address and router RSSI through the Wi-Fi beacon frame. The MAC address is used to uniquely identify each node in the network, and the router RSSI is used to indicate the signal strength of the node reference router. See [routed TCP communication sample program] (./router), [routed MQTT communication sample program] (./mqtt_example)
21
+
22
+
## Performance Testing
23
+
24
+
Test the ESP-MESH throughput, network configuration, and packet delay by inputting commands through the serial port. Refer to [Performance Test Sample Program] (./console_test)
Copy file name to clipboardexpand all lines: examples/wireless_debug/README.md
+2-3
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
# ESP-NOW Debug Receiver Board Demo
4
4
5
-
ESP-NOW debug receiver board can receive debugging data from ESP-MESH devices only when the board is on the same Wi-Fi channel with the devices. Meanwhile, if the board is on the same local area network (connected to the same router) with the devices, the board can discover services via mDNS and get basic information of Mesh network, including Mesh ID, root node IP, root node MAC address and etc.
5
+
ESP-NOW debug receiver board can receive debugging data from ESP-MESH devices only when the board is on the same Wi-Fi channel with the devices.
0 commit comments