TS-7680 Bluetooth: Difference between revisions
From embeddedTS Manuals
No edit summary |
(changed baud rate for 4.9, also works properly for stock 3.14 kernel) |
||
Line 5: | Line 5: | ||
echo high > /sys/class/gpio/gpio237/direction | echo high > /sys/class/gpio/gpio237/direction | ||
sleep .1 | sleep .1 | ||
hciattach /dev/ttyAPP0 texas | hciattach /dev/ttyAPP0 texas 115200 | ||
hciconfig hci0 up | hciconfig hci0 up | ||
</source> | </source> |
Revision as of 14:01, 20 February 2019
The WIFI option on the board also includes a bluetooth 4.0 LE module. To connect this to bluez first pulse the BT_EN pin, and then call hciattach:
echo 237 > /sys/class/gpio/export
echo low > /sys/class/gpio/gpio237/direction
echo high > /sys/class/gpio/gpio237/direction
sleep .1
hciattach /dev/ttyAPP0 texas 115200
hciconfig hci0 up
Once this is loaded you can scan for devices with:
hcitool scan
This will return a list of devices such as:
14:74:11:A1:1E:C9 BlackBerry 8530
Bluez has support for many different profiles for HID, A2DP, and many more. Refer to the Bluez documentation for more information.
Please note that the Bluetooth module requires the modem control lines CTS and RTS as flow control.