Bluetooth zeitversetzt aktivieren im Auto

Post your questions and help other users.

Moderator: Martin

Post Reply
polopauli
Posts: 4
Joined: 26 Mar 2018 10:20

Bluetooth zeitversetzt aktivieren im Auto

Post by polopauli » 27 Mar 2018 07:54

Liebe Community,

ich habe erst seit Kurzem Automagic installiert und benötige von euch Hilfe zu folgendem Problem:

Ich habe im Auto ein 2. Smartphone platziert, welches ich für die Sync der Fahrzeuginfos über Bluetooth verwende (Mercedes Me Adapter).
Es soll aber mein 1. Smartphone also das Hauptsmartphone sich per Bluetooth Car Autopairing verbinden zur Telefonie + Multimedia.
Daher müsste sich mein 2. Smartphone etwas zeitversetzt per Bluetooth über den Mercedes Me Adapter einloggen.
Leider kann ich das über Mercedes Comand nicht einrichten, dass sich immer das definierte Hauptsmartphone immer verbindet.
Wie stelle ich in Automagic ein, dass Bluetooth sich bei meinem 2. Smartphone etwas zeitversetzt (10-20 Sekunden würden ausreichen) einschaltet und wenn das Auto abgeschlossen wird dann Bluetooth wieder deaktiviert wird? Das 2. Smarthone ist per USB Ladekabel am Auto angeschlossen.
Folgendes habe ich versucht einzurichten:
Screenshot_20180327-094644.png
Screenshot_20180327-094644.png (81.04 KiB) Viewed 3516 times
Danke vorab für eure Unterstützung und viele Grüße.

User avatar
Desmanto
Posts: 1936
Joined: 21 Jul 2017 17:50

Re: Bluetooth zeitversetzt aktivieren im Auto

Post by Desmanto » 27 Mar 2018 14:58

I only understand vaguely from the google translate. But it seems you want secondary phone to connect to your car's bluetooth. Sync all the data and disconnect. Then the main phone connect for the rest of the time. The problem is your main phone steal the connection from the first time, thus the secondary phone can't connect anymore.

If that so, you can use disconnect with timer in main phone. It seems your main phone bluetooth is always on. So you can add a trigger at the main phone when bluetooth is connected to your car, then immediately disconnect from it and wait for let say for 30 seconds.

Your secondary phone probably started by the starting the car. It will charge the phone thus provide the event to trigger Power Connected. Use sleep 5 seconds and try to connect to your car's bluetooth. Check if Bluetooth is now connected, if not, then loopback to sleep 5 seconds dan retry again until it is connected. If it is connected already, give a sound or any notification to let you know. Use sleep 10 seconds (or enough time) to let it sleep while waiting it to sync all the data. After finished, disconnect and turn off the secondary phone bluetooth.

At the main phone, you can also use the same loop after the 30 seconds, to try to connect to the car's bluetooth. If failed, sleep 5 seconds and repeat again until connected. Just remember to set the flow execution policy to "skip". After connected, you can continue your flow, let's say play a song or read an audiobook.

This flow will make your main phone, everytime connect to the car's bluetooth, will immediately disconnect, sleep 30 seconds before reconnect back. That's the time given to the secondary phone to its job.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190714, Pie 9.0, Rooted.

polopauli
Posts: 4
Joined: 26 Mar 2018 10:20

Re: Bluetooth zeitversetzt aktivieren im Auto

Post by polopauli » 03 Apr 2018 13:00

Hi Desmanto,
thats correct.
Thanks a lot !
I also tried your described solution but its not working...
Is it possible sending me a screenshot regarding the settings?
Thanks!

User avatar
Desmanto
Posts: 1936
Joined: 21 Jul 2017 17:50

Re: Bluetooth zeitversetzt aktivieren im Auto

Post by Desmanto » 03 Apr 2018 16:51

It depends on your bluetooth device, so you have to test it.
Bluetooth delayer.png
Bluetooth delayer.png (109.24 KiB) Viewed 3417 times
The main flow for you main phone is at the left. I got 2 disconnect, as I test it with my bluetooth headset, which is connected to phone and media (Headset and A2DP). Sleep for 30 seconds (waiting for second phone). Try to connect back to the headset, sleep for 5 seconds, check if connected. If connected, go to the main action (I just put Debug Dialog). If not connected, try to connect again.

The flow at the secondary, use the power connected trigger. You probably need to add sleep for several seconds, waiting the car's bluetooth to be ready. The keep the same looping as shown at right. True go to the sync data or anything your secondary phone need to do. End it with disconnect.

As you can see I have two connections from Connect to sleep 5s. Because when the bluetooth device is not ready, sometimes it produce exception error. So I catch it using the same sleep, simply change the connection to exception and add the same one.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190714, Pie 9.0, Rooted.

polopauli
Posts: 4
Joined: 26 Mar 2018 10:20

Re: Bluetooth zeitversetzt aktivieren im Auto

Post by polopauli » 05 Apr 2018 15:51

Hi Desmonto,
thanks a lot.
How can I set the false and exception options ?
Attachments
05-04-_2018_17-48-38.png
05-04-_2018_17-48-38.png (85.01 KiB) Viewed 3376 times

User avatar
Desmanto
Posts: 1936
Joined: 21 Jul 2017 17:50

Re: Bluetooth zeitversetzt aktivieren im Auto

Post by Desmanto » 05 Apr 2018 16:44

Create it first and tap the connection to change the connection type.

Here is the step, picture is read left to right, top to bottom.
Exception False.png
Exception False.png (409.55 KiB) Viewed 3374 times
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190714, Pie 9.0, Rooted.

polopauli
Posts: 4
Joined: 26 Mar 2018 10:20

Re: Bluetooth zeitversetzt aktivieren im Auto

Post by polopauli » 05 Apr 2018 19:31

Fantastic! Thanks a lot!

Post Reply