ESP-WIFI-MESH development framework

[中文]

Note

If you have new requirements for Wi-Fi Mesh related application scenarios, we recommend that you directly use our newly launched ESP-Mesh-Lite solution, instead of Wi-Fi Mesh.


What is the maximum data transmission load for Wi-Fi mesh?

  • Up to 1456 bytes.


Does ESP32’s Wi-Fi Mesh supports No Router self-networking?


What is the maximum number of node layers allowed when ESP32 uses Wi-Fi Mesh?

  • In the Wi-Fi Mesh network, you can set the maximum number of layers via esp_mesh_set_max_layer().

  • For tree topology structure, the maximum number is 25; while for chain topology structure, the maximum number is 1000.


When using an ESP32 development board to test the esp-mdf/examples/function_demo/mwifi/router example, After ESP32 is connected to the router, the device name in connection is “espressif”. How to modify this name?

  • Please modify the “menuconfig → Component config → LWIP → (espressif) Local netif hostname” setting.


Can Wi-Fi Mesh send messages to specific nodes via TCP Server?

  • Wi-Fi Mesh network can send data to the specified node or group in the TCP server, please refer to the demo.


During the operation of the ESP32 Wi-Fi Mesh network, if the Root node is lost, what events will the system report back?

  • If the Root node is lost, all nodes will trigger ‘MDF_EVENT_MWIFI_PARENT_DISCONNECTED (MESH_EVENT_PARENT_DISCONNECTED)’, and then start rescanning and re-election until a new Root node is elected.


I’m using ESP32 for Wi-Fi Mesh application with the esp_mesh_send() function, but the server did not receive any data. How to transfer data from leaf nodes to external servers?

  • esp_mesh_send() can only be used for data communication within the Wi-Fi Mesh network.

  • If leaf nodes want to send data to an external server, the data needs to be forwarded through the root node.

  • The correct approach is: the leaf node first sends the data to the root node, and the root node then sends the data to the external server.


How do I upgrade my ESP-MESH device via OTA after networking?

  • The ROOT node can connect to the server to get the upgrade bin file and then send the firmware to the corresponding module via MAC address for OTA upgrade.

  • For more information, please refer to mupgrade demo.


Can you provide ESP-MESH light reference design?

  • The overall design of the lamp is done by a third-party factory and we do not have a schematic or PCB layout. But from the module level, we only need to supply power to the chip and the chip outputs PWM to control the color or color temperature change of the lamp, which does not involve complicated design.

  • Please refer to ESP-MDF for more information on MESH.


What is the default mode for ESP-MESH nodes without any configuration?

  • The default is IDLE mode.


ESP-MESH starts with AP+STA mode enabled, can the phone search for APs?


Do I need to rescan for all the newly added devices when the original device has already been networked?

  • No, just scan through the current child nodes and find the one with the strongest signal as its parent node.


When using an ESP32 as a master device to synchronize time for multiple slave devices, can the time error be less than 2 ms?


How do I get the type of the node in ESP-MESH?


Is there any demo of ESP-Mesh root node sending messages to a service via ethernet?


Does the esp-mesh-lite solution support the applications without routers?

  • Yes, it supports. For the applications supported by esp-mesh-lite, please refer to esp-mesh-lite features.

  • You can conduct tests by enabling Component config > ESP Wi-Fi Mesh Lite > Enable Mesh-Lite > Mesh-Lite info configuration > [*] Join Mesh no matter whether the node is connected to router in the esp-mesh-lite/examples/mesh_local_control example.

  • Please pay attention to the following tips if you want to use esp-mesh-lite without routers:

  • Identify a root node if possible, which can be set via esp_mesh_lite_set_allow_level(1).

  • It is recommended to use the esp_mesh_lite_set_disallow_level(1) function to prohibit the other nodes from being the root node.

  • In the applications of Mesh-Lite, a mesh network should be established based on some factors such as the distance of devices and the quality of Wi-Fi signal. As a result, you should test and debug the meash network to ensure its performance and stability.


When esp-wifi-mesh is already networked, does the root or node device can also enable Wi-Fi Scan to scan surrounding available AP information?

  • The Wi-Fi Scan feature is not supported on any node device when esp-wifi-mesh is already networked.


How can I switch to a new router for networking when using the esp-wifi-mesh router solution?

  • You can modify the following code after the MESH_EVENT_PARENT_DISCONNECTED event:

    mesh_router_t change_router = {
    .ssid = "TP-LINK_CSW",
    .password = "12345678",
    .ssid_len = strlen("TP-LINK_CSW"),
    
    };
    esp_mesh_set_self_organized(false, false);
    esp_mesh_set_router(&change_router);
    esp_mesh_set_self_organized(true, true);