--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/qKd9wM647OM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Pent
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/qKd9wM647OM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Basically the only thing I want is an auto syncing schema that only enables auto sync when I have a good signal and my battery is good and it's impossible without a functioning %CELLSIG variable....
I would imagine this information is in the shell dumpsys. Perhaps check it there to see if the variables I getting set correctly..
You can look in dumpsys connectivity or dumpsys statusbar
All I seam to get for a value of %CELLSIG is -1 even after a reboot. I will test some more..
RICH..
> I decided to check my phone with %CELLSIG and got -1. So I made a call and checked it while on the call, it reported 6. Checked a couple of minutes later it was 8. I had answered a call about 10 minutes before doing this little experiment. I am on 4.1.2.
Good idea....
I have a moto droid 4 running 2.3.6. Rooted
Tasker Version 1.3.3u2m
No time for testing now but i will give that a try later...
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/qKd9wM647OM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
> Sorry but I'm not sure what the dumpsys is or where to find it.
Ahhh, it is actually very easy, take it from someone who knew nothing about this stuff when I started... and is extremely useful.
1. Download 'Terminal emulator ' from the play store
2. When you start it you should see a prompt with blah blah blah :/$
Type in "su" <cr> now you should see blah blah blah :/#
This gives it root permision
3. Type in dumpsys connectivity <cr>
This will give you a bunch of system information about your connection. You need to read through it and try to find something like lastsignallevel
Or try dumpsys statusbar <cr> and look for the signal notification.
Although you will most likely find what I have so far. That the tasker side of things seem to be working. It appears, as pent suggested android is not reporting it correctly ..
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/qKd9wM647OM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/qKd9wM647OM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Nice info Bob, after some more testing I still can only get a value of -1 in %CELLSIG, This is on a call, off a call, airplane mode on, off. However in my android settings the signal strength is reported. I can watch it change in the settings screen but it does not seem to be linked to the bars in the status bar as they do not change at the same time. A strong signal will show a value of -96 dBm which does correlate directly with the third number listed in mSignalStrength=SignalStrength. So in your example below it would be -74
I would try monitoring that and not try to compare it to the bars to see if you can get a reliable result. I do not know how the signal bars in the status bar gets its information but I have noticed it being incorrect on several occasions when I drop a call In a known bad cell area and it is reporting full bars....
Found this....
If you want to check out just where you are at in raw numbers, you can check the status screen in Android's menu. Just pull up the menu, scroll down and select About Phone, then select Status. On this screen you will be able to see your signal displayed in dBm as well as ASU. ASU is just a representation of the rate at which the phone is able to update its location by connecting to the towers near it. It basically measures the same thing as dBm, but on a more linear scale. You can convert ASU to dBm with this formula: dBm= -113+(2*ASU).
Here....
http://www.tested.com/tech/android/557-how-to-measure-cell-signal-strength-on-android-phones/
In my android settings it reports both d Bm and ASU however ASU is always 0. So perhaps it is just the reported ASU that is flakey.
Maybe Pent could fix this android problem by getting the dBm and converting it...
Rich..
I am on verizon as well...
Posted earlier...
I have a moto droid 4 running 2.3.6. Rooted
Tasker Version 1.3.3u2m
Now it's getting weird. It works for me but not for you. I'm using stock 4.1.2. You?I'm betting it is ROM related.
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Bob, I am assuming you can see a value for ASU in your android settings. Is this the number you get with %CELLSIG ?
> No, not even close. The %CELLSIG number for cdma does follow the 2, 4, 6, 8 values mentioned in the tasker user's guide. But on the bright side, the signal strength number matches what I believed to be the number in the dumpsys.
Is it the same one as I posted about earlier, the third one listed in the dumpsys ?
>
> I don't think so.
> As best as I can tell it is this one
> mSignalStrength=SignalStrength: 99 0 -81 -105 -120 -1 -1 25 -88 -8 176 2147483647 cdma 0 0 0 false 0 0 4 0 4 4 99 0 5 5 5 5 5 5 5 0
>
H,mmmm seems a bit odd. I made a task to flash shell dumpsys telephony.registry | grep 'SignalStrength:' and then watched the signal strength in my Android settings and on my device it is definitely the third number reported. -78 in the example below..
mSignalStrength=SignalStrength: 99 -1 -78 -70 -63 -1 8 cdma 0 0 0 0 0 0 -108 -1
@ Seth, I pasted the task I used below, if you would like to try it simply build this task in the task edit tab. You Should see a run button to start the task at a stop button to stop task. The shell action is found under script / shell.
Sig (12)
A1: Run Shell [ Command:dumpsys telephony.registry | grep 'SignalStrength:' Timeout (Seconds):0 Use Root:On Store Result In:%Asig ]
A2: Flash [ Text:%Asig Long:Off ]
A3: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A4: Goto [ Type:Action Number Number:1 Label: ]
I set it to a global variable so you can easily go into the variables tab to copy and paste the results.
Rich...
Alright I'll give it a shot today and report back
--
>
> Alright I'll give it a shot today and report back
>
Just to be clear.. I am comparing the number I get back back from the dumpsys to the number that is reported in my android settings and this is not the same value you see in %CELLSIG. It is reported in "dBm"
Rich..
That's clear. But to clarify this task flash's this shell result every 2 secs ad infinitum, right? Shouldn't there be a stop in there somewhere
--
> That's clear. But to clarify this task flash's this shell result every 2 secs ad infinitum, right? Shouldn't there be a stop in there somewhere
That's correct.. you could add a 'stop if %SCREEN matches off ' or any other switch you like or even a loop count but 2 sec is plenty of time to allow you to stop it using the stop button in the task edit tab. So to stop just reopen tasker and got to the task tab where you created it click on the task and there will be a stop button close to where the start button was.
Rich..
Ah of course. OK I ran but I'm going to assume I got something in the shell part wrong cause it's only flashing 0. however, running that shell command inside the terminal emulator yields closer to expects results. Some screenshots...
--
> Ah of course. OK I ran but I'm going to assume I got something in the shell part wrong cause it's only flashing 0.
I think I see the problem in the shell action. I was running an older version of tasker which only had a 'store result in' field. The new version has 'store output in' , 'Store error in' and 'store results in'. So you simply need to change the %Asig from the 'store results in' and put it in the 'store output in' field.
however, running that shell command inside the terminal emulator yields closer to expects results. Some screenshots...
Those results look very similar to mine. I think once you get the task working and are able to view your Android settings while the flash is going you will see it is the same number ( third number reported) as I found.
Post back what you find...
Rich..
Yup that was it, stupid on my part, def should've figured that out myself. Thanks for being patient.
I ran it and obviously the tasker flash was fluctuating while the android settings reading was static but the 3rd number you highlighted showed values around what my settings Signal Strength was displaying dBm. Screenshot attached.
--
>
> I ran it and obviously the tasker flash was fluctuating while the android settings reading was static
Are you sure it is static? On my device it is updated very frequently while on the same screen. I can watch both of them change almost together. I found the best place to test is in a moving car. This gives lots of changes.
What may be usefully as well is to add the %CELLSIG To the flash and set a second global variable as well to record the data I would do something like
Variable set %Asig2 to %Asig <cr> %CELLSIG <cr>
This will tell us if shell command is getting the correct signal when the %CELLSIG fails....
Hopefully with more testing you will be able to confirm that we are looking at the correct number in the dumpsys and that it has the correct value when the %CELLSIG fails.
Rich..
@RichI went back and double checked the suspected signal strength value. I used your profile and brought up the android settings > about phone > status. On my phone the third value that you identified is about 15 below the value in the status display. The value I identified matches perfectly. It's weird that we would see it differently.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/qKd9wM647OM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
> @Rich
> I went back and double checked the suspected signal strength value. I used your profile and brought up the android settings > about phone > status. On my phone the third value that you identified is about 15 below the value in the status display. The value I identified matches perfectly. It's weird that we would see it differently.
@Bob
That does seem a little strange..my guess would be android version. from zeth's screen shot it looks like he might be getting the same result as you. It will be interesting to see what he comes up with.. have you checked %CELLSIG at all when testing the dumpsys to see if the dumpsys reports a value when %CELLSIG does not?
Rich..
Interesting find.....
I had searched the group on this matter before but there is alot of %CELLSIG posts. I just was poking around again and came across this one.
It would make sense if you were not having this problem before and your area just got 4g....
You could try setting to 3g and see if the problem is still there..
Rich..
> As far as I can tell, selecting 3g is not an option on my Droid RAZR HD.
Oops, meant to direct that one to Zeth. As he seems to get a constant 8 for a value of %CELLSIG as did the poster on the link...
That was before, its been only showing -1 since my last boot...
> As far as I can tell, selecting 3g is not an option on my Droid RAZR HD.
Oops, meant to direct that one to Zeth. As he seems to get a constant 8 for a value of %CELLSIG as did the poster on the link...
--
>
> That was before, its been only showing -1 since my last boot...
Well now its getting strange, it appears we are in the same boat now. I just upgraded tasker I now have a moto droid 4 running 2.3.6. Rooted
Version 1.6u1m and still get a constant -1.
Just to double check you do not have a custom ROM, correct?
@Seth, do you get a. "Asu' signal value in your android settings?
Well my ROM is stock but deodexed, but I was having issues before on a straight stock ROM. I have a asu. Screenshot attached.
> @Seth, do you get a. "Asu' signal value in your android settings?
Here is a screen shot of my settings..
--
> You received this message because you are subscribed to the Google Groups "Tasker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
> Well my ROM is stock but deodexed, but I was having issues before on a straight stock ROM. I have a asu. Screenshot attached.
>
If you search the group this variable has had a few issues in the past but not to many lately. My issue seems to be that android is not reporting the correct value based on my ASU value being 0. Yours seems to be a bit eradicate.
Have you found a consistent signal strength that matches your dBm in the android settings?
Perhaps we could ask Pent for a variable for the dBm value.
It would be easy enough to check with the shell action but it can not be used as a context without having a tasker variable.
Rich..
What do you mean by a consistent signal strength that matches?
--
> What do you mean by a consistent signal strength that matches?
Sorry,
I meant to say that constantly matches... IE using the task that flashes the dumpsys values and comparing it to your android settings signal value.
Rich..
>
> Sorry for the delayed response but Nah, nothing seems to match up in any meaningful way to the ASM variable...
Actually it was the dBm value in the android settings we were looking to match.. Rich..
Yeah that matches to the 9th number of the shell output...
>
> Sorry for the delayed response but Nah, nothing seems to match up in any meaningful way to the ASM variable...Actually it was the dBm value in the android settings we were looking to match.. Rich..
--
Yeah that matches to the 9th number of the shell output...
On May 28, 2013 4:23 PM, "Rich D" <ricp...@gmail.com> wrote:
>
> Sorry for the delayed response but Nah, nothing seems to match up in any meaningful way to the ASM variable...Actually it was the dBm value in the android settings we were looking to match.. Rich..
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/qKd9wM647OM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Haha just wishful thinking holding me back I guess (I was avoiding how to consistently, accurately split just the 9th variable...)
It depends on how much you want a signal strength value. I doubt that this will be "fixed" any time soon. Most of the work is done as far as splitting out the signal strength value from dumpsys. So why not use it?
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/qKd9wM647OM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Cool this for the advice. Slightly of topic, but what are the finer differences between using caps in a variable and not? I think I understand that using a capital letter makes it "global", which I take it means the variable is available outside of that specific task, but what are the more specific cost/benefits of the two options? Also is it just at least one capital letter that distinguishes it or is a variable in ALL caps something different?
--
Cool this for the advice. Slightly of topic, but what are the finer differences between using caps in a variable and not? I think I understand that using a capital letter makes it "global", which I take it means the variable is available outside of that specific task, but what are the more specific cost/benefits of the two options? Also is it just at least one capital letter that distinguishes it or is a variable in ALL caps something different?
Thanks for the very informative explanation!!
--
(Ideally you should change the variable to all lowercase to save memory and tasker overhead to add these to its variable list.)
@Seth, I would definitely recommend changing it to a local variable. I will often use global variables like this one when building and Troubleshooting tasks. It allows you to go to the variables tab and easily check there values. Then after the task is working I simply go back and remove the "A"
Just curious, were you able to try using just 3G to see if you could get a value with %CELLSIG ?
@Rich, thanks for the excellent advice. I recently wiped my phone because of really poor performance and battery life which ended up being related to this issue with the %CELLSIG not being read properly (and subsequently many profiles I wrote that depended on it causing more harm than good). But I'm sure misuse of global variables was partially to blame (I had a task that took financial numbers from a webstring that split a bunch of times and they are all global variables... doh). So I can't thank you enough got the tip.
Anyways i turned off LTE and reran my/your flashing task and compared to the settings. Attached the screenshot. The first number in the flash is %CELLSIG, then the shell output. So %CELLSIG is still -1 but interestingly enough the dBm value in the android settings seems to not be correlating with the 3rd number in the shell output. And now ASM is super low and may be the 3rd number minus the 9th number of the shell output...
--
Eh I take that last part back, just ran it again and asm is NOT the difference between those two values.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
> Also in that first post, it should read that it is NOW correlating to the 3rd number in the output, not the 9th that it was relating to when LTE is enabled. Which is going to be problematic for reading the variable for signal strength, that is if it changes depending on which mobile network its using. Also the signal strength meters seem to still read even if Airplane mode is on, which should be easier to get around but still an issue.
Our devices seem to be reporting these values differently ( the values in the dumpsys) here is a copy of my dumpsys...
4g...
mSignalStrength=SignalStrength: 99 -1 -86 -70 -63 -1 5 cdma 12 2147483647 -105 99 161 0 -108 -1
3g...
mSignalStrength=SignalStrength: 99 -1 -88 -70 -63 -1 7 cdma 0 0 0 0 0 0 -108 -1
As stated before the third value matches exactly with the android settings value for the dBm with and without LTE enabled.
I would guess if you can not find one of these values to consistently match your values in android settings this might not work for your device..
I suppose you could spilt out the most likely values and flash those as you are driving (I mean riding with someone else driving :)) and see if they fluctuate with the android setting and the bars to give a reasonable ( not exact) reading of actual signal...
You could check a few other places in the dumpsys in the emulator to see if you can find anything.
You can look in dumpsys connectivity or dumpsys statusbar using the emulator. On my device I get a value reported for the battery in the dumpsys statusbar but there is no signal reported.
Rich..
For some reason Tasker stopped reading the correct CELLSIG value a few weeks ago and reports a value of "-1" regardless of actual signal strength/quality.
Using dumpsys-signalstrength I was able to get the following output:
mSignalStrength=SignalStrength: 99 0 -88 -15 -91 -1 8 99 2147483647 2147483647 2147483647 2147483647 cdma 0x400
The third value (-88) represents dBa, but the interesting thing for me is that the final value (0x400) corresponds to the signal strength as displayed in the status bar. Obviously this doesn't help everyone, as the contents/format of the dumpsys output may vary by carrier, but I thought it was worth mentioning.