This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

unstable connection from IoT example: ipv6_icmp to RPI border router

 I use nRF52832 DK as the node and RPI as the border router.

I fowllowed the guide setup the border router and flash the example ipv6_icmp to the nRF52832 DK.

The connection can be established. The local-link address is right.But I can not find the global address.

And most important thing is that the connection can only last about a few seconds, then disconnected unexpectly.

Is there something wrong ?

mount -t debugfs none /sys/kernel/debug
echo 1 > /sys/kernel/debug/bluetooth/6lowpan_enable

echo "connect 00:E9:92:E1:xx:xx 1" > /sys/kernel/debug/bluetooth/6lowpan_control

/home/pi# ifconfig bt0
bt0: flags=4161<UP,RUNNING,MULTICAST> mtu 1280
inet6 fe80::dca6:32ff:fexx:xxxx prefixlen 64 scopeid 0x20<link>
unspec DC-A6-32-xx-xx-xx-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 361 (361.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

/home/pi# ping6 -I bt0 fe80::e9:92ff:fee1:xxxx
ping6: Warning: source address might be selected on device other than bt0.
PING fe80::e9:92ff:fee1:9871(fe80::e9:92ff:fee1:9871) from :: bt0: 56 data bytes
64 bytes from fe80::e9:92ff:fee1:9871%bt0: icmp_seq=1 ttl=64 time=62.2 ms
64 bytes from fe80::e9:92ff:fee1:9871%bt0: icmp_seq=2 ttl=64 time=84.9 ms
64 bytes from fe80::e9:92ff:fee1:9871%bt0: icmp_seq=3 ttl=64 time=107 ms
......
ping: sendmsg: \u6ca1\u6709\u90a3\u4e2a\u8bbe\u5907
ping: sendmsg: \u6ca1\u6709\u90a3\u4e2a\u8bbe\u5907
^C
--- fe80::e9:92ff:fee1:9871 ping statistics ---
15 packets transmitted, 10 received, 33.3333% packet loss, time 168ms
rtt min/avg/max/mdev = 54.804/78.305/106.797/16.196 ms

/home/pi# ifconfig bt0
bt0: error fetching interface information: Device not found

Parents Reply Children
Related