/MSCB ODB tree

From MidasWiki
Jump to navigation Jump to search

Links

Purpose

The /MSCB ODB tree contains data for the MSCB System. This tree is optional, and only required if the MSCB system is in use. Provided MSCB support has been built in to mhttpd, the data from this tree is displayed on the MSCB Page.


Creating the /MSCB tree

The /MSCB ODB tree is an optional tree that may be created by the user, but they are also created automatically by mhttpd if the /MSCB/Submaster key is not present in the ODB. In this case, the equipment list is scanned, and all MSCB devices and addresses are collected from locations such as

/Equipment/<name>/Settings/DD/<name>/MSCB Device

which is the location for MSCB submasters used by the mscbdev.c and mscbhvr.c device drivers (found in the midas package at path ../midas/drivers/device). Once the tree is created, it will not be touched again by mhttpd (unless Rescan on the MSCB Page is pressed) so devices can be removed or reordered by hand.


Example

The following example using the odbedit command "ls" command shows the /MSCB ODB tree from the Deap experiment. This data is displayed on the MSCB Page.

[local:deap:Stopped]/>ls -l /MSCB/Submaster/mscb520
Key name                        Type    #Val  Size  Last Opn Mode Value
---------------------------------------------------------------------------
Pwd                             STRING  1     32    31h  0   RWD
Comment                         STRING  1     32    31h  0   RWD  SCBs
Address                         INT     28    4     31h  0   RWD
                                       [0]             0
                                       [1]             1
                                       [2]             2
                                       [3]             3
                                       [4]             4
                                       [5]             5
                                       .................
                                       [27]            27
Node comment                    STRING  28    32    31h  0   RWD
                                       [0]             aaa
                                       [1]             bbb
                                       [2]             DEAPCOND410
                                       [3]             DEAPCOND410
                                       [4]             DEAPCOND410
                                       [5]             DEAPCOND410
                                       ...........................
                                       [27]            DEAPCOND410
        

Keys in the /MSCB tree

Submaster subtree

  • Type: DIR

The Submaster subtree contains one or more <submaster-name> subtree(s) for the MSCB submasters present in the system.




<submaster-name> subtree

  • Type: DIR
  • Default:

The <submaster-name> subtree contains information for one of the MSCB submaster(s) present in the system. There will be a <submaster-name> subtree for each MSCB submaster present.




Pwd

  • Type: STRING [32]
  • Default:

This key in the <submaster-name> subtree may contain an optional password needed by that submaster. Leave blank if no password.




Comment

  • Type: STRING [32]
  • Default:

This key in the <submaster-name> subtree may contain an optional comment describing that submaster.




Address

  • Type: INT Array
  • Default:

This key in the <submaster-name> subtree is a variable-length array containing the node addresses for that submaster. The length of the array is determined by the number of nodes present.




Node comment

  • Type: STRING[32] Array
  • Default:

This key in the <submaster-name> subtreeis an optional variable-length array that may contain a comment for each node. The length of the array is determined by the number of nodes present.