Change baud of rpi (#344)

* Update run.sh

* Fix bluetooth

* Update CHANGELOG.md

* Update config.json
This commit is contained in:
Pascal Vizeli
2018-07-08 01:23:36 +02:00
committed by GitHub
parent 041ff88126
commit a813622302
3 changed files with 8 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
# Changelog
## 2.3
- Enable PSCAN
## 2.2
- Fix device-tree path for Supervisor 113

View File

@@ -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/",

View File

@@ -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