Difference: DaqSpecial (5 vs. 6)

Revision 62009-12-10 - MatteoDuranti

Line: 1 to 1
 
META TOPICPARENT name="AmsTracker"

Special Operations

How to directly command a JINF/TDR:

  • Go to /home/ams/TrackerUser/AMSWireCommands/
  • here you can find the program TESTjmdc
    this is a program that let talk to JINJ boards and to all the nodes after it

    The syntax for this program is:
    ./TESTjmdc port amsw_node cmd arg1 arg2 ...
Added:
>
>
    • port
    • amsw_node is the address (in AMSWire scheme, NOT in JMDC scheme!!!) of the node you want talk to:
      Node address examples:
      JINJ-itself = ffff
      JINF-T0 = 033f
      TDR-0-00-A (T0 TDR00) = 003f033f
      TDR-4-10-B (T4 TDR21) = 153f103f
      AllTDR-7 = 4000173f
OCT CRate IND (Hex) IND (DEC)  
3 T3 013f 01  
4 T2 003f 00  
7 T7 173f 23  
8 T6 163f 22  
1 T0 033f 03  
4 T1 093f 09  
5 T4 103f 16  
6 T5 113f 17  

*the octant column is wrong and has to be checked

    • cmd is the command to send to the node (from Kounine document)
      Examples of Command (from Kounine document):
      Read Status: C [no pars]
      Read Flash: 7 [no pars]
      Read last Event Number: 2 [no pars]
    • args are the parameters you want to pass to cmd
      you can pass how many args (command's parameters) you need
 
    • numbers must be written in hex
Deleted:
<
<
    • amsw_node is the address of the node you want talk to:
      Node address examples:
      JINJ-itself = ffff
      JINF-T0 = 033f
      TDR-0-00-A (T0 TDR00) = 003f033f
      TDR-4-10-B (T4 TDR21) = 153f103f
      AllTDR-7 = 4000173f

      OCT CRATE IND (Hex) (Dec)
      3 3 013f 01
      4 2 003f 00
      7 7 173f 23
      8 6 163f 22
      1 0 033f 03
      4 1 093f 09
      5 4 103f 16
      6 5 113f 17

      Command (from Kounine document):
      Read Status: C [no pars]
      Read Flash: 7 [no pars]
      Read last Event Number: 2 [no pars]
 

Filenames convention and history:

The dsp codes are stored in : /home/ams/TrackerUser/AMSWireCommands/DspCodes/

Line: 23 to 38
 
    • 2932 if it will be the default file for JINFT (will become 29F2)
    • 29F3 if it will be the default file for TDR
  • REMEMBER: when a DSP code is written in the flash it will be effectively used only if it is run afterwards.
Added:
>
>
  • There are useful scripts:
 
Added:
>
>

  1. DeleteFlashFileOnAllnodes.sh port# filename#
    where node=TDR,JINF
  2. a - WriteFlashFileOnAllnodesFromHere.sh port# filename#
    where node=TDR,JINF
    It loads file.dat from the current directory, read back the flash content and
    checks that filename# is in the flash memory.
    b - WriteFlashFileOnAllnodesFromDSPCodes.sh port# filename#
    where node=TDR,JINF
    checks for file_ node _ name.dat in the /DspCodes directory and copies it in file.dat in current directory before uploading.
  3. SetDefaultFlashFileOnAllnodes.sh port# filename# #status
    where node=TDR,JINF
    looks for the filename in the flash and if it is found and set the default bit according to #status
    status=1 set it to default (from 3xxx to 2xxx, from 7xxx to 6xxx)
    status=0 downgrade from default
  4. LoadFlashFileOnAllnodes #port #filename
    runs the #filename on all nodes
  5. WriteANewnodesCodeOnAllnodesFromHereAndSetAsDefault.sh port# new_filename# old_filename#
  6. WriteANewnodesCodeOnAllnodesFromDSPCodesAndSetAsDefault.sh port# new_filename# old_filename#
    Performs either 2a or 2b on the new_filename + 3 with status=0 on old filename and 3 with status=1 + 4 on new filename.
  7. Output:
    during the running of these script you can see two types of info/output:
    if the AMSWire Command was sended without (with) problems -> rxdone=0x0000 (0x0001)
    if the operations was done -> File Erased (Not Erased) / File Loaded (Not Loaded)
 

How to Create and Load a JINF-T/TDR config file:

Added:
>
>
  • The stuff to create a config files, create the script to load config files, and then load config files is in:
    /home/ams/TrackerUser/AMSWireCommands/ConfigurationFile/

    In this directory you can find all the stuff (except for TESTjmdc of which there's a simbolic link) needed for create and load configuration files for TDRs and for JINF-Ts:
  • configuration_JINF: there is the program to create config files for JINF-T starting from a "human readable" parameters file and the last configfiles created
  • configuration_TDR: there is the program to create config files for TDRs starting from a "human readable" parameters file and the last configfiles created
  • LoadConfJINFs & LoadConfTDRs: are the script that load the correct configuration file in each node
  • LoadScript: there are the two programs (editable if needed) that create the scripts to load the configuration files
    • for TDR makes the script loading the correct configfile for each TAS ladder type and, in the future if needed, to have different threshold on each ladder
    • for JINF makes the script loading the correct configfile for each crate/JINF, for now all equals except for crete/JINF 4 [PowerGroup3 with Bias 60V])

  • TDRs:
    • 5 different configuration files are created for the 5 different TAS type of ladders. All the files are created starting from only one parameters file (paramfil.txt) and the TAS ladder type parameter is change "automagically" from the program.
      The file of parameters ("human readable file") can be filled using the TDR documentation by Philipp Azzarello and taking into account that for "compliantness" a parameter indicated as "N" here has to written as "0 0 N" (where the first two numbers are the Group and the SubGroup, here 0).
    • The script for loading the configuration file has to be called using 1 parameter (the JMDC port to be used, i.e. if to use JINF-T-B
      [JMDC ports: 0,3] or JINF-T-A [JMDC ports: 1,2])
  • JINFs:
    • 8 different configuration files are created for the 8 crates/JINFs (for now all equals except for crete/JINF 4 [PowerGroup3 with Bias 60V]).
      The file of parameters ("human readable file") can be filled using the JINF documentation by Kounine or the JINF-T one by Philipp Azzarello.
  • Procedure:
    The procedure has to be something like (starting from this directory):
    • if we want only to change the configuration files
      • cd configuration_JINF -> Edit the parameters files -> ./doparamJINF
      • cd configuration_TDR -> Edit the parameters files -> ./doparamTDR
      • ./LoadConfJINFs
      • ./LoadConfTDRs #port
    • if starting from scratch
      • cd configuration_JINF -> Edit the parameters files -> ./doparamJINF
      • cd configuration_TDR -> Edit the parameters files -> ./doparamTDR
      • cd LoadSCript -> make -> ./LoadScriptJINF
      • cd LoadSCript -> make -> ./LoadScripTDR
      • ./LoadConfJINFs
      • ./LoadConfTDRs #port
  -- PaoloZuccon - 03-Dec-2009
 
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