Re: SCO Support over USB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
  i had this same problem before. then when i used 2.6.29 kernel
i could do aplay and arecord. i used bluez 4.33.

hope this helps.



On Tue, Mar 31, 2009 at 7:06 PM, Vivek Agarwal
<vivek.mailinglists@xxxxxxxxx> wrote:
> Dear all,
>
> I want to use my bluetooth headset with my embedded platform using a
> bluetooth USB dongle.
> The main application is to be able to use it with a SIP application
> running on the embedded Platform..
>
> I am facing problems making to work.. I will try to explain the
> scenario in the mail below please help me where i am going wrong..
>
> First about the embedded platfrom, it is iMX31 based iMX31ADS
> evaluation board running 2.6.24 kernel.
>
> Step 1) I tried to compile the bluez-3.36 and enabled the hci_usb
> kernel module and checked using
> aplay if i am able to hear sound.
> I was not succcessful.
>
> Step 2) I tried putting the 2.6.27 bluetooth related changes into the
> 2.6.24 kernel and see if there changes make it work..
>
> I made all the bluetooth related files similar to the 2.6.27 kernel
> bluetooth files except hci_sysfs.c which i kept intact.
>
> Once i made these changes i was able to record and play individually
> but get the following problems
>        a) the get the following kernel messages when i try to play a .wav
> file using aplay..
>
>                hci_scodata_packet: hci0 SCO packet for unknown connection handle 5633
>                hci_scodata_packet: hci0 SCO packet for unknown connection handle 9985
>                hci_scodata_packet: hci0 SCO packet for unknown connection handle 49664
>                hci_scodata_packet: hci0 SCO packet for unknown connection handle 181
>                hci_scodata_packet: hci0 SCO packet for unknown connection handle 11264
>                hci_scodata_packet: hci0 SCO packet for unknown connection handle 32769
>                hci_scodata_packet: hci0 SCO packet for unknown connection handle 49153
>
>        b) i am not able to do an echo test using the following method. The
> dont hear any echo.
>                arecord -D bt_audio -f S16_LE | aplay -D bt_audio -f S16_LE
>        if the run the hcid in debug mode below are the debug messages..
>
>                hcid[1776]: Accepted new client connection on unix socket (fd=21)
>                        hcid[1776]: Audio API: received BT_GETCAPABILITIES_REQ
>                        hcid[1776]: Audio API: sending BT_GETCAPABILITIES_RSP
>                        hcid[1776]: Audio API: received BT_SETCONFIGURATION_REQ
>                        hcid[1776]: config sco - device = 00:0C:78:72:7E:13 access_mode = 1
>                        hcid[1776]: /org/bluez/audio/device2: Connecting to
> 00:0C:78:72:7E:13 channel 2
>                        hcid[1776]: State changed /org/bluez/audio/device2:
> HEADSET_STATE_DISCONNECTED -> HEADSET_STATE_CONNECT_IN_PROGRESS
>                        hcid[1776]: Accepted new client connection on unix socket (fd=23)
>                        hcid[1776]: Audio API: received BT_GETCAPABILITIES_REQ
>                        hcid[1776]: Audio API: sending BT_GETCAPABILITIES_RSP
>                        hcid[1776]: link_key_request (sba=00:80:98:98:71:10, dba=00:0C:78:72:7E:13)
>                        hcid[1776]: kernel auth requirements = 0x00
>                        hcid[1776]: stored link key type = 0x00
>                        hcid[1776]: /org/bluez/audio/device2: Connected to 00:0C:78:72:7E:13
>                        hcid[1776]: State changed /org/bluez/audio/device2:
> HEADSET_STATE_CONNECT_IN_PROGRESS -> HEADSET_STATE_CONNECTED
>                        hcid[1776]: State changed /org/bluez/audio/device2:
> HEADSET_STATE_CONNECTED -> HEADSET_STATE_PLAY_IN_PROGRESS
>                        hcid[1776]: SCO socket opened for headset /org/bluez/audio/device2
>                        hcid[1776]: SCO fd=24
>                        hcid[1776]: Audio API: sending BT_SETCONFIGURATION_RSP
>                        hcid[1776]: State changed /org/bluez/audio/device2:
> HEADSET_STATE_PLAY_IN_PROGRESS -> HEADSET_STATE_PLAYING
>                        hcid[1776]: Audio API: received BT_STREAMSTART_REQ
>                        hcid[1776]: Audio API: sending BT_STREAMSTART_RSP
>                        hcid[1776]: Audio API: sending BT_STREAMFD_IND
>                        hcid[1776]: Audio API: received BT_SETCONFIGURATION_REQ
>                        hcid[1776]: config sco - device = 00:0C:78:72:7E:13 access_mode = 2
>                        hcid[1776]: Audio API: sending BT_SETCONFIGURATION_RSP
>                        hcid[1776]: Audio API: received BT_STREAMSTART_REQ
>                        hcid[1776]: Audio API: sending BT_STREAMSTART_RSP
>                        hcid[1776]: Audio API: sending BT_STREAMFD_IND
>                        hcid[1776]: Unix client disconnected (fd=23)
>                        hcid[1776]: Unix client disconnected (fd=21)
>                        hcid[1776]: State changed /org/bluez/audio/device2:
> HEADSET_STATE_PLAYING -> HEADSET_STATE_CONNECTED
>                        hcid[1776]: State changed /org/bluez/audio/device2:
> HEADSET_STATE_CONNECTED -> HEADSET_STATE_DISCONNECTED
>
> Please help me resolve the 2 problems i am facing and do let me know
> if any one has tried connecting a bluetooth headset AT-BT220 to the
> system.
>
> Thanks
> Vivek
> L&T EmSyS.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux