From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: Date: Fri, 14 Sep 2007 07:39:50 +0000 From: "andrey larin" To: "BlueZ development" In-Reply-To: MIME-Version: 1.0 References: Subject: Re: [Bluez-devel] handsfree or headset support on pc Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0104782504==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0104782504== Content-Type: multipart/alternative; boundary="----=_Part_594_23089080.1189755590710" ------=_Part_594_23089080.1189755590710 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ? 2007/9/14, robert : > > 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 > > 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 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 > ------=_Part_594_23089080.1189755590710 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ?


2007/9/14, robert <rbscott@cadvium.net>:
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

------=_Part_594_23089080.1189755590710-- --===============0104782504== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --===============0104782504== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0104782504==--