Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Serial port questions
Ref. No. QNX.000001200
Category(ies) Development, Character I/O
Issue How do we handle serial port control lines? We want to handle (read or write) directly (in code) the DSR/DTR/RTS/CTS/DCD signals to interact with a modem.
Solution You can use the qnx_ioctl() to toggle the serial port.  qnx_ioctl() will issue special control requests to a device. There are more details concering the control requests in usr/include/sys/qioctl.h.