.NET Components for Mobility

Bluetooth Pairing

Last post 10-13-2008 6:48 AM by PeterFoot. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-10-2008 5:07 PM

    • ruze
    • Not Ranked
    • Joined on 10-07-2008
    • Posts 1

    Bluetooth Pairing

    My car (BMW 750Li) has a fixed PIN, but without the documentation it's nearly impossible to retrieve it. So my idea is to write a brute force routine that iterates through the 4 digits from "0000" to "9999" with BluetoothSecurity.PairRequest to find the PIN when it returns True.

    for (int i = 0; i <= 9999; i++)

    {

    string pin = i.ToString("0000");

    bool ret = BluetoothSecurity.PairRequest(addr, pin);

    if (ret)

    {

    MessageBox.Show(i.ToString());return;

    }

    Is there any reason this might NOT work?  Any gotchas to keep in mind? Should I put a sleep in between PairRequest calls?

    (Besides that the PIN might be more than 4 digits)

  • 10-13-2008 6:48 AM In reply to

    Re: Bluetooth Pairing

    According to the comments on this post:-

    http://blog.scoopz.com/2008/08/18/iphone-202-fixes-address-book-sync-with-bmw-idrive-chrysler-uconnect-and-more/

    The car doesn't have a fixed pin but should allow you to select a pin when a pairing request is received...

    Regarding your method above I'm sure it would work eventually but it will be a slow process!

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
Page 1 of 1 (2 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.