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

cross mob
pakc_1330221
Level 2
Level 2
First like received Welcome!

Let me first explain what I want to achieve (I'm using the CY8CKIT-042-BLE).

I have two standalone BLE dev kit modules and I want to connect and communicate between them (one module act as HID server one module as HID client).

The connection should go pretty straight forward: server searches for devices that are in pairing mode and starts auto pair process until connected.

The communication should go entirely standalone (paring process and communications process), no host system or PC is hooked up.

So far I'm able to setup the HID client using the descriptors connecting to a regular Windows PC. This is actually pretty easy to setup (HID mouse / HID keyboard code examples were a great help).

But now I want to connect to another Cypress Module that acts as a HID server. What I want to achieve is that the HID client (mouse for example) can operate a LED on the HID server side. This should work as a standalone setup.

Eventually I also want to be able to use a BLE mouse from the store and hook it up to the HID server (which is the standalone cypress module).

Short summary:

After auto-pairing the client sends HID descriptors and server interprets HID descriptors and turns on a LED based on a certain event.

Questions:

  • How can this be achieved (the server implementation)?
  • Is there an example project?

Thanks in advance,

Paul

0 Likes
1 Solution

Hello Paul,

      ->  In Bluetooth terminology ,Server is a device which has some information ( For example, in your case the Mouse has the 'Key' Click information and hence it is  a server)

     -> Client is a device which request the information OR you send the information to it ( In your example, you are sending the Mouse information to Cypress BLE device and hence it is a client )

Client and Servers are also known as Link Layer Master and Slave respectively and also Central and Peripheral respectively.

Here , we do not have an HID Client Ready Firmware but as you told you can program the Cypress BLE device with a Client/Master Role, can connect to the Mouse and on Key press can blink a LED on Client device ( Cypress BLE device)

Please refer a sample example from the below link on Central and Peripheral roles. Please find a document along with which has all the testing steps to communicate between Master and Slave device.

     PSoC-4-BLE/100_Projects_in_100_Days/Day020_BLE_UART at master · cypresssemiconductorco/PSoC-4-BLE · ...

-Gyan

View solution in original post

0 Likes
8 Replies