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

Error occurring during the connection of heart rate band connection with nRF52832 Dev kit using ble_hrs_c example

Hi,

I am trying the connect MIO Fuse heart rate band. It follows the standard specified by Bluetooth SIG i.e Heart rate profile UUID is 180D and the heart rate measurement UUID is 2A37 and the band is working fine if i connect it with the nRF connect desktop application. When i try to connect it in the Segger embedded studio using the nRF_SDK_V15 BLE_HRS_C example by mentioning the peripheral name i.e " MIO GLOBAL-FUSE"  or the mac address it throws error as given the picture below. 

At first it was throwing some fatal error and now it is throwing a different error but i haven't changed anything in the code. There is not issue in the band or the board. Ultimately i want to collect the data in the central nRF52832 board. I don't why i am unable to read the data. Kindly help me for resolving the issue. 

Thanks and Regards,

Santosh Krishnan 

  • Hi Santosh,

    It seems like you could get the error from:

    - line 395 in "peer_data_storage.c" or line 383 (peer_data_find()):

    // Shouldn't fail, unless the record was deleted in the meanwhile or the CRC check has failed.
    ret = fds_record_open(&rec_desc, &rec_flash)

    I recommend that you try to debug and set a breakpoint to confirm this.


    Do you know why the device you tries to connect to disconnects, maybe it could be some sort of whitelisting it that device as well.(?)

    It could be that it tries to add it to it's own whitelist, but disconnects before it manage to read the data. 

    Could you try to connect to another nRF that runs the "ble_app_hrs" example to see it you get the same error?

    Also a sniffer log from the communication between the central and the peripheral could be beneficial to see what is going "on the air".

     

     

  • Hi Sir,

    Thanks for your reply. Yes i have tried all the things you said except the communication between two nrf52832 boards one as peripheral and other as the central but i will do it within a day i have ordered new board. In the nrf sniffer there is some issue and it seems little complex and it is not detecting the com port of the device which i have attached. I have also tried the debugging and set the break point as you said and i am getting same errors. Please see the screen shot attached below.  It has stopped in the "app_error_weak" file. 

    What am i supposed do now ? Kindly help me. 

    Thanks,

    Santosh Krishnan 

  • Hi Santosh,

    Could you set a Breakpoint at line 830 in main.c and screenshot the Call stack.

    That would give you insight into what functions did get called before the error occured in that spot.

     

    Could you describe in little more depth what actually happens with the sniffer device? You are using the V2 ?

Related