ESP8266 Developer Zone The Official ESP8266 Forum 2016-09-26T17:58:46+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2815 2016-09-26T17:58:46+08:00 2016-09-26T17:58:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2815&p=9948#p9948 <![CDATA[Re: Mesh max_hop and heap size issue]]>
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.

Statistics: Posted by Guest — Mon Sep 26, 2016 5:58 pm


]]>
2016-09-26T17:14:12+08:00 2016-09-26T17:14:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2815&p=9947#p9947 <![CDATA[Re: Mesh max_hop and heap size issue]]>
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

Statistics: Posted by traderlopez — Mon Sep 26, 2016 5:14 pm


]]>
2016-09-26T16:18:32+08:00 2016-09-26T16:18:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2815&p=9946#p9946 <![CDATA[Re: Mesh max_hop and heap size issue]]>
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.

Statistics: Posted by Guest — Mon Sep 26, 2016 4:18 pm


]]>
2016-09-26T13:45:49+08:00 2016-09-26T13:45:49+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2815&p=9942#p9942 <![CDATA[Mesh max_hop and heap size issue]]>
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.

Statistics: Posted by traderlopez — Mon Sep 26, 2016 1:45 pm


]]>