This protocol manual describes the basic configuration and basic operations of various commands used
for projector. Projector can be controlled using the commands provided in “Appendix”. Using an external
CONTROLLER , etc., inputs can be switched and the power can also be turned on and off. In the following paragraphs, “CONTROLLER” means an external device such as a PC which controls projector using
these commands.
2.RS-232C
2-1.Communication Specifications
<RS-232C Communication Signal>
. Full duplex communication channels (Flow control not performed.)
. Start-stop synchronism system
. Baud rate: 38.4 kbps (bits per second)
. The bit configuration is defined as follows.
1 START Bit + 8 DATA Bits + 1 PARITY Bit + 1 STOP Bit
STARTD3D2D1D0
BIT
D4D5D6D7
(MSB)(LSB)(EVEN)BIT
EVEN Parity.....Total number of “1”s from D0 to D7 is an even number.
2-2.Transmission Block Format
The SDCP protocol is transmitted. (Refer to Section 3-4 for details.)
PARITY STOP
Q004-R1
1
2-3.Connection
<RS-232C Connection>
Communication is enabled by the use of a D-Sub 9 Pin cross (reverse) cable.
The pin assignment of D-Sub 9 Pin and D-Sub 25 Pin is as follows.
D-Sub 9 Pin
Shell = FG
3
2
7
8
6
5
1
4
9
D-Sub 25 Pin
1
2
3
4
5
6
7
8
20
22
Name
FG
Grounding for safety protection or cable shield
TxD
Transmission data
RxD
Reception data
RTS
Transmission request
CTS
Transmission permission
DSR
Data set ready
SG
GND for signal
DCD
Data channel signal carrier detection
DTR
Data terminal ready
RI
Calling display (Presence/absence of calling signal)
Pins indicated as D-Sub 25 Pin are not used.
Assured cable length: 15 m (However, assurance may not be applicable for some cables.)
The software for controlling the projector from a PC is intended for performing transmission and reception for only the TxD and RxD lines.
Therefore there is no handshake normally performed by RS-232C.
2-4.Communication Procedure
2-4-1. Outline of Communication
All communication between CONTROLLER (PC, etc.) and DEVICE (PROJECTOR) is performed by the
command block format. Communication is started by the issue of a command at CONTROLLER and
ended when the return data is sent to CONTROLLER after DEVICE receives the command.
CONTROLLER is prohibited from sending several commands at one time. This means that after CONTROLLER sends one command, it cannot send other commands until DEVICE returns the return data.
DEVICE sends the return data after processing the command. The time from when CONTROLLER sends
the command until the return data is returned differs according to the contents of the command.
n
When Sircs Direct Command is sent, return data may not be returned in some cases.
2
Q004-R1
2-5.Communication Rules
. When sending a command from CONTROLLER, the return data from PROJECTOR should be re-
ceived first before sending the next command. Even if the next command is sent before receiving the
return data, since PROJECTOR will not be able to receive that command, it does not return a response
to CONTROLLER. Consequently, no error code is also sent.
The following lists the approximate waiting times for PROJECTOR to return the return data after
CONTROLLER sends the command.
. When a communication error occurs, PROJECTOR ignores the data received until now, and set into the
reception standby state.
. For undefined commands or commends determined as invalid by PROJECTOR, PROJECTOR will
send the “NAK” return data to CONTROLLER .
. Take note that when data is written when the input signal of PROJECTOR is unstable, that data (value)
will not be incorporated.
. When INDEX specified SIRCS direct command is transmitted, leave an interval of 45 msec until the
next transmission. (Do not return the return data (ACK, NAK) when the SIRCS direct command is
received.)
2-6.Approximate Return Waiting Times
The await-return time is approx. 30 msec.
n
This is the case, unless the communications are interfered anyway.
Q004-R1
3
3.NETWORK
This section describes the performance, operations and protocol to be used of advertisement and PJ Talk.
3-1.Advertisement
The advertisement service is provided to facilitate development of a PC application that can automatically
detect a projector on the network. This function is achieved by broadcasting the equipment information
periodically to the network.
3-1-1. Function
The equipment information shown below is transmitted as the broadcast packet periodically (at certain
intervals).
InformationDescription
CategoryCategory of the equipment
Equipment nameName of the equipment
Serial numberSerial number of the equipment
Installation informationInstallation location of the equipment
CommunityCommunity name of the equipment
Power statusPower status of the equipment
m
. The category of projector is 0x0a.
. The power status sets ffffh if communication error occurs.
Protocol
The SDAP protocol is defined in order to provide this service.
The items that can be set for the PJ Talk service are described below.
Setup itemDescription
Port No.Port number
TimeoutTCP connection timeout time
Host AddressIP address of connectable PC
Q004-R1
5
3-3.SDAP Protocol
Version (8)
(16)
Category (8)
This section describes the SDAP packet structure.
Header
(4)
Community
(4)
Product name
(12)
Serial No.
Fig.1 Packet structure
(4)
Power
Status
(2)
Location
(24)
1) Header
The header consists of ID (16 bit), version (8 bit) and category (8 bits).
1102345670980123457689012354678901
“DADA” (16)
Fig. 2 Header
23
Version (8)
Category (8)
ID
It is fixed to “DA”.
Version
This indicates the version number of protocol.
It is fixed to 01h (version 1).
Category
Category number 0Ah of the projector is entered here.
(Bit position)
2) Community
The community that is set in the display equipment is entered.
23
110234567098012345768 9012354678901
Community (32)
Fig. 3 Community
3) Equipment Information
Product Name
Name of equipment (Maximum twelve characters)
In case, less than twelve characters, 00h is entered in the blank space.
Serial No.
Serial number is entered.
Power Status.
Power supply status of the equipment is entered.
Location
Information of installation location (Maximum twenty four characters)
In case, less than twenty four characters, 00h is entered in the blank space.
(Bit position)
6
Q004-R1
3-4.SDCP Protocol
Version (8)
Category (8)
Community (32)
This section describes the packet structure of version 2.
Header
(2)
Community
(4)
Command
(4)
Data (n)
Fig. 1 Packet structure
3-4-1. Format
3-4-1-1. Header
The header consists of version (8 bits) and category (8 bits).
110234567098012345
Version (8)
Fig. 2 Header structure
Category (8)
Version
This indicates the version number of protocol.
It is fixed to 02h (version 2).
Category
Category number 0Ah of the projector is entered here. Projector checks the category number. If a different category number is entered, the request is ignored.
(Bit position)
3-4-1-2. Community
When the community data matches the community that is set in the display equipment, the request is
executed. Community consists of four alphanumeric characters (case sensitive). All display equipment
has the default value “SONY” when shipped from the factory.
23
1102345670980123457689012354678901
Community (32)
n
Community should be entered with four characters. Three characters or less are not accepted.
(Bit position)
Q004-R1
7
3-4-1-3. Command
This section describes the format of the request command and the response command.
110234567098012345768 9012354678901
Item No (16)Data Length (8)Request/Response (8)
23
(1) Request
This section describes the format of the request command that is issued from the host PC to the projector.
Community
This is the same alphanumeric characters as those of community that is set in the projector to which
request is going to be sent.
Request
There are only two types of request. One is the GET request to acquire the projector information and
status. The other is the SET request to modify the projector setup.
RequestContents
SET (00h)
GET (01h) Used to acquire the installation information, equipment status and various setup values.
Used to control turning the power on/off and to control the input selector, and to change the various setups.
Item No.
This is the item number of the request target.
Data Length
This is the length of the data accompanying the request. The maximum length is 128 bytes. If there is no
data, it is 0.
(Bit position)
Data
This is the data accompanying the request.
(2) Response
This section describes the format of the response command which is used to return a response to the host
PC from the projector.
Community
The same alphanumeric characters as those of the request is entered.
Response
The response returns the result of executing the request from the host PC.
ResponseContents
NG (00h)Indicates that the request is illegal or cannot be executed.
OK (01h)Indicates that the request was executed correctly.
Item No.
The same value as those of the request is entered.
Data Length
This is the length of the data accompanying the response. The maximum length is 128 bytes. If there is no
data, it is 0.
Data
This is the data accompanying the response.
8
Q004-R1
3-4-1-4. SET Request
The SET request is used to set a new value in the specified item. Details of the request and the response
are described below.
Request
Request
SET (00h)Item No.nSet Data (n byte)
Item No.
Data
Length
Data
Response
OK (01h)Item No.0
3-4-1-5. GET Request
The GET request is used to acquire the value of the specified item. Details of the request and the response
are described below.
Request
Request
GET (01h)Item No.0
Item No.
Data
Length
Response
OK (01h)Item No.nGet Data (n byte)
3-4-1-6. ERROR Response
When an error occurs in the contents of a request or in the result of execution, NG is returned as the
response.
NG (00h)Item No.2Error Code (16)
Q004-R1
9
O
3-4-2. Items
CategoryDescriptionSETGET
70**hUsed to transmit the RS-232C protocol.O
A0**hUsed to set or acquire various information of the equipmentOO
3-4-2-1. RS-232C Transmission (70**h)
Used to transmit the RS-232C protocol.
Refer to SXRD PROTOCOL APPENDIX_70xxh.xls for data length and data.
Lower byteDescriptionSETGET
00hCommand that receives response from RS-232CO
3-4-2-2. Equipment Information Acquisition (A0**h)
Used to set or acquire the information of the equipment (SXRD projector).
Refer to SXRD PROTOCOL APPENDIX_A0xxh.xls for the lower byte, data length and data.
10
Q004-R1
3-4-3. Error Code
The error code list is shown below with a detailed description of each.
CategoryErrorError Code
Item Error (01**h)Invalid Item01h
Invalid Item Request02h
Invalid Length03h
Invalid Data04h
Short Data11h
Not Applicable Item80h
Community Error (02**h)Different Community01h
Request Error (10**h)Invalid Version01h
Invalid Category02h
Invalid Request03h
Short Header11h
Short Community12h
Short Command13h
Network Error (20**h)Timeout01h
Comm Error (F0**h)Timeout01h
Check Sum Error10h
Framing Error20h
Parity Error30h
Over Run Error40h
Other Comm Error50h
Unknown ResponseF0h
NVRAM Error (F1**h)Read Error10h
Write Error20h
Q004-R1
11
3-4-3-1. Item Error
This error occurs when the Item No. of a request is illegal or its data is illegal. The conditions for occurrence of the respective errors are shown below.
Invalid Item
An unsupported Item No. is specified.
Example 1: The unsupported category 0xA** is specified.
Example 2: The unsupported Item No. 0x8010 is specified.
Invalid Item Request
The Item No. is supported but an unsupported Request is issued.
Example: An attempt is made to set data in the Model Name (0x8001).
Invalid Length
Data length of the specified Item No. is too long.
Example: An attempt is made to set 25 byte data in the installation location (0x8003).
Invalid Data
Data of the specified Item No. is outside the setting range.
Example: An attempt is made to set 101 in the Item when the setting range of the Item is 1 to 100.
Short Data
The length of data is shorter than the value specified by the data length.
Example: The actual data length is 9 bytes but data length is 10.
Not Applicable Item
An item that is not valid at present is specified.
Example: The item to switch the display is specified when the main power is off.
3-4-3-2. Community Error
This error occurs when community is different.
Example: “ABCD” is specified when “SONY” is set.
12
Q004-R1
3-4-3-3. Request Error
This error occurs when header or command is illegal. The conditions of occurrence of the respective
errors are shown below.
Invalid Version
The version of the header is other than 2.
n
When another version is supported, an error occurs in all versions other than the supported version.
Invalid Category
The category does not match.
Example: 0x0B is specified in the device of category = 0x0A.
Invalid Request
An unsupported request is specified.
Example: Request = 0x02 is specified.
Short Header
The received data is 1 byte.
Short Community
The received data is in the range of 2 to 5 bytes.
Short Command
The received data is in the range of 6 to 9 bytes.
3-4-3-4. Network Error
This is an error that occurs in TCP/IP. The conditions of occurrence of the respective errors are shown
below.
Timeout
Communication was interrupted.
Q004-R1
13
3-4-3-5. Comm Error
This is an error in communication with the main control microprocessor of the display.
Timeout
Reception data is not returned after data is sent.
Check Sum Error
A check sum error occurred in the main control microprocessor of the display.
Framing Error
A framing error occurred.
Parity Error
A parity error occurred.
Over Run Error
An overrun error occurred.
Other Comm Error
Another error occurred.
Unknown Response
The data cannot be processed was received.
3-4-3-6. NVRAM Error
Read Error
Reading from NVRAM was failed.
Write Error
Writing to NVRAM was failed.
14
Q004-R1
Version0.02
>
A
A
>
A
A
>
]
]
]
A
A
X
Y
e
<Communication Protocol>
Use the following protocol to send data to and receive them from the projector.
The details on CMD1, CMD2, and DATA (written in red) are described in "Communication Commands".
The details on CHECK DATA, DATA LENGTH, and CHECK SUM (written in blue)
are described on this worksheet.
B0
START CODE
5 h
B2B1
Destination (To) INDE
PERIPHERAL INDEXGROUP INDEXDEVICE INDEX
01 h00 h01 h
00 h
Source (From) INDEX
PERIPHERAL INDEXGROUP INDEXDEVICE INDEX
03 h00 h00 h
CMD[0]CMD[1]CMD[3]
B11B12B13
CATEGOR
SETFixed valu
80 h
CHECK DAT
B14
DATA LENGTH
B15B16
B16 + 200 hNote 1
DATA[1
DATA[2
DATA[N
Bm (= Bn + (N-1))Bn ( = B17)Bn + 1
CHECK SUM
Bm + 1
END CODE
Bm + 2
5A h
B5B4B3
01 h
B10B9B8B7B6
01 h01 h
<About CHECK DATA
The total number of bytes from "DATA 1" to "DATA N" + 2 is assigned here.
s for the "DATA" part, the number of bytes vary depending the command to be sent.
lso, even when the command is the same, the number of bytes in the "DATA" section varies depending on whether the command is "SET" or
For this reason the value here varies depending on the command to be sent.
<About DATA LENGTH
The total number of bytes from "DATA 1" to "DATA N" + 2 is assigned here as in "CHECK DATA".
The difference from "CHECK DATA" is that only "the total number of bytes" is set without 2 added.
<About CHECK SUM>
Sets the checksum.
Checksum can be calculated by
operating "XOR" to the values from "PERIHERAL INDEX(B1)" to "DATA N(Bm)".
<Example of calculation>
Sets an adjustment value.
"ADJ REPLY data" returns when "ADJ SET" is executed.
(2) ADJ GET command
Acquires an adjustment value.
Response to the "Get adjustment value of ADJ item" command (ADJ REPLY data) returns when "ADJ GET" is executed.
(3) ADJ REPLY command
Response to the "Get adjustment value of ADJ item" command
(4) How to use the ADJ STATUS flag (ADJ REPLY: CMD[4])
(a) When the ADJ Status flag is "00h"
Since this is a normal adjustment value, set the adjustment item using the value of "ADJ DATA".
(b) When the ADJ Status flag is "01h"
Since this is an adjustment item error (the adjustment value of this item cannot be set), the adjustment item of Projector Station is masked
(displayed in gray).
(c) When the ADJ Status flag is "02h"
Check that the value of "ADJ DATA" is "ADJ Lower" (the minimum value of the adjustment value) or larger and "ADJ Upper" (the maximum value of the adjustment value) or lower,
and set the adjustment item using the value of this "ADJ DATA".