Abstract:RS485 communication protocol is widely used in the field of industrial data communication. It has many advantages, such as simple network structure, strong anti-interference ability and long transmission distance. However, there is no unified standard for the implementation of RS485 communication protocol in the transmission layer, which requires the definition of each industry manufacturer, and most manufacturers use the query response mode of single data packet, which leads to the low efficiency of channel utilization. When the data transmission is small, the waste of time cost is not outstanding. However, with the continuous development of the digital intelligent equipment and the increase of the amount of communication data, the RS485 protocol also shows some drawbacks in the practical application, such as low transmission efficiency and low channel utilization. TCP protocol is a connection oriented, reliable, byte stream based transport layer communication protocol. TCP sliding window technology is a mature and reliable transmission layer communication protocol. It has the advantages of error control, flow control, high efficiency of data transmission and so on. The application of TCP sliding window technology to the RS485 communication protocol will greatly improve the current data communication in the industrial.