June 2010 Archives

2010-06-26 03:03:41

HTML5 canvas test


Posted by Jeong Han Lee | Permanent link

2010-06-07 11:54:03

taskSpawn in VxWorks



int taskSpawn
    (
    char *  name,      /* name of new task (stored at pStackBase) */
    int     priority,  /* priority of new task */
    int     options,   /* task option word */
    int     stackSize, /* size (bytes) of stack needed plus name */
    FUNCPTR entryPt,   /* entry point of new task */
    int     arg1,      /* 1st of 10 req'd task args to pass to func */
    int     arg2,
    int     arg3,
    int     arg4,
    int     arg5,
    int     arg6,
    int     arg7,
    int     arg8,
    int     arg9,
    int     arg10
    )

taskSpawn ("ROC",                 name of ROC task
                    200,                  priority
                    8,                      task option ??
                    250000,            size of stack
                    coda_roc,          entry point of new task
                    "",                      1st arg
                    "-session",         2nd arg (-session)
                    "cdaq",              3rd arg ("session name")
                    "-objects",         4th arg (-objects")
                    "ROC11 ROC"      5th arg of coda_roc (ROC11 ROC)
                   )



Posted by Jeong Han Lee | Permanent link

2010-06-07 11:00:16

Ethernet Connection in Hall C for Qweak



 * Twenty-four Ethernet connections for Qweak

 doghouse  ----  T20 Rack    ---- PANEL A ---- Fiber Optic Slot(FOS)
  cable #         Patch Panel      HC01Z04      Netgear or hallc-cat2950
   1              1                1            FOS 6
   2              2                2            FOS 16
   3              3                3            FOS 10
   4              4                4            FOS 17
   5              5                5            FOS 18
   6              6                6            FOS 19
   7              7                7            FOS 20
   8              8                8            FOS  5
   9-15           9-15             9-15         1-7 (Netgear switch)
   16-24          16-24            16-24        available ports on
                                                hallc-cat2950 (cisco)


  * Detailed use of T20 Rack Patch Panel #

   FOS
   1  -------- Reserved   (Boot Power Strip for ROC9)
   2  -------- Reserved   (Boot Power Strip for ROC10)
   3  -------- hcreboot13 (Boot Power Strip for others)
   4  -------- hctsv11    (portserver)
   5  -------- IOC for Hall Probe        (hctsv11 2002)
   6  -------- qwvme9     (CPU of ROC9)  (hctsv11 2008)
   7  -------- qwvme10    (CPU of ROC10) (hctsv11 2007)
   8  -------- qwvme11    (CPU of ROC11) (hctsv11 2006)

   Netgear
   9  -------- qwvme9mon  (ROC9 crate Power Monitor)
   10 -------- qwvme10mon (ROC10 crate Power Monitor)
   11-15       Reserved   (connected to the doghouse)

   Cisco
   16 -------- qwscannerctrl (scanner controller unit)
   17-22       Reserved   (not connected)
   23 -------- a Netgear 4port switch (doghouse, temp?)
   24 -------- region 3 rotator controller



Posted by Jeong Han Lee | Permanent link

2010-06-07 10:57:46

snmp configuration


* Download MIB file from somewhere (I don't remember where it is)
  According to http://www.net-snmp.org/FAQ.html#How_do_I_add_a_MIB_

  $ mkdir $HOME/.snmp
  $ mkdir $HOME/.snmp/mibs
  $ scp WIENER-CRATE-MIB ~/.snmp/mibs/
  $ cd $HOME/.snmp/
  $ echo "mibs +WIENER-CRATE-MIB" >> snmp.conf

* Check whatever status of the crate with 129.57.168.139 (qwvme9mon)

  $ snmpget -v 2c -m +WIENER-CRATE-MIB -c public 129.57.168.139 outputVoltage.U5
    WIENER-CRATE-MIB::outputVoltage.U5 = Opaque: Float: 12.000000 V



Posted by Jeong Han Lee | Permanent link