auto BT headphone pairing? - 8525, TyTN, MDA Vario II, JasJam ROM Development

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

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

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.

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

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

secret_squirrel said:
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!
Click to expand...
Click to collapse
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.

Auto BT Pairing
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

Related

Having problems with A2DP? I can help.

A couple nights ago, I was intent on getting my A2DP to work perfectly. I wanted clear, crisp, skip free music coming from my phone. Using this method, I have done just that. I'm not 100% sure all of the steps I'm including are necessary, but I've done this twice and it worked perfectly both times. Here goes!
Short way, But I'm not 100% sure it will work as well
1. Navigate to "LOCAL_MACHINE/Software/Microsoft/Bluetooth/A2DP/Settings" in the registry.
2. Set BitPool to 48, MaxSupportedBitPool to 56, and Use Joint Stereo to 0.
3. Exit, soft reset
4. Tell me if it works well for you or not...
Long but guaranteed way
1. Download HTweakC, install
2. Go to bluetooth tweaks, set audio quality as "Excellent"
3. Install Sleuth255's A2DP Fix cab then soft reset
[By this point, the A2DP is crackly and may skip...so continue]
4. With the registry editor of your choice, navigate to the following:
LOCAL_MACHINE/Software/Microsoft/Bluetooth/A2DP/Settings
5. Change the value of "Bitpool" to 56
6. Change the value of MaxsupportedBitPool to 56
7. Change "Use Joint Stereo" to 1
8. Soft Reset
9. Uninstall Slueth's A2DP fix
10. Soft Reset
11. Once again, open HTweakC
12. Change the A2DP quality to "High"
13. Soft reset
14. Enjoy crystal clear, skip free streaming music.
Also, if anyone can help me with an issue I've been having...Is there a quick way to set a pair of bluetooth headphones to automatically set itself as as wireless stereo without applying it each time in bluetooth options? I have a pair of BT620's if that makes any difference.
And
Is there a way to have WMP startup with my storage card's library by default? If not, is there a way to delete the library from My device?
Thanks! Hope this helps!
Has this technique eliminated the hissing aswell dude?
(No A2DP hardware to test sorry )
I have now done exactly as the "long" way said, and it did not take away the hizzing sound, (not with my plantronics pulsar 260 anyway)
so it is back to the drawing board!
thanks for sharing this Centurion, it is always nice to hear success stories..
but I would believe that the last step is the only one neccessary (htweakC)
too bad it didn't work for me.
The hissing on mine is definitely gone...I wish I could share it with you.
Hi, I just got my X01HT last week. May I ask which Windows Media/MP3 player program are you using to listen with stereo bluetooth?? I can't find the function in Windows media Player.
Thank you very much!
Hi, Pingubest
You can not use the function of stereo bluetooth on the default OS of X01HT.
In this case, you must apply cab files for the A2DP function or install WM6.
Using WMP...I've tested this 3 times on my phone now after 3 different flashes and it worked each time.
Centurion said:
Short way, But I'm not 100% sure it will work as well
1. Navigate to "LOCAL_MACHINE/Software/Microsoft/Bluetooth/A2DP/Settings" in the registry.
2. Set BitPool to 48, MaxSupportedBitPool to 56, and Use Joint Stereo to 0.
3. Exit, soft reset
4. Tell me if it works well for you or not...
Long but guaranteed way
1. Download HTweakC, install
2. Go to bluetooth tweaks, set audio quality as "Excellent"
3. Install Sleuth255's A2DP Fix cab then soft reset
[By this point, the A2DP is crackly and may skip...so continue]
4. With the registry editor of your choice, navigate to the following:
LOCAL_MACHINE/Software/Microsoft/Bluetooth/A2DP/Settings
5. Change the value of "Bitpool" to 56
6. Change the value of MaxsupportedBitPool to 56
7. Change "Use Joint Stereo" to 1
8. Soft Reset
9. Uninstall Slueth's A2DP fix
10. Soft Reset
11. Once again, open HTweakC
12. Change the A2DP quality to "High"
13. Soft reset
14. Enjoy crystal clear, skip free streaming music.
Also, if anyone can help me with an issue I've been having...Is there a quick way to set a pair of bluetooth headphones to automatically set itself as as wireless stereo without applying it each time in bluetooth options? I have a pair of BT620's if that makes any difference.
QUOTE]
I don't see any logic for the steps 9-14?? Maby you soft reset to quickly or didn't save registry values properly. I usually wait a little the use the powerbutton to close down phone.
Step 5-6 I set to 52 (decimal!) and sound is great on HBH-SD970 and skipping never happens as long as there's not an object between the phone and headset. I'm running Black 2.5 on a Tytn.
Regarding the problem with the BT620, this seem to be ralated to that headset, I don't have that problem with HBH-SD970. Maby there is some firmware upgrade for your headset?
Click to expand...
Click to collapse
I think the stereo thing has to do with your headset also since my BT8010 works correctly also..
I concur Jompao, no problems with HBH-DS970's... no hiss and clicks nearly eliminated with Custel's latest 1236 build v1.2. Also sound with this latest release seems louder than the previous 968 builds. Save some battery power on my DS970's... sweet!
Cheers
A2DP
I followed the "long steps" and it doesn't work for me. I am using Samsung WEP200.
doesn't work on mt 8525. It just makes the skips worst!!!!!!
the new lwsv rom is quite intresting seen from a a2dp level, it made my headset work almost as good as widcomm stack, although with the advantages of ms stack !
a2dp
Hi just to let you know "your way" - works BUT only if you DONT remove sleuth's fix - take it out and its all miss and no hits but leave it runnin and its gr8 .
ps running Moto HT820
regards
jon
mrvanx said:
Has this technique eliminated the hissing aswell dude?
(No A2DP hardware to test sorry )
Click to expand...
Click to collapse
I have perfect stereo sound! It's all in the BT headsets you use.
I use the Nokia HS-12W and HTC BH S100 and the sound is as good as it gets. NO BACKGROUND NOISE AT ALL.
It's about matching the A2DP specs of the headsets to the M$ software, and not the other way around.
My opinion only, for what it's worth.
Can anyone explain what the values of MaxsupportedBitPool and BitPool stand for? Are they kbps or decibles or something else? I understand changing the UseJointStereo to 0 turns off Joint Stereo, but i want to know what the BitPool stands for.
I have a Motorola HT820 and can play music through it with no problems. I changed the 2 bitpool settings to 48. This definately improved the quality, but occasionally it skips (very rarely). So are these higher numbers causing too much data to stream and you get a "buffer" type pause.
Also if I convert back to Joint Stereo, will that cause 1/2 of the data stream, since its basically mono. If I could stream at 96 kbps in mono, compared to 48 kbps in stereo, I would choose the mono. Mainly because of the sounds of the high frequencies. The bass and mids sounds great.
On a side note I found that turning my phone's and windows media players volume all the way up improves the sound. I use the volume controls on the HT820 to control volume.
Ok, I didn't get very far with this fix...
I downloaded and installed HTweakC, but when I run it I get an error; HTweakC.exe "Argument out of range Exception". I am assuming that the bluetooth tweaks are in this proggy?
I also tried the shortcut way, but I don't have "LOCAL_MACHINE/Software/Microsoft/Bluetooth/A2DP/Settings" in the registry.
WTF did I do wrong here??
Any ideas?
I have
Cingular 8125 Wizard
G3 CID/SIM Unlocked
Rom Version: WM5SE rev 4.0 - WM5 without stylus but style!
2.26.10.2 WWE
IPL: 3.08
SPL: 3.08
Ok, One more thing...
I just went to my vehicle to play around some more and I found that when I have the BT stereo playing and a call comes in, the stereo is paused until the call is done and when it starts back up I either have no sound at all or it's skipping badly, but I went to the bluetooth device settings and held the click for the sub menu and then selected Set as wireless stereo, the audio straightened out and started playing fine again.
Could this mean the processor is too slow in the Wizard? Maybe if I overclocked it a bit that might help or am I just doomed to never have this work correctly?
Thanks again!
Can NO ONE answer my question above?
It looks like this thread is dead??
I really want to solve this audio skipping problem if posible!
Thanks
ITAdmin
Centurion said:
Short way, But I'm not 100% sure it will work as well
1. Navigate to "LOCAL_MACHINE/Software/Microsoft/Bluetooth/A2DP/Settings" in the registry.
2. Set BitPool to 48, MaxSupportedBitPool to 56, and Use Joint Stereo to 0.
3. Exit, soft reset
4. Tell me if it works well for you or not...
Click to expand...
Click to collapse
Magic!!!!
I have been battling with this for weeks. Finally something that works.
Many thanks for sharing that.

Bluetooth visibility automatically switched off

Hi. I've playing for several days with my new trinity and have installed AX3L 2.0.7.0. So far i'm pretty happy with it, apart from a couple of problems:
I cannot get wireless stereo to work. I can connect the pda to my car's stereo, it identifies the HTC as a bluetooth audio device but after a few seconds, it disconnects. If I start playing something while in Wireless Stereo connection, it plays it through the pda's internal speaker.
I can't figure out how to leave Bluetooth's "Make this device visible to other devices" on. I have switched it on a dozen times and a dozen times it has been disabled. I'm not sure if it is disabled whenever I turn bluetooth off or after a certain amount of time. The fact is that it becomes disabled.
I think my last problem has already been covered here, MMS. I've seen a couple of notifications about a MMS being downloaded but there's no MMS in the inbox, i guess there's something blocking it, but that's what worries me least.
Great job, AX3L!
javierin79 said:
Hi. I've playing for several days with my new trinity and have installed AX3L 2.0.7.0. So far i'm pretty happy with it, apart from a couple of problems:
I cannot get wireless stereo to work. I can connect the pda to my car's stereo, it identifies the HTC as a bluetooth audio device but after a few seconds, it disconnects. If I start playing something while in Wireless Stereo connection, it plays it through the pda's internal speaker.
I can't figure out how to leave Bluetooth's "Make this device visible to other devices" on. I have switched it on a dozen times and a dozen times it has been disabled. I'm not sure if it is disabled whenever I turn bluetooth off or after a certain amount of time. The fact is that it becomes disabled.
I think my last problem has already been covered here, MMS. I've seen a couple of notifications about a MMS being downloaded but there's no MMS in the inbox, i guess there's something blocking it, but that's what worries me least.
Great job, AX3L!
Click to expand...
Click to collapse
First, try to install my new rom (2.0.8)....i have cleaned the registry and added some tweaks....maybe bluetooth become working (for you!)...
If not, try to edit the setting using "TweakUI"'s AD2P tab (Settings -> System)
I'll give it a shot this weekend, when i can backup my data so nothing gets lost. (BTW, where is the backup device I used to have with activesync with my old ipaq3970?)
I have searched around to find documentation to understand TweakUI AD2P settings, but i didn't see it around. Any clue whether Joint Stereo Should be enabled, meaning of Bitpool, Audio Gateway numbers?
Try to:
REMOVE the following values from the registry at HKLM\Software\Microsoft\Bluetooth\A2DP\Settings if they are present:
- BitPool
- MaxSupportedBitPool
ADD the following value to the registry at HKLM\Software\Microsoft\Bluetooth\A2DP\Settings:
Name: SampleRate
Value (DWORD): 48000 (decimal)
SoftReset the device and try again
ONLY IN CASE not working....
install the Sleuth255's Patch http://forum.xda-developers.com/attachment.php?attachmentid=31755&d=1165092579
(after install, softreset your device)
Thanks, that did the trick of bluetooth visibility not auto-turning off. Anyhow, it seems there is some kind of incompatibility between Pioneer DEH-P75BT (my car receiver) and the HTC. As a hands free, I have to manually set it from the pda as Hands free so they pair each other, and BT Audio function connects as before, but sound is still played through pda's speaker.
Thanks for the tip, AX3L

bluetooth LAG

I found some registry changes to resolve a lot of the bluetooth issues as far as the connection disconnecting after 1 ring, the hangup issue, etc.. HOWEVER.. now I have an issue with LAG where when connected to bluetooth, after a while the phone will lag and you can see everything moving in slow motion.. if I disconnect the bluetooth then the phone speeds back up.. ANY IDEAS? the only device I see this NOT happening with is my STEREO BLUETOOTH HEADPHONES MOTOROLA S9... Here is what I changed:
1. Modify the HandsFree plug-in:
HKLM\Software\WIDCOMM\Plugin\HandsFree
i. Change SupportedFeatures to 45 (default is 1135)
ii. Add value HFBDA binary, set to same value as LastConnectedBda
iii. Add value HFDeviceType decimal 2
2. Modify the WIDCOMM bluetooth general settings:
HKLM\Software\WIDCOMM\BtConfig\General
i. Change bdaddr to (no value)
ii. Change DisableReopenAudio to 0 (default is 1)
If anyone can figure out how to resolve the bluetooth LAG I would appreciate it....
anyone have a fix? also now the last received, last called and missed do not grab info from the phone.. it only shows the calls I have made using the bluetooth device...
I have noticed a similar lag, and, on my end it's not so much after a phone call, but after anything associated with BT (I use a Moto HX-1).
Does not do it all the time....If I am in the middle of doing something with the phone, and I get a notification through the ear piece (voice command), everything starts to stutter. Side note, at times, the silly phone heats up, and battery starts to drop.
I reran an OLDER rom for a couple days, and didn't have ONE issue.
Sounds like something in the later rom builds has changed something in the BT?
I've also noticed this recently. Whenever the phone is hooked up to my in-car bluetooth (Audi), it runs like an absolute dog. As soon as it disconnects, it runs fine again. This is most frustrating as it can make the phone unusable when connected to the car kit.
Anyone gotten to the bottom of this yet - is it an issue with a newer bluetooth stack or something?

[Q] Bluetooth for stereo headset disconnects after exactly 15min !?

I pair and connect to my stereo headset using the Defy Bluetooth. And it always connects and works fine until exactly 15min and then it disconnects.
After that I'm unable to connect again. I have to switch Bluetooth off and also my headset, then re-start them all and connect again (even that sometimes fails and requires a repeat a few times.)
I had a look through and can't see anything (Data Manager, Battery Manager, Display) that has a 15min cut off. I'm on standard Froyo.
Someone mentioned "Settings -> Power -> Auto Switch Off -> xx min" I don't have Power option in my settings, is that a different version or called differently !? There is no Stand By setting or anything like that. My phone display is set to go after 2 min and security locks after 3 min - but no 15 min anywhere !?
I have a couple of Task Killers, but nothing is set on them to automatically kill tasks - the tasks (Music Player, Economists Audio) are still running and Bluetooth is ON anyway, just not connecting.
The stereo headset is very, very basic but works perfectly on N95 (well passed the 15min) - but again everything worked perfectly on N95 !!!
Any ideas...?
Cheers,

Bluetooth keeps turning off

Is there a way to disable the timeout features on Bluetooth. I have a Bose Bluetooth speaker that I use most of the day while working. If I pause the music for more than a few minutes the Bluetooth will shut off. I can re-pair the devices quick enough but it's a hassle. My Note 2 phone doesn't have this issue. Sometimes on the settings page, it will show Bluetooth as turned on but when I try to re-pair it will suddenly switch off and ask me to turn it back on.
jasoncli said:
Is there a way to disable the timeout features on Bluetooth. I have a Bose Bluetooth speaker that I use most of the day while working. If I pause the music for more than a few minutes the Bluetooth will shut off. I can re-pair the devices quick enough but it's a hassle. My Note 2 phone doesn't have this issue. Sometimes on the settings page, it will show Bluetooth as turned on but when I try to re-pair it will suddenly switch off and ask me to turn it back on.
Click to expand...
Click to collapse
Never had any issues with this on my headphones and thats sometimes with over 30mins of not playing anything.
This is a pure guess but try this.....connect and Pair your Bluetooth Bose speaker and then
Go to settings > Connections > Bluetooth > Click setting icon (cog on far right) on the paired device > and make sure both call and media audio box is checked.
if thats not the problem then this will do the trick hopefully
Go to settings > Connections > Bluetooth > Hit menu button > Visibility Timeout > and change it to Never
once again pure guess's since I've never had this issue before but the latter should work.
Good suggestions but didn't work. Hmmm.
I also had this problem with my bluetooth keyboard...
After a complete reset and switching the visibility timeout to never my keyboard was immediately recognized and now I can use it!
So, I don't think that's a hw-problem, it's just a crappy firmware...
... "Go to settings > Connections > Bluetooth > Hit menu button > Visibility Timeout > and change it to Never"
I can't change "Visibility Timeout" to "Never". Can't find "Visibility Timeout".
There is a point at "Settings - Device - Display - Screen Timeout", but this has no entry for "Never"
Thinking about getting a Bluetooth wireless keyboard soon. Hope I don't have any of these issues. Haven't tried Bluetooth on this device yet.
inSight01 said:
Thinking about getting a Bluetooth wireless keyboard soon. Hope I don't have any of these issues. Haven't tried Bluetooth on this device yet.
Click to expand...
Click to collapse
It is not the Note loosing connection. I have three BT keyboards that pair with all my tablets no trouble. The keyboards themselves sleep to save power. Hit a key to wake it wait for about a second and type and you are fine. The sleep delay is different on each keyboard. From around 2 to 5 minutes on my longest before it sleeps. For the time between charges on the keyboard that is quite a long time. I have accidently left a keyboard turned on from one evening to the next and used the keyboard for three or four days and just charged it then to be safe, it was still charged and working. Also, I just tried a mouse. The keyboard and mouse are both Bluetooth and work fine together. FYI - the mouse sleeps too after a few minutes.

Categories

Resources