Skip to content

Commit 212baa7

Browse files
authored
Merge pull request #53 from jimklimov/ddl-pijuice
PiJuice/*: Add some PiJuice HAT reports (old and new)
2 parents 5321eb9 + 82e39e0 commit 212baa7

7 files changed

Lines changed: 499 additions & 0 deletions
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# DEVICE:URL:REPORT: https://github.com/networkupstools/nut/pull/730
2+
# DEVICE:URL:VENDOR: https://uk.pi-supply.com/products/pijuice-standard
3+
4+
# DEVICE:COMMENT-BLOCK:UPSCONF:
5+
# [hat]
6+
# driver = pijuice
7+
# port = /dev/i2c-1
8+
# desc = "PiJuice HAT"
9+
# DEVICE:EOC
10+
11+
battery.capacity: 1.820
12+
battery.charge: 93.7
13+
battery.charge.low: 25
14+
battery.charger.status: resting
15+
battery.current: 0.010
16+
battery.packs: 1
17+
battery.packs.bad: 0
18+
battery.temperature: 48
19+
battery.type: LiPO
20+
battery.voltage: 4.113
21+
battery.voltage.nominal: 4.180
22+
device.mfr: PiJuice
23+
device.type: HAT
24+
driver.name: pijuice
25+
driver.parameter.pollinterval: 2
26+
driver.parameter.port: /dev/i2c-1
27+
driver.parameter.synchronous: no
28+
driver.version: 2.7.4-731-gc0a0e56
29+
driver.version.internal: 0.9
30+
input.current: 1.727
31+
input.voltage: 5.014
32+
ups.date: 2019-09-12
33+
ups.firmware: 1.3
34+
ups.mfr: PiJuice
35+
ups.status: HB OL
36+
ups.time: 23:53:56.92
37+
ups.type: HAT
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# DEVICE:URL:REPORT: https://github.com/PiSupply/PiJuice/issues/124#issuecomment-1018603688
2+
# DEVICE:URL:VENDOR: https://uk.pi-supply.com/products/pijuice-standard
3+
4+
# DEVICE:COMMENT-BLOCK:UPSCONF:
5+
# [hat]
6+
# driver = pijuice
7+
# port = /dev/i2c-1
8+
# desc = "PiJuice HAT"
9+
# DEVICE:EOC
10+
11+
battery.capacity: 1.000 #BAD: Actual battery was 1820 mAh; possibly wrong DIP switch combo was in place to configure the HAT
12+
battery.charge: 5.0
13+
battery.charge.low: 25
14+
battery.charger.status: charging
15+
battery.current: -0.168
16+
battery.packs: 1
17+
battery.packs.bad: 0
18+
battery.temperature: 56
19+
battery.type: LiPO
20+
battery.voltage: 3.648
21+
battery.voltage.nominal: 4.180
22+
device.mfr: PiJuice
23+
device.type: HAT
24+
driver.name: pijuice
25+
driver.parameter.pollinterval: 2
26+
driver.parameter.port: /dev/i2c-1
27+
driver.parameter.synchronous: no
28+
driver.version: 2.7.4-4385-g2bd17f540
29+
driver.version.internal: 0.9
30+
input.current: -0.592
31+
input.voltage: 4.966
32+
ups.date: 2022-01-21
33+
ups.firmware: 1.4
34+
ups.mfr: PiJuice
35+
ups.status: LB OL CHRG
36+
ups.time: 15:15:44.88
37+
ups.type: HAT
Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
# DEVICE:URL:REPORT: https://github.com/PiSupply/PiJuice/issues/124#issuecomment-1018603688
2+
# DEVICE:URL:VENDOR: https://uk.pi-supply.com/products/pijuice-standard
3+
4+
# DEVICE:COMMENT-BLOCK:UPSCONF:
5+
# [hat]
6+
# driver = pijuice
7+
# port = /dev/i2c-1
8+
# desc = "PiJuice HAT"
9+
# DEVICE:EOC
10+
11+
# DEVICE:COMMENT-BLOCK: DRIVER START LOG
12+
# 0.000000 [D5] send_to_all: SETINFO driver.parameter.port "/dev/i2c-1"
13+
# 0.000247 [D1] debug level is '6'
14+
# 0.001303 [D5] send_to_all: SETINFO device.type "ups"
15+
# 0.001446 [D3] get_firmware_version
16+
# 0.002954 Unknown Firmware release: 1.4
17+
# 0.003016 [D1] UPS Firmware Version: 1.4
18+
# 0.003074 [D5] send_to_all: SETINFO ups.firmware "1.4"
19+
# 0.003136 [D5] send_to_all: SETINFO driver.version "2.7.4-4385-g2bd17f540"
20+
# 0.003195 [D5] send_to_all: SETINFO driver.version.internal "0.9"
21+
# 0.003252 [D5] send_to_all: SETINFO driver.name "pijuice"
22+
# 0.003309 [D5] send_to_all: SETINFO ups.mfr "PiJuice"
23+
# 0.003365 [D5] send_to_all: SETINFO ups.type "HAT"
24+
# 0.003422 [D5] send_to_all: SETINFO device.mfr "PiJuice"
25+
# 0.003477 [D5] send_to_all: SETINFO device.type "HAT"
26+
# 0.003533 [D1] Low Battery Threshold: 25%
27+
# 0.003589 [D5] send_to_all: SETINFO battery.charge.low "25"
28+
# 0.003642 [D1] Nominal Battery Voltage: 4.180V
29+
# 0.003697 [D5] send_to_all: SETINFO battery.voltage.nominal "4.180"
30+
# 0.003747 [D3] get_i2c_address
31+
# 0.004934 [D1] I2C Address: 0x14
32+
# 0.005001 [D1] Found device '0x14' on port '/dev/i2c-1'
33+
# 0.005049 [D3] get_battery_profile
34+
# 0.009196 [D1] Battery Capacity: 1.820Ah
35+
# 0.009271 [D5] send_to_all: SETINFO battery.capacity "1.820"
36+
# 0.009321 [D3] get_battery_profile_ext
37+
# 0.014312 [D1] Battery Chemistry: LiPO
38+
# 0.014389 [D5] send_to_all: SETINFO battery.type "LiPO"
39+
# 0.014444 [D3] get_status
40+
# 0.015638 [D1] Battery Status: Normal
41+
# 0.015703 [D5] send_to_all: SETINFO battery.packs "1"
42+
# 0.015763 [D5] send_to_all: SETINFO battery.packs.bad "0"
43+
# 0.015814 [D1] Power Input: Not Present
44+
# 0.015862 [D1] Power Input 5v: Present
45+
# 0.015910 [D3] get_charge_level_hi_res
46+
# 0.017323 [D1] Battery Charge Level: 51.0%
47+
# 0.017389 [D5] send_to_all: SETINFO battery.charge "51.0"
48+
# 0.017437 On USB power
49+
# 0.017548 [D1] On USB power [1:0:0]
50+
# 0.017599 [D1] Battery Charger Status: resting
51+
# 0.017653 [D5] send_to_all: SETINFO battery.charger.status "resting"
52+
# 0.017698 [D3] get_battery_temperature
53+
# 0.018972 [D1] Battery Temperature: 123°C
54+
# 0.019030 [D5] send_to_all: SETINFO battery.temperature "123"
55+
# 0.019074 [D3] get_battery_voltage
56+
# 0.020351 [D1] Battery Voltage: 3.700V
57+
# 0.020406 [D5] send_to_all: SETINFO battery.voltage "3.700"
58+
# 0.020448 [D3] get_battery_current
59+
# 0.021728 [D1] Battery Current: 0.264A
60+
# 0.021791 [D5] send_to_all: SETINFO battery.current "0.264"
61+
# 0.021834 [D3] get_io_voltage
62+
# 0.023122 [D1] Input Voltage: 4.994V
63+
# 0.023176 [D5] send_to_all: SETINFO input.voltage "4.994"
64+
# 0.023219 [D3] get_io_current
65+
# 0.024520 [D1] Input Current: 0.064A
66+
# 0.024578 [D5] send_to_all: SETINFO input.current "0.064"
67+
# 0.024621 [D3] get_time
68+
# 0.027337 [D1] UPS Time: 21:48:40.41
69+
# 0.027400 [D5] send_to_all: SETINFO ups.time "21:48:40.41"
70+
# 0.027445 [D1] UPS Date: 2022-01-21
71+
# 0.027493 [D5] send_to_all: SETINFO ups.date "2022-01-21"
72+
# 0.027536 [D3] get_power_off
73+
# 0.028605 [D1] Power Off: DISABLED
74+
# 0.028660 [D5] send_to_all: SETINFO ups.status "OL"
75+
# 0.028705 [D5] send_to_all: DATAOK
76+
# 0.028754 [D5] send_to_all: SETINFO driver.parameter.pollinterval "2"
77+
# 0.028803 [D5] send_to_all: SETINFO driver.parameter.synchronous "no"
78+
# 0.028851 [D3] get_status
79+
# 0.029951 [D1] Battery Status: Normal
80+
# 0.030010 [D1] Power Input: Not Present
81+
# 0.030052 [D1] Power Input 5v: Present
82+
# 0.030092 [D3] get_charge_level_hi_res
83+
# 0.031379 [D1] Battery Charge Level: 51.0%
84+
# 0.031431 [D1] On USB power [1:0:0]
85+
# 0.031472 [D1] Battery Charger Status: resting
86+
# 0.031516 [D3] get_battery_temperature
87+
# 0.032790 [D1] Battery Temperature: 251°C
88+
# 0.032845 [D5] send_to_all: SETINFO battery.temperature "251"
89+
# 0.032888 [D3] get_battery_voltage
90+
# 0.034167 [D1] Battery Voltage: 3.828V
91+
# 0.034228 [D5] send_to_all: SETINFO battery.voltage "3.828"
92+
# 0.034270 [D3] get_battery_current
93+
# 0.035546 [D1] Battery Current: 0.264A
94+
# 0.035596 [D3] get_io_voltage
95+
# 0.036884 [D1] Input Voltage: 4.991V
96+
# 0.036937 [D5] send_to_all: SETINFO input.voltage "4.991"
97+
# 0.036979 [D3] get_io_current
98+
# 0.038280 [D1] Input Current: 0.064A
99+
# 0.038387 [D3] get_time
100+
# 0.041102 [D1] UPS Time: 21:48:40.39
101+
# 0.041158 [D5] send_to_all: SETINFO ups.time "21:48:40.39"
102+
# 0.041202 [D1] UPS Date: 2022-01-21
103+
# 0.041247 [D3] get_power_off
104+
# 0.042321 [D1] Power Off: DISABLED
105+
# 0.042380 [D3] get_status
106+
# 0.043475 [D1] Battery Status: Normal
107+
# 0.043527 [D1] Power Input: Not Present
108+
# 0.043568 [D1] Power Input 5v: Present
109+
# 0.043610 [D3] get_charge_level_hi_res
110+
# 0.044899 [D1] Battery Charge Level: 51.0%
111+
# 0.044952 [D1] On USB power [1:0:0]
112+
# 0.044994 [D1] Battery Charger Status: resting
113+
# 0.045038 [D3] get_battery_temperature
114+
# 0.046314 [D1] Battery Temperature: 251°C
115+
# 0.046372 [D3] get_battery_voltage
116+
# 0.047647 [D1] Battery Voltage: 3.700V
117+
# 0.047701 [D5] send_to_all: SETINFO battery.voltage "3.700"
118+
# 0.047743 [D3] get_battery_current
119+
# 0.049021 [D1] Battery Current: 0.264A
120+
# 0.049071 [D3] get_io_voltage
121+
# 0.050360 [D1] Input Voltage: 4.988V
122+
# 0.050420 [D5] send_to_all: SETINFO input.voltage "4.988"
123+
# 0.050462 [D3] get_io_current
124+
# 0.051760 [D1] Input Current: 0.064A
125+
# 0.051812 [D3] get_time
126+
# 0.054527 [D1] UPS Time: 21:48:40.38
127+
# 0.054588 [D5] send_to_all: SETINFO ups.time "21:48:40.38"
128+
# 0.054633 [D1] UPS Date: 2022-01-21
129+
# 0.054678 [D3] get_power_off
130+
# 0.055747 [D1] Power Off: DISABLED
131+
# 0.055797 [D3] Entering dstate_dump
132+
# DEVICE:EOC
133+
134+
battery.capacity: 1.820 #BAD: Actual battery was 12000 mAh; possibly wrong DIP switch combo was in place to configure the HAT
135+
battery.charge: 51.0 #BAD: (?) Not 100% but charger is "resting"...
136+
battery.charge.low: 25
137+
battery.charger.status: resting
138+
battery.current: 0.264
139+
battery.packs: 1
140+
battery.packs.bad: 0
141+
battery.temperature: 251 #BAD: Probably a 10x factor error
142+
battery.type: LiPO
143+
battery.voltage: 3.700
144+
battery.voltage.nominal: 4.180
145+
device.mfr: PiJuice
146+
device.type: HAT
147+
driver.name: pijuice
148+
driver.parameter.pollinterval: 2
149+
driver.parameter.port: /dev/i2c-1
150+
driver.parameter.synchronous: no
151+
driver.version: 2.7.4-4385-g2bd17f540
152+
driver.version.internal: 0.9
153+
input.current: 0.064
154+
input.voltage: 4.988
155+
ups.date: 2022-01-21
156+
ups.firmware: 1.4
157+
ups.mfr: PiJuice
158+
ups.status: OL
159+
ups.time: 21:48:40.38
160+
ups.type: HAT
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# DEVICE:URL:REPORT: https://github.com/PiSupply/PiJuice/issues/124#issuecomment-2019031200
2+
# DEVICE:URL:VENDOR: https://uk.pi-supply.com/products/pijuice-standard
3+
4+
# DEVICE:COMMENT-BLOCK:UPSCONF:
5+
# # Using NUT v2.8.0 packaged in Debian 12 (Bookworm)
6+
# [pijuice-ups]
7+
# driver = pijuice
8+
# port = /dev/i2c-1
9+
# desc = "PiJuice HAT"
10+
# DEVICE:EOC
11+
12+
battery.capacity: 1.000
13+
battery.charge: 96.8
14+
battery.charge.low: 25
15+
battery.charger.status: resting
16+
battery.current: 0.000
17+
battery.packs: 1
18+
battery.packs.bad: 0
19+
battery.temperature: -232
20+
battery.type: LiPO
21+
battery.voltage: 4.128
22+
battery.voltage.nominal: 4.180
23+
device.mfr: PiJuice
24+
device.type: HAT
25+
driver.name: pijuice
26+
driver.parameter.pollinterval: 2
27+
driver.parameter.port: /dev/i2c-1
28+
driver.parameter.synchronous: auto
29+
driver.version: 2.8.0
30+
driver.version.internal: 0.10
31+
input.current: 2.987
32+
input.voltage: 5.227
33+
ups.date: 2024-03-25
34+
ups.firmware: 1.6
35+
ups.mfr: PiJuice
36+
ups.status: HB OL
37+
ups.time: 22:28:16.44
38+
ups.type: HAT
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# DEVICE:URL:VENDOR: https://uk.pi-supply.com/products/pijuice-standard
2+
3+
battery.capacity: 12.000
4+
battery.charge: 22.8
5+
battery.charge.low: 25
6+
battery.charger.status: charging
7+
battery.current: -0.915 #BAD: Not really bad, battery is charging over GPIO with power plugged into Pi itself, not the HAT
8+
battery.packs: 1
9+
battery.packs.bad: 0
10+
battery.temperature: -213 #BAD: Probably a 10x factor error, and for some reason inverted (also in vendor tools, says -2*C there though - a 100x factor?)
11+
battery.type: LiPO
12+
battery.voltage: 3.757
13+
battery.voltage.nominal: 4.180
14+
device.mfr: PiJuice
15+
device.type: HAT
16+
driver.debug: 0
17+
driver.flag.allow_killpower: 0
18+
driver.name: pijuice
19+
driver.parameter.pollinterval: 2
20+
driver.parameter.port: /dev/i2c-1
21+
driver.parameter.synchronous: auto
22+
driver.state: dumping
23+
driver.version: 2.8.3.446-446+g10ac93004
24+
driver.version.internal: 0.14
25+
input.current: -0.314 #BAD: Not really bad, battery is charging over GPIO with power plugged into Pi itself, not the HAT
26+
input.voltage: 5.022
27+
ups.date: 2000-01-01 #BAD: HAT RTC clock not set yet
28+
ups.firmware: 1.6
29+
ups.mfr: PiJuice
30+
ups.status: LB OL CHRG
31+
ups.time: 02:31:41.24
32+
ups.type: HAT
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# DEVICE:URL:VENDOR: https://uk.pi-supply.com/products/pijuice-standard
2+
3+
battery.capacity: 12.000
4+
battery.charge: 53.1
5+
battery.charge.low: 25
6+
battery.charger.status: charging
7+
battery.current: -0.377 #BAD: Not really bad, battery is charging over GPIO with power plugged into Pi itself, not the HAT
8+
battery.packs: 1
9+
battery.packs.bad: 0
10+
battery.temperature: -215
11+
battery.type: LiPO
12+
battery.voltage: 3.878
13+
battery.voltage.nominal: 4.180
14+
device.mfr: PiJuice
15+
device.type: HAT
16+
driver.debug: 0
17+
driver.flag.allow_killpower: 0
18+
driver.name: pijuice
19+
driver.parameter.pollinterval: 2
20+
driver.parameter.port: /dev/i2c-1
21+
driver.parameter.synchronous: auto
22+
driver.state: quiet
23+
driver.version: 2.8.3.451-451+g4e43368c4
24+
driver.version.internal: 0.14
25+
input.current: 0.071 #BAD: Not really bad, battery is charging over GPIO with power plugged into Pi itself, not the HAT; the reported current fluctuates (and even the sign changes) as the battery gets more full
26+
input.voltage: 5.025
27+
ups.date: 2025-06-11
28+
ups.firmware: 1.6
29+
ups.mfr: PiJuice
30+
ups.status: OL CHRG
31+
ups.time: 06:37:21.27
32+
ups.type: HAT

0 commit comments

Comments
 (0)