i try to do something similar but
last time a wrote programs was wery long ago so
i don't understud your code in proper :((
but i tried to do as you say
and nothing happens
coud you explain what your code exactly do ?
so here is a sample of the c part that I am writing. (from your
description, it seems that you and I are doing something similar).
This is a pretty primitive code sample, and there are examples
(probably better) in bluez-utils that do similar things.
Furthermore, this presently only handles the speaker, not the mic.
The second part is an easy addition.
http://www.cadvium.net/files/source/sco-manager.tar.gz
gpl
> make
## basically, you start it up with a file. (the bluetooth address is
ignored but should be formatted properly).
> sco-manager <bluetooth-address> <file-name>
This will listen for an sco connection on the first bluetooth device
that it finds. It will then take any data that it receives and write
it into the file specified on the command line. (I think it also
generates a tonne of debugging too).
This is more useful if you specify a pipe for the file:
> mkfifo test.sco
## Setup voice correctly
> sudo hciconfig hci0 voice 0x0060
> cat test.sco | aplay -f S16 &
> sco-manager <bluetooth-address> test.sco
At this point, if you make a call, it will send the audio through out
your speakers. (Make sure to turn them down, if something isn't
setup properly it makes a terrible noise).
hope this helps,
--robert
On Sep 13, 2007, at 10:17 PM, andrey larin wrote:
> ok here is what i think:
> there is no problem to create and communicate rfcomm
>
> i don't know what connection must be make to control the audio
> ( special rfcomm to audiogateway on phone or usual rfcomm to ssp
> on phone)
>
> must unreserched area is how to handle the audio managment ( open,
> support ,close, route audio from pc microphone to phone ,from phone
> to pc speakers)
>
>
> so
>
> when i connect on my phones spp
> and make call to my cell phone
> on terminal my phone says `RING`
> i need to command the to make an audio connection (SCO)
> and route this connections
>
> how to do this ?
>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel