TS-4900 Silex Bluetooth: Difference between revisions

From embeddedTS Manuals
(Add link to examples for silex)
No edit summary
Line 8: Line 8:
sleep .5
sleep .5
echo high > /sys/class/gpio/gpio27/direction
echo high > /sys/class/gpio/gpio27/direction
hciattach /dev/ttymxc1 qca 1000000 -t30 flow  
hciattach /dev/ttymxc1 qca 115200 -t30 flow  
</source>
</source>



Revision as of 13:04, 6 December 2021

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.

The Silex compatible images include support for a patched bluez that include support for qualcomm's firmware loading mechanism. Load the driver with:

echo 27 > /sys/class/gpio/export
echo low > /sys/class/gpio/gpio27/direction
sleep .5
echo high > /sys/class/gpio/gpio27/direction
hciattach /dev/ttymxc1 qca 115200 -t30 flow

This will create an hci0 bluez interface:

hciconfig hci0 up
hcitool scan