Hall Research HR-4P User Manual
Page 7
![background image](/manuals/737124/7/background.png)
Programmable Serial Controller
7
A configuration string can be up to 250 bytes long, and it can be any combination of: serial, time delays, IR codes, outputs,
and pulses actions. The action strings you are building use bytes for identifying the desired action. For example, a Serial
Commands uses XX+2 bytes where XX is the number of bytes the user defines. For example “Hello” uses 4 bytes + 2 bytes
for the serial command. You are limited to 250 bytes for any particular action string.
Condition – Here you are specifying what real-world event to look for on the I/O
ports configured as input (or the CTS line pin 8 which is always an input), you can
also specify the direction of a change as high-to-LOW, or low-to-HIGH. So, for
example you can issue a command when a contact closes and a different command
when a contact opens. If you just want to issue a single command (when your input
is a momentary switch), all you have to do is define the action for either Low, or High
going pulse. If defined for High, then when the external momentary switch opens, the
action is triggered.
Action
This is what you want to do when the above condition is detected. Action strings can be complex and have any combination
of the following (the only limitation is the maximum bytes your defined action can have):
Serial is used to send specific serial characters to a device (such as turning a Projector ON or OFF)
IR is used to send an IR code to an IR enabled device
Delay is used to add a time delay
Output is used to toggle a specific output on and off
Pulse is used to send timed on/off/on or off/on/off to a output
Serial Commands
A serial command can send data to any standard serial device with selectable baud rate and parity. When sending
serial commands, you can also specify a delay between characters to meet varying requirements.
Serial commands can be mixed with other actions for the same input. For example, you may have a projector
configuration string like “PWR_ON” followed by a DELAY followed by an OUTPUT. There is no limit to the number
of actions that can be added as long as the 250 character limit is observed.
Hexadecimal characters may be entered by using &H in front of the 2 digit Hexadecimal character.
Select the desired Condition and change Action to Serial. Commands are entered in the Command text box.
When done, the user clicks the Add button to append the command as shown in Figure 5.
Figure 5
– Serial Commands