Mesh max_hop and heap size issue

traderlopez
Posts: 20
Joined: Thu Sep 22, 2016 12:55 pm

Mesh max_hop and heap size issue

Postby traderlopez » Mon Sep 26, 2016 1:45 pm

Hi again,

mesh_demo.c contains the following comment:

"if you want set max_hop > 4, please make the heap is avaliable mac_route_table_size = (4^max_hop - 1)/3 * 6"

How can I make sure that a big enough heap space is available?

max_hop 4 is very little. I would say 6 is ok, but 4 is worrying.

4 -> size = 510 bytes
5 -> size = 1248 bytes
6 -> size = 2590 bytes

How can I make those 2590 bytes, or just 4kbytes, available for the heap?

Sorry to ask so much for assistance but it is not easy to make everything work as desired.

ESP_Alen

Re: Mesh max_hop and heap size issue

Postby ESP_Alen » Mon Sep 26, 2016 4:18 pm

traderlopez wrote:Hi again,

mesh_demo.c contains the following comment:

"if you want set max_hop > 4, please make the heap is avaliable mac_route_table_size = (4^max_hop - 1)/3 * 6"

How can I make sure that a big enough heap space is available?

max_hop 4 is very little. I would say 6 is ok, but 4 is worrying.

4 -> size = 510 bytes
5 -> size = 1248 bytes
6 -> size = 2590 bytes

How can I make those 2590 bytes, or just 4kbytes, available for the heap?

Sorry to ask so much for assistance but it is not easy to make everything work as desired.


Now, we have improved the router table using on-demand allocation, and we don't update documentation.
The size of router table size depends on count of device, regardless the max hops.
Please git pull the current mesh.

traderlopez
Posts: 20
Joined: Thu Sep 22, 2016 12:55 pm

Re: Mesh max_hop and heap size issue

Postby traderlopez » Mon Sep 26, 2016 5:14 pm

When you ask me to pull the new mesh, are you refering to your github mesh demo ????

https://github.com/espressif/ESP8266_MESH_DEMO

In that case, is it enough to update some .a files or do I need everything?

Thanks very much

ESP_Alen

Re: Mesh max_hop and heap size issue

Postby ESP_Alen » Mon Sep 26, 2016 5:58 pm

traderlopez wrote:When you ask me to pull the new mesh, are you refering to your github mesh demo ????

https://github.com/espressif/ESP8266_MESH_DEMO

In that case, is it enough to update some .a files or do I need everything?

Thanks very much


You'd better git pull all the files.

Who is online

Users browsing this forum: No registered users and 54 guests