• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Using Tasker to monitor cell phone network state

Hello all,

I'm on a Galaxy Note 5 (W8) and occasionally my phone drops to "Emergency Calls Only". My phone unregisters from the cell network, calls are not coming in/going out, data is not working. The only way to fix this is restarting the phone.

I'd like to use Tasker to monitor this condition.

Up to now I've tried the "cell near" state, with *, inverted. In other words "if you are not near any tower, then take action". It does not seem to work.

Is there another way to monitor this from Tasker? Maybe look for the message "Emergency Calls Only"? I'm not sure how to make this work.

Thanks for the help
 
Welcome to Android Forums.

Did you talk to your service provider about the original problem ... dropping the connection? My guess is that you need to replace the SIM card.

... Thom
 
I have already made every troubleshooting step I could take to fix the problem, without success. This includes a factory reset, a SIM card change, reflashing the ROM on the device, exchanging the device. Level 2 support with the provider has since confirmed the problem with the device, and that a software fix would correct the problem. All I have to do is wait for them to push an update OTA.

For now, I'm looking for a way to minimize downtime on my phone.
 
The following shows the correct status when Airplane is toggled ...

Profile: No Service
State: Variable Value [ %CELLSRV ~ noservice ]
Enter: Anon
A1: Flash [ Text:No Service Long:Off ]
A2: Notify [ Title:No Service Text:No Service Icon:hd_av_stop Number:0 Permanent:Off Priority:3 ]

Profile: Service
State: Variable Value [ %CELLSRV ~ service ]
Enter: Anon
A1: Flash [ Text:Service Long:Off ]
A2: Notify [ Title:Service Text:Service Icon:hd_av_stop Number:0 Permanent:Off Priority:3 ]

... Thom
 
Sounds like you have found a way.

Less elegant, but maybe useful across a wider variety of situations...I love the "notification listener" plugin. Reliably monitors for keywords etc in your notifications and can launch a profile based on those. Free app and no permissions (in contrast to auto notification plugin)
 
Last edited:
All right. I've created the profiles and tasks, however, toggling airplane mode on my device does not seem to trigger the "No Service" profile. I've read on another forum this could be an API problem on Samsung devices.

The "Service" profile is currently active with cell service working. I'll leave it be for now to see if it works. I'll post something when I have results.
 
My report was from a Motorola Droid Turbo 2 ... un-root-ed.

The vendor told you in the past you had a software bug(s). It seems likely that a profile that runs on another device may not run on yours due to this.

... Thom
 
I added counters. It is interesting that NoService is incremented twice.

Profile: tlaNoService
State: Variable Value [ %CELLSRV ~ noservice ]
Enter: Anon
A1: Variable Add [ Name:%tlaNoService Value:1 Wrap Around:0 ]
A2: Notify [ Title:tlaService Text:NoService %tlaNoService - Service %tlaService Icon:hd_av_stop Number:0 Permanent:Off Priority:3 ]

Profile: tlaService
State: Variable Value [ %CELLSRV ~ service ]
Enter: Anon
A1: Variable Add [ Name:%tlaService Value:1 Wrap Around:0 ]
A2: Notify [ Title:tlaService Text:NoService %tlaNoService - Service %tlaService Icon:hd_av_stop Number:0 Permanent:Off Priority:3 ]

... Thom
 
Well, an OTA was just pushed to my phone. Up to version LMY47X.N920W8VLU2AOK5. The change log speaks of "Improved stability in calls." I hope this is Samsungese to say "We've fixed the network problem." :)

I will post back if my network fails again and see some results with the script.
 
Last edited:
Well, that didn't take long! I woke up this morning to phone without cell service, and Tasker worked perfectly to notify me of the situation.

Thanks Thom.
 
Back
Top Bottom