Ok after quite a few times of reflashing the .dfi file, I think I have it working now. First thing I did was 'gg tempsource internal' because it gave me negative values and I've noticed that if the temperature is negative, the Senoko does not listen very well to user commands. Next, I did a 'gg capacity 3 2500', and 'gg reboot' to make sure I got sane values.
Then I started messing around with the 'gg cal' command since that was pretty much the only command I hadn't touched yet. Not knowing what values I had to give it, I did a 'gg cal 12600 2500 25', and the stats were completely wrong (cell voltages were too high, alarms went off, etc.), but it did try to charge the battery. Since this is the closest I got to actually getting the battery to charge, I reflashed the .dfi file, and did the following:
1. gg tempsource internal
2. gg capacity 3 2500
3. gg reboot
This gives me correct values. Then I did:
gg cal 11254 2440 22 (values that I got after step 3 above)
and now it looks like it is charging. The stats are:
ch> stats
Manufacturer: Texas Inst.
Part name: bq20z95
Firmware version: 0x5009
Charge FET: on
Discharge FET: on
State: charge
Time until full: 125 minutes
Time until empty: 65535 minutes
Chemistry: LION
Serial number: 0x0001
Charge: 11%
Max capacity: 2397 mAh
Design capacity: 2500 mAh
Temperature: 24.24337 C
Voltage: 11258 mV
Current: 2135 mA
Average current: 2197 mA
Target voltage: 12600 mV
Target current: 5000 mA
Number of cells: 3 cells
Cell 1 voltage: 3755 mV
Cell 2 voltage: 3754 mV
Cell 3 voltage: 3750 mV
Cell 4 voltage: 0 mV
Charge status: 0x240
Charging allowed? yes
Can suspend? no
Can precharge? no
Can maintenance? no
Temperature limit? no
Temperature limit? no
Can fastcharge? yes
Pulse charging? no
Pulse disable CHG? no
Cell balancing? in-progress
Precharge timeout? no
Fastcharge timeout? no
Overcharge OV? no
Overcharge OC? no
Overcharge? no
Battery empty? no
Alarms:
Charge state:
Battery initialized
No errors detected
No safety alerts
No safety status messages
I honestly don't know if the values are correct (5000 mA target current for example), but looks like it is working. I'll post my experiences after it is done charging.
EDIT:
It's done charging, I pulled out the AC and I got a current of 32767 mA (max value of a signed short), and now it reports that it's at 0%. Stats:
Manufacturer: Texas Inst.
Part name: bq20z95
Firmware version: 0x5009
Charge FET: off
Discharge FET: on
State: overcurrent
Time until full: 77 minutes
Time until empty: 65535 minutes
Chemistry: LION
Serial number: 0x0001
Charge: 0%
Max capacity: 2385 mAh
Design capacity: 2500 mAh
Temperature: 28.24297 C
Voltage: 11079 mV
Current: 32767 mA
Average current: 32767 mA
Target voltage: 0 mV
Target current: 0 mA
Number of cells: 3 cells
Cell 1 voltage: 3694 mV
Cell 2 voltage: 3694 mV
Cell 3 voltage: 3691 mV
Cell 4 voltage: 0 mV
Charge status: 0x44
Charging allowed? yes
Can suspend? no
Can precharge? no
Can maintenance? no
Temperature limit? no
Temperature limit? no
Can fastcharge? no
Pulse charging? no
Pulse disable CHG? no
Cell balancing? in-progress
Precharge timeout? no
Fastcharge timeout? no
Overcharge OV? no
Overcharge OC? yes
Overcharge? no
Battery empty? no
Alarms:
TERMINATE CHARGE ALARM
TERMINATE DISCHARGE ALARM
Charge state:
Battery initialized
Battery fully discharged
No errors detected
No safety alerts
Safety status:
Charge overcurrent condition
Tier-2 charge overcurrent condition
And after a while with the AC pluggin in again:
ch> stats
Manufacturer: Texas Inst.
Part name: bq20z95
Firmware version: 0x5009
Charge FET: on
Discharge FET: on
State: fault charge terminate
Time until full: 153 minutes
Time until empty: 65535 minutes
Chemistry: LION
Serial number: 0x0001
Charge: 8%
Max capacity: 2450 mAh
Design capacity: 2500 mAh
Temperature: 23.-229 C
Voltage: 11196 mV
Current: 2455 mA
Average current: 1157 mA
Target voltage: 0 mV
Target current: 0 mA
Number of cells: 3 cells
Cell 1 voltage: 3735 mV
Cell 2 voltage: 3734 mV
Cell 3 voltage: 3728 mV
Cell 4 voltage: 0 mV
Charge status: 0x244
Charging allowed? yes
Can suspend? no
Can precharge? no
Can maintenance? no
Temperature limit? no
Temperature limit? no
Can fastcharge? yes
Pulse charging? no
Pulse disable CHG? no
Cell balancing? in-progress
Precharge timeout? no
Fastcharge timeout? no
Overcharge OV? no
Overcharge OC? yes
Overcharge? no
Battery empty? no
Alarms:
TERMINATE CHARGE ALARM
Charge state:
Battery initialized
No errors detected
No safety alerts
No safety status messages
http://bitlog.it - uncovering secrets at the frontier of technology