- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm using a PSoC 4 (CYBLE-214015-01 32-SMT) as a heart rate collector. I'm using the heart rate collector example code (attached).
I'm trying to connect to a BLE heart Rate sensor but am given a "CYBLE_EVT_GAP_AUTH_FAILED, reason: 0x5" error.
This sensor easily connects to any smartphone App so I'm at a loss as to the issue.
Chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Apologize for the delay. Please add the "StartDiscovery()" function inside CYBLE_EVT_GAP_DEVICE_CONNECTED event as shown below.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please check the Security configurations of your Peer device. If the Peer device doesn't have Encryption then you will get this error code.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thankyou for your swift reply and help. The peer device i'm working with appears to have no encryption. I'm wondering how I can edit this code example to remove the requirement for authentication. I have removed it in the Top Design (see attached). But there must be something in the code still requesting the authentication.
Any help would be greatly appreciated.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Remove CyBle_GapAuthReq(cyBle_connHandle.bdHandle, &cyBle_authInfo) api in CYBLE_EVT_GAP_DEVICE_CONNECTED event as shown in below image.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks again for your help. I have removed that code and now I'm getting a connected message. However, I'm not getting the expected update 'messages' with heart rate values, etc. Would you know of any reason for this, I'm pouring over the code to determine the cause but nothing is standing out to me.
Kind Regards,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Apologize for the delay. Please add the "StartDiscovery()" function inside CYBLE_EVT_GAP_DEVICE_CONNECTED event as shown below.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi P Yugandhar,
That worked great. Thankyou very much for your help.
Kind Regards,
Chris