Rs232 command summary, Model hr-4p programmer, Help – Hall Research HR-4P User Manual
Page 14

Model HR-4P Programmer
14
Help
The Help menu consists of the following menu items as shown in Figure 17.
Contents – Display the help file contents. A PDF reader will be required in order to view the
document.
About… – Display the Version and Support information for the software.
Figure 17
– Help Menu
RS232 Command Summary
The HR-4P uses a simple command protocol that can be used by other software in order to control and/or configure the
unit.
The unit uses a baud rate of 19200, 8 Data bits, 1 Stop bit and No Parity and it must be in PRG MODE (Power Led
is blinking)
The HR-4P supports a command format as shown in the following table.
<cr><lf> in the table below denote the CARRIAGE RETURN (0x0D) and LINEFEED (0x0A) Characters
Each command is terminated by a single CARRIAGE RETURN <cr>
Command
Function
Response
VER?<cr>
Read Firmware version
Version x.y<cr><lf> where X.Y is the firmware version
CLnm<cr>
Configure I/O line n to m
n = 1 to 4
m = 1 : 2 : 3 : ? = contact input : voltage input : output : status
Nothing except Status Reads return:
CLX1 = I/O line X configured as contact type input<cr><lf>
CLX2 = I/O line X configured as voltage type input<cr><lf>
CLX3 = I/O line X configured as output<cr><lf>
IOnm<cr>
Set or Read State of I/O line n to m
n = 1 to 4 = output
m = 0 : 1 : ? = low : high : status
Input X = 1 or 0<cr><lf>
Output X = 1 or 0<cr><lf>
TOGn<cr>
Toggle the state of I/O line n
n = 1 to 4
Input X = 1 or 0<cr><lf>
Output X = 1 or 0<cr><lf>
IRCn<cr>
Set or inquire IR
n = 0 : 1 : ? = input : output : status
IRC0 = IR configured as Rxd<cr><lf>
IRC1 = IR configured as Txd<cr><lf>
IRSn,m<cr>
Send IR code stored in 1 of 32 IR memory locations
n = 9 (Learned IR)
m = 1 – 32 (Memory Location)
Nothing
IRSn,m,k<cr>
Send IR code with a specified IR protocol, IR address, and IR command
n = 0 - 6 (NEC, JVC, Sharp, RCA, RC5, Sony-sirc, and Extended NEC)
m = 0 - 255 (or 0 - 65535 for Extended NEC) = IR address in DECIMAL
k = 0 - 255 = IR command in DECIMAL
Nothing
IRPn<cr>
Set or Read Current IR protocol State
n = 0 - 5 (NEC, JVC, Sharp, RCA, RC5, and Sony-sirc)
n = ? = status
IRP0 = Current IR protocol = NEC<cr><lf>
IRP1 = Current IR protocol = JVC<cr><lf>
IRP2 = … and so on
RTSn<cr>
Set or Read State of RTS line
n = 0 : 1 : T: ? = low : high : toggle : status
Nothing except Status Reads return:
RTS? = RTS0<cr><lf> or RTS1<cr><lf>
CTSn<cr>
Read State of CTS line
n = ? = status
CTS? = CTS0<cr><lf> or CTS1<cr><lf>
FDFT<cr>
Factory default
Are you sure (Y,N)?
User must send CAPITOL “Y” before 8 Second Timeout
RST<cr>
Unit Reset/Restart
MODE<cr>
Return current mode status
00 = Run mode
01 = Program mode
00 or 01<cr><lf>
RE<cr> or re<cr>
Reserved – Active only in PROGRAM MODE
Factory use only
WE<cr> or we<cr>
Reserved – Active only in PROGRAM MODE
Factory use only
RDIO<cr>
Reserved – Active only in PROGRAM MODE
Factory use Only
RDIN<cr>
Reserved – Active only in PROGRAM MODE
Factory use Only