How long does Cypress BLE DLL Pair function take?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
D_Sd_3235936
Level 4
Level 4
25 sign-ins 50 questions asked 25 replies posted

I am trying to connect to a PSOC4 BLE device via PC using Cypress DLL. 

When I try to pair to the device, the DLL function (result.Device.Pair) returns a "fake"  success,  because the device does not show  that pairing did succeed at that moment.

Questions:

1. Is there a way to know if pairing truly succeeded? Checking device side  is not an option.

2. If not, how long does "result.Device.Pair(cyPairSettings)" take?

3. This is another issue, why does sometimes GattMtuExchanged (..) does not occur? 
(after running :Peripheral_.GattClient.ExchangeMtu(cyGattExchangeMtuInfo);)

 

Thanks!

 

0 Likes
1 Solution

Hello @D_Sd_3235936 ,

If you see issues with CySmart app, this means that you might be having some problems on the device firmware side. Please consider attaching the project along with relevant steps to reproduce the issue. 

On the host side application, you can check if the pairing is successful or not using the CyBleDeviceCallback.OnPairingCompleted callback. 

To understand how you can implement the callback functions, please refer to this thread. Although it shows the callback for a successful MTU Negotiation, the process is similar for the pairing callback as well.

Regards,
Dheeraj

View solution in original post

0 Likes
4 Replies