作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (12): 245-247. doi: 10.3969/j.issn.1000-3428.2009.12.085

• 开发研究与设计技术 • 上一篇    下一篇

QNX操作系统下的Modbus串口通信设计

  1. (浙江理工大学自动化研究所,杭州 310018)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-06-20 发布日期:2009-06-20

Design of Modbus Serial Port Communication in QNX Operating System

(Institute of Automation, Zhejiang Sci-Tech University, Hangzhou 310018)   

  1. (Institute of Automation, Zhejiang Sci-Tech University, Hangzhou 310018)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-06-20 Published:2009-06-20

摘要: 在分析QNX设备驱动程序体系结构和Modbus协议的基础上,提出QNX 操作系统串行接口设备驱动程序设计的一般方法,用C语言设计Modbus在QNX下的串口通信程序,经过和西门子S7-200 PLC长时间的严格通信测试,结果表明该方法实时性强、稳定性好、可靠性高,取得令人满意的通信效果。

关键词: QNX操作系统, 现场总线, 串口通信, 设备驱动程序

Abstract: This paper presents a general design method on serial interface device driver, which is based on the analysis of Modbus protocol and QNX Operating System(QNX OS) device driver architecture. It specifies serial port communication in C program under QNX OS, and tests its communication with SIEMENS S7-200 PLC. The test result proves that the method is real-time, stable and reliable.

Key words: QNX Operating System(QNX OS), Modbus, serial port communication, device driver

中图分类号: