deleted>Frq08988 mNo edit summary |
Registered User m (Text replacement - "{{Board$}} " to "{{Board$}}") |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ApplicableFor | |||
{{ | |MPUs list=STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x | ||
|MPUs checklist=STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x | |||
}} | |||
== Scan for available Bluetooth devices == | |||
{{Board$}} hcitool scan | {{Board$}}hcitool scan | ||
Scanning ... | Scanning ... | ||
A0:AF:BD:3B:26:61 lmecxl0923 | A0:AF:BD:3B:26:61 lmecxl0923 | ||
B0:55:08:40:33:84 HUAWEI P8 lite 2017 | B0:55:08:40:33:84 HUAWEI P8 lite 2017 | ||
==Setting the device to Visible== | |||
To control the visiblity of our Bluetooth device to other Bluetooth hardware. | To control the visiblity of our Bluetooth device to other Bluetooth hardware. | ||
* to enable visibility: | * to enable visibility: | ||
{{Board$}} hciconfig hciX piscan | {{Board$}}hciconfig hciX piscan | ||
(hciX corresponds to the available Bluetooth hardware: hci0) | (hciX corresponds to the available Bluetooth hardware: hci0) | ||
* To disable visibility: | * To disable visibility: | ||
{{Board$}} hciconfig hciX noscan | {{Board$}}hciconfig hciX noscan | ||
(hciX corresponds to the available Bluetooth hardware: hci0) | (hciX corresponds to the available Bluetooth hardware: hci0) | ||
==How to scan via bluetoothd/systemd== | |||
Systemd provides a tool for Bluetooth management: bluetoothctl.<br> | Systemd provides a tool for Bluetooth management: bluetoothctl.<br> | ||
Example session with bluetoothclt for scanning, pairing, connecting: | Example session with bluetoothclt for scanning, pairing, connecting: | ||
{{Board$}} bluetoothctl | {{Board$}}bluetoothctl | ||
[NEW] Controller 43:43:A1:12:1F:AC stm32mp1 [default] | [NEW] Controller 43:43:A1:12:1F:AC stm32mp1 [default] | ||
Agent registered | Agent registered | ||
Line 50: | Line 48: | ||
Agent unregistered | Agent unregistered | ||
[DEL] Controller 43:43:A1:12:1F:AC stm32mp1 [default] | [DEL] Controller 43:43:A1:12:1F:AC stm32mp1 [default] | ||
<noinclude> | |||
[[Category:Bluetooth]] | |||
{{PublicationRequestId | 10182 | 2019-01-04 | PhilipS}} | |||
</noinclude> |
Latest revision as of 14:50, 8 October 2024
1. Scan for available Bluetooth devices[edit | edit source]
Template:Board$hcitool scan Scanning ... A0:AF:BD:3B:26:61 lmecxl0923 B0:55:08:40:33:84 HUAWEI P8 lite 2017
2. Setting the device to Visible[edit | edit source]
To control the visiblity of our Bluetooth device to other Bluetooth hardware.
- to enable visibility:
Template:Board$hciconfig hciX piscan
(hciX corresponds to the available Bluetooth hardware: hci0)
- To disable visibility:
Template:Board$hciconfig hciX noscan
(hciX corresponds to the available Bluetooth hardware: hci0)
3. How to scan via bluetoothd/systemd[edit | edit source]
Systemd provides a tool for Bluetooth management: bluetoothctl.
Example session with bluetoothclt for scanning, pairing, connecting:
Template:Board$bluetoothctl [NEW] Controller 43:43:A1:12:1F:AC stm32mp1 [default] Agent registered [bluetooth]# power on Changing power on succeeded [CHG] Controller 43:43:A1:12:1F:AC Powered: yes [bluetooth]# agent on Agent is already registered [bluetooth]# default-agent Default agent request successful [bluetooth]# scan on Discovery started [CHG] Controller 43:43:A1:12:1F:AC Discovering: yes [NEW] Device D8:DB:36:D1:39:88 STM ... [bluetooth]# scan off [CHG] Controller 43:43:A1:12:1F:AC Discovering: no Discovery stopped [bluetooth]#pair D8:DB:36:D1:39:88 Pairing successful [bluetooth]# connect D8:DB:36:D1:39:88 Connection successful [STM]# quit Agent unregistered [DEL] Controller 43:43:A1:12:1F:AC stm32mp1 [default]