Protocol Ugreat
Protocol Ugreat
1.Intruction
Data packet is used to communicate between the PC and the controller, in order
to enhance the reliability of data.
Communication process:
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:
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
Check sum 0x00~0xff 1 The sum of each byte from " Packet
length " to “ Packet data” content
RS232/RS485 sender:
Check sum 0x00~0xff 1 The sum of each byte from " Packet
length " to “ Packet data” content
0x06 No function
NO function:CC=0x06: