Wireless Communication Library Support Forum

Common => Common => Topic started by: sirgraham on May 08, 2009, 09:23:39 AM

Title: Problem with the PIN and SDP. Can this Library Solved this?
Post by: sirgraham on May 08, 2009, 09:23:39 AM
Hi,

We have a problem with the MicroSoft Bluetooth Stack. The problem is in some phones with bluetooth (ejm. Sharp GX15). This terminal ask for PIN when we connect with the SDP.  When you use the funcion WSALookupServiceBegin to obtain the services of bluetooth of this terminal this ask for PIN.

Logical, we try with the BluetoothRegisterForAuthentication with his callback, but in this point  (SDP) don
Title: Re: Problem with the PIN and SDP. Can this Library Solved this?
Post by: Mike Petrichenko on May 08, 2009, 09:51:45 AM
You can relolve it with manual pairing device by calling BluetoothAuthenticateDevice function.
Unfortnatly WSALookupServiceBegin does not create socket and by this reason it does not allow to set socket security level. That is why Authentication Callback does not work.
Title: Re: Problem with the PIN and SDP. Can this Library Solved this?
Post by: sirgraham on May 08, 2009, 10:46:33 AM
Hi Mike,


Thanks for you answer... But the BluetoothAuthenticateDevice way is not solution for us. Use this function is one of first trys....  :-[

We need "automatizated" the PIN (const PIN) ask ONLY when the terminal requiered this situation.
If we use BluetoothAuthenticateDevice ask PIN for all terminals... :-\

We use bluetooth for Proximity Marketing... Can
Title: Re: Problem with the PIN and SDP. Can this Library Solved this?
Post by: Mike Petrichenko on May 08, 2009, 10:58:06 AM
Unfortunatly for the devices which ask PIN for enumerating services there is no solution (for MS stack), because, as I told, it does not allow to manage sockets security level.
Title: Re: Problem with the PIN and SDP. Can this Library Solved this?
Post by: sirgraham on May 08, 2009, 09:28:07 PM
Hi,

We resolved the problem to the stack of Microsoft.  It
Title: Re: Problem with the PIN and SDP. Can this Library Solved this?
Post by: drapelli on September 14, 2009, 11:42:56 PM
hi
i have the same problem using wcl
and i see you solve the problem
did you can help me to solve this problem too
regards
Title: Re: Problem with the PIN and SDP. Can this Library Solved this?
Post by: Mike Petrichenko on September 15, 2009, 01:51:40 AM
Pair with device before quering the services.
Title: Re: Problem with the PIN and SDP. Can this Library Solved this?
Post by: Mike Petrichenko on November 09, 2009, 12:21:46 PM
Hi,

This problem has been solved for WCL 6.6.5 and high