-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] ESP32 examples do not connect to zenohd #363
Comments
If possible, enable debug logs which might provide a bit of more information on what is hapenning. |
Hello, here are logs from the ESP with debug log level
|
Here's TCP session log as well Zenoh-pico
Zenohd
|
@meganukebmp This might be a memory usage issue. Could you please try setting |
Using different sizes for Further investigation is required. |
Update on this. I got it to work. This seemed to be a compound issue of multiple things. Firstly, changing memories didn't initially work because I had not configured the zenohd router to also use these values. I'm not sure why this would cause an issue in the connection stage. The session open packet surely isn't big enough to run the ESP32 out of memory. Regardless changing that value made it work only sometimes, on TCP. I had assumed since both TCP and UDP exhibited the same behavior for all my tests until now, they'd be reacting the same way. However the memory changes on the zenohd router had fixed TCP. I eventually found that out. To which I still had to investigate why UDP was failing. The answer is the socket timeout Ultimately this was a user error, and I apologize for the time wasted here. I guess the main takeaway is that this should be written down somewhere very explicitly, or maybe the default values should be adjusted to be more conservative (would this break support with zenohd defaults?) To recap.
For reference my cflags were Thanks for all the pointers. I will leave the maintainers to close this issue in case there is more to discuss. |
Your diagnostic on the config made me think about the serial issue. So I tweaked another option : transport.unicast.max_links in zenohd config |
Thanks a lot both for figuring these out, even if it's a config only issue it's still important for us to know what options are needed for each setup. |
Describe the bug
I am running the ESP32 examples. The ESP32 connects to the WiFi fine and attempts to open a Zenoh session to zenod. It fails. Both ESP-IDF and Arduino framework examples tested, behaving identically.
Looking at zenod debug log reveals this
To verify this isn't a networking issue, I built the zeno-pico unix examples on a different linux computer than the one running zenohd. The examples are successfully able to connect to zenohd. Sometimes the connection fails randomly.
It seems that the ESP32 hits zenoh router but fails to do anything further.
Things I've tried:
To reproduce
zenohd -l udp/router_hostname:7447
udp/router_hostname:7447
System info
zenohd - v0.10.1-rc
zenoh-pico v0.10.1-rc
Debian 12
WT32-ETH0 & LOLIN32 esp-32
The text was updated successfully, but these errors were encountered: