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

How to keep HRM device alive (win_0.3.0-alpha API)

Here's my config:

Dongle part :

  • PCA10000
  • Soft device : s120_nrf51822_1.0.1_softdevice.hex
  • Application : nRF51-ble-driver_win_0.3.0-alpha/s120/hex/hexconnectivity_1M.hex

Peripheral part :

  • PCA10028
  • Soft device : s110_nrf51822_7.1.0_softdevice.hex
  • Application : hex file compiled from ble_app_hrs_s110_pca10028.uvprojx

PC: Simply compiled nrf_heart_rate_collector sample program

While executing the nrf_heart_rate_collector program, I received ~150 HRM values and then connection is lost (reason: 0x13, meaning BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION).

Why is the remote device closing the connection? Does the PC need to send a sort of "keep aliv" request? How can we keep HRM being received for ever?

Edit [22/05/2015]: This is apparently a bug either in dongle or PC driver code. See devzone.nordicsemi.com/.../

Related