Site Tools


Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
echecker:derbycycle:echecker

This is an old revision of the document!


echecker

eChecker bei DerbyCycle. Alle eChecker müssen gleich konfiguriert sein. Erlaubte Abweichungen:

  • IP-Adresse
  • Stand-ID
  • /etc/hostname
  • /etc/hosts

Setup

udev

Interface regeln. Wir wollen, dass der Port LAN1 eth0 und LAN2 eth1 wird. /etc/udev/rules.d/70-persistent-net.rules

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:60:6e:f9:81:ad", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:60:6e:fa:3c:d0", NAME="eth1"

Interfaces

IP's siehe Derby Cycle /etc/network/interfaces

auto eth0
iface eth0 inet static
        address 172.10.3.123
        netmask 255.255.0.0
        gateway 172.10.0.6
        dns-nameservers 172.10.1.94
        dns-search ec.dcw.local

hosts

/etc/hosts Diese Zeile hinzufügen.

172.10.1.94     ecsrv # Shared IP

Cronjobs

Root's cronjobs:

# m h  dom mon dow   command
20 0 * * * /usr/sbin/ntpdate -s time
@reboot /usr/sbin/ntpdate -s time

Stand-Konfiguration

Frontend

  • /opt/echecker2/frontend/lib/function/configuration/config.php Stand-ID, MySQL Zugang für Frontend
# MySQL
$dbhost = "ecsrv";
$dbport = 3306;
$dbuser = "echecker";
$dbpass = "ahZ4chah";
$dbname = "db_echecker";
$dbtimeout = 2;
# Memcache (Livedaten)
$memcache_host = "localhost";
$memcache_port = 11211;
# Session
$session_cookiename = "echecker-login";
$session_timeout = 60*30;

# eChecker
$pstd_id = 42; # Prüfstand ID (null falls nicht Prüfstand)
(...)

Backend

  • /opt/echecker2/backend/interface/custconfig.py MySQL Zugang für Backend, APILVL, Bremse, co.
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Kunden-Konfigurationsdatei
# Dynamische Konfigurationen hier machen!
# Wird am ende von config.py importiert.

MYSQL_HOST = "ecsrv"
MYSQL_USER = "echecker"
MYSQL_PASSWD = "ahZ4chah"
MYSQL_DBNAME = "db_echecker"

BIRNE = False # Auskommentieren falls keine Birne
#SOLL_KRIECH=1700 # Sollwert Kriechgang

APILVL=14
LIMIT_A1=[300,4000]
LIMIT_A2=[300,4000]
LIMIT_SCANNER=[0,7300]
KA_encoder=72
V_rolle=True

####
# Bremsenkonfiguration
# Bremse Typ 1:
# - Schritte: 28000
# - kein Endschalter
#TYP_BREMSE=1
#LIMIT_BREMSE=[0,28000]

# Bremse Typ 2:
# - Schritte: 35000
# - Endschalter
TYP_BREMSE=2
LIMIT_BREMSE=[0,32000]

# Server Prüfungsexport url (%d = pdid)
SRV_PRUEFEXPORT_URL = "http://ecsrv/public/pruefexport/%s"
echecker/derbycycle/echecker.1481818963.txt.gz · Last modified: 2024/04/15 00:43 (external edit)