Changes

How to setup Marvell bluetooth

502 bytes added, 18:40, 1 October 2015
m
no edit summary
To read CSR chip version
<pre>
root@igep0020:~# bccmd -t bcsp -d /dev/ttyO1 chiprev
Chip revision: 0x0030 (BC4-ROM)
</pre>
And send the file using the bccmd tool.
<pre>
# bccmd -t bcsp -d /dev/ttyO1 psload -r bluez.psr
Loading PSKEY_LC_ENHANCED_POWER_TABLE ... done
<pre>
# hciattach -s 115200 /dev/ttyO1 bcsp 115200 noflow# hciconfig hci0 up# hciconfig hci0 piscan# hciconfig -a hci0
hci0: Type: UART
BD Address: 00:02:5B:00:A5:A5 ACL MTU: 310:10 SCO MTU: 64:8
=== Scan for HCI bluetooth peer devices ===
<pre>
# hcitool -i hci0 scan
Scanning ...
00:1E:A4:FC:EC:2E Phone
</pre>
=== Ping bluetooth peer device ===
<pre>
root@igep00x0:/etc/bluetooth# l2ping -c 4 00:1E:A4:FC:EC:2E
Ping: 00:1E:A4:FC:EC:2E from 00:02:5B:00:A5:A5 (data size 44) ...
44 bytes from 00:1E:A4:FC:EC:2E id 0 time 38.79ms
44 bytes from 00:1E:A4:FC:EC:2E id 1 time 38.60ms
44 bytes from 00:1E:A4:FC:EC:2E id 2 time 38.66ms
44 bytes from 00:1E:A4:FC:EC:2E id 3 time 538.79ms
4 sent, 4 received, 0% loss
</pre>
== Others ==
=== Switch-off wifi to get better bluetooth performance ===
For best performance you need to disable WIFI, you can do this:<br><br>Disable wlan0 interface<pre>ifconfig wlan0 down</pre> Switch-off "power down" line of wifi* For IGEPv2 RevC ('''IGEP0020-RC''') and IGEP COM MODULE ('''IGEP0030-RE''') series
<pre>
# echo 0 > /sys/class/gpio/gpio138/value
</pre>
* Older For older IGEPv2 RevB ('''IGEP0020-RB''') series
<pre>
# echo 0 > /sys/class/gpio/gpio94/value
</pre>
4,199
edits