next up previous contents 5
Next: Miscellaneous show-stoppers for DHS Up: Installation Previous: Installing SSRL's DHS   Contents


Configuring SSRL's DHS

At start-up the SSRL dhs attempts to connect to the mysql database to determine what its configuration is (i.e. what it is controlling).

The following subsections describe the steps for configuring a simple beam line.

  1. ADD permissions to the mysql database for the new computer for which the new dhs is running on.

    mysql> grant select on * to dhs@blctlxx.slac.stanford.edu;
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> flush privileges;
    Query OK, 0 rows affected (0.42 sec)
    

  2. Find out which beam line the DHS is going to be a part of. Use this number in the following step when entering the information for the BeamlineID.

    mysql> select * from DCSS where BeamlineID=12;
    +----+---------------------------+---------------+---------------+------------+----------+
    | id | HostName                  | ListeningPort | MemoryMapFile | BeamlineID | beamline |
    +----+---------------------------+---------------+---------------+------------+----------+
    | 12 | blctlxx.slac.stanford.edu |         14242 | database.dat  |         12 | bl-xx    |
    +----+---------------------------+---------------+---------------+------------+----------+
    1 row in set (0.02 sec)
    

  3. Insert an entry in the mysql DHS table and use the id in the next step. The fields in this table are used for the following purposes:

    mysql> select * from DHS where BeamlineID=12;
    +----+---------------------------+-------------+------------+-----------------------+-----------------+------------------+--------------------+--------------+
    | id | HostName                  | privateNode | BeamlineID | LocalDatabaseFileName | AutoFlushPeriod | DevicePollPeriod | WatchdogKickPeriod | InstanceName |
    +----+---------------------------+-------------+------------+-----------------------+-----------------+------------------+--------------------+--------------+
    | 32 | blctlxx.slac.stanford.edu |             |         12 | blxxDetector.dat      |            5000 |             5000 |                500 | detector     |
    +----+---------------------------+-------------+------------+-----------------------+-----------------+------------------+--------------------+--------------+
    1 row in set (0.00 sec)
    

  4. Add as many entries in the Controllers table as the number of new devices that this DHS is responsible for. The id field of the Controllers table will be used in entries in the ControllerID field of the device specific tables.

    If the DHS is responsible for only one device the table may look like this:

    mysql> select * from Controllers where DHS_ID=32;
    +----+--------+
    | id | DHS_ID |
    +----+--------+
    | 35 |     32 |
    +----+--------+
    1 row in set (0.00 sec)
    

    If the DHS is responsible for more than one devices, the table may look like this:

    mysql> select * from Controllers where DHS_ID = 32;
    +----+--------+
    | id | DHS_ID |
    +----+--------+
    | 35 |     32 |
    | 36 |     32 |
    | 37 |     32 |
    +----+--------+
    24 rows in set (0.00 sec)
    

  5. Find the table representing the new hardware component. For example, if you are installing a new CCD (or emulated CCD), you would want to add an entry to the CCD table. Add all of the relevant facts about the hardware component in this table.

    mysql> select * from CCD where ControllerID=35;
    +----+--------------+--------------------------+-------------+----------+-------+--------------------+-----------------+----------------------+--------------+-------------+-------------+-----------------------+-----------------------+--------------------------+--------------------------+--------------------+--------------------+-----------------------+-----------------------+---------------------------+---------------------------+------------------------------+------------------------------+-----------------------+----------------+------------+
    | id | serialNumber | HostName                 | CommandPort | DataPort | Chips | DarkImageDirectory | DarkRefreshTime | CalibrationDirectory | ControllerID | BeamCenterX | BeamCenterY | NonUniformitySlowFile | NonUniformityFastFile | NonUniformitySlowBinFile | NonUniformityFastBinFile | DistortionSlowFile | DistortionFastFile | DistortionSlowBinFile | DistortionFastBinFile | PostNonUniformitySlowFile | PostNonUniformityFastFile | PostNonUniformitySlowBinFile | PostNonUniformityFastBinFile | darkExposureTolerance | writeRawImages | j5_trigger |
    +----+--------------+--------------------------+-------------+----------+-------+--------------------+-----------------+----------------------+--------------+-------------+-------------+-----------------------+-----------------------+--------------------------+--------------------------+--------------------+--------------------+-----------------------+-----------------------+---------------------------+---------------------------+------------------------------+------------------------------+-----------------------+----------------+------------+
    |  9 | 0            | blcpu3.slac.stanford.edu |        8041 |     8042 |     1 | ./darkimages/      |            7200 | ./                   |           35 |     94.0000 |     94.0000 | NONUNF                | NONUNF                | NONUNF                   | NONUNF                   | CALFIL             | CALFIL             | CALFIL                | CALFIL                | POSTNUF                   | POSTNUF                   | POSTNUF                      | POSTNUF                      |                  0.10 | N              | N          |
    +----+--------------+--------------------------+-------------+----------+-------+--------------------+-----------------+----------------------+--------------+-------------+-------------+-----------------------+-----------------------+--------------------------+--------------------------+--------------------+--------------------+-----------------------+-----------------------+---------------------------+---------------------------+------------------------------+------------------------------+-----------------------+----------------+------------+
    1 row in set (0.00 sec)
    



Subsections
next up previous contents 5
Next: Miscellaneous show-stoppers for DHS Up: Installation Previous: Installing SSRL's DHS   Contents
Scott McPhillips 2003-03-11