Page 1 of 1

Is my service table for csv file correct ?

Posted: Wed Aug 03, 2022 4:20 pm
by amem00
Hi,
I'm trying to create a BLE service with some characteristics.
Can anyone tell me if my table for csv file is correct ?
Services.png
Services.png (34.89 KiB) Viewed 3366 times
Also what is wrong with my pairing sequence ?
The authentication is successful but the BLE client is sending 4 digits data (4 bytes) on service 3 characteric 3 but I'm only getting 2 bytes on service 3 characteristic 3 and desc 1. (0x01 0x00)
PairingSequence.png
PairingSequence.png (25.38 KiB) Viewed 3366 times
Thanks for your help

Re: Is my service table for csv file correct ?

Posted: Fri Aug 05, 2022 3:12 am
by ESP_Sun
Hi
Look at your log:+WRITE:<conn_index>,<srv_index>,<char_index>,[<desc_index>],<len>,<value>
企业微信截图_16596686219507.png
企业微信截图_16596686219507.png (13.87 KiB) Viewed 3298 times
What you wrote should be 0x2902 descriptor, so you can only write two characters, and this descriptor has special meaning, you can refer to <Bluetooth Special Interest Group (SIG) Assigned Numbers> (https://www.bluetooth.com/specification ... d-numbers/) and <How to Customize Bluetooth® LE Services> (https://docs.espressif.com/projects/esp ... e-services).
企业微信截图_16596685029886.png
企业微信截图_16596685029886.png (155.87 KiB) Viewed 3298 times

Re: Is my service table for csv file correct ?

Posted: Tue Aug 23, 2022 11:58 am
by amem00
These four :
+WRITE:0,3,1,1,2
+WRITE:0,3,3,1,2
+WRITE:0,3,4,1,2
+WRITE:0,3,5,1,2
are affecting the 0x2902 in order to tell server that client is ready to receive notifications. The values are sent with
+WRITE:0,3,2,,20
+WRITE:0,3,3,,20
+WRITE:0,3,4,,20
+WRITE:0,3,5,,20