Ubuntu/Windows下免PIN码配对noinputnooutput远程蓝牙设备
Got it, let's tackle this head-on. When pairing a Bluetooth device set to noinputnooutput (no keyboard or display), the default PIN-based flow just won't cut it. Here's how to enable PIN-less pairing on both Ubuntu 17.10 and Windows:
Ubuntu 17.10 配置方法
- First, make sure the Bluetooth service is running:
sudo systemctl start bluetooth - Launch the Bluetooth command-line tool:
bluetoothctl - Initialize the Bluetooth controller:
power on agent on default-agent - Start scanning for your target device to get its MAC address (look for your device name in the scan results):
scan on - Once you have the MAC address (e.g.,
AA:BB:CC:DD:EE:FF), first trust the device, then attempt pairing directly—this skips the PIN prompt for devices with no IO capabilities:trust AA:BB:CC:DD:EE:FF pair AA:BB:CC:DD:EE:FF - If the above still triggers a PIN request, modify the Bluetooth security config:
- Open the main config file with a text editor:
sudo nano /etc/bluetooth/main.conf - Find the
Securityline, uncomment it, and set it to:Security = none - Save the file (Ctrl+O, then Enter) and exit (Ctrl+X), then restart the Bluetooth service:
sudo systemctl restart bluetooth - Repeat the pairing steps in
bluetoothctlagain.
Note: Setting
Security = nonereduces Bluetooth security, so revert this change after pairing if you don't need it for other devices. - Open the main config file with a text editor:
Windows 系统配置方法
- First, update your Bluetooth adapter drivers: Outdated drivers often don't support PIN-less pairing for no-input/no-output devices. Head to your adapter manufacturer's website to grab the latest drivers and install them.
- Check adapter advanced settings:
- Open Device Manager (right-click Start Menu → Device Manager).
- Expand the "Bluetooth" section, right-click your adapter, and select "Properties".
- Go to the "Advanced" tab—look for an option like "Allow PIN-less pairing" or "Support noinputnooutput devices" and enable it. The exact wording varies by adapter.
- Registry tweak (if no adapter setting exists):
- Press Win+R, type
regedit, and hit Enter to open the Registry Editor. - Navigate to this path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters - Right-click the
Parametersfolder, select "New → DWORD (32-bit) Value", and name itDisableNoInputNoOutput. - Double-click the new value, set "Value data" to
0(0 = allow PIN-less pairing, 1 = disable), then click OK. - Restart your PC, then try pairing the device again.
- Press Win+R, type
- Alternative quick test: When the PIN prompt pops up during pairing, click "Skip" or "Cancel"—some Windows setups will automatically fall back to PIN-less pairing if the device advertises noinputnooutput capabilities.
内容的提问来源于stack exchange,提问作者Mohamed Yacout




