Second:
I also tried Bluetooth Auto Connect by UniqTec. That doesn't seem to do anything either. I've tried adding waits between actions, using disconnect before connect, etc. But I can do any of this manually, so it is possible to get the setup I want.
I've had great luck with this app.
What is the task description your using?
I've managed different connections using A2DP and HSP to vehicle audio and headset audio. Maybe I can help you with this.
Frequently toggling power to the radio uses more power than just leaving it on.
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
> Have you tried editing the BT profiles in your phone Settings/Bluetooth? On my phone for each Bluetooth paired device there is a check box each for phone and media audio if supported by that device. If you have that on yours you can uncheck the one you don't want in each profile.
>
Yes. That's the manual intervention I am talking about. The checkbox indicates whether or not it's connected. Clear the checkbox, it disconnects from that profile. That condition is not remembered the next time that device tries connect, however. The device tries to connect to all profiles for which it is compatible. As far as I can tell, there is nothing in settings on the phone to prevent a device from connecting to a specific profile.
Scott
On Jul 3, 2014 3:08 AM, "Brandon Horwath" wrote:
> Oh, there's lots of different factors involved though. Let me see if I can piece together a brief explanation...
>
Awesome! Are you an EE?
On Jul 2, 2014 11:59 PM, "Brandon Horwath" wrote:
>> I also tried Bluetooth Auto Connect by UniqTec.
> I've had great luck with this app.
>
> What is the task description your using?
>
> I've managed different connections using A2DP and HSP to vehicle audio and headset audio. Maybe I can help you with this.
I will probably take you up on this. I'll post my task description later, but in the meantime, I've heard from both developers. It turns out the plugin I am using called A2DP Connect uses code from a widget app of the same name, but a different developer. The widget has been updated to A2DP Connect2 due to changes in Android 4.3 and later, so it is reasonable to assume those same changes are needed to get the plugin working. The downside is that I don't know who the developer is. The upside is that the code is all released as open source. So, I might finally take the plunge into Android programming.
I also have a suggestion to turn on logging in Bluetooth Auto Connect, and use its shortcuts to manually trigger changes and then see what shows up in the log. I'll be trying this later this evening. After that, I'll post my task description if there is still a problem.
--
Nooooo... lol.
Like Dave said, it doesn't make any sense ;-) so when I noticed some issues that didn't make any sense I did a lot of research.
During the course of my reading I came across a lot of info that honestly didn't make any sense until I dived a lot deeper into the technology involved.
For example, a HV1 packet uses 10 bytes, a HV3 packet uses 30 bytes. You would think HV3 uses greater current since it handles greater amounts of data. But, factor in the time slots required (much like passing data through a star network) and the fact that HV1 uses nearly twice as much current becomes obvious. I should mention HV1 is the standard for probably 85% of BT media audio capable devices. But, this is because HV3 uses a compressed 30 byte packet at a set lower time slot interval opposed to HV1 that continuously sends and receives at every opportunity.
From what I determined, my unique set of factors regarding my BT device usage meant toggling power and monitoring contexts was less efficient.
I feel I should mention, this wouldn't be the case for most tasker users. Toggling power can be more efficient for most.
On Jul 3, 2014 12:09 PM, "Brad Minion" wrote:
>
> Perhaps it's a device dependent thing.
>
Could be. Does your selection choice remain the same between connection attempts and across reboots?
A +20dB class device has a current requirement four to six times a device rated at +0dB, and as much as eight times that of a -4dB rated device.
This comes into play when slaved, but the device needs to check those demands anyhow once powered on.
It doesn't look like Bluetooth Auto Connect is going to work. From its own logs, when I tried to disconnect the existing connection, it actually tried to connect instead. If I can't disconnect first, I can't connect what I really want to connect.
I thought A2DP Volume might work, but no such luck. The A2DP Connect2 widget, so far, is the only thing that works. I have the source code to these two, and to the earlier version of the widget and also the plugin that I wanted to use originally. I need to setup a development environment and see if I can fix the plugin. For now, I'll just need to make the changes manually.
Scott
I have found a small issue with mine where disconnecting from a lower priority device and connecting to a higher priority results in failure to the higher priority and constant retry resulting to connect to the lower priority. Which fails and repeats if unavailable, or connects undesirably to the lower priority.
To get around this I toggle my Bluetooth radio to reset connection priorities, and that's not quite 100% successful all the time but pretty close.
> I have found a small issue with mine where disconnecting from a lower priority device and connecting to a higher priority results in failure to the higher priority and constant retry resulting to connect to the lower priority. Which fails and repeats if unavailable, or connects undesirably to the lower priority.
>
It's quite possible this is what I encountered. I had to uninstall the app. It completely killed my battery in about two hours. I might be able to work this out if I spend enough time with it, but that doesn't seem practical. Because I do have a programming background, my interest is in fixing the plugin code, if I can get the development environment setup.
Since the one it connects to is lower priority after a disconnection and failure to connect to a higher priority, the app is intended to re-attempt the higher priority connection.
I say, 'intended' since that's why the developer wrote the app in the first place... his BT kept disconnecting from his car during driving and he wanted his device to automatically reconnect.
Toggling the BT radio after disconnecting from a low priority resets the connection priority assessed for the disconnection. So, in turn the app doesn't attempt to 're-connect' it just attempts the norms for priority connections; searches for highest priority and connects as available down the list.
I kinda wish this was the default method used by the app. It was implemented around BT 2.1 or 2.3 and most devices use BT 3.0 if not BT 4.0 now. The BT device random 'disconnect' issue problem is most likely no where near as common for most users.
Hope you get a solution implemented programmatically. I'm interested in any progress you make. Best of luck!
> Hope you get a solution implemented programmatically. I'm interested in any progress you make. Best of luck!
>
>
I found out today that this is on the to-do list for Secure Settings. If interested, it's possible to vote for the feature here: https://intangibleobject.uservoice.com/forums/216738-general
Thanks. Corey gave me the other link in his reply to my inquiry.
Scott
For anyone who previously was following this thread, I've been trying the most recent version of BT Autoconnect, and it seems to be working. I'm only using the Tasker plugin portion of it, and have disabled the options within the app itself. I still need to fine tune it, but it seems to be a probable solution.
Scott