Windows CySmart 1.3.0.8 Premature Disconnect

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

cross mob
CaKu_4284131
Level 5
Level 5
50 replies posted 25 replies posted 10 likes received

I have a PSoC 6 BLE application that I am running on PSoC® 6 BLE Pioneer Kit (CY8CKIT-062-BLE) (https://www.cypress.com/documentation/development-kitsboards/psoc-6-ble-pioneer-kit-cy8ckit-062-ble) as well as Clicker 2 for PSoC® 6 | Mikroe.​ The BLE parts are based on CE220331_BLE_UI_RTOS01.

I can use CySmart to connect to the Pioneer Kit:

[21:56:10:691] : 'Resolve and Set Peer Device BD Address' request sent

[21:56:10:691] : BD Address Type: PUBLIC_ADDRESS

[21:56:10:691] : BD Address: 73:5F:B0:50:A0:00:00:00

[21:56:10:696] : 'Command Status' event received

[21:56:10:696] : Status: BLE_STATUS_OK

[21:56:10:696] : 'Resolve and Set Peer Device BD Address Response' event received

[21:56:10:696] : Status: 0x01

[21:56:10:696] : 'Command Complete' event received

[21:56:10:696] : Status: BLE_STATUS_OK

[21:56:10:696] : 'Establish Connection' request sent

[21:56:10:696] : BD Address Type: PUBLIC_ADDRESS

[21:56:10:696] : BD Address: 73:5F:B0:50:A0:00:00:00

[21:56:10:700] : 'Command Status' event received

[21:56:10:700] : Status: BLE_STATUS_OK

[21:56:10:717] : 'Establish Connection Response' event received

[21:56:11:093] : 'Enhanced connection complete' event received

[21:56:11:093] : Status: 0x00

[21:56:11:093] : Role: 0x00

[21:56:11:093] : BD Address Type: PUBLIC_ADDRESS

[21:56:11:093] : BD Address: 73:5F:B0:50:A0:00:00:00

[21:56:11:093] : Local resolvable address: 00:00:00:00:00:00:00:00

[21:56:11:093] : Peer resolvable address: 00:00:00:00:00:00:00:00

[21:56:11:093] : Connection Interval: 8.75 ms

[21:56:11:093] : Slave Latency: 0

[21:56:11:093] : Supervision Timeout: 100 ms

[21:56:11:093] : 'Command Complete' event received

[21:56:11:093] : Status: BLE_STATUS_OK

[21:56:11:093] : 'Data length changed notification' event received

[21:56:11:093] : Connection maximum Tx octet: 251

[21:56:11:093] : Connection maximum Tx time: 2120 µs

[21:56:11:093] : Connection maximum Rx octet: 251

[21:56:11:093] : Connection maximum Rx time: 2120 µs

[21:56:11:093] : 'Get local device security keys' request sent

[21:56:12:161] : 'Command Status' event received

[21:56:12:161] : Status: BLE_STATUS_OK

[21:56:12:161] : 'Get local device security keys response' event received

[21:56:12:161] : Key flags: INITIATOR_ENCRYPTION_INFORMATION, INITIATOR_IDENTITY_INFORMATION, INITIATOR_SIGNATURE_KEY, RESPONDER_ENCRYPTION_INFORMATION, RESPONDER_IDENTITY_INFORMATION, RESPONDER_SIGNATURE_KEY

[21:56:12:161] : Long Term Key (LTK): [D6:93:E8:A4:23:55:48:99:1D:77:61:E6:63:2B:10:8E]

[21:56:12:161] : Encrypted Diversifier (EDIV) and Random Number: [99:1F:26:1E:F6:09:97:2E:AD:7E]

[21:56:12:161] : Identity Resolving Key (IRK): [0A:2D:F4:65:E3:BD:7B:49:1E:B4:C0:95:95:13:46:73]

[21:56:12:161] : Identification Address: [0x00A050504320, PUBLIC_ADDRESS]

[21:56:12:161] : Connection Signature Resolving Key (CSRK): [90:D5:06:95:92:ED:91:D7:A8:9E:2C:DC:4A:93:5B:F9]

[21:56:12:162] : 'Command Complete' event received

[21:56:12:162] : Status: BLE_STATUS_OK

[21:56:12:162] : 'Set OOB data' request sent

[21:56:12:162] : OOB flag: Disable

[21:56:12:162] : OOB Key: [00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00]

[21:56:12:162] : OOB Data: [00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00]

[21:56:12:166] : 'Command Status' event received

[21:56:12:166] : Status: BLE_STATUS_OK

[21:56:12:168] : 'Command Complete' event received

[21:56:12:168] : Status: BLE_STATUS_OK

[21:56:12:168] : 'Exchange GATT MTU Size' request sent

[21:56:12:168] : MTU: 0x0200

[21:56:12:172] : 'Command Status' event received

[21:56:12:172] : Status: BLE_STATUS_OK

[21:56:12:187] : 'Exchange GATT MTU Size Response' event received

[21:56:12:187] : MTU: 0x0200

[21:56:12:187] : 'Command Complete' event received

[21:56:12:187] : Status: BLE_STATUS_OK

[21:56:12:187] : 'Read using Characteristic UUID' request sent

[21:56:12:187] : Start Handle: 0x0001

[21:56:12:187] : End Handle: 0xFFFF

[21:56:12:187] : UUID: 0x2A00

[21:56:12:193] : 'Command Status' event received

[21:56:12:193] : Status: BLE_STATUS_OK

[21:56:12:214] : 'Read using Characteristic UUID Response' event received

[21:56:12:214] : Characteristic value 1:

[21:56:12:214] : --------------------------------

[21:56:12:214] : Attribute Handle: 0x0003

[21:56:12:214] : Value: [53:74:61:6C:77:61:72:74]

[21:56:12:214] : 'Command Complete' event received

[21:56:12:214] : Status: BLE_STATUS_OK

but if I connect to the Clicker it aborts pretty quickly:

[21:57:08:480] : 'Resolve and Set Peer Device BD Address' request sent

[21:57:08:480] : BD Address Type: PUBLIC_ADDRESS

[21:57:08:480] : BD Address: 79:2E:E8:50:A0:00:00:00

[21:57:08:480] : 'Command Complete' event received

[21:57:08:480] : Status: BLE_STATUS_OK

[21:57:08:486] : 'Command Status' event received

[21:57:08:486] : Status: BLE_STATUS_OK

[21:57:08:486] : 'Resolve and Set Peer Device BD Address Response' event received

[21:57:08:486] : Status: 0x01

[21:57:08:486] : 'Command Complete' event received

[21:57:08:486] : Status: BLE_STATUS_OK

[21:57:08:487] : 'Establish Connection' request sent

[21:57:08:487] : BD Address Type: PUBLIC_ADDRESS

[21:57:08:487] : BD Address: 79:2E:E8:50:A0:00:00:00

[21:57:08:491] : 'Command Status' event received

[21:57:08:491] : Status: BLE_STATUS_OK

[21:57:08:518] : 'Establish Connection Response' event received

[21:57:08:868] : 'Enhanced connection complete' event received

[21:57:08:868] : Status: 0x00

[21:57:08:868] : Role: 0x00

[21:57:08:868] : BD Address Type: PUBLIC_ADDRESS

[21:57:08:868] : BD Address: 79:2E:E8:50:A0:00:00:00

[21:57:08:868] : Local resolvable address: 00:00:00:00:00:00:00:00

[21:57:08:868] : Peer resolvable address: 00:00:00:00:00:00:00:00

[21:57:08:868] : Connection Interval: 8.75 ms

[21:57:08:868] : Slave Latency: 0

[21:57:08:868] : Supervision Timeout: 100 ms

[21:57:08:868] : 'Command Complete' event received

[21:57:08:868] : Status: BLE_STATUS_OK

[21:57:08:868] : 'Data length changed notification' event received

[21:57:08:868] : Connection maximum Tx octet: 251

[21:57:08:868] : Connection maximum Tx time: 2120 µs

[21:57:08:868] : Connection maximum Rx octet: 251

[21:57:08:868] : Connection maximum Rx time: 2120 µs

[21:57:08:868] : 'Get local device security keys' request sent

[21:57:08:904] : 'Connection Terminated Notification' event received

[21:57:08:904] : Reason: CONNECTION_TIMEOUT

[21:57:08:976] : 'Command Status' event received

[21:57:08:976] : Status: BLE_STATUS_OK

[21:57:08:976] : 'Get local device security keys response' event received

[21:57:08:976] : Key flags: INITIATOR_ENCRYPTION_INFORMATION, INITIATOR_IDENTITY_INFORMATION, INITIATOR_SIGNATURE_KEY, RESPONDER_ENCRYPTION_INFORMATION, RESPONDER_IDENTITY_INFORMATION, RESPONDER_SIGNATURE_KEY

[21:57:08:976] : Long Term Key (LTK): [D6:93:E8:A4:23:55:48:99:1D:77:61:E6:63:2B:10:8E]

[21:57:08:976] : Encrypted Diversifier (EDIV) and Random Number: [99:1F:26:1E:F6:09:97:2E:AD:7E]

[21:57:08:976] : Identity Resolving Key (IRK): [0A:2D:F4:65:E3:BD:7B:49:1E:B4:C0:95:95:13:46:73]

[21:57:08:976] : Identification Address: [0x00A050504320, PUBLIC_ADDRESS]

[21:57:08:976] : Connection Signature Resolving Key (CSRK): [90:D5:06:95:92:ED:91:D7:A8:9E:2C:DC:4A:93:5B:F9]

[21:57:08:976] : 'Command Complete' event received

[21:57:08:976] : Status: BLE_STATUS_OK

Strangely, I can connect just fine to the Clicker using CySmart on Android, as well as nRF and LightBlue. Why doesn't CySmart for Windows like my Clicker?

0 Likes
8 Replies
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi,

Can you please confirm whether this issue is happening only with your appliation or with PSoC Creator code examples also?

Thanks and regards

Ganesh

0 Likes

Hi Ganesh,

I downloaded a fresh copy of CE220331, and gave it a try. It is a little like flying blind, since the LEDs and pushbuttons are on different GPIOs. However, Cysmart was able to connect and stay connected.

-Carl

EDIT: Going back to my main application, I have found that if I kill my other tasks, Cysmart is able to connect and stay connected. But nRF and LightBlue can connect and stay connected while my other tasks run.

"BLE Task" is running at high priority:

Task          State  Priority  Stack    #

************************************************

UART Task       X       2       572     1

IDLE            R       0       175     2

VibTask         B       2       219     10

SnTTask         B       5       307     11

Card Detect     S       2       151     6

BLE Task        B       19      204     4

UserSDCrdTask   B       4       214     5

SysSDCrd0Task   B       4       158     7

SysSDCrd1Task   B       4       158     8

UITask          B       3       362     9

Tmr Svc         B       19      163     3

0 Likes
lock attach
Attachments are accessible only for community members.

I've tried to make my BLE configuration as similar as possible to that in CE220331, but I still get a timeout:

[20:14:15:917] : 'Scan Progress Result' event received

[20:14:15:917] : Discovered Item 1:

[20:14:15:917] : ------------------------

[20:14:15:917] : Advertisement Event Type: Connectable undirected

[20:14:15:917] : BD Address Type: PUBLIC_ADDRESS

[20:14:15:917] : BD Address: 79:2E:E8:50:A0:00:00:00

[20:14:15:917] : Advertisement Event Data: 02:01:05:09:09:53:54:41:4C:57:41:52:54

[20:14:15:917] : RSSI: -41 dBm

[20:14:15:918] : 'Scan Progress Result' event received

[20:14:15:918] : Discovered Item 1:

[20:14:15:918] : ------------------------

[20:14:15:918] : Advertisement Event Type: Scan response

[20:14:15:918] : BD Address Type: PUBLIC_ADDRESS

[20:14:15:918] : BD Address: 79:2E:E8:50:A0:00:00:00

[20:14:15:918] : Advertisement Event Data: 02:0A:00:03:19:00:02

[20:14:15:918] : RSSI: -41 dBm

[20:14:20:041] : 'Stop Scan' request sent

[20:14:20:042] : 'Command Status' event received

[20:14:20:042] : Status: BLE_STATUS_OK

[20:14:20:043] : 'Scan Stopped Notification' event received

[20:14:20:078] : 'Resolve and Set Peer Device BD Address' request sent

[20:14:20:078] : BD Address Type: PUBLIC_ADDRESS

[20:14:20:078] : BD Address: 79:2E:E8:50:A0:00:00:00

[20:14:20:078] : 'Command Complete' event received

[20:14:20:078] : Status: BLE_STATUS_OK

[20:14:20:079] : 'Command Status' event received

[20:14:20:079] : Status: BLE_STATUS_OK

[20:14:20:079] : 'Resolve and Set Peer Device BD Address Response' event received

[20:14:20:079] : Status: 0x01

[20:14:20:079] : 'Command Complete' event received

[20:14:20:079] : Status: BLE_STATUS_OK

[20:14:20:079] : 'Establish Connection' request sent

[20:14:20:079] : BD Address Type: PUBLIC_ADDRESS

[20:14:20:079] : BD Address: 79:2E:E8:50:A0:00:00:00

[20:14:20:080] : 'Command Status' event received

[20:14:20:080] : Status: BLE_STATUS_OK

[20:14:20:217] : 'Establish Connection Response' event received

[20:14:20:568] : 'Enhanced connection complete' event received

[20:14:20:568] : Status: 0x00

[20:14:20:568] : Role: 0x00

[20:14:20:568] : BD Address Type: PUBLIC_ADDRESS

[20:14:20:568] : BD Address: 79:2E:E8:50:A0:00:00:00

[20:14:20:568] : Local resolvable address: 00:00:00:00:00:00:00:00

[20:14:20:568] : Peer resolvable address: 00:00:00:00:00:00:00:00

[20:14:20:568] : Connection Interval: 8.75 ms

[20:14:20:568] : Slave Latency: 0

[20:14:20:568] : Supervision Timeout: 100 ms

[20:14:20:569] : 'Command Complete' event received

[20:14:20:569] : Status: BLE_STATUS_OK

[20:14:20:569] : 'Data length changed notification' event received

[20:14:20:569] : Connection maximum Tx octet: 251

[20:14:20:569] : Connection maximum Tx time: 2120 µs

[20:14:20:569] : Connection maximum Rx octet: 251

[20:14:20:569] : Connection maximum Rx time: 2120 µs

[20:14:20:569] : 'Get local device security keys' request sent

[20:14:20:570] : 'Command Status' event received

[20:14:20:570] : Status: BLE_STATUS_OK

[20:14:20:570] : 'Get local device security keys response' event received

[20:14:20:570] : Key flags: INITIATOR_ENCRYPTION_INFORMATION, INITIATOR_IDENTITY_INFORMATION, INITIATOR_SIGNATURE_KEY, RESPONDER_ENCRYPTION_INFORMATION, RESPONDER_IDENTITY_INFORMATION, RESPONDER_SIGNATURE_KEY

[20:14:20:570] : Long Term Key (LTK): [D6:93:E8:A4:23:55:48:99:1D:77:61:E6:63:2B:10:8E]

[20:14:20:570] : Encrypted Diversifier (EDIV) and Random Number: [99:1F:26:1E:F6:09:97:2E:AD:7E]

[20:14:20:570] : Identity Resolving Key (IRK): [0A:2D:F4:65:E3:BD:7B:49:1E:B4:C0:95:95:13:46:73]

[20:14:20:570] : Identification Address: [0x00A050504320, PUBLIC_ADDRESS]

[20:14:20:570] : Connection Signature Resolving Key (CSRK): [90:D5:06:95:92:ED:91:D7:A8:9E:2C:DC:4A:93:5B:F9]

[20:14:20:571] : 'Command Complete' event received

[20:14:20:571] : Status: BLE_STATUS_OK

[20:14:20:571] : 'Set OOB data' request sent

[20:14:20:571] : OOB flag: Disable

[20:14:20:571] : OOB Key: [00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00]

[20:14:20:571] : OOB Data: [00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00]

[20:14:20:572] : 'Command Status' event received

[20:14:20:572] : Status: BLE_STATUS_OK

[20:14:20:572] : 'Command Complete' event received

[20:14:20:572] : Status: BLE_STATUS_OK

[20:14:20:572] : 'Exchange GATT MTU Size' request sent

[20:14:20:572] : MTU: 0x0200

[20:14:20:573] : 'Command Status' event received

[20:14:20:573] : Status: BLE_STATUS_OK

[20:14:20:586] : 'Exchange GATT MTU Size Response' event received

[20:14:20:586] : MTU: 0x0200

[20:14:20:586] : 'Command Complete' event received

[20:14:20:586] : Status: BLE_STATUS_OK

[20:14:20:586] : 'Read using Characteristic UUID' request sent

[20:14:20:586] : Start Handle: 0x0001

[20:14:20:586] : End Handle: 0xFFFF

[20:14:20:586] : UUID: 0x2A00

[20:14:20:587] : 'Command Status' event received

[20:14:20:587] : Status: BLE_STATUS_OK

[20:14:20:604] : 'Read using Characteristic UUID Response' event received

[20:14:20:604] : Characteristic value 1:

[20:14:20:604] : --------------------------------

[20:14:20:604] : Attribute Handle: 0x0003

[20:14:20:604] : Value: [53:54:41:4C:57:41:52:54]

[20:14:20:604] : 'Command Complete' event received

[20:14:20:604] : Status: BLE_STATUS_OK

[20:14:20:870] : 'Connection Terminated Notification' event received

[20:14:20:870] : Reason: CONNECTION_TIMEOUT

but CySmart 1.2.0.156 on Android works just fine:

[03-Jul-2020|20:07:27] , [STALWART|00:A0:50:E8:2E:79] Connection request sent

[03-Jul-2020|20:07:27] , [STALWART|00:A0:50:E8:2E:79] Connection established

[03-Jul-2020|20:07:38] , [STALWART|00:A0:50:E8:2E:79] Service discovery request sent

[03-Jul-2020|20:07:38] , [STALWART|00:A0:50:E8:2E:79] Service discovery status - Success

[03-Jul-2020|20:07:38][STALWART | 00:A0:50:E8:2E:79] Exchange GATT MTU request, MTU: 512, Status: 0

[03-Jul-2020|20:07:38][STALWART | 00:A0:50:E8:2E:79] Exchange GATT MTU request completed, MTU: 512, Status: 0

[03-Jul-2020|20:07:51] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Read request sent

[03-Jul-2020|20:07:51] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4|Client Characteristic Configuration] Read response received with value , [ 00 00 ]

[03-Jul-2020|20:07:54] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Read request sent

[03-Jul-2020|20:07:54] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Read response received with value , [ 06 A4 ]

[03-Jul-2020|20:08:03] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Read request sent

[03-Jul-2020|20:08:03] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4|Characteristic User Description] Read response received with value , [ 52 50 4D 20 39 ]

[03-Jul-2020|20:08:11] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Read request sent

[03-Jul-2020|20:08:11] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4|Characteristic User Description] Read response received with value , [ 52 50 4D 20 39 ]

[03-Jul-2020|20:08:16] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Read request sent

[03-Jul-2020|20:08:16] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4|Characteristic User Description] Read response received with value , [ 52 50 4D 20 39 ]

[03-Jul-2020|20:08:18] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4|Client Characteristic Configuration] Write request sent with value , [01 00 ]

[03-Jul-2020|20:08:18] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Start notification request sent

[03-Jul-2020|20:08:18] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4|Client Characteristic Configuration] Write request status , [00]

[03-Jul-2020|20:08:19] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 A0 ]

[03-Jul-2020|20:08:20] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 A1 ]

[03-Jul-2020|20:08:21] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 A0 ]

[03-Jul-2020|20:08:22] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 9F ]

[03-Jul-2020|20:08:23] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 A9 ]

[03-Jul-2020|20:08:24] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 9F ]

[03-Jul-2020|20:08:25] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 9F ]

[03-Jul-2020|20:08:26] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 9D ]

[03-Jul-2020|20:08:27] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 AE ]

[03-Jul-2020|20:08:28] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 A3 ]

[03-Jul-2020|20:08:29] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 A2 ]

[03-Jul-2020|20:08:30] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification received with value , [ 06 A0 ]

[03-Jul-2020|20:08:31] , [871472c9-36c8-4d36-b12d-75c2baee993d|3fd79294-7649-4339-9ee7-9f106a1183b4] Notification

0 Likes

After spending way too much time on this, trying different things, I finally found a fix:

In main_cm0p.c, change:

    for (;;)

    {

        /* Process the controller portion of the BLE events and wake up the host

          (CM4) and send data to the host via IPC if necessary */

        Cy_BLE_ProcessEvents();

      

        /* Put CM0+ to Deep Sleep mode. The BLE hardware automatically wakes

            up the CPU if processing is required */

          Cy_SysPm_DeepSleep(CY_SYSPM_WAIT_FOR_INTERRUPT);

    }

to

    for (;;)

    {

        /* Process the controller portion of the BLE events and wake up the host

          (CM4) and send data to the host via IPC if necessary */

        Cy_BLE_ProcessEvents();

    }

Now BLE seems to be working great. I don't really understand why this fix works, but I'm not too worried about power budget at the moment, so I can live with this.

0 Likes

The BLE on the PSoC® 6 BLE Pioneer Kit (CY8CKIT-062-BLE) still works better than the BLE on the Clicker 2 for PSoC® 6. I keep getting disconnects with the Clicker. I'm wondering if I need to do the procedure detailed in "4 Crystal Tuning Technique for ECO", AN95089 PSoC/PRoC BLE Crystal Oscillator Selection and Tuning Techniques. It says:

For tuning, the ECO clock is routed out of the chip to a GPIO to measure the clock accuracy. The clock accuracy is

measured with a high-precision frequency measurement instrument like a universal time interval counter (Model

SR620 from Stanford Research Systems).

Any advice for us home gamers that don't have an SR620 lying around?

I looked at this some more and discovered that my Clicker design didn't have BLE ECO enabled at all. So, I enabled it, and will see how that works.

0 Likes

Hi,

Just curious to know..Does enabling BLE ECO made your Clicker board working?

Thanks

Ganesh

0 Likes

GaneshD_41 wrote:

Just curious to know..Does enabling BLE ECO made your Clicker board working?

Well, it always worked to some extent, I just got random disconnects. It would take a lot more testing to see if enabling BLE ECO really made a difference. I definitely was still getting some disconnects. However, as far as Cysmart goes, I finally figured out that I needed to greatly increase the Supervision Timeout:

image.png

Now, it stays connected for days on end.

For other clients, I increased the Connection Supervision Timeout Multiplier in Peripheral Preferred Connection Parameters:

image (1).png

I don't know how many BLE clients use those parameters. I was just poking around CySmart, and I wonder if that is what is controlled by Connection Parameter Update Settings:

image (2).png

I have a lot to learn about BLE!

        -Carl