Skip to content

Commit 1cca12b

Browse files
authored
Update README.md
1 parent f181ba0 commit 1cca12b

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

Software/README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,22 @@ where data are :
3030
- counter of i2c slave busy info : can increase slowly
3131
- counter of i2c frame error (first byte not equal to 1, second to 0x10 (version error), or checksum) : should stay at 0
3232
- 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.
4446

4547
<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 :
4749

4850
RaspPower.service into /etc/systemd/system with following access rights:<br/>
4951
-rw-r--r-- 1 root root 278 Jun 25 22:21 /etc/systemd/system/RaspPower.service
@@ -71,4 +73,4 @@ sudo systemctl enable RaspPower.service
7173
To launch it without waiting a reboot:<br/>
7274
sudo systemctl start RaspPower.service
7375

74-
76+
You are now reading to switch on/off your PI by changing the Vacc input voltage (threshold is 11 V +/- 0.5V)

0 commit comments

Comments
 (0)