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

MQTT Publisher problem :Ping6 response failed while trying to ping the nrf52DK from Raspberry Pi 3B.

Hello,

I have a problem with MQTT Publisher example on my nrf52832 DK.

1. I am using ubuntu & nordic's SDK15.2.0 for this mqtt example. On raspberry pi 3b I have installed Raspbian stretch lite.

2. I am able to connect device using :

echo "connect XX:XX:XX:XX:XX:XX 1" > /sys/kernel/debug/bluetooth/6lowpan_contol

3.I am following this links MQTT Client - Publisher and IoT SDK RPi3 - with bluetooth_6lowpan.

What went wrong, am I missing something ?

Thanks.

Parents Reply
  • Hi Jorgen,

    Basically I want to connect the nrf52 chip to IPv6 network via 6LoWPAN.

    I am following procedure from this link :

    https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fiot_sdk_user_guides_mosquitto.html

    I am able to execute commands until step 8; after that I wanted to ping nrf52dk using from raspberry.

    I have scanned and connected ble device using following command successfully :

    $hcitool lescan

    $echo "connect <mac address from hcitool output> 1" > /sys/kernel/debug/bluetooth/6lowpan_control

    root@raspberrypi:/home/pi# ifconfig bt0
    bt0: flags=4161<UP,RUNNING,MULTICAST>  mtu 1280
            inet6 fe80::b827:ebff:fe38:5ac0  prefixlen 64  scopeid 0x20<link>
            unspec B8-27-EB-38-5A-C0-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
            RX packets 1  bytes 28 (28.0 B)
            RX errors 0  dropped 2  overruns 0  frame 0
            TX packets 24  bytes 2123 (2.0 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    then i derived link-local IPv6 address of the nRF52 device from its MAC address:

    ping6 fe80::2AA:BBff:feXX:YYZZ -I bt0

    when tried to ping I got following error :Destination unreachable: Address unreachable

    Thanks.

Children
No Data
Related