摘要
对windows 2000环境下串口通信的开发方法进行了阐述,对每种方法的编程实现进行了介绍,比较了各自的优缺点,并根据具体使用要求,选择了合适的开发方法。对串口通信特别是串口数据处理以及串口通信模块封装进行了研究。介绍了环形缓冲区数据处理方法和动态链接库(DLL)封装串口通信模块的方法,并通过VisualC++编写的代码实现进行了验证。
In windows 2000 environment, the method of serial port communication development is summa rized. Every method to program is introduced, and their advantages and disadvantages are compared. For application requirements, the appropriate development methods are selected. The serial port data processing and serial port module packaging are studied. The method of ring buffer data processing and the method that the serial port communication module is packaged using dynamic-link library (DLL) are introduced, and these methods are validated by the code of Visual C++.
出处
《光电技术应用》
2011年第3期65-70,共6页
Electro-Optic Technology Application
关键词
串口通信
环形缓冲区
动态链接库
serial port communication
ring buffer
dynamic-link librarv