A2DP Freeware tool - General Topics

New version available!
See: http://forum.xda-developers.com/showthread.php?t=437726
Please comment there.
Older version:
EDIT: RC-2 is available
I've just uploaded version 1.0.rc-1 of the A2DP plugin. It can be downloaded and used as freeware (0 cost) from http://teksoftco.com/index.php?section=freeware , or find it below attached to this message, including a short usage guide.
New in this release (as many users requested):
-signal indicator
-3 modes for headset: OK, Off, Err
-settings panel added
-Handle Bluetooth option
-Execute File after start option
-applet added in start->settings->system to start settings
-a2dp.exe included in the package, that with parameters: a2dp.exe -bluetoothn|off -a2dpn|off or a2dp.exe -bluetooth:1|0 -a2dp:1|0
--------------------------
The devices that support A2DP (most wm6.0 bluetooth devices), come with 2 audio drivers installed:
1) The "Audio Output" Driver (supported since ppc 2002)
2) The "Bluetooth Advanced Audio Output" Driver, that is responsible of sending audio data over a L2CAP Bluetooth connection, as per A2DP protocol
When the user connects a Stereo A2DP headset, and selects the "Wireless Stereo" profile, the Bluetooth Adv. Audio Output becomes the nr. 1 audio output route, and is indexed as the First audio driver. Any application will output sound by using that driver.
The problem is that sometimes we are already listening to audio in the device's speakers, and then suddenly we want to switch the output to our a2dp headsets - this is sometimes problematic, as the First audio driver changes from "Audio Output" to "Bluetooth Adv. Audio Output" and the applications currently playing audio need to be restarted.
For such issues, I have provided a tool, as freeware, that will install as a today plugin and offer the user the possibility of instantly switching the audio between Device Speaker and A2DP Stereo Headset.
It is designed for WM6.0, Microsoft Bluetooth stack, please download it and let me know how it works for you. There are some more modifications that will be done, so this is only Beta-1
The CAB installer and instructions are in the ZIP attached.
(tested on ultimate 8150/wm6.0 and eten m600+/wm5.0, the gfx was made for vga but works on qvga too)
Feel free to post feedback here, or on the windows mobile development forum, address below.

great plugin! i wish there was a smartphone version for this too

oldsap said:
great plugin! i wish there was a smartphone version for this too
Click to expand...
Click to collapse
Will try to provide one these days. If only time was a disposable resource

Than you very much sir. will be looking forward to it

Thank you. Works ok with Wizard (WM6) and Siemens HHB 750.

This is the App that i am looking for, but for some reason i can't see the icon, since my HTC home doesn't show it.
Any clue?

hi
just installed the version on the teksoftco site.
first impressions -huge thank you; just what i've been looking for.
however i do have a wish and an observation
1. wish: when you tap on the bt symbol, can it turn on/off the bluetooth like on the commanger.
2 headset symbol seems to be always reading ok, even if headset off or bt turned off.
thanks
R.

another thought
any chance you can speak to Sleuth255
http://forum.xda-developers.com/showthread.php?t=284974&highlight=a2dp+cutting
he has a fix for the skipping when using a2dp.
this could be an option to enable/disable the fix when selecting the connect/stop on the today screen.
the advantage being when you disconnect you reduce the power drain.
(the fix uses a contiual loop which means the processor is working all the time)
thanks

1.0.RC-1 version added, first post edited, and new files uploaded
@tiga69 , will try to do that.

There was a little problem in identifying an A2DP device among other BT devices.
The previous post is updated with the new RC-2 version. Please re-download the CABs and reinstall this new version.

hi,
great tool ! thx
1 prob i have: when select "handle bluethooth automatically" and select a prog to start i.e mortplayer then at the first tap on "play" BT switchs on and mortplayer start. but the headphones are not set to wireless!
i have to minimize the mortplaye and click "play" again to set the headphone to wireless.
maybe a delay would help a little ???
cu
inteks

Related

TUTORIAL:Everything you need to know about using traditional (mono)Bluetooth headsets

Listen to your Pocket PC on your traditional mono Bluetooth headset and/or use its built-in microphone for PDA-based recording!
(I’ve been constantly receiving questions about all these questions on various Pocket PC boards and newsgroups; now that I’m tired of answering the same question at least five times a day, I’ve decided to dedicate a complete write-up to it.)
I’ve published several articles on A2DP and AVRCP (please see the Bluetooth category in the Smartphone & Pocket PC Magazine Expert Blog), which is a great way to listen to music wirelessly in (almost) Hi-Fi quality and stereo.
The “traditional” headset mode, on the other hand, may be much more useful for much more Pocket PC users because
There are much more cheap, “traditional”, mono Bluetooth headsets than expensive and bulky A2DP stereo headphones. They are available in all phone shops everywhere and are used by, it seems, everywhere. An example of them is the X3 micro, of which Jack Cook has just published an excellent review
To listen to, say, GPS navigation, the (not very good, phone-grade) quality of these headsets may be sufficient
Furthermore, they offer two serious (!) advantages over the A2DP mode, because of which you may want to go for the traditional headset mode instead of the high-quality A2DP mode even if you have a full-blown A2DP stereo headphone:
when you actively connect a headset device to your PDA, you will not only use the PDA-to-headset sound routing, but also the opposite direction. That is, if you, for example, want to use your PDA to record your speech (and that of your environment), and the slightly degraded (recording) sound recording quality (which won’t really be an issue when you only plan to record speech) isn’t an issue, you may want to opt for using your headset to record your speech as opposed to your PDA, which, then, can even be in your pocket or even in your suitcase.
the CPU usage of the “plain” PDA-to- headset unit will be about an order of magnitude less than that of A2DP. For example, on the non-overclocked HTC Wizard, device.exe consumes between 28 and 35% with A2DP, depending on the quality. With simple non-Hi-Fi / non-stereo sound routing, device.exe doesn’t consume anything at all, compared to the default (sound isn’t routed) case. That is, when battery life and / or responsiveness is of paramount importance and the heavy sound quality degradation / lack of stereo, you may want to prefer the low-quality, mono but non-battery-consuming headset mode to high-quality, but heavily battery-consuming mode, which also makes your Pocket PC much less responsive.
Being able to constantly (!) route the sound of your PDA to your mono headset, first, depends on the maker of your built-in Bluetooth stack. In here, Widcomm / Broadcom users (Widcomm is used in most PDA’s with operating systems prior to WM5 except for the Phone Edition models of HTC; as far as WM5 models are concerned, all Acers, HP iPAQs have sticked with this stack; the majority of Fujitsu-Siemens Pocket PC’s (except for the T8x0) and all Dell Axims (which were all Widcomm-based in the pre-WM5 times) have switched to the Microsoft BT stack), as usual, have a lead because they don’t need additional hacks / third-party applications, as opposed to the Microsoft stack.
Widcomm / Broadcom BT stack
The newer Widcomm / Broadcom BT stack versions (starting with BT stack 1.5 built into most Widcomm-based WM2003SE devices; this is also true with 1.6 and the latest 1.7, which is used in current Widcomm-based WM5 Pocket PC’s) all natively support routing the sound to your mono headset (and, of course, vice versa) as can be seen in this and this screenshots. That is, in these devices, just go to Bluetooth Manager / New, switch the headset to discoverable mode and select Hands-free / Headset setup. After creating a shortcut to the connection, just double-click it to connect (or, press the button on your headset / switch it on; then, they may automatically connect. Note that, with some headsets (for example, the Plantronics Pulsar 590A and the Dell Axim x51v with the Widcomm BT hack, the "hacked" (see below) HP iPAQ 2210 or the WM5-upgraded iPAQ hx4700), after connection, you'll need to press the headset button once more, when you hear a ringing sound. It's only then that the sound routing will be started.)
Older Widcomm versions (up to 1.4 built into most pre-WM2003SE Pocket PC’s; for example, the HP iPAQ 2210), however, don’t offer Hands-free / Headset setup in the Bluetooth Manager, in the New / Connect! list as can be seen in the following screenshots: 1 2. There, all you will need to do is
changing HKEY_LOCAL_MACHINE\SOFTWARE\ Widcomm\BtConfig\ Services\0005\ Enabled from 0 to 1 in the Registry as can also be seen in here. After this, a new item, Connect a headset, will be added to the above New / Connect! list as can be seen in here.
changing HKEY_LOCAL_MACHINE\ Drivers\ BuiltIn\ WaveDev\ Dll to btceif.dll. Make sure you export (or, at least, remember) the original name of this if it's different from wavedev.dll - you'll need it when you want to switch back to the built-in speaker.
Note that this tutorial also elaborates on these two steps (it, however, adds no relevant information so you don't have to read it) and I've also uploaded two registry import files to make the switch much easier. Here's the registry import file to enable sound routing and here's the one to disable it. Also note that you must reset your device after applying the registry changes as, unlike the BT stack-only hacks, which "only" make it necessary to restart the BT stack itself, the second, HKEY_LOCAL_MACHINE\ Drivers\ BuiltIn\ WaveDev\ Dll hack, will only be used after a reset because it's a system-wide hack.
After this hack, you can go on as usual: after selecting Connect a headset, the device will find the headset, you just enter the PIN (0000 or, in very few cases, 1234) and, by clicking Finish here, let the system create the shortcut for you.
Note that, despite being able to connect to the headset now, these "hacked" pre-WM2003SE devices are not guaranteed to flawlessly work with the headsets. For example, some HP WM2003 Pocket PC models are known not to be able to use them at all; for example, the HP iPAQ 4150. Unfortunately, in these cases, installing the well-known HP 1.6 BT update (see my A2DP articles on what it is) doesn’t help either: as opposed to the registry hack (which doesn’t help with this BT stack version any more) it won’t list “Connect to headset” (or, as it's called in never, 1.5+ Widcomm versions, Hands-free / Headset setup) any more in New (1 2 3) and, when you directly discover the services of a headset and select the (only) “Headset” profile they offer, connection attempts will always fail.
Microsoft BT stack
The situation is in no way so easy as with the Widcomm BT stack as it’s only with phone calls (if the device contains a phone at all) that it will actively use the headset, nothing else (for example, music, GPS instructions etc).
Therefore, you’ll need to use third-party applications to re-route the sound.
There are several solutions to this problem:
BTAudio 810 (also see this and this thread). Works great on the Wizard (with the 2.26 Molski ROM) but not on the Axim x51v (none of the audio re-routing solutions worked on it; therefore, you may end up having to install the Widcomm BT stack on it, which also offers flawless sound redirection to mono, non-A2DP headsets).
Installation: The ZIP file contains three files; just copy them anywhere on your Pocket PC (simply BTAudioToggle.exe may be enough) and, when you want to toggle the sound target, just execute BTAudioToggle.exe (or, alternatively, when you want to start/stop the sound routing, execute BTAudioOn.exe/BTAudioOff.exe, respectively.)
TP.com Btaudio (also see this) didn’t offer anything of importance in the case of the x51v either: with my AKU2.3 A12 ROM, the PDA still wouldn’t discover the Hands-free profile of my headset (only the wireless stereo, but it, in our case, has no use at all). It didn't work on my Wizard either. You may have better luck though; also make sure you read the linked thread (and also look around for other, related threads at XDA-Developers.)
Installation: The downloadable ZIP file contains a CAB file; just install it on your PDA.
Bluetooth sound: (also see this): while it’s reported to work great on the HTC TyTN (Hermes), it has no effect on the Dell Axim x51v / HTC Wizard at all (and is also reported not to work on the HTC Universal either). After installing it, BTAudio 810 stopped working; fortunately, the uninstall worked OK and, then, BTAudio 810 started to work again.
Installation: The downloadable ZIP file contains a CAB file; just install it on your PDA.
Teksoft's BlueMusic: (also see this): you may want to give this title a try too. It doesn’t work on my HTC Wizard (only if you previously enable sound re-routing with BTAudio 810; then, it’ll be able to switch it off and on but this functionality can also be used with the “original” BTAudio 810 and, therefore, there is not much point in installing (and, for that matter, paying for) BlueMusic in addition to the free and smaller BTAudio 810) and Axim x51v, but others have reported success with other models.
Installation: Install the software following the tutorial in install.en.txt in the downloadable ZIP file.
BTAudioNav by infamous PPC hacker, co-author of the Dell Axim x50/x51 Widcomm BT stack hack beemer: this hack allows for redirecting the sound of a particular (for example, GPS) application only. It also makes sure it reconnects to the headset after a phone call, unlike (some of?) the alternatives. It's available here; if you don't want to register yourself in the forum to be able to download the file, you can also get it from here (I've mirrored it there). Please see either the above (Spanish) thread or beemer's comments here for more information on the usage.
Verdict
If you have the Microsoft BT stack, check out BTAudio 810 first - or beemer's BTAudioNav. It’s the smallest and cleanest, free solution, which seems to be working just great. If you have the Widcomm BT stack, just use the built-in headset redirection capabilities (with the necessary hacking with earlier BT stacks if needed).
UPDATE (11/05/2006): discussions of this article: HowardForums.
Tutorial updated
Cingular 8525 BT Audio
Thank you for your help here. However, not matter what I've tried, I can't seem to get the audio to stream from my Cingular 8525 to my Plantronics 510 headset.
If anyone has specific advice on the 8525, please let me know.
Thank you.
HogFarmer said:
Thank you for your help here. However, not matter what I've tried, I can't seem to get the audio to stream from my Cingular 8525 to my Plantronics 510 headset.
If anyone has specific advice on the 8525, please let me know.
Thank you.
Click to expand...
Click to collapse
Strange. Have you checked out http://forum.xda-developers.com/showthread.php?t=278778 ?
Yes. I tried that. Just to be sure...
1. I uninstalled everything I tried previously.
2. Soft Reset
3. Installed the .cab at http://forum.xda-developers.com/showthread.php?t=278778
4. Soft Rest
5. Turned on BT
6. Turned on my BT Headset
7. Music in WMP and TCPMP still plays through the speaker, not my headset
Any help is appreciated.
My mistake.
I missed the part about initiating the Voice Command function from my headset. Sure enough, that did the trick!
Thanks for your help!!!!
Please help me!!!!
I cant get my blackjack to stream the music to my BT headset, I have a WEP170 Samsung headset and i cant hear the music through the headset. please help me out with this situation. the phone says that it is bluetooth mode but there is no sound in the headset.
Please Help???????
Results of BTAudio 810 on Blackjack
Prior to using BTAudio 810 on my Blackjack, I found that I could listen to WMP using a wired headset (though the volume was very low), but it would not send WMP audio to my Jabra BT350. Regular phone operation with the Jabra worked fine.
When I tried the BTAudio 810, I could hear a slight hiss in my Jabra, as if something was happening, but alas no WMP audio was coming through. Notably, WMP audio was no longer coming through the device speaker. I switched to the Notes app and recorded a note through the Jabra - that worked.
I looked around for reasons why BTAudio wouldn't work on the Blackjack, and didn't find much. There was a xda dev thread that hypothesized that Samsung had done something with the audio gateway portion of the MS BT stack.
I'm still hoping for a solution to get audio to my Jabra.
what works???
There has to be someone out there who has found something that works. i am getting desperate. i have tried every program out there and nothing works. i have the same problem. i here a hiss but nothing works. is there a hack that can rewrite the BT stack or something!!!!
newbienew said:
is there a hack that can rewrite the BT stack or something!!!!
Click to expand...
Click to collapse
You may want to check out the Wizard / TyTN Widcomm stack threads.
UPDATE (12/26/2006): Should you have audio reconnection problems, check out THIS.
Music on my Cingular 8525 using plantronics mono bt!!
Thank You!! I had about given up all hope when I transferred your cab over to my device, ran it, did a soft reset, and then pushed my voice command button after reboot. I then started my wmp and voila! Works perfectly. You are the best!!!
mshilot said:
Thank You!! I had about given up all hope when I transferred your cab over to my device, ran it, did a soft reset, and then pushed my voice command button after reboot. I then started my wmp and voila! Works perfectly. You are the best!!!
Click to expand...
Click to collapse
You're welcome and welcome to XDA-Dev
Blackjack Mono Bluetooth
Still nothing related to piping the audio through a standard Bluetooth headset on the Samsung i607 Blackjack? I'm simply shocked that the stack is implemented in such a proprietary way. I just can't seen using a full Stereo Bluetooth Headset at work or anywhere else for that matter. If anyone has any info on whether or not Samsung is planning to fix this issue (and when), please post... I'm definitely willing to wait for a fix, or even a Bluetooth earbud that supports A2DP. Thanks!
Anything that works on Trinity?
Treo 700w?
Anyone manage to accomplish this on the treo 700w/wx yet?
BT AudioNav
For the record, I used BTAudioNav for a couple of days, using it to invoke TomTom v6. The audio connection worked flawlessly, but it seemed to cause TomTom to lag badly. It consistently gave instructions 200-800 metres later than it should (distance was speed dependent). I was warned of a radar camera after I had passed it ... not fun eh?
I dropped it and went on with my search for the ideal. Just installed the Mortscript solution provided several posts higher so we'll see how things work when I drive home tonight
<update>Didn't work. TomTom failed to come through the headset. Perhaps I was doing something wrong so I'll re-read everything tonite.</update>
<ashamed>Me again ... Ignore the last load of rubbish </ashamed>
I installed to non-default places so its no wonder I naffed up! The Mortscript/Vijay solution is giving me sound, and resets itself after I've switched to voice command with the phone button, and after I've received a phonecall. Tom Tom will have to wait 'till I go home this p.m. but right now I have to say ... YAAAHOOOOOO !!
Bluetooth Sound on Dopod D810
Bluetooth sound works for me on my Dopod D810. Thanks for the info and file link!
hi,
i have an artemis, and bt audio works great to route the sound to my headset, but i want to route the mic of the headset to the phone ...
(to use with voip software, sjphone, skype)
but i don't find a solution to route mic to the pda ans not use the internal mic ...
Thank you very much

Bluetooth A2DP

Hi there,
I don't know where to ask this, so it went to "General".
I've got a JasJar running WM6 and it happily runs stereo music on my Motorola HT820 bluetooth headset. I also have Sony BT2500 car stereo system which supports bluetooth phone as well as A2DP. with my HT820, I just turn the headset on and jasjar sees the headset and connects to it, but with the BT2500 only the phone part is automatically connected. if I want to listen to music I have to (on my jasjar) go to settings/connections/bluetooth and tap and hold on my xplod (my sony BT2500) and set it as wireless stereo.
is there any way to avoid this step (as I'm usually driving when i have to do this)? if not, is there an easy way to do it with one hand and no tap and hold ?
Cheers,
Shafa
Hey Shafa,
I've got the same problem with my Prophet and a Pioneer BTB200. So far i found no solution, so i most likely will have to write a program to connect to a BTdevice as wireless stereo, if it autoconnects as a handsfree device and is a2dp capable.
hey Lemmz,
I'm very interested to know what API you have to call to do this...
Cheers,
Shafa
HTC Faraday
Hello all,
Are there any resources here for the Cingular 2125 , I would like to port linux on the 2125. sorry if i have mis-posted.
thanks,
rvb
@shafa:
there is a Bt_api.h in the wm5 SDK which defines a function called RequestBluetoothNotifications; so far i found
RequestBluetoothNotifications
Handling Events from the Bluetooth Stack
Retrieving AVDTP Connection State
My idea would be to monitor all bluetooth connection events (most likely via a service), see which device (auto)connects and if it is a handsfree-device and supports wireless-stereo, initiate pairing for the latter.
i will try to do some coding later today. i'll keep you informed.
Cheers,
lemmz
Ok, so far i can recieve bt-related events. unfortunately i've found no info on how to initiate an a2dp connection microsoft-style. There's tons of code for AudioGateway stuff, but imho thats pretty useless.
Looking at the registry i found in HKLM\Software\Microsoft\Bluetooth\Services\0000110B-(...) reference to "Wireless Stereo" and bthutil.dll. looking at the WM6 SDK, bthutil.h, there are just two functions, BthGetMode and BthSetMode, for turning BT on and off.
I'm also looking at the sources for the (settings->connections->bluetooth)-Dialog, btenum.cxx and btmgmtui.cpp, maybe there is some info on this.
Edit:
btw, this 0000110B thing is referred to as AudioSinkServiceClass_UUID. But no luck on that either.
Soo, i think i'm quite close now...
DRVM_MAPPER_PREFERRED_SET -- with waveOutMessage you can switch soundoutput to different devices, unfortunately for a2dp it returns NOTSUPPORTED.
But within the a2dp driver i found some messages:
WODM_BT_SCO_AUDIO_CONTROL, WODM_OPEN_CLOSE_A2DP, WODM_PARAM_OPEN_A2DP
they seem to initiate a connection and set the preferred output device, just like the DRVM_MAPPER_PREFERRED_SET should. Tonight i'll experiment with it.
SUCCESS!!
It worked just as i though: a single command does all the work.
waveOutMessage((HWAVEOUT)devId, WODM_OPEN_CLOSE_A2DP, WODM_PARAM_OPEN_A2DP, NULL)
The device to connect to has to be paired and, of course, in range. I'm now going to clean up the code and build a litte configuration-tool.
Freeware tool
EDIT: Version 1.0.rc-2 uploaded . Find the download link below:
http://teksoftco.com/index.php?section=freeware
I've just uploaded version 1.0.rc-1 of the A2DP plugin. It can be downloaded and used as freeware (0 cost) from http://teksoftco.com/index.php?section=freeware , or find it below attached to this message, including a short usage guide.
New in this release (as many users requested):
-signal indicator
-3 modes for headset: OK, Off, Err
-settings panel added
-Handle Bluetooth option
-Execute File after start option
-applet added in start->settings->system to start settings
-a2dp.exe included in the package, that with parameters: a2dp.exe -bluetoothn|off -a2dpn|off or a2dp.exe -bluetooth:1|0 -a2dp:1|0
------------------
Actually devices that support A2DP (most wm6.0 bluetooth devices), come with 2 audio drivers installed:
1) The "Audio Output" Driver (supported since ppc 2002)
2) The "Bluetooth Advanced Audio Output" Driver, that is responsible of sending audio data over a L2CAP Bluetooth connection, as per A2DP protocol
When the user connects a Stereo A2DP headset, and selects the "Wireless Stereo" profile, the Bluetooth Adv. Audio Output becomes the nr. 1 audio output route, and is indexed as the First audio driver. Any application will output sound by using that driver.
The problem is that sometimes we are already listening to audio in the device's speaker's, and then suddenly we want to switch the output to our a2dp headsets - this is sometimes problematic, as the First audio driver changes from "Audio Output" to "Bluetooth Adv. Audio Output" and the applications currently playing audio need to be restarted.
For such issues, I have provided a tool, as freeware, that will install as a today plugin and provide the user with the possibility of instantly switching the audio between Device Speaker and A2DP Stereo Headset.
It is designed for WM6.0, Microsoft Bluetooth stack, please download it and let me know how it works for you. There are some more modifications that will be done, so this is only Beta-1
The CAB installer and instructions are in the ZIP attached.
(tested on ultimate 8150/wm6.0 and eten m600+/wm5.0, the gfx was made for vga but works on qvga too)
Hello Radhoo,
first times thank you, after such a thing I searched for a long time in vain.
tool functions on the Artemis with WM6 perfectly.
If the Tool were still developed further, I would be pleased genuinly, and would like to call hereby gladly my desires:
1. Bluetooth automatically switch on and off
2. Komandozeilensteuerung
3. Traybuttons without Todayplugin
4. Automatic start of a desired program after activation of A2DP (Mortplayer)
thanks Menkul
Hello menkul, Thanks for the feedback.
What is Komandozeilensteuerung?
Sorry Komandozeilensteuerung ist german.
I mean a Funktion a2pd.exe blueon A2DPon
a2dp.exe blueoff
or so.
Also a exe with startparameter
Menkul
Great idea
Any way to indicate bluetooth 1.2 or 2.0 status/line speed, signal strength, bandwidth?
bjrmd said:
Great idea
Any way to indicate bluetooth 1.2 or 2.0 status/line speed, signal strength, bandwidth?
Click to expand...
Click to collapse
Will try to
I have two spare days for research (wow!) so I'll try to come up with something.
lemmz
lemmz said:
SUCCESS!!
It worked just as i though: a single command does all the work.
waveOutMessage((HWAVEOUT)devId, WODM_OPEN_CLOSE_A2DP, WODM_PARAM_OPEN_A2DP, NULL)
The device to connect to has to be paired and, of course, in range. I'm now going to clean up the code and build a litte configuration-tool.
Click to expand...
Click to collapse
I am sorry I've "invaded" this thread, without first saying thanks to lemmz for his work, as I very well understand the effort needed to perform this kind of research.
While I wasn't aware of his findings (which are available in AK :
bt_ddi.h, WM520\PUBLIC\COMMON\OAK\INC\ ) I just wanted to give another free tool to the community, so I posted this in a few threads where users where requesting A2DP tools. I hope this is ok.
Dear Lemmz,
thanks a lot, i will take a look asap.
thanks again
Shafa
Hey Lemmz,
where do you get the devId from?
I'm thinking about writing the application, but I'm not a C++ guy (anymore atleast) I need to write it in C#...
Cheers,
Shafa
me again. should i use WAVE_MAPPER for device ID? if so, what is the value for it or even better, where can i find the whatever.h that has the value? is there an SDK i should download?
Cheers,
Shafa
menkul said:
Sorry Komandozeilensteuerung ist german.
I mean a Funktion a2pd.exe blueon A2DPon
a2dp.exe blueoff
or so.
Also a exe with startparameter
Menkul
Click to expand...
Click to collapse
Done, original post updated, download 1.0.rc-1
Signal indicator also added: it shows the bluetooth connection strength!
shafa said:
me again. should i use WAVE_MAPPER for device ID? if so, what is the value for it or even better, where can i find the whatever.h that has the value? is there an SDK i should download?
Cheers,
Shafa
Click to expand...
Click to collapse
You should use waveOutGetNumDevs() to get the number of wave devices.
Then you can use their index directly: 0 , 1 , eg.:
int idWAVE_BTAudio = 0; // or 1
waveOutMessage((HWAVEOUT)idWAVE_BTAudio ...
Where:
Code:
0. Audio Output
1. Bluetooth Advanced Audio Output
Be careful, the index changes when one device is selected, so you should check the WAVE devices each time you want to switch the audio.
Personally I've used waveOutGetNumDevs() then waveOutGetDevCaps to see what kind of device is each of the enumerated ones.
Hope this helps.

A2DP Issues

Hi all,
Laurentius and I are looking at resolving the current issues with A2DP (Many fixes will be in our latest rom, however issues vary from headset to headset.
Some work fine, others are poor quality and some receive PDA lockups or long pauses between streams.
Please could those with A2DP issues, and the need for this protocol to work properly, post the following information.
The current Rom you are you using
The make and Model of your headset
A list of issues you are currently having with A2DP.
Please also try the following to resolve the issue.......
HKLM\Software\Microsoft\Bluetooth\A2DP\Settings\
Remove (Delete the following entries)
BitPool
MaxBitpool
and add the following
[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\AudioGateway]
"Capability"=dword:0000003C
[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\A2DP\Settings]
"SampleRate"=dword:0000BB80
"UseJointStereo"=dword:00000001
Please then remove (un-pair) your headset and Soft Reset
After SR please re-pair Headset and test A2DP again.
Please keep this thread clean and only post A2DP issues with the required information listed above.
Thanks,
Cheers,
Beast
Hi Beast,
Isn't:
"UseJointStereo"=dword:00000000
to get proper stereo sounnd?
Regards,
KOR!
I have latest V1 rom from Lt.Cmdr.Ivan - BT headset is Philips SHB7102 (works great with my Wizard and SEk800i). I did exacetely what U have asked for (but i have left jointstereo=0) and nothing happend. It sounds like 2s of music folowed by 15s of silence, then again 2s of music and 15s of silence. I messed with bitpool walues and couldn't find any working set. I'm afraid that's something wrong with max BT speed and not with A2DP implementation. I had BT speed switch app when I used broadcom BT stack and A2DP works great. Unfotunatelly normal mono BT headset doesnt work at all with this BT stack so I'm back to original stack
jarekt said:
I have latest V1 rom from Lt.Cmdr.Ivan - BT headset is Philips SHB7102 (works great with my Wizard and SEk800i). I did exacetely what U have asked for (but i have left jointstereo=0) and nothing happend. It sounds like 2s of music folowed by 15s of silence, then again 2s of music and 15s of silence. I messed with bitpool walues and couldn't find any working set. I'm afraid that's something wrong with max BT speed and not with A2DP implementation. I had BT speed switch app when I used broadcom BT stack and A2DP works great. Unfotunatelly normal mono BT headset doesnt work at all with this BT stack so I'm back to original stack
Click to expand...
Click to collapse
I've found that with MS stack and my Jabra BT620s the best bitpool is 33... good quality and good range (no interruptions)... jointstereo must be 1 otherwise the sound uses too bandwidth...
jarekt said:
I have latest V1 rom from Lt.Cmdr.Ivan - BT headset is Philips SHB7102 (works great with my Wizard and SEk800i). I did exacetely what U have asked for (but i have left jointstereo=0) and nothing happend. It sounds like 2s of music folowed by 15s of silence, then again 2s of music and 15s of silence. I messed with bitpool walues and couldn't find any working set. I'm afraid that's something wrong with max BT speed and not with A2DP implementation. I had BT speed switch app when I used broadcom BT stack and A2DP works great. Unfotunatelly normal mono BT headset doesnt work at all with this BT stack so I'm back to original stack
Click to expand...
Click to collapse
I also have Ivan's V1 Rom and have an Itech Radio headset. I completed the changes that you suggested and found that A2DP works well it did before the changes too. I have noticed that the sound quality may be a little better and the pauses are slightly reduced.
The main problem I have found with A2DP with all AKU0.5 ROMS is the pairing of the headset. If you soft reset you phone while the headset is on, A2DP will be auto detected when the phone comes up. If you play music then the music starts and stops and the phone becomes unstable. The work around is to turn your headset off, soft reset the phone. When the phone comes up turn the headset on and activate A2dp by pressing the button on the phone. Music then plays fine.
The registry changes you suggested did not help the above problem. AKU0.5 ROMS all seem to have this A2DP autodetect error on reset at least with my headset. Very frustrating.
gewin said:
I also have Ivan's V1 Rom and have an Itech Radio headset. I completed the changes that you suggested and found that A2DP works well it did before the changes too. I have noticed that the sound quality may be a little better and the pauses are slightly reduced.
The main problem I have found with A2DP with all AKU0.5 ROMS is the pairing of the headset. If you soft reset you phone while the headset is on, A2DP will be auto detected when the phone comes up. If you play music then the music starts and stops and the phone becomes unstable. The work around is to turn your headset off, soft reset the phone. When the phone comes up turn the headset on and activate A2dp by pressing the button on the phone. Music then plays fine.
The registry changes you suggested did not help the above problem. AKU0.5 ROMS all seem to have this A2DP autodetect error on reset at least with my headset. Very frustrating.
Click to expand...
Click to collapse
Sorry I meant to say " When the phone comes up turn the headset on and activate A2DP by pressing the button on the HEADSET."
mamiware said:
I've found that with MS stack and my Jabra BT620s the best bitpool is 33... good quality and good range (no interruptions)... jointstereo must be 1 otherwise the sound uses too bandwidth...
Click to expand...
Click to collapse
Hi Maniware,
Can you please further shed light in detail on the jointstereo?
Why jointstereo to be 1 or 0?
Thanks in advance!
KOR!
It goes well with joint stereo. Seems that it needs much less bandwidth. I've heard that jointstero=1 means that there is mono sound in effect.
"UseJointStereo"=dword:00000001 << mono
"UseJointStereo"=dword:00000002 << joint stereo
"UseJointStereo"=dword:00000000 << stereo
AFAIK
qtek 9000 - Logitech Mobile Bluetooth Headset
I'm not quite sure if my problem is right here - because i still have the original (last build) WM5 ROM (130.96 GER, Radio 1.09.00, ExtROM 1.30.185 GER).
I encounter statics while using the Logitech bluetooth headset, which is a mono one, making phone calls impossible due to stressed phone partners ... Only the person on the other end of the line encounters interruptions, me, as calling, not.
This is the main issue for me to update the ROM, and I'm trying to find out if any of your nice new ROMs will be of help.
Anyway, I haven't tried yet I'm afraid to destroy my device ...
thanx
Anna
my feedback:
device:
itech r35
Problems:
sound muted after 2 seconds of music.
audio players used:
audio manager
windows media player
i tried your advices, but not worked for me....
Sometimes it works when i put 70 (binary) on both Maxbitpool and bitpool...but on next device activation or reboot it just stop working...
A2DP and wireless
Just to be clear, my results are when I do not have wlan activated.
I changed UseJointStereo=dword:00000000.
Quality is good and it is definitely stereo.
Still have the auto detect problem. Interesting though, if I walk out of range for a while with the headset on, when I come back into range the A2dp is autodetect and the music starts playing through the headset again, quality is good. If I soft reset with the headset on and A2DP is autodetected, the headset is unusable.
If you do any of this with wlan on the quality is very poor with starts and stops.
Also noticed that audio manager does a better job with bluetooth than gsplayer, I think audio manager may have better caching.
Freezing
I think there's a problem with the latest core os files (AKU 0.7.0)... i havent' tried the MS BT stack, but with the Widcomm, using the bluetooth for anything more than 1 min, completely freezes the phone.
It does when listening music, transferring files, etc... if BT is idle, nothing happens (except than freezing the device when the Comm Manager gets confused and enables BT instead of gsm radio).
So it seems related to the core files.
Switching on and off, transferring data thru BT is a critical task and subject to lockups.
For the record, i used to use the BT A2DP and file transfer without ANY problem whatsoever in my old and horribly-underpowered HTC Tornado (omap850 @195mhz) so IT MUST WORK!
im using your latest rom and Motorola HT820 does not have a problem with it... even in the earlier roms you cooked... even tried it in indra's xoj version and darkforce's rom..
just wanted to clear it out just so you can rule something out...
rnzk8 said:
im using your latest rom and Motorola HT820 does not have a problem with it... even in the earlier roms you cooked... even tried it in indra's xoj version and darkforce's rom..
just wanted to clear it out just so you can rule something out...
Click to expand...
Click to collapse
Hi,
Now that sucks,
I have the same headset HT820 and audio sucks, long pauses etc etc.
Can you post your firmware Revision for me please, it should be printed on the inside of the headband.
Cheers,
Beast
Haha.. can you help my friend Beasty please
He's so happy with his new headset.
rofl......
Cheers,
Leo
@Beast J.K.
rnzk8 said:
im using your latest rom and Motorola HT820 does not have a problem with it... even in the earlier roms you cooked... even tried it in indra's xoj version and darkforce's rom..
just wanted to clear it out just so you can rule something out...
Click to expand...
Click to collapse
Plantronics Pulsar 260
Sound stops coming fter about 1 second of playback (used TCPM,
Audio Manager)
The same result after applying those reg mods....
Please try and install the stack found here: http://forum.xda-developers.com/showthread.php?t=291639
A2DP problems should go away, but then will come the freeze-after-1-min problems, like with my HP Stereo bluetooth headset
I've flash to your latest WM6 AKU 0.7 (WIFI Fix update 3) ROM just now. But sadly to say, the freezing thing still occurs after playing music with Audio Manager. It even freezes when watching videos using WMP. Usually around 1 minute it shall start freezing. FYI:
Bluetooth model: i-tech Clip
AnnaD said:
I'm not quite sure if my problem is right here - because i still have the original (last build) WM5 ROM (130.96 GER, Radio 1.09.00, ExtROM 1.30.185 GER).
I encounter statics while using the Logitech bluetooth headset, which is a mono one, making phone calls impossible due to stressed phone partners ... Only the person on the other end of the line encounters interruptions, me, as calling, not.
This is the main issue for me to update the ROM, and I'm trying to find out if any of your nice new ROMs will be of help.
Anyway, I haven't tried yet I'm afraid to destroy my device ...
thanx
Anna
Click to expand...
Click to collapse
I had the Qtek 9000 with italian version WM5 and i flashed WM6 with no problems. if you dont wanna have any problems unzip the attached file and add in the folder the 3 files (ms_.nbf ; nk.nbf ; radio_.nbf) from your prefered WM6 ROM (I personally use the latest Laurentius & Beast ROM http://forum.xda-developers.com/showthread.php?t=325466) start into bootloader (Power+backlite+softreset) and ROMUpgradeUt.exe
VERY IMPORTANT: you have to charge your batery before any flashing

Old A2DP routines don't work on new phone

Hi,
I hope somebody can help with this. I've got a new pocket-pc phone with WM6 that says it's got A2DP built in but I cannot use my old bluetooth headsets with it for audio because it greys-out the audio device option.
My headsets (I have three) all work with my Universal using the A2DP patches. The sound is not perfect but acceptable for my purposes.
But nothing works on this new phone (Ubiquio 503g). I've checked all registry keys as well and they all seem to match the Tornado patch instructions.
What else can I try? Any help appreciated.
Thanks.
wovens said:
Hi,
I hope somebody can help with this. I've got a new pocket-pc phone with WM6 that says it's got A2DP built in but I cannot use my old bluetooth headsets with it for audio because it greys-out the audio device option.
My headsets (I have three) all work with my Universal using the A2DP patches. The sound is not perfect but acceptable for my purposes.
But nothing works on this new phone (Ubiquio 503g). I've checked all registry keys as well and they all seem to match the Tornado patch instructions.
What else can I try? Any help appreciated.
Thanks.
Click to expand...
Click to collapse
First, are you speaking of non-A2DP, mono headsets or A2DP, stereo headphones ?
Thanks for your answer. Yes, I am speaking of non-A2DP, mono headsets. Sorry I was not very clear on first post. That's what I mean. I've used these same headsets before with Uni and had sound of sorts from media players coming through it.
wovens said:
Thanks for your answer. Yes, I am speaking of non-A2DP, mono headsets. Sorry I was not very clear on first post. That's what I mean. I've used these same headsets before with Uni and had sound of sorts from media players coming through it.
Click to expand...
Click to collapse
Unfortunately, different models require different ghacks to do this as has also been explained in the Wiki (see http://wiki.xda-developers.com/inde...t using traditional (mono) Bluetooth headsets )
All in all, checkout the Wiki above
Thanks. I'll try the wiki and hope for the best.
_________________________
If anybody is interested, as my phone has Microsoft’s BT Stack, I’ve tried:
1)- Built in A2DP - option for bt audio greyed out.
2)- Tried with TP.com BTAudio.cab - it installs but sound is muted (or disappears in the ether) when I transfer sound to headset.
3)- Tried with 1Enable_A2DP.cab and 2Enable_A2DP.cab and the system say it cannot install them full stop.
4)- Tried with Tornado’s BTAudioToggle routine and registry changes - behaves the same as in option 2. (Realised after doing option 5 that it is same as BTAudio810)
5)- Read the wiki on http://wiki.xda-developers.com/index.php?pagename=TUTORIAL%3A%20Everything%20you%20need%20to%20know%20about%20using%20traditional%20%28mono%29%20Bluetooth%20headsets and discovered that I had tried most of the options there already.
6)- Did not try the “Teksoft’s Blue Music” yet, may give it a go later.
7)- and last, tried BTAudioNav with no luck either. (same behaviour as option 2).
I wanna cry!
= =
o)(o
'
'
'

Telephone cant find bluetooth-headset!

Hi! I have a brand new Jabra 620s bluetooth-headset. When I turn the headset on and search for bluetooth devices on my computer I can see it, but I cant see it when I search for it on my touch pro.
What could be the problem here?
I had a similar problem last night (and have it quite often when i need to pair). It doesn't detect it until the 3rd or 4th time in which last night it didn't even detect it either. I power cycled the headset and my phone found it the first time.
Yeah, I tried rebooting my headset and my phone several times, but I still can't get it to work...
Figured it out... Had to hold in a button on the headsett to make it avaliable for new devices...
But new problem:
I don't get sound in the headsett when I play music. But when I make a call the sound is in the headsett. What could be the problem here?
Maybe its the settings in your a2dp profile?
I read this "Set-up of the 620's was simple enough, the headset unit is paired with the device that is streaming the music and / or a mobile phone. A smart move from Jabra allows the 620s to be connected to both a mobile phone and an audio device simultaneously. However our set-up was rather more straight forward than most as we used Jabra's own Bluetooth dongle that supports the all important A2DP (Advanced Audio Distribution Profile) profile. Real life for most users is a different kettle of fish with support for A2DP being quite sparse, most music gateways and servers and even music ready mobiles rarely support the required profile." source: http://www.lordpercy.com/jabra_bt620s_review.htm
Maybe some tweaking in hklm\\software\microsoft\bluetooth\a2dp\Settings
I believe this headset also supports AVRCP profile. In any case, make note of your original configuration prior to making any changes.
nyckid211 said:
Maybe its the settings in your a2dp profile?
I read this "Set-up of the 620's was simple enough, the headset unit is paired with the device that is streaming the music and / or a mobile phone. A smart move from Jabra allows the 620s to be connected to both a mobile phone and an audio device simultaneously. However our set-up was rather more straight forward than most as we used Jabra's own Bluetooth dongle that supports the all important A2DP (Advanced Audio Distribution Profile) profile. Real life for most users is a different kettle of fish with support for A2DP being quite sparse, most music gateways and servers and even music ready mobiles rarely support the required profile." source: http://www.lordpercy.com/jabra_bt620s_review.htm
Maybe some tweaking in hklm\\software\microsoft\bluetooth\a2dp\Settings
I believe this headset also supports AVRCP profile. In any case, make note of your original configuration prior to making any changes.
Click to expand...
Click to collapse
I tried to install btAudio. Now I have sound in my headset, but det sound-quality is CRAPPY! Are there any other software avaliable that can fix this? Dont know if I want to edit the registry.... There must be a solution?
slogum said:
I tried to install btAudio. Now I have sound in my headset, but det sound-quality is CRAPPY! Are there any other software avaliable that can fix this? Dont know if I want to edit the registry.... There must be a solution?
Click to expand...
Click to collapse
You can use Advanced Config to enlarge the bluetooth bitpool under the bluetooth tweaks. Set it to "very high" for best sound quality (uses more system resources tough).
HTH
Maximum bit-pool setting is 1561. I dont think it solves the problem, cause the quality is still really bad.
Any other tips? Or do I have to return the headset cause a brand new ~1000$ phone cant play on a wireless bluetooth headset?!
Bump.. Are there really no solutions?

Categories

Resources