Giter VIP home page Giter VIP logo

bluetoothdevicepairing's Introduction

BluetoothDevicePairing

Console utility to discover and pair/connect Bluetooth and Bluetooth LE devices.
The main reason to create this utility was to be able to pair Bluetooth devices from console in the same way it is done by built in into Windows "Bluetooth & other devices" dialog.

System requirements

Windows 10 1809 (10.0.17763) or higher

How to use

  • Download and unpack the latest release.
  • Run BluetoothDevicePairing.exe --help and BluetoothDevicePairing.exe <command> --help to get usage information and see the Examples section bellow.

Examples

  • Discover devices: BluetoothDevicePairing.exe discover
  • Pair and connect to a device using its mac address: BluetoothDevicePairing.exe pair --mac 12:34:56:78:9A:BC
  • Pair and connect to a device using its name: BluetoothDevicePairing.exe pair --name "name of device"
  • Pair and connect to a device using its name/mac and device type: BluetoothDevicePairing.exe pair --name "name of device" --type BluetoothLE
  • Pair and connect to a device using its name/mac and pin code: BluetoothDevicePairing.exe pair --mac 12:34:56:78:9A:BC --pin 1234
  • Unpair a device using its mac address: BluetoothDevicePairing.exe unpair --mac 12:34:56:78:9A:BC
  • Unpair a device using its name: BluetoothDevicePairing.exe unpair --name "name of device"
  • Unpair a device using its name/mac and device type: BluetoothDevicePairing.exe unpair --mac 12:34:56:78:9A:BC --type Bluetooth

Tips and tricks

  • Bluetooth LE devices use mac address randomisation, therefore it is not reliable to pair them using mac address. Use pairing by name instead.
  • Some devices advertize itself as Bluetooth and BluetoothLE simultaneously while having the same mac and name. To work with such devices explicitly specify to which type of device you want to connect using --type parameter.
  • Some device require pin code to be paired, use --pin parameter to provide PIN code. By default this programm will try to use 0000 as a pin code.

Build

  • Use Visual Studio 2019 to open the solution file and work with the code
  • Run .github/workflows/build.ps1 to build a release (to run this script git.exe should be in your PATH)

bluetoothdevicepairing's People

Contributors

beneykim avatar polargoose avatar

Watchers

 avatar

Forkers

sk-lim

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.