SYNOPSIS
/dev/com/n
/dev/com/nM
DESCRIPTION
The NuTCRACKER Platform recognizes two forms of device names for communication ports:
- The first form in the SYNOPSIS section corresponds to the Windows device COMn. This device assumes a hard-wired serial connection, and ignores the carrier-detect serial line.
- The second form in the SYNOPSIS section is the modem-control version of the Windows device COMn (hence the trailing M). An attempt to open this device blocks until the carrier-detect line becomes active, unless the port is explicitly opened in non-blocking mode.
By default, the NuTCRACKER Platform supports 12 com ports. You can increase
this limit by using
Supported ioctl() Requests
- TCGETS, TCSETS, TCSETSF, TCSETSW
-
These
ioctl() requests are used to get and set termios parameters, and are documented under sstruct termios. The argument to theioctl() request is a pointer to a termios structure. - TCFLSH
-
This
ioctl() request is used to flush pending input and output, and is documented under struct termios. - TCSBRK
-
This
ioctl() request is used to send a break, and is documented under struct termios. - TCXONC
-
This
ioctl() request is used for flow control, and is documented under struct termios. - TCGETX, TCSETX, TCSETXF, TCSETXW
-
These
ioctl() requests are used to get and set termiox parameters, and are documented under struct termiox. The argument to theioctl() request is a pointer to a termiox structure. - FIOGETOWN
-
This
ioctl() request is equivalent to fcntl(fildes, F_GETOWN). - FIOSETOWN
-
This
ioctl() request is equivalent to fcntl(fildes, F_SETOWN, arg), respectively. The argument to theioctl() request is a process ID or process group ID, as described for F_SETOWN underfcntl() . - FIOASYNC
-
This
ioctl() request is equivalent to using thefcntl() command F_SETFL to set or clear the O_ASYNC flag. The argument to theioctl() request is a variable of type unsigned long. If this variable is non-zero, the O_ASYNC flag is set, otherwise it is cleared. - FIONBIO
-
This
ioctl() request is equivalent to using thefcntl() command F_SETFL to set or clear the O_NONBLOCK flag. The argument to theioctl() request is a variable of type unsigned long. If this variable is non-zero, the O_NONBLOCK flag is set, otherwise it is cleared.
PORTING ISSUES
Refer to The Communication Port Interface in the PTC MKS Toolkit UNIX to Windows Porting Guide for a detailed discussion of working with communication port devices.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Miscellaneous:
- /dev/console, struct termios, struct termiox
PTC MKS Toolkit 10.5 Documentation Build 40.