NEC RS-232C user manual Delimiter, Following is an example of a Check code BCC calculation

Page 6

Following is an example of a Check code (BCC) calculation.

 

 

 

Header

 

 

 

 

 

 

 

 

Message

 

 

 

 

Check

Delimiter

SOH

Reserved

Destination

Source

Message

Message length

 

STX

OP code

OP code

 

Set Value

 

ETX

code

 

 

 

(BCC)

 

Address

Address

type

 

page

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

4.6 Delimiter

Header

Message

Check code

Delimiter

Packet delimiter code; ASCII CR(0Dh).

(6/50)

Image 6
Contents Connectors and wiring ApplicationCommunication Parameter Communication Format Header block format fixed lengthALL ETX Message block formatSTX STX ETX MSB LSBCheck code MSB LSBSOH Delimiter Following is an example of a Check code BCC calculationMessage type Get current Parameter from a monitorSet parameter Set parameter reply Current conditionGet Timing Report and Timing reply CommandsSave Current Settings MSB LSB ETXNull Message Typical procedure exampleHow to change the Brightness setting BCCHeader Message Check code Delimiter Message Check code Delimiter Code STX-0-0-0-2-7-9-0-0 Power control procedure Power status readPower control Controller requests the monitor to control monitor powerAsset Data read and write Asset Data Read Request and replyAsset Data write Date & Time read and write Date & Time ReadBCC DS-ETX Date & Time Write Check code Delimiter Schedule read and write Schedule ReadSTX-C-3-2-1-PG-ON HOUR-ON MIN Page BCC OFF HOUR-OFF MIN-INPUT-WD-FL-ETX B33h, 42h 59 =3Bh C33h, 43h Off timer isn’t set Schedule WritePG-ON HOURS-ON MIN-OFF HOURS-OFF MIN-INPUT-WD-FL-P Mode Page BCC OFF HOUR-OFF MIN-INPUT-WD-FL-P Mode Header 31/50 SOH-0-0-Monitor ID-B-0-C STX-C-3-1-5-ST-PG-EN-ETX STX-C-2-1-4-PG-ON HOUR-ON MIN 34/50 BCC Self diagnosis Self-diagnosis status readST Result of self-tests 0-030h, 30h00 Normal Serial No. & Model Name Read Serial No. ReadModel Name Read Security Lock Security Lock Control930h, 39h Page Dicom SIM ISFAdjust Surround HdmiPOP RGB/HVPIP OSD Option Ntsc SyncDVI-PC DVI-HD SecamPIP ON/OFF All data are subject to change without notice
Related manuals
Manual 72 pages 50.57 Kb