ESP32 mesh network manual assign root node

jimcooper
Posts: 8
Joined: Thu Apr 12, 2018 4:07 am

ESP32 mesh network manual assign root node

Postby jimcooper » Mon May 14, 2018 2:34 am

Hi

Could I assign a root node by myself and without a router in mesh network?
I want to build a mesh network but I don't need a router. The data just transmitted in the mesh network.
How to do that?

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 mesh network manual assign root node

Postby ESP_Sprite » Mon May 14, 2018 6:27 am

Moved to MDF forum.

ESP_yudong
Posts: 68
Joined: Wed May 16, 2018 12:31 pm

Re: ESP32 mesh network manual assign root node

Postby ESP_yudong » Fri May 18, 2018 8:28 am

Non-router network isn't supported yet.
But you could assign a root node by esp_mesh_set_parent.

jimcooper
Posts: 8
Joined: Thu Apr 12, 2018 4:07 am

Re: ESP32 mesh network manual assign root node

Postby jimcooper » Tue May 22, 2018 10:28 am

Hi ESP_yudong

Have the plan to support non-router mode?
What time can deliver?

rlezuo
Posts: 3
Joined: Wed Jun 27, 2018 4:22 pm

Re: ESP32 mesh network manual assign root node

Postby rlezuo » Wed Jun 27, 2018 4:26 pm

Is there any progress on router-less root-node selection?
I also just need node-to-node communication w/o a router.

rlezuo
Posts: 3
Joined: Wed Jun 27, 2018 4:22 pm

Re: ESP32 mesh network manual assign root node

Postby rlezuo » Wed Jun 27, 2018 4:45 pm

My application only requires node-to-node communication.
It is desired to operate the mesh w/o any infrastructure and thus w/o router.
It would be okay to select a fixed node as the root.
Is this possible?

ESP_yudong
Posts: 68
Joined: Wed May 16, 2018 12:31 pm

Re: ESP32 mesh network manual assign root node

Postby ESP_yudong » Mon Jul 02, 2018 2:21 pm

Try "esp_mesh_set_parent()" and "esp_mesh_fix_root()"
Then you can set one device as root with a nonexistent router. I’m not sure if this is what you need.
https://github.com/espressif/esp-idf/tr ... networking
rlezuo wrote:My application only requires node-to-node communication.
It is desired to operate the mesh w/o any infrastructure and thus w/o router.
It would be okay to select a fixed node as the root.
Is this possible?

rlezuo
Posts: 3
Joined: Wed Jun 27, 2018 4:22 pm

Re: ESP32 mesh network manual assign root node

Postby rlezuo » Tue Jul 03, 2018 11:26 am

This line: https://github.com/espressif/esp-idf/bl ... main.c#L91

The root node is looking for a WiFi Router, the example does not work if the WiFi Router is off.
Why is this?

ESP_yudong
Posts: 68
Joined: Wed May 16, 2018 12:31 pm

Re: ESP32 mesh network manual assign root node

Postby ESP_yudong » Thu Jul 05, 2018 5:03 am

The example is not for non-router network, just show how to use ‘esp_mesh_set_parent‘.

When you already have a mesh network established, and then turn off the router, the mesh network will not be destroyed if root node keep alive. So it's possible to establish a mesh network using 'esp_mesh_set_parent' to assign a root node even the router doesn't exist.

I hope this will meet your needs.

plajjd
Posts: 54
Joined: Thu Jul 05, 2018 11:47 pm

Re: ESP32 mesh network manual assign root node

Postby plajjd » Sat Jul 07, 2018 4:38 pm

I also would like to use ESP32 devices to form a large (50 - 100 nodes) WiFi mesh network that does NOT require a router. Does Espressif have any plans to add support for this?

Thank you!

Who is online

Users browsing this forum: No registered users and 28 guests