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

现场总线CAN通信中多线程的应用
引用本文:郑勇芸,饶运涛,邹继军,朱兆优.现场总线CAN通信中多线程的应用[J].华东地质学院学报,2004,27(2):196-200.
作者姓名:郑勇芸  饶运涛  邹继军  朱兆优
作者单位:东华理工学院电子与自动化系,东华理工学院电子与自动化系,东华理工学院电子与自动化系,东华理工学院电子与自动化系 江西抚州344000,上海师范大学数理信息学院,上海200234,江西抚州344000,江西抚州344000,江西抚州344000
摘    要:现场总线是用于自动化系统最底层的现场设备或仪表互联的通信网络。CAN是现场总线中的一种,具有较高的性能价格比和较强的实时处理能力。文章以采用CAN总线的通讯网络结构的校园消费系统为例,介绍在CAN总线通信中如何采用基于多线程的通信程序实现实时的接收、处理和发送数据的功能,对多个线程之问的协作关系进行了分析,以及对采用信号量实现线程的互斥和同步问题进行了详细的论述,最后给出了利用Delphi编写的线程的框架。

关 键 词:多线程技术  现场总线  互斥问题  同步问题  Delphi语言
文章编号:1000-2251(2004)02-196-05
修稿时间:2003年9月10日

Multi-thread Applied in the Field Bus CAN Communication
ZHENG Yong-yun.Multi-thread Applied in the Field Bus CAN Communication[J].Journal of East China Geological Institute,2004,27(2):196-200.
Authors:ZHENG Yong-yun
Institution:ZHENG Yong-yun~
Abstract:Field bus is a network via which all field equipments and meters intercommunicate in a roboticized system. It is derived from the network of computer which is applied in the automatically controlled system. The CAN is a kind of field bus which has higher ratio of capability and price, and more effective capability of real time process. The paper uses the consumption system of campus which adopts CAN bus network as example to introduce how to use the program which based on multi-thread to receive , handle and send data on real time. The relationship of mutli-thread is analyzed, the method of how to use signal to realize the mutex and synchronization of multi-thread is discussed in details too . At last, the framework of multi-thread which is written in Delphi is given .
Keywords:CAN  Multi-thread  Delphi5  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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