Serial device driver (QNX)
Dev.ser [[options]... [portspec...]]... &
The Dev.ser driver does not follow the utility syntax conventions. All options do not necessarily appear before operands; they may be intermixed. Options apply to those operands which follow them on the command line.
The Dev.ser driver manages standard PC/AT and PCMCIA serial port devices in a QNX system, including multiport devices which appear as standard serial ports on the bus but which may share a common interrupt. Serial "smartcards" require special drivers from other companies (such as the smartcard manufacturer).
If no serial ports are specified on the command line, Dev.ser scans the hardware, looking for a port at 3F8 (COM1) or a port at 2F8 (COM2), or both. If COM1 is present, Dev.ser assumes that it uses interrupt IRQ 4; if COM2 is present, Dev.ser assumes that it uses interrupt IRQ 3. If the scan shows that neither of COM1 nor COM2 is present, Dev.ser terminates.
Locking flow control prevents application programs -- with the exception of stty -- from changing the flow control modes.
When using -t to enable the 16550 FIFO, be aware that it will not generate a receive interrupt until either the FIFO is full or 4 idle character times at the current baud rate have elapsed. This could have ramifications for low-latency protocol applications. Note that the 16550 will always buffer incoming data. The -t option affects only the generation of interrupts.
Dev.ser must be run as root and may be started only after the Device Manager (Dev) has been started. |
Scan for COM1 and COM2:
Dev.ser &
Set port at 3F8 as a raw device at 1200 baud, and port at 2F8 as an edited device at 9600 baud:
Dev.ser -E -b 1200 3f8,4 -e -b 9600 2f8,3 &
Specify a standard COM1 port at 3F8 as well as four ports on a multiport card:
Dev.ser 3f8,4 280,3 288,3 290,3 298,3 &
Do the same, but allow Dev.ser to autodetect the IRQs used for the four ports:
Dev.ser 3f8 280 288 290 298 &
Set the driver up for one serial port /dev/ser1 which will be a PCMCIA card in socket 1 or 2:
Dev.ser p1,2 &
Set the driver up for two serial ports (/dev/ser1 and /dev/ser2 one of which will be a PCMCIA card in socket 1 and the other a PCMCIA card in socket 2:
Dev.ser p1 p2 &
Set the driver up for two serial ports at 0x3f8/irq3 and 0x2f8/irq4, plus a third serial port at 0x3e8/irq7 which will be found on a PCMCIA card which may be in any socket:
Dev.ser 3f8,3 2f8,4 3e8,7,p &
Dev.ser closes its standard input, standard output and standard error immediately upon startup.
Dev.ser will cause Dev to adopt a number of character special files under its directory (/dev). These will usually be named sern, where n will range from 1 to the number of serial devices encountered during the scan of possible port locations or specified explicitly on the command line. The base filename (ser) will be different if the -N is specified with an alternate name.
Dev.ser will terminate only upon receipt of a signal or upon encountering a problem during startup.
A common cause of failure on startup is that Dev has hit its maximum number of devices and rejects the driver's attempt to register. If this happens, increase the value of Dev's -n option. |
Dev, Dev.*, modem, Mouse, Net.fd, qtalk, qcp, stty, tinit
QNX Installation & Configuration