[HELP]Create a task to measure how average amp charge - Tasker Tips & Tricks

Hi,
I am trying to monitor how much amp my phone is being charged given a specific time.
There is a tutorial where i can use tasker to create a battery log -> http://www.androidauthority.com/advanced-battery-log-tasker-android-customization-644296/
I can replicate this and thought can use a similar script for what i want to do. My only issue is that I can't seem to find a variable in Tasker that measures how much power my phone is receiving when charging.
Can someone help me with this? I download a few apps that measure your amps and it shows the max min amp. But nothing about avg amp.

Related

Diamond battery voltage

In need to know the voltage across the diamond standard battery (900mAh) when the battery is fully charged and when the battery is fully discharged (the phone automatically switched off)
Could someone give me this information?
When my battery is low I read 3.2V
When my battery i high I read 4.1V
Is this correct?
That's about right, +-.1
Thanks, I've a lot of problems with the charging and discharging cicles, this information could help me to understand
While which is the charge current when the battery is fully discharged?
For my Diamond it can be very high, up to 800mA (I know it from BatteryStatus), it is a normal value?
wasm said:
While which is the charge current when the battery is fully discharged?
For my Diamond it can be very high, up to 800mA (I know it from BatteryStatus), it is a normal value?
Click to expand...
Click to collapse
Try a program, "PowerGuard", it's a very nice (and free) program developed by Muyz that will give you current and temp info, including graphs with a lot of flexibility in settings. You can get a good feel of where the current draws are. I think charge current is in the area of 700-800mA on initial charge.
Or another called Battlog. It,s better because it logs the measurements - on Powerguard it's difficult to see the actual (current, not in electrical, but in time sense ) measurement.
Thanks I'm going to try them
For now I'm testing Batlog...
This evening I'm going to make a full charging log, so I could post it tomorrow
Could you do the same? This could give me the possibility to compare them
I'm experimenting some problems with the charging circuit
mjaxa said:
Or another called Battlog. It,s better because it logs the measurements - on Powerguard it's difficult to see the actual (current, not in electrical, but in time sense ) measurement.
Click to expand...
Click to collapse
I agree with mjaxa, since your post I've found and installed Battlog. Works great on my Diamond. Very robust program and easy to read the log file or import into excel for analysis.
I have no idea why I didn't find this software when searching for a good battery monitor for my Diamond except I must have not used "log" in my searchs.
Thanx mjaxa.......
JRMX said:
Works great on my Diamond. Very robust program and easy to read the log file or import into excel for analysis.
Thanx mjaxa.......
Click to expand...
Click to collapse
I should, of course, also thank Palladium TD now that I've found the source for this fine program.
I'll also add that while the data logging is very good, I found that some of the functions do not work on my Diamond (US ROM 1.93). I know it's a beta program or maybe I just haven't figured it out yet. Using 0.2.3.130 beta I have noted:
No response on the help and other icon on the left side, battery temp read is off by a factor of 10 (noted on the Battlog thread) and cum use (mAh) does not display.
I'll post the comments on the correct thread.
In the following I reported the log of my battery charging cycle in txt and graphic format
If you can post comments or other logs, I'll appreciate
P.s. another bug in Battlog (I'think) is related to the sampling interval, as you can note observing the X axis on my plots: it is not constant in time
No one want help me with a charge/discharge log?
With the holidays I haven't had too much time to work with battlog and the phone use is not typical. I did run about 16 hrs of data and it does give some insight.
Charging overnight looked normal with current draw cycles at 2hr intervals for mail checks.
I was going to upload the excel file, but the format isn't permitted. The txt file is too large. I'll mess with it some more, but I didn't see anything that was unlike your data. 800ma on initial charges, -200ma on using various applications and phone calls, as much as -800ma on internet use and -9 to -20ma on locked standby. I did not see what I'm looking for which is an unexplainable deep discharge, overnight or during the day, I'll keep monitoring.

Software to monitor power draw

Does anyone know of software to monitor the charge going into / power being consumed by the Kaiser. I need to know volts or amps rather than just knowing how much charge I have, which all the titles I have found seem to do.
Many thanks
volts or amps left? or the baterry volts/amps supported?
There's a control panel applet called nueCPL-Power, which might be what you want. However, I've never used it myself, and am not sure it even works on the Kaiser.
Dave
I think Homescreen Plus will do what you want. Gives you the current in or out in real time ( as + or - mA). Pretty sure its HSPlus but do a search. I have it running on mine but I can't figure out which app it is lol!
From DIAMOND's rom :
>>>
<<<
PowerGuard v1.2 has everything I need. It monitors battery voltage and current going in or out of the battery, as well as temperature; and it shows data in text values and graphical trend.
It can be found here: http://www.freewarepocketpc.net/ppc-download-powerguard-v1-2.html, or Google it. Make a donation if you can.

Can Tasker tell if fast vs slow wireless charging?

Sorry I posted this elsewhere before I found the tasker section.
I only use a standard wireless charger at night. I want to create a profile that only run if my phone is SLOW wireless charging. All my other wireless chargers are fast so it would only run when I went to bed and I wouldn't have specify a time etc.
Is there a way to do this or a plug-in that can help? I don't want to root.
Dexter_Morgan said:
Sorry I posted this elsewhere before I found the tasker section.
I only use a standard wireless charger at night. I want to create a profile that only run if my phone is SLOW wireless charging. All my other wireless chargers are fast so it would only run when I went to bed and I wouldn't have specify a time etc.
Is there a way to do this or a plug-in that can help? I don't want to root.
Click to expand...
Click to collapse
Well, you could set more parameters for sleeping, like alarm set/charging after xx time etc..
But well, only thing I can think of is to get tasker to read notification and if it reads "fast charging" do xx.
Could buy a magnet and use the magnetic field sensor as a 2nd trigger if you always use the same wireless charger in the same place. I'm a tasker newbie, let me know if that's a dumb idea.
Those are both good ideas. I never thought of using the notification. I just wonder if I goes off once charging is complete. Nfc tags are an option. I have never used them before for this they would work perfectly. I will have to experiment.
Install Broadcast monitor from google store and have a look if you can see the intent sent by battery and if you can somehow tell the difference between slow and fast chargers - you would have to try both and write results down and compare them.
Intents uses very low power, so its a good option if its going to work
Cheers for that. The notification thing is a no go as it doesn't register in tasker despite showing in the notification bar.
I had a look at broadcast monitor. There appear to 2. Internal broadcasts monitor and broadcasts monitor plus. Is it one of those? Both don't seem to have been updated in a while.
I have attached my intents for charging/discharging state.
Look for charge_type - maybe this changes depends on what charger you use?
Have a look, test it and maybe you will get what you need?
You would then use something like %charge_type if > 1 then this or that
This worked for my wifi using %newrssi value.

Set charging limit

Hey all,
Someone on reddit just posted a link to an apk file that let's you set a custom charging limit. Should be a great tool to limit battery wear.
Here you go: https://www.reddit.com/r/Nexus6P/comments/5x9xax/set_changing_limit_requires_root/
See Battery Warner : https://forum.xda-developers.com/android/apps-games/app-battery-warner-t3560920 :good:
swa100 said:
Hey all,
Someone on reddit just posted a link to an apk file that let's you set a custom charging limit. Should be a great tool to limit battery wear.
Here you go: https://www.reddit.com/r/Nexus6P/comments/5x9xax/set_changing_limit_requires_root/
Click to expand...
Click to collapse
I highly recommend accubattery. It lets you check lots of things like discharging, charging speed, battery health, what apps use how much charge an hour etc and tells you how long you have sot and deep sleep and hibernation etc. You can set an alarm for it to tell you when you get to a certain charge. When mine gets to 80% it tells me in a notification that makes noise to disconnect the charger. Really useful and works great.
DEVILOPS 007 said:
I highly recommend accubattery. It lets you check lots of things like discharging, charging speed, battery health, what apps use how much charge an hour etc and tells you how long you have sot and deep sleep and hibernation etc. You can set an alarm for it to tell you when you get to a certain charge. When mine gets to 80% it tells me in a notification that makes noise to disconnect the charger. Really useful and works great.
Click to expand...
Click to collapse
It doesn't help when you're charging overnight. The app linked in OP let's the user define a threshold, such that the phone doesn't get charged beyond this threshold, regarding if it's plugged in
Download automate, theres a flow that lets you choose what to limit it to. you will need the premium version of automate though
https://forum.xda-developers.com/android/apps-games/root-battery-charge-limit-t3557002

Limit Battey Charge % Android 11

Anyone found a consistent way to limit battery charge % on Android 11? The custom settings I used with Battery Charge Limit app on 10 work intermittently on 11. Often times I'd wake up to 100% charge.
Currently I'm using Advanced Charging Controller magisk module with it's accompanying AccA app but often AccA gets killed in the background even after not optimizing it in battery optimization. The only workaround I've found is to create a macro that opens AccA every time I plug in the charger. With that step it's consistent but I'd like to find something not so hacky.
I've been running A11 for about a week and did not encounter any issues with Battery Charge Limit. Maybe make sure that it's not battery optimized? I have it "not optimized" because I'm paranoid about it, rather than having direct problems.
jljtgr said:
I've been running A11 for about a week and did not encounter any issues with Battery Charge Limit. Maybe make sure that it's not battery optimized? I have it "not optimized" because I'm paranoid about it, rather than having direct problems.
Click to expand...
Click to collapse
I made sure battery charge limit wasn't optimized. You're using the same custom setting from android 10? Maybe I'll try it again
This the settings you have?
Path Data: /sys/class/power_supply/charger/charge_disable
Enable Value: 0
Disabled Value: 1
hawkswind1 said:
I made sure battery charge limit wasn't optimized. You're using the same custom setting from android 10? Maybe I'll try it again
Click to expand...
Click to collapse
I didn't change anything at all... and honestly with all of the other A11 problems I've been having... I didn't even think to check that it was working. It just has been. I also double-checked with AccuBattery and the history never shows above my limit.
This is my control file settings as seen on the main screen:
Code:
/sys/class/power_supply/charger/charge_disable, 0, 1
jljtgr said:
I didn't change anything at all... and honestly with all of the other A11 problems I've been having... I didn't even think to check that it was working. It just has been. I also double-checked with AccuBattery and the history never shows above my limit.
This is my control file settings as seen on the main screen:
Code:
/sys/class/power_supply/charger/charge_disable, 0, 1
Click to expand...
Click to collapse
I think that's the custom setting probably restored from your Google backup. Same one I was using. I'm gonna try it again though, thanks
hawkswind1 said:
Anyone found a consistent way to limit battery charge % on Android 11? The custom settings I used with Battery Charge Limit app on 10 work intermittently on 11. Often times I'd wake up to 100% charge. Currently I'm using Advanced Charging Controller magisk module with it's accompanying AccA app but often AccA gets killed in the background even after not optimizing it in battery optimization. The only workaround I've found is to create a macro that opens AccA every time I plug in the charger. With that step it's consistent but I'd like to find something not so hacky.
Click to expand...
Click to collapse
Have you tried Accubattery? Along with charge limiting it has other useful features, including reporting battery capacity vs. new (under health).
v12xke said:
Have you tried Accubattery? Along with charge limiting it has other useful features, including reporting battery capacity vs. new (under health).
Click to expand...
Click to collapse
Accubattery is fine and all for reporting and giving an idea of where you want to stop charging... but it has no ability to limit charging. The only thing it can do is nag you to take the phone off the charger. This thread is about root applications actually blocking the phone from charging past a certain level without making the user do anything or even notifying the user about what's being done.
I realize this is a couple of months old. but I just got a new OnePlus 8T, now rooted, and I'm trying to use Battery Charge Limit on it. I can't quite figure out the settings to have it work consistently. Let's say the phone is already at 100% when I plug it in. Battery Charge Limit starts, but then it flip-flops between Charging and Not Charging, starting and restarting. The phone woke me up last night because it was making a ding every time Battery Charge Limit flipped between charging and not charging. One would think that if the phone was at 100% Battery Charge Limit would turn off charging and let it drop down to my 85% limit and then back up to 91%, but never got above 91%. Thoughts? Thanks.
rcbjr2 said:
I realize this is a couple of months old. but I just got a new OnePlus 8T, now rooted, and I'm trying to use Battery Charge Limit on it. I can't quite figure out the settings to have it work consistently. Let's say the phone is already at 100% when I plug it in. Battery Charge Limit starts, but then it flip-flops between Charging and Not Charging, starting and restarting. The phone woke me up last night because it was making a ding every time Battery Charge Limit flipped between charging and not charging. One would think that if the phone was at 100% Battery Charge Limit would turn off charging and let it drop down to my 85% limit and then back up to 91%, but never got above 91%. Thoughts? Thanks.
Click to expand...
Click to collapse
It's possible it's not configured correctly for your phone. You can also just disable that notification channel, since mostly it's just annoying. It constantly fliping might mean that there's more than one control file for your phone type and it's using an ineffectual one that the OS is overriding immediately. For example, the default one it detects for Pixel 4's is not the one it should use.
jljtgr said:
It's possible it's not configured correctly for your phone. You can also just disable that notification channel, since mostly it's just annoying. It constantly fliping might mean that there's more than one control file for your phone type and it's using an ineffectual one that the OS is overriding immediately. For example, the default one it detects for Pixel 4's is not the one it should use.
Click to expand...
Click to collapse
Thanks for the reply. The problem is that I use the notification to trigger Tasker profiles, so I was hoping to figure out a way to get it to stop flipping back and forth while also retaining the notification. I think it's just the standard control file since it's a OnePlus phone, but I'm not sure I can figure out otherwise. When I first start using BCL, I found the control file and was able to manipulate it with a SQL editor and Shell commands in Tasker, but I haven't poked around the OnePlus 8T that much yet.
Just as a PSA, I think Adaptive Charging from the January update can conflict with this. On days where I set a morning alarm, I found that my battery was more full than it should be. I suspect that Adaptive Charging does something that Battery Charge Limit cannot block. I won't know for a few days if turning this off in settings fixes things 100% or the January update just really screws with this.
Battery Charge Limit settings for pixel 3
Hi all, I like the app, Battery Charge Limit (root required), but was wondering how to set the control file. I works fine with Xperia (with/without Lineage), but doesn't work with Pixel 3 stock firmware (Android 10). And finally found how to...
forum.xda-developers.com
Well, as a root method it does seem to work. Depending on your taste, it might be cleaner than an app toggling a different variable. Of course you need an app to set the file back to 100 when you want it. Some Tasker widgets work for my purposes... could probably make it a QuickSettings toggle in the shade, actually.
Bottom of that thread, I was wondering specifically if there might be way to force an unrooted device to think it met one of these conditions, so it only charges to 80%.
Specific post link:
Battery Charge Limit settings for pixel 3
Hi all, I like the app, Battery Charge Limit (root required), but was wondering how to set the control file. I works fine with Xperia (with/without Lineage), but doesn't work with Pixel 3 stock firmware (Android 10). And finally found how to...
forum.xda-developers.com
i.e.
... your phone automatically limits charging to about 80% under certain conditions:
Continuous charging under high battery drain conditions, like game play.
Continuous charging for four days or more.
I've done very little research on this, but I expect the ways to fool the phone into thinking those things are happening is even more complicated than using that root file control. Meaning also requiring root but manipulating other control files.
I suppose you could have a case and a ribbon USBC connector that fools the charging logic into thinking it is constantly connected to a hardware charger even though it's still at a net negative power. After 4 days of having the case on, it might work. I don't know why anyone would have already built something like that, however.
I would root my phone but, as my daily driver, I need things like banking apps to work. They (at least some) detect rooted phones and refuse to load as a security measure (which is probably a good thing) :-(
Banking apps are usually just a frontend to their website used API. They have no problem with you using a browser on a rooted phone or Linux PC, etc. Any app that stores sensitive data on your phone and relies 100% on the filesystem being locked down was created wrong and lazily. The only thing about banking apps that might be legitimate is when things like unique CC info is stored for NFC and using a TPM can't be assured. Most banking apps, however, do not store anything sensitive on your phone aside from a login token which all websites also do. (it's called a cookie)
My personal preference is that no app is better for me than being able to root my phone. I don't play mobile games that want to keep you from cheating and I don't even care about Google Pay, which I'm not sure has legitimate need to block root either... they just do it to keep banks happy, which as I suggested, I think they're full of BS.
The only thing more BS than this no-root nonsense from app companies is when carriers do it by locking bootloaders. I try to re-use my phones for as long as possible and without the ability to limit battery charge, the batteries swell and die quickly, every time. It's good news that Google added code where phones plugged in constantly will limit charge automatically... but I doubt there is a way to trick it from the outside. (without root)
Hmmm. Maybe lazy programming, but I'm not ready to change my Bank so I can root my phone
Back to the topic... I don't think I'm ready to trust the /sys/devices/platform/soc/soc:google,charger/charge_stop_level method. Several times I found my phone at low battery and not pulling any current from the USB port, but not losing charge either. It had put itself into a stalemate where it was stuck below 10% for hours. Resetting the value from 60 to 100 allowed charging again. The battery charge limit app never really caused this. So I guess I'm going back to the full app method.
jljtgr said:
Back to the topic... I don't think I'm ready to trust the /sys/devices/platform/soc/soc:google,charger/charge_stop_level method. Several times I found my phone at low battery and not pulling any current from the USB port, but not losing charge either. It had put itself into a stalemate where it was stuck below 10% for hours. Resetting the value from 60 to 100 allowed charging again. The battery charge limit app never really caused this. So I guess I'm going back to the full app method.
Click to expand...
Click to collapse
I would like to definitely solve this problem I have been struggling with for years. What did you do, can you please help me? It seems extremely similar to what you wrote here.
I have been using battery charge limit on my Xiaomi Mi Mix (1st model) since android 7.1 (lineageos) (and I might have messed with a couple files, not sure, can't remember). When updating to android 9 (lineageos) couple years ago I started having the problem you described. Also I notice sometimes I plug the phone at safe levels such as 35% or 60% and it doesn't charge same thing. Also it only charges with certain chargers and not others.
Earlier today it was 11% battery, could not boot android, didn't charge. I got the idea for the first time to try booting in TWRP (on+volume up buttons) and it immediately started charging at full speed. So there's obviously nothing wrong in the hardware, it's software or just config.
I would like to definitely solve this problem, but I don't understand exactly what you did on your side to fix it. Please reply or message me if you have any suggestion Thank you!

Categories

Resources