Slow to obtain IP/none at all esp32c6/ embassy_net- Reserving IP through router fixes the issue #3499
Replies: 3 comments 2 replies
-
I'm not sure if this is related, but read through #2264, I had similar issues. What I ended up with is:
|
Beta Was this translation helpful? Give feedback.
-
Hi yanshay, I have updated my message with your case number, I did find it useful in trying to fix this. Regarding point 2, I must agree with you but do not know why: I have tested smoltcp dhcp_client.rs from the examples page https://github.com/smoltcp-rs/smoltcp/blob/main/examples/dhcp_client.rs with identical results to the embassy_net version. When this issue pops up both the embassy and smoltcp scripts appear to behave the same. In the no_std training for example dhcp_client https://github.com/esp-rs/no_std-training/blob/main/intro/http-client/examples/http-client.rs uses a very specific crate for the stack blocking_network_stack::Stack;. I wonder if this could be helpful in identifying the root cause? Could I help by posting this information in your smoltcp request? Happy to do it if you think it will support, thank you for the quick response.
P.S are you using esp32 for production? Anything you have public like a website you could share more details. Just curious. //Kyle |
Beta Was this translation helpful? Give feedback.
-
I had a breakthrough after reading through your threads @yanshay , and taking a few days to test. I have found a solution. If anyone is using the sleep functionality - light sleep you may have problems obtaining an IP when waking:
When waking up the wifi will be in power savings mode, preventing and sometimes dropping the wifi connection. One can observe this by looking in your router for signal strength. Mine was around 6Mbps in power savings mode (Minimum by default) and 65 with None. The solution is to provide the wifi controller PowerSaveMode::None:
Yanshay - very cool project :) thank you for sharing. The bamboo labs printers are really beautifully designed and sounds like a good addition. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this is esp related, embassy_net, router etc.., Ive done a lot to try and monitor and fix this issue, no matter what I do sometimes my esp32c6 will take a really long time to obtain an IP address or sometimes can wait indefinately.
Ive monitored traffic through Wireshark as well as the logs from the router itself, do not see any errors. Applying a static IP address configuration or reserving the IP will fix this issue. This work around is OK for dev but not for production. Ive checked some previous posts about a fix in 2024, this seems to be something similar to this case in the past. #2264
I am a bit of a loss how to move forward, any suggestions? Does the reservation of the IP on the router provide some hints what it could be? Any other tools i could use?
Would appreciate some support or a point in the right direction
//K
Minimum example
Cargo:
Beta Was this translation helpful? Give feedback.
All reactions