2010-03-30 01:46:24     UART Bluetooth connect to headset issue .

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2010-03-30 01:46:24     UART Bluetooth connect to headset issue .

Hank Lee (TAIWAN)

Message: 87816   

 

Hi,

 

I tested a CSR BC06 UART bluetooth module and it can connect to bluetooth mouse.

 

But I referred the web   docs.blackfin.uclinux.org/doku.php?id=bluetooth to test Bluetooth ALSA lib and voice headset service with bluetooth headset. It will show some error message.  The test process and error message are as below.

 

root:/> bccmd -t bcsp -d /dev/ttyBF0 psload -r /home/csr.psr

Loading PSKEY_ANA_FREQ ... done

Loading PSKEY_TX_GAIN_RAMP ... done

Loading PSKEY_LOOP_FILTER_TRIM ... done

Loading 0x21e2 ... done

Loading PSKEY_USE_EXTERNAL_CLOCK ... done

Loading PSKEY_ANA_FTRIM ... done

Loading PSKEY_XTAL_TARGET_AMPLITUDE ... done

Loading PSKEY_LM_TEST_SEND_ACCEPTED_TWICE ... done

Loading PSKEY_PMALLOC_SIZES ... done

Loading PSKEY_MR_TX_IF_ATTEN_OFF_TEMP ... done

Loading PSKEY_TEMPERATURE_VS_DELTA_TX_BB_MR_PAYLOAD ... done

Loading PSKEY_TEMPERATURE_VS_DELTA_TX_BB_MR_HEADER ... done

Loading PSKEY_RX_DYNAMIC_LVL_OFFSET ... done

Loading 0x212c ... done

Loading 0x212e ... done

Loading 0x212f ... done

Loading 0x2130 ... done

Loading 0x2131 ... done

Loading 0x2133 ... done

Loading 0x2134 ... done

Loading 0x2135 ... done

Loading 0x2136 ... done

Loading 0x2137 ... done

Loading 0x2138 ... done

Loading 0x21e1 ... done

Loading 0x2215 ... done

Loading 0x2216 ... done

Loading 0x2227 ... done

Loading 0x2228 ... done

Loading 0x2229 ... done

Loading 0x222a ... done

Loading 0x222b ... done

root:/> hcid -n &

hcid[362]: Bluetooth HCI daemon

362

root:/> hciattach -n /dev/ttyBF0 bcsp &

363

root:/> hcid[362]: HCI dev 0 registered

hbcs=p_

       recv: Out-of-order packet arrived, got 1 expected 0

hcid[362]: HCI dev 0 up

hcid[362]: Starting security manager 0

 

(modify /etc/bluetooth/hcid.conf and /etc/asound.conf)

 

 

root:/> sdpd &

368

root:/> headsetd -n &

371

root:/> headsetd[371]: Bluetooth headset daemon version 0.42

root:/> aplay -D headset /home/ALSNDMGR.WAV

headsetd[373]: Configuration phase ended: target bdaddr is 00:1E:DC:AB:6D:3F, ti

meout is 6000 ms

headsetd[373]: Changing state: Idle-->Paging

headsetd[373]: unable to connect L2CAP socket to headset: Connection refused

headsetd[373]: Changing state: Paging-->Idle

aplay: main:550: audio open error: Connection refused

 

 

And no sound output from bluetooth headset.  But if I tested this function with CSR USB BC04, it can work.( ps. BC06 no USB interface)

 

So is it UART bluetooth profile(bluez)  issue or driver issue?

 

Hank

TranslateQuoteReplyEditDelete

 

 

2010-03-30 15:06:18     Re: UART Bluetooth connect to headset issue .

Robin Getz (UNITED STATES)

Message: 87861   

 

Hank:

 

The person with the most bluetooth experience is out this week - can it wait til he gets back?

 

Otherwise - can you try it on your host? (with a bluetooth dongle there?)

 

-Robin

QuoteReplyEditDelete

 

 

2010-03-30 21:30:49     Re: UART Bluetooth connect to headset issue .

Hank Lee (TAIWAN)

Message: 87871   

 

Hi Robin,

 

OK.   I can wait.   And I will try it on my host PC to check this module is right.

Attachments

    Outcomes