Page 1 of 1

Bluetooth: Registering and searching a Service

PostPosted: Apr 12, 2007 @ 5:03pm
by PsychoChris

PostPosted: Apr 12, 2007 @ 6:17pm
by Dan East

PostPosted: Apr 13, 2007 @ 10:49pm
by PsychoChris

PostPosted: Apr 14, 2007 @ 6:16am
by Dan East

PostPosted: Apr 14, 2007 @ 3:26pm
by Dan East

PostPosted: Apr 14, 2007 @ 8:54pm
by PsychoChris

PostPosted: Apr 16, 2007 @ 4:10pm
by PsychoChris
Hello folks,

i finally made some progress and managed to publish a custom bluetooth service record (SDP record) containing the RFCOMM channel needed for connecting to the server. The next problem i'm facing is that a client needs to query the SDP database on the server by using WSALookupServiceBegin() and WSALookupServiceNext(). Well, using both functions for querying bluetooth devices in range is no big deal. But how can i use them to query for my custom service? Again MSDN raises more questions than giving answers on how to do that. They mention a BTHNS_RESTRICTIONBLOB structure which should be used for this but all my experiments on getting any information of any service fail although the functions succeed. Somehow i need to find my service by searching for its GUID and then retrieve all data belonging to the service. But how? Anybody any ideas?

Kind regards,
Chris

Thank you for your help

PostPosted: Apr 21, 2008 @ 9:44am
by hhq188

PostPosted: Nov 24, 2009 @ 9:00am
by jackbency
Hi..
Thank you for posting this code and I used also this code. It did worked proper and and now the socket between pc and ppc
had been created.