<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 16: stuck at "EBUS 14: Bus error"</title><link href="https://sourceforge.net/p/linux-gpib/support-requests/16/" rel="alternate"/><link href="https://sourceforge.net/p/linux-gpib/support-requests/16/feed.atom" rel="self"/><id>https://sourceforge.net/p/linux-gpib/support-requests/16/</id><updated>2009-06-08T19:23:26Z</updated><subtitle>Recent changes to 16: stuck at "EBUS 14: Bus error"</subtitle><entry><title>stuck at "EBUS 14: Bus error"</title><link href="https://sourceforge.net/p/linux-gpib/support-requests/16/" rel="alternate"/><published>2009-06-08T19:23:26Z</published><updated>2009-06-08T19:23:26Z</updated><author><name>Johan Reinink</name><uri>https://sourceforge.net/u/johanreinink/</uri></author><id>https://sourceforge.netfff39937a51162d41ede0280f9ac7b9185a2f979</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying to get an ISA gpib card working, but I have no luck so far. I have a NI AT-GPIB 488.2 card, Rev e.2.&lt;br /&gt;
I'm using linux-GPIB 3.2.11. I've configured the gpib.conf like this:&lt;/p&gt;
&lt;p&gt;interface {&lt;br /&gt;
minor = 0       /* board index, minor = 0 uses /dev/gpib0, minor = 1 uses /dev/gpib1, etc. */&lt;br /&gt;
board_type = "ni_nat4882_isa"   /* type of interface board being&lt;br /&gt;
used */&lt;br /&gt;
name = "violet" /* optional name, allows you to get a board descriptor using ibfind() */&lt;br /&gt;
pad = 0 /* primary address of interface             */&lt;br /&gt;
sad = 0 /* secondary address of interface           */&lt;br /&gt;
timeout = T3s   /* timeout for commands */&lt;/p&gt;
&lt;p&gt;eos = 0x0a      /* EOS Byte, 0xa is newline and 0xd is carriage&lt;br /&gt;
return */&lt;br /&gt;
set-reos = yes  /* Terminate read if EOS */&lt;br /&gt;
set-bin = no    /* Compare EOS 8-bit */&lt;br /&gt;
set-xeos = no   /* Assert EOI whenever EOS byte is sent */&lt;br /&gt;
set-eot = yes   /* Assert EOI with last byte on writes */&lt;/p&gt;
&lt;p&gt;/* settings for boards that lack plug-n-play capability */&lt;br /&gt;
base = 0x2c0    /* Base io ADDRESS                  */&lt;br /&gt;
irq  = 3        /* Interrupt request level */&lt;br /&gt;
dma  = 5        /* DMA channel (zero disables)      */&lt;/p&gt;
&lt;p&gt;/* pci_bus and pci_slot can be used to distinguish two pci boards supported by the same driver */&lt;br /&gt;
/*      pci_bus = 0 */&lt;br /&gt;
/*      pci_slot = 7 */&lt;/p&gt;
&lt;p&gt;master = yes    /* interface board is system controller */&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;I've left the DMA on the default 5, the switched for the base IO address are on default to. I changed the IRQ to 3 on the card, the default 11 was already taken.&lt;/p&gt;
&lt;p&gt;When I load the kernel module:&lt;br /&gt;
modprobe tnt4882&lt;br /&gt;
the following output comes in dmesg (nothing in the console:&lt;/p&gt;
&lt;p&gt;Linux-GPIB 3.2.11 Driver&lt;br /&gt;
gpib: registered ni_isa interface&lt;br /&gt;
gpib: registered ni_isa_accel interface&lt;br /&gt;
gpib: registered ni_nat4882_isa interface&lt;br /&gt;
gpib: registered ni_nat4882_isa_accel interface&lt;br /&gt;
gpib: registered ni_nec_isa interface&lt;br /&gt;
gpib: registered ni_nec_isa_accel interface&lt;br /&gt;
gpib: registered ni_pci interface&lt;br /&gt;
gpib: registered ni_pci_accel interface&lt;br /&gt;
Available NI PCI device IDs:&lt;/p&gt;
&lt;p&gt;When I try to configure the board:&lt;/p&gt;
&lt;p&gt;gpib:/home/gpib # gpib_config --minor 0&lt;br /&gt;
failed to bring board online&lt;br /&gt;
failed to configure board&lt;br /&gt;
main: Operation not permitted&lt;/p&gt;
&lt;p&gt;The dmesg output:&lt;br /&gt;
gpib: (debug) request module returned 256&lt;br /&gt;
tnt4882: failed to allocate ioports&lt;br /&gt;
gpib: interface attach failed&lt;/p&gt;
&lt;p&gt;this is where I'm stuck. I'm running openSUSE 10.2, kernel 2.6.18.2-34-default. I suggestion I found somewhere on the net was that the switches on the card where wrong, this cuold be because of a wrong adress. I double checked the switched on the card of the base io address, and there on the default for 0x2c0.&lt;/p&gt;
&lt;p&gt;I also have an HP 27209 (also isa), this one came just as far but with:&lt;br /&gt;
invalid base io address 0xffffffff&lt;br /&gt;
I haven't tried any further, in the config I set: base = 0xdc000 but that didn't came through.&lt;/p&gt;
&lt;p&gt;In the bios I set IRQ 3 and DMA 5 to 'yes' in the section for the legacy ISA cards. There is also a UMB section, but this doesn't cover the base io adress (it does for the HP card). pnpdump doesn't find anything, the card isn't plug and play.&lt;/p&gt;
&lt;p&gt;I'm doing everything as root, so that shouldn't be the problem. I'm not sure of the condition of the board, but I think it is fine.&lt;br /&gt;
So, I tried it the other way:&lt;/p&gt;
&lt;p&gt;gpib_config --iobase 0x2c0 --minor 0&lt;/p&gt;
&lt;p&gt;only gives:&lt;/p&gt;
&lt;p&gt;gpib: (debug) request module returned 256&lt;/p&gt;
&lt;p&gt;in dmesg&lt;/p&gt;
&lt;p&gt;When I now try ibtest:&lt;/p&gt;
&lt;p&gt;gpib:/home/gpib # ibtest&lt;br /&gt;
Do you wish to open a (d)evice or an interface (b)oard?&lt;br /&gt;
(you probably want to open a device): b&lt;br /&gt;
enter name of interface board (or device) you wish to open: violet&lt;br /&gt;
trying to open board named 'violet'&lt;br /&gt;
You can:&lt;br /&gt;
w(a)it for an event&lt;br /&gt;
write (c)ommand bytes to bus (system controller only)&lt;br /&gt;
send (d)evice clear (device only)&lt;br /&gt;
change remote (e)nable line (system controller only)&lt;br /&gt;
(g)o to standby (release ATN line, system controller only)&lt;br /&gt;
send (i)nterface clear (system controller only)&lt;br /&gt;
ta(k)e control (assert ATN line, system controller only)&lt;br /&gt;
get bus (l)ine status (board only)&lt;br /&gt;
go to local (m)ode&lt;br /&gt;
change end (o)f transmission configuration&lt;br /&gt;
(q)uit&lt;br /&gt;
(r)ead string&lt;br /&gt;
perform (s)erial poll (device only)&lt;br /&gt;
change (t)imeout on io operations&lt;br /&gt;
request ser(v)ice (board only)&lt;br /&gt;
(w)rite data string&lt;/p&gt;
&lt;p&gt;that is futher than I got before, so I may be on to something.&lt;br /&gt;
I'm trying to get anything out of a Keithley 192 with the 1923 GPIB option, but I only get bus errors. I haven't got the manual of the 1923 options, which is a bit difficult, but the address is probably 7. But I tried practically all addresses with the same result:&lt;/p&gt;
&lt;p&gt;gpib:/home/gpib # ibtest&lt;br /&gt;
Do you wish to open a (d)evice or an interface (b)oard?&lt;br /&gt;
(you probably want to open a device): d&lt;br /&gt;
enter primary gpib address for device you wish to open [0-30]: 7&lt;br /&gt;
trying to open pad = 7 on /dev/gpib0 ...&lt;br /&gt;
You can:&lt;br /&gt;
w(a)it for an event&lt;br /&gt;
write (c)ommand bytes to bus (system controller only)&lt;br /&gt;
send (d)evice clear (device only)&lt;br /&gt;
change remote (e)nable line (system controller only)&lt;br /&gt;
(g)o to standby (release ATN line, system controller only)&lt;br /&gt;
send (i)nterface clear (system controller only)&lt;br /&gt;
ta(k)e control (assert ATN line, system controller only)&lt;br /&gt;
get bus (l)ine status (board only)&lt;br /&gt;
go to local (m)ode&lt;br /&gt;
change end (o)f transmission configuration&lt;br /&gt;
(q)uit&lt;br /&gt;
(r)ead string&lt;br /&gt;
perform (s)erial poll (device only)&lt;br /&gt;
change (t)imeout on io operations&lt;br /&gt;
request ser(v)ice (board only)&lt;br /&gt;
(w)rite data string&lt;br /&gt;
: w&lt;br /&gt;
enter a string to send to your device: *IDN?&lt;br /&gt;
sending string: *IDN?&lt;/p&gt;
&lt;p&gt;gpib status is:&lt;br /&gt;
ibsta = 0xc100  &amp;lt; ERR TIMO CMPL &amp;gt;&lt;br /&gt;
iberr= 14&lt;br /&gt;
EBUS 14: Bus error&lt;/p&gt;
&lt;p&gt;ibcnt = 0&lt;/p&gt;
&lt;p&gt;I checked the cable, it's fine. I also tried my HP 5334B counter, still the same problem.&lt;br /&gt;
This is where I'm at, sending my counter command like ID should give something in return, but I only get this error. The error is the same for loose cables, but I just have one 3m cable from the card to the counter.&lt;br /&gt;
It's a mistery to my why specifying the base addres in gpib_config gets me futher, but I'm not there yet. Any suggestions on the HP card are also welcome.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>