Table of content
This software installation guide is designed to help users successfully install the Echo/Dflex or Xtreme serial adapters under the QNX 4.2x platform.
Before beginning the software installation, please be sure to read the product manual for hardware installation/configuration instructions.
To make the instructions easy to follow, all commands that have to be issued on the command line are written in bold text.
NOTE: You must be logged in as root to perform this installation
Preamble: Getting Your System Ready
Before you begin the installation process, you will need to have two applications running so you will be able to read from the DOS diskette. To run these applications, enter the following two commands from the command line:
# Fsys.floppy &
# Dosfsys &
These particular applications may be running by default (these are QNX applications), and therefore you may not have to issue the previous commands. Please see the QNX documentation for more details about Dosfsys and Fsys.floppy
Installing the Driver
- Go to the /usr/bin directory by issuing the command:
# cd /usr/bin
- If you downloaded the *.tar file from the website, you will need to untar it first.
The *.tar file contains Dev.ctiser and Dev16.ctiser files.tar xvf DF-Q4-*.tar
Where XXXX is the version number
- If you are using the driver diskette, issue the following command:
# tar xvf /dos/a/qnx4/df-qnx4.tar
These commands will place both serial drivers into the /usr/bin directory
Command Line Arguments[driver] [options] [port,IRQ] &
Where :[driver]: is the device driver you would like to use (Dev.ctiser or Dev16.ctiser)
[port]: is the port I/O address (in hex)
[IRQ]: is the IRQ value used by the port (in decimal)
Example: Let’s assume that we have a 4 port card installed, with an IRQ value of 10 and a starting I/0 address of 300. If we want to use Connect Tech’s 32-bit driver, you would enter the following:
Dev.ctiser -t8 300,10 308,10 310,10 318,10 &
For more command line options, issue the following commands:
# use Dev.ctiser
Other command line options are:
Defines the initial baud rate (default: 9600)
Size of canonical input buffer (default: 256)
Set DTR on initially (default)
Set DTR off initially
Set options to “edit” mode
Set options to “raw” mode (default)
Enable hardware flow control (default)
Disable hardware flow control
Define high-water mark for input flow control (default: 3/4 point of input buffer)
Size of raw input buffer (default: 2048)
-l number Define low-water mark for input flow control (default: 1/4 point of input buffer)
Disable modem carrier processing (HUP)
Enable modem carrier processing (HUP) (default)
Prefix to register (default: “Ser”)
Size of output buffer (default: 2048)
Enable packet mode
Disable packet mode (default)
Set RTS on initially (default)
Set RTS off initially
Enable ohflow split – CTS only required (default)
Disable ohflow split – CTS and DTR required
16550 RxD FIFO threshold (1, 4, 8 or 14). 0 disables (default: 0)
Enable software flow control (XON/XOFF)
Disable software flow control (default)
Enable hardware shutdown on SIGPWR
Disable hardware shutdown on SIGPWR (default)
RS485 Mode Support
Please read the manual for the Echo/Dflex or Xtreme cards for more information about RS485 settings/modes.
Editing the sysinit File
Before you begin editing the sysinit file, you will have to determine exactly which sysinit file to edit. To do so, you will have to find the current node number of your system. This can be easily done issuing the following command:
# sin info
This will give you the current node number of your system, as well as other information. Once you know the node number of your system, you can determine which sysinit file you need to edit. The node number will actually be the extension of the sysinit file to be edited.
For example, if you found that the current node number of your system is 6, you will have to edit the file sysinit.6. All sysinit files will be located in the /etc/config directory. If you are going to edit the sysinit file to load the driver at boot time, make sure that you add this entry at the end of the sysinit file. It is also recommended that you add a sleep command of 1 as well.
For example, to start the Echo/Dflex driver, add these lines to the sysinit file:
You can also add the ctty commands in the sysinit file, but make sure to place them after the line where you start the serial driver
Testing the Newly Installed Ports
You can perform a simple loopback test with a terminal program (i.e. qtalk) and a loopback connector to ensure that the newly installed ports are functioning.
Connect the loopback connector to the port you want to test and run qtalk. When you type a character, you should see it on the screen, which means that the port is working. If you remove the loopbackconnector, the characters that you type should not appear on the screen.
Assuming that you want to test ser1 with qtalk, run:
qtalk -m /dev/ser1