SuperK Outer Detector DAQ Manual

Mei-Li Chen and Jordan Goodman
Preliminary Version March, 96

Note: This is a slightly adjusted mirror copy of the original UMD document

There's also a newer User Manual of FSCC Data taking program package (Dec 3, 1996) available.


Table of Contents

Introduction

In this document we describe the current status of the DAQ system for the SuperK outer detector. We give a description of the hardware, software and operating instructions. We also give some techniques for diagnosing trouble. Below is a sketch of a single quadrant of the OD DAQ system. There are four of the FSCC's one in each counting house and four sets of a DC2 and a pair of dual ported memories all in a single VME crate in the central hut. This version is still a draft - suggestion and comments to either of us will most probably be appreciated!

The FSCC (Fastbus Smart Crate Controller) is a Fastbus module that reads data from the LeCroy 1877 TDC's and soon from the Struck latches. The data from the FSCC is sent out through an auxiliary card over a long twisted flat cable to a DC2/DM115 card on the back plane (VSB - Bus) of the VME crate in the central hut. This back plane is broken into four separate pieces (one for each quadrant). The DC2 speaks to a pair of dual ported memories (DPM) via the VSB bus. Each DC2 is isolated from the other on the VSB bus. The DPM's contain 32Mbytes each of memory and can be accessed from either the VSB side or VME side. (If there are simultaneous requests from VSB and VME the DPM arbitrates). The Bit 3 is a controller which communicates via the VME bus with each of the dual-ported memories and the Sun. Data is written to one DPM while the other is available to be read out. This system is called ping-ponging. In the remainder of this document we provide information about each component and operational information.

Description of Hardware

  1. FSCC

  2. Auxiliary Card

  3. DC2/DM115

  4. Dual-Ported Memory

Software

  1. The FSCC is loaded from a boot node (the Sun) which loads VxWorks and runs a script file which loads the programs. The boot directory and IP address of each FSCC is set in non-volatile ram on the FSCC. It can be set after powerup from the console or after a boot from the network by typing bootChange at the command prompt.

  2. Our FSCC's have accounts called goodman with password superker.

  3. Executable routines are loaded from the VxWorks command prompt by typing ld<program_name.o

  4. FSCC routines for data taking and diagnostics:

  5. Fastbus Test routines

  6. The DC2 micro code is stored in the EPROMs. It will run automatically when the power is on or the DC2 is reset.

  7. DC-2 Software Diagram

  8. The Mail Box

Operations

Though all the software for FSCC and DC2 should be booted and started running automatically, knowing the following information may help one to run this system.

FSCC

In the default dir of the host computer, there are goodTDC list files for each FB crate. For example, if the good TDCs in crate/hut 2 is in the lot 1,2,3,10,20. And there is a latch module located in lot 12. Then the file named c2_gootdc.lst should look like:
1
2
3
10
20
99
12

If there is no latch module. 
1
2
3
10
20
99
999       
If TDC status changes, this file should be changed accordingly.

B. DC2/DM115

To check the DC2 EPROMs version, one can link a terminal to the RS232 line of the DC2 and reset the DC2. Then the version number will show up at the and of the booting information.

The current version is UMD-v1.

Trouble shooting chart

Upon power up, the FSCC is booted and the DC2 should run the Mail_BoX (MBX).One should see the increasing of the "heart beat" which is located at offset 0x40 from MBX base address (see section 1 for concerned definition). Then, start the checking procedure.

DC-2

Action:

Send number 4 into "command" located at offset 0x50 from MBX base address (see next paragraph for the MBX base address defined) to active the data taking process.

The VME address of each DPM is marked on it's P.C. board. The lowest address of each odd number DPM is the MBX base address of this pair of DPM.

Checking:

If Page_flag (located at offset=0x2c) is read as 110f1008, DC-2 is running. Go to 2.

FSCC Part

a) A quick look :

Check that FSCC and Aux card are in the same slot. . The PERM-IN and PERM-OUT on the FSCC front panel is shorted by a short lemo cable.

Go to b.

b)Running FSCC diagnostics

Action:

Use oport_test4b.o to send a few events out.

Checking:

Other wise, go to C.

c) FSCC data transfer

Action:

Use oport_test4b.o to send out one event.

Checking:

The screen will show the following information :

------------------------------------------------
Before E-O-E :
OPORT_CSR0=[number 1] & OPORT_CSR1=[number 2]
After E-O-E:
OPORT_CSR0=[number 3] & OPORT_CSR1=[number 4]
------------------------------------------------
check the pattern of number 1 & number 2 number 3 & number 4

If [XX] & [07]
[xx] & [07] : The program you are running is one which has no mark of 4b.

Type correct routine name and try c) again.

If [02] & [03]
[04] & [03] : Go to d).
If [02] & [03]
[02] & [03] : FSCC is doing ok.

Go to e).

d) Aux-card of FSCC

Action :

Put switch number 2 at OPEN position.

Check :

Try c) again.

e) Cable

Since the FSCC and DC-2 are both working, the problem

most likely is caused by the cables/connections.

Check the signals from input and out put of the cable.