FORUMS
Remove All Ads from XDA

Launching hotspot when paired with car bluetooth

3 posts
Thanks Meter: 4
 
By Liamesque66, Junior Member on 18th September 2017, 07:04 PM
Post Reply Email Thread
Is there a way to automatically launch my android's hotspot when I get into my car using Tasker (my android connects to the car using Bluetooth)?*
It's so my son's tablet can use the hotspot when we're on the move...
Thanks in advance
The Following User Says Thank You to Liamesque66 For This Useful Post: [ View ] Gift Liamesque66 Ad-Free
18th September 2017, 09:20 PM |#2  
ktmom's Avatar
Senior Member
Thanks Meter: 2,215
 
More
First, if you haven't already, make sure tethering works at all on your device.


Create a task with a single action "net" -> "wifi tether". Test the task to ensure the hotspot comes on correctly. If not, download Nougat Tasker Tethering Toggle plugin. Use that in theโ€‹ task (under plug-ins) to turn on tethering and again test.

Once the task works, create a profile with a context from "state" -> "net" of either "Bluetooth connected" or "Bluetooth near" as you want. In either case, specify at least the BT device name.
The Following 3 Users Say Thank You to ktmom For This Useful Post: [ View ] Gift ktmom Ad-Free
18th September 2017, 11:59 PM |#3  
OP Junior Member
Thanks Meter: 4
 
More
Quote:
Originally Posted by ktmom

Create a task with a single action "net" -> "wifi tether".

Once the task works, create a profile with a context from "state" -> "net" of either "Bluetooth connected" or "Bluetooth near" as you want. In either case, specify at least the BT device name.

Thanks ktmom! It worked!

Now, is there a way to turn off the hotspot and turn back on Wi-Fi when I leave the car?
I tried the invert version of the above context, tasking to turn off hotspot and turn on Wi-Fi. The tasks work but the invert context of Bluetooth near or Bluetooth connect doesn't trigger the tasks...
The Following User Says Thank You to Liamesque66 For This Useful Post: [ View ] Gift Liamesque66 Ad-Free
19th September 2017, 12:06 AM |#4  
ktmom's Avatar
Senior Member
Thanks Meter: 2,215
 
More
Add an exit task. Tap the profile name to expand it. There will be a green arrow pointing to the task you created. Long press on top of the task name. A menu will appear and at the top is: "add exit task" (or something similar ๐Ÿ˜‰ ).

Now add an action to turn off the hotspot. And a second action to turn on Wi-Fi.
The Following 3 Users Say Thank You to ktmom For This Useful Post: [ View ] Gift ktmom Ad-Free
19th September 2017, 08:11 AM |#5  
OP Junior Member
Thanks Meter: 4
 
More
Quote:
Originally Posted by ktmom

Add an exit task. Tap the profile name to expand it. There will be a green arrow pointing to the task you created. Long press on top of the task name. A menu will appear and at the top is: "add exit task" (or something similar ).

Now add an action to turn off the hotspot. And a second action to turn on Wi-Fi.

Perfect! Thanks a million ktmom! That works perfectly
The Following 2 Users Say Thank You to Liamesque66 For This Useful Post: [ View ] Gift Liamesque66 Ad-Free
22nd December 2017, 05:16 PM |#6  
Senior Member
Flag SLC
Thanks Meter: 67
 
Donate to Me
More
For anyone still trying to get this working, I can confirm it works on a rooted Nexus 5x running Nougat 7.1.2 and on my stock Pixel 2 XL running Oreo 8.1 using the method provided by @ktmom
The way I did it was as follows: (Below instructions used for my Pixel 2 XL) instructions used for the rooted Nexus 5x are similar except in step 3 you DO NEED to install app to system then restart the phone!)
Prereqs: Tasker & Nougat+ Tasker Tethering Control
1. New Profile -> State -> Net -> BT Connected
2. New Task -> Plugin -> Toggle Tethering -> Click Config Pencil -> Enable Tether -> Open setting buttons below -> Toggle Allow modify system settings
3. Go back, don't worry about clicking Install app to system and go back again, and back one more time -> Click the play button at the bottom left to test to see if it works. Prosper! (Don't turn tethering off just yet)
4. Go back to profiles, and long press on the Toggle Tethering Enable tether task and click Add Exit Task
5. New Task -> Plugin -> Toggle Tethering -> Click Config Pencil -> Click Disable Tether radio button -> go back 2 times -> click the play button at the bottom left to test to see if tethering has been turned off.
The Following 7 Users Say Thank You to surface13 For This Useful Post: [ View ] Gift surface13 Ad-Free
14th January 2018, 09:51 PM |#7  
Senior Member
Thanks Meter: 39
 
More
Quote:
Originally Posted by surface13

For anyone still trying to get this working, I can confirm it works on a rooted Nexus 5x running Nougat 7.1.2 and on my stock Pixel 2 XL running Oreo 8.1 using the method provided by @ktmom
The way I did it was as follows: (Below instructions used for my Pixel 2 XL) instructions used for the rooted Nexus 5x are similar except in step 3 you DO NEED to install app to system then restart the phone!)
Prereqs: Tasker & Nougat+ Tasker Tethering Control
1. New Profile -> State -> Net -> BT Connected
2. New Task -> Plugin -> Toggle Tethering -> Click Config Pencil -> Enable Tether -> Open setting buttons below -> Toggle Allow modify system settings
3. Go back, don't worry about clicking Install app to system and go back again, and back one more time -> Click the play button at the bottom left to test to see if it works. Prosper! (Don't turn tethering off just yet)
4. Go back to profiles, and long press on the Toggle Tethering Enable tether task and click Add Exit Task
5. New Task -> Plugin -> Toggle Tethering -> Click Config Pencil -> Click Disable Tether radio button -> go back 2 times -> click the play button at the bottom left to test to see if tethering has been turned off.

Not working on Verizon Note 8, not rooted @ Step #3.
The Following User Says Thank You to coolguy For This Useful Post: [ View ] Gift coolguy Ad-Free
14th January 2018, 10:17 PM |#8  
ktmom's Avatar
Senior Member
Thanks Meter: 2,215
 
More
Quote:
Originally Posted by coolguy

Not working on Verizon Note 8, not rooted @ Step #3.

Did you confirm that tethering works at all on your device?

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
14th January 2018, 10:28 PM |#9  
Senior Member
Thanks Meter: 39
 
More
Quote:
Originally Posted by ktmom

Did you confirm that tethering works at all on your device?

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Yep I use it manually already.. Trying to automate it now.


How come not able to share internet via BT when the phone is connected to wifi? See screenshot attached. . [Bt pairing](https://i.imgur.com/IU7YkX6.jpg)

I have a spare phone (no internet or service) in car for android auto and not able to tether using Bluetooth from that spare phone to my regular active phone. Only way is wifi hot spot but that will chew up lot of battery right? So hoping when I get in car and my phone connects to car bt, it should then allow my spare phone to connect to my main phone BT to get Internet so android auto music and all works through it. [Bt pairing](https://i.imgur.com/IU7YkX6.jpg)
14th January 2018, 11:16 PM |#10  
ktmom's Avatar
Senior Member
Thanks Meter: 2,215
 
More
Quote:
Originally Posted by coolguy

Yep I use it manually already.. Trying to automate it now.


How come not able to share internet via BT when the phone is connected to wifi? See screenshot attached. . [Bt pairing](https://i.imgur.com/IU7YkX6.jpg)

I have a spare phone (no internet or service) in car for android auto and not able to tether using Bluetooth from that spare phone to my regular active phone. Only way is wifi hot spot but that will chew up lot of battery right? So hoping when I get in car and my phone connects to car bt, it should then allow my spare phone to connect to my main phone BT to get Internet so android auto music and all works through it. [Bt pairing](https://i.imgur.com/IU7YkX6.jpg)

Bluetooth internet sharing works fine on my device (not Samsung) with the wifi connected. That is a limitation in your ROM.

I use wifi sharing on all of my son's devices in the car. I don't usually use BT, it disconnects erratically.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
16th January 2018, 02:58 AM |#11  
Senior Member
Flag SLC
Thanks Meter: 67
 
Donate to Me
More
Quote:
Originally Posted by coolguy

Not working on Verizon Note 8, not rooted @ Step #3.

Just to make sure, you did install Nougat+ Tasker Tethering Control, right?
Also, did you restart the phone for good measure after completing ALL steps even if it wasn't working at the end of it?
Did you try going through the steps a few more times to make sure nothing was missed?

Again, I can only confirm it worked for me on my STOCK Pixel 2 XL on Oreo 8.1, and my ROOTED Nexus 5x on Nougat 7.1.2.
Also tried and have it working on my Essential PH-1 on 7.1.1 rooted and stock. Also on Oreo 8.0 Beta 2 rooted and stock using the exact steps mentioned.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes