This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HCI_PIN_Code_Request_Negative_Reply

Hi

I am trying to provide the PIN code to BlueZ only when PIN code request event is occurring.
When the PIN code request event is occurring, then the application asks the user to type in the PIN code, and then sends it to the BT Controller with
HCI_pin_code_request_reply.

The problem is that bluetoothd daemon already has send the hci_pin_code_request_negative_reply without waiting to the application.

The procedure to send the PIN code is written C code does the following:

1) It looks for events Bluetooth events
2) When pin_code_request_event occurs then I send the pin_code_request_reply command


Could it be that this issue is related to being in "non-bondable mode"?

 

Thanks,
Nir