bluetooth - How can I use hci command to setup my Linux laptop as a BLE peripheral to advertise service with specified UUID? -


i need setup linux laptop ble peripheral advertise service specified device name , service uuid. can achieve following set of commands,

sudo hciconfig 0 reset sudo hcitool -i hci0 cmd 0x08 0x0008 15 02 01 1a 11 07 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 00 00 00 00 00 00 00 00 00 00 sudo btmgmt -i hci0 le on sudo btmgmt -i hci0 connectable on sudo btmgmt -i hci0 name myname sudo btmgmt -i hci0 advertising on sudo btmgmt -i hci0 power on 

(note btmgmt built bluez5.37)

it works , iphone can scan , discover peripheral name "myname" , service uuid 504f4e4d-4c4b-4a49-4847-464544434241.

my question is, need replace above btmgmt commands hciconfig and/or hcitool, possible? , if yes, how set parameters each command?

thanks in advance.

you should able replace btmgmt commands start advertising:

sudo hciconfig hci0 leadv 0 

Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -