首页 | 本学科首页   官方微博 | 高级检索  
     

Linux下PC机串口与智能仪器间的数据通信
引用本文:吴俊安,江泽涛,涂斌.Linux下PC机串口与智能仪器间的数据通信[J].计算机与现代化,2005(7):39-42.
作者姓名:吴俊安  江泽涛  涂斌
作者单位:1. 南昌航空工业学院计算机系,江西,南昌,330034
2. 南昌供水有限责任公司计算中心,江西,南昌,330001
基金项目:江西省教委科技资助项目(DB200206062),江西省测控中心资助项目(KG200204011)
摘    要:由于串行接口具有连接简单、使用方便、数据传递可靠等优点,在工业实时控制系统中得到了广泛应用。本文探讨了Linux环境下PC机与智能仪器的串行通信,讨论了多线程实现问题,基于本文的通信程序能够实时接收和发送数据。文中给出了相应的程序代码,为日益流行的Linux软件开发提供一个有价值的参考。

关 键 词:智能仪器  串行通信  临界区  Linux  Kylix
文章编号:1006-2475(2005)07-0039-04
修稿时间:2004年9月28日

Data Communications Between PC Based on Serial Port and Intelligent Instrument Under Linux
WU Jun-an,JIANG Ze-tao,TU Bin.Data Communications Between PC Based on Serial Port and Intelligent Instrument Under Linux[J].Computer and Modernization,2005(7):39-42.
Authors:WU Jun-an  JIANG Ze-tao  TU Bin
Affiliation:WU Jun-an~1,JIANG Ze-tao~1,TU Bin~2
Abstract: Serial interface possesses the good qualities of connecting simply ,using conveniently and data transferring credibly ,so it gains abroad appliance in real-time control system .In this paper ,the programming method of serial communication with Kylix in the Linux platform is discussed . Then it discusses the question of thread synchronization .Multi-thread based on serial communication program can receive and send data at the same time .The corresponding programming codes are given .It can be a valuable reference for the increasingly popular Linux software development.
Keywords:intelligent instrument  serial communication  critical section  Linux  Kylix
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号