NEC RS-232C manual Check code, Soh

Page 11

4.3 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.

 

SOH

 

D0

27

26

25

24

23

22

21

20

 

 

 

 

 

 

 

 

 

 

 

Reserved

 

 

D1

 

 

 

 

 

 

 

 

 

 

Destination

 

 

D2

 

 

 

 

 

 

 

 

 

 

Source

 

D3

 

 

 

 

 

 

 

 

 

Type

 

D4

 

 

 

 

 

 

 

 

 

Length(H)

 

D5

 

 

 

 

 

 

 

 

 

Length(L)

 

D6

 

 

 

 

 

 

 

 

 

STX

 

D7

 

 

 

 

 

 

 

 

 

Data

 

D8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ETX

 

Dn

 

 

 

 

 

 

 

 

 

Check code

 

Dn+1

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.

 

 

 

Header

 

 

 

 

Message

 

 

Check

SOH

Reserved

Destination

Source

Message

Message length

STX

OP code

OP code

 

Set Value

ETX

code

 

(BCC)

Address

Address

type

page

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Delimiter

01

30

41

30

45

30

41

02

30

30

31

30

30

30

36

34

03

77

0D

D0

D1

D2

D3

D4

D5

D6

D7

D8

D9

D10

D11

D12

D13

D14

D15

D16

D17

D18

Check code (BCC) D17 = D1 xor D2 xor D3 xor … xor D14 xor D15 xor D16

=30h xor 41h xor 30h xor 45h xor 30h xor 41h xor 02h xor 30h xor 30h xor 31h xor 30h xor 30h xor 30h xor 36h xor 34h xor 03h

=77h

(11/72)

Image 11
Contents External Control 10.1 Application LAN control II. Preparation Connectors and wiringRS-232C Remote control Ascii Communication timingGet Parameter Reply Monitor Communication FormatALL Header block format fixed lengthPage MSB LSB Message block formatSTX ETX10/72 SOH Check codeDelimiter Get current Parameter from a monitor Message typeGet parameter reply 00h No ErrorETX MSB LSB Set parameterCurrent condition Set parameter replySave Current Settings CommandsGet Timing Report and Timing reply  Send 0730h, 37h as Get Timing Report commandNull Message BCC IV. Control Commands Typical procedure exampleHow to change the Backlight setting Message Check code Delimiter Header Message Check code Delimiter SOH-0-Monitor ID-0-E-0-A STX-0-2-7-8-0-0-0-1-ETX SOH-0-Monitor ID-0-C-0-6 STX-0-2-7-9-ETX Readout value is 2s complement Dicom SIM Operation Code OP code TablePosition 00h 20h Left side OP code Parameter Remarks Cod Pag Input Resolution DAh Hdmi SurroundPIP RGB/HVOSD 02h 7Dh None IP ON/PROGRESSIVE DVI-PCDVI-HD ScartPIP ON/OFF Mute Unmute Screen MuteScreen Mute on Screen Mute OFF MTS ‘SURROUND’OP code Parameter Remarks Cod Pag PIP Input 02h 73h No mean Power status read Power control procedureCR 0Dh End of packet 37/72 Controller requests the monitor to control monitor power Power controlDelimiter CR 0Dh End of packet 39/72 Asset Data Read Request and reply Asset Data read and writeDelimiter CR 0Dh End of packet 41/72 Asset Data write CR 0Dh End of packet 43/72 BCC DS-ETX Date & Time read and writeDate & Time Read MN Minutes 0-030h, 30h Date & Time Write Check code Delimiter Delimiter CR 0Dh End of packet 48/72 Schedule Read Schedule read and writeB33h, 42h C33h, 43h On timer isnt set Page BCC OFF HOUR-OFF MIN-INPUT-WD-FL-ETX B33h, 42h 59 =3Bh C33h, 43h Off timer isn’t set Schedule Write PG-ON HOURS-ON MIN-OFF HOURS-OFF MIN-INPUT-WD-FL-P ModePage BCC OFF HOUR-OFF MIN-INPUT-WD-FL-P Mode 57/72 SOH-0-Monitor ID-0-A-0-A STX-C-2-1-5-PG-EN-ETX Delimiter CR 0Dh End of packet 59/72 STX-C-2-1-4-PG-ON HOUR-ON MIN SOH-0-0-Monitor ID-B-1-8 STX-C-3-1-4-ST-PG-ON HOUR-ON MIN 030h, 30h 731h, 37h 23 =17h 831h, 38h Off timer isnt set SOH-0-0-Monitor ID-B-0-C STX-C-3-1-5-ST-PG-EN-ETX Self-diagnosis status read Self diagnosisPage Serial No. Read Serial No. & Model Name ReadModel Name Read Security Lock Control Security LockSTX-C-3-1-D-ST-EN-ETX Direct TV Chanel Read & Reply Direct TV Chanel Read & WriteDirect TV Chanel Write & Reply All data are subject to change without notice
Related manuals
Manual 50 pages 13.24 Kb