How to use UBUS commands for Bluetooth device scanning / pairing: Difference between revisions
How to use UBUS commands for Bluetooth device scanning / pairing (view source)
Revision as of 16:47, 24 April 2020
, 24 April 2020no edit summary
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
... | ... | ||
The scan process takes about 30 seconds. If you can see '''"scanning": 1''' in the output it means, that scanning is still in progress. After it finishes you should see a similar output: | The scan process takes about 30 seconds. If you can see '''"scanning": 1''' in the output, it means, that scanning is still in progress. After it finishes you should see a similar output: | ||
... | ... | ||
Line 37: | Line 37: | ||
... | ... | ||
The list of devices always contains '''"rssi"''' and '''"address"''', but '''"name"''' output might be missing: | The list of devices always contains '''"rssi"''' and '''"address"''', but '''"name"''' output might be missing if the device is not supported: | ||
... | ... | ||
Line 56: | Line 56: | ||
... | ... | ||
* | *In order to pair devices use this command: | ||
... | ... | ||
Line 62: | Line 62: | ||
... | ... | ||
If the pairing process was successful you should see this output: | |||
... | ... | ||
Line 70: | Line 70: | ||
... | ... | ||
*In order to unpair devices use this command: | |||
* | |||
... | ... | ||
Line 83: | Line 76: | ||
... | ... | ||
*To get | *To get statistics from paired devices, use '''stat''' command: | ||
... | ... | ||
Line 89: | Line 82: | ||
... | ... | ||
You should see output: | You should see similar output: | ||
... | ... |