National Instruments PCI-232/2 Manuale Utente
© National Instruments Corporation
3
Using PCI Serial with Linux
a.
General Setup
–
PCI Support
–
PCI Quirks
–
Backward-compatible
/proc/pci
b.
Character Devices
–
Standard/generic dumb serial support
–
Extended dumb serial driver options
–
Support more than four serial ports
–
Support for sharing serial interrupts
•
setserial
2.14 or later. To find the version of
setserial
,
enter the
following:
linux# setserial –V
•
PCI Utilities 1.10 or later. You can download PCI Utilities 1.10 from
ftp://metalab.unc.edu/pub/Linux/hardware
•
PCI-SERIAL.tar.gz
. You can download this file from the National
Instruments FTP site at
ftp://ftp.natinst.com/support/
ind_comm/serial/linux/
After you have the file, extract and unzip it by entering the following:
linux#
tar zxvf PCI-SERIAL.tar.gz
The
tar
command extracts and unzips
PCI-SERIAL.tar.gz
and
creates the sub-directory
PCI-SERIAL
. Enter the following to make
sure all necessary files are included:
linux#
cd PCI-SERIAL
linux PCI-SERIAL#
ls
FIFOtrigger
intenable
serialtest
FIFOtrigger_pci.c
interrupt_enable.c serialtest.c
Clock_speed.c
rs485
termios_program.c
clockspeed
rs485.c
•
Configure your BIOS to include a Plug and Play aware OS.
•
You need superuser privileges to do most of the steps and program
segments in this document.
segments in this document.