Mesh max_hop and heap size issue
-
- 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.
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.
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.
-
- 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
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
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
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.