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

PSoC™ 6 Forum Discussions

MotooTanaka
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Hi, 

One of my customer is having problem with reconnecting PSoC 6 BLE after disconnection, such as power down.

The cusotmer is using a couple of PSoC 6 BLEs, one for central and the other for device.

And the issue is that once peripheral disconnection (such as power down) takes place,

after restarting the device, communication fails to re-establishing.

What customer is doing are

(1) When Central detects CY_BLE_GATT_DISCONNECT_IND Event,
       Central scans the peripheral using Cy_BLE_GAPC_StartScan

(2) When Central finds the returned peripheral in the CY_BLE_EVT_GAPC_SCAN_PROGRESS_RESULT,
      reconnection seems to be established using Cy_BLE_GAPC_ConnectDevice

(3) But now sending/receiving data is not working.

Would someone teach us what step or process is missing to recover normal send/receive connection 
between the Central and the peripheral Deivce?

Best Regards,
21-Dec-2022
Motoo Tanaka

0 Likes
1 Solution
PratikshaV
Moderator
Moderator
Moderator
50 solutions authored 10 likes received 100 replies posted

Hi @MotooTanaka ,

Have you gone through this code example CE222046 -PSoC 6 BLE Throughput Measurement. Which has two projects one as central and another as peripheral you can refer this for data sending and receiving though it doesn't have power down feature in this code example .

Please let me know if this doesn't help.

You can refer this link for code example

 

Thanks & Regards

Pratiksha V

View solution in original post

4 Replies
PratikshaV
Moderator
Moderator
Moderator
50 solutions authored 10 likes received 100 replies posted

Hi @MotooTanaka ,

Have you gone through this code example CE222046 -PSoC 6 BLE Throughput Measurement. Which has two projects one as central and another as peripheral you can refer this for data sending and receiving though it doesn't have power down feature in this code example .

Please let me know if this doesn't help.

You can refer this link for code example

 

Thanks & Regards

Pratiksha V

Dear @PratikshaV -san,

Thank you very much for your response!

We will ask the customer if they have referenced the CE.

I will keep you updated when we hear from the customer.

Best Regards,
22-Dec-2022
Motoo Tanaka

0 Likes

Dear @PratikshaV -san,

The customer replied that they did not know about the CE
and they are going to test it.

Again, I will keep you updated when we hear from the customer.

Best Regards,

23-Dec-2022

Motoo Tanaka

0 Likes

Dear @PratikshaV -san,

The customer could solve their problem by referencing the CE you mentioned!

Thank you very much!

Best Regards,
23-Dec-2022
Motoo Tanaka