I am trying to modify the example ip_internal_network to use a fixed root and connect to network using ethernet interface instead of wifi sta.
Can anyone suggest the needed modifications to allow for frames from nodes in the mesh network to be routed correctly to the outside network.
When I run the example as it is, I can see with wireshark that frames from nodes in the mesh network have the IP of my LAN gateway (192.168.1.1) as source IP.
In my modified version (with ethernet), the frames from a node in the mesh network is transmitted to the LAN network with root node's IP address (192.168.1.51) as source IP on LAN. This seems to be incorrect, but I have not been able to figure what needs to be changed for the messages to be routed the right way in the root of my mesh.
Any suggestion is appreciated!
ip_internal_network with fixed root using ethernet
Re: ip_internal_network with fixed root using ethernet
It turns out that I was using v4.3.1 of esp-idf.
moving to HEAD of master for esp-idf my code is actually working fine (after modifying some code to adopt to changes in esp-idf)
After this I tried also recommended stable version (currently 4.4.1), not working.
Then tested also release/v4.4 and release/5.0, none working.
I will keep this post open until I find the commit solving the issue.
If someone have a working solution for the recommended stable version (v4.4.1) I would appreciate some hints.
moving to HEAD of master for esp-idf my code is actually working fine (after modifying some code to adopt to changes in esp-idf)
After this I tried also recommended stable version (currently 4.4.1), not working.
Then tested also release/v4.4 and release/5.0, none working.
I will keep this post open until I find the commit solving the issue.
If someone have a working solution for the recommended stable version (v4.4.1) I would appreciate some hints.
Re: ip_internal_network with fixed root using ethernet
I am now able to use the esp-idf version of choice: release/v4.4 (as of now v4.4.1-262-g5e6cffbb14).
I am initializing the ethernet interface after the mesh network.
in the "got ip event", I added:
Works great to communication directly with resources outside of the mesh network from any node.
I am initializing the ethernet interface after the mesh network.
in the "got ip event", I added:
- mesh_netifs_start(true);
- esp_mesh_post_toDS_state(true);
- s_current_ip.addr = event->ip_info.ip.addr;
- #if !CONFIG_MESH_USE_GLOBAL_DNS_IP
- esp_netif_t *netif = event->esp_netif;
- ESP_ERROR_CHECK(esp_netif_get_dns_info(netif, ESP_NETIF_DNS_MAIN, &s_dns));
- mesh_netif_start_root_ap(true, s_dns.ip.u_addr.ip4.addr);
- #endif
- esp_mesh_comm_mqtt_task_start();
Re: ip_internal_network with fixed root using ethernet
Dear cipandema,
This is very interesting topic, thank you for sharing your findings.
Can you share modifications that you made to the example ip_internal_network to use a fixed root and connect to network using ethernet interface instead of wifi sta?
Thanks!
This is very interesting topic, thank you for sharing your findings.
Can you share modifications that you made to the example ip_internal_network to use a fixed root and connect to network using ethernet interface instead of wifi sta?
Thanks!
Who is online
Users browsing this forum: rsimpsonbusa and 68 guests