* [Bluez-users] sdptool setattr
@ 2004-01-28 18:07 João Santos
2004-01-28 18:17 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: João Santos @ 2004-01-28 18:07 UTC (permalink / raw)
To: bluez-users
Hi all,
Anyone can tell me how i add a attribute in my sdp record with a boolean
value.
i'm trying to add the 0x0302 attr_id(Remote audio volume control) with the
attr_value set as boolean True.
I have done:
[root@olivia libs]# sdptool setattr 0x804f778 0x0302 True
Adding attrib 0x302 string "True" to record 0x804F778
[root@olivia libs]# sdptool get --tree 0x804f778
Attribute Identifier : 0x0 - ServiceRecordHandle
Integer : 0x804f778
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) : 0xc
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
Text : "Headset"
Attribute Identifier : 0x302 - Remote audio volume control
Text : "True"
but as you can see the attr_value is set in the test format.
Thanks in advance,
João Santos
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] sdptool setattr
2004-01-28 18:07 [Bluez-users] sdptool setattr João Santos
@ 2004-01-28 18:17 ` Marcel Holtmann
0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2004-01-28 18:17 UTC (permalink / raw)
To: João Santos; +Cc: BlueZ Mailing List
Hi Joao,
> Anyone can tell me how i add a attribute in my sdp record with a boolean
> value.
> i'm trying to add the 0x0302 attr_id(Remote audio volume control) with the
> attr_value set as boolean True.
it is not possible, because setattr only supports UUID16, UINT32 and
STR8. You must fix the add_headset() function of sdptool or extend the
set_attrib() routine to recognize boolean input.
Regards
Marcel
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] sdptool setattr
@ 2004-02-03 19:02 João Santos
2004-02-03 23:46 ` Marcel Holtmann
2004-02-04 18:11 ` [Bluez-users] How can I start to investigate SDP Header Srihathai Prammanee
0 siblings, 2 replies; 5+ messages in thread
From: João Santos @ 2004-02-03 19:02 UTC (permalink / raw)
To: marcel; +Cc: bluez-users
hi Marcel,
>it is not possible, because setattr only supports UUID16, UINT32 and
>STR8. You must fix the add_headset() function of sdptool or extend the
>set_attrib() routine to recognize boolean input.
i have extend the set_attrib() function:
}else if(!strncasecmp(value,"b",1)) {
/*Boolean*/
printf("Adding attrib 0x%X bool %s to record 0x%X\n",
attrib, value+1, handle);
sdp_attr_add_new(rec, attrib, SDP_BOOL, value+1);
}
and the sdp_data_printf(),
case SDP_BOOL:
printf("%.*sBool 0x%x\n", indent, indent_spaces,
sdpdata->val.uint32);
break;
i have add the attrib doing;
[root@olivia tools]# sdptool setattr 0x804f738 0x0302 bFalse
Adding attrib 0x302 bool False to record 0x804F738
[root@olivia tools]# sdptool get --tree 0x804f738
Attribute Identifier : 0x0 - ServiceRecordHandle
Integer : 0x804f738
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) : 0xc
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
Text : "Headset"
Attribute Identifier : 0x302 - Remote audio volume control
Bool 0x46
but the problem remaind the same;
[root@olivia jsantos]# hcidump -a
HCIDump - HCI packet analyzer ver 1.5
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection(0x01|0x0005) plen 13
. . . W ` . . . . . . . .
>HCI Event: Command Status(0x0f) plen 4
. . . .
>HCI Event: Link Key Request(0x17) plen 6
. . . W ` .
< HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
. . . W ` . . . * ` . . . . . . . 3 . .
. .
>HCI Event: Command Complete(0x0e) plen 10
. . . . . . . W ` .
>HCI Event: Connect Complete(0x03) plen 11
. ) . . . . W ` . . .
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
) . . .
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>HCI Event: Command Complete(0x0e) plen 6
. . . . ) .
>HCI Event: QoS Setup Complete(0x0d) plen 21
. ) . . . . . . . . . . . . . . . . . .
.
>ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
< ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
MTU 1024
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 16
>ACL data: handle 0x0029 flags 0x01 dlen 16
>ACL data: handle 0x0029 flags 0x01 dlen 8
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 28
MTU 32772 Unknown (type 03, len 22)
< ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
>ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
< ACL data: handle 0x0029 flags 0x02 dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 0x0029 flags 0x02 dlen 18
L2CAP(d): cid 0x40 len 14 [psm 3]
RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
dlci 24 frame_type 0 credit_flow 15 pri 0 ack_timer 0 frame_size 1019
max_retrans 0 credits 7
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 16
>ACL data: handle 0x0029 flags 0x01 dlen 2
L2CAP(d): cid 0x40 len 14 [psm 3]
RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
dlci 24 frame_type 0 credit_flow 14 pri 0 ack_timer 0 frame_size 324
max_retrans 0 credits 0
< ACL data: handle 0x0029 flags 0x02 dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 24 pf 1 ilen 0 fcs 0xa2
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 24 pf 1 ilen 0 fcs 0x69
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(d): cid 0x40 len 8 [psm 3]
RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0
< ACL data: handle 0x0029 flags 0x02 dlen 9
L2CAP(d): cid 0x40 len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 1 ilen 0 fcs 0x12
!
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0041
< ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0041 result 0 status 0
>ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(d): cid 0x40 len 8 [psm 3]
RFCOMM(s): MSC CMD: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 0 b1 1 b2 1 b3 0 len 0
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(d): cid 0x40 len 8 [psm 3]
RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 0 b1 1 b2 1 b3 0 len 0
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0041 flags 0x0000 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0041 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0041 flags 0x0000 clen 0
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 9
L2CAP(d): cid 0x40 len 5 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 0 fcs 0xc8
.
< ACL data: handle 0x0029 flags 0x02 dlen 21
L2CAP(d): cid 0x40 len 17 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 13 fcs 0xe
A T + C K P D = 2 0 0 . .
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 18
L2CAP(d): cid 0x40 len 14 [psm 3]
RFCOMM(s): RPN CMD: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
dlci 24 br: 7 db: 3 sb: 0 p: 0 pt: 0 xi: 0 xo: 0
rtri: 0 rtro: 0 rtci: 0 rtco: 0 xon: 17 xoff: 19 pm: 006f
< ACL data: handle 0x0029 flags 0x02 dlen 18
L2CAP(d): cid 0x40 len 14 [psm 3]
RFCOMM(s): RPN RSP: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
dlci 24 br: 0 db: 3 sb: 0 p: 0 pt: 0 xi: 0 xo: 0
rtri: 0 rtro: 0 rtci: 0 rtco: 0 xon: 0 xoff: 0 pm: 3f7f
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0041 flags 0x0000 result 0 clen 0
>ACL data: handle 0x0029 flags 0x02 dlen 17
L2CAP(d): cid 0x41 len 13 [psm 1]
SDP SS Req: tid 0x19 len 0x8
pat uuid-16 0x1108 (Headset)
max 0xff
cont 00
< ACL data: handle 0x0029 flags 0x02 dlen 18
L2CAP(d): cid 0x41 len 14 [psm 1]
SDP SS Rsp: tid 0x19 len 0x9
cur 0x1 tot 0x1 hndl 0x804f738
cont 00
>ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(d): cid 0x40 len 8 [psm 3]
RFCOMM(s): MSC RSP: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 1 len 3
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 21
L2CAP(d): cid 0x41 len 17 [psm 1]
SDP SA Req: tid 0x1a len 0xc
hndl 0x804f738
max 0xff
aid(s) 0x0302 ((null))
cont 00
< ACL data: handle 0x0029 flags 0x02 dlen 19
L2CAP(d): cid 0x41 len 15 [psm 1]
SDP SA Rsp: tid 0x1a len 0xa
cnt 0x7
aid 0x0302 (unknown)
bool 0x46
cont 00
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 15
L2CAP(d): cid 0x40 len 11 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 6 fcs 0xc8
. . . O K . .
>ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0041 scid 0x0041
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x0041
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0041
< ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0041 result 0 status 0
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0041 flags 0x0000 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0041 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0041 flags 0x0000 clen 0
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0041 flags 0x0000 result 0 clen 0
>ACL data: handle 0x0029 flags 0x02 dlen 31
L2CAP(d): cid 0x41 len 27 [psm 1]
SDP SS Req: tid 0x1b len 0x16
pat uuid-128 0x5555
max 0xff
cont 00
< ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(d): cid 0x41 len 10 [psm 1]
SDP SS Rsp: tid 0x1b len 0x5
cur 0x0 tot 0x0
cont 00
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0041 scid 0x0041
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x0041
>HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
>HCI Event: Connect Request(0x04) plen 10
. . . W ` . . . . .
< HCI Command: Accept Connection Request(0x01|0x0009) plen 7
. . . W ` . .
>HCI Event: Command Status(0x0f) plen 4
. . . .
>HCI Event: Connect Complete(0x03) plen 11
. ( . . . . W ` . . .
< HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
( . .
>HCI Event: Command Status(0x0f) plen 4
. . . .
>HCI Event: Connection Packet Type Changed(0x1d) plen 5
. ) . .
>HCI Event: Disconn Complete(0x05) plen 4
. ( . .
>HCI Event: Connect Request(0x04) plen 10
. . . W ` . . . . .
< HCI Command: Accept Connection Request(0x01|0x0009) plen 7
. . . W ` . .
>HCI Event: Command Status(0x0f) plen 4
. . . .
>HCI Event: Connect Complete(0x03) plen 11
. , . . . . W ` . . .
< HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
, . .
>HCI Event: Command Status(0x0f) plen 4
. . . .
>HCI Event: Connection Packet Type Changed(0x1d) plen 5
. ) . .
i still have problems in the 0x0302 attr, maybe i don't do the correct
modification in the set_attr().
Thanks
João Santos.
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] sdptool setattr
2004-02-03 19:02 [Bluez-users] sdptool setattr João Santos
@ 2004-02-03 23:46 ` Marcel Holtmann
2004-02-04 18:11 ` [Bluez-users] How can I start to investigate SDP Header Srihathai Prammanee
1 sibling, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2004-02-03 23:46 UTC (permalink / raw)
To: João Santos; +Cc: BlueZ Mailing List
Hi Joao,
> i have extend the set_attrib() function:
>
> }else if(!strncasecmp(value,"b",1)) {
> /*Boolean*/
>
> printf("Adding attrib 0x%X bool %s to record 0x%X\n",
> attrib, value+1, handle);
>
> sdp_attr_add_new(rec, attrib, SDP_BOOL, value+1);
> }
this code is wrong, because BOOL is not a string.
> and the sdp_data_printf(),
>
> case SDP_BOOL:
> printf("%.*sBool 0x%x\n", indent, indent_spaces,
> sdpdata->val.uint32);
> break;
The SPD_BOOL is not uint32 it is int8.
> i have add the attrib doing;
>
> [root@olivia tools]# sdptool setattr 0x804f738 0x0302 bFalse
> Adding attrib 0x302 bool False to record 0x804F738
A Bool attribute is int8 and not a string, but "False" is a string.
> [root@olivia tools]# sdptool get --tree 0x804f738
> Attribute Identifier : 0x0 - ServiceRecordHandle
> Integer : 0x804f738
> 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) : 0xc
> 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
> Text : "Headset"
> Attribute Identifier : 0x302 - Remote audio volume control
> Bool 0x46
The value of 0x46 is wrong. Is 0x46 == 'F' ???
> but the problem remaind the same;
> [root@olivia jsantos]# hcidump -a
> HCIDump - HCI packet analyzer ver 1.5
> device: hci0 snap_len: 1028 filter: 0xffffffff
> < HCI Command: Create Connection(0x01|0x0005) plen 13
> . . . W ` . . . . . . . .
> >HCI Event: Command Status(0x0f) plen 4
> . . . .
> >HCI Event: Link Key Request(0x17) plen 6
> . . . W ` .
> < HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
> . . . W ` . . . * ` . . . . . . . 3 . .
> . .
> >HCI Event: Command Complete(0x0e) plen 10
> . . . . . . . W ` .
> >HCI Event: Connect Complete(0x03) plen 11
> . ) . . . . W ` . . .
> < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 3 scid 0x0040
> < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
> ) . . .
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >HCI Event: Command Complete(0x0e) plen 6
> . . . . ) .
> >HCI Event: QoS Setup Complete(0x0d) plen 21
> . ) . . . . . . . . . . . . . . . . . .
> .
> >ACL data: handle 0x0029 flags 0x02 dlen 16
> L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
> < ACL data: handle 0x0029 flags 0x02 dlen 16
> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
> MTU 1024
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >ACL data: handle 0x0029 flags 0x02 dlen 16
> >ACL data: handle 0x0029 flags 0x01 dlen 16
> >ACL data: handle 0x0029 flags 0x01 dlen 8
> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 28
> MTU 32772 Unknown (type 03, len 22)
> < ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
> >ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> < ACL data: handle 0x0029 flags 0x02 dlen 8
> L2CAP(d): cid 0x40 len 4 [psm 3]
> RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >ACL data: handle 0x0029 flags 0x02 dlen 8
> L2CAP(d): cid 0x40 len 4 [psm 3]
> RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
> < ACL data: handle 0x0029 flags 0x02 dlen 18
> L2CAP(d): cid 0x40 len 14 [psm 3]
> RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
> dlci 24 frame_type 0 credit_flow 15 pri 0 ack_timer 0 frame_size 1019
> max_retrans 0 credits 7
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >ACL data: handle 0x0029 flags 0x02 dlen 16
> >ACL data: handle 0x0029 flags 0x01 dlen 2
> L2CAP(d): cid 0x40 len 14 [psm 3]
> RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
> dlci 24 frame_type 0 credit_flow 14 pri 0 ack_timer 0 frame_size 324
> max_retrans 0 credits 0
> < ACL data: handle 0x0029 flags 0x02 dlen 8
> L2CAP(d): cid 0x40 len 4 [psm 3]
> RFCOMM(s): SABM: cr 1 dlci 24 pf 1 ilen 0 fcs 0xa2
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >ACL data: handle 0x0029 flags 0x02 dlen 8
> L2CAP(d): cid 0x40 len 4 [psm 3]
> RFCOMM(s): UA: cr 1 dlci 24 pf 1 ilen 0 fcs 0x69
> < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(d): cid 0x40 len 8 [psm 3]
> RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
> dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0
> < ACL data: handle 0x0029 flags 0x02 dlen 9
> L2CAP(d): cid 0x40 len 5 [psm 3]
> RFCOMM(d): UIH: cr 1 dlci 24 pf 1 ilen 0 fcs 0x12
> !
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 1 scid 0x0041
> < ACL data: handle 0x0029 flags 0x02 dlen 16
> L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0041 result 0 status 0
> >ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(d): cid 0x40 len 8 [psm 3]
> RFCOMM(s): MSC CMD: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
> dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 0 b1 1 b2 1 b3 0 len 0
> < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(d): cid 0x40 len 8 [psm 3]
> RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
> dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 0 b1 1 b2 1 b3 0 len 0
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0041 flags 0x0000 clen 0
> < ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0041 flags 0x0000 result 0 clen 0
> < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0041 flags 0x0000 clen 0
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >ACL data: handle 0x0029 flags 0x02 dlen 9
> L2CAP(d): cid 0x40 len 5 [psm 3]
> RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 0 fcs 0xc8
> .
> < ACL data: handle 0x0029 flags 0x02 dlen 21
> L2CAP(d): cid 0x40 len 17 [psm 3]
> RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 13 fcs 0xe
> A T + C K P D = 2 0 0 . .
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >ACL data: handle 0x0029 flags 0x02 dlen 18
> L2CAP(d): cid 0x40 len 14 [psm 3]
> RFCOMM(s): RPN CMD: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
> dlci 24 br: 7 db: 3 sb: 0 p: 0 pt: 0 xi: 0 xo: 0
> rtri: 0 rtro: 0 rtci: 0 rtco: 0 xon: 17 xoff: 19 pm: 006f
> < ACL data: handle 0x0029 flags 0x02 dlen 18
> L2CAP(d): cid 0x40 len 14 [psm 3]
> RFCOMM(s): RPN RSP: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
> dlci 24 br: 0 db: 3 sb: 0 p: 0 pt: 0 xi: 0 xo: 0
> rtri: 0 rtro: 0 rtci: 0 rtco: 0 xon: 0 xoff: 0 pm: 3f7f
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0041 flags 0x0000 result 0 clen 0
> >ACL data: handle 0x0029 flags 0x02 dlen 17
> L2CAP(d): cid 0x41 len 13 [psm 1]
> SDP SS Req: tid 0x19 len 0x8
> pat uuid-16 0x1108 (Headset)
> max 0xff
> cont 00
> < ACL data: handle 0x0029 flags 0x02 dlen 18
> L2CAP(d): cid 0x41 len 14 [psm 1]
> SDP SS Rsp: tid 0x19 len 0x9
> cur 0x1 tot 0x1 hndl 0x804f738
> cont 00
> >ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(d): cid 0x40 len 8 [psm 3]
> RFCOMM(s): MSC RSP: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
> dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 1 len 3
> >HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> >ACL data: handle 0x0029 flags 0x02 dlen 21
> L2CAP(d): cid 0x41 len 17 [psm 1]
> SDP SA Req: tid 0x1a len 0xc
> hndl 0x804f738
> max 0xff
> aid(s) 0x0302 ((null))
> cont 00
> < ACL data: handle 0x0029 flags 0x02 dlen 19
> L2CAP(d): cid 0x41 len 15 [psm 1]
> SDP SA Rsp: tid 0x1a len 0xa
> cnt 0x7
> aid 0x0302 (unknown)
> bool 0x46
Same as above. The value 0x46 is wrong here.
Regards
Marcel
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bluez-users] How can I start to investigate SDP Header
2004-02-03 19:02 [Bluez-users] sdptool setattr João Santos
2004-02-03 23:46 ` Marcel Holtmann
@ 2004-02-04 18:11 ` Srihathai Prammanee
1 sibling, 0 replies; 5+ messages in thread
From: Srihathai Prammanee @ 2004-02-04 18:11 UTC (permalink / raw)
To: =?X-UNKNOWN?Q?Jo=E3o_Santos?=; +Cc: bluez-users
Hi everone,
I am just download SDP header and plan to use the code for my work. I
want to know that how can i start to investigate and know the struture of
the code and how its work. Is there any tutorial avaliable? BTW, I plan to
use java native to run SDP in java, do i need to consider something
special?
Many thanks
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-02-04 18:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-03 19:02 [Bluez-users] sdptool setattr João Santos
2004-02-03 23:46 ` Marcel Holtmann
2004-02-04 18:11 ` [Bluez-users] How can I start to investigate SDP Header Srihathai Prammanee
-- strict thread matches above, loose matches on Subject: below --
2004-01-28 18:07 [Bluez-users] sdptool setattr João Santos
2004-01-28 18:17 ` Marcel Holtmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.