TI E2E Community
Low Power RF & Wireless Connectivity
WLAN Applications Forum
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 events2) 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"?
You need to register your application as an agent with the adapter interface (RegisterAgent), then the agent will be called when user input is needed. A sample c agent application exists in bluez-4.xx/test/agent.c.
Hope this helps.
If the adapter is non-pairable (org.bluez.Adapter Properties.Pairable) bluetooth daemon will be sending "PIN Code Request Negative Reply" without prompting the agent.
Is that question is still open? Or did Sinoj answer solve the issue?
Pin code request negative reply issue was solved by writing an agent to handle the pin code requests.
Issue is closed.Thanks,Nir
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.