-
Notifications
You must be signed in to change notification settings - Fork 28
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
Thread communication with external networks is unstable (TZ-352) #36
Comments
英语很烂,不知道有没有表达清楚,使用中文说一遍:我使用我的电脑一直在ping 一个node,时而通时而断,断的时候提示请求超时。我现在的网络拓扑是这样,我有一个路由器,我的电脑和otbr都连接到了这个路由器,这个路由器支持ipv6,并且没有使用dhcpv6,我的电脑和otbr都生成了运营商分配的ipv6前缀的地址,我手里还有一个ESP32-H2-DevKitM-1,他作为一个node添加进了thread网络,起初他的角色是child,后来自动切换成了router。现在我是用这个作为router的node去ping我的电脑,可以ping通,使用电脑去ping这个node,有时也能ping通,但是会出现我上面说的现象。我将otbr的日志等级设置到了debug,通过日志我看到了otbr似乎一直在切换它的路由策略,因为我现在的网络中存在了两个ipv6前缀,一个是运营商给我分配的,另一个是otbr的,这可能导致某个有效的路由一直在被弃用和被启用之间切换,从而导致了上面的现象。 |
问下,你有wireshark可以抓包嘛?可以抓一下 ping 过程中,时而通时而断的时候wireshark的包吗?流程如下, |
由于抓包日志里带了太多信息,是否可以提供一个邮箱或者其它联系方式单独发给你。 |
公司邮箱附件大小上限是5M,你可以直接打一个压缩包,上传到github这个上面就可以(把压缩包拖到comment框里面就行)。 |
请阅读压缩包里的readme,只提供了ICMPV6的数据包,如果需要其它请告诉我还需要哪些类型的数据包。 |
请尝试修改这个代码:
改为这个:
应该会对你的问题有帮助 |
好的,非常感谢,我会试一下,我还有个问题请教一下,如果node使用了matter(比如esp-matter里的light例程),该怎样连接br和电脑端的chip-tool通信? |
br 不需要做任何改动,只要电脑和 br 能ping 通,chip-tool 就可以和 br 通信。 在用 chip-tool 给 Thread 设备配网时,
chip-tool 指令参考 |
我连续ping了近一个小时,没有再出现请求超时的情况,这个更改是否考虑提交到esp-idf中? |
这个文档描述的好像是通过ble给节点配网,那是否我的电脑还需要一个ble-dongle,这个ble-dongle有什么要求吗,笔记本电脑带的蓝牙行不行?我可以通过手机给matter over thread的节点配网吗,通过二维,使用哪个app? |
笔记本带的蓝牙是可以的。 chip-tool 是 matter 日常开发用的工具,也可以用几个生态的 手机 APP (Google Home, Apple Homekit, Amazon Alexa),需要搭配生态的音箱作为 BR 才能用。 |
这个我们会改到idf中。 |
感谢各位解答,没有更多问题了。 |
Hello,I've encountered another issue. I've been continuously pinging a node from my computer, and it intermittently connects and disconnects. When it disconnects, it shows a 'Request Timed Out' message. Here's the current network topology: I have a router to which both my computer and OTBR are connected. The router supports IPv6 and does not use DHCPv6. Both my computer and OTBR have generated IPv6 addresses based on the prefix assigned by my ISP. I also have an ESP32-H2-DevKitM-1, which was added as a node to the Thread network. Initially, it acted as a child node, but later it automatically switched to a router role. Currently, I'm using this router node to ping my computer, and it works sometimes. However, when I try to ping this node from my computer, it occasionally succeeds, but I'm encountering the issue I mentioned earlier. I've set the OTBR log level to 'debug,' and from the logs, it seems that OTBR is constantly switching its routing strategy. This might be due to the presence of two IPv6 prefixes in my network – one assigned by the ISP and another by OTBR. This could lead to continuous switching between active and inactive routes, resulting in the issue mentioned above. Here are some log entries.
The routing strategy has changed, and the source address has been modified:
After running like this for a while, my computer started displaying 'Request Timed Out' messages, and there were no forwarding-related logs:
Everything was back to normal until the routing strategy changed again:
I don't know how to configure OTBR or my router to solve this problem.
The text was updated successfully, but these errors were encountered: