public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: soraberri <421246@posta.unizar.es>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] Re: Profiles and Service publicing
Date: Wed, 23 Feb 2005 12:13:23 +0100	[thread overview]
Message-ID: <cvho9p$d24$1@sea.gmane.org> (raw)
In-Reply-To: <1109027993.7626.41.camel@pegasus>

Hi,

> if the headset ends up in a loop like this, then the implementation of
> the headset profile inside the headset has a bug. It is that simple,
> because they should be able to handle a non existing audio gateway
> record nicely.
> 
> Regards
> 
> Marcel


Indeed it hangs in the loop and nothing else can be done with it until 
it is powered off.
I have add a "false" AudioGAteway service to my local SDP database so 
when the headset looks for it, she find it. At least now there is no 
loop but, as expected, the headset doesn't work nicely: it won't close 
an ACL connection to the gateway by its own so, in order to connect with 
btsco I should disconnect this ACL myself (hcitool dc bdaddr_)

How did I add AudioGateway service?
The ugliest way:
·copy add_headset(...) function in sdptool.c
·paste the code and rename to add_headset_ag(...)
·with the changes:

  " si->channel: 5;" to " si->channel: 1;"
HEADSET_SVCLASS_ID to HEADSET_AGW_SVCLASS_ID
HEADSET_PROFILE_ID to HEADSET_AGW_PROFILE_ID

·also adding the line:

{ "HSAG",	HEADSET_AGW_SVCLASS_ID,		add_hs_audio_gw	},
in the service[] structure

Certainly I don't understand roughly what I'm doing...

Regards,

Luis



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2005-02-23 11:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-16 13:04 [Bluez-users] Profiles and Service publicing soraberri
2005-02-17 14:52 ` Brad Midgley
2005-02-21 23:19 ` Marcel Holtmann
2005-02-23 11:13   ` soraberri [this message]

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='cvho9p$d24$1@sea.gmane.org' \
    --to=421246@posta.unizar.es \
    --cc=bluez-users@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