Temperature Measurments
The temperature in the crate can be measured via temperaure
sensors that are attached to an ADC which, in turn, is attached
to the parallel port of a PC.
Configuration for Zeuthen (as of 01/03/20)
ADC : PICO ADC-11
Sensors : 3 x Tmp37
Host : apemaster0
Readout : linux kernel module
Readout:
On apemaster*, a kernel module is used to provide the decoded analog
values.
The module (tempsens) is loaded at boot time (see /etc/rc.d/tempsens)
and presents the values for each sensor under /proc/tempsens/ .
For each configured sensor there is a file with a name corresponding
to the sensor's number, e.g. /proc/tempsens/01 for sensor 1.
Reading the file triggers an ADC conversion (of all channels actually)
and the value is presented as the content of the file.
A special file /proc/tempsens/all list all configured sensor values
at once plus three reference values of the ADC.
The web page
http://www-zeuthen.desy.de/ape/cgi-bin/temp.cgi
lists the current readouts in color.
Config:
The kernel module can be loaded with the option 'sensors=m,n...',
giving a list of sensors. E.g.:
insmod tempsens.o sensors=0,1
will configure channel 0 and 1 only.
In the future setup (~ from Aug. 2001) the channels 6-10 will be used.
Module source:
CVSROOT=:ext:apem.ifh.de:/data/cvs
Admin:
On apemaster a cron-job (of user aperun) reads and stores all temperature
data every 2 minutes. Logs are in /zroot/tempsens/tempsens.*.log.
The script called by cron is /zroot/tempsens/tempcheck.sh .
This script also sends alert messages if the temperature raises above
some trigger value. (can be turned off by placing the file 'noalert'
into /zroot/tempsens/ )
This script STOPS THE MACHINE if teh trigger value is exceeded several times.