more G-Labs products

Author Topic: Set program priority  (Read 696 times)

February 19, 2016, 07:32:55 AM
Read 696 times

emerich

  • ***
  • Information
  • Full Member
  • Posts: 73
Hi,

in my Danfoss Thermostat program I'm sending about six commands to the valve and this takes about 30 to 40 seconds! Is there a way to set the priority for a program so that it's not interrupted by other programs?

br. Christian

February 19, 2016, 04:58:52 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
It should not take that long to run a program.  I rely on my code running immediately for lighting control and have had no issues.  The only delay I see is due to the time it takes X10 to transmit (~0.7 seconds per command).

February 20, 2016, 03:39:38 AM
Reply #2

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
When do you send your command. When the node is
awake ? Or at any time, in that case it is because the node is sleeping and you get timeout at each message. It is a node on battery yes ?

February 20, 2016, 06:01:38 PM
Reply #3

emerich

  • ***
  • Information
  • Full Member
  • Posts: 73
Hi,

these are battery devices. I send the commands after the wake up notification. I did a reboot of my raspberry and afterwards  the duration for the six commands was about 1,5 seconds. It seems to last longer with each day without reboot. Today it takes about 2,5 seconds. I'll have an eye on that.

br. Christian