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

cross mob
Bartek
Level 3
Level 3
10 replies posted 10 sign-ins 5 replies posted

Hello,

I try to get know if it is possible to scan Bluetooth devices around from CYBLE 416045  module when it is set as Bluetooth Hid mouse?

Mani idea is that Bluetooth mouse scan Bluetooth devices around and if found device with given name/mac it try to connect/pair.

If someone has got knowledge about it. I will be glad for some information.

Regards,

Bartek 

0 Likes
1 Solution
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored
0 Likes
4 Replies
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Bartek,

The PSoC 6 device present in CYBLE 416045 module can support 4 simultaneous connections (as Centrals/peripherals).

So, you can add the configuration for Central to the BLE Mouse and start scanning. Please note that the peer device which you are searching for should advertise with some pre knew ID/name so that the mouse can identify it. The peer should be peripheral in this case.

Once you find the peer, you can send the connection request to that peer peripheral and get connected. Then the peer should send the connection request as a central to the Mouse device to connect to Mouse peripheral. Please note that this connection is different from the previous connection. The previous connection is to just inform the peer device that the mouse is available. Since the Mouse is BLE peripheral, it cannot initiate the connection.

Instead of all this, you can simply make your peer dice to scan for the BLE HID mouse nearby and connect to it. 

Hope this information helps!

Thanks and regards

Ganesh

 

0 Likes
Bartek
Level 3
Level 3
10 replies posted 10 sign-ins 5 replies posted

Thank you! You help a lot. Now I know what is possible 🙂

Could you write some clue how to add second connection as central ?

What I should add to code or BT block?

Sorry for question a lot but I'm new in this topic.

Best Regards,

Bartek 

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

Hi Bartek,

Please refer to the following application note:

https://www.cypress.com/documentation/application-notes/an215671-psoc-6-mcu-firmware-design-ble-appl...

Also, please refer to the following code examples regarding PSoC 6 handling multiple connections for better understanding.

https://www.cypress.com/documentation/code-examples/ce215118-ble-multi-master-single-slave-psoc-6-mc...

https://www.cypress.com/documentation/code-examples/ce223508-psoc-6-mcu-implementing-ble-multi-conne...

Thanks and regards

Ganesh

0 Likes
Bartek
Level 3
Level 3
10 replies posted 10 sign-ins 5 replies posted

Thank you. I look into documentation.

0 Likes