Author Topic: Problem with the PIN and SDP. Can this Library Solved this?  (Read 34696 times)

sirgraham

  • Guest
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

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Problem with the PIN and SDP. Can this Library Solved this?
« Reply #1 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.

sirgraham

  • Guest
Re: Problem with the PIN and SDP. Can this Library Solved this?
« Reply #2 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
« Last Edit: May 08, 2009, 10:58:41 AM by Mike Petrichenko »

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Problem with the PIN and SDP. Can this Library Solved this?
« Reply #3 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.

sirgraham

  • Guest
Re: Problem with the PIN and SDP. Can this Library Solved this?
« Reply #4 on: May 08, 2009, 09:28:07 PM »
Hi,

We resolved the problem to the stack of Microsoft.  It

drapelli

  • Guest
Re: Problem with the PIN and SDP. Can this Library Solved this?
« Reply #5 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

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Problem with the PIN and SDP. Can this Library Solved this?
« Reply #6 on: September 15, 2009, 01:51:40 AM »
Pair with device before quering the services.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Problem with the PIN and SDP. Can this Library Solved this?
« Reply #7 on: November 09, 2009, 12:21:46 PM »
Hi,

This problem has been solved for WCL 6.6.5 and high

 

Sitemap 1 2 3 4 5 6 7