sending trigger via bluetooth to other

osmandeha

New member
hi. can I send trigger via bluetooth to another phone by macrodroid? if yes; how? (both phones have macrodroid pro)
 

mapriex

Active member
you can do a webhook if you get a bluetooth connection. and you can do a webhook if your bluetooth connection disconnects.

what exactly are you trying to achieve? sending data without pressing any buttons?
 

osmandeha

New member
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.
 

Qarboz

Well-known member
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.
 

osmandeha

New member
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.
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.
 

mapriex

Active member
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?
 

osmandeha

New member
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?
Unfortunately, our mobile service providers do not support multiple sims for the same number.
carlinkit startup time is 5-10 seconds when the car starts. I can say that it takes the same time as cable connection. However, when I unlock the doors before my car starts, the Android auto/carplay connection starts to activate. I don't know how it is other vehicles.
The disadvantages of carlinkit are a slight delay on the touch vehicle screen, inability to play video on the vehicle screen, inability to mirror the screen, etc. I can do these on a phone that is rooted or does not require security. It is not appropriate for me to set my primary phone for these tasks in terms of security and my usage habits.

My primary phone is Galaxy A54. When I wanted to trigger airplane mode with the beacon signal, it could not do this if the screen was off for more than a minute. Lastly, I added an action to turn on the screen before turning on airplane mode with the beacon trigger. This way, I can now switch to airplane mode when entering the car. However, it still cannot follow the signal for a long time and trigger it correctly when the signal is cut off. As an error, within a few minutes, even though the beacon signal was present, it triggers exit from airplane mode as if it was cut off.
 

Qarboz

Well-known member
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.
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
 

osmandeha

New member
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
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.
 

mapriex

Active member
carlinkit startup time is 5-10 seconds
my carlinkit is usable in around 88 seconds, if car starts. when its in sleeping mode it needs around 33 seconds.

i am using carlinkit also for wireless carplay, but thats not smart.

i am thinking with a second mobile phone with a big integrated battery and a price about 300 euro that i can use carplay instantly when carplay is loaded in the system. with the integrated battery it shouldnt be turned off anytime.

i am using a multisim, but there are some europeanSIMs that are seperated and can be used independantly.
 
Top