How to connect to Bluetooth device from CLI (already paired)?


  1. Posts : 248
    Windows 10 Pro
       #1

    How to connect to Bluetooth device from CLI (already paired)?


    Is there a command to connect to a Bluetooth device from a command prompt (i.e. something I can put in an AHK script)?

    I'm already paired with my headphones so won't need to do that every time but I'd like to use a keyboard shortcut to initiate the connection.
      My Computer

  2. bro67's Avatar
    Posts : 8,353
    Mac OS Catalina
       #2

    You can only have one Bluetooth device attached at a time. What are you trying to pair if you are not using the headphones and is this the same computer in your "My Computer" section? Have you tried this tool? If not, install it and run the btinfo and post the results. Bluetooth command line tools - work with bluetooth from the command line

    The only other thing I can think of is that your sound chipset and bluetooth driver are not properly releasing the headphones if on and charging in standby mode, while the BT chip is doing a ping to look for devices available.
      My Computers


  3. Posts : 248
    Windows 10 Pro
    Thread Starter
       #3

    Unfortunately the tool does not work.
    Code:
    C:\Windows\system32>btinfoLocal bluetooth radio not found.C:\Windows\system32>
    I rarely use any other Bluetooth devices with my PC but I do use other devices with my headset and switching the headset on does not necessarily cause it to connect with my PC unless I manually establish the connection from Bluetooth Places. My USB Bluetooth adapter is a Parani UD100.

    How to connect to Bluetooth device from CLI (already paired)?-bluet.png
      My Computer

  4. bro67's Avatar
    Posts : 8,353
    Mac OS Catalina
       #4

    You know that you can control it from the Action Center. That is why Microsoft went with that instead of how you are taking the long way. btinfo is meant to be run from the directory that it is in, not the System32 folder. You need to CD to the folder inside Downloads that you unpacked that download in the link I gave you.
      My Computers


  5. Posts : 248
    Windows 10 Pro
    Thread Starter
       #5

    I want to set up a single key macro for AutoHotKey. A single button. I wouldn't call that the long way. Besides, Bluetooth isn't present in the Action Centre; in fact there is nothing at all useful in the Action Centre.

    The app clearly was launching from system32 since it was able to respond. Anyway, I ran it again from the installation directory and it gives the exact same response:

    PS C:\Program Files (x86)\Bluetooth Command Line Tools\bin> btinfo
    Local bluetooth radio not found.
    PS C:\Program Files (x86)\Bluetooth Command Line Tools\bin>
      My Computer

  6. bro67's Avatar
    Posts : 8,353
    Mac OS Catalina
       #6

    You already have a single click to go into the Action Center or show the icon on the Taskbar. The link I gave is not an app, it is a set of utilities that once you download to your download folder, you run that command from the Command Window. The directory would unpack in the download folder. Terminal always goes to System32, because that is how Microsoft has always forced it.

    See this to download the Registry Edit to give back the "Open Here" when you right click in a folder in the Windows Explorer window. http://www.winhelponline.com/blog/cm...text-menu-add/
      My Computers


  7. Posts : 248
    Windows 10 Pro
    Thread Starter
       #7

    Below is what my Action Centre looks like. There are no references to Bluetooth there. Besides, it's one click to get to the action centre (after a mouse movement to get to it) and then further mouse movements and clicks to do whatever it is that summons the Bluetooth connection to my headset.

    How to connect to Bluetooth device from CLI (already paired)?-action.png


    The utility I downloaded was an exe file. It installed itself in C:\Program Files (x86)\Bluetooth Command Line Tools\bin\ and obviously registered itself with Windows in some way because it is not necessary to direct the command prompt there in order to use the utilities. If I'm not using it correctly, then where is the response "Local bluetooth radio not found." coming from?

    What's the difference between an app and a utility? A utility is just a type of app.
      My Computer

  8. bro67's Avatar
    Posts : 8,353
    Mac OS Catalina
       #8

    You need to go into All Settings and change what you want on those. The program as I stated and on the website specifically states that they are command line tools to be done in a Command Windows, not from the Gui.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 09:47.
Find Us




Windows 10 Forums