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

nRFConnect to a Mesh light server with custom service-characteristics

Hi Nordic, I would like to be able to connect to a Mesh node server from Mesh SDK light control example, add a service with a characteristic and change the characteristic in nRF Connect App.

My goal is to update advertising data from a custom characteristic value on my light control server mesh node. I added advertisement and it works, I see my mesh light server node in nRFConnect.

Now I try to add a characteristic in a custom service, like in service beginner's tuto, but Mesh SDK doesnt use same libraries to init advertising, etc. Is there something I should check different than trying to add nRF BLE library in SES IDE in order to add service like in the service/characteristic tutorial. Am I on the right way trying to do this. Is there something I could miss in the way I try to add a service to the Mesh light server node.

Thanks a lot.

Parents
  • Hi,

    Regarding the "duty cycle", that seems like a good idea. From the link I first posted:

    Concurrent SoftDevice and mesh activity

    By design, the SoftDevice activity is prioritized over mesh activity. Therefore, you should keep the connection and advertisement intervals used by the SoftDevice as large as possible (i.e. infrequent) when using Bluetooth low energy connections. If scanning, keep the scan duty cycle as low as possible. You should also reduce mesh activity while the SoftDevice is doing fast advertising and continue normal activity after a connection is established.

    I have created a SES project for ble_app_template for SDK 12.3. I used SES version 3.26a. You should only need to unzip, and place the files in the folder SDK_folder\examples\ble_peripheral\ble_app_template\pca10040\s132\arm5_no_packs for it work. It's unfortunately not integrated with mesh, but it should maybe give you a starting point so you can integrate the mesh into the template example.

    Attachment:

    SES_ble_app_template_pca10040_s132_SDK12_3.rar

Reply
  • Hi,

    Regarding the "duty cycle", that seems like a good idea. From the link I first posted:

    Concurrent SoftDevice and mesh activity

    By design, the SoftDevice activity is prioritized over mesh activity. Therefore, you should keep the connection and advertisement intervals used by the SoftDevice as large as possible (i.e. infrequent) when using Bluetooth low energy connections. If scanning, keep the scan duty cycle as low as possible. You should also reduce mesh activity while the SoftDevice is doing fast advertising and continue normal activity after a connection is established.

    I have created a SES project for ble_app_template for SDK 12.3. I used SES version 3.26a. You should only need to unzip, and place the files in the folder SDK_folder\examples\ble_peripheral\ble_app_template\pca10040\s132\arm5_no_packs for it work. It's unfortunately not integrated with mesh, but it should maybe give you a starting point so you can integrate the mesh into the template example.

    Attachment:

    SES_ble_app_template_pca10040_s132_SDK12_3.rar

Children
No Data
Related