9
Communication Protocol
Serial settings
Baud Rate 19200bps
Data 8 bits
Stop Bit 1 bit
Flow control None
Sending (PC g LED-RPS-CL-R)
Start of
Frame
(1-byte)
Source
Address
(2-byte)
Dot
(1-byte)
Destination
Address
(2-byte)
Dot
(1-byte)
Command
Dot
(1-byte)
Checksum
(2-byte)
End of
Frame
(1-byte)
ASCII
L
F
01
(*1)
. 02
(*2)
. reqps . 54
C
R
HEX 0x0A 0x30
0x31
0x2E 0x30
0x32
0x2E 0x72
0x65
0x71
0x70
0x73
0x2E 0x35
0x34
0x0D
Receiving (LED-RPS-CL-R g PC)
Start of
Frame
(1-byte)
Source
Address
(2-byte)
Dot
(1-byte)
Destination
Address
(2-byte)
Dot
(1-byte)
Command
Dot
(1-byte)
Checksum
(2-byte)
End of
Frame
(1-byte)
ASCII
L
F
02
(*2)
. 01
(*1)
. ps:on . 23
C
R
HEX 0x0A 0x30
0x32
0x2E 0x30
0x31
0x2E 0x70
0x73
0x3A
0x6F
0x6E
0x2E 0x32
0x33
0x0D
(*1) “01” is set for the PC address.
(*2) The address of the LED-RPS-CL-R is “02” by default.
Checksum calculation
The values from “Start of Frame” to “End of Command” are added and the last byte of the hexadecimal sum is
displayed in ASCII.
Example: With 0A(LF) 30(0) 31(1) 2E(.) 30(0) 32(2) 2E(.) 72(r) 65(e) 71(q) 70(p) 73(s)
0x0A + 0x30 + 0x31 + 0x2E + 0x30 + 0x32 + 0x2E + 0x72 + 0x65 + 0x71 + 0x70 + 0x73 = 0x0354
Consequently, the checksum expressed in ASCII is “54”.