This page last changed on Sep 03, 2010 by mishoboss.

Hi, I have a question about the commands architecture and logic. What happens when 2 or more commands have to be executed in the same time? Is there a FIFO queue or some kind of delay between executing the commands over one interface?

I'm asking this because in my case I have a RS-485 network with architecture of one master and many slaves. The idea is the master to request data from the slaves and they return that data to the master. What happens if I have 20-30 slave devices in one RS485 network and I have setup sensor devices in OR Controller that request data from every slave every second? And meanwhile I execute another command to one of the slaves?

One more question - how could I make a sensor in the Designer that executes a command every second?

Hi, I have a question about the commands architecture and logic. What happens when 2 or more commands have to be executed in the same time? Is there a FIFO queue or some kind of delay between executing the commands over one interface?

If two commands are executed simultaneously over the HTTP/REST interface, they are handled concurrently as two separate threads. Order is non-deterministic and ultimately up to the operating system scheduler.

If you have two commands in a macro, they are executed in sequence. You can also add delays between commands in macros.

I'm asking this because in my case I have a RS-485 network with architecture of one master and many slaves. The idea is the master to request data from the slaves and they return that data to the master. What happens if I have 20-30 slave devices in one RS485 network and I have setup sensor devices in OR Controller that request data from every slave every second? And meanwhile I execute another command to one of the slaves?

Each sensor has its own thread, so they are polled concurrently. The command sent to the slave is also executed concurrently within its own thread, as per above.

That is the view from the stand-point of the OpenRemote Controller runtime.

In practical terms, depending on your physical media (e.g. RS-485) you may want to queue or order or throttle requests – this is up to the protocol implementation in OpenRemote runtime (i.e. you in case of protocol implementor) to manage.

One more question - how could I make a sensor in the Designer that executes a command every second?

Sensors currently poll devices at 0.5s interval. We can make this configurable.

Posted by admin at Sep 05, 2010 16:04
Document generated by Confluence on Jun 05, 2016 09:31