I need to maintain a list of bonded devices on my host so I can track the number of bonded devices out of the 14 possible, and to allow unbonding a specific device using clrb and BD_ADDR.
I could send con params to get the address, but I have no indication that a new pairing/bonding took place which will trigger this query.
Any idea how I can implement it?
It is possible to configure a GPIO with the gfu command which is asserted when the BGX establish a connection. Then you can use the con params command to acquire the BD_ADDR of the target device. In this way you can maintain a list on the host controller.
Hi Zupi, thanks for your response.
Since we only have serial connection to the BGX I guess I can detect a connection established by stream_mode message instead of GPIO, right?
The problem I see with this approach is that instead of getting the BD_ADDR once after pairing, I need to request it every time a connection is established. Switching to command mode in order to get con params means potential streaming data loss while in command mode, which I would rather not do at every connection. What I am missing is a notification of successful pairing which can trigger the con params only after pairing to avoid doing it at every connection establishment. There is an error reported on pairing failure, but no message on pairing success. Is there any way to get such a notification on command interface?
Unfortunately, I don't think there is a straightforward solution for this usecase. I'm opening an internal feature request for the development team. Could you please open a Technical support case? It would be easier to keep tracking the request. In the description, please refer to this forum post.