Hi everyone.
Do I need any special settings to use Bluetooth on 8MMINILPD4-EVK?
I bought 8MMINILPD4-EVK last week, and I bitbaked "fsl-image-qt5-validation-imx" (4.14-sumo).
I did some functional checks, but I noticed that bluetoothctl returns "No default controller available".
root@imx8mmevk:~# bluetoothctl
Agent registered
[bluetooth]# devices
No default controller available
[bluetooth]# scan on
No default controller available
[bluetooth]# power on
No default controller available
[bluetooth]# version
Version 5.49
[bluetooth]# quit
root@imx8mmevk:~#
I think that some settings are missing, does anyone know correct settings?
-- more information --
I checked dmseg, The HCI manager looks fine, but hciconfig can not find the device.
root@imx8mmevk:~# dmesg | grep "Bluetooth"
[ 0.874063] Bluetooth: Core ver 2.22
[ 0.881586] Bluetooth: HCI device and connection manager initialized
[ 0.887969] Bluetooth: HCI socket layer initialized
[ 0.892866] Bluetooth: L2CAP socket layer initialized
[ 0.897954] Bluetooth: SCO socket layer initialized
[ 2.027685] Bluetooth: HCI UART driver ver 2.3
[ 2.032149] Bluetooth: HCI UART protocol H4 registered
[ 2.037297] Bluetooth: HCI UART protocol BCSP registered
[ 2.042617] Bluetooth: HCI UART protocol ATH3K registered
[ 2.048024] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 2.054441] Bluetooth: HCI UART protocol Broadcom registered
[ 2.060112] Bluetooth: HCI UART protocol QCA registered
[ 2.752373] Bluetooth: RFCOMM TTY layer initialized
[ 2.752385] Bluetooth: RFCOMM socket layer initialized
[ 2.752401] Bluetooth: RFCOMM ver 1.11
[ 2.752407] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.752410] Bluetooth: BNEP filters: protocol multicast
[ 2.752415] Bluetooth: BNEP socket layer initialized
[ 2.752418] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.752423] Bluetooth: HIDP socket layer initialized
root@imx8mmevk:~# hciconfig
root@imx8mmevk:~# hci
hciattach hcidump hcisecfilter
hciconfig hcieventmask hcitool
root@imx8mmevk:~# sudo hciconfig hci0 up
Can't get device info: No such device
root@imx8mmevk:~#
----
Best Regards,
T.Kashiwagi
已解决! 转到解答。
I got reply for the imx8M board, maybe you can refer to it:
"To use the Bluetooth, try setting up the ttymxc2 device with the below command:
hciattach /dev/ttymxc2 qca
After that, use the hcitool Linux tool to set up the Bluetooth connection between two devices."
I got reply for the imx8M board, maybe you can refer to it:
"To use the Bluetooth, try setting up the ttymxc2 device with the below command:
hciattach /dev/ttymxc2 qca
After that, use the hcitool Linux tool to set up the Bluetooth connection between two devices."
Hi Joan
Thank you for responding!
I executed "hciattach /dev/ttymxc0 qca", and "Device setup complete" was printed.
Also bluetoothctl worked. Thank you for your advise!
root@imx8mmevk:~# hciconfig
hci0: Type: Primary Bus: UART
BD Address: 61:47:AA:32:44:06 ACL MTU: 1024:7 SCO MTU: 60:8
UP RUNNING
RX bytes:781 acl:0 sco:0 events:50 errors:0
TX bytes:2472 acl:0 sco:0 commands:50 errors:0root@imx8mmevk:~# bluetoothctl
Agent registered
[bluetooth]# scan on
Discovery started
[CHG] Controller 61:47:AA:32:44:06 Discovering: yes.
.
.
.
Best Regards,
T.kashiwagi
Hi
I am facing the same issues with my IMX8M Mini board. I have tried doing everything on this thread, one thing i am not able to do, is using hciattach command. I suspect i am doing something wrong. Since i am very new to this, can someone please elaborate on using the hciattach command to turn bluetooth ON? I get the following error when i try to run the hciattach command.
evk_8mm:/ #
evk_8mm:/ # hciattach
/system/bin/sh: hciattach: not found
127|evk_8mm:/ # hciattach /dev/ttymxc2 qca
/system/bin/sh: hciattach: not found
Regards
Abdu
Hi Abdu
I think “hciattach” is a BlueZ command. Looking at the contents of the error, it seems that there is no “hciattach”.
Please Make sure BlueZ is included when you bitbake.
Best Regards,
T.kashiwagi