Like every communication method the serial communication uses a particular protocol (ANSI) which must be respected in order to
allow communication to take place, following table gives a summary of the predefined communication terms.
Start byte\xfe
Projector address
Command byte(s)
Data bytes
Checksum byte
Stop byte\xff
1
ANSI
American National standards Institute
Start byte
The “Start byte” informs the projec
take place
tor (in case of transmission) or the computer (in case of reception) that a new data transfer will
Projector address
The “projector address” defines the address of the computer the projector wants to talk to (in case of transmission) or the address
of the projector that answers (in case of reception).
The maximum number of projectors that can be addressed by one computer is 256.
Command byte(s)
There is at least one command byte to define the action to be performed. Commands that are not often used or complex commands
can take more than one byte. All command bytes that are sent by the computer to get information out of the projector are repeated
in the answer-data-transfer of the projector.
Data bytes (optional)
Whether the command byt
Data which contains more than one byte is called a word and can also be signed or unsigned.see "Data words", page 6
1. optional
R5976884 RLM SERIES 04/04/20065
es are followed by one or more data bytes depends on the contents of the command bytes.
1. Serial communications Basics
Some com mands do not require a data field(s)
Checksum byte
The “Checksum byte” is used to detect errors during transmission or reception
The “Stop byte” informs the projector (in case of transmission) or the computer (in case of reception) that the data transfer is complete
and that the interpretation of the command and data bytes can start.
Acknowledge (ACK)
If the communication link and if the sent commands can be interpreted by the projector an “ACK” command is sent back. In case the
commands cannot be interpreted a “NACK” command is sent back.
End of process (EOP)
When the end of process command is activated, an EOP is send after the ACK command to signify the completion of the process.
for more information about this, see t he EOP command.
Note
Any command byte, data byte or checksum byte that equals \x80, \xfe, \xff hastobeconverted!
1.Transmission
- instead of \x80, send \x80 followed by \x00
- instead of \xfe, send \x80 followed by \x7e
- instead of \xff, send \x80 followed by \x7f
2.Reception
- replace \x80 followed by \x00 with \x80
- replace \x80 followed by \x7e with \xfe
- replace \x80 followed by \x7f with \xff
1.2Data words
msb
The most significant byte, is the byte with the greatest weight (value).
lsb
The less significant byte, is the byte with the smallest weight (value).
Description
A word contains more than one byte, the first byte is the msb, the last byte is the lsb.
Examples of data words
•The projector runtime parameter is described using an unsig
the runtime in seconds.
How to calculate the value of a word ?
Lets take the example of a double word returned by the “projector runtime, read” commando.
6
ned double word where 2 bytes (msb ...lsb) represent the value of
R5976884 RLM SERIES 04/04/2006
returned data = Data[0]....Data[3]
3
value = Data[0]*256
+ Data[1]*2562+ Data[2]*256 + Data[3].
1.3Communication settings
Baud rate
Defines the speed of the data transfer. The baud rate can be set using the menu structure.
Consult the Owner’s manual of the projector on how to change the baud rate setting.
Data Bits
Eight data bits are used for each character of the data transfer.
Parity
There is no parity bit used to perform error checking.
Stop Bits
One stop bit is used to define the end of a character.
1. Serial communications Basics
1.4Hardware
Overview
•Female D9–pin connector labelled “RS232 IN” used to connect the projecto
Pin out of the D9 connector:
PinNameFull Name
1
2RxDReceived Data
3TxDTransmitted Data
4DTRData Terminal Ready
5
6
7
8
9RIRing Indicator
•Standard serial Cable
- order number R9827560 (cable length = 15m )
- order number R9827570 (cable length = 30m )
CDCarrier Detect
GNDSignal Ground
DSRData Set Ready
RTSRequest To Send
CTSClear To Send
r with the computer.
R5976884 RLM SERIES 04/04/2006
7
1. Serial communications Basics
1
CD
2
RxD
3
TxD
4
D9
female
Image 1-1
connection: IBM PC or compatible → projector
DTR
5
GND
6
DSR
7
RTS
8
CTS
9
RI
1
CD
2
RxD
3
TxD
4
DTR
5
GND
6
DSR
7
RTS
8
CTS
9
RI
D9
male
1
HSKo
2
HSKi
3
TxD-
4
DIN
mini 8
Image 1-2
connection: MAC → projector
GND
5
RXD-
6
TXD+
7
n.c.
8
RXD+
4
DTR
8
CTS
3
TxD
5
GND
2
RxD
D9
male
Signal levels
Following table gives the signal levels corresponding to the different states:
State
Off = 1
On = 0
Voltage
-9V
+9V
8R5976884 RLM SERIES 04/04/2006
1.5Syntax
Characters
In this manual, all characters are expressed using the C- language syntax:
1. Serial communications Basics
decimal valuesddd
hexadecimal values\xhh
The characters that can be used are
For text fields: "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-/&@#_:;abcdefghijklmnop qrstuvwxyz”
For filenames: "?*ABCDEFGHIJK LMNOPQRSTUV
WXYZabcdefghijklmnopqrstuvwxyz0123456789_ -"
2
3
Negative values /numbers
The 2s complement number system is use
d to express negative numbers
Pascal- language string
A Pascal-language string consists of one or more characters. The first character of the string contains the length of the string.
Therefore, a Pascal-language string is limited to 255 characters.
Pascal string ’Hello world”
length
’h’
’e’
’l’
’l’
’o’
\x0b
\x68
\x65
\x6c
\x6c
\x6f
”
’w’
’o’
’r’
’l’
’d’
\x20
\x77
\x6f
\x72
\x6c
\x64
C-language string
A C-language string consists of one or more characters. The last character of the string is always the NULL character \x00.Therefore, the length of a C-language string is determined by the position of the NULL character..
C string ’Hello world”
’h’
’e’
’l’
’l’
’o’
”
’w’
\x68
\x65
\x6c
\x6c
\x6f
\x20
\x77
2. ddd=0...255
3. hh=00...ff
R5976884 RLM SERIES 04/04/20069
1. Serial communications Basics
’o’
’r’
’l’
’d’
NULL
standard file
Predefined file stored in read-only memory
custom file
File created by the user and stored in non-volatile read write memory
\x6f
\x72
\x6c
\x64
\x00
Filename
A filename is specified as a C-language string. This string has to follow some rules:
xxxxxxxx.yzz
1.length string = 12
2.x = character of the base name formed by max 8 characters
3.y = kind of file (= 1 character)
NULL
’s’
’c’
4.z = file index (= 2 characters: 0..9)
zz specifies the location in memory where the file is stored.
- for standard files: zz = 00...maximum standard files
- for custom files: zz = 00...63 where 00 is reserved for the file ’none .c00’ (file which is loaded when no signal is applied)
5.yzz is a unique combination. In other words, no two files can exist with the same extension yzz.
To specify more than one file you can use the question mark (?) and (*) wild card character for x, y and z (or
any other character).
?: This wildcard character can represent any possible character on a particular location.
* : This wildcard character can represent any possible character(s) following the wildcard’s position in the
string.
•”ntsc .c01”
•”svga_60v.s?7”
•”????????.???”
•”sv*.*”
standard file
custom file
1.6Serial comms commands
Basic Commands
Basic commands are the commands used to control the basic parameters of the projector.
The Contrast increment command is a basic command.
Advanced Commands
Advanced commands are used to control advanced parameters of the projector.
The Pip loop focus is an advanced parameter
10
R5976884 RLM SERIES 04/04/2006
1. Serial communications Basics
This manual is divided in two parts, the first part contains the basic (elementary) commands while the second
part gives an overview of the available advanced commands.
Some com mands are illus trate d with an example.
R5976884 RLM SERIES 04/04/200611
1. Serial communications Basics
12R5976884 RLM SERIES 04/04/2006
2. BASIC COMMANDS
Overview
•End of process (EOP)
•Identification Commands
•RCU commands
•Projector ON/OFF, Write
•Projector’s Status, Read
•Lens commands
•Picture setting
•Menu Exit
•Source selection
•Scanned inputs, read
•Scan inputs
•File, Load
•Orientation, Write
•Orientation, Read
•Shutter, Write
•Shutter, Read
•Freeze, Write
•Freeze, Read
•Logo ON/OFF
•Background, Write
•Background, Read
•Aspect ratio, Write
•Aspect Ratio, Read
•Show Native resolution (ON/OFF), Write
•Show Native resolution (ON/OFF), Read
•Full screen representation(ON/OFF), Write
•Full screen representation (ON/OFF), Read
•Keystone, Write
•Keystone, Read
•Lamp commands
•Image files
•Color temperature
•Standby Timer, Write
•Standby Timer, Read
•Switching mode, Write
•Switching mode, Read
•Filmmode detection, Increment/Decrement
•Filmmode detection, Write
•Filmmode detection, Read
•Autoimage execute
•Blanking
2. Basic Commands
2.1End of process (EOP)
Description
When activated returns an EOP whenever a command has been executed (processed).
An activation byte has to be sent in order to activate or disactivate the end of process function.
R5976884 RLM SERIES 04/04/2006
13
2. Basic Commands
Command
Command [0]
Command [1]
\x00
\x01
Sent Data
Data[0] = activation byte : \x00 = OFF ; \x01 = ON
Returned data
When you send a particular command (for example projector ON), the EOP will be returned when the command has been executed
Command [0]
Command [1]
The EOP will be sent after the ACK.
In case of a read command there is no EOP returned by the projector.
\x00
\x01
2.2Identification Commands
2.2.1Device type, Read
Description
Reads the device (projector) type, the returned string is a Pascal-language string.
Command
Command [0]
Returned Data
Data[0] = byLength = 1 byte describing the length of the string.
Data[1] = strDeviceType = pascal-language string describing the device type.
An example of device type is “RLM”
2.2.2Projector’s Software type, Read
Description
Reads the Projector’s Software type, the returned string is a Pascal-language string.
Command
Command [0]
Returned Data
Data[0] = byLength = 1 byte describing the length of the software version string.
Data[1] = strSoftwareType = pascal-language string describing the software type.
Reads the Projector’s Software version, the returned string is a Pascal-language string.
Command
2. Basic Commands
Command [0]
Returned Data
Data[0] = byLength = 1 byte describing the length of the software version string.
Data[1] = strSoftwareVersion
2.2.4Projector’s Serial number, Read
Description
Reads the Projector’s serial number, th
e returned string is a Pascal-language string.
Command
Command [0]
Returned Data
Data[0] = \x07 = length of the serial number = 7 characters
Data[1] = string of length 7
2.2.5Projector’s runtime, Read
Description
Reads the Projector’s runtime in seconds
\x60
\x61
Command
Command [0]
Returned Data
unsigned double word (4 bytes).
Data[0] = msb
Data[1]
Data[2]
Data[3] = lsb
2.2.6Projector address, Write
Description
Writes a new address to the projector
Command
Command [0]
Data
Data[0] = unsigned byte
Example
Writes a new address to the projector, being “1”
\x62
\x6D
R5976884 RLM SERIES 04/04/2006
15
2. Basic Commands
Transmit
Start
Projector address
Command[0]
Data[0]
Checksum
Stop
Receive (acknowledge)
Start
Projector address
Command[0]
Command[1]
Checksum
Stop
2.2.7Projector language, Read
Description
Reads the active language for the projector
\xfe
\x01
\x6d
\x01
\x6f
\xff
\xfe
\x01
\x00
\x06
\x07
\xff
Command
Command [0]
Returned Data
Data[0] = unsigned byte
byte valuelanguage
0English
1Français
2Deutsch
3Español
4Japanese
5
Chi
nese
Example
reads the active language, being “Français”
Transmit
Start
Projector address
\x71
\xfe
\x01
Command[0]
Checksum
Stop
16R5976884 RLM SERIES 04/04/2006
\x71
\x72
\xff
Receive (acknowledge)
2. Basic Commands
Start
Projector address
Command[0]
Command[1]
Checksum
Stop
Receive (answer)
Start
Projector address
Command[0]
Data[0]
Checksum
Stop
2.2.8Projector language, Write
Description
Sets a new language for the projector
\xfe
\x01
\x00
\x06
\x07
\xff
\xfe
\x01
\x71
\x01
\x73
\xff
Command
Command [0]
Data
Data[0] = unsigned byte
byte valuelanguage
0English
1Français
2D
3Es
4Ja
5
eutsch
pañol
panese
Chinese
Example
Sets the language to “Français”
Transmit
Start
Projector address
\x70
\xfe
\x01
Command[0]
Data[0]
R5976884 RLM SERIES 04/04/200617
\x70
\x01
2. Basic Commands
Transmit
Checksum
Stop
Receive (acknowledge)
Start
Projector address
Command[0]
Command[1]
Checksum
Stop
2.2.9Baudrate, Write
Description
Sets the baudrate
Command
Command [0]
Data
string = C-language string
\x72
\xff
\xfe
\x01
\x00
\x06
\x07
\xff
\x75
possible string values
9600
19200
38400
57600
115200
2.3RCU commands
Description
Simulation of the RCU codes sent by the RCU remote control.
For all commands, see "RCU commands", page 165.
Command
Command [0]
Data
Data[0] = byIRcode = 1 byte representing the RC5 code of the function to be executed.
Wrepeat (optional) = word (2 bytes) representing the duration.
\x30
18
R5976884 RLM SERIES 04/04/2006
2.4Projector ON/OFF, Write
Description
Switching ON/OFF the projector
Command
Switching the projector ON
2. Basic Commands
Command [0]
Switching the projector OFF
Command [0]
Example
Switches the projector ON
Transmit
Start
Projector address
Command[0]
Checksum
Stop
Receive (acknowledge)
Start
Projector address
Command[0]
\x65
\x66
\xfe
\x01
\x65
\x66
\xff
\xfe
\x01
\x00
Command[1]
Checksum
Stop
\x06
\x07
\xff
2.5Projector’s Status, Read
Description
Reads the Projector’s Status
Command
Command [0]
Returned Data
Data [0] = unsigned byte
bit7bit6bit5bit4bit3bit2bit1bit0
Not usedNot used
Cool down cycle
active = 0
inactive = 1
Not usedNot usedNot usedTextbox
\x67
ON = 1
OFF = 0
Projector
ON = 1
OFF = 0
R5976884 RLM SERIES 04/04/200619
2. Basic Commands
bit5 gives an indication on whether the projector can be (re)started or not (hot restrike), if the cool down cycle
is active (bit5 = 0) the projector can not be restarted until the cool down cycle has been completed.
Example
Read the status being : \x23:
•projectorisON
•textbox is on
•cool down cycle is inactive
Transmit
Start
Projector address
Command[0]
Checksum
Stop
Receive (acknowledge)
Start
Projector address
Command[0]
Command[1]
Checksum
Stop
Receive (Awnser)
Start
Projector address
\xfe
\x01
\x67
\x68
\xff
\xfe
\x01
\x00
\x06
\x07
\xff
\xfe
\x01
Command[0]
Data[0]
Checksum
Stop
\x67
\x23
\x8b
\xff
2.6Lens commands
2.6.1Lens shift
Description
Shifts the lens down or up depending on t
Command
Command [0]
Command [1]
20R5976884 RLM SERIES 04/04/2006
he data sent.
\xf4
\x81
Data
Data[0] = byDirection = 1 byte, gives the shift direction:
0 = down ; 1 = up; 2 = left; 3 = right
2.6.2Lens Zoom
Description
To Zoom the image in or out depending on the data sent.
Command
2. Basic Commands
Command [0]
Command [1]
Data
Data[0] = byDirection = 1 byte, gives the Zoom direction (in/out):