Swap role ?

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

cross mob
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

Hi !

   

Are it`s possible that my BLE Device will work as Observer and wait to SmartPhone in area. After it`s founded it swap to advertising and make connection ?

0 Likes
1 Solution
Anonymous
Not applicable

Hi,

   

Yes this is possible. In the BLE Component. you need to select the GAP Role as "Central and Peripheral". Now you will be able to perform scanning (observing) or advertising and establishing connection.

   

There is an example project for this in our  Blog. The example project is for a GAP Central + Peripheral that does Adv, scanning (observing), connection establishment, connection parameter updated etc.,

   

Please refer project # 12 in the following link. It also comes with documentation.

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days

   

Regards,

   

- Madhu Sudhan

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

Hi,

   

Yes this is possible. In the BLE Component. you need to select the GAP Role as "Central and Peripheral". Now you will be able to perform scanning (observing) or advertising and establishing connection.

   

There is an example project for this in our  Blog. The example project is for a GAP Central + Peripheral that does Adv, scanning (observing), connection establishment, connection parameter updated etc.,

   

Please refer project # 12 in the following link. It also comes with documentation.

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days

   

Regards,

   

- Madhu Sudhan

0 Likes
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

Ok, I`l check.

0 Likes