queued commands with timeout or required response!
Hi,
First off - your plugin rocks. It is at the heart of an HS3 + Alexa + irule control system.
Now - here's where I need some guidance.
- I have an obscure matrix amplifier (Xantech MX-88) that is controlled by an iTachIP2SL.
- I can successfully send commands to it and receive them via your plugin.
- For a variety of reasons, I must do this from script.
- When the MX88 receives and executes a command, it responds with "OK"
But it is very sensitive to timing.
Right now, I am inserting a delay between every string I send to the unit.
But in order to ensure this works reliably I have to set it to a very high value.
What would be much better is to say:
Alternately, a Synchronous IP Call, with a timeout, that blocked my next lines of code until a response was received, or a timeout hit.
Is this or anything close, doable?
Hi,
First off - your plugin rocks. It is at the heart of an HS3 + Alexa + irule control system.
Now - here's where I need some guidance.
- I have an obscure matrix amplifier (Xantech MX-88) that is controlled by an iTachIP2SL.
- I can successfully send commands to it and receive them via your plugin.
- For a variety of reasons, I must do this from script.
- When the MX88 receives and executes a command, it responds with "OK"
But it is very sensitive to timing.
Right now, I am inserting a delay between every string I send to the unit.
Code:
Threading.Thread.Sleep(1500)
What would be much better is to say:
- Send STRING to Plugin...with required response STRING and a TIMEOUT Value. The plugin will queue any further commands/strings.
- If either the response string is received or the timeout is reached, unblock and allow the next string/command to be released
Alternately, a Synchronous IP Call, with a timeout, that blocked my next lines of code until a response was received, or a timeout hit.
Is this or anything close, doable?
Comment