Difference between revisions of "Transclusion: Debian: CL-SOM-iMX7: Bluetooth"
imported>Uri.mashiach |
|||
| Line 5: | Line 5: | ||
Make sure that the Bluetooth driver is loaded: | Make sure that the Bluetooth driver is loaded: | ||
<pre> | <pre> | ||
| − | root@cl- | + | root@cl-debian:~# lsmod | grep hci_uart |
| − | + | hci_uart 10445 1 | |
</pre> | </pre> | ||
The Bluetooth driver can be loaded manually: | The Bluetooth driver can be loaded manually: | ||
<pre> | <pre> | ||
| − | root@cl-rootfs:~# modprobe | + | root@cl-rootfs:~# modprobe hci_uart |
</pre> | </pre> | ||
| Line 16: | Line 16: | ||
<pre> | <pre> | ||
root@cl-rootfs:~# hciconfig hci0 -a | root@cl-rootfs:~# hciconfig hci0 -a | ||
| − | hci0: Type: | + | hci0: Type: Primary Bus: UART |
| − | BD Address: | + | BD Address: 3C:A3:08:A8:03:B9 ACL MTU: 1021:6 SCO MTU: 180:4 |
UP RUNNING | UP RUNNING | ||
| − | RX bytes: | + | RX bytes:746 acl:0 sco:0 events:49 errors:0 |
| − | TX bytes: | + | TX bytes:3441 acl:0 sco:0 commands:49 errors:0 |
Features: 0xff 0xfe 0x2d 0xfe 0xdb 0xff 0x7b 0x87 | Features: 0xff 0xfe 0x2d 0xfe 0xdb 0xff 0x7b 0x87 | ||
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 | Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 | ||
Link policy: RSWITCH HOLD SNIFF | Link policy: RSWITCH HOLD SNIFF | ||
Link mode: SLAVE ACCEPT | Link mode: SLAVE ACCEPT | ||
| − | Name: ' | + | Name: 'cl-debian' |
| − | Class: | + | Class: 0x0c0000 |
| − | Service Classes: | + | Service Classes: Rendering, Capturing |
Device Class: Miscellaneous, | Device Class: Miscellaneous, | ||
HCI Version: 4.1 (0x7) Revision: 0x0 | HCI Version: 4.1 (0x7) Revision: 0x0 | ||
Latest revision as of 16:43, 4 December 2018
CL-SOM-iMX7 features Bluetooth 4.1 BLE interface, implemented with a TI WiLink8 Combo module.
Host Controller Interface (HCI) Initialization
- HCI requires no user interaction for being configured. The driver gets loaded automatically unless this option has been disabled by putting a black list rule for this device.
Make sure that the Bluetooth driver is loaded:
root@cl-debian:~# lsmod | grep hci_uart hci_uart 10445 1
The Bluetooth driver can be loaded manually:
root@cl-rootfs:~# modprobe hci_uart
- HCI device configuration utility can be run to retrieve detailed information about the Bluetooth interfaces:
root@cl-rootfs:~# hciconfig hci0 -a
hci0: Type: Primary Bus: UART
BD Address: 3C:A3:08:A8:03:B9 ACL MTU: 1021:6 SCO MTU: 180:4
UP RUNNING
RX bytes:746 acl:0 sco:0 events:49 errors:0
TX bytes:3441 acl:0 sco:0 commands:49 errors:0
Features: 0xff 0xfe 0x2d 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'cl-debian'
Class: 0x0c0000
Service Classes: Rendering, Capturing
Device Class: Miscellaneous,
HCI Version: 4.1 (0x7) Revision: 0x0
LMP Version: 4.1 (0x7) Subversion: 0xac03
Manufacturer: Texas Instruments Inc. (13)
- If the HCI device is not running, use the below command to enable the HCI device:
root@cl-rootfs:~# hciconfig hci0 up
- HCI Inquire remote devices.
root@cl-rootfs:~# hcitool scan Scanning ...