From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: <6D0501F2-3D13-4229-98A2-D710C0D5B085@cadvium.net> Message-Id: <9AA83EEE-832D-4C33-A676-EDB4025DC416@cadvium.net> From: robert Date: Fri, 14 Sep 2007 13:37:09 -0700 To: BlueZ development 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="===============0364293847==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0364293847== Content-Type: multipart/alternative; boundary=Apple-Mail-2-1041631769 --Apple-Mail-2-1041631769 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Audio Gateway. Serial Port is a generic serial port that can be used for arbitrary communication with the phone. Audio Gateway is for the handset. I do not believe the phone will attempt to establish an SCO connection with a device that is not connected over one of the Audio Gateway channels. --robert On Sep 14, 2007, at 11:31 AM, andrey larin wrote: > here is one of the moment > did i must bind rfcomm to phone channel where the serial port is > shown or to where the audio gateway is shown ? > > 2007/9/14, robert < rbscott@cadvium.net>: > I am not sure if that will work, unless the phone recognizes your > computer as a handsfree device. Normally there is a step in the > phone where you have to add a handsfree device, and then you have > to go through a handshake on that channel. > > Also, make sure that you are connecting to the correct channel. If > you run > > >sdptool browse > > One should look like > Service Name: Handsfree Voice Gateway > Service Description: Handsfree Voice Gateway > Service Provider: /a/mobile/system/cl.gif > Service RecHandle: 0x10007 > Service Class ID List: > "Handfree Audio Gateway" (0x111f) > "Generic Audio" (0x1203) > Protocol Descriptor List: > "L2CAP" (0x0100) > "RFCOMM" (0x0003) > Channel: 7 > Language Base Attr List: > code_ISO639: 0x656e > encoding: 0x6a > base_offset: 0x100 > code_ISO639: 0x6672 > encoding: 0x6a > base_offset: 0xc800 > code_ISO639: 0x6573 > encoding: 0x6a > base_offset: 0xc803 > code_ISO639: 0x7074 > encoding: 0x6a > base_offset: 0xc806 > Profile Descriptor List: > "Handsfree" (0x111e) > Version: 0x0101 > > You have to connect to (or bind in your case) to rfcomm channel 7 > (in this example). Otherwise, the phone will not recognize that > you are trying to connect as a headset. > > Second, you have to complete the handshake defined inside of the > bluetooth headset profile. Once again, otherwise the phone will > not recognize you as a headset. > > There are a lot of little gotchas like this that are kind of hard > to track down. Once I figure them all out, I hope to write an > article on my site, alongside of the code I release. > > cheers, > --robert > > On Sep 14, 2007, at 10:48 AM, andrey larin wrote: > >> well the things i want to make samethin like phonecontrol.net in >> windows >> >> for managing telephone and other there is a good tool gammu >> >> and when the call comes or maked i want to establish audio connection >> >> so i want to make it work after HF profile is registred and >> listening service is running >> as i understand the audio is channelles >> >> the listening service is the goal >> >> >> >> 2007/9/14, andrey larin < ubergitler@gmail.com>: >> well >> what i do.. >> in gentoo and testing 2 phones SonyEricsson-w800 and Nokia 5200 >> >> install bluez >> >> registered HF service using sdptool >> >> using hcitool and sdptool >> finding phone and it rfcomm channel >> on phone i set that my pc is can always connect to phone >> binding using rfcomm to /dev/rfcomm0 >> and just using minicom >> >> i even make a stupid script in bash to connect to rfcomm on phone >> >> when the ring comes i try at command to request audio channel >> >> but nothing >> >> maybe same thing foget to tell >> >> 2007/9/14, robert < rbscott@cadvium.net>: >> Hello Andrey, >> >> let me back up for a second and ask how you are trying to access the >> handsfree? >> >> Is the phone paired with your computer? >> Is the phone paired with your computer as a Handsfree device? >> What kind of phone are you using? >> For your RFCOMM channel, are you connecting to the channel channel >> are you connecting to on the phone? >> How are you handing the RFCOMM processing? >> >> I left out some steps about Service Discovery and Pairing that I >> assumed you already completed. >> >> --robert >> >> On Sep 14, 2007, at 12:39 AM, andrey larin wrote: >> >> > 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 ? >> > >> > >> >> >> --------------------------------------------------------------------- >> ---- >> 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 >> >> >> --------------------------------------------------------------------- >> ---- >> 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 > > > ---------------------------------------------------------------------- > --- > 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 > > > ---------------------------------------------------------------------- > --- > 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 --Apple-Mail-2-1041631769 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Audio Gateway.

Serial Port is a generic = serial port that can be used for arbitrary communication with the phone. = =A0Audio Gateway is for the handset. =A0I do not believe the phone will = attempt to establish an SCO connection with a device that is not = connected over one of the Audio Gateway channels.

--robert

=
On Sep 14, 2007, at 11:31 AM, andrey larin = wrote:

here is one of the moment
did i must bind rfcomm to = phone channel where the serial port is shown or to where the audio = gateway is shown ?

2007/9/14, = robert < = rbscott@cadvium.net>:
I am not sure if = that will work, unless the phone recognizes your computer as a handsfree = device. =A0Normally there is a step in the phone where you have to add a = handsfree device, and then you have to go through a handshake on that = channel.

Also, make sure that you are connecting to = the correct channel. =A0If you run=A0

>sdptool= browse <bluetooth address of phone>

One = should look like
Service Name: Handsfree Voice = Gateway
Service Description: Handsfree Voice = Gateway
Service Provider: = /a/mobile/system/cl.gif
Service RecHandle: = 0x10007
Service Class ID List:
=A0=A0"Handfree = Audio Gateway" (0x111f)
=A0=A0"Generic Audio" = (0x1203)
Protocol Descriptor List:
=A0=A0"L2CAP" = (0x0100)
=A0=A0"RFCOMM" (0x0003)
=A0=A0 =A0Channel: = 7
Language Base Attr List:
=A0=A0code_ISO639: = 0x656e
=A0=A0encoding: =A0 =A00x6a
=A0=A0base_offset: = 0x100
=A0=A0code_ISO639: 0x6672
=A0=A0encoding: =A0 = =A00x6a
=A0=A0base_offset: 0xc800
=A0=A0code_ISO639: = 0x6573
=A0=A0encoding: =A0 =A00x6a
=A0=A0base_offset: = 0xc803
=A0=A0code_ISO639: 0x7074
=A0=A0encoding: =A0 = =A00x6a
=A0=A0base_offset: 0xc806
Profile Descriptor = List:
=A0=A0"Handsfree" (0x111e)
=A0=A0 =A0Version: = 0x0101

You have to connect to (or bind in your = case) to rfcomm channel 7 (in this example). =A0Otherwise, the phone = will not recognize that you are trying to connect as a headset. =

Second, you have to complete the handshake = defined inside of the bluetooth headset profile. =A0Once again, = otherwise the phone will not recognize you as a = headset.

There are a lot of little gotchas like = this that are kind of hard to track down. =A0Once I figure them all out, = I hope to write an article on my site, alongside of the code I release. =

cheers,
--robert

<= div>
On Sep 14, = 2007, at 10:48 AM, andrey larin wrote:

well = the things i want to make samethin like phonecontrol.net in windows =

for managing telephone and other there is a good tool = gammu

and when the call comes or maked i want to establish audio = connection

so i want to make it work after HF profile is = registred and listening service is running
as i understand the audio = is channelles

the listening service is the = goal



2007/9/14, andrey = larin < = ubergitler@gmail.com>:
well
what i = do..
in gentoo and testing 2 phones SonyEricsson-w800 and Nokia = 5200

install bluez

registered HF service using = sdptool

using hcitool and sdptool
finding phone and it rfcomm = channel
on phone i set that my pc is can always connect to = phone
binding using rfcomm to /dev/rfcomm0
and just using = minicom

i even make a stupid script in bash to connect to rfcomm = on phone

when the ring comes i try at command to request audio = channel

but nothing

maybe same thing foget to = tell

2007/9/14, robert = < = rbscott@cadvium.net>:
Hello Andrey,

let me back up for a = second and ask how you are trying to access the
handsfree?

Is = the phone paired with your computer?
Is the phone paired with your = computer as a Handsfree device?
What kind of phone are you using? =
For your RFCOMM channel, are you connecting to the = channel=A0=A0channel
are you connecting to on the phone?
How are = you handing the RFCOMM processing?

I left out some steps about = Service Discovery and Pairing that I
assumed you already = completed.

--robert

On Sep 14, 2007, at 12:39 AM, andrey = larin wrote:

> 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 = ?
>
>


---------------------------------------------= ----------------------------
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 =


=
---------------------------------------------------------------------= ----
This SF.net = email is sponsored by: Microsoft
Defy all = challenges. Microsoft(R) Visual Studio 2005.
Bluez-devel = mailing list
<= /blockquote>


------------------------------------= -------------------------------------
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.source= forge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel=


This SF.net email is sponsored by: = Microsoft
Defy all challenges. = Microsoft(R) Visual Studio 2005.

= --Apple-Mail-2-1041631769-- --===============0364293847== 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/ --===============0364293847== 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 --===============0364293847==--