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

add mesh sdk to nRF5_SDK_14.0.0

Hi I use the example "light_switch/server" project of nrf5_SDK_for_Mesh, and I want to add ble scan and connect func to the project, and make it possible be discoveried and connected by the app "nRF Connect" on phone. I have got a example "nRF5_SDK_14.0.0_3bcc1f7\examples\ble_peripheral\experimental\ble_app_gatts_c" on nRF5_SDK_14.0.0, and it can achieve the above mentioned functions,so I want to combine this two examples. I make it compile completed, and when I run the firmware, and a MESH ASSERT error occurred. First I run this image description

then I run this

image description

the error occured at "RETURN_ON_ERROR(sd_softdevice_is_enabled(&softdevice_is_enabled));" image description

Parents
  • Hi Mark,

    I don't think using ble_app_gatts_c is the right project to start with. It's only utilize the service changed indication which is not related to what you are planing to do.

    If you want to start, try with something more simple, such as ble_app_hrs or ble_app_nus

    The error you got was most likely related to how your initialize the softdevice. You can check which function return the error by using addr2line -e your elf file 0x0003C46E

    You can have a look at the answer by Rick here. It was made for SDK v12 and older Mesh SDK, but the principle is the same.

    I would suggest before you combine anything, try to understand the code and how it work on both the mesh example and BLE example.

Reply
  • Hi Mark,

    I don't think using ble_app_gatts_c is the right project to start with. It's only utilize the service changed indication which is not related to what you are planing to do.

    If you want to start, try with something more simple, such as ble_app_hrs or ble_app_nus

    The error you got was most likely related to how your initialize the softdevice. You can check which function return the error by using addr2line -e your elf file 0x0003C46E

    You can have a look at the answer by Rick here. It was made for SDK v12 and older Mesh SDK, but the principle is the same.

    I would suggest before you combine anything, try to understand the code and how it work on both the mesh example and BLE example.

Children
No Data
Related