Change GATT characteristics notify

5 posts / 0 new
Last post
giuseppe
Offline
Last seen:4 years 9 months ago
Expert
Joined:2015-03-25 13:34
Change GATT characteristics notify

Hi to all,
I'm doing some tests with the PAN1740 that mounts the DA14580.
I made an Android app that makes the connection with the device. I downloaded SPS application on da14580 from dialog website. I modified this application so that after it is made the connection, the da14580 send every 500ms a character, such as the character 'A'.
I can't understand if the SPS application sends a notification every time change the value of TX characteristic (SPS_SERVER_TX).

On Android I saw with method characteristic.getDescriptors() that SPS_SERVER_TX has two descriptors with these UUID:
00002902-0000-1000-8000-00805f9b34fb
00002901-0000-1000-8000-00805f9b34fb

The first one listed have notation "2902" would seem to indicate a similar behavior to the Client Configurator Characteristic in accordance with the bluetooth specifications org.bluetooth.descriptor.gatt.client_characteristic_configuration UUID 0x2902 ?
If yes, how should I set the descriptor for enable the notification of SPS_SERVER_TX changes?
Thanks

Device:
giuseppe
Offline
Last seen:4 years 9 months ago
Expert
Joined:2015-03-25 13:34
Can I have DSPS android app

Can I have DSPS android app source code?

JE_Dialog
Offline
Last seen:3 weeks 4 days ago
Staff
Joined:2013-12-05 14:02
Hi Giuseppe, I have sent an

Hi Giuseppe, I have sent an SLA for you to review for DSPS source code. I'll also forward your quetsion to our SW team.

BR JE_Dialog

Ingo
Offline
Last seen:3 months 1 week ago
Guru Panasonic
Joined:2014-01-16 11:19
Hi Guiseppe,

Hi Guiseppe,

it is in the DSPS SDK under "\rhost_apps".

Best regards,
Ingo

giuseppe
Offline
Last seen:4 years 9 months ago
Expert
Joined:2015-03-25 13:34
When Dialog SPS put data on

当对话框SPS给uarttoble FIFO数据,发送notify to client that new data are ready.
I resolve the problem with method setCharacteristicNotification(characteristic, true) on android app (on SPS_SERVER_TX characteristic). It enables bluetoothgattcallback function on characteristic changes, otherwise it's disabled by default.

Topic locked