trd_fedServerAsha_initialize(string domain, string device) { } trd_fedServerAsha_valueChanged( string domain, string device, int Fsm_dot_State, string &fwState ) { if (Fsm_dot_State == 4) { fwState = "OFF"; } else if (Fsm_dot_State == 5) { fwState = "STANDBY"; } else if (Fsm_dot_State == 42) { fwState = "INITIALIZING"; } else if (Fsm_dot_State == 43) { fwState = "STBY_INITIALIZED"; } else if (Fsm_dot_State == 45) { fwState = "TESTING"; } else if (Fsm_dot_State == 44) { fwState = "CONFIGURING"; } else if (Fsm_dot_State == 3) { fwState = "CONFIGURED"; } else if (Fsm_dot_State == 6) { fwState = "READY"; } else if (Fsm_dot_State == 13) { fwState = "ERROR"; } else if (Fsm_dot_State == 2) { fwState = "NO_CONTROL"; } } trd_fedServerAsha_doCommand(string domain, string device, string command) { if (command == "GO_STANDBY") { dpSet(device+".Fsm.Action",100); } if (command == "GO_OFF") { dpSet(device+".Fsm.Action",150); } if (command == "INITIALIZE") { anytype valueOf_init_tag; fwDU_getCommandParameter(domain, device, "init_tag", valueOf_init_tag); dpSet(device+".Fsm.Action",valueOf_init_tag); } if (command == "TEST") { anytype valueOf_test_tag; fwDU_getCommandParameter(domain, device, "test_tag", valueOf_test_tag); dpSet(device+".Fsm.Action",valueOf_test_tag); } if (command == "CONFIGURE") { anytype valueOf_conf_tag; fwDU_getCommandParameter(domain, device, "conf_tag", valueOf_conf_tag); dpSet(device+".Fsm.Action",valueOf_conf_tag); } if (command == "GO_READY") { dpSet(device+".Fsm.Action",500); } if (command == "GO_CONFIGURED") { dpSet(device+".Fsm.Action",350); } if (command == "RECOVER") { dpSet(device+".Fsm.Action",600); } }