Is my service table for csv file correct ?

amem00
Posts: 6
Joined: Tue Jul 26, 2022 3:36 pm

Is my service table for csv file correct ?

Postby amem00 » Wed Aug 03, 2022 4:20 pm

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 3369 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 3369 times
Thanks for your help

ESP_Sun
Posts: 326
Joined: Thu Dec 30, 2021 9:52 am

Re: Is my service table for csv file correct ?

Postby ESP_Sun » Fri Aug 05, 2022 3:12 am

Hi
Look at your log:+WRITE:<conn_index>,<srv_index>,<char_index>,[<desc_index>],<len>,<value>
企业微信截图_16596686219507.png
企业微信截图_16596686219507.png (13.87 KiB) Viewed 3301 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 3301 times

amem00
Posts: 6
Joined: Tue Jul 26, 2022 3:36 pm

Re: Is my service table for csv file correct ?

Postby amem00 » Tue Aug 23, 2022 11:58 am

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

Who is online

Users browsing this forum: No registered users and 19 guests