UPS PIco HV3.0A Firmware Code 040 Print Date 18.08.2017
Designed and Manufactured by PiModules and ModMyPi
www.pimodules.com www.modmypi.com
4.
Enter
Month Date
for start, month day must be the same with actual or higher, and
not the past. Two digits in BCD format i.e. 10th should be 0x10 Allowed from 0x01
up to 0x31. Current version of firmware recognizes the leap year (so February as
28/29), as also end of months as 30/31 so user not need to take extra care to avoid
such mistakes. Just when entering the unproper Month Date, wrong data will be not
acceted.
sudo i2cset -y 1 0x6c 0x03 0x20
for starting month date (in BCD)
5.
Enter
Hour
for start, hour must be the same with actual or higher, and not the past.
Two digits in BCD format i.e. 20:00 should be 0x20. Allowed from 0x00 up to 0x23,
and always in 24h format.
sudo i2cset -y 1 0x6c 0x02 0x09
for starting hour (in BCD)
6.
Enter
Minute
for start, minute must be the same with actual or higher, and not the
past. Two digits in BCD format i.e. 59th should be 0x59. Allowed from 0x00 up to
0x59.
sudo i2cset -y 1 0x6c 0x01 0x59
for starting minute (in BCD)
7.
Use this simple command line (without any python script) to check the entered and
stored data at any time. User can write his own simple python script if needed. This
line can be executed at any time during entry process.
sudo i2cget -y 1 0x6c 0x05 && i2cget -y 1 0x6c 0x04 && i2cget -y 1 0x6c 0x03 &&
i2cget -y 1 0x6c 0x02 && i2cget -y 1 0x6c 0x01 && && i2cget -y 1 0x6c 0x00
Below steps enters Duration of Running and Repetition time.
0x6d -> ETR SAS Actions Running Time Stamp
The second
ETR SAS
registers set is the
Running Time Stamp
, located at
0x6d
. Acording to
specification of the 1
st
Example need to set below values:
Action Duration
= 0x0001;
means it will run for 1 minute
Action Repetition Time
= 0x02;
means it will be repeated afte 2 minutes from starting time
Action Multiplier
= 0x060;
means it will happen 60 times within the same Sequence
Sequence Repetition Time
= 0x24; means this (above described) sequence will be repeated every day
(every 24 hours).
The data entering should looks like below (it important to follow the below order to avoid
any mistake in programming):
1.
Enter
Action_Duration
to specify how long system must running from
1-1439
minutes.