Console utility to discover and pair Bluetooth and Bluetooth LE devices.
BluetoothDevicePairing is a console utility designed to discover, pair, connect, and manage Bluetooth and Bluetooth Low Energy (LE) devices efficiently.
Key Features:
Discover nearby Bluetooth and Bluetooth LE devices.
Pair devices using their MAC address or name.
Unpair devices by MAC address or name.
Connect and disconnect audio Bluetooth devices.
Manage devices by MAC address for faster operations, bypassing the need for device discovery.
Adjust discovery time when pairing devices by name for better accuracy.
Works seamlessly across Windows 10 (version 1809 or later) and newer versions.
Audience & Benefit:
Ideal for IT professionals, system administrators, developers, and anyone needing to automate Bluetooth device management. This utility simplifies the process of discovering, pairing, and managing devices without manual GUI interaction, enabling efficient automation in scripts and workflows. By using MAC addresses or adjustable discovery parameters, users can achieve faster and more reliable device management outcomes.
Installable via winget for easy setup.
README
BluetoothDevicePairing
Console utility to discover and pair Bluetooth and Bluetooth Low Energy devices.
The utility also allows to connect and disconnect from audio Bluetooth devices.
If you pair a device that is not already paired, the utility will also connect to it (this is the default behavior of Windows Bluetooth API)
If you pair to an already paired audio Bluetooth device, the utility will connect to it.
Managing Bluetooth devices by mac is much faster than by name, because it doesn't require device discovery.
When managing Bluetooth devices by name, you can use the --discovery-time parameter to change the time spend on device discovery.
Why focus on soldering when you can play with the settings instead?
With this app you have full control over your new shiny Pinecil V2
from your computer using bluetooth.
**NB:** No special browser flags or BLE GATT required;
works on all major OS and phones.
**NB:** This app needs the backend to start on a computer terminal;
then the user interface runs from any browser.
It CANNOT run entirely by only opening a browser like Joric's UI.
Connect your phone via WiFi, cable or bluetooth and you'll be surprised how easy and efficient it will be to manage your phone with our software. Since it's first release MyPhoneExplorer evolved into the most popular freeware tool for smartphones. The software is constantly updated with new features. In contrast to many other solutions MyPhoneExplorer works completely locally without using any third-party server!
Why focus on soldering when you can play with the settings instead?
With this app you have full control over your new shiny Pinecil V2
from your computer using bluetooth.
**NB:** No special browser flags or BLE GATT required;
works on all major OS and phones.
**NB:** This app needs the backend to start on a computer terminal;
then the user interface runs from any browser.
It CANNOT run entirely by only opening a browser like Joric's UI.
Connect your phone via WiFi, cable or bluetooth and you'll be surprised how easy and efficient it will be to manage your phone with our software. Since it's first release MyPhoneExplorer evolved into the most popular freeware tool for smartphones. The software is constantly updated with new features. In contrast to many other solutions MyPhoneExplorer works completely locally without using any third-party server!
Why focus on soldering when you can play with the settings instead?
With this app you have full control over your new shiny Pinecil V2
from your computer using bluetooth.
**NB:** No special browser flags or BLE GATT required;
works on all major OS and phones.
**NB:** This app needs the backend to start on a computer terminal;
then the user interface runs from any browser.
It CANNOT run entirely by only opening a browser like Joric's UI.
The BluetoothDevicePairing utility can be used in bat and PowerShell scripts.
Script to pair a Bluetooth device
The following bat script allows to automate the connection of Bluetooth devices.
Before using this script, you need to find out the Bluetooth type and name of your device:
Put the device into the pairing mode
Run the BluetoothDevicePairing.exe discover command that will print the required information.
Adapt the script below to use your device's name and Bluetooth type.
To pair a device by name, the utility starts by discovering all available devices and tries to find a device with the required name. After a device is found, its Mac address is used to request pairing. The command will fail if there are several devices with the same name.
Return values
If the command fails, it returns the value -1. If it succeeds, it returns 0.
Build
Use Visual Studio 2022 to open the solution file and work with the code
Run build.ps1 to build a release (to run this script, git.exe should be in your PATH)