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
Setting-up the ETR SAS
To set-up the
ETR SAS
user need to continue with some simple steps. Current firmware
implementation requires I
2
C interface, however to simplify the settings-up, a monitoring of
settings is implemented also via serial port. It is not necessary to use this monitoring tool,
however it is very usefully, as each setting up step is confirmed by messages send to the Serial
Terminal. It is also possible to use a simple python script that is printing out on the SSH the
status read from the I
2
C (and then the Serial Port Terminal
–
i.e. minicom
–
is not needed).
If user like to use this Serial Port Monitoring option, then need to activate the Serial Port on
the
UPS PIco HV3.0A HAT
, and
make available the serial port on the Raspberry Pi®
, as also
start second SSH session where the minicom will be running. To do that please follow below
steps:
Make sure that the serial port in Raspberry Pi® is free for u
ser application. This task has been
described in very details in the chapter related to the firmware update.
Make sure that i.e. minicom is installed
sudo apt-get install minicom
Activate the Serial Port in the
UPS PIco HV3.0A HAT
i.e. to
38400
bps
sudo i2cset -y 1 0x6b 0x02 0x04
Start second SSH session or terminal and on the second SSH run the minicom
sudo minicom -b 38400 -o -D /dev/ttyAMA0
With or without monitoring, user can start the setting-up of the
ETR SAS
. To set-up it is needed
to program
ETR SAS
registers for depending application need to be time scheduled.
There are 4, independent timed,
ETR SASs
called
Schedules
running at the same time. Only
these ones that has been activated will be executed (so if user activate the SAS0 - will be
executed the SAS0 only, if user activate the SAS0 and SAS1
–
will be executed SAS0 and SAS1,
etc.). They need to be setup to have a working system (only those are used). After
programming user need to set the
Scheduler
running (by setting ON the 0x6B -> UPS PIco 0x17
SAS RUN Register), and have
Schedules
to be executed. Therefore, if one or more ETR SAS is
not used, then need to be deactivated and not need to be set-up. The setup procedure is
executed for the selected
ETR SAS
, so to setup it; need to be selected one, and this one that
will be programmed (set-up). There is no need to program all
ETR SAS
, just these ones that
will be running (used). If one or more ETR SAS selected to be used, user need to set its number
on the selection register placed on the
0x6b
address and location
0x16
, each one when
programming it.