Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ble_ant_hrm_pca10040_s332_uart can't work

I am using the nRF5_SDK_14.2.0 with two PCA10040 boards. ANT+ HR simulate from ANT+ simulator tool with ANT+ USB dongle.

Test 1 : SDK sample ble_ant_hrm_pca10040_s332 work well . i can connect the Nordic_HRM by nRF Toolbox and read the correct heardrate value as well.

Test 2 : SDK sample ble_ant_hrm_pca10040_s332_uart can't work , nRF Toolbox show "Error on reading characteristic (1)" after i click the connect . Trace the code and found it can read the correct ANT+ HR value and call ble_hrs_heart_rate_measurement_send()  without any error.

Any comment .

thanks 

Parents
  • Hi,

    I downloaded a clean copy of the nRF5 SDK 14.2.0 and ran the ble_ant_app_hrm and experimental_ant_ble examples and it works as intended. See screenshots below from nrRF Connect and nRF Toolbox where I am able to connect and discover services as intended.

            

    Try redoing the whole process step by step. Is there anything you may be doing differently than described in the documentation?

    Best regards,
    Rune Holmgren

  • Thanks for your verification . I retest it again ( i did not do any modification) and found nRF Toolbox can connect now . I do not know why . But i notice one thing , if i keep doing the connect and disconnect in nRF Toolbox it will pop up the "Error on connection state change (133)" sometimes . The fail rate is about 5% .

  • I don't seem to be able to get the connect/disconnect issue you are describing. There might be some rare event, but performing 27 connect/disconnect cycles between a ble_ant_app_hrm device and a Huawei Mate 8 test phone worked as intended every time. 

    If you are able to reproduce the issue somewhat reliably you may want to try to run it with logging enabled and maybe a BLE sniffer. However, production testing of the application before the release was successful and I can't reproduce it now either so my guess would be that it's just a small flaw in the Bluetooth stack on your phone/central device. I am not sure this is something you need to worry about.

    Best regards,
    Rune Holmgren

Reply
  • I don't seem to be able to get the connect/disconnect issue you are describing. There might be some rare event, but performing 27 connect/disconnect cycles between a ble_ant_app_hrm device and a Huawei Mate 8 test phone worked as intended every time. 

    If you are able to reproduce the issue somewhat reliably you may want to try to run it with logging enabled and maybe a BLE sniffer. However, production testing of the application before the release was successful and I can't reproduce it now either so my guess would be that it's just a small flaw in the Bluetooth stack on your phone/central device. I am not sure this is something you need to worry about.

    Best regards,
    Rune Holmgren

Children
No Data
Related