kdb145: DFlex-4/104 PC-104 Serial I/O QNX2.xx Installation

Title: DFlex-4/104 PC-104 Serial I/O QNX2.xx Installation
Keywords: DFlex-4/104: QNX 2.XX Installation, ver. 0.00
Date: November 29, 1996
KDB: KDB-145
Revision: 1.00
Author: Support
Distribution: External

DFlex-4/104: QNX 2.XX Installation, ver. 0.00

QNX 2.XX

When installing DFlex-4/104 boards under the QNX 2.XX
operating system, it is important to note the following:

Note:

  1. After booting, QNX looks for serial ports at the following addresses: 3F8, 2F8, 280, 288, 290, 2A0, 2A8, 2B0, 2B8, 3E8, 2E8 hex.
  2. If ports are found at these addresses, they are assigned the names $tty3 ($mdm), $tty4 ($term1), etc.

TECHNICAL TIP:

You can use the “osconfig” command to alter or add I/O port addresses.

EXAMPLE:

The following is an example on how to add or alter the existing UART I/O addresses that QNX 2.XX will scan for and assign device names to at boot up:

1. Use the “osconfig” command to edit the file sys.cfg.

osconfig 3:/config/sys.cfg

In the sys.cfg file you will find a number of references to the QNX OS, including a table with 16 entries. This is the current list of I/O addresses in the search path for UARTS. This is where you will enter new UART I/O addresses or alter the existing arrangement. For more information about the “osconfig” command please refer to your QNX 2.XX documentation.

2. Once you have edited the I/O address table to match your DFlex-4/104 settings, use the “boot” command to link your additions and/or alterations into the QNX 2.XX OS.

boot 3:/netboot/os.2.20atp c=3:/config/sys.cfg

Please note that failure to execute the boot program correctly could prevent your hard disk from booting. For more information concerning the “boot” command, please refer to your QNX 2.XX documentation.

3. You can now reboot your system. After the system reboots and you log in, use the “mount” command to display all the devices mounted in your system (including the new DFlex-4/104 serial ports).

CONFIGURATION

Many of the systems today, include as standard equipment both COM1 and COM2 directly on the motherboard. With this in mind, check your system to see if either or both of these ports have been included as standard equipment or as options

In choosing an interrupt request line, it should be noted that QNX vectors interrupt 3 and 4 to the serial handler. However, only interrupt 4 is enabled. If interrupt 3 is going to be used, it will be necessary to use the following command to enable interrupt 3:

Example:

stty inton=3

If an interrupt other than 3 or 4 is to be used, it will be necessary to use the following commands:

Example:

stty intcp=4,nn
stty inton=nn

where nn is the interrupt number to be used

Note:
Due to limitations in QNX 2.XX, only interrupts less than or equal to IRQ 7 will work with standard serial port boards.

The stty intcp command is required to vector the selected interrupt to the serial handler while the stty inton command enables that interrupt.

Note: More information on these commands can be found by referring to the stty command in your QNX Operating System Manual.

SETTING LINE PARAMETERS

You can use the “stty” command under QNX 2.XX to set and query the line parameters for a DFlex-4/104 serial port.

Examples:

1. The following statement sets baud rate to 9600 baud, parity to none, number of stop bits to 1, and number of data bits to 8:

stty baud=9600, par=none, bits=8, stop=1 >$term1

NOTE: available baud rates are 50 to 57.6K baud.

2. The following statement queries the line parameters:

stty <$term1

Please refer to the QNX 2.XX documentation for more information concerning the “stty” command. See also qtalk and qcp.

End of KDB-145

Go to Top