I want to automate the connection of a device running linux with my Windows PC. On the device side, I'm able to automate the connection using 'expect' in bash. On windows, I downloaded Bluetooth Command Line Tools to attempt to automate the PC side. I was able to pair with my device using the friendly name of the device, however I did need to manually accept a prompt in Windows that asked me whether a Pin on my device matched the pin in the prompt. The terminal on my linux device did indeed show the same pin, so I clicked 'matches', and then was able to pair the device.
I tried to configure Windows Bluetooth service not to alert me when a new connection comes in, but when I change that, I am just unable to pair in this case. When I start a pairing session from the Windows PC, it just hangs indefinitely. Is it possible to do what I'm trying to do from a Windows PC, or am I out of luck?