BLE_HID_Keyboard example, how to insert information in the Device Information Strings

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

cross mob
user_1881301
Level 2
Level 2
First like received

Hi,

   

CySmart displayes only empty strings on the Device information - except for the Manufacturer Name set in the profiles settings.

   

Calling f.ex. CyBle_DissSetCharacteristicValue(CYBLE_DIS_SERIAL_NUMBER, sizeof(serialNumber), (uint8 *)serialNumber); seams not to have any effect. Taken from the BLE_DEVICE_INFORMATION example.

   

How is the strings filled from the main.c ?

   

Thank You

0 Likes
2 Replies
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Can you attach the project? What is the settings for this particular charactetristic?

   

 

   

Thanks,

   

Hima

0 Likes
user_1881301
Level 2
Level 2
First like received

hi Hima,

   

the serial number is defined in main.c line 538 and set with CyBle_DissSetCharacteristicValue() in line 559. But the serial number is blank on the device information service page shown with CySmart. See attached empty serial number.png.

   

The firmware value is blank too, even it is set to 1.00 on the Profiles device information Firmware Revision String.

   

Attaching the project.

0 Likes