Mitsubishi Electric RS232/485/LAN Serial Communication Control Manual

Mitsubishi Electric RS232/485/LAN Serial Communication Control Manual

Rs232/485/lan serial communication control

Advertisement

RS232/485/LAN Serial Communication Control
for MDT652S
1. Application
This document defines the communication protocols for serial control of the MDT652S.
-----Revision History-----
st
1
Release
May. 24 2011. H.Tanizoe, M.Juichiya, T.Kimura, Y.Ashizaki
(1/56)

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric RS232/485/LAN Serial Communication Control

  • Page 1 RS232/485/LAN Serial Communication Control for MDT652S 1. Application This document defines the communication protocols for serial control of the MDT652S. -----Revision History----- Release May. 24 2011. H.Tanizoe, M.Juichiya, T.Kimura, Y.Ashizaki (1/56)
  • Page 2 2. 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.
  • Page 3: Communication Parameter

    3. Communication Parameter Set each communication parameters to the PC connected with each kind of cable. A: RS-232C connection (1) RS-232C direct connection between PC and Display RS-232C (Asynchronous, Full-duplex) Interface Baud rate 9600bps Data length 8bits Parity None Stop bit 1 bit Flow control None...
  • Page 4: Communication Timing

    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.
  • Page 5 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.
  • Page 6 3) Operation commands The operation commands execute the basic operation setting of this LCD monitor. It may not operate when changing the signal: Operation ASCII POWER ON POWER OFF " INPUT HDMI 5Fh 72h 31h INPUT DVI-D 5Fh 72h 32h INPUT D-SUB 5Fh 72h 33h INPUT BNC...
  • Page 7 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...
  • Page 8 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. Header Message Check Code...
  • Page 9: Header Block Format (Fixed Length)

    4.1 Header block format (fixed length) Header Message Check code Delimiter Reserved Destination Message Message Source Type Length byte) SOH: Start of Header ASCII SOH (01h) byte) Reserved: Reserved for future extensions. MDT652S must be ASCII '0'(30h) byte) Destination: Destination equipment ID. (Receiver) Specify a command’s receiver’s address.
  • Page 10: Message Block Format

    4.2 Message block format Message Header 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”...
  • Page 11 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. (11/56)
  • Page 12: Check Code

    4.5 Check code Header Message Check code Delimiter Check code is the Block Check Code (BCC) between the Header and the End of Message except SOH. Reserved Destination Source Type Length Data Check code XOR D XOR D XOR ,,, D XOR: Exclusive OR Following is an example of a Check code (BCC) calculation.
  • Page 13: Message Type

    5. Message type 5.1 Get current Parameter from a monitor. OP code page OP code –5 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.
  • Page 14: Set Parameter

    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). –5 bytes) OP code page: Operation code page.
  • Page 15: "Set Parameter" Reply

    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. bytes) OP code: Operation code This OP code data must be encoded to ASCII characters. OP code 1Ah ->...
  • Page 16: Save Current Settings

    bytes) 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. bytes) 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) bytes) Requested setting Value: Echoes back the parameter for confirmation.
  • Page 17: Get Timing Report And Timing Reply

     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.
  • Page 18: Typical Procedure Example

     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...
  • Page 19 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...
  • Page 20: How To Read The Measurement Value Of The Built-In Temperature Sensors

    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...
  • Page 21 '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).
  • Page 22 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 "...
  • Page 23: Power Control Procedure

    7. Power control procedure 7.1 Power status read 1) The controller requests the monitor to reply a current power status. Header Message Check code Delimiter SOH-'0'-'A'-'0'-'A'-'0'-'6' STX-'0'-'1'-'D'-'6'-ETX 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.
  • Page 24: Power Control

    Delimiter CR (0Dh): End of packet 7.2 Power control 1) The controller requests the monitor to control monitor power. Header Message Check code Delimiter SOH-'0'-'A'-'0'-'A'-'0'-'C' STX-'C'-'2'-'0'-'3'-'D'-'6'- '0'-'0'-'0'-'1'-ETX 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.
  • Page 25: Asset Data Read And Write

    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.
  • Page 26: Asset Data Write

    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...
  • Page 27: Date & Time Read And Write

    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.
  • Page 28: Date & Time Write

    '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...
  • Page 29 '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”...
  • Page 30 'B' (42h): Message type is "Command reply" '1'-'6'(31h, 36h): Message length. Message STX (02h): Start of Message 'C'-'3'-'1'-'2' (43h, 33h, 31h, 32h): Date & Time write reply command ST: Date & Time Status command '0'-'0'(30h, 30h):No error '0'-'1'(30h, 31h):Error '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)
  • Page 31: Schedule Read And Write

    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 Delimiter SOH-'0'-'A'-'0'-'A'-'0'-'8' STX-'C'-'2'-'1'-'3'-PG-ETX 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)
  • Page 32 '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. OFF_MIN: Turn off time (minute) '0'-'0'(30h, 30h): 0 '3'-'B'(33h, 42h): 59 (=3Bh) '3'-'C'(33h, 43h): Off timer isn’t set. INPUT: Timer input '0'-'0'(30h, 30h): RGB1(HDMI) '0'-'1'(30h, 31h): RGB2(DVI-D)
  • Page 33: Schedule Write

    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 Header Message Check code Delimiter SOH-'0'-'A'-'0'-'A'-'1'-'6' STX-'C'-'2'-'1'-'4'-PG-ON HOURS-ON MIN-OFF HOURS-OFF Min-INPUT-WD-FL-ETX 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)
  • Page 34 bit 0: Monday bit 1: Tuesday bit 2: Wednesday bit 3: Thursday bit 4: Friday bit 5: Saturday bit 6: Sunday '0'-'1'(30h, 31h): Monday '0'-'4'(30h, 34h): Wednesday '0'-'F'(30h, 46h): Monday, Tuesday, Wednesday and Thursday '7'-'F'(37h, 46h): Monday to Sunday FL: Option bit 0: Everyday bit 1: Every week bit 2: Schedule Disable/Enable...
  • Page 35 '0'-'0'(30h, 30h): Program No.1 '0'-'6'(30h, 36h): Program No.7 ON_HOUR: Turn on time (hour) '0'-'0'(30h, 30h): 00 '1'-'7'(31h, 37h): 23 (=17h) '1'-'8'(31h, 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)
  • Page 36: Self-Diagnosis Status Read

    '0'-'4'(30h, 34h) Once *Follow WD (Week setting) '0'-'5'(30h, 35h) Everyday '0'-'6'(30h, 36h) Everyweek *Follow WD (Week setting) '0'-'7'(30h, 37h) 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.
  • Page 37 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 ...
  • Page 38 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 Check code Delimiter SOH-'0'-'A'-'0'-'A'-'0'-'6' STX-'C'-'2'-'1'-'6'-ETX Header SOH (01h): Start Of Header '0' (30h): Reserved...
  • Page 39: Model Name Read

    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 Check code Delimiter SOH-'0'-'A'-'0'-'A'-'0'-'6' STX-'C'-'2'-'1'-'7'-ETX 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.
  • Page 40 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).
  • Page 41 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”...
  • Page 42 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. Header Message Check code Delimiter SOH-'0'-'*'-'0'-'A'-'0'-'8' STX-'C'-'2'-'2'-'2'–[VAL _H]-[VAL_L]-ETX Header SOH (01h): Start Of Header '0' (30h): Reserved '*' (2Ah): Monitor ID (Use ‘*’...
  • Page 43 Delimiter CR (0Dh): End of packet (43/56)
  • Page 44 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 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.
  • Page 45 BCC: Block Check Code Refer to the section 4.5 “Check code” for a BCC calculation. (45/56)
  • Page 46 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. Header Message Check code Delimiter SOH-'0'-'*'-'0'-'A'-'1'-'2' STX-'C'-'2'-'2'-'4'–[FVAL_HH] -[FVAL_HL]- [FVAL_LH] -[FVAL_LL] - [BVAL_HH] -[BVAL_HL] -[BVAL_LH] -[BVAL_LL] -[APL_HH] -[APL_HL] -[APL_LH] -[APL_LL] –ETX Header SOH (01h): Start Of Header...
  • Page 47 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)
  • Page 48 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.
  • Page 49 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 1 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.
  • Page 50: Operation Code (Op Code) Table

    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 OP code OP code Parameter Remarks...
  • Page 51 Item OP code OP code Parameter Remarks page Zoom V- Expansion 0:100% 100:300% Zoom H-Position 0: Left side Max.: Right side Zoom V-Position 0: Down side Max.: Up side Screen reset 1: Reset Momentary Balance O: Left 50:(Center) 100: Right Treble O: Min.
  • Page 52 Item OP code OP code Parameter Remarks page Factory Reset 1: Reset Momentary Configuration Reset OSD Turn Off 0-4:Do not set. 5:5sec 120:120sec Information OSD 0:disable information 3-10: OSD timer [seconds] Off Timer 0: OFF 1 hour/step 1: 1 hour 24: 24 hours Position Position...
  • Page 53 Item OP code OP code Parameter Remarks page Advanced Option Reset 1:RESET Momentary Input 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 Picture Mode 1: sRGB SRGB: 3: Hi-Bright PC mode only...
  • Page 54 B. Application Note for RS485 based communication using CAT5 Tx BOX. 1) RS-485 is half-duplex communication. So data flow control in HOST side is required. 2) 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.
  • Page 55 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.
  • Page 56 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.

This manual is also suitable for:

Mdt652s

Table of Contents