[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] RE: rfcomm server + sdp registery ..!


Check the logfile to see if there are any errors such as "line not connected".
To add a new service you will only have to edit the sdp.xml-file. Unfortunately
there is no tutorial fot this but I suggest that you start with one of the 
existing services as a template and just change the values to whatever your
service need. If you need to use other UUID:s than the ones specified
you will also need to add the new keywords in the translation-table (at the end
of the file).

Best Regards,

> -----Original Message-----
> From: axis [mailto:axis2list@xxxxxxx.com]
> Sent: den 6 januari 2004 12:34
> To: Bluetooth-dev
> Cc: anderstj@xxxxxxx.com
> Subject: rfcomm server + sdp registery ..!
> Sir,
>     Iam trying to implement a rfcomm server on
> specified channel(running on BT access point) which
> waits for incoming connections,get the remote bd
> address (for later processing) and disconnects.For
> this I tried to use the following code,but after the
> connection the remote bd address is always
> 00:00:00:00:00:00
>         unsigned char *bd;
>         if(strcmp(buf,"rf_wait") == 0)
>           {
>             bt_waitconnection(bt_cfd, line);
>             printf("Connect on line %d\n", line);
>             read_remote_bd(bt_cfd, line,bd);
>             printf("Remote bd: %x:%x:%x:%x:%x:%x
> \n",bd[0],bd[1],bd[2],bd[3],bd[4],bd[5]);
>             con_id = CREATE_RFCOMM_ID(line, 0 /* fixme
> -- don't care */);
>             retval = bt_disconnect(bt_cfd, con_id);
>           }
>         }
>      Once this is properly working I want to register
> this server as a Service so that the device trying to
> connect to access point can discover this service and
> try to connect on this channel.So for registering the
> service is it enough if I add the entry in sdp.xml
> file or is there any SDP API which I can use for this
> purpose.Please advice me on sdp mechanism and how to
> use and implement it.
>       Hope to hear from you regarding this
> Thank you.
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus

To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com