beautypg.com

D. serial communication protocol, Serial protocol, Protocol data format – RGBLink DXP D1616 User Manual User Manual

Page 72: Serial communication protocol

background image

DXP D1616 User Manual 72

D.

Serial Communication Protocol

Serial protocol

Baud rate 115200 BPS. 1 bit start bit; 1 bit stop bit; No parity bit.

Protocol data format

Sending data format as follows, defined as shown in table 1.

ADDR * SN * CMD * DAT1 * DAT2 * DAT3 * DAT4 * CHKSUM

Table 2 sends data format definition

Symbol

Byte

Definition

Note

ADDR

1

Address

SN

1

Used for transmission flow controlling

CMD

1

Command type

DAT1

1

DAT2

1

DAT3

1

DAT4

1

CHKSUM

1

All protocol data

Receiving data format as follows, defined as shown in table 3.

ADDR * SN * CMD * DAT1 * DAT2 * DAT3 * DAT4 * CHKSUM

Table 4 receiving data format definition

Symbol

Byte

Definition

Note

ADDR

1

Address

Not used

SN

1

Used for transmission flow controlling

CMD

1

Command type

DAT1

1

DAT2

1

DAT3

1

DAT4

1

CHKSUM

1

All protocol data

CHKSUM = ADDR + SN + CMD + DAT1 + DAT2 + DAT3 + DAT4.

SN is used for flow controlling, with beginning connection settings SN = 0,

each command PC send, SN plus one. The back command lower machine

send should be consistent with the receiving SN command. Lower machine

should at least cache five receiving commands. PC should well flow control