TS-7680 Bluetooth: Difference between revisions
From embeddedTS Manuals
(changed baud rate for 4.9, also works properly for stock 3.14 kernel) |
(Update with BLE examples.) |
||
Line 1: | Line 1: | ||
The | The Wi-Fi option for this platform also includes a Bluetooth 2.1+EDR and Bluetooth 4.0 LE radio. Support for Bluetooth is provided by the [http://www.bluez.org/ BlueZ project]. BlueZ has support for many different profiles for HID, A2DP, and many more. Refer to the BlueZ documentation for more information. Please see our [[BLE_Examples|BLE Examples page]] for information on installing the latest BlueZ release, getting started, and using demo applications. | ||
To connect this to the system first pulse the <source inline>BT_EN</source> pin, and then call <source inline>hciattach</source>: | |||
<source lang=bash> | <source lang=bash> | ||
echo 237 > /sys/class/gpio/export | echo 237 > /sys/class/gpio/export | ||
Line 16: | Line 18: | ||
This will return a list of devices such as: | This will return a list of devices such as: | ||
<pre> | <pre> | ||
14:74:11: | 14:74:11:XX:XX:XX BlackBerry 8530 | ||
</pre> | </pre> | ||
Please note that the Bluetooth module requires the modem control lines CTS and RTS as flow control. | Please note that the Bluetooth module requires the modem control lines CTS and RTS as flow control. |
Latest revision as of 14:21, 22 September 2021
The Wi-Fi option for this platform also includes a Bluetooth 2.1+EDR and Bluetooth 4.0 LE radio. Support for Bluetooth is provided by the BlueZ project. BlueZ has support for many different profiles for HID, A2DP, and many more. Refer to the BlueZ documentation for more information. Please see our BLE Examples page for information on installing the latest BlueZ release, getting started, and using demo applications.
To connect this to the system 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:XX:XX:XX BlackBerry 8530
Please note that the Bluetooth module requires the modem control lines CTS and RTS as flow control.