Implement Bluetooth mesh using nrf52840

I have the SH6MDBT50Q BLE module, and I need the nRF SDK to implement a Bluetooth Mesh connection for transmitting and receiving data on both sides. I am using Segger Embedded Studio IDE and a J-Link Segger debugger for programming and debugging. Could you please guide me on the procedure or provide a user guide for implementation?

  • Hello,

    I am using Segger Embedded Studio IDE

    So this means that you are working on the SDK for Mesh, v5.0.0?

    In this case, the best hint I can give is to look at one of the samples, such as the light_bulb sample, and modify the model to have an array of bytes, instead of just one bit (on_off) and make all the devices publish on the same "channel" (virtual channel) that they subscribe to. 

    In the nRF Connect SDK, which is our current SDK, we have a sample doing this. It is called "chat", and you can find it in NCS\nrf\samples\bluetooth\mesh\chat. This sample will take whatever you enter through UART, and publish it on a channel that the other nodes are listening to. So you will have a "chat over Mesh" functionality. This is fairly easy to modify to send whatever data you want to send to the other devices.

    Best regards,

    Edvin

  • Hi Edvin,

    I am facing an issue opening the nRF Connect SDK (downloaded via Visual Studio) in Segger Embedded Studio. Visual Studio opens the SDK folder, but in SES, I can only open .c files. How can I open the C:\ncs\v2.5.1\zephyr\samples\bluetooth\mesh folder in SES? or I need to convert the nrf sdk mesh folder into embedded studio file format?

  • Hi,

    If you are using nRF Connect SDK, please follow our documentation and tutorial. 
    The best place to get started with nRF Connect SDK is the Dev Academy NCS fundamental course. 
    B
    asically you don't use SES to open nRF Connect SDK project. You would need to install and use nRF Connect Extension on Visual Studio Code

Related