RS232/485/LAN Serial Communication Control for MDT652S 1. Application This document defines the communication protocols for serial control of the MDT652S. -----Revision History----1st Release May. 24 2011. H.Tanizoe, M.Juichiya, T.Kimura, Y.
. Connectors and wiring A: RS232C connection Connector: D-Sub 9-pin Cable: Cross (reversed) cable or null modem cable B: CAT5 RS485 connection Connector: D-SUB 9pin or USB(Either one can be used for communication between PC and CAT5 Tx-BOX and Rx-BOX (Option). In order to use the USB, you need USB driver with your PC installed. Please check User's manual for details.
. Communication Parameter Set each communication parameters to the PC connected with each kind of cable.
3.1 Communication timing The controller should wait for a packet interval before next command is sent. The packet interval needs to be longer than 600msec for the MDT652S. [Important Information] HOST system shall send next command after receiving a reply command from Monitor, if it is sequential commands communication. If Host doesn’t wait for monitor’s reply, monitor operation error may happen.
4. Communication Format 4-1.Basic command This command set supports only the basic control of monitor and does NOT support multi monitor control by daisy chained connection. This command set will be written in the user’s manual of MDT652S. 1) Control command diagram The command is structured by the address code, function code, data code and end code. The length of the command is different for each function. 2) Control sequence (1) The command from a computer to the LCD monitor will be sent in 600ms.
3) Operation commands The operation commands execute the basic operation setting of this LCD monitor.
5) Remote command (Not executable in sleep/stand-by mode. When the remote commands are sent while sleep/stand-by mode, the stand-by mode is only canceled.) Some remote control operations can be achieved by the remote command codes. The remote commands have no data codes. Button’s name on remote Function Character ASCII +/VOLUME r06 72h 30h 36h -/VOLUME r07 72h 30h 37h AV MUTE ra6 72h 61h 36h AUTO SETUP r09 72h 30h 39h [Example] When executing the AUTOSETUP.
4-2.Extended command Note: This command set supports multi monitor control by daisy chained connection. This command set will NOT be written in the user’s manual of MDT652S. The command packet consists of four parts, Header, Message, Check code and Delimiter.
4.1 Header block format (fixed length) SOH 1st Reserved '0' 2nd Destination 'A' 3rd Header Message Message Type Source 4th 5th Check code Delimiter Message Length 6th -7th 1stbyte) SOH: Start of Header ASCII SOH (01h) 2ndbyte) Reserved: Reserved for future extensions. MDT652S must be ASCII '0'(30h) 3rdbyte) Destination: Destination equipment ID. (Receiver) Specify a command’s receiver’s address.
4.2 Message block format Header Message Check code Delimiter “Message block format” is allied to the “Message Type” in the “Header”. Refer to the section 6 “Message format” for more detail. 1)Get current parameter The controller sends this message when you want to get the status of the monitor. For the status that you want to get, specify the “OP code page” and “OP code”, refer to “Appendix A. Operation code table”.
6)Command reply The monitor replies to a query from the controller. “Command reply message” format depends on each command. Refer to section 5.5 “Commands message” for more details.
4.5 Check code Header Check code Message Delimiter Check code is the Block Check Code (BCC) between the Header and the End of Message except SOH. SOH Reserved Destination Source Type Length STX Data | | ETX Check code D0 D1 D2 D3 D4 D5 D6 D7 | | Dn Dn+1 27 26 25 24 23 22 21 20 P P P P P P P P Dn+1 = D1 XOR D2 XOR D3 XOR ,,, Dn XOR: Exclusive OR Following is an example of a Check code (BCC) calculation.
5. Message type 5.1 Get current Parameter from a monitor. STX 1 st OP code page Hi Lo 2nd-3rd OP code Hi Lo 4th–5th ETX 6th Send this message when you want to get the status of a monitor. For the status that you want to get, specify the “OP code page” the “OP code”, refer to “Appendix A. Operation code table”. 1stbyte) STX: Start of Message ASCII STX (02h) nd 2 -3rdbytes) OP code page: Operation code page. Specify the “OP code page” for the control which you want to get the status.
00h: No Error. 01h: Unsupported operation with this monitor or unsupported operation under current condition. This result code from the monitor is encoded to ASCII characters. Ex.) The byte data 01h is encoded to ASCII character '0' and '1' (30h and 31h). th 4 –5thbytes) OP code page: Operation code page. These bytes indicate a replying item's OP code page. This returned value from the monitor is encoded to ASCII characters. Ex.) The byte data 02h is encoded to ASCII character '0' and '2' (30h and 32h).
This OP code page data must be encoded to ASCII characters. Ex) The byte data 02h must be encoded to ASCII '0' and '2' (30h and 32h). Refer to the Operation code table. 4th-5thbytes) OP code: Operation code This OP code data must be encoded to ASCII characters. OP code 1Ah -> OP code (Hi) = ASCII '1' (31h) OP code (Lo) = ASCII 'A' (41h) Refer to the Operation code table. 6th-9thbytes) Set value: (16bit) This data must be encoded to ASCII characters. Ex.
8th-9thbytes) Type: Operation type code ASCII '0''0' (30h, 30h): Set parameter ASCII '0''1' (30h, 31h): Momentary Like Auto Setup function, that automatically changes the parameter. th 10 -13thbytes) Max. value: Maximum value that monitor can accept. (16bits) Reply data from the monitor is encoded to ASCII characters. Ex.) '0''1''2''3' means 0123h (291) 14 th -17thbytes) Requested setting Value: Echoes back the parameter for confirmation.
Send "OD"(30h, 44h) as Save current settings quick command. Complete "Save Current setting" command packet as follows; ASCII: 01h-30h-41h-30h-41h-30h-34h-02h-30h-44h-03h-CHK-0Dh SOH-'0'-'A'-'0'-'A'-'0'-'4'-STX-'0'-'D'-ETX-CHK- CR The monitor replies the packet for confirmation as follows; SOH-'0'-'0'-'A'-'B'-'0'-'6'-STX-'0'-'0'-'0'-'D'-ETX-CHK- CR 5.5.2 Get Timing Report and Timing reply. The controller requests the monitor to report the displayed image timing.
To tell the controller that the monitor does not have any answer to give to the host (not ready or not expected) Complete "NULL Message" command packet as follows; (The destination “A” (monitor ID of 1) is only an example. It should be changed according to the target monitor ID) 01h-30h-30h-41h-41h-30h-34h—02h-42h-45h-03h-CHK-0Dh SOH-'0'-'0'-'A'-'A'-'0'-'4'-STX-'B'-'E'-ETX-CHK- CR 6.
Message STX (02h): Start of Message '0'-'0' (30h, 30h): Result code. No error '0'-'0' (30h, 30h): Operation code page number is 0 '1'-'0' (31h, 30h): Operation code is 10h (in the page 0) '0'-'0' (30h, 30h): This operation is "Set parameter" type '0'-'0'-'6'-'4' (30h, 30h, 36h, 34h): Brightness max value is 100(0064h) '0'-'0'-'3'-'2' (30h, 30h, 33h, 32h): Current Brightness setting is 50(0032h) as 50% ETX (03h): End of Message Check code BCC: Block Check Code Refer to the section 4.
Message STX (02h): Start of Message '0'-'0' (30h, 30h): Result code. No error '0'-'0' (30h, 30h): Operation code page number is 0 '1'-'0' (31h, 30h): Operation code is 10h (in the page 0) '0'-'0' (30h, 30h): This operation is "Set parameter" type '0'-'0'-'6'-'4' (30h, 30h, 36h, 34h): Brightness max value is 100(0064h) '0'-'0'-'5'-'0' (30h, 30h, 35h, 30h): Received a Brightness setting was 80(0050h) as 80% ETX (03h): End of Message Check code BCC: Block Check Code Refer to the section 4.
'E' (45h): Message Type is "Set parameter command" '0'-'A' (30h, 41h): Message length is 10 bytes Message STX (02h): Start of Message '0'-'2' (30h, 32h): Operation code page number is 02h '7'-'8' (37h, 38h): Operation code is 78h (on page 2) '0'-'0'-'0'-'1' (30h, 30h, 30h, 31h): Select the temperature sensor #1 (01h). 00h: No meaning 01h: Sensor #1 02h: Sensor #2 ETX (03h): End of Message Check code BCC: Block Check Code Refer to the section 4.5 “Check code” for a BCC calculation.
If the command should be sent to certain monitor only, the either of character ‘A’(41h) to ‘Z’(5Ah) which is corresponding to monitor ID from No1 to No.26 should be set to this portion. '0' (30h): Message sender is the controller 'C' (43h): Message Type is "Get parameter " '0'-'6' (30h, 36h): Message length is 6 bytes Message STX (02h): Start of Message '0'-'2' (30h, 32h): Operation code page number is 02h.
7. Power control procedure 7.1 Power status read 1) The controller requests the monitor to reply a current power status. Header SOH-'0'-'A'-'0'-'A'-'0'-'6' Message STX-'0'-'1'-'D'-'6'-ETX Check code BCC Delimiter CR Header SOH (01h): Start Of Header '0' (30h): Reserved 'A' (41h): Monitor ID If the command should be sent to certain monitor only, the either of character ‘A’(41h) to ‘Z’(5Ah) which is corresponding to monitor ID from No1 to No.26 should be set to this portion.
Delimiter CR (0Dh): End of packet 7.2 Power control 1) The controller requests the monitor to control monitor power. Header SOH-'0'-'A'-'0'-'A'-'0'-'C' Message STX-'C'-'2'-'0'-'3'-'D'-'6''0'-'0'-'0'-'1'-ETX Check code BCC Delimiter CR Header SOH (01h): Start Of Header '0' (30h): Reserved 'A' (41h): Monitor ID If the command should be sent to certain monitor only, the either of character ‘A’(41h) to ‘Z’(5Ah) which is corresponding to monitor ID from No1 to No.26 should be set to this portion.
0004: OFF (same as the power off by IR) ETX (03h): End of Message Check code BCC: Block Check Code Refer to the section 4.5 “Check code” for a BCC calculation. Delimiter CR (0Dh): End of packet. 8. Asset Data read and write 8.1 Asset Data Read Request and reply This command is used in order to read Asset Data. 1) The controller requests the monitor to reply with Asset data.
STX (02h): Start of Message 'C'-'1'-'0'-'B' (43h, 31h, 30, 42h): Asset read reply command Data(0) – Data(N): Retuned Asset data. ETX (03h): End of Message Check code BCC: Block Check Code Refer to the section 4.5 “Check code” for a BCC calculation. Delimiter CR (0Dh): End of packet 8.2 Asset Data write This command is used in order to write Asset Data. 1) The controller requests the monitor to write Asset data.
Note.) The maximum data length that can be written to the monitor at a time is 32bytes. Ex.) The byte data 20h is encoded as ASCII characters '2' and '0' (34h and 30h). Message STX (02h): Start of Message '0'-'0': Result code. No error 'C'-'0'-'0'-'E' (43h, 30h, 30, 45h): Asset Data write command '0'-'0': Offset address from top of Asset data. 00h : Write data into from top of the Asset data area. Data(0) –- Data(N): Asset data. The data must be ASCII characters strings.
'1'-'4'(31h, 34h): Message length Message STX (02h): Start of Message 'C'-'3'-'1'-'1' (43h, 33h, 31h, 31h): Date & Time read reply command 'YY'-'MM'-'DD'-'WW'-'HH'-'MN'-'DS': Date & Time data YY: Year (offset 2000) '0'-'0'(30h, 30h): 2000 | '6'-'3'(36h, 33h): 2099 (99 = 63h) MM: Month '0'-'1'(30h, 31h): January | '0'-'C'(30h, 43h): December DD: Day '0'-'1'(30h, 31h): 1 | '1'-'E'(31h, 45h): 30(=1Eh) '1'-'F'(31h, 46h): 31(=1Fh) WW: weekdays '0'-'0'(30h, '0'-'1'(30h, '0'-'2'(30h, '0'-'3'(30h, '0'-'4'(30h, '0'
'A' (41h): Monitor ID If the command should be sent to certain monitor only, the either of character ‘A’(41h) to ‘Z’(5Ah) which is corresponding to monitor ID from No1 to No.26 should be set to this portion. If it is a broad cast command(only “set command” is available), then the ’*’(2Ah)should be applied. '0' (30h): Message sender is the controller 'A' (41h): Message type is "Command" '1'-'4'(31h, 34h): Message length.
'B' (42h): Message type is "Command reply" '1'-'6'(31h, 36h): Message length.
10.Schedule read and write 10.1 Schedule Read This command is used in order to read the setting of the Schedule. 1) The controller requests the monitor to read Schedule Header Message Check code SOH-'0'-'A'-'0'-'A'-'0'-'8' STX-'C'-'2'-'1'-'3'-PG-ETX BCC Delimiter CR Header SOH (01h): Start Of Header '0' (30h): Reserved 'A' (41h): Monitor ID If the command should be sent to certain monitor only, the either of character ‘A’(41h) to ‘Z’(5Ah) which is corresponding to monitor ID from No1 to No.
'3'-'B'(33h, 42h): 59 '3'-'C'(33h, 43h): On timer isn't set. OFF_HOUR: Turn off time (hour) '0'-'0'(30h, 30h): 00 | '1'-'7'(31h, 37h): 23 (=17h) '1'-'8'(31h, 38h): Off timer isn't set.
10.2 Schedule Write This command is used in order to write the setting of the Schedule. 1) The controller requests the monitor to write Schedule.
bit bit bit bit bit bit bit 0: 1: 2: 3: 4: 5: 6: Monday Tuesday Wednesday Thursday Friday Saturday Sunday EX. '0'-'1'(30h, '0'-'4'(30h, '0'-'F'(30h, '7'-'F'(37h, FL: Option bit 0: bit 1: bit 2: * When 31h): 34h): 46h): 46h): Monday Wednesday Monday, Tuesday, Wednesday and Thursday Monday to Sunday Everyday Every week Schedule Disable/Enable bit0 and bit1 are '1', it behaves as Everyday. EX.
'0'-'0'(30h, 30h): Program No.1 | '0'-'6'(30h, 36h): Program No.7 ON_HOUR: Turn on '0'-'0'(30h, | '1'-'7'(31h, '1'-'8'(31h, time (hour) 30h): 00 37h): 23 (=17h) 38h): ON timer isn't set. ON_MIN: Turn on time (minute) '0'-'0'(30h, 30h): 0 | '3'-'B'(33h, 42h): 59 '3'-'C'(33h, 43h): On timer isn’t set. OFF_HOUR: Turn off time (hour) '0'-'0'(30h, 30h): 00 | '1'-'7'(31h, 37h): 23 (=17h) '1'-'8'(31h, 38h): Off timer isn't set.
'0'-'4'(30h, '0'-'5'(30h, '0'-'6'(30h, '0'-'7'(30h, 34h) 35h) 36h) 37h) O O O O O O O O Once *Follow WD (Week setting) Everyday Everyweek *Follow WD (Week setting) Everyday ETX (03h): End of Message Check code BCC: Block Check Code Refer to the section 4.5 “Check code” for a BCC calculation. Delimiter CR (0Dh): End of packet 11. Self diagnosis 11.1 Self-diagnosis status read This command is used in order to read the Self-diagnosis status.
Message STX (02h): Start of Message 'A'-'1' (41h, 31h): Application Test Report reply command ST: Result of self-tests 00:Normal 70:Analog 3.3V abnormality 71:Analog 12V abnormality 72:Analog 5V abnormality 73:Audio amplifier +12V abnormality 78:Panel 12V abnormality 80:Cooling fan-1 abnormality 81:Cooling fan-2 abnormality The byte data 70 is encoded as ASCII characters '7' and '0' (37h and 30h). ETX (03h): End of Message Check code BCC: Block Check Code Refer to the section 4.
12. Serial No. & Model Name Read 12.1 Serial No. Read This command is used in order to read a serial No. 1) The controller requests the monitor to read a serial No. Header Message SOH-'0'-'A'-'0'-'A'-'0'-'6' STX-'C'-'2'-'1'-'6'-ETX Check code BCC Delimiter CR Header SOH (01h): Start Of Header '0' (30h): Reserved 'A' (41h): Monit or ID If the command should be sent to certain monitor only, the either of character ‘A’(41h) to ‘Z’(5Ah) which is corresponding to monitor ID from No1 to No.
12.2 Model Name Read This command is used in order to read the Model Name. 1) The controller requests the monitor to read Model Name. Header Message SOH-'0'-'A'-'0'-'A'-'0'-'6' STX-'C'-'2'-'1'-'7'-ETX Check code BCC Delimiter CR Header SOH (01h): Start Of Header '0' (30h): Reserved 'A' (41h): Monitor ID If the command should be sent to certain monitor only, the either of character ‘A’(41h) to ‘Z’(5Ah) which is corresponding to monitor ID from No1 to No.26 should be set to this portion.
13. Control Commands for Auto Brightness function MDT652S supports the Auto Brightness function via RS232c control in order to share a sensor detected result in a monitor with multiple monitors. We have 2 modes of control. Stand alone mode: A monitor can control the others as Master(Primary). Remote control mode: All of monitors are controlled by Host PC as slave(Secondary). 13.1 Auto Brightness Parameter Read Read parameters about AUTO BRIGHTNESS from A monitor to Host PC.
bit6-7:Not used VAL_H: ASCII code of bit4-7of data VAL_L: ASCII code of bit0-3 of data Example) If Bit0 and 1 =1 and the other bits =0, (00000011) VAL_H='0'(0x30) VAL_L='3'(0x33) ETX (03h): End of Message Check code BCC: Block Check Code Refer to the section 4.5 “Check code” for a BCC calculation.
13.2 Auto Brightness Parameter Write Send AutoBrightness Parameters from Host( PC or Primary Monitor) to Slave (Secondary) Monitors. 1) Write Parameters from PC to Monitor.
Delimiter CR (0Dh): End of packet (43/56)
13.3 Auto Brightness Sensor Read Read light sensor detected data from Monitor to Host PC. 1) Read Request from PC to Monitor. Header Message Check code Delimiter SOH-'0'-'A'-'0'-'A'-'0'-'6' STX-'C'-'2'-'2'-'3'–ETX BCC CR Header SOH (01h): Start Of Header '0' (30h): Reserved 'A' (41h): Monitor ID If the command should be sent to certain monitor only, the either of character ‘A’(41h) to ‘Z’(5Ah) which is corresponding to monitor ID from No1 to No.26 should be set to this portion.
BCC: Block Check Code Refer to the section 4.5 “Check code” for a BCC calculation.
13.4 Auto Brightness Sensor Write Broadcast light sensor data from Host(PC or Primary Monitor) to Secondary Monitors. 1) Write Parameters from PC to Monitors.
FVAL_HH:Front Sensor Detected Data(High High byte) FVAL_HL:Front Sensor Detected Data(High Low byte) FVAL_LH:Front Sensor Detected Data(Low High byte) FVAL_LL:Front Sensor Detected Data(Low Low byte) BVAL_HH:Back Sensor Detected Data(High High byte) BVAL_HL:Back Sensor Detected Data(High Low byte) BVAL_LH:Back Sensor Detected Data(Low High byte) BVAL_LL:Back Sensor Detected Data(Low Low byte) APL_HH:APL data(High High byte) APL_HL:APL data(High Low byte) APL_LH:APL data(LowHigh byte) APL_LL:APL data(Low Low
14. Control Commands for Automatic ID Assignment function You can set sequential Monitor ID automatically for daisy chained monitors. This function is executed by following 2 steps. NOTE: This function is only applicable for RS232C based daisy chained connection, but not applicable CAT5(RS485) based daisy chained connection. Step1: Change the communication mode to “ID assignment mode” by Mode change command. Step2: Apply Monitor ID by Automatic ID assignment Command. 14.
14.2 Automatic ID Assignment This command executes the Automatic ID assignment operation by Monitor itself. Only start ID should be suggested by Host to 1st connected Monitor and daisy chained monitor can assign own Monitor ID one by one sequentially. NOTE: This function is only applicable for RS232C based daisy chained connection, but not applicable CAT5(RS485) based daisy chained connection. If you send this command to Monitor with RS485 connection, communication control problem will be occurred.
Appendix A. Operation Code (OP code) Table [Note: Do not send any code to monitor except for the codes in following table. If you sent any “undefined” code to monitor, it may cause error of Monitor operation.
Item Zoom V- Expansion OP code page 02h OP code 6Dh 02h CCh Zoom V-Position 02h CDh Screen reset Balance 00h 00h 06h 93h Treble 00h 8Fh Bass 00h 91h Audio reset PIP Size 02h 02h 31h 71h 00h 1Eh Power Save 00h E1h Language 00h 68h Gamma 02h DBh Brightness 02h DCh Cooling Fan Motion 02h 7Dh 02h DDh Color System 02h 21h Side Border Color 02h DFh PIP AUDIO Zoom H-Position Configuration 1 PIP Audio PIP Reset Auto Setup Auto Adjust Screen Saver (51/56) Parameter
Item Factory Reset OP code page 00h OP code 04h Advanced Option Configuration 2 Configuration Reset 00h FCh Information OSD 02h 3Dh Off Timer 02h 2Bh H Position 02h 38h V Position 02h 39h Input Resolution 02h DAh Black Level Expansion 02h 22h Gamma Selection 02h 68h Scan Mode 02h E3h Scan Conversion 02h 25h Film Mode 02h 23h Monitor ID IR Control 02h 02h 3Eh 3Fh H monitor 02h D0h V monitor 02h D1h Position 02h D2h Mode 02h D3h 02h D5h 02h D8h Tiling F
Item OP code page 02h 00h OP code Parameter E4h 60h Picture Mode 02h 1Ah 1:RESET 1: RGB3 (D-SUB) 2: RGB4 (BNC) 3: RGB1 (HDMI) 4: RGB2 (DVI-D) 12: DVD/HD 5: VIDEO (Composite) 7: S-VIDEO 8: CAT5(Option) 9 DisplayPort 1: sRGB 3: Hi-Bright 4: Standard 5: Cinema PIP ON/OFF Still ON/OFF 02h 72h PIP Input 02h 73h Still Capture 02h 76h Audio Input 02h 2Eh Mute 00h 8Dh Volume UP/Down 00h 62h PIP H Position 02h 74h PIP V Position 02h 75h Select sensor 02h 78h 02h 79h Auto Brightn
B. Application Note for RS485 based communication using CAT5 Tx BOX. 1) 2) RS-485 is half-duplex communication. So data flow control in HOST side is required. Data flow control is done by following procedure. HOST send data to Monitor while both of RTS and DTR signal is “LOW” (Clear) status. HOST receive data from Monitor while RTS signal is “HIGH”(Set) status. 3) Following chart shows more detailed timing of data flow control by RTS.
C. Application Note for LAN based communication The RS-232C command code is been able to execute on LAN. When you make your application program, you use socket port as a TCP/IP client. Please refer general technical documents (commercially available) of network control. Preparation of system setup (1) Connect with the PC, the displays and LAN HUB with LAN cable. (See page 2.) (2) The Main Power Switch (AC) of the display is ON. So the modes of the display are DC On, DC Off or Standby. (3) The PC is on.
All data are subject to change without notice. Copyright 2008-2011 Mitsubishi ElectricCorporation All Right Reserved This document provides the technical information for users. Mitsubishi ElectricCorporation reserves the right to change or modify the information contained herein without notice. Mitsubishi ElectricCorporation makes no warranty for the use of its products and bears no responsibility for any errors or omissions which may appear in this document.