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

mesh lpn integration to nRF5 SDK problem

My project is a health thermometer using nRF52833. I am working nRF5 SDK 17.0.2 with GCC make complier.

I start with the ble_app_hts example and it is working fine. I try to follow the instruction in integrating doc of nRF5 SDK for mesh 5.0.

I added all the source file, include folder and preprocessor symbol in the make file. I also update the linker script memory configuration same as the lpn example.

I not yet integrate the mesh function into my main code. I just compile the project and the hex build is ok. 

However, when I run this hex on my device. I always return NRF_ERROR_BUSY when calling sd_ble_gap_phy_update during connection to iphone.

I able to connect with nRF connect for desktop, but when disconnecting it will be freeze. 

The integration doc has state about the memory and connection interval issue, but it doesn't has clear instruction about how to configure.

Do you have suggestion for this problem. 

Parents
  • Hi,

    However, when I run this hex on my device. I always return NRF_ERROR_BUSY when calling sd_ble_gap_phy_update during connection to iphone.

    Is this happening before integrating the mesh part? Have you made any modifications to the ble_app_hts before trying to add mesh?

    In my opinion it is easier to start with a mesh example and add the necessary parts from the nRF5 example.

    I able to connect with nRF connect for desktop, but when disconnecting it will be freeze.

     So it connects fine using nRF Connect for Desktop but not with nRF Connect for iPhone? What does the logs say when you disconnect?

  • Is this happening before integrating the mesh part? Have you made any modifications to the ble_app_hts before trying to add mesh?

    It is not happened before, and no modification on the hts service. Just add the source and the problem occur.

    So it connects fine using nRF Connect for Desktop but not with nRF Connect for iPhone? What does the logs say when you disconnect?

    In the log, it looks normal:

    GAP_EVT_DISCONNECTED time:2021-02-03T08:40:06.364Z connHandle:0 reason:22 reasonName:localHostTerminatedConnection

    INFO Disconnected from device C7:3E:B0:D7:17:34, reason: BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION

    But the UART log output freeze and no more updates. In my fw there will be info print out every 10 seconds

Reply
  • Is this happening before integrating the mesh part? Have you made any modifications to the ble_app_hts before trying to add mesh?

    It is not happened before, and no modification on the hts service. Just add the source and the problem occur.

    So it connects fine using nRF Connect for Desktop but not with nRF Connect for iPhone? What does the logs say when you disconnect?

    In the log, it looks normal:

    GAP_EVT_DISCONNECTED time:2021-02-03T08:40:06.364Z connHandle:0 reason:22 reasonName:localHostTerminatedConnection

    INFO Disconnected from device C7:3E:B0:D7:17:34, reason: BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION

    But the UART log output freeze and no more updates. In my fw there will be info print out every 10 seconds

Children
  • George Leung said:

    It is not happened before, and no modification on the hts service. Just add the source and the problem occur.

    So if I understand you correctly, the only thing you have added to the project is the source file, include folder and preprocessor symbol? And changed the linker script memory configuration? Everything works fine before this?

    Are you using a DK or a custom board?

Related