Re: transport messages between tcp server and http server
Posted: Tue May 30, 2023 7:52 am
Hi,
Sorry for starting a new post here,
There is simply some matter that I am stuck on and that it is quite urgent, and I do not have the possibility to open a new post here in the forum, and I asked in several other places here on the site in the contact-us area and unfortunately I did not receive an answer, so I am writing here because I have no other choice:
Problems with esp-mesh:
Hello,
I'm using 8 units of 'ESP32-S2-Saola-1'.
I've wrote a code that implements a mesh network that is built from all these 8 units (1 root, 7 nodes).
The IDE is espressif-eclipse, ESP-IDF v4.4.2.
My code is based on 'Mesh Internal Communication' example, and was optimized for the needs of obtaining a maximum transmission baudrate between each node to the root, and from the root, by a udp packet, to the computer via a router.
The optimization is reflected in the fact that each node sends a mesh packet to the root, in an infinite loop, without delay, simillary this way:
In the node side:
-----------------
for(;;)
err = esp_mesh_send(NULL, &data_to_root, MESH_DATA_P2P, 0, 0); // data_to_root includes 1460 bytes
And in yhe root side:
---------------------
while (is_running) {
err = esp_mesh_recv(&from, &data, portMAX_DELAY, &flag, NULL, 0);
sendto(sock, data.data, RX_SIZE, 0, (struct sockaddr *)&dest_addr, sizeof(dest_addr));
}
And now for the problems description, for both mesh topologies (chain & tree):
1. The maximum speed that I receive on my PC from the mesh (by the root unit, via the TP-link router) is about ~5mbps, no more than that (for a single node, 2 nodes ... 8 nodes). I've tried to change router channels, playing with alot of parameters, and unfortunately nothing helped - So, how can I achive much faster baudrate (at least 15mbps)?
2. Is it possible to connect to the computer, using the same router, to its same SSID, 2 esp-mesh networks, so that each network includes its own Master-Root? (I mean 2 esp mesh networks, completely independent that do not depend on each other)
I've tried to do this, also by broadcasting each of the mesh networks to a different channel on the router, but in every attempt I received a root-conflict error.
Best regards, And thanks in advance
Ran.
Sorry for starting a new post here,
There is simply some matter that I am stuck on and that it is quite urgent, and I do not have the possibility to open a new post here in the forum, and I asked in several other places here on the site in the contact-us area and unfortunately I did not receive an answer, so I am writing here because I have no other choice:
Problems with esp-mesh:
Hello,
I'm using 8 units of 'ESP32-S2-Saola-1'.
I've wrote a code that implements a mesh network that is built from all these 8 units (1 root, 7 nodes).
The IDE is espressif-eclipse, ESP-IDF v4.4.2.
My code is based on 'Mesh Internal Communication' example, and was optimized for the needs of obtaining a maximum transmission baudrate between each node to the root, and from the root, by a udp packet, to the computer via a router.
The optimization is reflected in the fact that each node sends a mesh packet to the root, in an infinite loop, without delay, simillary this way:
In the node side:
-----------------
for(;;)
err = esp_mesh_send(NULL, &data_to_root, MESH_DATA_P2P, 0, 0); // data_to_root includes 1460 bytes
And in yhe root side:
---------------------
while (is_running) {
err = esp_mesh_recv(&from, &data, portMAX_DELAY, &flag, NULL, 0);
sendto(sock, data.data, RX_SIZE, 0, (struct sockaddr *)&dest_addr, sizeof(dest_addr));
}
And now for the problems description, for both mesh topologies (chain & tree):
1. The maximum speed that I receive on my PC from the mesh (by the root unit, via the TP-link router) is about ~5mbps, no more than that (for a single node, 2 nodes ... 8 nodes). I've tried to change router channels, playing with alot of parameters, and unfortunately nothing helped - So, how can I achive much faster baudrate (at least 15mbps)?
2. Is it possible to connect to the computer, using the same router, to its same SSID, 2 esp-mesh networks, so that each network includes its own Master-Root? (I mean 2 esp mesh networks, completely independent that do not depend on each other)
I've tried to do this, also by broadcasting each of the mesh networks to a different channel on the router, but in every attempt I received a root-conflict error.
Best regards, And thanks in advance
Ran.