A2DP Toggle 1.1

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

Moderators: Teksoft, Sn0wflake

A2DP Toggle 1.1

Postby radhoo » Sun Oct 19, 2008 10:44 pm

A2DPTOGGLE 1.1


What’s new in 1.1?
- 1.1 can be used with Smartphones as well
- Battery power consumption reduced
- Improved interface
- additional parameters for A2DP.exe
- speakerphone support

This software will install as a today or home plugin and offer the user the possibility of instantly switching the audio between Device Speaker, A2DP Stereo Headsets and Speakerphone.

Image


Installation
Visit http://www.teksoftco.com section Freeware and download A2DPToggle CAB file. To learn how to install a CAB file on your device, see http://www.teksoftco.com/forum/viewtopi ... =3714#3714


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.


The Interface
This software comes with a sophisticated “alphablended” interface that will integrate perfectly in your today screen.
For the Pocket PC version, there are two layouts that can be used, a big fingerfriendly one, and a small layout, to save today space.

Image


With the A2DP device paired, you can use the Play and the Stop buttons in the plugin interface. Only one of these two buttons will be visible at a time, stop, if A2DP is enabled and start if A2DP is disabled. This change comes to save some interface space.

Image

Next to the Start/Stop button there is a Speakerphone button that you can use to enable/disable the speakerphone while in a phone call.

The third button opens the Settings Panel. signal indicator that will show your bluetooth link status.

There are two indicators as well, one for 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/Stop", this status indicator must show OK.

The second indicator shows the Bluetooth status.



The Settings Panel:
"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.
"Fingerfriendly GUI" allows you to switch between the two layouts presented above.

Image

Tested on Imate Ultimate 8150/wm6.0, HTC Universal WM5.0, eten m600+/wm5.0.


Smartphone support
From this version, A2DP Toggle can be installed on Smartphones as well (no touchscreen).

Image

To toggle the A2DP mode on and off use the Icon in Programs. Tap on it to enable A2DP then tap again to disable it.


A2DP.exe Parameters
You can execute this module directly. The supported parameters are:
A2dp.exe –bluetooth:on|off [-a2dp:on|off] [-spk] [-switch]
Parameters:
Bluetooth enables/disables the Bluetooth radio
A2dp enables/disables voice routing to headset
Spk enables/disables speakerphone
Switch enables/disables A2DP

Using A2dp.exe without parameters is the same as using the –switch parameter.


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 WM5.0/WM6.0 and above, Microsoft Bluetooth stack, please download it and let us know how it works for you.

____________________________________________________________________________

For simplicity, I will not include the CAB file in this message. Find all you need in the [direct] links below:

Download: http://www.teksoftco.com/index.php?section=freeware

Support: http://teksoftco.com/forum/viewtopic.php?t=1626

Manual: http://www.teksoftco.com/products/freew ... gle1.1.pdf
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am

Postby Surur » Mon Oct 20, 2008 12:17 am

Its really nice to see this great software updated. Unfortunately I have a bug to report. On the HTC Touch Pro, when touchflo3d is enabled, clicking on the a2dptoggle app shortcut (a2dptoggle.exe) reliably causes the device to lock-up and reboot.

With touchflo3d disabled everything works exactly as expected, with or without the today screen plug-in.

Thanks

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

Postby macdo » Mon Oct 20, 2008 2:10 pm

Hi, I tried to disable all today plugins - soft reset, reinstalled new version but still I can't see the A2dp plugin. Even if I go to Today setup / Items I can't see the plugin to enable it.
BTW: I have an HTC Tilt AT&T 8925 Win 6.1

Hope you can help me

Thanks in advance!
macdo
TEK-Newbie
TEK-Newbie
 
Posts: 5
Joined: Wed Oct 15, 2008 10:45 pm

Postby radhoo » Sun Oct 26, 2008 9:53 am

Surur wrote:Its really nice to see this great software updated. Unfortunately I have a bug to report. On the HTC Touch Pro, when touchflo3d is enabled, clicking on the a2dptoggle app shortcut (a2dptoggle.exe) reliably causes the device to lock-up and reboot.

With touchflo3d disabled everything works exactly as expected, with or without the today screen plug-in.

Thanks

Surur

I'm not sure on this one, I'll check it once I get a device with the touchflo.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am

Postby radhoo » Sun Oct 26, 2008 9:54 am

macdo wrote:Hi, I tried to disable all today plugins - soft reset, reinstalled new version but still I can't see the A2dp plugin. Even if I go to Today setup / Items I can't see the plugin to enable it.
BTW: I have an HTC Tilt AT&T 8925 Win 6.1

Hope you can help me

Thanks in advance!


Forgot to ask you, but have you installed a2dptoggle in main memory or storage card?

You should try installing it in the main mem.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am

Postby macdo » Mon Oct 27, 2008 2:19 pm

Thanks Friend!! Now I installed it in the main memory and I can see the plug in!!
macdo
TEK-Newbie
TEK-Newbie
 
Posts: 5
Joined: Wed Oct 15, 2008 10:45 pm

A2DP streaming fails :-(

Postby Grunt » Tue Oct 28, 2008 5:23 pm

Hello,
I use an HTC TYTN II. Pairing to my Midland BT2 (which supports A2DP) worked fine, I can use it as handsfree. However, when I try and connect as wireless stereo via Bluetooth, nothing happens... The music is still sent to the internal speaker.
Any idea what might be the cause of this?
Thanks a lot!
Grunt
TEK-Newbie
TEK-Newbie
 
Posts: 1
Joined: Tue Oct 28, 2008 5:17 pm

problem

Postby krab » Thu Oct 30, 2008 12:55 am

untag the "finger friendly GUI" makes the icons show for a second and then they dissapear leaving a blank row on my TYTN with org. WM6
Attachments
ad2ptoggle1.jpg
ad2ptoggle1.jpg (21.93 KiB) Viewed 26399 times
EeePC 900HD 160GB WINXPH
P3600(ADW v1.1 NL ROM)
MDA Compact IV (HTC Diamond)
HTC P3300 (WM6)
MDA-PRO(WM6) - IMATE PDA-N(WM5)
krab
TEK-Seeker
 
Posts: 23
Joined: Tue Jul 11, 2006 10:40 am

Question/Suggestion

Postby bsw111 » Thu Oct 30, 2008 8:28 pm

First off, this is great app!

I have 2 issues (I have your older version), that I did not see mentioned in this update:

1 - If Bluetooth is off, A2DP does not turn it on.

2 - I have multiple Stereo BT devices - a couple headsets, and a receiver I use in my bathroom. A2DP does not seem to handle this - it only auto-connects to the last connected stereo device - I have to use BT Quicklink to make it work if I change devices.

The only thing I can think of that would make A2DP even better is for it to just be automatic the way a non-stereo device works - since you seem to know how to deal with this stuff internally, that would be a great option!


NOTE: I just installed 1.1 and had 2 issues:

1 - I forgot you have an automatic option - this does not work - it shows that it is OK but the play icon is there and it does not work until I click the play icon.

2 - When I ran the setup and changed the auto-option (either way), my device hung and I needed to reset. This is caused by your plugin being inside of Throttle Launcher's plugin.

I am using a Tilt with a HyperDragon ROM and ThrottleLauncher where your plugin is on one of its pages.

I also noticed that your status indicator is showing off even though it is on and working and the start/stop icon shows red stop.

Also if I shut off the bluetooth device, the red stop icon still stays red.

I will be happy to assist you in any debugging.
Barry S. Weingart
bsw111
TEK-Newbie
TEK-Newbie
 
Posts: 1
Joined: Thu Oct 30, 2008 8:13 pm

Postby krab » Fri Oct 31, 2008 12:45 pm

Ok. I solved my, the above problem. I had installed NETCONFIG which was on default that means NETCF2.0 It now is on 3.5 ;) Thanks.
EeePC 900HD 160GB WINXPH
P3600(ADW v1.1 NL ROM)
MDA Compact IV (HTC Diamond)
HTC P3300 (WM6)
MDA-PRO(WM6) - IMATE PDA-N(WM5)
krab
TEK-Seeker
 
Posts: 23
Joined: Tue Jul 11, 2006 10:40 am

Postby krab » Fri Oct 31, 2008 11:30 pm

The aut. BT option is handy for saving power. On the other hand. I used it a few times forgetting that when I push "stop" BT is switched off too.So when I didn't hear the music in my headphones I was asking myself "what's wrong?"So I switch off the aut.BT option. Btw. Pushing on play is only starting the favorite player which you can set in
"settings". But it doesn't start the music.
EeePC 900HD 160GB WINXPH
P3600(ADW v1.1 NL ROM)
MDA Compact IV (HTC Diamond)
HTC P3300 (WM6)
MDA-PRO(WM6) - IMATE PDA-N(WM5)
krab
TEK-Seeker
 
Posts: 23
Joined: Tue Jul 11, 2006 10:40 am

Postby krab » Thu Nov 06, 2008 5:56 pm

Another error. I don't know why. Didn't change anything.

See the screenshot.
Attachments
ad2ptoggle2.jpg
ad2ptoggle2.jpg (2.29 KiB) Viewed 26089 times
EeePC 900HD 160GB WINXPH
P3600(ADW v1.1 NL ROM)
MDA Compact IV (HTC Diamond)
HTC P3300 (WM6)
MDA-PRO(WM6) - IMATE PDA-N(WM5)
krab
TEK-Seeker
 
Posts: 23
Joined: Tue Jul 11, 2006 10:40 am

Postby admin » Wed Nov 19, 2008 3:26 pm

krab wrote:Another error. I don't know why. Didn't change anything.

See the screenshot.


This happened to me too a few times. I'm sure radu will provide a solution...
admin
Editors
 
Posts: 314
Joined: Sat Mar 04, 2006 3:37 pm

Postby Darius » Sat Feb 14, 2009 8:34 am

I have a feature request :)

Would it be possible to make A2DP sit in the background and wait for connect events and if it sees one do the A2DP setup?

I wrote a small test program which can see when devices are connected and removed, so I think it wouldn't be too difficult to do (famous last words).

Here's the code snippet I used (mangled a bit but I think you can get the idea)

Code: Select all
        HANDLE                  btmsgh = 0;
        HANDLE                  queueh = 0;
        MSGQUEUEOPTIONS qopts;
        BTEVENT                 *btmsg;
        DWORD                   msglen, flags;

        qopts.dwSize = sizeof(qopts);
        qopts.cbMaxMessage = sizeof(BTEVENT);
        qopts.dwMaxMessages = 5;
        qopts.bReadAccess = TRUE;
        qopts.dwFlags = MSGQUEUE_NOPRECOMMIT | MSGQUEUE_ALLOW_BROKEN;

        if ((queueh = CreateMsgQueue(_T("my BT msgs"), &qopts)) == NULL) {
      kaboom();
        }
        if ((btmsgh = RequestBluetoothNotifications(BTE_CLASS_CONNECTIONS | BTE_CLASS_PAIRING | BTE_CLASS_DEVICE | BTE_CLASS_STACK, queueh)) == NULL) {
      kaboom();
        }

                if (ReadMsgQueue(queueh, btmsg, sizeof(BTEVENT), &msglen, INFINITE, &flags) == FALSE) {
         kaboom();
      } else {
                        BT_CONNECT_EVENT        *connev;
                        BT_DISCONNECT_EVENT     *discev;

                       if (btmsg->dwEventId == BTE_CONNECTION) {
                                connev = (BT_CONNECT_EVENT *)&btmsg->baEventData;
   
            handleconnect(connev->bta);
         } elseif  (btmsg->dwEventId == BTE_DISCONNECTION) {
                                discev = (BT_DISCONNECT_EVENT *)&btmsg>baEventData;

            handledisconnect();
         }
   }
Darius
TEK-Newbie
TEK-Newbie
 
Posts: 1
Joined: Sat Feb 14, 2009 8:32 am

A2DPToggle on a Xperia

Postby eaposte » Wed Apr 22, 2009 7:32 am

Just upgraded?? from a P1I and now find an important feature is giving me great difficulty. I used the P1I safely tucked away in a pocket with a BT earphone set for bicycling. I have found the A2DPToggle icons on "today" and have successfully paired my earphones but can only get sound through the back speaker. I have tried your demo of "BlueAudio" thinking this might solve problem but it doesn't. All of the icons appear to work properly as I press start and end but the sound doesn't move from rear speaker. I have also installed your Speakerphone utility which works great but still, as a work around it didn't help. I have also installed BTKeepalive thinking this was related to problem and it works fine so BT connectivity is not the problem. I spent big bucks on this Xperia and can't understand why this basic function doesn't work as well as it did on the P1I.[/b]
eaposte
TEK-Newbie
TEK-Newbie
 
Posts: 2
Joined: Wed Apr 22, 2009 6:49 am

Postby Teksoft » Mon Apr 27, 2009 12:00 pm

You are correct, the Omnia currently doesn't support bluetooth audio routing.

The good thing is that we're working on a patch that will fix this.

More info in the BlueAudio forum.
Best regards,
Teksoft
www.teksoftco.com
Teksoft
Editors
 
Posts: 416
Joined: Wed Dec 10, 2008 10:26 am

Postby eaposte » Tue Apr 28, 2009 9:19 am

Ooops! Is that a typo? The problem I am having is connecting an Xperia to my BT earphones not an Omnia.
eaposte
TEK-Newbie
TEK-Newbie
 
Posts: 2
Joined: Wed Apr 22, 2009 6:49 am

A2DP Toggle 1 1

Postby alinaboom » Tue Jun 30, 2009 7:21 pm

Hi, I missed something. I read the forums trying to create a On/Off toggle. Nothing works for me. Basically I have a cube with some audio attached to it. If I click once on it Id like to have the sound play once only. If I click on it it should stop. It seems very simple but not for me.

I found that code but it keeps playing all the time.
Plus I dont know how to replace the Input.GetKeyDown by a OnMouseEnter.

Any help will be greatly appreaciate

Thanks

Didier


Code:
alinaboom
 

Postby Physboy » Thu Aug 20, 2009 4:59 am

This software does not work on the T-Mobile Touch Pro 2. Will this be addressed or is there no need for it on TP2?
Physboy
TEK-Newbie
TEK-Newbie
 
Posts: 3
Joined: Wed Apr 08, 2009 2:28 am

A2DP Toggle

Postby raghumovies » Fri Oct 30, 2009 1:27 pm

Hi,

The A2DP toggle is working on my T-mobile Dash (smart phone). But I have a problem..when i toggle the audio routes to the speaker but the stereo remote does not work.

To be clear..I want to control the media player with my bluetooth stereo headset but play the music from the phone speakers.

Kindly let me know if the new version can do this.

Thank You,
Regards,
Raghu.
raghumovies
TEK-Newbie
TEK-Newbie
 
Posts: 2
Joined: Fri Oct 30, 2009 1:11 pm

BT and HD2

Postby monarols » Sun Mar 07, 2010 9:47 am

Hi there people.

I have just bought a HTC HD2, and sadly havent been able to get a2dp toggle to work with this phone. It was working good with my former Samsung Omnia i900.

After I pair the headset (Plantronics P590) the BT/Headphone icon is present at the top of the screen, and dissapears, as you would expect, when I turn off the headphones. I have a2dp toggle as a button on HTC sense UI, but pressing it doesnt route the sound to the phones.

If I change the phone to the default today screen and look at the status of the connection it is showing ERR. When I press the play arrow, it says headset is not connected (when it is).

The only way I can get it to connect is to drill through all the menus to select "Wireless Stereo" then it works for that session till I turn off the phones.

Is there a registry hack I can assign to a button that takes me to the Bluetooth options for the P590 if there is no fix for this atm?

Many thanks, Chris

Thanks Chris
monarols
TEK-Newbie
TEK-Newbie
 
Posts: 1
Joined: Sun Mar 07, 2010 9:24 am

Re: A2DP Toggle

Postby Teksoft » Tue Mar 09, 2010 1:25 pm

raghumovies wrote:To be clear..I want to control the media player with my bluetooth stereo headset but play the music from the phone speakers.

HeadsetRemote might work for you.

monarols wrote:Is there a registry hack I can assign to a button that takes me to the Bluetooth options for the P590 if there is no fix for this atm?

Many thanks, Chris

Hi Chris, welcome to the forum. Unfortunately this only works with devices that have the Microsoft Bluetooth stack.
Best regards,
Teksoft
www.teksoftco.com
Teksoft
Editors
 
Posts: 416
Joined: Wed Dec 10, 2008 10:26 am

Re: A2DP Toggle 1.1

Postby alglok » Wed Feb 16, 2011 11:03 am

Hello
I have been using the programm A2DPToggle on MAX 4G for almost 2 years.
I'm sutisfied with it, because I'm using Stereo Bluetooth Handsfree every day.
But recently I have bought HTC HD2 with WIDCOMM ВТ-steck on it.
And now I cant use handsfree comfortably.
Couldn't your overview an opportunity to make a full apple of the programm
A2DPToggle for HTC HD2.

Sincerely yours
Alekseev Igor
Saint-Petersburg
Russia
alglok
TEK-Newbie
TEK-Newbie
 
Posts: 1
Joined: Wed Feb 09, 2011 5:59 pm

Re: A2DP Toggle 1.1

Postby luluxiu » Thu Jun 30, 2011 4:11 am

I can use it hands free. However, when I try and connect via Bluetooth wireless stereo, no response ... ... music is still sent to the internal speaker...
This summer cool Black leather pumps sandals 2012 at CWMALLS
luluxiu
TEK-Newbie
TEK-Newbie
 
Posts: 3
Joined: Thu Jun 30, 2011 2:49 am
Location: New York


Return to Freeware

Who is online

Users browsing this forum: No registered users and 0 guests


cron