summaryrefslogtreecommitdiff
path: root/recipes-support/btuart/files/btuart.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/btuart/files/btuart.sh')
-rwxr-xr-xrecipes-support/btuart/files/btuart.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-support/btuart/files/btuart.sh b/recipes-support/btuart/files/btuart.sh
new file mode 100755
index 0000000..c4f53c1
--- /dev/null
+++ b/recipes-support/btuart/files/btuart.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+sleep 5
+/usr/bin/hciattach /dev/ttymxc3 any 115200 flow
+/usr/sbin/rfkill unblock bluetooth
+/usr/bin/hciconfig hci0 up
+# Change BT UART baudrate to a higher speed, for example 921600
+/usr/bin/hcitool -i hci0 cmd 0x3F 0x09 0x00 0x10 0x0e 0x00
+/bin/stty -F /dev/ttymxc3 921600