You can use the beacon as a trigger. When it is visible turn on airplane mode one smartphone and turn it off in the other, vice versa when it is not visible.Thank you for your answer
What I want to do is this: when a macro is triggered, it triggers a macro via bluetooth on my other device without pressing any key. (must use bluetooth cause both phones can not connect cell and mobile data at same time.)
Here's the detailed situation:
I'm trying to set up an android phone that offers more features and usability rather than a wireless android auto device like carlinkit.
I have two phones, one always in the car and one on me. Since twin SIM cards are installed, both cannot access the network at the same time. (two identical sim cards) While one is active, the other must be in airplane mode or off.
For the security of banking and crypto wallets, I do not want to use my primary phone with Android Auto. Because many features that are not allowed in Android Auto can only be used with rooted or non-Play Store applications (such as watching videos). I can do these on my phone which is in the car. Also, connecting and removing cables is not comfortable.
I first purchased carlinkit 5.0 to solve the cable issue but I'm trying to set up my old android phone instead for more features and usability. As a solution, I leave my old phone connected to the car at all times for navigation, calls and music.
What I need to set is that when I get in the car, my primary phone goes to airplane mode and my secondary phone is active. When I get out of the car, they return to their previous state.
I'm looking for a way to do this automatically instead of manually adjusting it every time I get in and out of the car.
(two phones have macrodroid pro. I already have bluetooth beacon device that turns on/off with my car. have carlinkit5.0 too)
If you have any other suggestions, I will gladly try them. Thank you again.
You can use the beacon as a trigger. When it is visible turn on airplane mode one smartphone and turn it off in the other, vice versa when it is not visible.
I tried this. Since the phone in the vehicle is connected to the vehicle via cable, it stays awake while driving and runs tasks without any problems. Although the phone in my pocket should remain in airplane mode throughout the ride, it stops monitoring the beacon signal about a minute after the screen turns off, and Macrodroid perceives the signal as lost and takes the phone out of airplane mode. For this reason, I want to trigger the phone in my pocket with the phone in the vehicle.You can use the beacon as a trigger. When it is visible turn on airplane mode one smartphone and turn it off in the other, vice versa when it is not visible.
Unfortunately, our mobile service providers do not support multiple sims for the same number.bluetooth protocols cannot be accessed that easy, so for you its probably not the right way.
i suggest you to buy a multi-sim instead of a twin-sim.
btw how long is your uptime to carplay, boots it automatically in the carplay-screen? is it far faster than the carlinkit?
what is the dissadvantage between carlinkit and a mobile phone?
Thinking about it more, turning on airplane mode also turns off the Bluetooth.I tried this. Since the phone in the vehicle is connected to the vehicle via cable, it stays awake while driving and runs tasks without any problems. Although the phone in my pocket should remain in airplane mode throughout the ride, it stops monitoring the beacon signal about a minute after the screen turns off, and Macrodroid perceives the signal as lost and takes the phone out of airplane mode. For this reason, I want to trigger the phone in my pocket with the phone in the vehicle.
thanks. I set airplane mode not to affect bluetooth and wifi via adb. (here is code: settings put global airplane_mode_radios cell,nfc,wimax). I will try the macro and write the result.Thinking about it more, turning on airplane mode also turns off the Bluetooth.
Try this macro
Triggers
T1 Beacon in range
T2 Beacon out of range
Actions
A1 If trigger [T1]
A2 set variable Pause = true
A3 airplane mode on
A4 wait 3 seconds
A5 Bluetooth on
A6 wait 5 seconds
A7 set variable Pause = false
A8 else
A9 airplane mode off
A10 endif
Constraints
C1 variable Pause = false
my carlinkit is usable in around 88 seconds, if car starts. when its in sleeping mode it needs around 33 seconds.carlinkit startup time is 5-10 seconds