cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

New Contributor II

Background: Using a PSoC 6 MCU as a BLE GATT server for various clients, including a Windows C# application that uses a CySmart BLE dongle (CY5677) and its C# API.

When the PSoC GATT server is connected to the Windows client, invocations of Cy_BLE_L2CAP_LeConnectionParamUpdateRequest (on the PSoC side) all return CY_BLE_ERROR_INSUFFICIENT_RESOURCES. Interestingly, when the PSoC is connected to an Android client under otherwise identical conditions, the invocations succeed. I've tried reducing the PSoC's memory consumption but nothing changes (memory consumption was low to begin with so probably not the issue).

What could be causing this? The error is a bit vague so I don't know what else to fiddle with besides memory use. It's also suspicious to me that it only happens when connected to a PC over a BLE dongle. Thanks in advance.

0 Likes
Reply
1 Solution
Moderator
Moderator

In code exmaple ce212742-ble-42-data-length-security-privacy​, P6 calls this API to update connection parameter with CY5677 dongle finely.

It maybe helpful for you to refer to the handling.

View solution in original post

0 Likes
Reply
3 Replies
Moderator
Moderator

Guess it's possibly casused by the old version BLE stack existing in CY5677.

Have you ever tried out other Central devices other than the two you mentioned. How about a peer PSoC 6 central device?

0 Likes
Reply
New Contributor II

Thanks for the reply and sorry for the slow response --

The only other central device I tried was an HP Pro X2 tablet using the UWP Bluetooth API. The call to Cy_BLE_L2CAP_LeConnectionParamUpdateRequest on the PSoC peripheral didn't return this error when connected to the tablet. Haven't tried a PSoC central yet.

0 Likes
Reply
Moderator
Moderator

In code exmaple ce212742-ble-42-data-length-security-privacy​, P6 calls this API to update connection parameter with CY5677 dongle finely.

It maybe helpful for you to refer to the handling.

View solution in original post

0 Likes
Reply