Re: How to create bluetooth binary SDP record for a service?
- From: mpprasad.cse@xxxxxxxxx
- Date: 7 Sep 2006 02:49:43 -0700
After some searching in the net the following binary SDP record works
fine.
Only thing is Suppose if you want to advertise the FTP service
(OBEXFileTransferServiceClass_UUID, 0x00001106, 0x0000, 0x1000, 0x80,
0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB) we need to fill the UUID from
the 8th byte in the array.
BYTE SdpRecord[] = {
0x35, 0x27, 0x09, 0x00, 0x01, 0x35, 0x11, 0x1C,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x09, 0x00, 0x04, 0x35, 0x0C, 0x35, 0x03, 0x19,
0x01, 0x00, 0x35, 0x05, 0x19, 0x00, 0x03, 0x08,
0x00};
BYTE SdpRecord[] = {
0x35, 0x3e, 0x09, 0x00, 0x01, 0x35, 0x11, 0x1C,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
0x09, 0x00, 0x04, 0x35, 0x11, 0x35, 0x03, 0x19,
0x01, 0x00, 0x35, 0x05, 0x19, 0x00, 0x03, 0x08,
0x0a, 0x35, 0x03, 0x19, 0x00, 0x08, 0x09, 0x01,
0x00, 0x25, 0x0d, 0x53, 0x79, 0x6e, 0x63, 0x4d,
0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72};
For Example SDP record for the SyncML Server service is:
BYTE SdpRecord[] = {
0x35, 0x3e, 0x09, 0x00, 0x01, 0x35, 0x11, 0x1C,
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x10, 0x00,
0x80, 0x00, 0x00, 0x02, 0xEE, 0x00, 0x00, 0x02,
0x09, 0x00, 0x04, 0x35, 0x11, 0x35, 0x03, 0x19,
0x01, 0x00, 0x35, 0x05, 0x19, 0x00, 0x03, 0x08,
0x0a, 0x35, 0x03, 0x19, 0x00, 0x08, 0x09, 0x01,
0x00, 0x25, 0x0d, 0x53, 0x79, 0x6e, 0x63, 0x4d,
0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72};
Regards
Prasad.
mpprasad.cse@xxxxxxxxx wrote:
Hi All,
I have one working binary SDP Record for bluetooth ObjectPushService.
The following structure is the SDP record.
const static BYTE rgbSdpRecord[] = {
0x36 , 0x00 , 0x68 , 0x09 , 0x00 , 0x01 , 0x36 , 0x00 ,
0x03 , 0x19 , 0x11 , 0x05 , 0x09 , 0x00 , 0x03 , 0x1C ,
0x7A , 0x9E , 0x2D , 0x10 , 0xF1 , 0xA5 , 0x11 , 0xDA ,
0x77 , 0xB4 , 0x06 , 0x30 , 0xBD , 0x7B , 0x6C , 0x71 ,
0x09 , 0x00 , 0x04 , 0x36 , 0x00 , 0x12 , 0x36 , 0x00 ,
0x03 , 0x19 , 0x01 , 0x00 , 0x36 , 0x00 , 0x03 , 0x19 ,
0x00 , 0x03 , 0x36 , 0x00 , 0x03 , 0x19 , 0x00 , 0x08 ,
0x09 , 0x00 , 0x09 , 0x36 , 0x00 , 0x09 , 0x36 , 0x00 ,
0x06 , 0x19 , 0x11 , 0x05 , 0x09 , 0x01 , 0x00 , 0x09 ,
0x01 , 0x00 , 0x25 , 0x0B , 0x53 , 0x65 , 0x72 , 0x69,
0x61 , 0x6C , 0x50 , 0x6F , 0x72 , 0x74 , 0x00 , 0x09,
0x03 , 0x03 , 0x36 , 0x00 , 0x0E , 0x08 , 0x01 , 0x08 ,
0x02 , 0x08 , 0x03 , 0x08 , 0x04 , 0x08 , 0x05 , 0x08,
0x06 , 0x08 , 0xFF
};
But i dont know how to create a binary SDP record. Now i want to create
a SDP record for my own service. Please help how to create a binary SDP
record for a service.
.
- References:
- How to create bluetooth binary SDP record for a service?
- From: mpprasad . cse
- How to create bluetooth binary SDP record for a service?
- Prev by Date: Weird (unsecure?) behaviour when trying IP forwarding.
- Next by Date: I am trying to use raw socket in windows mobile 5.
- Previous by thread: How to create bluetooth binary SDP record for a service?
- Next by thread: Re: VPN, RasDial, WiFi, GPRS coexistence
- Index(es):