0
edits
Changes
no edit summary
At any point, if you see a mistake you can contribute to this How-To.
Some IGEP Technology boards has built-in a Class 2 Bluetooth 2.0 + EDR device.
|}
=== Setup bluetooth internal parameters ===
By default the WIFI-BT module is not configured for single antenna, so you need to configure this, set registers settings as follows:
# echo "0xa5f0 0xa027181c" > wrmac
</pre>
=== Validate serial comunication to CSR bluetooth xip ===
Configure ttyO1
<pre>
stty -F /dev/ttyO1 ispeed 115200 ospeed 115200 cs8 -cstopb clocal -crtscts -parodd
</pre>
To read CSR chip version
<pre>
root@igep0020:~# bccmd -t bcsp -d /dev/ttyO1 chiprev
Chip revision: 0x0030 (BC4-ROM)
</pre>
----
== Setup HCI device ==
=== Load Linux kernel modules ===
Next, you will need to load some bluetooth modules
<pre>
</pre>
<pre>
// PSKEY Parameters for Bluetooth RF
</pre>
=== Create HCI device ===
Finally you can attach to device an scan for other bluetooth devices.
HCI Ver: 2.0 (0x3) HCI Rev: 0xc5c LMP Ver: 2.0 (0x3) LMP Subver: 0xc5c
Manufacturer: Cambridge Silicon Radio (10)
</pre>
=== Scan for HCI bluetooth peer devices ===
<pre>
# hcitool -i hci0 scan
Scanning ...
</pre>
== Others ==
=== Switch-off wifi to get better bluetooth performance ===
For best performance you need to disable WIFI, you can do this
<pre>
</pre>
=== Ensure uart2 gpio/mux configuration ===
In IGEPv2 you should configure uart2_XXX pins like:
<pre>
root@igep00x0:~# mount -t debugfs none /sys/kernel/debug
root@igep00x0:~# cat /sys/kernel/debug/omap_mux/uart2_*
name: uart2_cts.uart2_cts (0x48002174/0x144 = 0x0118), b ab26, t NA
mode: OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0
signals: uart2_cts | mcbsp3_dx | gpt9_pwm_evt | NA | gpio_144 | NA | NA | safe_mode
</pre>
--- That's all folks ---