How to create service bin file .

Karan_26
Posts: 6
Joined: Fri Feb 23, 2018 11:40 am

How to create service bin file .

Postby Karan_26 » Mon Mar 12, 2018 7:01 am

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 .


Karan_26
Posts: 6
Joined: Fri Feb 23, 2018 11:40 am

Re: How to create service bin file .

Postby Karan_26 » Tue Mar 13, 2018 10:41 am

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 .

Karan_26
Posts: 6
Joined: Fri Feb 23, 2018 11:40 am

Re: How to create service bin file .

Postby Karan_26 » Tue Mar 13, 2018 1:29 pm

Thank you for support .
service bin file has created successfully .
Actually xlrd and yaml had to be installed with python setup.

Josu123
Posts: 2
Joined: Wed Nov 27, 2019 1:39 pm

Re: How to create service bin file .

Postby Josu123 » Wed Nov 27, 2019 2:38 pm

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?

Helen L
Posts: 40
Joined: Thu Aug 16, 2018 9:07 am

Re: How to create service bin file .

Postby Helen L » Thu Nov 28, 2019 3:47 am


Who is online

Users browsing this forum: No registered users and 15 guests