KRAMER: SIMPLE CREATIVE TECHNOLOGY
PL-18 Commands in Protocol 3000
8
Explicit Binary Port Configuration Command
Config Serial port
(RS-232/1)
UART-CFG
PORT_NUM, BAUD,
DATA_BITS, PARITY, STOP_BITS[,
FLOW_CONTROL]
UART-CFG PORT_NUM, BAUD,
DATA_BITS, PARITY, STOP_BITS
[, FLOW_CONTROL] RESULT
Config IR out port
IR-CFG PORT_NUM,
CARRIER_FREQ, DUTY_CYCLE
IR-CFG PORT_NUM,
CARRIER_FREQ, DUTY, RESULT
Binary Data Send/Receive
Emit raw data via a
pre-configured binary
port
BIN PORT_TYPE, PORT_NUM,
RAW_DATA_SIZE START_TOKEN
RAW_DATA
END_TOKEN
1
BIN PORT_TYPE, PORT_NUM,
RAW_DATA_SIZE [ ] RESULT
Convey raw data
received through a
preconfigured binary
port
RBIN PORT_TYPE, PORT_NUM,
RAW_DATA_SIZE START_TOKEN
RAW_DATA
END_TOKEN
1
RBIN PORT_TYPE, PORT_NUM,
RAW_DATA_SIZE [ ] RESULT
2
Factory default values of binary ports:
IR1, IR2: Carrier frequency – 38000; duty cycle – 33
RS-232-1: 9600 baud, 8 data bits, parity NONE, 1 stop bit
Configuration and Operation Examples
A binary port must be configured properly
before
using it to send or receive binary data. The port may be used in
static or dynamic port scenarios:
Static binary port scenario
– A specific binary port controls one specific external device (e.g. one RC
button opens a projector; another RC button closes it using the same serial binary port). The port is
configured only once at installation and the value is stored in the non-volatile memory of the
PL-18
.
Thereafter, when the RC button is pressed it only invokes the configured BIN commands on the
PL-18
.
Dynamic binary port scenario
– A specific binary port controls various external devices (e.g. one RC
button opens a TV, another RC button opens a DVD, and both use the same IR binary port with a dual IR
emitter cable). The binary port must be reconfigured before issuing the BIN command to a different
device. At each RC button press, a CBIN command is sent to the
PL-18
before sending a BIN command.
Configure UART (RS-232) port 1, with “9600,8,n,1” serial port configuration parameters:
Binary port configuration examples:
#cbin uart, 1, 9600, 8, n, 1 <CR>
or
#uart-cfg 1, 9600, 8, n, 1 <CR>
Configure IR port 2, with “38000,33” as infrared configuration parameters:
#cbin ir, 2, 38000, 33 <CR>
or
#ir-cfg 2, 38000, 33 <CR>
1 As opposed to any other P3000 command, CR cannot be added after the END_TOKEN
2 The RC responds with this command
im Vertrieb von CAMBOARD Electronics
www.camboard.de
Tel. 07131 911201
Fax 07131 911203