Version 2.
1.Intruction
General agreement of communication
Data packet is used to communicate between the PC and the controller, in order
to enhance the reliability of data.
Communication process:
a).PC send a data packet to the controller;
b).The controller received the data packet, analysis and processing of data
packet,and then return a data packet to PC ;
c). PC receives the data packets returned from the control card, and analysis the
received data packets to determine whether communication is successful.
Serial setting:
Baud rate: 9600 ; data bit: 8 ; stop bit: 1; verify bit: N
Packet data checksum
Communication process using the packet data checksum to check the correctness
of data transmission, Checksum calculations we should pay attention:Data
checksum is cumulative each byte of data, use the 8bit (1 byte) unsigned
number to represent, so when the data validation is more than 0xFF, the
checksum, and retain only 8bit value. For example, 0xFA + 0x09 = 0x03.
2.Data packet format
2.1 RS232/RS485 data packet format:
2.1.1 The data packet format of RS232/RS485 sending:
0xfe 0xff PL ID CC….. checksum 0xae
Data Value Length(Byte) Description
Start code 0xfe,0xff 2 The start of a packet
Packet 0x00~0xff 1 the length of (PL+ID + “CC….” +
length(PL) check sum )
ID 0x01~0xFF 1 Control card ID,, valid values are as
follows:
0x00
1 ~ 255: the specified card ID
0x00: that group address,
unconditionally receiving data
Packet data CC …… Variable-length Command sub-code and data
Check sum 0x00~0xff 1 The sum of each byte from " Packet
length " to “ Packet data” content
End code 0xef 1 The end of a packet(Package tail)
2.1.2 The data packet format of the control card returned to
RS232/RS485 sender:
0xfe 0xaf PL ID CC….. checksum 0xae
Data Value Length(Byte) Description
Start code 0xfe,0xaf 2 The start of a packet(reply packet)
Packet 0x00~0xff 1 the length of (PL+ID + “CC….” +
length(PL) check sum )
ID 0x01~0xFF 1 Control card ID,, valid values are as
0x00 follows:
1 ~ 255: the specified card ID
0x00: that group address,
unconditionally receiving data
Packet data CC …… Variable-length Command sub-code and data
Check sum 0x00~0xff 1 The sum of each byte from " Packet
length " to “ Packet data” content
End code 0xef 1 The end of a packet(Package tail)
2.2.1 Command sub-code includes:
General protocol command
Command sub- meanings
code(CC)
0x00 Send configure parameters
0x01 Send prices to the display
0x02 Read back of parameters
0x03 Read back of prices showing
0x04 Set the position of decimal
0x05 Set the ID of the display
0x06 No function
0x07 Read back the position of decimal
2.2.2 The specific definition of command sub-code and data:
Send configure parameters:CC=0x00:
Data Items Value Length(byte) Description
CC 0x00 1 Note This command is Send
configure parameters
Double sided 0x00~0x01 1 0x00 is single sided;
flag
0x01 is double sided.
Panel 0x01~0x0c 1 When single sided:0x01~0x0c;
quantity
When double sided:0x01~0x06;
Digits in 0x02~0x06 1 Do not include 9/10
each panel
With 9/10 or 0x00~0x01 1 0x00 is without 9/10;
not
0x01 is with 9/10
Brightness 0x00~0x08 1 The brightness level
0x00 is for auto change;
0x01~0x08 is for manual fixed;
Reply to sending configure parameters:CC=0x00:
Data Items Value Length(byte) Description
CC 0x00 1 Note This command is reply to
sending configure parameters
Confirm flag 0x00~0x01 1 0x00 is receive OK;
0x01 is receive wrong.
Send prices to the display:CC=0x01:
Data Items Value Length(byte) Description
CC 0x01 1 Note This command is Send prices
to the display
The prices of Each byte 36 Each panel has 3bytes to show 6
panel1~panel12 numbers: 4bits to stand of
0x00~0x99 1number. for example send
0x12,0x34,0x56 to make the
display show 123456
Reply to sending prices to the display:CC=0x01:
Data Items Value Length(byte) Description
CC 0x01 1 Note This command is reply to
sending prices to the display.
Confirm flag 0x00~0x01 1 0x00 is receive OK;
0x01 is receive wrong.
Read back of parameters:CC=0x02:
Data Items Value Length(byte) Description
CC 0x02 1 Note This command is read back of
parameters.
Reply to reading back of parameters:CC=0x02:
Data Items Value Length(byte) Description
CC 0x02 1 Note This command is Reply to
reading back of parameters.
Hardware 0~99 1 If receive 0x0a,the version is V1.0
version
Software 0~99 1 If receive 0x0a,the version is V1.0
version
Double sided 0x00~0x01 1 0x00 is single sided;
flag
0x01 is double sided.
Panel 0x01~0x0c 1 When single sided:0x01~0x0c;
quantity
When double sided:0x01~0x06;
Digits in 0x02~0x06 1 Do not include 9/10
each panel
With 9/10 or 0x00~0x01 1 0x00 is without 9/10;
not
0x01 is with 9/10
Brightness 0x00~0x08 1 The brightness level
0x00 is for auto change;
0x01~0x08 is for manual fixed;
Read back of prices showing:CC=0x03:
Data Items Value Length(byte) Description
CC 0x03 1 Note This command is read back of
prices showing.
Reply to reading back of prices showing:CC=0x03:
Data Items Value Length(byte) Description
CC 0x03 1 Note This command is reply to
reading back of prices showing.
The prices of Each byte 36 Each panel has 3bytes to show 6
panel1~panel12 numbers: 4bits to stand of
0x00~0x99 1number. for example send
0x12,0x34,0x56 to make the
display show 123456
Set the position of decimal:CC=0x04:
Data Items Value Length(byte) Description
CC 0x04 1 Note This command is set the
position of decimal.
The dot Each byte 12 Each panel has 1byte to control
position of the dot position
panel1~panel12 0x00~0x06
Reply to setting the position of decimal:CC=0x04:
Data Items Value Length(byte) Description
CC 0x04 1 Note This command is reply to
setting the position of decimal.
Confirm flag 0x00~0x01 1 0x00 is receive OK;
0x01 is receive wrong.
Set the ID of display:CC=0x05:
0xfe 0xff PL ID(broadcast ID 0x00) CC….. checksum 0xae
Data Items Value Length(byte) Description
CC 0x05 1 Note This command is set the ID
of the display.
ID to change to 0x01~0xff 1 The ID change to .
Reply to setting the ID of display:CC=0x05:
Data Items Value Length(byte) Description
CC 0x05 1 Note This command is reply to
setting the ID of display.
Confirm flag 0x00~0x01 1 0x00 is receive OK;
0x01 is receive wrong.
NO function:CC=0x06:
Data Items Value Length(byte) Description
CC 0x06 1 Note This command is no function
now.
Read back position of decimal:CC=0x07:
Data Items Value Length(byte) Description
CC 0x07 1 Note This command is read back
the position of decimal.
Reply to reading back the position of decimal:CC=0x07:
Data Items Value Length(byte) Description
CC 0x07 1 Note This command is reply to
reading back the position of
decimal.
The dot Each byte 12 Each panel has 1byte to control
position of the dot position
panel1~panel12 0x00~0x06