Artificial intelligent assistant

Is it possible to change the default advertising interval in BlueZ? I've already created a GATT server using the instructions provided here. The only problem with this server is the fact that it advertises using the default advertising interval used by BlueZ (1.288s), which is too slow for my application. I have also tried the suggestions here to decrease the advertising interval. While the method described in this case works fine, the resulting advertising intervals DO NOT persist when I try to start the GATT server again in `bluetoothctl`, and the default 1.288s advertising interval is used again upon starting the GATT server. My question is, is there a way around this problem? Could the advertising parameters set using the `hcitool` be saved as the default parameters of advertising? In the worst case, is it possible to recompile BlueZ with a shorter advertising interval?

echo desired value to the following two files:


/sys/kernel/debug/bluetooth/hci0/adv_min_interval
/sys/kernel/debug/bluetooth/hci0/adv_max_interval


where hci0 is your bt/ble device. Adv. interval is calculated as value * 0.625ms

You need to have CONFIG_BT_DEBUGFS=y in your kernel configuration for this to work.

This works on bluez-5.50, not sure about previous releases.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 785aca85221be0b682a0f2ebccf57432