CY8CKIT-042-BLE: Simultaneous multi key press support

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

cross mob
sshrivastava
Level 1
Level 1
First reply posted First question asked Welcome!

Hello Team,

Kindly let us know if CY8CKIT-042-BLE kit supports simultaneous multi keypress functionality.  If yes you can share an example code with us.

We have a requirement wherein we have to press two keys (e.g. Menu up + Power on/off) simultaneously for 10 seconds to pair kit with the BT Device.  

We have seen BLE HID keyboard example but it sends only one key at a time.

0 Likes
1 Solution

Hello,

The project from this link https://www.cypress.com/documentation/development-kitsboards/cy5672-proctm-ble-remote-control-refere... which contains Mouse, Keyboard, multimedia, and power reports.  This will be helpful for your application.

Thanks,

P Yugandhar.

View solution in original post

0 Likes
5 Replies
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,
Please refer to the CY5672 PRoC BLE Remote Control Reference Design Kit from the link. This project has the HID report types: Mouse, Keyboard, multimedia, and power reports and will send all the data to the Client device.
Please let me know if this helps.

Thanks,
P Yugandhar.

0 Likes
sshrivastava
Level 1
Level 1
First reply posted First question asked Welcome!

Thanks Yugandhar, but this looks to be a new Kit which as now we are not having it.

My question was related to https://www.cypress.com/documentation/development-kitsboards/cy8ckit-042-ble-bluetooth-low-energy-42...

Please let us know if above mentioned kit supports simultaneous multi key press feature.

I would like to add one more point here is this requirement is specific to pairing and not after the connection.

So kit should send multiple keys simultaneously during advertising phase

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

Hello,

For multi key press, you can create an array to keep track of multiple keys. The array can be used to check for one or more keys at once.

You can refer to this code example for designing multi key press feature. 

At the peripheral side, in advertisement data,  you can add the keys logic and send through advertisement as shown in attached image.

Thanks,

P Yugandhar.

 

0 Likes

When you say "You can refer to this code example for designing multi key press feature. " you referred to any URL or attachment because I cant find any except HID_Keyboard.png file

0 Likes

Hello,

The project from this link https://www.cypress.com/documentation/development-kitsboards/cy5672-proctm-ble-remote-control-refere... which contains Mouse, Keyboard, multimedia, and power reports.  This will be helpful for your application.

Thanks,

P Yugandhar.

0 Likes