I’m having trouble in activating bluetooth in combination with miniuart.
The reason is that /dev/ttyAMA0 is used by my Razberry zwave card.
Thus I need GPIO 14 and 15 available.
~ # cat /mnt/boot/config.txt kernel=u-boot.bin disable_splash=1 dtparam=audio=on dtoverlay=pi3-miniuart-bt enable_uart=1 core_freq=250
Name: pi3-miniuart-bt Info: Switch Pi3 Bluetooth function to use the mini-UART (ttyS0) and restore UART0/ttyAMA0 over GPIOs 14 & 15. Note that this may reduce the maximum usable baudrate. N.B. It is also necessary to edit /lib/systemd/system/hciuart.service and replace ttyAMA0 with ttyS0, unless you have a system with udev rules that create /dev/serial0 and /dev/serial1, in which case use /dev/serial1 instead because it will always be correct. Furthermore, you must also set core_freq=250 in config.txt or the miniuart will not work. Load: dtoverlay=pi3-miniuart-bt Params: <None>
I do see dev-ttyAMA0.device hardcoded in this file:
/usr/lib/systemd/system # cat bluetooth-bcm43xx.service [Unit] Description=Bluetooth for BCM43xx Before=bluetooth.service After=dev-ttyAMA0.device ConditionPathIsDirectory=/proc/device-tree/soc/[email protected]/bt_pins [Service] Type=forking ExecStart=/usr/sbin/bluetooth-bcm43xx [Install] WantedBy=hassos-hardware.target
I thought it would need changing to /dev/serial1. But the file is read-only.
But when I try the following on the prompt, I get an error. Thought it should work like this.
~ # hciattach /dev/serial1 bcm43xx 460800 noflow - bcm43xx_init Initialization timed out. ~ #
Am not sure what I am missing. Has anyone gotten this to work?