ABSTRACT
Serial communication is flexible and easy to use , Data transmission by the serial communication is security and stability. It is widely used in industrial control, Real-time data acquisition and control system and so on.Using the thread through information and the multi-task processing program we can solve the problem that the Real-time and reliability are not guaranteed, but also improve the throughput of data transmission and application reliability.
Based on the study of asynchronous serial communication software and communication protocol,it give out a serial communication software design.Based on the windows and Real-time data acquisition. By using CSerialPort class Implement the serial communication and give a design of serial operating software CSerialPort is a free class provided by Remon Spekreijse which is support th serial programming operation well.It’s easy to Using windows API to upgrade.
Finally It made a building temperature control system, which connected temperature sensors and the central air-conditioning system through serial data bus. The whole system is simple and efficient.
KEY WORDS serial communication, asynchronous ommunication, building temperature control