diff --git a/bluetooth_bcm43xx/CHANGELOG.md b/bluetooth_bcm43xx/CHANGELOG.md index f7f6696..4031576 100644 --- a/bluetooth_bcm43xx/CHANGELOG.md +++ b/bluetooth_bcm43xx/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 2.3 +- Enable PSCAN + ## 2.2 - Fix device-tree path for Supervisor 113 diff --git a/bluetooth_bcm43xx/config.json b/bluetooth_bcm43xx/config.json index 816a6c5..7ecaa1b 100644 --- a/bluetooth_bcm43xx/config.json +++ b/bluetooth_bcm43xx/config.json @@ -1,6 +1,6 @@ { "name": "Bluetooth BCM43xx", - "version": "2.2", + "version": "2.3", "slug": "bluetooth_bcm43xx", "description": "Activate Bluetooth for Broadcom 43xx chips", "url": "https://home-assistant.io/addons/bluetooth_bcm43xx/", diff --git a/bluetooth_bcm43xx/run.sh b/bluetooth_bcm43xx/run.sh index 1fa7d87..d309ab1 100644 --- a/bluetooth_bcm43xx/run.sh +++ b/bluetooth_bcm43xx/run.sh @@ -14,8 +14,11 @@ B2="$(echo "$SERIAL" | cut -c5-6)" B3="$(echo "$SERIAL" | cut -c7-8)" BDADDR="$(printf b8:27:eb:%02x:%02x:%02x $((0x$B1 ^ 0xaa)) $((0x$B2 ^ 0xaa)) $((0x$B3 ^ 0xaa)))" -hciattach /dev/ttyAMA0 bcm43xx 921600 noflow - "$BDADDR" +hciattach /dev/ttyAMA0 bcm43xx 921600 - "$BDADDR" +sleep 1 + hciconfig hci0 up +hciconfig hci0 piscan while pgrep hciattach > /dev/null do