[CYBT-343026-01] EZ-Serial HID over Gatt

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

cross mob
skalis
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hi ,

We are using CYBT-343026 module with EZ-Serial FW and we want to know if is it possible to implement an HID over Gatt profile to emulate a keyboard using gatts_create_attr (/CAC) command ?

Thank you.

Best regards.

Skalis

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

The HID profile needs some lower level support such as key management which is not supported by the EZ-Serial FW.

View solution in original post

0 Likes
8 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

If you need to use the HID profile, you need to develop the application by youself.

You can refer to the HID demo in the SDK.

0 Likes

Hi Owen,

I'm trying to implement the HID by myself.

I created an empty project and tried to port the code defined into following example: https://github.com/Infineon/mtb-example-btsdk-hid-dual-mode-keyboard .

Now I have the following error:

../mtb_shared/wiced_btsdk/dev-kit/libraries/btsdk-hid/release-v2.8.0/COMPONENT_hidd_lib2/hidd_gatts.h:38:10: fatal error: wiced_hidd_lib.h: No such file or directory

The "hidd_lib2" included in my project needs the "wiced_hidd_lib.h".

As you probably know, "wiced_hidd_lib.h" is the header file for the "wiced_hidd_lib.a" prebuild library, but it is not present into the "20706A2" baselib folder.

Please, can you help me to understand what is wrong?

0 Likes
skalis
Level 1
Level 1
5 sign-ins First reply posted First question asked

With EZ serial we can define custom Gatt services and characteristics (with /CAC cmd) , what it's limitting the possibility to add an HID over Gatt profil ? 

We want to avoid asking the user to upload a new FW to be able to use HID , we prefer to have one FW supporting SPP-over-GATT and HID-over-GATT.

Thank you.

0 Likes
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

The HID profile needs some lower level support such as key management which is not supported by the EZ-Serial FW.

0 Likes

Can we have access to the EZ-Serial app source code  in order to add the HID-over-Gatt part ?

Thank you.

0 Likes
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Sorry, the source code of EZ-Serial FW is not available for public.

0 Likes
SuperBob
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hi Zhang123,

I'm doing the same thing.

Why the HID over GATT needs low level support?

I'm reading the following cypress guide and it seems just to configure the GATT profile in the right way. Doesn't it?

https://www.infineon.com/dgdl/Infineon-CE215121_BLE_HID_Keyboard_with_PSoC_6_BLE-Code%20Example-v01_...

I tried to configure the CYBT-343023-01 module using the "/CAC" commands but i received the error code "GATTS_DB_VALID_ERROR_SVC_DECL_REQUIRED", what does it mean?

 

Spoiler

1644400883.553: TX=> [wiced_20706.cmd_gatts_create_attr (5/1) from assembly (scope=ram), type: 0x0, permissions: 0x2, length: 0x7, data: 03280417004C2A]
1644400883.553: TX=> [C0 0D 05 01 00 02 07 00 07 00 03 28 04 17 00 4C 2A 38] (b'\xc0\r\x05\x01\x00\x02\x07\x00\x07\x00\x03(\x04\x17\x00L*8')

1644400883.599: <=RX [wiced_20706.rsp_gatts_create_attr (5/1) from binary (scope=ram), result: 0x110, attr_handle: 0x16, valid: 0x6]

0016 2803 /CAC,T=00,P=02,L=0007,D=03280417004C2A

Thank you in advanced.

 

0 Likes

The PSoC6 device is different with CYBT-343026. In the creator, after you configure the GATT database, the SDK will generate the lower level code automatically. You only need to configure the GPIO.