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

Destination unreachable:address unreachable.


I am trying to set up mqtt between 2 nrf52s and rpi3 with the examples of sdk 15.0.2. I am very new to nrf52, rpi3 and networking. I have read everything needed as much as I can. However when I was following examples from infocenter and https://visualgdb.com/tutorials/arm/nrf51/6lowpan/ , there is a problem occurred. I could connect to nrf52 via bluetooth but I cannot send a ping to it. I have read related docs about Ipv6, 6Lowpan, BLE but could not find what is the point I have missed. May you please direct me to a way to understand my problem?

I am using Raspbian stretch lite version 4.14

SS of result of ping6 command

SS of result of ifconfig command

Parents Reply Children
  • I did not do anything different. I will share my radvd.conf file content and the Keil snippet where I assigned broker address. My hardware is Rpi3 and 2 Nrf52s. 

    radvd.conf

    Actually, I tried many examples I found on web. For eth0 I used this example before and did not change prefix. 

    I succesfully connected to both bluetooth devices as shown below.

    However, when I attempt to send ping6 to my bluetooth device, the result is shown below.

    Thanks

    BR

    Halil

  • Can you try to follow the guides from my previous reply? The sites that you refer to are made for the nRF51, which uses a different softdevice, so it will not work. Is that the application you have flashed to your nRF52?

    Can you please try to follow the guides that is made for the nRF52? 

    By the way, I don't know whether you use nRF52832, nRF52840 or the nRF52810. Please note that they all work with different softdevices. Please use the correct one.

    ---------------: nRF52810: S112

    PCA10040: nRF52832: S132

    PCA10056: nRF52840: S140

  • Hi again,

    Now, I am able to send ping to address, the problem is I missed the point about linux kernel >= 4.12 mine is 4.14 and I need to omit 2 after fe80:: . I could succesfully connect and ping to the devices however cannot see any change when I press to button 1 on publisher. I think I could have some issues from mosquitto broker. I used non secure 1883 port to start broker by this command:

    mosquitto -p 1883

    before this I used 

    sudo apt-get update
    sudo apt-get upgrade -y
    sudo apt-get install mosquitto
    sudo apt-get install mosquitto-clients

    commands to install mosquitto broker to my rpi. What could be the problem here?

    Best regards,

    Halil

Related