From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: Date: Fri, 14 Sep 2007 22:31:48 +0400 From: "andrey larin" To: "BlueZ development" In-Reply-To: MIME-Version: 1.0 References: <6D0501F2-3D13-4229-98A2-D710C0D5B085@cadvium.net> 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="===============1612230193==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1612230193== Content-Type: multipart/alternative; boundary="----=_Part_3240_6022500.1189794708714" ------=_Part_3240_6022500.1189794708714 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 : > > 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 : > > > > 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 > > ------=_Part_3240_6022500.1189794708714 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 <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:
  "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.
Bluez-devel mailing list


-------------------------------------------------------------------------
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_3240_6022500.1189794708714-- --===============1612230193== 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/ --===============1612230193== 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 --===============1612230193==--