[Tasker] Bluetooth activation with USB Power trigger - Android General

Hope this is the right location for this question.
Using Tasker 4.8, LG G3 D851, 5.0.1 OS
I want to turn on the Bluetooth when I get in my car and turn if off when I exit my car. I only use Bluetooth for phone communication in the car. I have searched and found many way to turn off BT but not to turn it on. So I figured I needed a trigger to activate BT.
Looking around for a trigger I realized that I always plug in my USB charging cable while in the car. So I wrote a small profile to turn on BT when power is available and turn off BT when power is lost. Using my PC as a test bed it worked.
Off to the car to test and it did not work. Back into the house for the wall charger and it did not work. Back to the PC and it worked.
I changed the profile from Power USB to Power Any and it worked on all three sources. However, in the car and the wall charger it sometimes fails to activate the BT. But I know it works because I have seen it work.
Question... Is there something I am missing in the profile that will allow consistent results?
Here is my profile
Name: Power Any
Source: Power Any
1st Task: BT On
a: Bluetooth Set On
2nd Task: BT Off
a: Bluetooth Set Off
That's it. Like I said it works. Turns on my BT when I plug in and turns if off when I unplug. However, it is not consistent except when using the PC USB port.
Thanks for any help and Mods, if this is in the wrong place, my apologies.
Brian D

Well, I believe I solved the problem. It was Tasker that was causing the resets. Could have been the profile as well. Either way, the solution was to reboot my phone after making changes to Tasker Profile. Seems as though Tasker does not clear out its buffers as I thought it would.
Ended up making a new profile that now works 100% to initiate Bluetooth when external power is applied to the phone. It will also turn off Bluetooth 1 min. after I remove external power.

Hi Brian, I have a similar situation and was wondering if your profile is still working.

Related

REQ: freeware Bluetooth-toggle at carkit power

I've seen the question (and the answers) several times here; But not for freeware versions.
The request is quite simple: Automatically turn on the Bluetooth when HD2 is placed in active carholder, so it recieves power. And BT off again, after removing from power.
Several paid programs can do it with profiles. But I don't need all the profiles, just one nifty little app to do the BT-toggle-at-power-toggle-trick. Bluepower should do the trick, but that doesn't work on HD2 sadly.
I allready placed a shortcut at the todayscreen, but it can be done automatically, so it should be done automatically. (you get the idea? It CAN be done, so it HAS to be done... )
Anyhow: does anyone know of a freeware app that does the trick, turning on BT at power-connected, and off again at power-disconnected?
Thanks in advance!
looking for this too!
fantastic idea, i see no reason for bluetooth to be disabled when connected to a power supply.if anyone can do it xda can!
google this
kixass bluepower
It worked for me , while I still had the Touch Diamond and Touch HD
Haven't tried it on HD2, but, hopefully it will work
I allready found kixass bluepower, but another thread here on XDA says it doesn't work on HD2 due to different Bluetooth methods:
http://xda-developers.mobi/viewPost.php?id=599980&PHPSESSID=b4f4cf54198fe7e540312d95fbb088aa
@SMS92: it's the other way around: connect to power = BT on, disconnect = BT off. (Hence power comes from the active carholder, but the audio-signal is connected via BT)
I'm not sure if i understand you correctly but don't you mean ?
Settings > All settings > System > Car kit mode > "Auto connect when in car kit mode" ??
greetz,
Plaspop
No, for that the bluetooth allready has to be on (Or am I mistaken? EDIT: YES!!!! I'm mistaken!!)
I'd like the BT to be off all day, except when I'm in the car. For that's the only place where I use BT. After getting out of the car the BT should be switched off again.
In order to do this automatically the phone needs to know whether I'm in the car. The easiest trigger for that is the power-connection, as I place the phone in an active phone holder (Brodit). This action could then trigger BT to switch on automatically, and removing the phone from the holder (and therefore from the power) should switch BT off again.
(The BT is used to connect to the built-in carkit in the Mazda 6), Power to the phone is supplied via the active carholder, which ONLY gives power, no audio-connection.
EDIT!!! OOOOW WAIT!!!!! YOU ARE RIGHT!!!!!!
WOW!!!! So simple.....
(Settings > All settings > System > Car kit mode > "Auto connect when in car kit mode")
So no special app needed, no profiles, no reg-changes, just a mere setting.
I LOVE HTC! Soooo much clever things in this HD2!
Just tested: BT off, connect to carpower: BT switched on automatically. Remove from power: BT switches off again. So this works!!!
(I didn't have time to test actually connecting to the car in this modus, but normally it works, so I assume this last bit works too.
You're my hero! (ok, that's a bit exegerated, but you get the idea) THANKS!
EDIT: see post below for last status.... sh*t.....
Ehr...... Sh*t.... My Brodit holder doesn't connect the right pins to trigger the carmode, and therefore the BT doesn't automatically switch on.
My desktop loader uses a converter cable, and that one DOES trigger the carmode
So.... sorry, no solution yet....
Found this in another thread. Could this help you ?
http://forum.xda-developers.com/showpost.php?p=3367344
Thanks, but no, that doesnt work on the HD2.
Has something to do with changed Bluetooth system in the HTC models after the touch?
A similar request thread has been started here: http://forum.xda-developers.com/showthread.php?t=667901&goto=newpost
Im following it too, and hope it will lead to development of a cab for this much wanted function.
I don't know how the carmode works, but issn't it possible to edit the registry to activate the carmode when the phone is on any kind of charger, instead of when some pin is connected? Then you would combine two functions witch are already on the phone.
Brodit activation of car kit mode
Has anyone succeeded in getting the Brodit car holder to automatically activate NaviPanel?? I see in other posts that if pin 4 of the micro USB is grounded it auto switches NaviPanel - has anyone else tried this yet?

Automatically connecting to bluetooth receiver?

Is anyone able to automatically connect to a bluetooth device from your captivate? I am using a sony bluetooth receiver a2dp profile so it's basically functioning like a bluetooth headset.
Pairing works. Manually connecting works. But it would be great if the captivate automatically connected to the bluetooth receiver as soon as i turn on bluetooth. It takes almost five clicks to manually connect but only one to turn on bluetooth.
Sent from my SAMSUNG-SGH-I897 using XDA App
I have a similar problem in that the phone will sometimes "forget" the bluetooth devices that it has been paired with. I then have to do the pairing all over again.
I'm having the same problem - if I turn the phone off & back on again, it won't connect to my car. The bluetooth menu still shows that it's paired, but it won't connect (even if I try to manually connect). The only way to get it to connect again is to turn bluetooth off & back on - then it connects automatically.
Mine connects right away.
I think it is relate to not being able to set the bluetooth to always visable. My fuze had the same problem untill I put the energy rom on it.
I'm having the same trouble. I have to click on the Connect option which is buried in the Bluetooth menu. Annoying.
Are you using a task manager or some sort of helper to keep battery usage low? I found I was having a blue tooth problem until I saw a OPP service pop up on my task manager. Every time I killed apps I had blue tooth problems until I set this service to be ignored and left alone. Now even after I shut off the phone and turn it back on, I quickly connect to my blue tooth headset.
I'm just a noob here and I am thankful to everyone who posts who have helped me so i thought I's throw this out as something to check on.

[Q] Tasker Bluetooth help

Hello! I did a search, and I can't seem to find exactly what I'm looking for, so I thought I would try asking. I apologize if I just missed a post somewhere already addressing this!
I have a profile to turn my Bluetooth on/off based on whether or not it's plugged in. Specifically, it only activates when it has AC power (not USB) because I only really use that type of connection in the car, where I want my bluetooth to turn on automatically so it connects to my car's bluetooth system as soon as I plug it in. That part works perfectly. The problem I'm having is that my phone charger doesn't sit tight in the outlet in the car, so a good bump will jar it just enough to turn it off. Which, in turn, cuts off my bluetooth and creates havic if I'm on a call and driving at the same time. I'd really like to be able to add some kind of exception, that if I'm on a current call, bluetooth won't shut off until the call ends. If there isn't a call, I'd like it to continue to shut off as soon as it's unplugged. This way, if my power cord gets bumped, it won't effect the current call, at least. I've searched through profiles, here and on Google, and while I find a lot of on/off profiles, I haven't been able to find or figure out how to make one with this kind of specific exception. Any ideas?
Thanks for any help you guys can give me!
see http://tasker.wikidot.com/bluetooth-auto-turn-off
This profile should only turn BT off, if there is no current BT connection.
Note: I'm trying to implement the same functionality as you, and I used the script mentioned above. For me it isn't working perfectly, but that is maybe because of some other tasker profiles.

[Q] Does anyone know how to make tasker auto toggle bluetooth?

I only use bluetooth in the car. I use it for calls and music. I have 2 cars that I need it to work for. I would imagine bluetooth wastes battery while on and not connected. I have searched for solutions. Most apps that do this in the market get bad reviews. I found a tasker profile that will turn off bluetooth after 3 minutes if it is not connected. However, when I get back in the car, I would have to remember to toggle it back on. Thanks in advance.
well you need a specific trigger that tells tasker to turn on BT.
for example, if you plug your phone into a charger every time youre in the car, tasker can detect that its charging and turn on BT while in a charging STATE.
Or, since you are most likely not connected to WiFi while in the car, set tasker to enable BT while NOT connected to Wifi.
I guess you could go so far as a location based trigger... but that uses GPS which in turn uses more battery....
Tasker is a powerful and flexible app.. I'm sure you can figure something out.
joshpdavis80 said:
I only use bluetooth in the car. I use it for calls and music. I have 2 cars that I need it to work for. I would imagine bluetooth wastes battery while on and not connected. I have searched for solutions. Most apps that do this in the market get bad reviews. I found a tasker profile that will turn off bluetooth after 3 minutes if it is not connected. However, when I get back in the car, I would have to remember to toggle it back on. Thanks in advance.
Click to expand...
Click to collapse
I achieve this with the tasker plug-in AutoLocation. I have a GeoFence for my house, when I leave it triggers the Activity monitor. When the monitor detects driving Bluetooth turns on. I usually have bluetooth within 30 seconds of leaving.
Does this consume battery. Yes. In my case the hit has been very minimal.
You could also use NFC tags. I considered that but use AutoLocation for other tasks so it made sense for me.
You could use an NFC tag. That's what i used to to. Now a days I just leave BT on all the time and let my car autoconnect to my phone and have that trigger all my car stuff.
joshpdavis80 said:
I only use bluetooth in the car. I use it for calls and music. I have 2 cars that I need it to work for. I would imagine bluetooth wastes battery while on and not connected. I have searched for solutions. Most apps that do this in the market get bad reviews. I found a tasker profile that will turn off bluetooth after 3 minutes if it is not connected. However, when I get back in the car, I would have to remember to toggle it back on. Thanks in advance.
Click to expand...
Click to collapse
There is a tasker plugin in Play Store called AutoActivity, it detects when your in car, bike or on foot,

Bluetooth device to only let my phone know I'm in the car?

I want to find a way for my phone to automatically know when I turn on or off my car while I'm in it. I will use tasker to turn on and off my mobile hotspot when I'm in the car, so my echo dot ,connected to aux-in, can play music.
tl;dnr: looking for a usb-powered-only bluetooth device that can connect to phones and doesn't involve the aux-in of my car audio. eg: usb-powered bluetooth speaker/speakerphone/input-device.
Click to expand...
Click to collapse
My car doesn't have bluetooth, so I have been looking for some sort of bluetooth device that will turn on and off with the car.
I don't want to use any type of bluetooth receiver since:
I'm already using my aux-in for my echo.
FM transmitter is also out since I'm switched to aux-in.
If I have the bluetooth receiver audio go nowhere, then I won't be able to hear my phone's GPS navigation.
I thought about bluetooth hands-free calling speakerphone devices, but the ones I've seen all use batteries, meaning it'll not turn off immediately when I turn off my car and will also probably need me to manually turn them on when I start my car. Anyone seen a batteryless version?
Are there any other bluetooth devices that run purely off usb power or off the car charger port?
I just tried the nonda zua smart charger that is suppose to connect to your phone when you turn it on. Only problem is that despite it showing up in the bluetooth device list, it doesn't seem to be a device that you can normally connect to. You have to install their app and the app somehow connects to it, even though the phone's bluetooth icon shows no active connections. Maybe the phone will only show a connection to devices it has supported profiles for. I can't even get tasker or android's smart lock to sense that the device is near.
Anything else out there? Is there a bluetooth input device that runs purely on usb? I have a selfie stick with a usb component that charges over usb and has an on/off switch, and I'm tempted to test if I can power it with the internal battery and have it turn on automatically when power is supplied. But I don't want to break my only selfie stick yet.
I suppose I can pair some usb-powered speakers to a bluetooth receiver so that I hear my phone over the speakers. Any recommendations? Of course, the speakers must not have batteries.
Found this:
It's actually a bluetooth speaker that doesn't have a battery. No idea if it will auto-pair when usb power is on or if the lamp can be turned off.
Can't you use an NFC tag on your car mount? When you mount your phone it hits the NFC tag and since you use Tasker you can set it to do what you want when you touch the NFC tag.
Sent from my Pixel XL using Tapatalk
biggiestuff said:
Can't you use an NFC tag on your car mount? When you mount your phone it hits the NFC tag and since you use Tasker you can set it to do what you want when you touch the NFC tag.
Click to expand...
Click to collapse
I may not always mount my phone and it may just stay in my pocket. And I would need to remember to hit the NFC again when I leave my car to 'automatically' turn off the hotspot. I also sometimes forget to take my phone with me and was going to have the phone alert me when the car is off.
badbob001 said:
I may not always mount my phone and it may just stay in my pocket. And I would need to remember to hit the NFC again when I leave my car to 'automatically' turn off the hotspot. I also sometimes forget to take my phone with me and was going to have the phone alert me when the car is off.
Click to expand...
Click to collapse
How about an obdii car adapter? No audio and you get vehicle stats
Sent from my Pixel 2 XL using Tapatalk
biggiestuff said:
How about an obdii car adapter? No audio and you get vehicle stats
Click to expand...
Click to collapse
I'll look into that. I need it automatically connect to my phone without the need to install an app. I don't want to face the same issue as with the nonda car charger, which requires the app to be running constantly to connect and it somehow can connect without android showing a bluetooth connection to it.
I've decided against obdii adapter because I am unsure if android has a built-in profile to automatically connect to it without the aid of a third party app to constantly monitor bluetooth. And they are rather expensive, especially for the ones that are smart enough to go to sleep and not constantly be powered on and drain the car's battery.
There are some speakerphone adapters that don't use batteries so I'm going to try one of them and connect them to usb-powered speakers. Going from a Nexus 6P to a Pixel XL, I'm finding the speakers are now rather weak and adding external speakers will help with GPS navigation.
It seems to me the easiest thing to do would be to upgrade your car stereo. By the time you're done with all of these workarounds, it might be cheaper, too.
Either that or ditch the echo dot and use the phone to replace it's functionality. I'd go to an auto audio shop and see if they could install an ignition switch controlled power source running a proper Bluetooth to aux adapter and compare that to the cost of a new head unit.
badbob001 said:
I want to find a way for my phone to automatically know when I turn on or off my car while I'm in it. I will use tasker to turn on and off my mobile hotspot when I'm in the car, so my echo dot ,connected to aux-in, can play music.
My car doesn't have bluetooth, so I have been looking for some sort of bluetooth device that will turn on and off with the car.
I don't want to use any type of bluetooth receiver since:
I'm already using my aux-in for my echo.
FM transmitter is also out since I'm switched to aux-in.
If I have the bluetooth receiver audio go nowhere, then I won't be able to hear my phone's GPS navigation.
I thought about bluetooth hands-free calling speakerphone devices, but the ones I've seen all use batteries, meaning it'll not turn off immediately when I turn off my car and will also probably need me to manually turn them on when I start my car. Anyone seen a batteryless version?
Are there any other bluetooth devices that run purely off usb power or off the car charger port?
I just tried the nonda zua smart charger that is suppose to connect to your phone when you turn it on. Only problem is that despite it showing up in the bluetooth device list, it doesn't seem to be a device that you can normally connect to. You have to install their app and the app somehow connects to it, even though the phone's bluetooth icon shows no active connections. Maybe the phone will only show a connection to devices it has supported profiles for. I can't even get tasker or android's smart lock to sense that the device is near.
Anything else out there? Is there a bluetooth input device that runs purely on usb? I have a selfie stick with a usb component that charges over usb and has an on/off switch, and I'm tempted to test if I can power it with the internal battery and have it turn on automatically when power is supplied. But I don't want to break my only selfie stick yet.
I suppose I can pair some usb-powered speakers to a bluetooth receiver so that I hear my phone over the speakers. Any recommendations? Of course, the speakers must not have batteries.
Click to expand...
Click to collapse
I used to use a Bluetooth ODB2 adapter (and Tasker) for this exact purpose.
Sent from my Pixel XL using Tapatalk
Weudel said:
It seems to me the easiest thing to do would be to upgrade your car stereo. By the time you're done with all of these workarounds, it might be cheaper, too.
Click to expand...
Click to collapse
W
This guy has the right idea, get an android auto head unit.
Weudel said:
It seems to me the easiest thing to do would be to upgrade your car stereo. By the time you're done with all of these workarounds, it might be cheaper, too.
Click to expand...
Click to collapse
Do they make car stereo units that can mix multiple sources like aux-in and bluetooth?
I've had a cheap ODBII scanner in multiple cars for years and never had a battery drain issue. I honestly can't remember if my phone auto connects to it or not, last time I tried to read from it I couldn't because the latest Android beta update broke the connection.
badbob001 said:
Do they make car stereo units that can mix multiple sources like aux-in and bluetooth?
Click to expand...
Click to collapse
You're missing the point, android auto will do your music and satnav prompts over usb. No need for the echo dot at all.
Rockford fosgate "rfbtaux" cheap reliable and will do what you need
You can use an OBDII adapter for detection
https://play.google.com/store/apps/details?id=com.kanetik.bluetooth_profile_condition&hl=en
You can set the condition to activate your task when its near the adapter
https://play.google.com/store/apps/details?id=com.kanetik.movement_detection&hl=en
I just learned they also have this app that should bypass the need for the hardware.
These apps are not free, $1.49 each. I can vouch for the bluetooth detection app, might try the movement one.
I bought this for my car and it turns on when there is no key in the ignition and off automatically when the key is pulled out.
https://www.amazon.com/gp/product/B009OBCAW2/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1

Categories

Resources