calaos / calaos_base

Calaos server
https://calaos.fr
GNU General Public License v3.0
162 stars 37 forks source link

impulse command doesn't work with DMX #51

Closed azertybepo closed 10 years ago

azertybepo commented 10 years ago

when using impulse command on a dmx light, the light turns on but never blink nor turns off on any given pattern

DBG<8176>:calaos_rule Rule.cpp:67 bool Calaos::Rule::Execute()() Rule(Couloirs,Detecteur salon test): Trying execution...
DBG<8176>:calaos_rule.condition.standard Rules/ConditionStd.cpp:182 virtual bool Calaos::ConditionStd::Evaluate()() Ok
INF<8176>:calaos_rule Rule.cpp:75 bool Calaos::Rule::Execute()() Rule(Couloirs,Detecteur salon test): Starting execution (1 actions)
INF<8176>:calaos_output IO/OutputLightDimmer.cpp:65 virtual bool Calaos::OutputLightDimmer::set_value(std::string)() output_9: got action, impulse 2000 1000 3000
INF<8176>:calaos_output IO/OutputLightDimmer.cpp:321 void Calaos::OutputLightDimmer::impulse_extended(std::string)() output_9: got extended impulse action, parsing blinking pattern...
DBG<8176>:calaos_output IO/OutputLightDimmer.cpp:344 void Calaos::OutputLightDimmer::impulse_extended(std::string)() output_9: Add blink step True for 2000ms
DBG<8176>:calaos_output IO/OutputLightDimmer.cpp:344 void Calaos::OutputLightDimmer::impulse_extended(std::string)() output_9: Add blink step False for 1000ms
DBG<8176>:calaos_output IO/OutputLightDimmer.cpp:344 void Calaos::OutputLightDimmer::impulse_extended(std::string)() output_9: Add blink step True for 3000ms
INF<8176>:calaos_output IO/OutputLightDimmer.cpp:65 virtual bool Calaos::OutputLightDimmer::set_value(std::string)() output_9: got action, on
DBG<8176>:calaos_output Output.cpp:43 virtual void Calaos::Output::EmitSignalOutput()() output_9
DBG<8176>:calaos_rule ListeRule.cpp:119 virtual void Calaos::ListeRule::ExecuteRuleSignal(std::string)() Mutex locked, execute rule later for input output_9
DBG<8176>:calaos_ipc IPC.cpp:97 void IPC::SendEvent(std::string, std::string, void*)() (events , output output_9 state%3A100) : 3 events waiting.
DBG<8176>:calaos_output Output.cpp:43 virtual void Calaos::Output::EmitSignalOutput()() output_9
DBG<8176>:calaos_rule ListeRule.cpp:119 virtual void Calaos::ListeRule::ExecuteRuleSignal(std::string)() Mutex locked, execute rule later for input output_9
DBG<8176>:calaos_ipc IPC.cpp:97 void IPC::SendEvent(std::string, std::string, void*)() (events , output output_9 state%3A100) : 4 events waiting.
DBG<8176>:calaos_rule.action.standard Rules/ActionStd.cpp:143 virtual bool Calaos::ActionStd::Execute()() Ok
INF<8176>:calaos_rule Rule.cpp:81 bool Calaos::Rule::Execute()() Rule(Couloirs,Detecteur salon test): Execution done.
raoulh commented 10 years ago

Could you add more log, after the "Rule(Couloirs,Detecteur salon test): Execution done." ?

azertybepo commented 10 years ago
INF<11542>:calaos_rule Rule.cpp:81 bool Calaos::Rule::Execute()() Rule(Couloirs,Detecteur salon test): Execution done.
DBG<11542>:calaos_rule Rule.cpp:95 bool Calaos::Rule::Execute()()
DBG<11542>:calaos_ipc IPC.cpp:164 void IPC::BroadcastEvent()() ("events"  ,  "input input_11 state%3Atrue" , 0)
DBG<11542>:calaos_ipc IPC.cpp:164 void IPC::BroadcastEvent()() ("WagoMap"  ,  "mbus,read,bits" , 0xb60006a8)
DBG<11542>:calaos_ipc IPC.cpp:164 void IPC::BroadcastEvent()() ("events"  ,  "output output_9 state%3A100" , 0)
DBG<11542>:calaos_ipc IPC.cpp:164 void IPC::BroadcastEvent()() ("events"  ,  "output output_9 state%3A100" , 0)
DBG<11542>:calaos_rule ListeRule.cpp:124 virtual void Calaos::ListeRule::ExecuteRuleSignal(std::string)() Received signal for id output_9
DBG<11542>:calaos_rule ListeRule.cpp:124 virtual void Calaos::ListeRule::ExecuteRuleSignal(std::string)() Received signal for id output_9
INF<11542>:calaos_wago IO/Wago/WagoCtrl.cpp:198 bool Calaos::WagoCtrl::read_words(Utils::UWord, int, std::vector<short unsigned int>&)() WagoCtrl::read_words(): Ok
^CINF<11542>:calaos_input IO/OneWire/OWTemp.cpp:81 virtual void Calaos::OWTemp::readValue()() input_62: Ok
INF<11542>:calaos_input IO/InputTemp.cpp:86 void Calaos::InputTemp::emitChange()() input_62: 19.5625 °C
DBG<11542>:calaos_input Input.cpp:44 virtual void Calaos::Input::EmitSignalInput()() input_62
DBG<11542>:calaos_rule ListeRule.cpp:124 virtual void Calaos::ListeRule::ExecuteRuleSignal(std::string)() Received signal for id input_62
DBG<11542>:calaos_ipc IPC.cpp:97 void IPC::SendEvent(std::string, std::string, void*)() (events , input input_62 state%3A19%2E5625) : 2 events waiting.
DBG<11542>:calaos_input Input.cpp:44 virtual void Calaos::Input::EmitSignalInput()() input_66
DBG<11542>:calaos_rule ListeRule.cpp:124 virtual void Calaos::ListeRule::ExecuteRuleSignal(std::string)() Received signal for id input_66
DBG<11542>:calaos_input IO/InputAnalog.cpp:100 virtual double Calaos::InputAnalog::get_value_double()() input_66: 1.7272e+228 * 20.3 + 9.2868e+199
DBG<11542>:calaos_ipc IPC.cpp:97 void IPC::SendEvent(std::string, std::string, void*)() (events , input input_66 state%3A%2D2%2E14748e%2B07) : 3 events waiting.
DBG<11542>:calaos_input IO/InputAnalog.cpp:100 virtual double Calaos::InputAnalog::get_value_double()() input_66: 1.7272e+228 * 20.3 + 9.2868e+199
INF<11542>:calaos_input IO/InputAnalog.cpp:72 void Calaos::InputAnalog::emitChange()() input_66: -2.14748e+07
DBG<11542>:calaos_input Input.cpp:44 virtual void Calaos::Input::EmitSignalInput()() input_65
DBG<11542>:calaos_rule ListeRule.cpp:124 virtual void Calaos::ListeRule::ExecuteRuleSignal(std::string)() Received signal for id input_65
DBG<11542>:calaos_input IO/InputAnalog.cpp:100 virtual double Calaos::InputAnalog::get_value_double()() input_65: -5.86049e-42 * 183 + 2.96439e-323
DBG<11542>:calaos_ipc IPC.cpp:97 void IPC::SendEvent(std::string, std::string, void*)() (events , input input_65 state%3A0) : 4 events waiting.
DBG<11542>:calaos_input IO/InputAnalog.cpp:100 virtual double Calaos::InputAnalog::get_value_double()() input_65: -5.86049e-42 * 183 + 2.96439e-323
INF<11542>:calaos_input IO/InputAnalog.cpp:72 void Calaos::InputAnalog::emitChange()() input_65: 0
DBG<11542>:calaos_input Input.cpp:44 virtual void Calaos::Input::EmitSignalInput()() input_64
DBG<11542>:calaos_rule ListeRule.cpp:124 virtual void Calaos::ListeRule::ExecuteRuleSignal(std::string)() Received signal for id input_64
DBG<11542>:calaos_input IO/InputAnalog.cpp:100 virtual double Calaos::InputAnalog::get_value_double()() input_64: 0 * 132 + 0
DBG<11542>:calaos_ipc IPC.cpp:97 void IPC::SendEvent(std::string, std::string, void*)() (events , input input_64 state%3A0) : 5 events waiting.
DBG<11542>:calaos_input IO/InputAnalog.cpp:100 virtual double Calaos::InputAnalog::get_value_double()() input_64: 0 * 132 + 0
INF<11542>:calaos_input IO/InputAnalog.cpp:72 void Calaos::InputAnalog::emitChange()() input_64: 0
DBG<11542>:calaos_input Input.cpp:44 virtual void Calaos::Input::EmitSignalInput()() input_63
DBG<11542>:calaos_rule ListeRule.cpp:124 virtual void Calaos::ListeRule::ExecuteRuleSignal(std::string)() Received signal for id input_63
DBG<11542>:calaos_input IO/InputAnalog.cpp:100 virtual double Calaos::InputAnalog::get_value_double()() input_63: 3.84024e-261 * 393 + 1.52003e-314
DBG<11542>:calaos_ipc IPC.cpp:97 void IPC::SendEvent(std::string, std::string, void*)() (events , input input_63 state%3A0) : 6 events waiting.
DBG<11542>:calaos_input IO/InputAnalog.cpp:100 virtual double Calaos::InputAnalog::get_value_double()() input_63: 3.84024e-261 * 393 + 1.52003e-314
INF<11542>:calaos_input IO/InputAnalog.cpp:72 void Calaos::InputAnalog::emitChange()() input_63: 0
INF<11542>:calaos_wago IO/Wago/WagoCtrl.cpp:198 bool Calaos::WagoCtrl::read_words(Utils::UWord, int, std::vector<short unsigned int>&)() WagoCtrl::read_words(): Ok
INF<11542>:calaos_wago IO/Wago/WagoCtrl.cpp:198 bool Calaos::WagoCtrl::read_words(Utils::UWord, int, std::vector<short unsigned int>&)() WagoCtrl::read_words(): Ok
INF<11542>:calaos_wago IO/Wago/WagoCtrl.cpp:198 bool Calaos::WagoCtrl::read_words(Utils::UWord, int, std::vector<short unsigned int>&)() WagoCtrl::read_words(): Ok
INF<11542>:calaos_input IO/OneWire/OWTemp.cpp:81 virtual void Calaos::OWTemp::readValue()() input_61: Ok
INF<11542>:calaos_input IO/OneWire/OWTemp.cpp:81 virtual void Calaos::OWTemp::readValue()() input_60: Ok
INF<11542>:calaos_input IO/InputTemp.cpp:86 void Calaos::InputTemp::emitChange()() input_60: 21.375 °C
DBG<11542>:calaos_input Input.cpp:44 virtual void Calaos::Input::EmitSignalInput()() input_60