Programming of Serial Communication Design and Implement Based on Multi-thread
Chunsheng Liu · Control Engineering of China · 2004
In light of disadvantages of serial communication in real time and using of system resource, the idea of asynchronous serial communication design based on the multi-thread technology and self-defined message is presented. The serial communication mechanism and thread synchronization are employed in the achievement to the idea. The way to 32-bits operation system multi-thread asynchronous serial communication programming is analyzed. The serial communication programming in Delphi language between PC and single- chip is implemented in gas station computer central controlling system. And the idea and common steps of programming and its implemented segment code are presented. The serial communication programming is developed successfully in gas station computer central controlling system. It promotes the automation of petroleum industry and helpes to develop automation of others correlation to petroleum industry.