Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] adding sdp service record attributes
Date: Wed, 16 Mar 2005 10:37:36 +0100	[thread overview]
Message-ID: <1110965856.9818.90.camel@pegasus> (raw)
In-Reply-To: <20050316012142.60063.qmail@web60906.mail.yahoo.com>

Hi Michael,

>     Sorry for that. Maybe I rephrase the question like this.
>     Now, I'm still struggling about how to add sdp service profiles in
> my Linux PC. And the most important thing is to let my computer to act
> as headset so that T610 can connect to it. I know that to add the
> service, using add_headset function is the way. But I find that only
> using this function is not enough, and I also find that there is a
> command called "setattr" that sets or adds the attributes to SDP
> record. Then I wish to know that if the setattr command, or set_attrib
> function in sdptool.c is necessary. If so, in the setattr command,
> there are two parameters that I've to enter, attrib_id and
> attrib_value. I wish to know what are the corresponding values of
> these two parameters from the following after I've typed "sdptool get
> --tree <recordhandle>"?
> Attribute Identifier : 0x0 - ServiceRecordHandle
>   Integer : 0x10002
> Attribute Identifier : 0x1 - ServiceClassIDList
>   Data Sequence
>     UUID16 : 0x1108 - Headset
>     UUID16 : 0x1203 - GenericAudio
> Attribute Identifier : 0x4 - ProtocolDescriptorList
>   Data Sequence
>     Data Sequence
>       UUID16 : 0x0100 - L2CAP
>     Data Sequence
>       UUID16 : 0x0003 - RFCOMM
>       Channel/Port (Integer) : 0x5
> Attribute Identifier : 0x5 - BrowseGroupList
>   Data Sequence
>     UUID16 : 0x1002 - PublicBrowseGroup (SDP)
> Attribute Identifier : 0x9 - BluetoothProfileDescriptorList
>   Data Sequence
>     Data Sequence
>       UUID16 : 0x1108 - Headset
>       Version (Integer) : 0x100
> Attribute Identifier : 0x100
>      Lastly, I wish to konw that if I can let my PC to act as headset
> for T610, after I've added the profile in it, is there any program
> needed to install in T610 so that it can connect to the PC?
>      Hope that this can be clearer to you. Thank you very much.

now I get what you want. In general adding SDP records with sdptool is
only for testing purpose. You should include you own code for it, like
we do for pand or dund. However if you think that the add_headset() in
sdptool misses an attribute then fix this and send in a patch for it.

Regards

Marcel




-------------------------------------------------------
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-03-16  9:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-16  1:21 [Bluez-users] adding sdp service record attributes Ka Kin Cheung
2005-03-16  9:37 ` Marcel Holtmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-03-18 10:44 Ka Kin Cheung
2005-03-16 13:57 Ka Kin Cheung
2005-03-16 14:08 ` Marcel Holtmann
2005-03-15 15:22 Ka Kin Cheung
2005-03-15 16:09 ` Marcel Holtmann

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=1110965856.9818.90.camel@pegasus \
    --to=marcel@holtmann.org \
    --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