2005-03-16 01:21:42

by Ka Kin Cheung

[permalink] [raw]
Subject: Re: [Bluez-users] adding sdp service record attributes

Hi Marcel!
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.
Michael
Marcel Holtmann <[email protected]> wrote:
Hi Michael,

> I'm trying to add sdp service profile using sdptool, and I found
> one that is to add attribute to a SDP record. I wish to know that is
> that true? If so, I wish to know what the values should be put
> according to this command "sdptool get record_handle attrib_id
> attrib_value"? Here is the result when I typed "sdptool get --tree
> record_handle". I wish to know that what corresponds attrib_id and
> attrib_value?

I have no idea what you really wanna know. Try to rephrase your
question.

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users



---------------------------------
Yahoo! ?u???C - ???m?????u?X?????u???I


2005-03-16 09:37:36

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] adding sdp service record attributes

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users