Status of Hardware Database development

Following the request from the mine crew to have a useful tool to keep track of hardware changes, a number of discussions were held during the Week in the Woods meeting in Ely. This page tries to keep track of the evolution of these tables.

This page has the following contents:



Discussions:

Saturday, June 05, 2004:
Present: Nick, Robert, Mark D., George, Brett, Pete
During this discussion, we came up with a design for the tables (for a description of the current layout, see below ).
Sunday, June 06, 2004:
Present: Nick, Robert, Mark D., George, Brett, Alec, Eric M.
The design we came up with the other day was discussed with Alec and Eric. According to Alec, these tables will probably cover the needs of the mine crew.
Monday, June 07, 2004:
I talked with Doug W. to find out whether the tables we came up with were sufficient for their needs. I got the impression that this is indeed the case.
Monday, June 21, 2004:
I asked the mine crew if they could provide me with a list of component, how they are identified, their location and motivations for changes. They provided me with the following documents:
Thursday, June 24, 2004:
Discussion of the design during the software phone meeting. See the minutes for more details.
November-December 2004:
Eric M. is not able to spend time on this project anymore. After some emailing around, Pete volunteered to work on this, possibly with the help of a undergrad, after the end of the current semester.
January 5, 2005:
While recovering from his Christmas dinner, Pete has made a writup of his plans for the interface. Described in this mail, along with tasks and questions.
January 20, 2005:
Pete discussed technology and design issues for an interface:
http://webusers.physics.umn.edu/~border/designDocument.html
http://www-numi.fnal.gov/HyperNews/get/software_meetings/132/1.html


Contributors:



Working Plan:



Table Design:

Description:

Whenever a hardware component is changed, the table FABCOMPONENT gets a new entry which tells which device was updated. The type of this device is determined by a number referring to a row in the table FABDEVICETYPE. The device is further specified by the (optional) variables serial_num, model and manufacturer. The revision_num keeps track of how often a specific device was involved in a change. The changes to a device and its location in the detector are listed in a separate table, FAB_"DEVICE_TYPE"_LOC. There is a different table for each device type. The MID points back to the SEQNO of the FABCOMPONENT table. The reasons for inserting or removing this device are given by an int which points to motid the table FABMOTIVATION. There is also room to give comments to these changes. However, when a component is taken out of the detector, like being send somewhere for repair, it will be listed in the FABOUTOFSERVICE table instead. Also in this table the MID refers to the SEQNO in FABCOMPONENT. The where_id points to where_id from the table FABWHERE and tells where the device is.

Releases:

To get the latest version of the tables, follow the directions on how to prime MINOS database tables and use the file fab_XXXX.lis.

Release v1.0 has been put into the offline database at FNAL.

Open Issues:

Solved (+-) Issues:

Design:

FABCOMPONENT
Field Type Comment
SEQNO int = MID in other tables
DEVICE_ID int refers to DEVICE_ID in FABDEVICETYPE
SERIAL_NUM varchar(20)
MODEL varchar(20)
MANUFACTURER varchar(20)
REVISION_NUM int
REVISION_REASON text

FAB_"DEVICE_TYPE"_LOC
("DEVICE_TYPE" to be substituted by device name)
Field Type Comment
SEQNO int
MID int refers to MID in FABHWCOMPONENT
LOCATION tinyint/char(1)/... multi-column, depends on device type
INSERT_MOTID int refers to MOTID in FABMOTIVATIONS
INSERT_COMMENT text
REMOVE_MOTID int refers to MOTID in FABMOTIVATIONS
REMOVE_COMMENT text

FABOUTOFSERVICE
Field Type Comment
SEQNO int
MID int refers to MID in FABHWCOMPONENT
WHERE_ID int refers to WHERE_ID in FABWHERE
OUT_MOTID int refers to MOTID in FABMOTIVATION
OUT_COMMENT text

FABMOTIVATION
Field Type Comment
SEQNO int
MOTID int primary key, auto increment
ALLOWED_MASK text
MOTIVATION varchar(50)

FABWHERE
Field Type Comment
SEQNO int
WHERE_ID int primary key, auto increment
WHERE_IS_IT varchar(50)

FABDEVICETYPE
Field Type Comment
SEQNO int
DEVICE_ID int primary key, auto increment
DEVICE_TYPE varchar(100)


Mark Dierckxsens (mdier@bnl.gov)
Last modified: Tue Feb 14 14:12:21 2006