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