From: "andrey larin" <ubergitler@gmail.com>
To: "BlueZ development" <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] handsfree or headset support on pc
Date: Fri, 14 Sep 2007 22:31:48 +0400 [thread overview]
Message-ID: <b5fcf2320709141131w9a65e34sadda702125374616@mail.gmail.com> (raw)
In-Reply-To: <CA642A1C-20A0-4DEA-9C14-4CA0E74272A3@cadvium.net>
[-- Attachment #1.1: Type: text/plain, Size: 5235 bytes --]
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.
>
> 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
>
>
[-- Attachment #1.2: Type: text/html, Size: 9286 bytes --]
[-- Attachment #2: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
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/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-09-14 18:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-14 1:45 [Bluez-devel] handsfree or headset support on pc guoyun
2007-09-14 1:58 ` robert
2007-09-14 5:17 ` andrey larin
2007-09-14 6:22 ` robert
2007-09-14 7:39 ` andrey larin
2007-09-14 16:44 ` robert
2007-09-14 17:39 ` andrey larin
2007-09-14 17:48 ` andrey larin
2007-09-14 18:01 ` robert
2007-09-14 18:31 ` andrey larin [this message]
2007-09-14 20:37 ` robert
-- strict thread matches above, loose matches on Subject: below --
2007-09-13 19:34 andrey larin
2007-09-13 19:54 ` robert
2007-09-13 20:48 ` andrey larin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b5fcf2320709141131w9a65e34sadda702125374616@mail.gmail.com \
--to=ubergitler@gmail.com \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox