/MSCB ODB tree

From MidasWiki
Revision as of 18:57, 27 August 2014 by Suz (talk | contribs) (Created page with "<div style="column-count:4;-moz-column-count:4;-webkit-column-count:4"> * Midas Documentation * Feature Listing * Application_lis...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Links

Purpose

The /MSCB ODB tree contains data for the MSCB (MIDAS Slow Control Bus) system. This tree is optional, and only required if the MSCB (MIDAS Slow Control Bus) 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/Devices/Input/Device

or

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

which are the locations 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, 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 MEG experiment. This data is displayed on the MSCB Page in Figure 1.

[local:MEG:R]/MSCB>ls -r
MSCB
   Submaster
       mscb004
           Pwd                 xxxxx
           Comment             BTS
           Address             1
       mscb034
           Pwd                 xxxxx
           Comment             XEC HV & LED
           Address
                               0
                               1
                               2

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.