User Tools

Site Tools


strutture:lnf:da:chaos:hardware_description_in_chaos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
strutture:lnf:da:chaos:hardware_description_in_chaos [2011/07/26 12:02] bisegni@infn.itstrutture:lnf:da:chaos:hardware_description_in_chaos [2011/07/26 14:22] (current) bisegni@infn.it
Line 1: Line 1:
 +====== Hardware Description in !CHAOS ======
  
 +A JSON representation of a CU initial setup with:
 +
 +  * General Information
 +  * Dataset Description
 +  * Actions Description
 +
 +=== General Information ===
 +
 +<code>
 +"cs|cm|cu_name" : "WORKER_CU",
 +"cs|cm|cu_desc" : "This is a CU description",
 +"cs|cm|cu|thr|sch_del" : 5000000,
 +"cs|cm|cu|managed_dev_id" : [ "SIMULATED_DEVICE_ID" ]
 +</code>
 +
 +=== Dataset Description ===
 +Insieme di attributi dell'HW che viene controllato dalla CU. Ogni attributo viene descritto dalle sue proprietà:
 +  * Dominio,(device_id)
 +  * Codice, (Volt, Ampere) (definiti a priori)
 +  * Descrizione (Voltaggio misurato)
 +  * Tipo (int32, int64, string, double, byte buffer)/scala(definita a priori v, mv, a, ma)
 +  * Input, Output, Iunout/Output
 +  * Range  
 +Nel Dataset può essere specificata anche Lista di classi in modo da ereditare automaticamente tutti gli attributi della classe definita nel metadata server.Tali attributi andranno a sommarsi a quelli specificati nel modo sopra descritto. Oltre a questi definiti dalle CU, CHAOS associa ad ogni dataset due ulteriori parametri:
 +  * Timestamp
 +  * Tag di trigger
 +<code>
 +"cs|cm|ds_desc" : [ 
 +{ "cs|cm|ds_attr_dom" : "SIMULATED_DEVICE_ID", 
 + "cs|cm|ds_attr_name" : "byteValue", 
 + "cs|cm|ds_attr_desc" : "describe the element 3 of the dataset", 
 + "cs|cm|ds_attr_dir" : 1, 
 + "cs|cm|ds_attr_type" : 4 
 +}, 
 +{ "cs|cm|ds_attr_dom" : "SIMULATED_DEVICE_ID", 
 + "cs|cm|ds_attr_name" : "intValue_1", 
 + "cs|cm|ds_attr_desc" : "describe the element 1 of the dataset", 
 + "cs|cm|ds_attr_dir" : 1, 
 + "cs|cm|ds_attr_type" : 0 
 +}, 
 +{ "cs|cm|ds_attr_dom" : "SIMULATED_DEVICE_ID", 
 + "cs|cm|ds_attr_name" : "intValue_2", 
 + "cs|cm|ds_attr_desc" : "describe the element 2 of the dataset", 
 + "cs|cm|ds_attr_dir" : 2, 
 + "cs|cm|ds_attr_type" : 0 
 +} ]
 +</code>
 +=== Actions Description ===
 +<code>
 +"cs|cmdm|act_desc" : [ 
 +{ "cs|cmdm|act_domain" : "WORKER_CU", 
 + "cs|cmdm|act_name" : "actionTestOne", 
 + "cs|cmdm|act_desc" : "comandTestOne this action will do some beautifull things!" 
 +}, 
 +{ "cs|cmdm|act_domain" : "WORKER_CU", 
 + "cs|cmdm|act_name" : "actionTestTwo", 
 + "cs|cmdm|act_desc" : "comandTestTwo, this action will do some beautifull things!", 
 + "cs|cmdm|act_desc_param" : [ 
 + { "cs|cmdm|act_desc_par_name" : "actionTestTwo_paramName", 
 + "cs|cmdm|act_desc_par_info" : "integer 32bit action param description for testing purpose", 
 + "cs|cmdm|act_desc_par_type" : 0 
 + } ] 
 +}, 
 +{ "cs|cmdm|act_domain" : "WORKER_CU", 
 + "cs|cmdm|act_name" : "setDatasetElement", 
 + "cs|cmdm|act_desc" : "method for set the input element for the dataset", 
 + "cs|cmdm|act_desc_param" : [ 
 + { "cs|cmdm|act_desc_par_name" : "intValue_2", 
 + "cs|cmdm|act_desc_par_info" : "describe the element 2 of the dataset", 
 + "cs|cmdm|act_desc_par_type" : 0 
 + } ] 
 +} ]
 +</code>

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki