DIM-PVSS dictionary

(February 07 version)

This document is a working document between Pietro and Ombretta to define exactly data exchange between TOF Linux PC having optical link connection with TOF crates and top PVSS layer for TOF.

Crate FedServer specifications

All commands and services are accessible with postfix _ where <DRMID) ranges from 0 to 71. (nota: la lista seguente e' parzialmente incompleta perche' mancano molti comandi relativi a DRM FIXME).

Commands and services are based on a FSM organized at single VME slot level.

DIM Commands available ("single action") on Crate FedServer

Command Name Tag Comment
ENA_SLOT_xx 0  
SET_PDL_xx 1  
SET_ACQMODE_xx 2  
SET_THR_xx 3  
SET_MATCHWIN_xx 4  
ENA_CHAN_xx 6 First params specify VME slot, second channel nr (1-240)
SET_LATWIN_xx 8  

xx refers to CrateId

Even tags identify commands where only one value is submitted. It is always possible, when relevant, to submit a value lists. For example

ENA_SLOT_21 1 2 3

will enable slots 1, 2 e 3 on CrateId 21.

Odd tags identify commands where a pair of value is submitted. It is possible to specify pairs lists. For example

SET_PDL_18 8 10

will set PDL 8th to value 10 on CrateId 18.

ENA_CHAN 5

ENA_ commands follow convention that if a negative value is passed the target will be disabled. For example:

ENA_SLOT_31 -6

will disable slot 6 on CrateId 31

DIM Commands ("FSM" transition) available on Crate FedServer

These commands correspond to complex action, normally used during FSM State Transition. They apply to single slot and accept just a value (or a list of values).

Command Name Tag Comment
GOTO_STBY_CONFIGURED 64 A slot number (or a list of) as parameter.
GOTO_READY 66 A slot number (or a list of) as parameter. Only slots in SLOT_ENA_STBY_CONFIGURED will execute this command
CALIBRATE 70 For future use. No implementation foreseen currently
UPGRADEFW 72 For future use. No implementation foreseen currently
GOTO_STANDBY 74 To go back from CONFIGURED or READY
CONTROLFEECMD 128 A parameter lists to drive specific action will be specified.
A command to bring to RUN state all VME cards on Crate 37 will be

GOTO_READY_37 2 3 4 5 6 7 8 9 10 11 12 1

(order is important! 1 must be the last one)

DIM Commands ("PVSS" info ) available on Crate FedServer

These commands correspond (Bits 6 and 7 set) to information sent by the PVSS to make them available to the FedServer.

Command Name Tag Comment
DCS_COM_ 96 2 integer + 1 string (128 char)
SLOT_PW_ 100 A list of 12 Integer

The DCS_COM fields are type, param and a generic message. This generic command is used to distribute information as well as to send "super-commands" to the FED Software layer.

Below the defined types:

DCS_COM Type Param Generic message Action
0 N/A Message  
1 Run number N/A  
2 Run state Run state described by string  
129 Delay N/A Restart the VME server in seconds
130 Delay N/A Restart the DIM server in seconds
131 Delay N/A Shutdown the VME server in seconds
132 N/A N/A Force VME server to reload static FEE DB

The READY_LOCKED state for the top node of the FSM should generate the following DCS_COM message: 2 3 string

DIM Services available on TOF Crate FedServer

Service Name Description
TOF_SLOT_xx 12*INT DAQ Status (it is determined crossed enabling status with power status)
TOF_FEE_TEMP_xx data structure with temps read in TRM/LTM/DRM/FEAC
TOF_LTM_PAR_xx status LTM: delay, lv, gndFEAC, threshold
TOF_TRM_PAR_xx status TRM: canali abilitati, matching e latency window
TOF_VMECOM_xx VME comunication status: 0: crate not reachable 1: VME reachable (slot 1 ON AND com. ok)
TOF_CRATE_MSG_xx Message channel to PVSS as specified by FedServer API
TOF_CRATE_ACK_xx Ack channel to PVSS as specified by FedServer API

xx stands for crateId.

Please note that a custom msg type has been created (FED_MSG_BOOT = 0x80). This message is published when the vmesrv is booted. The PVSS application, when that message is published by crate xx, will force update of commands SLOT_PW_xx, signalling slot power status to the booted server.

A TOF_SLOT_xx (for each of its 12 values corresponding to the different slots) can assume the values listed in the table below

Value Symbolic Comment
0 SLOT_NOTENA_UNKNOWN Power status is not readable (DIM service declares crate is not reachable or DIM service not available
1 SLOT_ENA_UNKNOWN Power status is not readable (DIM service declares crate is not reachable or DIM service not available
2 SLOT_NOTENA_OFF  
3 SLOT_ENA_OFF  
4 SLOT_NOTENA_STANDBY  
5 SLOT_ENA_STANDBY  
6 SLOT_NOTENA_STBY_CONFIGURED  
7 SLOT_ENA_STBY_CONFIGURED  
8 N/A A not enabled slot cannot be in READY mode...
9 SLOT_ENA_READY  

Nota per la procedura di START/STOP RUN

* quando viene inviata una richiesta di START run di ALICE da ECS a DAQ, AliceTOFDCS e TRIGGER, il AliceTOFDCS TOF dara' l'ok all'ECS a procedere alla DAQ di TOF solo e soltanto quando per tutti i crate TOF inclusi, tutti gli slot inclusi nella configurazione richiesta saranno in READY mode e non prima. * quando viene inviata una richiesta di STOP run di ALICE da ECS a DAQ, AliceTOFDCS e TRIGGER, il AliceTOFDCS TOF inviera' ai crate TOF il comando GOTO_STDBY_CONFIGURED a un dato crate soltanto dopo che la DAQ avra' dichiarato che tale crate (cioe' quella data DDL) non e' piu' in data taking.

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2007-10-18 - PietroAntonioli
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    AliceTOF All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback