Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

6lowpan with MQTT on nrf52dk, how to connect?

Hi,

I'm on nrf52dk platform.

I have flashed the MQTT publisher  firmware in IOT section provided in nRF5 SDK 14.2, config the ip address and auth info in code; established a border router according to https://devzone.nordicsemi.com/b/blog/posts/6lowpan-for-bluetooth-low-energy-on-openwrt , set up a MQTT broker on remote server with an ipV6 address.

In nRF5 sdk documents, it says:

  1. Ensure that the MQTT broker address is set up correctly in the application.
  2. Open a terminal program (for example PuTTY) to monitor the messages from the kit on the COM port.
  3. Compile and program the application. Observe that the device is advertising.
  4. Prepare the Linux router device by initializing the 6LoWPAN module.
  5. Discover the advertising device by using the hcitool lescan command.
  6. Connect to the discovered device from the Linux console by using the Bluetooth 6LoWPAN connect command.
  7. Check if the connected state is reflected by the LEDs.
  8. Prepare the IPv6 global prefix for the btX interface.
  9. Press Button 1. Observe that the Mosquitto broker reports a new connection from the client "nrfPublisher".
    1. Observe that LED 2 is lit, which means that the connection is established. In case LED 2 is not turned on within 30 seconds, the procedure might have failed. This can be verified by observing a notification of MQTT_EVT_CONNACK with a failure (non-zero result code). Retry MQTT connection by pressing Button 1. Pressing the button before the procedure is complete, either with success or failure, will result in application assertion.
  10. Press Button 2.
  11. Observe that LED 4 is lit. This step may take several seconds to complete.
  12. Observe the publish message and its acknowledgment logged on the Mosquitto broker.
    Now, I'm stuck on step 7, YES, the LED_1 stop blink to indicate ipv6 connection established, and I can ping6 the nrf52dk from the router, when push button_1 to connect, nothing happened. Perhaps becaurse I can not install radvd package on my router, this package never exist in the newest openwrt build. Any other way to proceed next?
Parents Reply Children
No Data
Related