1.    29 Sep 2017 #1
    Join Date : Jun 2015
    Posts : 172
    Windows 10 Pro

    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 ComputerSystem Spec
  2.    30 Sep 2017 #2
    Join Date : May 2015
    Central IL
    Posts : 4,250
    Mac OS Sierra

    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 ComputerSystem Spec
  3.    30 Sep 2017 #3
    Join Date : Jun 2015
    Posts : 172
    Windows 10 Pro
    Thread Starter

    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.

    Click image for larger version. 

Name:	bluet.png 
Views:	1 
Size:	37.4 KB 
ID:	155898
      My ComputerSystem Spec
  4.    30 Sep 2017 #4
    Join Date : May 2015
    Central IL
    Posts : 4,250
    Mac OS Sierra

    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 ComputerSystem Spec
  5.    30 Sep 2017 #5
    Join Date : Jun 2015
    Posts : 172
    Windows 10 Pro
    Thread Starter

    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 ComputerSystem Spec
  6.    01 Oct 2017 #6
    Join Date : May 2015
    Central IL
    Posts : 4,250
    Mac OS Sierra

    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 ComputerSystem Spec
  7.    01 Oct 2017 #7
    Join Date : Jun 2015
    Posts : 172
    Windows 10 Pro
    Thread Starter

    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.

    Click image for larger version. 

Name:	action.png 
Views:	7 
Size:	16.3 KB 
ID:	155922


    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 ComputerSystem Spec
  8.    01 Oct 2017 #8
    Join Date : May 2015
    Central IL
    Posts : 4,250
    Mac OS Sierra

    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 ComputerSystem Spec

 


Similar Threads
Thread Forum
Bluetooth : allow device to connect greyed out
Win10 on Dell Inspiron Desktop PC I want to play music from my Samsung Galaxy S6 through the bluetooth speaker system on my PC. After successfully pairing the phone, I discover that it is not connected. The bluetooth speakers are connected, but...
Drivers and Hardware
Taotronics TT-BH07 bluetooth headphones paired but not connected
Hi everyone, Hopefully this is on the right board.... I've got the Taotronics TT-BH07 bluetooth headphones which I've paired with my Windows 10 laptop and it worked fine the first time. I found that the following day, after the laptop had been...
Drivers and Hardware
Reconnect to an already paired BT device (e.g. headphones)
I have a Windows 10 laptop with Bluetooth and I have Sony BT headphones already paired to that laptop. I use the headphones with different BT source devices. They remember the last device they were connected to. Switching them to another BT source...
Drivers and Hardware
bluetooth paired but not connecting S5
samsung galaxy S5 is paired with new Dell Inspiron but cannot get it to connect in order to send photos from cell phone to desktop. any ideas?
Network and Sharing
Paired bluetooth mouse now not connecting
Hey, back before the free windows 10 update i had windows 8.1 and i paired my bluetooth mouse to that without any problems. as soon as i upgraded i now have the problem where it says that my mouse is paired but i can seem to connect to it. i have...
Drivers and Hardware
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:59.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums