论文部分内容阅读
火灾监控系统需要实时获取来自接收机串口的检测数据和视频数据,对串口进行实时监控的同时还可以进行一些其他的操作。利用基于多线程的串口通信编程思想方法可以很好地解决这一问题。本文介绍多线程的基本概念和上位机C#串口通信编程技术,分析了火灾监控系统的基本功能和需求,着重阐述了采用基于多线程串口通信方法来获取和配置火灾检测参数,并且给出了C#SerialPort类的使用方法。经过最终调试,程序运行稳定,效果良好。
Fire monitoring system needs real-time access from the receiver serial data detection and video data, real-time monitoring of the serial port can also carry out some other operations. The use of multi-threaded serial communication programming ideas based on the method can be a good solution to this problem. This paper introduces the basic concepts of multi-threading and host computer C # serial communication programming technology, analyzes the basic functions and needs of fire monitoring system, emphatically describes the use of multi-threaded serial port communication method to obtain and configure fire detection parameters, and gives the C #SerialPort use of the category. After final debugging, the program runs stably and works well.