Thread
:
how to use i2cset in a script - for charging N900 from USB self-powered Hub
View Single Post
netC
2010-11-23 , 03:37
Posts: 20 | Thanked: 3 times | Joined on Sep 2007
#
6
http://focus.ti.com/lit/ds/symlink/bq24150.pdf
- the data sheet.
from page 29:
Table 6. Control Register (READ/WRITE)
Memory Location: 01, Reset State: 0011 0000 (30H)
BIT NAME READ/WRITE FUNCTION
B7 (MSB) Iin_Limit_2 Read/Write 00-USB host with 100-mA current limit, 01-USB host with 500-mA current limit,
10-USB host/charger with 800-mA current limit, 11-No input current limit
B6 Iin_Limit_1 Read/Write (default 00)
B5 V(LOWV_2)
(1) Read/Write 200mV weak battery voltage threshold (default 1)
B4 VLOWV_1(1) Read/Write 100mV weak battery voltage threshold (default 1)
B3 TE Read/Write 1-Enable charge current termination, 0-Disable charge current termination (default 0)
B2 CE Read/Write 1-Charger is disabled, 0-Charger enabled (default 0)
B1 HZ_MODE Read/Write 1-High impedance mode, 0-Not high impedance mode (default 0)
B0 (LSB) OPA_MODE Read/Write 1-Boost mode, 0-Charger mode (default 0)
(1) The range of the weak battery voltage threshold (V(LOWV)) is 3.4 V to 3.7 V with an offset of 3.4 V and step of 100 mV (default of 3.7 V).
Just in case someone can offer some suggestions after reading this on the construction of the i2cset command on N900.
I know that this will take me some time to figure out - as I am not much of a low-level hardware/software expert.
All I can do is read, but maybe I am reading too much into it.
netC
PS: I run my phone in 3/3.5G mode exclusively and it is power hungry mode, so I want to charge while using it.
Quote & Reply
|
netC
View Public Profile
Send a private message to netC
Find all posts by netC