View Full Version : auto BT headphone pairing?
patp
3rd July 2007, 03:31 PM
Anyone know of a way to get a bluetooth headphone paired up and ready to listen with a single click? Currently I have to activate BT via Comm manager, then enter BT settings, select the headphones and "Set as wireless stereo" all before I actually start any music playing. Ideally it would be good to be able to chain those commands into a macro which also launched the music player - kind a music mode button.
Maybe this is a feature of later roms? I'm currently still using Black 2.5, waiting for compelling reasons to move on.
Cheers
PP
kismat1970
3rd July 2007, 04:38 PM
You can write a script but you must have MortScript installed (available here http://www.sto-helit.de/index.php?module=page&entry=ms_overview&action=view)
Basically you can get it to check the registry and if the Headphone profile has been detected (i.e. when you switch on your headphones), a series of keystokes can then set the 'wireless setreo' mode by opening the Bluetoock devieces screen ect, then your favorites music player can be launched.
You can also get it to close your music player when you switch off your headphones by checking the registry fir when headset profile is disabled.
Downsides are that Bluetooth must already be actived on the handset (so 2click solution ) before headphones are switched on. Also, the keystrokes will fail to start wireless stereo if you add/remove bluetooth devices because the relative positions of the listed devices will change...
Here is an example that works on my device - may need changes for yours;
RunCheck = 0
While (1)
HandsFreeState = RegRead("HKLM", "System\State\Hardware", "Handsfree")
If (HandsFreeState = 1 && RunCheck = 0)
ToggleDisplay(1)
Run "Windows\Bluetooth Shortcut.lnk"
Sleep 2000
MouseDown 25, 286
Sleep 1000
MouseUp 25,286
Sleep 500
SendDown
SendDown
SendCR
SendDown
SendCR
MouseDown 196, 309
Sleep 1000
MouseUp 196,309
Sleep 1000
SendCR
SendDown
SendCR
MouseDown 196, 309
Sleep 1000
MouseUp 196,309
Sleep 2000
Close "Settings"
Sleep 2000
RunCheck = 1
EndIf
If (HandsFreeState = 0 && RunCheck = 1)
# - Enter any code you wish to execute on disconnect here.
ToggleDisplay(0)
RunCheck = 0
EndIf
Sleep (1000)
EndWhile
patp
3rd July 2007, 04:49 PM
Thanks for that. Do you find it's stable - I used to do similar things with the old Windows 3 macro recorder, but it often used to screw up when a window didn't open in time. It would be nice if there was a program to do it, I imagine one day the music app will do a quick poll to see if a device is available.
kismat1970
6th July 2007, 11:57 AM
Yes its stable -I have it run on startup so it constantly running in the background. There maybe some battery usage whilst it is doing this.
I heard some BT stereo headphones automatically connect properly once you update to the latest drivers for the headphones.
Bil
secret_squirrel
6th July 2007, 01:38 PM
I dont understand. Why do you need to constantly re-pair your headset?
With mine (iclip r35) it was only a 5 click job anyway.
1 click on Comm Mgr
2 Click on BT
1 Click switch on Headset
2 Click pair headset
3 click play music button on headset.
Takes less time to do than it does to write it!
That was with Black 2.5 too. only one problem I noticed was that B2.5 absolutely having the h/s powered off before activating bt via com mgr.
Black Majik is the same but seems slight better range and quality than B2.5
patp
6th July 2007, 05:10 PM
I dont understand. Why do you need to constantly re-pair your headset?
With mine (iclip r35) it was only a 5 click job anyway.
1 click on Comm Mgr
2 Click on BT
1 Click switch on Headset
2 Click pair headset
3 click play music button on headset.
Takes less time to do than it does to write it!
I don't have to re-pair. I have to:
1. click on CommMgr
2. click on BT
3. turn on phones
4. Settings, Bluetooth to bring up the BT settings window
5. click-hold on Bluephone entry under paired devices
6. select "Set as wireless audio" - phones are now active and linked
7. close BT dialog
8. close CommMgr
9. start music software
Your setup seems less fiddly, somehow your headphones are doing some of the work.
jac
6th July 2007, 07:34 PM
Have your enabled the (Make this device visible to other devices?) Under Start/Settings/Connections/Bluetooth then select Mode. If that doesn't work there might be another fix if you check out:
http://www.jetwaremobile.com
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.