Can't get AT-GPIB + Linux GPIB to work!

Can't get AT-GPIB + Linux GPIB to work!

Post by Tim Holme » Thu, 28 May 1998 04:00:00



I tried to post this to the linux-gpib mailing list, but no response,
so here goes...

I have installed a National Instruments board in a Linux box.  RH4.1.

The driver/module loads OK, but the interrupt does not show up in
/proc/interrupt.  Same for dma.  I have tried at irq 10 and 7, both of
which are free on the machine.

I am including a bunch of debugging stuff below in case anybody feels
brave.

Thanks in advance,

Tim Holmes

dmesg corresponds to the board config.  new National Instruments AT-GPIB
(non-pnp) when I try to send commands, I get ENEB or ENOL gpib find gpib0
returns 0 the board does not show up in /proc/interrupts the board does
not show up in /proc/dma devices shows gpib at 31

******************************** wish w/ libgpib.so loaded:

% gpib sic gpib0 ibsic:  IBSTAT = < ERR | CMPL> IBERR = ENEB <No Gpib
Board>

***************************************** dmesg:

Linux-GPIB Driver Board=atgpib -- Major=31 Base=0x2c0 Irq=10 DMA=5 enabled
-- DebugMask = 0x0 -- Kernel Release 2.0.29 -- using dynamic buffer
allocation

*********************************************8 IBCHK

IBCHK Software Diagnostic Program Version 1.0 (c) C.Schroeter ..
---------------------------------------------------------------

**First checking your config file....  OK **Check Errlog...  OK **Next
Check The Driver.....  OK **Check if Board present....  OK **Checking some
Bus Functions...  OK

*********************************************8 ibtest returns:

bfind err ibsta=0x8128 < ERR CMPL CIC TACS > iberr= 2 ENOL <No Listener>
ibcnt= 1 ibfind err ibsta=0x8128 < ERR CMPL CIC TACS > iberr= 2 ENOL <No
Listener> ibcnt= 1

**************************

/etc/gpib.conf

/***********************************************************************
 *
 * GPIB.CONF IEEE488 library config file
 * (c) 1994 by C.Schroeter
 *
 * Syntax:
 *
 * section { option , .... }
 *
 * config { ... } starts new board section
 * device {...} device configuration
 *
 *
 *
 *
 *
 ***********************************************************************/

/* This Section Configures the configurable driver characteristics
 * as board address, interrupt level and driver specific stuff
 */

config { /* describes the controller characteristics */
        pad=0 /* primary adress of controller */
        sad=0 /* secondary adress of controller */
        timeout=3s /* timeout for commands */

        eos=0x0a /* Default EOS Byte */
        set-reos yes /* Terminate read if EOS */
        set-xeos no /* Send EOS with EOI write */
        set-bin no /* Compare EOS 8-bit */

/* set by configuration */

        base = 0x2c0 /* Base ADRESS for PCIIa */
        irq = 10
        dma = 5 /* DMA channel */

        dma-bufsize = 0 /* pre allocated buffer size 0=none */
        debug = 0 /* debug mode (verbosity 0=off)  */

        set-ifc yes /* send ifc on ibfind */

        errlog = /dev/console

Quote:}

/* now the device section defines the device characteristics for each
device
 * a verbose name _must_ be given as first entry.
 */

/* This entry refers to the controller itself, every read/write operation
to thi s
 * device is treated as Board-level Function (without implicit addressing)
 * This device is a 'virtual device', that means commands are perfoned on
the
 * whole bus.
 */

device { name = gpib0 /* name of the bus should be compilant
                        * to the usual conventions gpib0,gpib1...
                        * please don't use this name for other devices */
         pad=0 sad=0

         /*
          * This line denotes the device as busmaster
          * realize that only one device per board can be the busmaster
          */
         master

         /* This Line specifies which clients can access the GPIB-Server
          * entrys are separated by colons, wildcards can be specified
          * to match more than one host
          * ( don't forget the last colon )
          */
        network *.mydomain:myhost.mydomain:localhost:  }

/* Normal Devices */

device {
        name = voltmeter /* device mnemonic
    */
        pad=7 /* The Primary Address
    */
        sad=0 /* Secondary Address
    */

        init-string = D1HelloUser /* send some init chars
    */
        init-flags = LLO,DCL /* set flags
    */

        eos=0x0d /* EOS Byte
    */
        set-reos yes /* Terminate read if EOS
    */
        set-xeos no /* Send EOS with EOI write
    */
        set-bin no /* Compare EOS 8-bit
    */ }

device {
        name = scope
        pad=8
        sad=0 }

device {
        name = bk
        pad=10
        sad=0 }

***************************************************