ORION PDP
7.
MSCS Protocol
1.
Introduction
ThischaptercontainsthecommunicationprotocolbetweenLCDanditscontroldevicessuchascomputerforbetter
useoftheproduct.However,itdoesnotincludedetailedtechnicalmatters.Itratherfocusesonthebrieffunctional
explanationandcommunicationprotocol.
Controller
Tx/Rx Line
ID:1
(Computer)
Master Slave
ID:N+1
Master Slave
ID:(M-2)N+1
Master Slave
ID:(M-1)N
Master Slave
※Theconnectioncanbevariablebasedonenvironmentortheusers'intention.
<Communicationconnectiondiagram>
1.1.
Communication Setting
-
Transmission & Reception type: Asynchronous Serial Communication
-
Connection type: Daisy Chain
-
Baudrate :
115200
-
Data Bits :
8
-
Parity :
None
-
Stop Bits :
1
-
Flow Control :
None
2.
Protocol Format
2.1.
Send To LCD
STX
Command
Length
Data
1 byte
1 byte
1 byte
Variable
ID
Master
1 byte
1 byte
-
ThisishowtosendcommandstoLCD.OnlythesetofthedesignatedIDisworkingaccordingtothe"Command."
But,ifthe"ID"valueis"0",allMLCDsetsareworkingaccordingtocommandas"Broadcast".
-
STX(0x02):Theinitialcode.ItmeansthebeginningofProtocol.(Fixedvalue)
-
Command:Codeforactualoperation.(Variable)
-
Length:thelengthof"Data"area.(Variable:0~255)
-
Data:theareasfor"ID"andtheotherData(Variable)
-
ID:ItisacodetodistinguishLCDsets.Itsrangeis"0"to"255".IftheIDis"0,"itmeansBroadcastcommand.(variable)
ID:2
ID:N-1
ID:N
Master Slave
Master Slave
Master Slave
ID:N+N
Master Slave
ID:(M-2)N+N
Master Slave
ID:(M-1)N+2
ID:(M-1)N+N-1
ID:MXN
Master Slave
Master Slave
Master Slave
ETX
1 byte
Other Data
N byte
- 52 -
-
Master(0x01):Thisisthescalercode.
-
ETX(0x03):Theendofthecode.(Fixedvalue)
2.2.
receive From LCD
STX
CMD
Length
Data
1 byte
1 byte
1 byte
Variable
ID
Master
1 byte
1 byte
-
ResponsebyacertaincommandfromthedesignatedsetamongMLCDsets.Thedifferencefrom"SendtoLCD"is"Checksum".
-
STX(0x02):Theinitialcode.ItmeansthebeginningofProtocol.(Fixedvalue)
-
Command:Codeforactualoperation.(Variable)
-
Length:thelengthof"Data"area.(Variable:0~255)
-
Data:theareasfor"ID"andtheotherData(Variable)
-
ID:Setidentification(0~255)(Variable)
-
Master(0x01):Thisisthescalercode.
-
Checksum:execute"Not"operationafteraddingallthevaluesin"STX~Data"area.
-
ETX(0x03):Theendofthecode.(Fixedvalue))
-
Communication Sequence
*Waitfor50msecforresponseaftersendingthecommand.Ifthereisnoresponse,itisrecommendedtoresendthecommand.
*Itisrecommendedthatnotsendingtheothercommandorchanginginputresolutionduringcommandtransmission.
→
Command transmission
←
3.
Command
3.1.
Power On
-
Command for Power On: Operative status
-
It is available only during Power Off(Stand-by) status.
-
Send to MLCD
A.
Normalcommand
STX
CMD
Length
Value
0x02
0x40
0x02
*IDrange(Program):0x01(1)~0xFF(255)
B.
Broadcastcommand
STX
CMD
Length
Value
0x02
0x40
0x01
*MakeallLCDdothesameoperation.But,therewillbenoreturncommunication.(Onewaycommand)
-
Receive from MLCD
STX
CMD
Length
Value
0x02
0x40
0x02
*IDrange(Program):0x01(1)~0xFF(255)
*Checksum:execute"Not"operationafteraddingallthevaluesin"STX~Data"area.
MLCD
Infinitely Expandable
Check Sum
ETX
1 byte
1 byte
Other Data
N byte
Responsetransmission
Data
ETX
ID
Master
Variable
0x01
0x03
Data: ID
ETX
0x00
0x03
Data
Check Sum
ETX
ID
Master
Variable
0x01
Variable
0x03
- 53 -