TS-4900 Bluetooth: Difference between revisions
From embeddedTS Manuals
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
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: | 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: | ||
<source lang=bash> | <source lang=bash> | ||
# Install bluez if it is not already present | |||
apt-get update | |||
apt-get install bluez-tools | |||
echo 237 > /sys/class/gpio/export | echo 237 > /sys/class/gpio/export | ||
echo low > /sys/class/gpio/gpio237/direction | echo low > /sys/class/gpio/gpio237/direction |
Revision as of 15:27, 28 March 2017
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:
# Install bluez if it is not already present
apt-get update
apt-get install bluez-tools
echo 237 > /sys/class/gpio/export
echo low > /sys/class/gpio/gpio237/direction
echo high > /sys/class/gpio/gpio237/direction
sleep .1
hciattach /dev/ttymxc1 texas 3000000
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.