13 of 24
Reply fl ags
Flags alter the way replies are processed, creati ng fl exibility in replies that can be sent to the
source device, even if no actual target reply was received. The available fl ags are default,
conditi onal, and always.
Using a combinati on of fl ags and variables a local state machine can be developed within a
translati on fi le, to keep track of a system state of a device.
For example, an original item of equipment may support multi ple commands to retrieve the
current status of various items, such as power status, acti ve port etc. A replacement device may
support only a single global status request. Using variables to track the state of commands as they
are received by cmdBridge, and conditi onal replies, such a situati on can be easily managed.
default
If a reply is received from the target device, and there is no other match found, then send
this reply.
command {
desc = “Set Mute ON”;
source_cmd = “4D 55 54 45 20 4F 4E 0D”;
target_cmd = “02 10 00 00 00 12
reply {
desc = “Reply Mute ON OK”;
target_reply = “22 10 01 20 00 53”;
source_reply = “3A”;
flag = default;
}
}
always
Always send this reply, even if there is no actual reply from the target device.
command {
desc = “Set Mute ON”;
source_cmd = “4D 55 54 45 20 4F 4E 0D”;
target_cmd = “02 10 00 00 00 12
reply {
desc = “Reply Mute ON OK”;
source_reply = “3A”;
flag = always;
}
}
Содержание cmdBridge
Страница 1: ...cmdBridge Harkwood Services Ltd Reference Manual Intelligent command protocol translation...
Страница 23: ...23 of 24 quoted_string printable character...
Страница 24: ...24 of 24...