Git Product home page Git Product logo

os-x-bluetooth-pairing-value-to-windows-value's Introduction

OS-X-Bluetooth-Pairing-Value-To-Windows-Value

A useful script to simultaneously pair a bluetooth device to your Mac in OS X and Boot Camp Windows

OS X Bluetooth Pairing Value To Windows Value A script to get the Windows equivalent bluetooth pairing key/value pair (little endian?) This is useful if you would like to pair a bluetooth device to both OS X and Windows (in BootCamp).

How it works: The AppleScript parses the paired bluetooth devices' link key/value pairs and prints out the Windows equivalent value (little endian?).

Thanks to user pacnow (Camoguy) at https://discussions.apple.com/thread/3113227?start=0&tstart=0 for doing the leg work and figuring out the algorithm

You must follow pacnow's steps to edit the value in Windows. I have copied and slightly modified his steps here for you.

  1. Pair device with Windows, then go back in and pair in OS X.
  2. a. After you have completed both pairings in step 1, then execute this script or run the application
  3. b. Get the link key from OS X and email it to yourself or put it somewhere you can reach from Windows. [code]sudo defaults read /private/var/root/Library/Preferences/blued.plist[/code]
  4. a. If you don't have psexec, Google for it and download it.
  5. b. Boot Windows, open cmd as admin, [code]psexec -s -i regedit[/code]
  6. Navigate to HKLM\System\CurrentControlSet\services\BTHPORT\Parameters\Keys\ (BT ID of Mouse/Keyboard) and begin modify binary data

Here's an example link key, instead of just pluggin that in, what you want to do is break it apart starting from the right, working two digits at a time in pairs.

98542ff9 88e19449 475250e1 3943255b ( What is shown in OS X) 5B254339 E1505247 4994E188 F92F5498 (What you enter in Windows) -Help from Camoguy-

Note, this script requires administrator privileges. I am strictly just using your password here within the script to get the bluetooth pairing values. If you are still wary, and prefer not to enter your password into an unknown script, then comment out and edit the password related lines below and just open a terminal window and perform a sudo command before running this script.

  • Adnaan Soorma
  • Twitter: @Soorma07

os-x-bluetooth-pairing-value-to-windows-value's People

Contributors

soorma07 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.