Download USER MANUAL - CAMBOARD Electronics
Transcript
im Vertrieb von CAMBOARD Electronics PL-18 Commands in Protocol 3000 Explicit Binary Port Configuration Command UART-CFG PORT_NUM, BAUD, Config Serial port (RS-232/1) DATA_BITS, PARITY, STOP_BITS[, Config IR out port DATA_BITS, PARITY, STOP_BITS FLOW_CONTROL] [, FLOW_CONTROL] RESULT IR-CFG PORT_NUM, IR-CFG PORT_NUM, CARRIER_FREQ, DUTY_CYCLE CARRIER_FREQ, DUTY, RESULT Binary Data Send/Receive BIN PORT_TYPE, PORT_NUM, Emit raw data via a pre-configured binary RAW_DATA_SIZE START_TOKEN port RAW_DATA END_TOKEN Convey raw data received through a preconfigured binary port UART-CFG PORT_NUM, BAUD, BIN PORT_TYPE, PORT_NUM, RAW_DATA_SIZE [ ] RESULT 1 RBIN PORT_TYPE, PORT_NUM, RBIN PORT_TYPE, PORT_NUM, RAW_DATA_SIZE START_TOKEN RAW_DATA_SIZE [ ] RESULT 2 RAW_DATA END_TOKEN 1 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. Binary port configuration examples: Configure UART (RS-232) port 1, with “9600,8,n,1” serial port configuration parameters: #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 8 www.camboard.de Tel. 07131 [email protected] Fax 07131 911203 KRAMER: SIMPLE CREATIVE TECHNOLOGY