Skip to content

Commit 9b3c0d5

Browse files
committed
Version 1.1
1 parent bfe25c5 commit 9b3c0d5

File tree

8 files changed

+809
-496
lines changed

8 files changed

+809
-496
lines changed

.cproject

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<listOptionValue builtIn="false" value="E:/Elektro/arduino/hardware/arduino/avr/variants/standard"/>
4545
<listOptionValue builtIn="false" value="E:/Elektro/arduino/hardware/arduino/avr/cores/arduino"/>
4646
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src}&quot;"/>
47-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src/lib/SoftI2CMaster}&quot;"/>
47+
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src/lib}&quot;"/>
4848
</option>
4949
<option id="de.innot.avreclipse.cppcompiler.option.def.1867196469" name="Define Syms (-D)" superClass="de.innot.avreclipse.cppcompiler.option.def"/>
5050
<option id="de.innot.avreclipse.cppcompiler.option.optimize.other.247153119" name="Other Optimization Flags" superClass="de.innot.avreclipse.cppcompiler.option.optimize.other" value="-ffunction-sections -fdata-sections" valueType="string"/>
@@ -96,4 +96,5 @@
9696
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="de.innot.avreclipse.core.AVRGCCManagedMakePerProjectProfileCPP"/>
9797
</scannerConfigBuildInfo>
9898
</storageModule>
99+
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
99100
</cproject>

.project

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,4 @@
2525
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
2626
<nature>de.innot.avreclipse.core.avrnature</nature>
2727
</natures>
28-
<linkedResources>
29-
<link>
30-
<name>src/lib/SoftI2CMaster</name>
31-
<type>2</type>
32-
<location>E:/WORKSPACE_ARDUINO/lib/SoftI2CMaster</location>
33-
</link>
34-
</linkedResources>
3528
</projectDescription>

README.md

Lines changed: 80 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
# SMB - Smart Battery Module (Laptop Battery Pack) Info
22

3-
Gibt die Daten des SMB Controllers aus.
3+
Prints SBM controller info
44

5-
Basiert auf https://github.com/PowerCartel/PackProbe von Power Cartel http://powercartel.com/projects/packprobe/. Hier gibt es auch weitere wertvolle Informationen.
5+
Based on https://github.com/PowerCartel/PackProbe from Power Cartel http://powercartel.com/projects/packprobe/.
6+
7+
Needs SoftI2CMaster library for I2C / SMBus / https://github.com/felias-fogg/SoftI2CMaster/archive/master.zip
8+
9+
## Identifying the right connection
10+
After startup, the program scans for a connected I2C device.
11+
Just try different pin combinations until led stops blinking and "Found I2C device attached at address: 0x0B" is printed.
12+
After connecting full data is printed.
13+
Dynamic values is checked every 3 seconds and printed if changed.
14+
15+
Tested with bq20z70, bq20z451, bq2084, bq80201DBT, bq40z50.
616

17+
## German Documentation
18+
Gibt die Daten des SMB Controllers aus.
19+
Basiert auf https://github.com/PowerCartel/PackProbe von Power Cartel http://powercartel.com/projects/packprobe/. Hier gibt es auch weitere wertvolle Informationen.
720
Benötigt SoftI2CMaster Library für I2C / SMBus / https://github.com/felias-fogg/SoftI2CMaster/archive/master.zip
821

922
## Finden der Anschlüsse.
1023
Nach dem Booten sucht das Programm nach einem angeschlossenen I2C Device.
1124
Man kann also alle möglichen Pinkombinationen von Clock und Data am Battery Pack ausprobieren.
12-
Bei der Richtigen hört das Blinken der Led auf und es kommt sofort die Ausgabe "Found I2C device attached at address: ox0B" und direkt danach werden die Daten ausgegeben.
25+
Bei der Richtigen hört das Blinken der Led auf und es kommt sofort die Ausgabe "Found I2C device attached at address: 0x0B" und direkt danach werden die Daten ausgegeben.
1326

1427
Bei den Laptop Battery Packs war Plus und Masse immer außen.
1528
Wenn mehr als 5 Kontakte vorhanden waren, waren sie wie folgt belegt:
@@ -29,66 +42,84 @@ Einen Schaltplan zu den Batterie Modulen gibt es im Datenblatt zum TI bq29311 au
2942

3043
![Breadboard](https://github.com/ArminJo/Smart-Battery-Module-Info_For_Arduino/blob/master/img/Breadboard.jpg)
3144

32-
###Beispieloutput:
45+
###Sample output:
46+
Sample outputs can be found in folder extras.
47+
48+
```
49+
START ../src/SBMInfo.cpp
50+
Version 1.1 from Jul 25 2018
3351
I2C initalized sucessfully
3452
Found attached I2C device at 0xB
3553
3654
*** STATIC INFO ***
37-
```
3855
Chemistry: LION
39-
Manufacturer Name: DP
40-
Manufacturer Data:   K24005SDI 
41-
Device Name: bq20z451
42-
Serial Number: 11518
43-
Manufacture Date (YYYY-MM-DD): 2009-8-27
44-
Design Capacity (mAh): 5450
45-
Design Voltage: 10.950
46-
Specification Info: 49
47-
Cycle Count: 255
48-
Max Error of charge calculation (%): 1
49-
RemainingTimeAlarm (min): 10
50-
Remaining Capacity Alarm: 300
51-
Battery Mode (BIN): 0b110000000000001
52-
- Internal Charge Controller Supported
56+
Manufacturer Name: GW
57+
Manufacturer Data: †A;0ÿ  È ¬& - 0x86 41 3B 30 FF 1E 0 11 0 C8 0 AC 26
58+
Device Name: DELL 0
59+
Serial Number: 46
60+
Manufacture Date (YYYY-MM-DD): 2012-9-12
61+
Design Capacity: 6600 mAh
62+
Design Voltage: 11.100 V
63+
Charging Current: 4100 mA
64+
Charging Voltage: 12.600 V
65+
Specification Info: 33
66+
Cycle Count: 39
67+
Max Error of charge calculation (%): 8
68+
RemainingTimeAlarm: 10 min
69+
Remaining Capacity Alarm: 660 mAh
70+
Battery Mode (BIN): 0b110000000000000
5371
- Battery OK
5472
- Disable AlarmWarning broadcast to Host and Smart Battery Charger
5573
- Disable broadcasts of ChargingVoltage and ChargingCurrent to Smart Battery Charger
74+
Pack Status (BIN): 0b1000011010010000
5675
5776
*** MANUFACTURER INFO ***
58-
ManufacturerAccess: 304 / 0x130
59-
Device Type: 1105 / 0x451
60-
Hardware Version: 0xA6
61-
Firmware Version: 0.3
62-
Manufacturer Status (BIN): 0b10001111
63-
- FET Status 2
64-
- State: 0b1111
65-
Battery Pack removed
66-
67-
*** TEST INFO ***
68-
Average Current (mA): 1
69-
AtRateTimeToFull: 65535
70-
AtRateTimeToEmpty: 65535
71-
AtRateOK: 1
77+
Device Type: 2084 / 0x824
78+
Controller IC identified by device type: bq2084
79+
End of Discharge Voltage Level: 9.900 V
80+
81+
Firmware Version: 1.50
82+
Manufacturer Status (BIN): 0b0
83+
- FET Status 0
84+
- State: 0b0
85+
86+
*** RATE TEST INFO ***
87+
Setting AT rate to 100 mAh
88+
TimeToFull at rate: 265 min
89+
Setting AT rate to -100 mAh
90+
TimeToEmpty at rate: 3061 min
91+
Can be delivered for 10 seconds at rate: 1
7292
7393
*** DYNAMIC INFO ***
74-
Full Charge Capacity (mAh): 2845
75-
Remaining Capacity (mAh): 2720
76-
Relative Charge(%): 96
77-
Absolute Charge(%): 50
78-
Minutes remaining for full charge: 7500
79-
Battery Status (BIN): 0b100100011100000
80-
- TERMINATE_CHARGE_ALARM
81-
- TERMINATE_DISCHARGE_ALARM
94+
Full Charge Capacity: 5545 mAh
95+
Remaining Capacity: 5102 mAh
96+
Relative Charge(%): 92
97+
Absolute Charge(%): 77
98+
Minutes remaining until empty: 2915 min
99+
Average minutes remaining until empty: 2943 min
100+
Minutes remaining for full charge: Battery not beeing (dis)charged
101+
Battery Status (BIN): 0b11000000
82102
- Initialized
83103
- Discharging
84-
- Fully Charged
85-
Voltage: 12.253
86-
Current (mA): 0
87-
Temperature (C): 24.85
88-
State of Health: 4084
89-
Cell 1 Voltage: 4.084
90-
Cell 2 Voltage: 4.085
91-
Cell 3 Voltage: 4.084
104+
Voltage: 12.212 V
105+
Current: -105 mA
106+
Average Current of last minute: -104 mA
107+
Temperature: 25.95 C
108+
109+
*** DYNAMIC NON STANDARD INFO ***
110+
Cell 1 Voltage: 4.074 V
111+
Cell 2 Voltage: 4.070 V
112+
Cell 3 Voltage: 4.068 V
113+
Cell 4 Voltage: 0.000 V
114+
State of Health: 0
92115
93116
*** CHANGED VALUES ***
117+
Remaining Capacity: 5101 mAh
118+
Minutes remaining until empty: 2914 min
119+
Average minutes remaining until empty: 2942 min
120+
Average minutes remaining until empty: 2914 min
121+
Voltage: 12.209 V
122+
Remaining Capacity: 5099 mAh
123+
Minutes remaining until empty: 2913 min
124+
Average minutes remaining until empty: 2913 min
94125
```
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
START ../src/SBMInfo.cpp
2+
Version 1.1 from Jul 25 2018
3+
I2C initalized sucessfully
4+
Found attached I2C device at 0xB
5+
6+
*** STATIC INFO ***
7+
Chemistry: LION
8+
Manufacturer Name: GW
9+
Manufacturer Data: �A;0�  � �& - 0x86 41 3B 30 FF 1E 0 11 0 C8 0 AC 26
10+
Device Name: DELL 0
11+
Serial Number: 46
12+
Manufacture Date (YYYY-MM-DD): 2012-9-12
13+
Design Capacity: 6600 mAh
14+
Design Voltage: 11.100 V
15+
Charging Current: 4100 mA
16+
Charging Voltage: 12.600 V
17+
Specification Info: 33
18+
Cycle Count: 39
19+
Max Error of charge calculation (%): 8
20+
RemainingTimeAlarm: 10 min
21+
Remaining Capacity Alarm: 660 mAh
22+
Battery Mode (BIN): 0b110000000000000
23+
- Battery OK
24+
- Disable AlarmWarning broadcast to Host and Smart Battery Charger
25+
- Disable broadcasts of ChargingVoltage and ChargingCurrent to Smart Battery Charger
26+
Pack Status (BIN): 0b1000011010010000
27+
28+
*** MANUFACTURER INFO ***
29+
Device Type: 2084 / 0x824
30+
Controller IC identified by device type: bq2084
31+
End of Discharge Voltage Level: 9.900 V
32+
33+
Firmware Version: 1.50
34+
Manufacturer Status (BIN): 0b0
35+
- FET Status 0
36+
- State: 0b0
37+
38+
*** RATE TEST INFO ***
39+
Setting AT rate to 100 mAh
40+
TimeToFull at rate: 265 min
41+
Setting AT rate to -100 mAh
42+
TimeToEmpty at rate: 3061 min
43+
Can be delivered for 10 seconds at rate: 1
44+
45+
*** DYNAMIC INFO ***
46+
Full Charge Capacity: 5545 mAh
47+
Remaining Capacity: 5102 mAh
48+
Relative Charge(%): 92
49+
Absolute Charge(%): 77
50+
Minutes remaining until empty: 2915 min
51+
Average minutes remaining until empty: 2943 min
52+
Minutes remaining for full charge: Battery not beeing (dis)charged
53+
Battery Status (BIN): 0b11000000
54+
- Initialized
55+
- Discharging
56+
Voltage: 12.212 V
57+
Current: -105 mA
58+
Average Current of last minute: -104 mA
59+
Temperature: 25.95 C
60+
61+
*** DYNAMIC NON STANDARD INFO ***
62+
Cell 1 Voltage: 4.074 V
63+
Cell 2 Voltage: 4.070 V
64+
Cell 3 Voltage: 4.068 V
65+
Cell 4 Voltage: 0.000 V
66+
State of Health: 0
67+
68+
*** CHANGED VALUES ***
69+
Remaining Capacity: 5101 mAh
70+
Minutes remaining until empty: 2914 min
71+
Average minutes remaining until empty: 2942 min
72+
Average minutes remaining until empty: 2914 min
73+
Voltage: 12.209 V
74+
Remaining Capacity: 5099 mAh
75+
Minutes remaining until empty: 2913 min
76+
Average minutes remaining until empty: 2913 min

extras/HP_charged_SBMInfo.log

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
START ../src/SBMInfo.cpp
2+
Version 1.1 from Jul 25 2018
3+
I2C initalized sucessfully
4+
Found attached I2C device at 0xB
5+
6+
*** STATIC INFO ***
7+
Chemistry: LION
8+
Manufacturer Name: DP-SDI51
9+
Manufacturer Data: �] 1g� � 9 - 0x83 5D B 31 67 14 96 11 0 C8 0 1A 39
10+
Device Name: Vail
11+
Serial Number: 24156
12+
Manufacture Date (YYYY-MM-DD): 2008-2-2
13+
Design Capacity: 5100 mAh
14+
Design Voltage: 14.400 V
15+
Charging Current: 100 mA
16+
Charging Voltage: 16.800 V
17+
Specification Info: 33
18+
Cycle Count: 195
19+
Max Error of charge calculation (%): 2
20+
RemainingTimeAlarm: 10 min
21+
Remaining Capacity Alarm: 510 mAh
22+
Battery Mode (BIN): 0b100000001
23+
- Internal Charge Controller Supported
24+
- Battery OK
25+
- Charge Controller Enabled
26+
Pack Status (BIN): 0b1000001110110000
27+
28+
*** MANUFACTURER INFO ***
29+
Device Type: 2084 / 0x824
30+
Controller IC identified by device type: bq2084
31+
End of Discharge Voltage Level: 14.618 V
32+
33+
Firmware Version: 1.43
34+
Manufacturer Status (BIN): 0b0
35+
- FET Status 0
36+
- State: 0b0
37+
38+
*** RATE TEST INFO ***
39+
Setting AT rate to 100 mAh
40+
TimeToFull at rate: 26 min
41+
Setting AT rate to -100 mAh
42+
TimeToEmpty at rate: 1953 min
43+
Can be delivered for 10 seconds at rate: 1
44+
45+
*** DYNAMIC INFO ***
46+
Full Charge Capacity: 3299 mAh
47+
Remaining Capacity: 3255 mAh
48+
Relative Charge(%): 99
49+
Absolute Charge(%): 64
50+
Minutes remaining until empty: Battery not beeing (dis)charged
51+
Average minutes remaining until empty: Battery not beeing (dis)charged
52+
Minutes remaining for full charge: Battery not beeing (dis)charged
53+
Battery Status (BIN): 0b100000011100000
54+
- TERMINATE_CHARGE_ALARM
55+
- Initialized
56+
- Discharging
57+
- Fully Charged
58+
Voltage: 16.638 V
59+
Current: 0 mA
60+
Average Current of last minute: 0 mA
61+
Temperature: 27.15 C
62+
63+
*** DYNAMIC NON STANDARD INFO ***
64+
Cell 1 Voltage: 4.165 V
65+
Cell 2 Voltage: 4.155 V
66+
Cell 3 Voltage: 4.159 V
67+
Cell 4 Voltage: 4.160 V
68+
State of Health: 4160
69+
70+
*** CHANGED VALUES ***

0 commit comments

Comments
 (0)