How to Send Commands to JMDC

In the directory


the "tracker" user you can find a set of utilities to send single commands or command scripts to JMDC.

Single Command

Any AMS command has the form of:

[Target_node] [command or data type] [parameters]

  • it can have 2 digits (or nibbles) then the write attribute is set by adding 0x40 (Ex. JINJ-2 12 is read DAQ mode and JINJ-2 52 0 is set DAQ mode)
  • it can have1 6 digits (or nibbles) then the write attirbut is set by adding 0x400000 (Ex. JMDC-0 1f0610 is get Cal Polling list and JMDC-0 5f0610 ... is set Cal Polling list)

Some of the most used commands are:

AMSWIRE commands

JMDC commands

With this sintax you can send a single command by typing

./Commander JINF-T0-A 42 //Reset the JINF-T0-A FIFO


./Commander JINF-T-P 42 //Reset the all the primary JINF-T FIFOs

Command Files

Another way of operate is to write a list of commands in a file and then execute the list:

The syntax for the list is:

# as first character is a comment

0 0 JINF-T0-A 42

note the additional 2 Zero at beginning they are flags.

First one is the Ignore Error flag

Second one is the Do Not Send Reply to HK ---> Always put 0 here

Note that you should not leave any blank line

The moment you have written you script (pippo.txt) you can do many things:

  • Exec your script from ground: ./Exec_CF pippo.txt
  • Convert your Script to binary: main pippo.txt pippo.cmd
  • Upload your script to JDMC as command file: pippo.cmd

A large colletion of predefined scripts doing the most common operation can be found in subdir: CommandFileCollection

Useful Command Files:

To get the calibration:

The Command Generator

Special Scripts for the initialization, the calibration and the data taking can be generated depending on which detector are included.

For that there exist the command: ./Generator


./Generator T8S4BJLA A

Generates the files AMS_init.txt AMS_Cal.txt CalPollingList.txt AMS_DAQ.txt for a DAQ with the full Tracker and the TOF

To perform the run then you should do (better you look at the generated files to learn how it works):

./Exec_CF AMS_init.txt

./Exec_CF CalPollingList.txt

./Exec_CF AMS_Cal.txt

./Exec_CF AMS_DAQ.txt

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2010-09-02 - MatteoDuranti
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

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