MQTT-SN on Raspberry pi3 , 6lowpan over BLE

南楼画角 提交于 2019-12-23 03:11:09

问题


I'm trying to set a MQTT-SN broker (rsmb) ,and using several pi3 as clients.

First , I will build a 6lowpan over ble connection.

Setting pi3 (RASPBIAN JESSIE kernel v4.4)

sudo su
hciconfig hci0 reset
modprobe bluetooth_6lowpan
echo 1 > /sys/kernel/debug/bluetooth/6lowpan_enable
hciconfig hci0 leadv

BLE gateway (Ubuntu 14.04)

sudo su
hciconfig hci0 reset
modprobe bluetooth_6lowpan
echo 35 > /sys/kernel/debug/bluetooth/6lowpan_psm
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
echo "connect *my_pi3_bluetooth_address* 1" > /sys/kernel/debug/bluetooth/6lowpan_control
ifconfig bt0 add 2001:xxxx:xxxx:xxxx::/64
service radvd restart

And my 6lowpan over ble connection is working .

Now I want to use MQTT-SN protocol within this connection.

If I only uses local connection,it's fine.

But If I uses 6lowpan over BLE connection,i think that some of packets are lost.

ERROR Keep alive error: timed out while waiting for a PUBLISH gateway

The detail is in this url. Detail

How can I slove this problem?


回答1:


I found out that I need to unplug the network Cable, and it's all fine.



来源:https://stackoverflow.com/questions/40107956/mqtt-sn-on-raspberry-pi3-6lowpan-over-ble

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!