WLAN presence recognized even when WLAN off?

Lupus52

Member
Hello,

since some weeks I have this problem which I had many years before not.

My CAR-macro works like this:

Ignition on -> dashcam starts and delivers a WLAN-access.

My macro is triggered when this special WLAN is available (not connected)

The macro switches off WLAN in the phone and activates the hotspot-function in the phone to serve internet via WLAN for my Android car-radio.

Then the macro sets some car-specific things

This works since some years.

Since some weeks, the macro @PAuto) gets triggered in different intervals by recognizing the WLAN of the dashcam. But WLAN is switched off in the phone! Only Hotspot is on.

From my Systemprotocol: (First event at bottom!)

Code:
02-05-22 09:56:13 - Makro ausführen (@P-Auto)
02-05-22 09:56:13 - Bluetooth einschalten

02-05-22 09:56:12 - Text ansagen (didipai)
02-05-22 09:56:12 - Invoking Macro: Auto Dashcam
02-05-22 09:56:12 - SSID in Reichweite ([vYou_DDPai_M4, vYou_DDPai_M4, vYou_DDPai_M4])
                    ^^^^^^^^^^^^^^^^^^ ?????????????????

02-05-22 08:46:49 - Makro ausführen (@P-Auto)
02-05-22 08:46:49 - Bluetooth einschalten

02-05-22 08:46:49 - Text ansagen (didipai)
02-05-22 08:46:49 - Invoking Macro: Auto Dashcam
02-05-22 08:46:49 - SSID in Reichweite ([vYou_DDPai_M4, vYou_DDPai_M4, vYou_DDPai_M4])
                    ^^^^^^^^^^^^^^^^^^ ?????????????????

02-05-22 08:42:34 - Bluetooth einschalten
02-05-22 08:42:34 - HotSpot an
                    ^^^^^^^^^^
02-05-22 08:42:29 - Warte 5 Sekunden
02-05-22 08:42:29 - Sending request to Helper File to disable wifi
02-05-22 08:42:29 - WLAN ausschalten
                    ^^^^^^^^^^^^^^^^
02-05-22 08:42:29 - Makro ausführen (@P-Auto)
02-05-22 08:42:29 - Bluetooth einschalten

02-05-22 08:42:29 - Text ansagen (didipai)
02-05-22 08:42:29 - Invoking Macro: Auto Dashcam
02-05-22 08:42:29 - SSID in Reichweite ([vYou_DDPai_M4, vYou_DDPai_M4, vYou_DDPai_M4])

Ignition on - > Dashcam sends WLAN -> macro is triggered

Opening the car
 

MacroDroidDev

Administrator
Staff member
Are you able to use a wifi scanning app or similar to be 100% certain that this SSID is not somehow being broadcast when it's off. This trigger has not changed in years, so I'd be surprised if there is a bug related to it (but nothing is impossible).
 

Lupus52

Member
Are you able to use a wifi scanning app or similar to be 100% certain that this SSID is not somehow being broadcast when it's off. This trigger has not changed in years, so I'd be surprised if there is a bug related to it (but nothing is impossible).
Sorry - I don't understand it fully (I am german). The trigger comes from the presence of the WLAN of my dashcam, which is recognized even in hotspot-mode of the smartphone. When I switch the dashcam off, the trigger does never appear. I had this bug not in the last 3 or 4 years I use this macro. But I had some updates of the Androidsystem in the past. It looks like the phone is "listening" to WLAN even in hotspot-mode.
 

MacroDroidDev

Administrator
Staff member
If you want to avoid the trigger firing when hotspot is on simply add a wifi hotspot constraint to prevent it firing when it's enabled.
 

Lupus52

Member
If you want to avoid the trigger firing when hotspot is on simply add a wifi hotspot constraint to prevent it firing when it's enabled.
Hi,

sorry - I don't understand. Why, where and how should I add an 2. WIFI-hotspot constraint? How can something prevent "it" firing if "it" is enabled?

I repeat in simple steps:

Macro #1 is triggered when dashcam's WLAN is recognized after ignition on. This macro tells me via voice with a welcome message.

Then this macro #1 start #2 starts and this switches WLAN off and HOTSPOT on and defines some other things for car.

Until now all ok. Since years.

But since some weeks (Android-Update?) the 1. Macro gets triggered in intervals of some Minutes. Why? WLAN in the smartphone is switched off by Macro #2. Therefore, the phone should not see any WLANs. It is a hotspot.
!
But Macro #1 gets triggered and recognizes the dashcams WLAN nearby. This did never happen until before some weeks.

Ok - I now prevent this stupid behaviour via a variable. Set after first start of the macro #2. And preventing triggerings of macro #1.
But I don't like such "workarounds" with flag-variables. This variable must be reset extra after leaving the car.
 

Jacob L

Moderator (Lawsonator)
Turn off WiFi scan always available in the system setting action> global> then choose from the drop down
 

Lupus52

Member
Turn off WiFi scan always available in the system setting action> global> then choose from the drop down
Hi,

thank you. But I don't know where I can find this. In MD-Settings? Smartphone-Settings? I have german versions. But "system settings global" in german should be similar? "Global settings" of what?
 

Lupus52

Member

Jacob L

Moderator (Lawsonator)
I see a file with not human readable content. What can I copy to which place?
If you open it with MacroDroid, it can be imported and actions can then be copied. If not, then there's a MacroDroid action called system setting. Choose global on the system setting action and use the drop down to select the values.
 

Lupus52

Member
As long as I understand, this handling uses a "hack".
I looked in the macro and got a warning and so on....
Sorry - I give up! This is nothing for me as a non-hacker and/or programming specialist.

My workaround with the variable works and I will stay in this situation.
Your explanations are not understandable for me.

Thank you and good night
 
Top