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
0x16
SAS_number
Byte
Common
R/W
Define the current ETR SAS that is programmed
or read. Default is 0. Allowed number are
0,1,2,3.
0x17
SAS_RUN
Byte
Common
R/W
Specify when
Scheduler
is running or not.
Default is 0x00 (not running). Allowed values
are 0x00 and 0x01
0x18
Next_Action_Rtime
Word
Mirror
R/W
Specify the minutes of the next Action in
minutes if it is less than 24 hours to their
execution (1439 minutes or less)
0x19
Time_Scheduler_Selector
Byte
Common
R/W
Selects which
Scheduler
is used:
-
0x00 (default) Basic Scheduler
-
0x01 ETR SAS
Only one can be selected, and each
programming is referred to it.
Table 13 ETR SAS Registers in the 0x6B set
First, user need to make selected the ETR SAS by writing to the
Time_Scheduler_Selector
register. Two values are possible 0x00 (default value)
–
which means
Basic Scheduler
,
or 0x01
–
which means
Event Triggered RTC Based System Actions Scheduler
. Setting of it is necessary
to select the proper System Time Scheduler. For the case of the ETR SAS (current examples),
the following should be done
sudo i2cset -y 1 0x6b 0x19 0x01
to select
ETR SAS
Before user start programming or reading anything need to select the
SAS_number
by writing
to it required number (i.e. 0x00) that all steps are referring to it.
sudo i2cset -y 1 0x6b 0x16 0x00
The 0x00 is the default value set by the
UPS PIco HV3.0A HAT
firmware. Each below
programming steps will be addressed to this one selected with above command.
This follows all programing steps as described below. All of them are specified to selected
SAS_number
.
Here below are presented step by step programming each of examples defined above.
Setting-up them user should know that each entry is basically protected from wrong data
entering. If user write a wrong data system will inform about it, with multiple blinking of User
LEDs (all three) and long beep, alternatively if data are accepted it will just blink once and
short beep. In addition, messages are send over the PIco Serial Port to the Raspberry Pi®.
However, system is not protected from any kind of user mistakes, therefore it is usefully to
use the given empty paper printed template (in PDF format) to have a better view of your
current under preparation Schedule.