View Single Post
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#647
Hostmode while charging


Plugged in memstick, by using http://talk.maemo.org/showthread.php...080#post907080 cable.
Started high speed hostmode, VBUS boost, and mounted.
THEN I plugged in the charger of cable nest linked above (it is very important to plug in the external charger after correct establishing of hostmode, particularly not before you've hit "VBUS boost on", in h-e-n GUI. Also do NOT connect the unpowered charger to cable after you started VBUS boost - either keep it plugged to cable from beginning and just plug into mains later, or first plug into mains and then to Y-cable)


t900:~# logger stopping vboost && boostoff
t900:~# ls /media/sda1/
Themroc [ Picoli - Dewaere - Miou Miou - Coluche ].avi joerg

t900:~# ./bin/bq27200.sh
LOOPMODE=0 RS=20
Reading values...........................done.

CSOC: 99 % RSOC: 99 %
Average Current: 200 mA
TTF: 65535 minutes TTE: 556 minutes (TimeToEmpty: it's discharging battery)
...

[edit: that's probably cruft, not needed when using the normal booston/off scripts]
t900:~# stop bme
bme (stop) running, process 22938
...
[/edit]


t900:~# ./charger
Charger: 0
Charge parameters programmed. Sleep 1...Status: 0x37
Status: 0x20 Mode: STANDBY Full: 0 WallCharger: 0 Battery Voltage: 3967 NAC: 1999 Battery level: 97 %
^C

t900:~# ./charger &
Charger: 0
Charge parameters programmed. Sleep 1...Status: 0x10
Status: 0x10 Mode: CHARGING Full: 0 WallCharger: 0 Battery Voltage: 4150 NAC: 1987 Battery level: 97 %
Status: 0x10 Mode: CHARGING Full: 0 WallCharger: 0 Battery Voltage: 4150 NAC: 1988 Battery level: 97 %
Status: 0x10 Mode: CHARGING Full: 0 WallCharger: 0 Battery Voltage: 4156 NAC: 1989 Battery level: 97 %

t900:~# ./bin/bq27200.sh
LOOPMODE=0 RS=20
Reading values...........................done.

CSOC: 97 % RSOC: 97 %
Average Current: 151 mA
TTF: 37 minutes TTE: 65535 minutes (TimeToFull: it's charging battery)

t900:~# ls -l /media/sda1/joerg/
-rw-r----- 1 user users 12150865 Oct 1 13:28 joerg_ct_01.pdf
-rw-r----- 1 user users 11813330 Oct 1 13:30 joerg_ct_01_2.pdf
-rw-r----- 1 user users 12290152 Oct 1 13:32 joerg_ct_02.pdf
-rw-r----- 1 user users 12334938 Oct 1 13:34 joerg_ct_02_2.pdf





I have an improved booston and boostoff script here, but it will work with the original one as well.
charger script is the one of ShadowJK: http://enivax.net/jk/n900/charge.sh.txt, only slightly renamed and some added debug prints.


To stop the whole thing, you first kill charger, then stop h-e-n

cheers
jOERG
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2011-03-29 at 08:23.
 

The Following 54 Users Say Thank You to joerg_rw For This Useful Post: