Page 1 of 1

How to create service bin file .

Posted: Mon Mar 12, 2018 7:01 am
by Karan_26
Hi
By using AT commands, i'm able to read/write characteristics of only one predefined service .
i want to create a temperature service , I have created .csv file .

index uuid_len uuid perm val_max_len val_cur_len value
0 16 0x2800 0x01 2 2 A232
1 16 0x2803 0x01 1 1 2
2 16 0xC300 0x10 1 1 1
3 16 0x2901 0x11 512 1 1
4 16 0x2803 0x01 1 1 2
5 16 0xC301 0x01 512 512 ...
6 16 0x2901 0x11 512 512 ...

Now , i don't know how to create .bin file from .csv file , so that it can be downloaded into esp32 module .
I don't know how to use python to create bin file .
Please provide me some examples or steps so that i can create TempService.bin file .

Re: How to create service bin file .

Posted: Mon Mar 12, 2018 7:09 am
by WiFive

Re: How to create service bin file .

Posted: Tue Mar 13, 2018 10:41 am
by Karan_26
Hello ,
i tried to create bin file according to given procedure , yaml file not found such error occurred .

D:\Logicare_118_16\WFIR-D2\Documentation\esp32-at-master\tools>python BLEService.py -t GattServiceExample.bin GattServiceExample.csv
Traceback (most recent call last):
File "BLEService.py", line 30, in <module>
import yaml
ImportError: No module named yaml

Please tell me how to resolve this error .

Re: How to create service bin file .

Posted: Tue Mar 13, 2018 1:29 pm
by Karan_26
Thank you for support .
service bin file has created successfully .
Actually xlrd and yaml had to be installed with python setup.

Re: How to create service bin file .

Posted: Wed Nov 27, 2019 2:38 pm
by Josu123
I have a question about ESP32 I am working with the esp32-at project
I want to change the services and characteristics of the BLE but I don't know how to do it.

I am currently compiling it from eclipse, but I don't know what library they are in or it has to be done with the ATBleService.bin

If so, where should I put this file to compile it with the project?

Re: How to create service bin file .

Posted: Thu Nov 28, 2019 3:47 am
by Helen L