# ******************************************************** # config file # autor : PANAZOL Jean-LUC Date : 08-01-2008 # Description : This file define the defaut configuration # for the Ctrlsecurity serveur program # ********************************************************* # ******************************************************************* # *** enable/disable automatic action in the ctrlsecurity program *** # ******************************************************************* # autoMod = bit0 = 1 automatic speed of fanout in function of sensor and FanlocateTable # autoMod = bit1 = 1 automatic gpio in function of level of state temperature # autoMod = bit2 = 1 automatic gpio in function of level of state photodiode # example : # 7 -> bit0=1,bit1=1, bit2=1 4 # ******************************************************************* # ******************************************************************* # *** enable/disable automatic action in the ctrlsecurity program *** # ******************************************************************* # on/off sensor (0=OFF 1=ON) 32 bits # Warning : Hexa value # examples : # all sensors ON = FFFFFFFF # all sensors OFF = 0 0 # ******************************************************************* # ------------------------------------------------------------------------ # ------------- This part for configure the Temperature functionality ---- # ------------------------------------------------------------------------ # ***************************************** # *** enable/disable temperature sensor *** # ***************************************** # on/off fanout (0=OFF 1=ON) 16 bits # Warning : Hexa value # all fanout zone ON = FFFF # all fanout zone OFF = 0 0 # ***************************************** # ***************************************************** # number of average for each mesure of sensor (rotate average) 5 # ***************************************************** # *************************** # Important # *************************** # number of temperature state # this number is also important for locate table 5 # ***************************************************** # ************************************************* # *** temperature value for transition of state *** # ************************************************* # *********************************** # *** here for the inscrease case *** # *********************************** # temperature value for the transition state (in increase case) # see nbSeuilTemp 10.0, 11.0, 13.0, 15.0, 40.0 # ***************************************************** # *********************************** # *** here for the decrease case *** # *********************************** # temperature value for the transition state (in decrease case) # see nbSeuilTemp 09.0, 10.0, 12.0, 14.0, 39.0 # ***************************************************** # *** end temperature value for transition of state *** # ***************************************************** # **************************************** # *** Temperature/fan out locate table *** # **************************************** #locate table for associed the 32 sensors with the 16 fanout # and for each state. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 3C, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 3C, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 64, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FF, FF, FF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, # ******************************************** # *** End Temperature/fan out locate table *** # ******************************************** # ***************************************** # *** Temperature/GPIO out locate table *** # ***************************************** # gpo locate table in function of state of temperature # (0=OFF 1=ON X=don't care) 32 bits # see nbSeuilTemp for the number of seuilGPOLocateTable 1,xxxxxxxxxxxxxxxxxxxx00xxxxxxxxxx, 2,xxxxxxxxxxxxxxxxxxxx11xxxxxxxxxx, 3,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, 4,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, 5,xxxxxxxxxxxxxxxxxxxx11xxxxxxxxxx, # ********************************************* # *** End Temperature/GPIO out locate table *** # ********************************************* # ------------------------------------------------------------------------ # ------------- This part for configure the photodiode functionality ---- # ------------------------------------------------------------------------ # a virer # ***************************************************** # 2 # ***************************************************** # fin a virer # ***************************************************** FFFF # ***************************************************** # ***************************************************** 1 # ***************************************************** # ***************************************************** 3 # ***************************************************** # ***************************************************** 10.0, 11.0, 13.0 # ***************************************************** # ***************************************************** 9.0, 10.0, 12.0 # ***************************************************** # ***************************************** # *** Photodiode/GPIO out locate table *** # ***************************************** # gpo locate table in function of state of photodiode # (0=OFF 1=ON x=don't care) 32 bits # see nbSeuilphotodiode for the number of seuilGPOLocateTable 1,xxxxxxxxxxxxxxxxxxxx00xxxxxxxxxx, 2,xxxxxxxxxxxxxxxxxxxx11xxxxxxxxxx, 3,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, # ********************************************* # *** End Photodiode/GPIO out locate table *** # ********************************************* # ------------------------------------------------------------------------ # ------------- This part for configure the GPIO functionality ---- # ------------------------------------------------------------------------ # ******************************************************** # *** out action in function of in GPIO (locate table) *** # ******************************************************** # table for each entry # first argument = the number of enrty (bit) # second argument =32 bits word. # 0 -> reset the bit at 0 # 1 -> put the bit a t 1 # x -> don't care (same value that before # *************************************** # *** here the case if bit move to 0 *** # *************************************** 1,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1, 2,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1x, 3,xxxxxxxxxxxxxxxxxxxxxxxxxxxxx0xx, # *************************************** # *** here the case if bit move to 1 *** # *************************************** 1,xxxxxxxxxxxxxxxxxxxxxxxxxxxx1xxx, 2,xxxxxxxxxxxxxxxxxxxxxxxxxxx1xxxx, 3,xxxxxxxxxxxxxxxxxxxxxxxxxx0xxxxx, # ******************************************************** # *** End Action in function of in GPIO (locate table) *** # ******************************************************** # ****************************************************** # *** Description of GPIO and direction (OUT=0 IN=1) *** # ****************************************************** 0,1,DAQ crate processor reset, 1,0,Trigger crate processor reset, 2,0,spare, 3,0,spare, 4,0,spare, 5,0,spare, 6,1,HV enable / disable (validation from DAQ crate), 7,1,DAQ crate enable for lid opening, 8,1,spare, 9,1,spare, 10,0,HV enable / disable 1, 11,0,HV enable / disable 2, 12,0,Enable of the calibration PM HV, 13,0,Spare, 14,1,Status of the camera front doors : Front doors are opening, 15,1,Status of the camera front doors : Front doors are completely opened, 16,1,Status of the camera doors (back and 2 laterals), 17,1,Status of the leds « sauterelles » , 18,1,Status of the Mylar film, 19,1,spare, 20,0,Lid opening, 21,0,Control of the Mylar Film, 22,0,Leds « sauterelles » , 23,0,spare, 24,0,Enable / disable LV PS : drawer 1, 25,0,Enable / disable LV PS : drawer 2, 26,0,Enable / disable LV PS : drawer 3, 27,0,Enable / disable LV PS : drawer 5, 28,0,Enable / disable LV PS : additional PS, 29,0,DAQ crate On/off, 30,0,Trigger crate On/off, 31,0,380 V break down, # ******************************************************** # *** End Description of GPIO *** # ********************************************************