Hi folks,
I'm tryint to use bluetooth interface on my ev board (iMX8 with yocto) whit a sample program.
The firs instruction of this applicatio is :
hci_get_route
but it returns a errno code "no such device" so I try to run\activate the BT interface via :
systemctl enable bluetooth.service
systemctl start bluetooth.service
and check the state with
systemctl status bluetooth.service
and the response is "running" but the problem on hci_get_route call persist.
I've tryed also via shell with
hcitool dev
to discover the bluetooth interface but the response is empty.
Any suggestion?
The solution is, via command lines, types :
1) brcm_patchram_plus --patchram /etc/firmware/BCM43430A1.1DX.hcd --enable_hci --no2bytes --tosleep 50000 --baudrate 1000000 --use_baudrate_for_download /dev/ttyUSB0 & hciconfig -a
2) hciattach /dev/ttyUSB0 any
3) hciconfig hci0 up
after this 3 steps
hcitool dev
show the bt interface and the call at
hci_get_route
works. The step 1 is not necessary after hw reboot, you need only to execute step 2 & 3