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

How to establish serial communication between 3 nRF52840 dongles using mesh.

Hello everyone,

I want to establish serial communication between 3 nRF52840 dongles using mesh.

Can you suggest me the steps from begining. Also i have read the documentation blog of nordic semiconductor.

I have downloaded nrf sdk for mesh version 2.1 and nrf sdk for mesh version 15. After this tell me how to implement the examples on multiple dongles.

Also i have downloaded nrf connect for pc.

Parents
  • Usually, "serial communication" would be taken to mean a wired connection - but then you talk about BLE Mesh.

    Please clarify.

  • Do you want to get the light switch example to work on the 52840 dongles instead of using dev kits? Do you want one dongle to be the provisioner via the serial example & the pyaci script, one dongle to be the light switch client & the other dongle to be the light switch server? Also, I would recommend upgrading to the latest mesh sdk v2.2.0 that was released today.

  • Thank you i will download the latest version. can you tell me the next steps after downloading the SDK. Also can I configure mesh using nRF connect desktop application or i need to build the hex file in segger embedded studio and then flash the hex file to dongle. I want to connect all 3 dongles for home automation. That means I want to send signal from one device and all other device should receive the signal. This is my project. Please help

  • Hi,

    Do you by any chance have a nRF52 dev kit too? I have gotten the light switch server example to work on the dongle, but only when it is programmed via a dev kit & connected to the dev kit via a SWD cable, like shown below:

    I will continue to take a look at why the dongle is not being provisioned when only attached to the usb port. I suspect it has something to do with Segger RTT. I used a 52832 dev kit as the provisioner & one for the client example & the 52840 dongle was the light switch server. I was successfully able to send messages over the mesh network from the client to the dongle server.

    Is it correct that you want to provision the mesh network via the nRF Mesh application for Android/iOS? Do you want to have one light switch client & two light switch servers for example?

  • Hello, I don't have any development kit. Is it possible to establish communication using mesh network between three nRF52840 dongles just by using the dongles?  

  • Can you post the image of the connections please. So is it like after programming the dongle via computer we have to remove it from computer and connect it to development kit? My main doubt is how do I test any example (like ble_uart), because after flashing the dongle it stops advertising.

  • I believe you will still need to have the dongle connected to a usb port when you are running the mesh. As you can see from the main product page for the dongle, there is no debug support. Since there is no Segger chip on the dongle, there is no segger rtt for logging like it is done in the mesh sdk using a nrf52 dev kit. This is the reason that I have soldered on a 10 pin adapter to the P1 port on the dongle. The 10 pin SWD cable is attached to the debug out port on the 52 dev kit. The dev kit, as you most likely know, has a segger chip & therefore you can debug the dongle via the dev kit.

    It should still be possible to set up a mesh network using only dongles, but you would most likely require some dev kits to act as a debugging interface to the dongles. Like I mentioned before, I have gotten the client & server to work on the dongle when the dongle is connected via the dev kit. The dongle does not currently work out of the box when only attached to the usb port (no 10 pin cable attached). I am still trying to figure out why this is the case. I will update the thread when I have any updates.

    Here are two pictures of the connection:

    If you take a look at sdk 15.1 & search for pca10059 in the examples folder, you can find examples that will work out of the box with the dongle.

    Kind Regards,

    Bjørn

Reply
  • I believe you will still need to have the dongle connected to a usb port when you are running the mesh. As you can see from the main product page for the dongle, there is no debug support. Since there is no Segger chip on the dongle, there is no segger rtt for logging like it is done in the mesh sdk using a nrf52 dev kit. This is the reason that I have soldered on a 10 pin adapter to the P1 port on the dongle. The 10 pin SWD cable is attached to the debug out port on the 52 dev kit. The dev kit, as you most likely know, has a segger chip & therefore you can debug the dongle via the dev kit.

    It should still be possible to set up a mesh network using only dongles, but you would most likely require some dev kits to act as a debugging interface to the dongles. Like I mentioned before, I have gotten the client & server to work on the dongle when the dongle is connected via the dev kit. The dongle does not currently work out of the box when only attached to the usb port (no 10 pin cable attached). I am still trying to figure out why this is the case. I will update the thread when I have any updates.

    Here are two pictures of the connection:

    If you take a look at sdk 15.1 & search for pca10059 in the examples folder, you can find examples that will work out of the box with the dongle.

    Kind Regards,

    Bjørn

Children
Related