ble_monitor
ble_monitor copied to clipboard
Periodic dongle restart
It seems that my BT dongle stops receiving advertisements now and then. Could there be a feature that allows periodically to restart the dongle (or after 10 minutes without a message from any device)? (e.g. btloetoothctl power down + power up seems to fix the issue for couple of days)
Do you get errors, when your BT dongle stops receiving advertisements? There is already an option that resets the BT, in case of errors. It only uses the bluetoothctl power on
command. but not bluetoothctl power off
. This can be enabled in the BLE monitor settings (Automatically restart Bluetooth adapter on failure) but only works BLE monitor starts to generate errors when it fails. If you don't see errors, it won't get activated.
There have been made some improvements to the reset functionality in 7.5.0, which might reset the dongle automatically, if an error occurs. But it depends on whether you get an error, when it stops responding.
To what Ernst said, I want to add that 7.6.0-beta was published today with changes in the "reset" procedure - among other things, now it does not depend on the initial state of the adapter, that is, the power cycle will be performed anyway. @osctobe, I ask you to try 7.6.0-beta if possible, it looks pretty stable.