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

HR with pairing over NFC

Hi,

I am trying to get the experimental NFC example "HR with pairing over NFC" to work. I can read the tag correctly with an android phone : the NDEF message is correct and the chip starts to advertise. I confirm on the phone that i want to pair the devices and then... it fails and tells me that the authentification failed (incorrect PIN...) after ~10s

I tried both "Just Works" (which is completly open) and OOB configurations with different types of messages (LE/EP)

Did you manage to get the two devices paired ?

config : android 5.1.1, nRF52 (10036) with sd132.

Thank you for your help.

  • What happens when you use just works? Are you using the nRF Toolbox app on the smart phone?

  • When i use Just works, android asks for a pairing confirmation with "the Bluetooth device" ( BSP_INDICATE_ADVERTISING on the nRF52) , Bluetooth turns on and android tries to pair the HRM with the phone. After a couple of seconds, Bluetooth is turned off on the phone. I don't have the BSP_INDICATE_CONNECTED and advertising is off. I can re-touch the NFC tag with the phone : same thing happens. I think that the NDEF data are correct : I have the Handover Select record, the MIME type (.../vnd.bluetooth.le.oob) and Bluetooth SSP record too (/vnd.bluetooth.ep.oob).

    I have the Toolbox app. However, the pairing is handled by android. The app is necessary when it comes to HR data, isn't it ?

  • I believe the devices are paired, but the smart phone will disconnect, and on disconnect the nRF52 will not restart advertising.

    If you just add some code to start advertising in the BLE_GAP_EVT_DISCONNECTED event in on_ble_evt() you should be able to connect, with for example nRF Toolbox.

  • Unfortunatly, the devices are not paired (the nordic_hrm does not appear in the BL paired device list). I tried on several phones. I tried to enable advertising under BLE_GAP_EVT_DISCONNECTED but this case is never executed since theres no disconnection. Moreover, I thought that the devices would actually pair and then connect, automatically : "3.Confirm pairing with 'Nordic_HRM' in a pop-up window on the smartphone/tablet and observe that the BSP_INDICATE_CONNECTED state is indicated"

    Thank you for your help

  • Strange. The smart phone should connect, then pair, then disconnect. I tested this with have Bluetooth OFF initially. I get the same behavior as you, but the HRM device appears in Bluetooth settings as a paired (bonded) device. Could you sniff the BLE connection so we can see what is actually happening? You can use the nRF Sniffer.

Related