Is it easy to write an program to make FreeBSD supoort Headset ?

Maksim Yevmenkin maksim.yevmenkin at gmail.com
Thu Apr 26 17:02:07 UTC 2007


On 4/26/07, 方志 <tscmga at gmail.com> wrote:
>    "Isochronous USB transfers are broken.This means that the USB
> device will not be able to transfer SCO date (voice)."  (from  man 4
> ng_utb) .
>
> Do you means that these  functions
>            "ubt_isoc_in_start"
>            "ubt_isoc_in_complete"
>            "ubt_isoc_in_complete2"
>            "ubt_isoc_out_start"
>            "ubt_isoc_out_complete"
>            "ubt_isoc_out_complete2"
>  in /usr/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c  dosen't work
> properly?

yes. when i initially wrote them, i had very little knowledge about
usb isoc. transfers. right now (i'd like to think) i have a better
understanding of usb isoc. transfers on freebsd and have some code
(locally) that seems to work.

>     I didn't know the official  documents on bluetooth and headset
> profile are available freely on www.bluetooth.com  but not on
> www.bluetooth.org .

i not sure what are you saying, but yes, bluetooth profile documents
available at

http://www.bluetooth.com/Bluetooth/Learn/Technology/Specifications/

and specifically headset

http://www.bluetooth.com/NR/rdonlyres/5C0DEE05-84CD-4D79-BD52-7ECA283430A0/981/HSP_SPEC_V11.pdf

thanks,
max
>
>
>
>
>
> On 4/25/07, Maksim Yevmenkin <maksim.yevmenkin at gmail.com> wrote:
> > On 4/25/07, zhengzhi <tscmga at gmail.com> wrote:
> > > Hi.
> > >       I want to use my headset in FreeBSD now. I 've read some documents
> > about
> > > bluetooth , headset profile .Headset Control is the higher level layer of
> > > SDP and RFCOMM ,and not complex.FreeBSD supports SDP and RFCOMM.
> > >   So What I have to do is  implement the Headset Control layer and wrap it
> > as
> > > a audio device ?
> >
> > 1) sco support in ng_ubt(4) - some code exists but was not committed
> >
> > 2) sco sockets support - some code exists but was not committed
> >
> > 3) figure out a clean and good way to plug bluetooth sco into audio
> > subsystem
> >
> > 4) actually implement headset profile
> >
> > item 1 to 3 are definitely kernel work. implementation of item 4
> > largely depends on implementation of item 3 and may or may not be in
> > userspace.
> >
> > thanks,
> > max
> >
>


More information about the freebsd-bluetooth mailing list