Epics@GSI Webhome

HADES Slow Control: Hadcon2 & Dreamplug based systems

Introduction

Description of the systems controlled via EPICS IOCs running on a dreamplug computer connected via USB to HadCon2 at HADES

Code Repository

  • IOC code
    • streamHadcon
      • CVS Root: :ext:hadaq@lx-pool:/misc/hadesprojects/daq/cvsroot
      • CVS Module: hadcon/dreamPlug/streamHadcon2
    • startup Procedures
      • CVS Root: :ext:hadaq@lx-pool:/misc/hadesprojects/daq/cvsroot
      • CVS Module: EPICS/startupProcedures/hadcon/EPICS/startupProcedures

Detectors/Systems and Task

  • MDC / HADES global
    • temperatures
    • pressure sensors
    • pressure sensor and relay output
  • general purpose ADC

Detectors/Systems

Tasks

  • 1-wire bus
    • temperature readout
    • ADC readout
    • switches
  • Atmel
    • ADC readout
    • Relay settings

Detectors/Systems vs. Tasks

HadCon2/Dreamplug setups

    HadCon2 modules

    Defined via unique FTDI ID:
    /sbin/udevadm info --export-db | grep FTDI | grep ID_SERIAL | sort | uniq

    HadCon2 Modules, first series

    Name hadcon2's unique FTDI ID:
    FTDI_FT232R_USB_UART A100 ..._
    ... suffix
    \
    atmel firmware code version FPGA code place comment
               
    hc2_A100 dQ1Z ... dQ1Z 4.5.1   (SB2.256), PZ  
    hc2_A100 dQ20 ... dQ20 4.6.3-Apfel   (SB3.223a), PW PANDA APFEL
    hc2_A100 dQ21 ... dQ21 4.5.1   (SB2.256), PZ  
    hc2_A100 dQ23 ... dQ23 4.4.1   lower HADES counting house  
    hc2_A100 dQ2B ... dQ2B 4.6.3 (MM)   R.Jaeger Robert Jaeger, partly at home
    hc2_A100 dQ2C ... dQ2C 4.4.1   on top of HADES MDC gas rack  
    hc2_A100 dQ2f ... dQ2f 4.6.2   (SB2.256), Martin Mitkov  
    hc2_A100 dQ2i ... dQ2i 4.6.2   (SB2.263), KK connected to EE-Raspi04
    hc2_A100 dQ2j ... dQ2j 4.5.1   (SB2.260), JF SPI Interface
    hc2_A100 dQ2k ... dQ2k 4.5.1   (SB2.256), PZ  
    hc2_A100 dQ2l ... dQ2l 4.5.1   SB2.256, PZ APFEL Setup
    hc2_A100 dQ2n ... dQ2n 4.5.1   (SB2.256), PZ  
    hc2_A100 dQ2p ... dQ2p 4.5.1   (SB2.256), PZ test system
    hc2_A100 dQ2q ... dQ2q 4.4.1   HADES cave, below left downstream railing  
    hc2_A100 dQ2r ... dQ2r 4.6.2   Wolfgang Koenig, HADES  

    HadCon2P1 Modules, refined series

    Name hadcon2's unique FTDI ID:
    FTDI_FT232R_USB_UART A801 ..._
    ... suffix
    Sorted ascending
    atmel firmware code version FPGA code place comment
    hc2p1_A801 RYMY ... RYMY ---   SB2.256, PZ  
    hc2p1_A801 RYMZ ... RYMZ 4.6.2.1   KK  
    hc2p1_A801 RYN1 ... RYN1 ---   SB2.256, PZ  
    hc2p1_A801 RYN2 ... RYN2 ---   SB2.256, PZ  
    hc2p1_A801 RYN3 ... RYN3 ---   Hades HadesIO-Box  
    hc2p1_A801 RYNC ... RYNC ---   Hades HadesIO-Box  
    hc2p1_A801 RYND ... RYND ---   SB2.256, PZ  
    hc2p1_A801 RYNE ... RYNE 4.6.3-Apfel   Gießen, PW PANDA APFEL (leihweise von KK)
    hc2p1_A801 RYNF ... RYNF ---   SB2.256, PZ  
    hc2p1_A801 RYNG ... RYNG ---   SB2.256, PZ  
    hc2p1_A801 RYNH ... RYNH ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYNI ... RYNI ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYNJ ... RYNJ ---   SB2.256, PZ  
    hc2p1_A801 RYNK ... RYNK ---   SB2.256, PZ  
    hc2p1_A801 RYNL ... RYNL ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYNM ... RYNM ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYNN ... RYNN ---   SB3.3.199 H.Toernqvist NeuLAND  
    hc2p1_A801 RYNO ... RYNO ---   SB2.256, PZ  
    hc2p1_A801 RYNO ... RYNO ---   SB2.256, PZ  
    hc2p1_A801 RYNP ... RYNP ---   SB2.256, PZ  
    hc2p1_A801 RYNQ ... RYNQ ---   SB2.256, PZ  
    hc2p1_A801 RYNR ... RYNR ---   SB2.256, PZ  
    hc2p1_A801 RYNS ... RYNS ---   SB2.256, PZ  
    hc2p1_A801 RYNT ... RYNT ---   SB2.256, PZ  
    hc2p1_A801 RYNU ... RYNU ---   SB2.256, PZ  
    hc2p1_A801 RYNV ... RYNV ---   SB2.256, PZ  
    hc2p1_A801 RYNW ... RYNW ---   SB3.3.199 H.Toernqvist NeuLAND  
    hc2p1_A801 RYNY ... RYNY ---   SB2.256, PZ  
    hc2p1_A801 RYNZ ... RYNZ 4.6.2.1   KK  
    hc2p1_A801 RYO0 ... RYO0 ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYO1 ... RYO1 ---   SB2.256, PZ  
    hc2p1_A801 RYO2 ... RYO2 ---   SB2.256, PZ  
    hc2p1_A801 RYO3 ... RYO3 ---   SB2.256, PZ  
    hc2p1_A801 RYO5 ... RYO5 ---   SB2.256, PZ  
    hc2p1_A801 RYO6 ... RYO6 4.6.3 (MM)   KK  
    hc2p1_A801 RYO7 ... RYO7 ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYO9 ... RYO9 ---   SB2.256, PZ  
    hc2p1_A801 RYOA ... RYOA ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYOC ... RYOC ---   SB2.256, PZ  
    hc2p1_A801 RYOD ... RYOD 4.6.3-Apfel   Gießen, PW PANDA APFEL
    hc2p1_A801 RYOE ... RYOE ---   SB2.256, PZ  
    hc2p1_A801 RYOF ... RYOF 4.6.3-Apfel   (SB3.223a), PW PANDA APFEL
    hc2p1_A801 RYOG ... RYOG 4.6.3-Apfel   (SB3.223a), PW PANDA APFEL
    hc2p1_A801 RYOH ... RYOH 4.6.2.1   KK  
    hc2p1_A801 RYOI ... RYOI ---   SB2.256, PZ  
    hc2p1_A801 RYOK ... RYOK ---   SB2.256, PZ  
    hc2p1_A801 RYOL ... RYOL ---   SB2.256, PZ  
    hc2p1_A801 RYOM ... RYOM ---   SB2.256, PZ  
    hc2p1_A801 RYON ... RYON ---   SB2.256, PZ  
    hc2p1_A801 RYOO ... RYOO ---   SB2.256, PZ  
    hc2p1_A801 RYOP ... RYOP 4.6.2.1   SB2.256, MM partly at home
    hc2p1_A801 RYOQ ... RYOQ ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYOR ... RYOR ---   SB2.256, PZ  
    hc2p1_A801 RYOS ... RYOS ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYOU ... RYOU ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYOV ... RYOV ---   SB2.256, PZ  
    hc2p1_A801 RYOX ... RYOX 4.6.3 (MM)   SB2.256, PZ  
    hc2p1_A801 RYOY ... RYOY ---   SB3.3.199 H.Toernqvist NeuLAND  
    hc2p1_A801 RYOZ ... RYOZ ---   SB2.256, PZ  
    hc2p1_A801 RYP1 ... RYP1 ---   SB2.256, PZ  
    hc2p1_A801 RYP2 ... RYP2 ---   SB2.256, PZ  
    hc2p1_A801 RYP3 ... RYP3 ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYP4 ... RYP4 ---   SB2.256, PZ  
    hc2p1_A801 RYP5 ... RYP5 4.6.3 (MM)   Straw Tube Gas System, Poland RL  
    hc2p1_A801 RYP6 ... RYP6 ---   SB2.256, PZ  
    hc2p1_A801 RYP7 ... RYP7 ---   SB2.256, PZ  
    hc2p1_A801 RYP8 ... RYP8 ---   SB2.256, PZ  
    hc2p1_A801 RYP9 ... RYP9 ---   SB2.256, PZ  
    hc2p1_A801 RYPA ... RYPA ---   SB2.256, PZ  
    hc2p1_A801 RYPC ... RYPC ---   SB2.256, PZ  
    hc2p1_A801 RYPD ... RYPD ---   SB3.3.199, H.Toernqvist NeuLAND  
    hc2p1_A801 RYPE ... RYPE ---   SB2.256, PZ  
    hc2p1_A801 RYPF ... RYPF 4.6.3 (MM)   Straw Tube Gas System, Poland RL  
    hc2p1_A801 RYPG ... RYPG ---   Hades HadesIO-Box  
    hc2p1_A801 RYPJ ... RYPJ ---   Hades HadesIO-Box  
    hc2p1_A801 RYPK ... RYPK 4.6.2.1   Ivan Kojouharov, NuSTAR, γSpec leihweise von K.Koch
    hc2p1_A801 RYPL ... RYPL ---   SB3.3.199 H.Toernqvist NeuLAND  
    hc2p1_A801 RYPM ... RYPM ---   SB2.256, PZ  
    hc2p1_A801 RYPN ... RYPN ---   SB2.256, PZ  
    hc2p1_A801 RYPO ... RYPO ---   SB2.256, PZ  
    hc2p1_A801 RYPU ... RYPU ---   SB2.256, PZ  
    hc2p1_A801 RYPV ... RYPV 4.6.3 (MM)   KK  
    hc2p1_A801 RYPW ... RYPW ---   Christian Wendisch, HADES, MDC  
    hc2p1_A801 RYPX ... RYPX ---   SB2.256, PZ  
    hc2p1_A801 RYPY ... RYPY ---   SB3.3.199 H.Toernqvist NeuLAND  
    hc2p1_A801 RYPZ ... RYPZ ---   SB2.256, PZ  
    hc2p1_A801 RYQ1 ... RYQ1 4.6.3 EE-Workshop SB2.256, MM  
    hc2p1_A801 RYQO ... RYQO 4.6.2.1   Gießen, Adrian WAdrian.A.Weber_at_physik.uni-giessen.de, [[Tariq Mahmoud <Tariq.Mahmoud_at_EXP2.PHYSIK.UNI-GIESSEN.DE> HADES RICH700


    Dreamplug computers

    Dreamplug
    HADES net / GSI net
    os place comment
    ee-dev004 / dreamp04 debian wheezy (SB2.256) development system, P.Zumbruch
    ee-dev005 / dreamp05 lower HADES counting house
    ee-dev006 / dreamp06 on top of HADES MDC gas rack
    ee-dev007 / dreamp07 development system, M.Traxler
    ee-dev009 / dreamp09 HADES cave, below left downstream railing
    ee-dev011 / dreamp11 (SB2.256) P.Zumbruch
    ee-dev012 / dreamp12 (SB2.256) P.Zumbruch

    Dreamplug / Hadcon2 Combinations

    • defined in startupProcedures and matched by the IOC code

    dreamplug detector Task hadcon2 name commment
    dreamp04 - test system hc2_A100dQ2l  
    dreamp05     hc2_A100dQ23  
    dreamp06     hc2_A100dQ2C  
    dreamp07 - test system    
    dreamp09     hc2_A100dQ2q  

    HADES specific

IOCs

    binary

    • identical for all hadcons

    startup cmd file

    st.cmd
    sources st_${HOSTNAME}.cmd for host specific database

    database

    • makes extensive use of template/substition functionality of EPICS
    • mainly connects via streamDev protocol functions to the API of Hadcon2's micro controler
      • using as asyn port dreamplugs's USB interface device /dev/ttyUSB0
    • takes care of non-conflicting access to the μC
      • hadcon_global_scan.template, which calls task specific "globals" initiating the read/write action
        • hadcon_atmel_adc_global.template
      • ...
    • other global, singular to the host, templates/db
      • hadcon_global.db
      • hadcon_debug_global.db
      • hadcon_show_global.db

    streamDev2 protocols

Tarball

-- -- PeterZumbruch - 08 Mar 2012
Topic revision: r6 - 2014-09-18, PeterZumbruch
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)