libera/#maemo/ Tuesday, 2022-04-19

sicelofor the purposes of linux kernel POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN for our bq27200, i'm wondering if we shouldn't report EDV1, or even EVDF? which of these do you think would be more suitable?16:18
sicelocurrently none is reported, https://github.com/torvalds/linux/blob/master/drivers/power/supply/bq27xxx_battery.c#L2059-L2060 . i don't think it's particularly important, but I'm working on a patch (for handling CI=1 state a bit better), and wondered if working on MIN_DESIGN would also be useful.16:22
siceloah, mmm, actually i guess doing it (if i manage) is a good idea, judging by https://github.com/torvalds/linux/blob/master/drivers/power/supply/bq27xxx_battery.c#L2054-L205716:25
siceloonly i'm not sure between EDV1 and EDVF ... i fear EDVF might be too late for userspace programs that need to take action (e.g. upower), but EDV1 might be too soon for calibration purposes16:26
siceloanyway, maybe i'll leave this for later. for those interested, the CI=1 patch is https://paste.debian.net/1238380/ . this opens up the possibility to *always* have a capacity value in sysfs, while making it clear that it could be inaccurate.16:38
siceloin combination with https://gist.github.com/sicelo/0a0e895d81a6b73b26555d215dee296d , you can actually *always* have a better estimated capacity value than having to start from 2056mAh each time. That WRTNAC register/bit is a hidden gem on the bq27200 :-)16:39
joergsicelo: what is the exact purpose or definition of POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN ? for the BQ27k CI stuff, it's EDV1 for 1 minute or 16s or somesuch23:07
siceloi'd say it's just extra info. it's not particularly important for bq27. kernel docs say: "VOLTAGE_MAX_DESIGN, VOLTAGE_MIN_DESIGN - design values for maximal and23:09
sicelominimal power supply voltages. Maximal/minimal means values of voltages23:09
sicelowhen battery considered "full"/"empty" at normal conditions'23:09
joergline44 >># bq27200 sense resistor is needed for calculations. On N900 it is 20 megOhms<< noooooo, it's MILLIohm :-D23:11
siceloah :-P23:13
joergthat definition clearly says it should be EDVF23:13
bencoh:)23:14
sicelothat's a very small resistance! i actually saw datasheeting talking about milli, but i recall some discussions on irc where it was mentioned as meg23:15
bencohnah, ~10mili is common for a sense resistance23:15
bencohyou don't want to just burn energy in it (RiĀ²)23:16
joergI seen a YT video yesterday where they tested a "railgun" (gaus gun, magnetic accel) with a nice handy battery they unplugged and held it to the camera >>this is the battery, it has a 3.3KILO Ampere hours<<  https://youtu.be/izW1X2555Wg23:33
joerg;-P23:33
joergoops, this one https://youtu.be/eAHKS0nVlL423:37
Vajb3.3KAh, well, that would be one hefty battery... I wonder what is capacity of Tesla batterypack23:41
joerghttps://i.imgur.com/ELbPWxQ.png  https://youtu.be/eAHKS0nVlL4?t=14423:42
joergonly 3 magnitudes off, milli to mega is 9 magnitudes23:44
sicelojoerg: i seem to think someone (you?) had capacity vs. voltage curve for N900/bl-5j on the wiki, but I couldn't find it on searching23:50
sicelowith my bq27200 WRTNAC find, I want to fetch design capacity from rx51_battery if we have CI=1, but this represents 100%, so I want to take a sensible portion of it (based on voltage) to decide the NAC value to write to bq2720023:52
siceloi know it won't be accurate, but still nicer than being too far off with 2050mAh for example, or some other random value23:54

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!