Bluetooth in the Default Linux Configuration
Your i.MX 8M Mini kit arrives with the Linux image ready for Bluetooth operation.
Verifying Bluetooth in Linux
When Linux boots, the BT interface is enabled and configured in the default image installed to the kit. Step through the following procedure to configure BT in your local environment and then validate it:
- On the i.MX 8M Mini, issue the following command from the Linux shell:
root@imx8mm-lpddr4:~# hciattach /dev/ttymxc0 qca -t120 115200 flow
...
HCI Reset is done
Setting TTY to N_HCI line discipline
Device setup complete
- Initialize the BT module, validate that the initialization has completed successfully:
root@imx8mm-lpddr4:~# hciconfig hci0 up
root@imx8mm-lpddr4:~# hciconfig
hci0: Type: Primary Bus: UART
BD Address: 61:47:AA:32:44:07 ACL MTU: 1024:7 SCO MTU: 60:8
UP RUNNING PSCAN
RX bytes:1326 acl:0 sco:0 events:72 errors:0
TX bytes:1166 acl:0 sco:0 commands:72 errors:0
- Power on a Bluetooth device in the vicinity, validate that the target detects it:
root@imx8mm-lpddr4:~# hcitool scan
Scanning ...
50:1A:A5:E5:34:8A JABRA BT2045
F0:F6:1C:67:F4:D4 iPhone yur
- Power on a BLE device in the vicinity, validate that the target detects it:
root@imx8mm-lpddr4:~# hcitool lescan
LE Scan ...
14:BB:6E:2F:9B:07 (unknown)
^C
|