IRC log of #maemo for Sunday, 2018-12-09

*** mavhc has quit IRC00:02
*** mavhc has joined #maemo00:05
*** mavhc has quit IRC00:11
*** eqw has quit IRC00:14
*** mavhc has joined #maemo00:20
*** Kabouik_ has joined #maemo00:42
*** mavhc has quit IRC00:45
*** mavhc has joined #maemo00:49
*** mavhc has quit IRC00:58
*** mavhc has joined #maemo01:04
*** mavhc has quit IRC01:27
*** mavhc has joined #maemo01:31
*** mavhc has quit IRC01:57
*** mavhc has joined #maemo02:02
*** mavhc has quit IRC02:07
*** mavhc has joined #maemo02:11
*** mavhc has quit IRC02:21
*** mavhc has joined #maemo02:24
*** Kilroo has joined #maemo02:42
*** dafox has quit IRC02:45
*** florian has quit IRC03:02
*** Kabouik_ has quit IRC03:09
*** HRH_H_Crab has quit IRC03:15
*** mavhc has quit IRC03:39
*** mavhc has joined #maemo03:41
*** ShadowJK has quit IRC03:42
*** ShadowJK has joined #maemo03:42
*** tm has quit IRC03:45
*** tm has joined #maemo03:49
*** mavhc has quit IRC03:49
*** mavhc has joined #maemo03:57
*** xes_ has quit IRC04:20
*** mavhc has quit IRC04:22
*** mavhc has joined #maemo04:24
*** xes has joined #maemo04:24
*** mavhc has quit IRC04:43
*** mavhc has joined #maemo04:47
*** mavhc has quit IRC05:01
*** mavhc has joined #maemo05:04
*** mavhc has quit IRC05:13
*** mavhc has joined #maemo05:18
*** mavhc has quit IRC05:54
*** mavhc has joined #maemo05:57
*** mavhc has quit IRC06:21
*** mavhc has joined #maemo06:28
*** mavhc has quit IRC06:53
*** mavhc has joined #maemo06:55
*** b-man` has joined #maemo06:56
*** mavhc has quit IRC07:03
*** mavhc has joined #maemo07:09
*** merlin1991 has quit IRC07:25
*** merlin1991 has joined #maemo07:25
*** mavhc has quit IRC07:32
*** mavhc has joined #maemo07:38
*** mavhc has quit IRC07:44
*** mavhc has joined #maemo07:48
*** mavhc has quit IRC07:53
*** mavhc has joined #maemo07:58
*** mavhc has quit IRC08:04
*** mavhc has joined #maemo08:06
*** mavhc has quit IRC08:14
*** mavhc has joined #maemo08:20
*** mavhc has quit IRC08:25
*** mavhc has joined #maemo08:26
*** mavhc has quit IRC08:35
*** mavhc has joined #maemo08:40
*** mavhc has quit IRC08:50
*** mavhc has joined #maemo08:56
*** mavhc has quit IRC09:02
*** mavhc has joined #maemo09:07
*** mavhc has quit IRC09:16
*** mavhc has joined #maemo09:21
*** mavhc has quit IRC09:25
*** mavhc has joined #maemo09:29
*** Kilroo has quit IRC09:52
*** mavhc has quit IRC09:59
*** mavhc has joined #maemo10:04
*** mavhc has quit IRC10:15
*** mavhc has joined #maemo10:20
*** grumble has quit IRC10:21
*** grumble has joined #maemo10:22
*** LauRoman has quit IRC10:28
*** mavhc has quit IRC10:29
*** mavhc has joined #maemo10:34
*** mavhc has quit IRC10:40
*** mavhc has joined #maemo10:49
*** mavhc has quit IRC11:24
*** mavhc has joined #maemo11:27
*** mavhc has quit IRC11:31
*** mavhc has joined #maemo11:38
*** mavhc has quit IRC11:45
*** mavhc has joined #maemo11:52
*** mavhc has quit IRC11:57
*** mavhc has joined #maemo12:05
*** HRH_H_Crab has joined #maemo12:08
*** florian has joined #maemo12:11
*** mavhc has quit IRC12:14
*** mavhc has joined #maemo12:20
*** Vajb has quit IRC12:40
*** Vajb has joined #maemo12:47
*** mavhc has quit IRC12:54
*** mavhc has joined #maemo12:58
*** xy2_ has joined #maemo13:48
*** mavhc has quit IRC14:01
*** mavhc has joined #maemo14:06
*** mavhc has quit IRC14:38
*** mavhc has joined #maemo14:49
*** mavhc has quit IRC15:03
*** mavhc has joined #maemo15:07
*** dafox has joined #maemo15:30
*** mavhc has quit IRC15:39
*** mavhc has joined #maemo15:41
*** hubutm20 has joined #maemo16:12
*** mavhc has quit IRC16:15
*** mavhc has joined #maemo16:19
*** mavhc has quit IRC16:24
*** mavhc has joined #maemo16:31
*** mavhc has quit IRC16:35
*** mavhc has joined #maemo16:38
*** mavhc has quit IRC16:45
*** mavhc has joined #maemo16:49
*** mavhc has quit IRC17:31
*** mavhc has joined #maemo17:35
*** mavhc has quit IRC17:42
*** mavhc has joined #maemo17:45
*** florian has quit IRC18:13
*** mavhc has quit IRC18:19
*** mavhc has joined #maemo18:26
*** mavhc has quit IRC18:33
*** mavhc has joined #maemo18:39
*** mavhc has quit IRC19:04
*** mavhc has joined #maemo19:09
*** mavhc has quit IRC19:27
*** mavhc has joined #maemo19:31
*** mavhc has quit IRC19:37
*** mavhc has joined #maemo19:41
*** mavhc has quit IRC19:50
*** spinal_ has joined #maemo19:53
freemangordonShadowJK: ping19:53
spinal_ping19:53
freemangordonDocScrutinizer05: ping19:54
*** mavhc has joined #maemo19:54
DocScrutinizer05?19:54
freemangordonDocScrutinizer05: have a coule of minutes?19:54
freemangordonin regards of bq chip19:55
DocScrutinizer05a few19:55
DocScrutinizer05shoot19:55
freemangordonwhile working on lested, one of the devs said that maybe the sense resistor value used to do the calculations of current, capacity etc in the kernel driver is wrong19:56
freemangordon*leste19:56
DocScrutinizer05it shouldn't be hardcoded anyway19:56
freemangordonwhy?19:56
DocScrutinizer0520 and 22 milli both make sense19:56
DocScrutinizer05why? because the driver is opretty generic19:57
freemangordonbut he said that if 30 is used, the reported value for design capacity on n900 starts making sense19:57
freemangordoninstead of > 2000 mAh it becomes closer to 1350 or somesuch19:58
DocScrutinizer05you don't want drivers named bq27xxx-10.ko bq27xxx-20.ko etc19:58
spinal_May paste little fragment from datasheet?19:58
freemangordonsure, now the question is - did anyone ever measured the current withdrawn from the battery and compared it with what is reported?19:59
DocScrutinizer05well, this shows that design capacity as flashed to bq27299 is incorrect19:59
DocScrutinizer05yes, I did19:59
freemangordonyep, my vague memories told me so :)20:00
freemangordonspinal_: see ^^^20:00
spinal_EEPROM Data Registers (EE_DATA) — Address 0x76 — 0x7F20:00
spinal_The EEPROM data registers contain information vital to the performance of the device. These registers are to be20:00
spinal_programmed during pack manufacturing to allow flexibility in the design values of the battery to be monitored.20:00
spinal_The EEPROM data registers are listed in Table 2. Detailed descriptions of what should be programmed follow.20:00
spinal_See the Programming the EEPROM section for detailed information on writing the values to EEPROM.20:00
spinal_0x76 ILMD Initial last measured discharge high byte20:00
freemangordonif reported current value is correct, then sense resistor value MUST be correct as well20:00
spinal_that's not a big deal for Nokia just to program right values to bq2720020:00
freemangordonand by correct I mean - matches the measured value20:01
spinal_we can only measure USB current when charging the phone20:01
freemangordonno20:01
freemangordonyou can measure the current directly on battery terminals20:01
spinal_you are right20:01
spinal_need to disconnect battery and connect it by wires20:02
spinal_i'll do it20:02
freemangordonand thats what DocScrutinizer05 did back then iirc20:02
freemangordonspinal_: please do20:02
*** mavhc has quit IRC20:02
freemangordonthat would definitely show if RS value is correct20:02
DocScrutinizer05>><spinal_> that's not a big deal for Nokia just to program right values to bq27200<< however they didn't20:03
spinal_i bet they did20:03
freemangordonok, measure the current and we'll see20:03
spinal_give me 10-15 minutes20:04
freemangordonsure20:04
freemangordonno hurry :)20:04
freemangordonI'll be glad if you;re right20:04
DocScrutinizer05grecheck LMD vs writing on your battery. When it's vorrect odds are you got right RS, when it's 50% off then you may conclude 30 is not a good value and you better use 2020:04
DocScrutinizer05freemangordon: ^^^20:04
DocScrutinizer05then you also can check RS easily between minus of battery connector and GND e.g. on USB20:05
freemangordonyes, but I guess spinal_ has an old battery with unknown capacity20:05
*** mavhc has joined #maemo20:05
DocScrutinizer05so what?20:06
DocScrutinizer0520 milliohms20:06
freemangordon:)20:06
DocScrutinizer05NOT hardcoded20:06
freemangordonyeah20:06
freemangordonthat's another issue20:06
freemangordonthe question now is whether 20 is the correct value for n90020:06
DocScrutinizer05yes, tis20:06
freemangordonatherwise for sure it should not be hardcoded20:06
freemangordonDocScrutinizer05: thanks a lot!20:08
DocScrutinizer05yw20:08
DocScrutinizer05my own fault, I came up with this 30mR a 7 years ago ;-OP20:08
freemangordonspinal_: ^^^ ;)20:09
DocScrutinizer05but... >><spinal_> that's not a big deal for Nokia just to program right values to bq27200<< however they didn't20:09
DocScrutinizer05freemangordon: http://maemo.cloud-7.de/maemo5/patches_n_tools/bq27k.py20:22
DocScrutinizer05original:  http://maemo.cloud-7.de/maemo5/usr/local/sbin/bq27200.sh20:23
DocScrutinizer05note the obsolete "30" in comment20:24
*** mavhc has quit IRC20:25
*** Vajb has quit IRC20:34
spinal_hm20:36
spinal_do I need to connect middle terminal too?20:36
spinal_that's gonna be hard20:36
spinal_doesn't start with just 2 terminals connected20:37
DocScrutinizer05http://termbin.com/ni5820:37
DocScrutinizer05yes, BSI disconnect causes emergency shutdown20:38
spinal_freemangordon, i thought....20:39
spinal_how do you propose to measure the current?20:40
spinal_with ampermeter20:40
spinal_ammeter20:40
freemangordonyes20:40
spinal_how?20:40
spinal_if I connect all wires and measure it when the phone is on20:40
spinal_what value should i get?20:40
spinal_the value going to the battery exclusively or to battery + working device?20:41
freemangordonthe same value that is reported by bq for current20:41
spinal_really?20:41
spinal_i20:41
freemangordonbattery + working device20:41
spinal_the value reported by the kernel is the current going from/to the battery20:41
freemangordonspinal_: I still think LMD is way easier20:41
freemangordonyes20:42
spinal_that's why you get message "The device consumes more memory than it gets from charge"20:42
freemangordonnot, this is nother story20:42
spinal_ah, sorry, my mistake you're right20:42
freemangordonyou should not connect charger/usb when measuring20:42
spinal_yep20:42
spinal_i still thinking how to connect all terminals without soldering :p20:43
spinal_seems i need more time20:44
DocScrutinizer05you shouldn't, it's pretty pointless and honestly I only was able to do wuth a frabkenstein battery with wires retrofitted to protection circuit20:44
DocScrutinizer05you shouldn't, it's pretty pointless and honestly I only was able to do with a frankenstein battery with wires retrofitted to protection circuit20:44
freemangordonspinal_: listen to what doc says, he knows what he is talking about. usually :p20:45
freemangordontry with LMD20:45
DocScrutinizer05measure resustance between battery connector - and device GND20:45
freemangordonwhy is that?20:45
freemangordonRS is serial to the batteru20:45
DocScrutinizer05or simply check LMD and compare to what you get when charging battery externally20:45
freemangordon*battery20:45
DocScrutinizer05hmm?20:46
DocScrutinizer05RS is in battery minus20:46
spinal_20mOhm is too little to measure it accurately anyway20:46
spinal_so, i only can use soldering, no other options20:49
DocScrutinizer05you ruin your device by soldering battery contacts20:49
DocScrutinizer05must not have tin/lead plating which as contact problems20:50
DocScrutinizer05has*20:50
spinal_yep20:50
spinal_so I will now measure current with simple USB and compare to what driver show20:51
DocScrutinizer05maybe believe Nokia?20:51
DocScrutinizer05while they never disclosed the RS balue, they use 20m in BME20:51
DocScrutinizer05afaik20:52
*** mavhc has joined #maemo20:53
DocScrutinizer05and a new BL-5J(?) battery has a LMD of 1320 with RS=2220:53
DocScrutinizer051320 to 134020:53
DocScrutinizer05or believe me, I probed on disassembled device20:55
ShadowJK20mR is the correct nominal value. the components (there are two) don't seem that accurate from device to device, I've seen between 21 and 23 in real life devices20:56
DocScrutinizer05I'm not sure Nokia programmed *anything* to BQ EEPROM20:56
DocScrutinizer05yeah, or you believe ShadowJK who knows his shit20:57
spinal_i need a way to connect to battery terminals without soldering and short circuit...20:58
*** mavhc has quit IRC20:58
spinal_probably i need to use paper for isolation and something to hold wires20:58
DocScrutinizer05funny enough I used exactly same rationale for argumenting why 30m might be more correct, a decade ago20:58
spinal_it's correct20:59
ShadowJKIt's actuall 2pcs 10mR connected in series. One of the Nokia-proprietary chips tap off one of the sense resistors, and bq chip taps off of both.20:59
DocScrutinizer05^^^20:59
spinal_so probably i gonna do it later, need to think21:00
ShadowJKDid anyone ever figure out how it all got put together in bme? Because bme sure as hell never cased for the coloumb counting in bq21:00
spinal_i was never satisfied how it shows the battery percentage21:01
spinal_it dropped occasionally very fast21:01
ShadowJKI wouldn't be surprised if somewhere in the bme code there was remains of dealing with nicad21:02
spinal_so I think they just didn't have the time to use all the power bq27200 provides21:02
spinal_i think they just relied on voltage for measurements21:02
DocScrutinizer05ShadowJK: you're right, there is21:03
spinal_I hope I will measure the current tomorrow, need more time21:03
DocScrutinizer05VME is cargop cult21:03
DocScrutinizer05BME*21:03
DocScrutinizer05spinal_: have fun. Please do _not_ bither me with results21:04
spinal_what is bither?21:05
*** l_bratch has quit IRC21:06
ShadowJKbother21:06
*** mavhc has joined #maemo21:06
ShadowJKIt's not just the design capacity that is not set properly, it's also the voltage thresholds, the chip doesn't work properly in normal use because the device gets shut down before the voltage is low enough for bq27200 to update the current battery capacity21:08
DocScrutinizer05^^^21:08
DocScrutinizer05it's just meant to prove current21:08
DocScrutinizer05probe*21:08
*** Kilroo has joined #maemo21:09
DocScrutinizer05and voltage21:09
ShadowJKI wonder if the next iteration was more sane..21:10
ShadowJKBecause the previous N810 had just the nokie proprietary chip, N900 had both21:10
DocScrutinizer05N810 had a proprietary chip? Thought it did mere TI OMAP companion chip charging21:11
DocScrutinizer05plus software21:12
freemangordonShadowJK: you've measured RS directly on the board?21:12
ShadowJKDocScrutinizer05, no N810 was fully compliant with nokia 2mm barrel charging spec (which shifted a large part of regulation to the powersupply)21:13
ShadowJKfreemangordon, no21:13
DocScrutinizer05ShadowJK: aaj yep21:14
DocScrutinizer05freemangordon: I did21:15
freemangordonok21:15
*** Vajb has joined #maemo21:15
ShadowJKFor a generic bq27200 driver, of course different device manufacturers will use different sense resistors21:16
DocScrutinizer05though iirc the appnotes also have 20m21:17
freemangordonright21:18
DocScrutinizer05doesn't forbid any manuif using 10 or eveb up to 50, so no hardcoding of 20 without module parameter override21:18
DocScrutinizer05this been all in my bq27xx.ko specs :-/21:19
freemangordonit is DTS now, module parameters are forbidden ;)21:19
DocScrutinizer05WUT??21:19
DocScrutinizer05fsck DTS21:20
DocScrutinizer05the DTS designers had no idea how hw works21:20
DocScrutinizer05actually hardcoding 20 would be exactly what I'd expect from DTS devils21:21
DocScrutinizer05cpmpletely ignoring the >>doesn't forbid any manuf using 10 or even up to 50<< reality21:22
freemangordonactually it is Nokia that hardcoded it back then21:22
freemangordonbefore DTS times21:22
freemangordonand seems nobody bothered to make it variable21:23
DocScrutinizer05sure, since nokia followed my fav approach of kernel tailored for device21:23
Wizzupwhich also meant that it was hard to upstream ;)21:23
DocScrutinizer05err, nokia never had any bq27xx module21:23
DocScrutinizer05nokia had NME21:24
DocScrutinizer05BME*21:24
DocScrutinizer05which obviously never goes upstream21:24
DocScrutinizer05maybe they gad sth similar in N921:25
DocScrutinizer05though N9 has no bq27200/bq2700021:26
DocScrutinizer05PT: why does a command that works fine under user account try and fail to write to /var/run/upslog.pid and still work?  http://termbin.com/hps821:35
DocScrutinizer05OT even21:35
DocScrutinizer05MEH!!  UPSLOG(8)21:36
DocScrutinizer05WHY???21:37
DocScrutinizer05is /bar/run even supposed to not be world readable, with only owner being able to delete own pid file?21:42
DocScrutinizer05would make more sense to me21:43
DocScrutinizer05actually upsmon allows     -u username            If started as root, upsmon will setuid(2) to the user id associated with username for security.21:44
DocScrutinizer05so how would it inlink own pid file after that?21:44
DocScrutinizer05unlink*21:44
DocScrutinizer05and who needs such pid file anyway, and for what?21:45
*** florian has joined #maemo21:48
*** xy2_ has quit IRC21:54
*** LauRoman has joined #maemo22:23
*** LauRoman has quit IRC22:23
*** LauRoman has joined #maemo22:26
*** mavhc has quit IRC22:26
*** mavhc has joined #maemo22:31
*** mavhc has quit IRC22:40
Maxdamantus/scroll end22:44
*** mavhc has joined #maemo22:44
*** l_bratch has joined #maemo22:52
*** hubutm20 has quit IRC22:53
*** mavhc has quit IRC22:57
*** mavhc has joined #maemo23:03
*** spinal_ has left #maemo23:05
*** mavhc has quit IRC23:09
*** mavhc has joined #maemo23:18
sicelo20:58 < spinal_> i need a way to connect to battery terminals without soldering and short circuit...  << http://n900.elektranox.org/serial-adapter.html  .. one neat way by Sebastian reichel23:29
Wizzupsicelo: he's not here anymore, try other chan23:29
sicelothanks :)23:30
*** mavhc has quit IRC23:32
*** mavhc has joined #maemo23:40
*** mavhc has quit IRC23:48
*** mavhc has joined #maemo23:58

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!