You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Software/README.md
+15-13Lines changed: 15 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,20 +30,22 @@ where data are :
30
30
- counter of i2c slave busy info : can increase slowly
31
31
- counter of i2c frame error (first byte not equal to 1, second to 0x10 (version error), or checksum) : should stay at 0
32
32
- 11 byte array :
33
-
- 1 (frame is OK)
34
-
- 16 (frame protocol version 0x10)
35
-
- buffer update counter : incremented every 100 ms
36
-
- high byte of Vacc value (unit: tenth of volt)
37
-
- low byte of Vacc value (unit: tenth of volt)
38
-
- timer used to validate change of Vacc_Status (unit : 100ms)
39
-
- Vacc_Status
40
-
- high byte of shutting down timer (unit: 1s)
41
-
- low byte of shutting down timer (unit : 1s)
42
-
- Power Status : 1=ON, 2=shutdown requested
43
-
- chksum (XOR of above bytes)
33
+
- 0: 1 (frame is OK)
34
+
- 1: 16 (frame protocol version 0x10)
35
+
- 2: buffer update counter : incremented every 100 ms
36
+
- 3: high byte of Vacc value (unit: tenth of volt)
37
+
- 4: low byte of Vacc value (unit: tenth of volt)
38
+
- 5: timer used to validate change of Vacc_Status (unit : 100ms)
39
+
- 6: Vacc_Status
40
+
- 7: high byte of shutting down timer (unit: 1s)
41
+
- 8: low byte of shutting down timer (unit : 1s)
42
+
- 9: Power Status : 1=ON, 2=shutdown requested
43
+
- 10: chksum (XOR of above bytes)
44
+
45
+
Remark : if byte 9 equal 2, shutting down is requested. Power supply will be switch off as soon as GPIO26 becomes low or shutting down timer is expired (to avoid to dry the battery in case of PI software issue), even if Vacc becomes high again. In this case PI will be powered again and retstart immediately after shutdown.
44
46
45
47
<h2>Setup of the service</h2>
46
-
You need to copy following files :
48
+
To have a service continously monitoring Vacc and managing shutdown, you need to copy following files :
47
49
48
50
RaspPower.service into /etc/systemd/system with following access rights:<br/>
49
51
-rw-r--r-- 1 root root 278 Jun 25 22:21 /etc/systemd/system/RaspPower.service
0 commit comments