This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bluetooth on Davinci DM355

Hello,

I've been trying to get Bluetooth to work with DM355 based board. My kernel is 2.6.10 with patchset PSP 01.20.01.004.

I've compiled BlueZ packages "bluez-libs-2.10" and "bluez-utils-2.10" for the DaVinci. I know this is a very old version of BlueZ, but someone had recommended this one as it doesn't depend on the D-Bus package.

So with this setup, when I connect my old Bluetooth USB dongle to the DM355 board (note that it is not the EVM), the device gets detected as a full speed (12Mbps) USB device, and HCI interface is set up for it as hci0.

root@192.168.0.4:~# lsusb

Bus 001 Device 013: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle
Bus 001 Device 001: ID 04d6:0000 Mentor Graphics 

root@192.168.0.4:~# hciconfig -a

hci0:   Type: USB
        BD Address: 00:10:60:AB:D0:5C ACL MTU: 192:8  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN 
        RX bytes:105 acl:0 sco:0 events:10 errors:0
        TX bytes:42 acl:0 sco:0 commands:10 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: 
        Link mode: SLAVE ACCEPT 
        Name: ''
Can't read class of device on hci0. Connection timed out(110)

But when I try to scan for remote BT devices, I get timeout error like below:

root@192.168.0.4:~# hcitool scan

Scanning ...
hci_cmd_task: hci0 command tx timeout
hci_usb_rx_complete: hci0 corrupted packet: type 4 count 16

I do remember that the scan DID WORK one or two times. It did manage to detect my cellphone's BT. But that's about it, so I'd say that it is unable to scan for devices 99% of the time.

I've tested this BT dongle on my LinuxMint based host PC, it works fine. So although very old, the BT dongle is just fine. Looks like I need to fix something in the BlueZ kernel modules or userspace libraries.

Could someone help me figure out what is wrong and what would be the way to fix this?

Thanks and best regards,

Kapil