You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

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:
    1. Open the main config file with a text editor:
      sudo nano /etc/bluetooth/main.conf
      
    2. Find the Security line, uncomment it, and set it to:
      Security = none
      
    3. Save the file (Ctrl+O, then Enter) and exit (Ctrl+X), then restart the Bluetooth service:
      sudo systemctl restart bluetooth
      
    4. Repeat the pairing steps in bluetoothctl again.

    Note: Setting Security = none reduces Bluetooth security, so revert this change after pairing if you don't need it for other devices.

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:
    1. Open Device Manager (right-click Start Menu → Device Manager).
    2. Expand the "Bluetooth" section, right-click your adapter, and select "Properties".
    3. 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):
    1. Press Win+R, type regedit, and hit Enter to open the Registry Editor.
    2. Navigate to this path:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters
      
    3. Right-click the Parameters folder, select "New → DWORD (32-bit) Value", and name it DisableNoInputNoOutput.
    4. Double-click the new value, set "Value data" to 0 (0 = allow PIN-less pairing, 1 = disable), then click OK.
    5. Restart your PC, then try pairing the device again.
  • 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

火山引擎 最新活动