摘要
根据串口通信的基本原理 ,介绍了利用 WIN3 2 API编程 ,基于单进程和多线程的多任务的串行通信 ,实现在一台计算机上对两个 PLC控制网络的数据进行通信的任务 ,并对影响串行通信的因素进行了探讨 .有效地解决了在串口通信中的实时响应问题 ,降低了数据丢失率 。
The paper presents a new method that is used to communicate dynamically between multi serial ports or peripherals and one PC. The theory of serial communication is discussed. The multi serial communication based on multithreading technigue with WIN32API is presented. Meanwhile, the elements of influencing serial communication are researched. The method resolves the question of real time responding in the serial communication validly, reduces losing rate of data and improves reliability of system.
出处
《武汉理工大学学报(交通科学与工程版)》
北大核心
2002年第5期575-578,共4页
Journal of Wuhan University of Technology(Transportation Science & Engineering)
基金
国家自然科学基金 (批准号 :79970 0 2 5)
国防预研基金 (批准号 :0 0 J1 5.3.3.JW0 52 8)资助