-
Notifications
You must be signed in to change notification settings - Fork 26
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
Setting default netif to Openthread breaks libraries (TZ-914) #71
Comments
Hi @motters For the default netif set, we configurated it to openthread just want to tell the lwip if it can not determine a specific packet to forward on some interfaces, just forward it to openthread interface. So the issue might be why the lwip can not forward the packet to access the LwM2M server on WiFi/Ethernet interface? Could you please share more details on this issue? |
Hi @zwx1995esp, Thanks for the help. Sure no problems, but I'm not sure what else to share. We've effectively merged Anjay ESP32 LwM2M + ESP-Thread-BR + some custom unrelated firmware. When
When removed we get no errors from Anjay or OT BR. However we've obviously haven't tested all Thread BR features. Regarding the errors:avs_net_impl.chttps://github.com/AVSystem/avs_commons/blob/2885ea16a2662c3b4ea2c245f3eac408c02e9d73/src/net/compat/posix/avs_net_impl.c#L1268 which seems to eventually call avs_ssl_common.h |
我也遇到了同样的问题,它在这里 #74 。 |
I would agree. However these libraries really should have a function that allows you to bind the correct interface. Instead of them only allowing the default interface to be used. For example Openthread allows you to do this: Though, changing every library isn't possible so a work around is needed here. |
Hi, @motters and @wnylei . Thanks for raising and discussing the issue to us. For a look at your both issues, can I abstract your issues like when BR running both WiFi and Thread, with calling the function So, @motters am I right? and @wnylei is your issue the same with this? |
我觉得DNS是可以正常工作的,我打开debug日志后,显示是可以解析到正确的主机IP的。 部分相关日志如下
|
是的,对于嵌入式设备,如果要为每个应用层协议,都指定一个网络接口,那确实是不太现实和必要的。 我认为具体使用哪个接口,应该是网络底层根据一定的策略自动抉择的。 |
Hi @motters , sync some conclusion from #74 : |
Apologies i missed these comments. I agree with what you found. I can confirm that we removed setting openthread of the default back bone. We've been running 10 border routers like this 24/7 with no problem. Hence i'm not sure why it is needed still? |
Hi,
The following line in the example border router breaks libraries that require network access:
ESP_ERROR_CHECK(esp_netif_set_default_netif(openthread_netif));
esp-thread-br/examples/common/thread_border_router/src/border_router_launch.c
Line 116 in 48b2e47
For example when trying to implement LwM2M using Anjay the stack can no longer access the LwM2M server. I'm assuming it's because it's using the openthread interface and not WiFi / Ethernet.
Commenting out this line fixes things and also doesn't seem to break the Openthread BR. I'm also not sure why we'd want openthead to be the default netif.
Hence my question of: is setting openthread to the default netif required for any features?
Cheers!
The text was updated successfully, but these errors were encountered: