A2DP Toggle

Small projects created to fit certain needs. Any of these might turn into a bigger application. It depends on everyone's feedback.

Moderators: Teksoft, meda

A2DP Toggle

Postby radhoo » Wed Sep 05, 2007 12:08 am

Version 1.1 here:
http://teksoftco.com/forum/viewtopic.php?t=1885


Older:
A2DPTOGGLE RC-2

Installation
Visit http://www.teksoftco.com section Freeware and download A2DPToggle. You will find a .zip file, that you need to unzip, and there a .txt file with further installation instructions. Please read them carefully.

Configuration
After A2DPToggle is installed, you will need to pair your A2DP Wireless Stereo Device (Headset, Loudspeaker) to your Windows Mobile device.
Image

The A2DP Device must support the service called "wireless stereo" or "audio/video". Make sure you select one of these services when pairing.
Image

With the A2DP device paired, you can use the Play and the Stop buttons in the plugin interface.
Image
Next to the Stop button there is a signal indicator that will show your bluetooth link status. At the very beginning this will calibrate automatically, so wrong indications might appear: to simplify this process, after the A2DP device is paired, simply move away from your device until the signal gets as low as possible. We need this to be able to determine the minimum value for Bluetooth Signal (Unfortunately the BT driver doesn't provide the same values on several device we've tested: -128..127 on Universal, -32..0 on Imate Ultimate 8150).

Next to the signal indicator, there is an icon showing the status of the A2DP device: OK (when the pairing is correctly completed and the headset is connected to the device), Err (when the headset is not yet paired) and Off (when the headset is out of the device's Bluetooth coverage radius, or when the headset is turned off/disconnected).
To be able to use "Start/Play", this status indicator must show OK.

The second indicator shows the Bluetooth status.

Next to it, there is a toolbox icon, that opens the settings screen:
Image
"Handle Bluetooth automatically" would turn bluetooth on when you press start (play), and off when you press stop.
"Execute file after start" would run the specified application when you press "Start/Play", by default this is set to Media Player.


Details regarding internal functionality
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, we've 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 us know how it works for you.

Command line
You can use A2DP.exe in \program files\teksoft\A2DPToggle
The supported parameters are:
Code: Select all
a2dp.exe -a2dp:on|off -bluetooth:on|off
or
a2dp.exe -a2dp:1|0 -bluetooth:1|0

a2dp:on routes audio to a2dp device, a2dp:off routes audio back to device
bluetooth:on starts bluetooth, bluetooth:off toggles BT off.

Tested on Imate Ultimate 8150/wm6.0, HTC Universal WM5.0, eten m600+/wm5.0, the gfx was made for vga but works on qvga too.
Attachments
a2dptoggle1.0.rc1.pdf
This guide as PDF
(149.27 KiB) Downloaded 2857 times
Last edited by radhoo on Mon Oct 20, 2008 12:04 am, edited 9 times in total.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 645
Joined: Fri Mar 17, 2006 2:47 am

Works on my HTC Touch

Postby driekus » Tue Sep 11, 2007 12:00 pm

Seems to work beautifully. Thanks a lot, before installing this app I had to manually connect everytime which was a pain in the *ss.

Device: HTC Touch dutch rom
Headset: Sony DR-BT10CX
driekus
TEK-Newbie
TEK-Newbie
 
Posts: 3
Joined: Tue Sep 11, 2007 11:55 am

Postby mgray » Mon Sep 17, 2007 7:33 pm

A2DPTOGGLE seems like a great utility. Any chance of a Smartphone version coming any time soon? :D
mgray
TEK-Newbie
TEK-Newbie
 
Posts: 1
Joined: Mon Sep 17, 2007 7:27 pm
Location: Texas

HTC TyTN II and HTC S100 Bluetooth Stereo Headset no work

Postby chiccomb » Tue Sep 18, 2007 11:27 am

Hi I'm chiccmb from Italy.

I have same problems.

I had installad A2DPToggle.signed.arm.cab. I had installed my headset but when I press Play appares a massage:
No Wireless Headset founf. Please pair your headset first.

The status is:
No bluetooth signal
Headset icon: Err
Bluetooth icon: On

P.S.: With the A2DPToggle.arm.cab it's all OK

I use HTC TyTN II and HTC S100 Bluetooth Stereo Headset.

Best Regards
chiccomb
chiccomb
TEK-Newbie
TEK-Newbie
 
Posts: 3
Joined: Tue Sep 18, 2007 11:14 am

Postby radhoo » Wed Sep 19, 2007 10:42 am

Hi chiccmb, welcome to the forum.

Try to delete your headset from your BT devices, then Re-pair it with your Tytn and press Start again.


Any luck now?
radhoo
TEK-Insider
TEK-Insider
 
Posts: 645
Joined: Fri Mar 17, 2006 2:47 am

Postby chiccomb » Wed Sep 19, 2007 2:14 pm

radhoo wrote:Hi chiccmb, welcome to the forum.

Try to delete your headset from your BT devices, then Re-pair it with your Tytn and press Start again.


Any luck now?



Which the differences the A2DPToggle.signed.arm.cab and the A2DPToggle.arm.cab ?

I have followed your instructions but it doesn't go.
From the version A2DPToggle.signed.arm.cab to the version A2DPToggle.arm.cab, and it works all OK.

I have followed your instructions but it doesn't go.
From the version A2DPToggle.arm.cabA2DPToggle.signed.arm.cab to the version A2DPToggle.signed.arm.cab, and it NO MORE works.

Have I cancelled the device from the bluetooth and I reinstalled my heandset, but doesn't it go?
Do you have suggestions? Does a different version exist?
Do you have e new version?

When i push "play" button, appare e windows with title "hardware Warning" No Wireless Headset Found. Please pair your headset first!
The Headset is pair OK, but it no work.

Chiccomb
chiccomb
TEK-Newbie
TEK-Newbie
 
Posts: 3
Joined: Tue Sep 18, 2007 11:14 am

Postby radhoo » Wed Sep 19, 2007 2:25 pm

chiccomb wrote:
radhoo wrote:Hi chiccmb, welcome to the forum.

Try to delete your headset from your BT devices, then Re-pair it with your Tytn and press Start again.


Any luck now?



Which the differences the A2DPToggle.signed.arm.cab and the A2DPToggle.arm.cab ?

I have followed your instructions but it doesn't go.
From the version A2DPToggle.signed.arm.cab to the version A2DPToggle.arm.cab, and it works all OK.

I have followed your instructions but it doesn't go.
From the version A2DPToggle.arm.cabA2DPToggle.signed.arm.cab to the version A2DPToggle.signed.arm.cab, and it NO MORE works.

Have I cancelled the device from the bluetooth and I reinstalled my heandset, but doesn't it go?
Do you have suggestions? Does a different version exist?
Do you have e new version?

When i push "play" button, appare e windows with title "hardware Warning" No Wireless Headset Found. Please pair your headset first!
The Headset is pair OK, but it no work.

Chiccomb

A new version is available.
Download version 1.0.RC-2 from www.teksoftco.com -> Freeware.
It comes with a fix to this problem.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 645
Joined: Fri Mar 17, 2006 2:47 am

Postby chiccomb » Wed Sep 19, 2007 4:01 pm

A new version is available.
Download version 1.0.RC-2 from www.teksoftco.com -> Freeware.
It comes with a fix to this problem.


:lol:

radhoo good work

Now with new version 1.0.RC-2 it's all OK!!!!!!!

Bluetooth segnal: work OK
headset icon: OK
Bluetooth icon: On

I prefere:
Handle bluetooth Automatically: disable
Execute file after Start: disable

Thank You Very Much fot your interest and scuse me for my english! :oops:

Best Regards
chiccomb
Massimiliano B.
Italy - Bologna
chiccomb
TEK-Newbie
TEK-Newbie
 
Posts: 3
Joined: Tue Sep 18, 2007 11:14 am

Postby Surur » Sat Sep 22, 2007 12:51 pm

Thank you. The software has made my life a lot easier.

I have only one (hopefully simple) feature request- Its not clear when a button is pressed on the today screen, and the system is often slow to respond, so one has to press repeatedly.

If the colour or picture of the button could change once its pressed and working it would make life even easier.

A further, less important request is if it may be possible to make a non-today screen version of this software, e.g. an icon which would serve as a toggle. I have a HTC Touch, and after the HTC Home screen today screen space is pretty limited.

Either way, thanks again for this great software, which I have been waiting ages for.

Surur
Surur
TEK-Newbie
TEK-Newbie
 
Posts: 3
Joined: Sat Sep 22, 2007 12:44 pm

What is this A2DP_plugin.txt file...

Postby driekus » Mon Sep 24, 2007 12:45 pm

Really like the plugin, works well on my Touch (as I already stated above), except for one thing that's getting a little annoying: an ever growing file named A2DP_plugin.txt in the root folder of my device (My Device\). I use my headset extensively, and it looks like this file grows by the minute. So every couple of days I have to crop or delete this file in order to free up main memory (it grows and grows to become several mb's big). Is this normal with this program? Or is this a HTC Touch or headset related bug?
I've attached a copy of an old file (had to crop it in order to be able to upload to this forum, but you get the jist).
Attachments
A2DP_plugin.txt
Device: HTC Touch dutch rom
Headset: Sony DR-BT10CX
(155.22 KiB) Downloaded 706 times
driekus
TEK-Newbie
TEK-Newbie
 
Posts: 3
Joined: Tue Sep 11, 2007 11:55 am

Postby chrisdk » Mon Sep 24, 2007 4:19 pm

This works really well, but I have a "feature request"!

Would it be possible to have a version to toggle the A2DP state that doesn't have to run as a today plug-in, or a command-line version that I can trigger from PhoneAlarm when I want A2DP turned on? While driving, it's not ideal to have to go back to the today screen and hitting the button.

thanks

Chris
chrisdk
TEK-Newbie
TEK-Newbie
 
Posts: 1
Joined: Mon Sep 24, 2007 4:13 pm

Postby radhoo » Mon Sep 24, 2007 9:04 pm

chiccomb wrote:I prefere:
Handle bluetooth Automatically: disable
Execute file after Start: disable

Thank You Very Much fot your interest and scuse me for my english! :oops:

Your english is fine, I'm glad the plugin works ok on your hardware.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 645
Joined: Fri Mar 17, 2006 2:47 am

Postby radhoo » Mon Sep 24, 2007 9:07 pm

Surur wrote:Thank you. The software has made my life a lot easier.

I have only one (hopefully simple) feature request- Its not clear when a button is pressed on the today screen, and the system is often slow to respond, so one has to press repeatedly.

If the colour or picture of the button could change once its pressed and working it would make life even easier.

A further, less important request is if it may be possible to make a non-today screen version of this software, e.g. an icon which would serve as a toggle. I have a HTC Touch, and after the HTC Home screen today screen space is pretty limited.

Either way, thanks again for this great software, which I have been waiting ages for.

Surur

Actually when you are pressing Start or Stop, the button moves a bit down and to the right (like any other button). I'll see what I can do to increase its visibility.

Regarding the non-today, you can use the a2dp.exe file directly. Just call it from any shortcut tool/program, with the parameters presented in the first post.

Thanks for your comments.
Radu
radhoo
TEK-Insider
TEK-Insider
 
Posts: 645
Joined: Fri Mar 17, 2006 2:47 am

Re: What is this A2DP_plugin.txt file...

Postby radhoo » Mon Sep 24, 2007 9:10 pm

driekus wrote:Really like the plugin, works well on my Touch (as I already stated above), except for one thing that's getting a little annoying: an ever growing file named A2DP_plugin.txt in the root folder of my device (My Device\). I use my headset extensively, and it looks like this file grows by the minute. So every couple of days I have to crop or delete this file in order to free up main memory (it grows and grows to become several mb's big). Is this normal with this program? Or is this a HTC Touch or headset related bug?
I've attached a copy of an old file (had to crop it in order to be able to upload to this forum, but you get the jist).

The file is a log file for debug purposes (in case someone would have any problems with the plugin it could simply send me the file). I will remove it in a next version, but this shouldn't be a problem - the software is set to allow only 80 lines... So it shouldn't get bigger then a few KB.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 645
Joined: Fri Mar 17, 2006 2:47 am

Postby radhoo » Mon Sep 24, 2007 9:11 pm

chrisdk wrote:This works really well, but I have a "feature request"!

Would it be possible to have a version to toggle the A2DP state that doesn't have to run as a today plug-in, or a command-line version that I can trigger from PhoneAlarm when I want A2DP turned on? While driving, it's not ideal to have to go back to the today screen and hitting the button.

thanks

Chris


Please use the A2DP.exe , with the correct parameters. Let me know if this is ok (see my reply to surur).
radhoo
TEK-Insider
TEK-Insider
 
Posts: 645
Joined: Fri Mar 17, 2006 2:47 am

Next

Return to Freeware

Who is online

Users browsing this forum: No registered users and 0 guests