Development of the DAQ software for the technical prototype: Status & Outlook Valeria Bartsch UCL.

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

Off-detector & Software development of DAQ System for the EUDET calorimeters Tao Wu On behalf of CALICE-UK Collaboration.
HEP UCL Cambridge University Imperial College London University of Manchester Royal Holloway, University of London University College London Matthew Warren,
Slow Control LHCf Catania Meeting - July 04-06, 2009 Lorenzo Bonechi.
Vincent Boudry Franck Gastaldi Antoine Matthieu David Decotigny CALICE meeting 19 feb Kyungpook Nat'l U., Daegu, Korea Status of the Data Concentrator.
Computer Monitoring System for EE Faculty By Yaroslav Ross And Denis Zakrevsky Supervisor: Viktor Kulikov.
1 Overview of DAQ system DAQ PC LDA ODR Detector Unit DIF CCC Detector Unit DIF Detector Unit DIF Detector Unit DIF Storage Control PC (DOOCS) DAQ PC ODR.
Operating System - Overview Lecture 2. OPERATING SYSTEM STRUCTURES Main componants of an O/S Process Management Main Memory Management File Management.
CALICE - DAQ communication & DAQ software V. Bartsch (UCL) for the CALICE DAQ UK group outline: options for network / switching clock control: SEUs DAQ.
2 July 2003Paul Dauncey - DAQ1 Progress on CALICE DAQ Paul Dauncey Imperial College London, UK.
DOOCS framework for CALICE DAQ software Valeria Bartsch, Tao Wu UCLRHUL.
Part two. 3.2 operating system architecture  Software have two categories  Application software  System software  Application software: consists of.
- Software block schemes & diagrams - Communications protocols & data format - Conclusions EUSO-BALLOON DESIGN REVIEW, , CNES TOULOUSE F. S.
Update on the Data Acquisition System development in the UK Valeria Bartsch, on behalf of CALICE-UK Collaboration.
Lesson 4 Computer Software
1 Lab 3 Transport Layer T.A. Youngjoo Han. 2 Transport Layer  Providing logical communication b/w application processes running on different hosts 
DOOCS DAQ software for the EUDET prototype Valeria Bartsch (UCL) Andrzej Misiejuk (RHUL) Tao Wu (RHUL)
Bart Hommels for the UK-DAQ group Status of DIF, DAQ for SiW Ecal DIF status LDA status DAQ (ODR & software) status CALICE / EUDET DAQ – DESY.
Minutes DAQ software discussion - 16/10/08. Priorities - to be ready before testbench is ready- LDA - ODR - DIF device server disentanglement (Tao, Barry,
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Tuesday September Cambridge1 GDCC “next replacement of the LDA” Franck GASTALDI.
Future DAQ Directions David Bailey for the CALICE DAQ Group.
GBT Interface Card for a Linux Computer Carson Teale 1.
CALICE: status of a data acquisition system for the ILC calorimeters Valeria Bartsch, on behalf of CALICE-UK Collaboration.
AHCAL electronics. Status and Outlook Peter Göttlicher for the AHCAL developers CALICE meeting UT Arlington, March 11th, 2010.
Bart Hommels Univeristy of Cambridge EUDET Annual Meeting, Ecole Polytechnique, Paris JRA3: DAQ Overview Objectives System Overview Status of.
Application Block Diagram III. SOFTWARE PLATFORM Figure above shows a network protocol stack for a computer that connects to an Ethernet network and.
C. Combaret DIF_GDIF_MDIF_D ASU 6x 24 HR2 ASU USB Hub RPi USB2 DCC SDCC RPi USB 1 hub+Rpi for 4 cassettes 1 DCC for 8 cassettes (1 spare) Trigger.
Project Objectives  Create a GUI application that: Opens a mySQL database and visualize its content using a table view Enable a pre-defined set of queries.
Recent developments of communication between DOOCS & ODR B Valeria Bartsch M Andrzej Misiejuk W Tao Wu.
J. Prast, G. Vouters, Arlington, March 2010 DHCAL DIF Status Julie Prast, Guillaume Vouters 1. Future CCC Use in DHCAL Setup 2. Calice DAQ Firmware Implementation.
1 Installation Training Everything you need to know to get up and running.
Experiment Management System CSE 423 Aaron Kloc Jordan Harstad Robert Sorensen Robert Trevino Nicolas Tjioe Status Report Presentation Industry Mentor:
Bart Hommels (for Matthew Wing) EUDET ext. steering board JRA3 DAQ System DAQ System Availability updates: – DIF: Detector Interface – LDA:
Mathias Reinecke CALICE week Manchester DIF development – Status and Common Approach Mathias Reinecke for the CALICE DAQ and Front-End developers.
Maurice Goodrick, Bart Hommels EUDET Annual Meeting, Ecole Polytechnique, Paris EUDET DAQ and DIF DAQ overview DIF requirements and functionality.
Update on the project - selected topics - Valeria Bartsch, Martin Postranecky, Matthew Warren, Matthew Wing University College London CALICE a calorimeter.
MICE CM28 Oct 2010Jean-Sebastien GraulichSlide 1 Detector DAQ o Achievements Since CM27 o DAQ Upgrade o CAM/DAQ integration o Online Software o Trigger.
Status & development of the software for CALICE-DAQ Tao Wu On behalf of UK Collaboration.
TDAQ Experience in the BNL Liquid Argon Calorimeter Test Facility Denis Oliveira Damazio (BNL), George Redlinger (BNL).
Marc Kelly, Maurice Goodrick, Bart Hommels CALICE / EUDET DAQ – DESY CALICE (ECAL) / EUDET DAQ: DIF and LDA Status.
1 On- and near-detector DAQ work for the EUDET calorimeters Valeria Bartsch, on behalf of CALICE-UK Collaboration.
Julie Prast, Calice Electronics Meeting at LAL, June 2008 Status of the DHCAL DIF Detector InterFace Board Sébastien Cap, Julie Prast, Guillaume Vouters.
1 Tracker Software Status M. Ellis MICE Collaboration Meeting 27 th June 2005.
Internet Flow By: Terry Hernandez. Getting from the customers computer onto the internet Internet Browser
ECFA Workshop, Warsaw, June G. Eckerlin Data Acquisition for the ILD G. Eckerlin ILD Meeting ILC ECFA Workshop, Warsaw, June 11 th 2008 DAQ Concept.
Maurice Goodrick, Bart Hommels CALICE-UK Meeting, Cambridge CALICE DAQ Developments DAQ overview DIF functionality and implementation EUDET.
ATLAS SCT/Pixel Off Detector Workshop, UCL, 15 June ROD Test Stand Lukas Tomasek LBL
The NA62RunControl: Status update Nicolas Lurkin School of Physics and Astronomy, University of Birmingham NA62 TDAQ Meeting – CERN, 10/06/2015.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
1 Update on the project - selected topics - Valeria Bartsch, Martin Postranecky, Matthew Warren, Matthew Wing University College London.
AHCAL Electronics. Status of Integration Mathias Reinecke for the DESY AHCAL developers AHCAL main and analysis meeting Hamburg, July 16th and 17th, 2009.
Vincent Boudry Franck Gastaldi Antoine Matthieu David Decotigny CALICE meeting 19 feb Kyungpook Nat'l U., Daegu, Korea.
DHCAL Acquisition with HaRDROC VFE Vincent Boudry LLR – École polytechnique.
Unit Hardware Troubleshooting
DIF – LDA Command Interface
Chapter Objectives In this chapter, you will learn:
CALICE DAQ Developments
Status of the ODR and System Integration 31 March 2009 Matt Warren Valeria Bartsch, Veronique Boisvert, Maurice Goodrick, Barry Green, Bart Hommels,
Calicoes Calice OnlinE System Frédéric Magniette
Online Control Program: a summary of recent discussions
Testbeam Timing Issues.
Out-of-Process Components
Status of the Data Concentrator Card and the rest of the DAQ
C. de La Taille IN2P3/LAL Orsay
Valeria Bartsch UCL David Decotigny LLR Tao Wu RHUL
CALICE/EUDET Electronics in 2007
Tao Wu CALICE Collaboration Meeting Prague, 11-13/Sep/2007
Out-of-Process Components
Presentation transcript:

Development of the DAQ software for the technical prototype: Status & Outlook Valeria Bartsch UCL

Overview over the task LDA Host PC PCIe ODR Host PC PCIe ODR Detector Unit DIF C&C Detector Unit DIF Detector Unit DIF Detector Unit DIF Storage DOOCS GUIs & steering DOOCS Database DAQ software to steer whole system (especially needed in test beams): store all data needed in runs, connections make connections to hw & configure it control & change the state of the hw deliver interfaces for experts & shifters

DAQ software overview LDA e.g. ECAL Slab DIF ODR Driver Opto Opto DOOCS hardware interface PC DOOCS control PC ODR DS configuration/file/run database state machine ODR hardware LDA DSDIF DS LDA hardware DIF hardware ASICS hardware user interface hardware device server (hardware interface) software services CCC DS Clock

DAQ software overview ODR DS configuration/file/run database state machine LDA DSDIF DS user interface CCC DS development started on allmost all of the main software components emulator for the LDA, DIF development not yet started user interface, ODR interface ready database and state machine started

DAQ software new developments New developments since meeting at DESY in March: State machine

DAQ software state machine state machine in “source/daq/fsm” of the DOOCS CVS repository adapted to our needs (changes not yet committed to the CVS directory) able to drive the state machine defined functionality for the ODR added (LDA and DIF are not testable in a system yet) at the moment state machine drives exactly one device, collector (also to be found in “source/daq/fsm” has to be tested yet) functionality for LDA and DIF can be easily added

Finite State Machine transition can be steered by GUI another property DAQ_FSM_TR_STS shows if the transition was successful

Reminder of the state machine The states surrounded by the green box currently work.

Reminder of the state machine State IDLE: device server running device server will not crash, but return to state IDLE if anything happens to connection to device device not connected

Reminder of the state machine State READY: device connected thread started if anything goes wrong, press Debug button…

Reminder of the state machine Debug / devices screen: this screen shows the devices and should turn green / red depending of the status of the device click on the device will give further information about the device which further information is needed is still to be discussed

Reminder of the state machine State PREPARED: run number sent from database this should be done by a separate db device server, at the moment implemented in ODR device server

Reminder of the state machine State CONFIGURED configuration established configuration is read from data base at the moment configuration fixed by property of device server future development: make it more flexible from GUI if you press Get/Set Configuration…

Reminder of the state machine Detector Config screen: not implemented yet shows configurations in database connected to configuration id makes new configuration if there is no good configuration in database can connect chosen configuration to run number

Reminder of the state machine State InBunchTrain file names from ODR are read and send to database to be connected to the run

Outlook Finish state machine for ODR Implement GUIs Implement device server for DIF Adapt device server for LDA emulator to real LDA Build state machine for LDA/DIF/CCC (only need to implement the states READY/CONFIGURED) Error handling

Backup slides

Hardware interface LDA e.g. ECAL Slab DIF ODR Driver Opto Opto ODR layer first accessible layer ODR ready since last summer  Demonstrator for the ODR with a LDA emulator shown at the Manchester meeting DOOCS hardware interface PC DOOCS

Overview over the ODR interface ODR Control Interface Sockets DOOCS device server ENS naming service RPC GUIs RPC store to disk ODR DAQ PC Control Room PC communication between different parts of DOOCS by RPCs configuration files used to find different parts of the system

ODR, LDA and DIF device server - envisaged connection with DOOCS - a different socket for each device server instance: 1 ODR socket, 4 LDA sockets, 32 DIF sockets  ODR driver needs to detect from where signal is coming and where signal is going ODR driver DIF device server ODR device server LDA device server LDA e.g. ECAL Slab DIF ODR Driver Opto Opto DOOCS hardware interface PC DOOCS

ODR, LDA and DIF device server - hardware, firmware, driver solutions - How to implement scenario the ODR driver, ODR firmware, hardware: Firmware: can easily distinguish between upstream (LDA/DIF data) and ODR data  Firmware needs to be tweaked a little for this ODR driver: can look at upstream data  can distinguish between LDA and DIF data

Error handling - XError GUI interface - it is understood how to use Xview alarm handling in DOOCS some examples have been implemented for the ODR device server

Database for DAQ Database handles: Connection between devices File storage Runs Device configurations  Resulting in a complicated entity diagram Database implementation: MYSQL chosen as database type InnoDB chosen for safe multithread use, backups Connection Pool chose to access with several threads

Clock and Control Card Device Server David Decotigny device server exists registers can be read/written names are assigned as written in design document no tests on real card up to now error handling still missing at the moment Properties = Registers  need to have more friendly interface for shifters

Overview over the ODR interface ODR Control Interface Sockets ENS naming service RPC store to disk one device server can have many instance all connecting to different ports and hostnames using 2 threads: one for receiving, one for sending on the socket sockets format chosen to build an interface to the ODR and the LDA ODR DOOCS device server Build Socket Stream Send configuration Recv data Send & Recv in 2 threads

Database Access eq_init_prolog(); EqFctODR::init()‏ EqFct * eq_create EqFctODR::update(); refresh_epilog(); MYSQL Database Start connection pool database contains connections of the devices

Runs and files File Name Status Path Host FileLocation n 1 CRC CRC Type Size Bunch Train No Content Status EndTime DataFile 1 Run Run No Run Type Energy Particle ID End Time n 1..n Run Type n 1 Run Config 1 1..n Configuration extended on next page

Configuration & Devices ODR Properties Property I Property II Property III LDA Fixed Prop I Fixed Prop N ODR Port Number Hostname DIF Fixed Property I Fixed Property N 1 n 1 ODR Config ODR Config ID n n n n LDA Properties Property I Property II Property III LDA Config LDA Config ID n n n n DIF Properties Property I Property II Property III DIF Config DIF Config ID n n n n & DCC for DHCAL

AHCAL Properties Property I Property II Property III DHCAL chip Fixed Prop I Fixed Prop N AHCAL chip Fixed Prop I Fixed Prop N ECAL chip Fixed Property I Fixed Property N 1 AHCAL Chip Config AHCAL Chip Conf ID n n n n DHCAL Properties Property I Property II Property III DHCAL Chip Conf DHCAL Chip Conf ID n n n n ECAL Properties Property I Property II Property III ECAL Chip Config ECAL Chip Conf ID n n n n DIF 1n1n nn

State machine What we need to do to ramp up for data taking: Send hardware handshake to check connections (could also be done by getting conf.) Let file database know about run number Tell ODR which run number we have right now to put it into the file name Send conf. Receive automatic acknowledgement or send getConfiguration command

State Analysis State = Idle Transition = Handshake suceedfailed State = Ready State = Running State = Configured State = InBunchTrain Transition = PowerDown Transition = SendRunNumberTransition = EndRun Transition = StartConfigurationTransition = EndConfiguration Transition = BunchTrainStartTransition = BunchTrainEnd

DAQ PC DAQ PC DAQ PC RC Conf DB Transition: Handshake establish connections

DAQ PC DAQ PC DAQ PC Conf DB Transition: StartRun read system status Send run number to ODR software, Make new run number plus unique in file database (filename = [run_number + unique identifier]) and fill in configurations

DAQ PC DAQ PC DAQ PC Conf DB Transition: StartConfiguration file Extract conf files for all device servers from db, Recheck that configuration has been received

ODR, LDA and DIF device server - hardware, firmware, driver solutions - LDA different control/configuration data paths because ODR firmware can distinguish between data flow to/from ODR and upstream ODR firmware ODR driver (caldata) ODR data flow LDA data flow

Methods of the device server eq_init_prolog(); EqFctODR::init()‏ EqFct * eq_create EqFctODR::update(); refresh_epilog(); The init() method is call for every location during startup of the server. Initialization of the hardware may be done here during startup of the server to create the locations, properties loaded. This update method usually does the real work in a DOOCS server. It runs in a loop over all locations