National Instruments PCI-232/4 Instrukcja Użytkownika Strona 1

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Sieciowe moduły nadawczo-odbiorcze National Instruments PCI-232/4. National Instruments PCI-232/4 User's Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 19
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
natinst.com, National Instruments, and NI-Serial are trademarks of National Instruments Corporation. Product and company names
mentioned herein are trademarks or trade names of their respective companies.
322539A-01 © Copyright 1999 National Instruments Corp. All rights reserved. August 1999
NOTE TO USERS
U
SING
PCI S
ERIAL
WITH
L
INUX
This document contains instructions to help you install and configure the
National Instruments serial hardware for Linux. This document includes
information about the PCI-232/2, PCI-232/4, PCI-232/8, PCI-485/2,
PCI-485/4, PCI-485/8, PCI-232/2 Isolated, PCI-232/4 Isolated, PCI-485/2
Isolated, and PCI-485/4 Isolated interfaces.
This document assumes that you are already familiar with Linux.
Contents
Related Documentation...........................................................................2
Contributions...................................................................................2
Gather What You Need to Get Started....................................................2
Quick Start..............................................................................................4
Setup........................................................................................................5
Create Devices.................................................................................5
MAKEDEV Example...............................................................5
Find Interface Information...............................................................5
Assign Serial Driver.........................................................................6
setserial Example......................................................................7
Assign Serial Drivers Using PCI-485.......................................7
Assign Serial Drivers Using PCI Eight-Port Interfaces............7
Enable PCI Interrupt........................................................................7
Configuration..........................................................................................8
View Your Hardware Resources.....................................................8
Enable FIFO Buffers........................................................................8
FIFO Example..........................................................................9
Configure struct termios..................................................................9
Configure PCI-485..................................................................................10
Select Transceiver Mode.................................................................10
rs485 Example..........................................................................10
Lower Baud Rate Selection.............................................................10
Test the Setup..........................................................................................11
Przeglądanie stron 0
1 2 3 4 5 6 ... 18 19

Podsumowanie treści

Strona 1 - Contents

natinst.com™, National Instruments™, and NI-Serial™ are trademarks of National Instruments Corporation. Product and company names mentioned herein are

Strona 2 - Related Documentation

Using PCI Serial with Linux 10 www.natinst.comConfigure PCI-485If you are using a PCI-485 interface, you can select the transceiver mode for each devi

Strona 3

© National Instruments Corporation 11 Using PCI Serial with Linuxone serial port. To change the baud base of your other serial ports, rerun clockspeed

Strona 4 - Quick Start

Using PCI Serial with Linux 12 www.natinst.comTroubleshooting and Common QuestionsError CodesThis section lists possible error codes and solutions.Err

Strona 5 - Find Interface Information

© National Instruments Corporation 13 Using PCI Serial with LinuxCommon QuestionsWhat do I do if intenable does not work immediately or causes a segme

Strona 6 - Assign Serial Driver

Using PCI Serial with Linux 14 www.natinst.comWhat do I do if FIFOtrigger does not work immediately or causes a segmentation fault?Enter the following

Strona 7 - Enable PCI Interrupt

© National Instruments Corporation 15 Using PCI Serial with Linuxlinux# ./rs485 <transmit port number> 0linux# ./rs485 <receive port number&g

Strona 8 - Configuration

Using PCI Serial with Linux 16 www.natinst.comFor more information about using setserial, refer to linux # more /usr/doc/setserial*/README.1. Enter th

Strona 9 - Configure struct termios

© National Instruments Corporation 17 Using PCI Serial with Linux3. Add the following segment to the end of the file (not necessary for Debian distrib

Strona 10 - Configure PCI-485

Using PCI Serial with Linux 18 www.natinst.com# Changed for the two-port PCI-SERIAL interface.#${SETSERIAL} /dev/ttyS4 uart 16550A port 0xdff0 irq 11

Strona 12 - Error Codes

Using PCI Serial with Linux 2 www.natinst.comTroubleshooting and Common Questions ...12Error Codes...

Strona 13 - Common Questions

© National Instruments Corporation 3 Using PCI Serial with Linuxa. General Setup– PCI Support–PCI Quirks– Backward-compatible /proc/pcib. Character De

Strona 14

Using PCI Serial with Linux 4 www.natinst.comQuick StartThis section is for experienced Linux users who are familiar with the lspci and setserial tool

Strona 15 - Assign Driver

© National Instruments Corporation 5 Using PCI Serial with LinuxSetupAfter you install the serial hardware (as shown in your PCI serial getting starte

Strona 16

Using PCI Serial with Linux 6 www.natinst.com00:0a.0 Class ff00: 1093:d140 (rev 01)Flags: medium devsel, IRQ 11Memory at 000dff80 (low-1M, non-prefetc

Strona 17 - Debian distribution):

© National Instruments Corporation 7 Using PCI Serial with Linuxlinux# setserial /dev/ttyS5 uart 16550A port 0xdfe0 irq 11 ^fourportAssign Serial Driv

Strona 18

Using PCI Serial with Linux 8 www.natinst.comlinux PCI-SERIAL# ./intenable <PCI memory address found in lspci>For example, enter the following t

Strona 19

© National Instruments Corporation 9 Using PCI Serial with LinuxThe hardware issues a transmit empty interrupt when the number of characters in the tr

Komentarze do niniejszej Instrukcji

Brak uwag