树莓派pi3上的MQTT-SN,通过BLE实现6lowpan [英] MQTT-SN on Raspberry pi3 , 6lowpan over BLE

查看:319
本文介绍了树莓派pi3上的MQTT-SN,通过BLE实现6lowpan的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置一个MQTT-SN代理(rsmb),并使用多个pi3作为客户端.

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

首先,我将在ble连接上建立一个6lowpan.

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

设置pi3(RASPBIAN JESSIE内核v4.4)

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网关(Ubuntu 14.04)

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

我的6lowpan over ble连接正在工作.

And my 6lowpan over ble connection is working .

现在,我想在此连接中使用MQTT-SN协议.

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

如果我仅使用本地连接,就可以了.

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

但是,如果我在BLE连接上使用6lowpan,我认为某些数据包会丢失.

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

详细信息在此url中. 详细信息

The detail is in this url. Detail

我该如何解决这个问题?

How can I slove this problem?

推荐答案

我发现我需要拔掉网络电缆,一切都很好.

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

这篇关于树莓派pi3上的MQTT-SN,通过BLE实现6lowpan的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆