advantech pci-1711L problem

I'm trying to make comedi work with advantech pci-1711l. I'm using
comedilib-0.7.10 and comedi-0.7.70. I have installed the kernel module and
library successfully. This is the output from dmesg:


comedi: version 0.7.70 - David Schleef <ds_at_schleef.org>
comedi0: adv_pci1710: board=pci1711<6>ACPI: PCI interrupt 0000:01:06.0[A] ->
GSI 19 (level, low) -> IRQ 19
, b:s:f=1:6:0, io=0xe000, irq=11.

demo/info works correctly. However, the simplest data acquisition doesn't
work. When I use the demo/inp program, this is what I get:

wang_at_3beam:~/comedilib-0.7.10/demo$ ./inp
BUG in do_test_for_insn()
BUG in do_test_for_insn()
BUG in do_test_for_insn()
BUG in do_test_for_insn()
/dev/comedi0: Success


I have tracked down the problem to these lines in lib/data.c
(comedi_data_read) :

        ret=ioctl_trigger(it->fd,&cmd);
        if(ret<0) {
                return ret;
        }

Why does ioctl_trigger return -1? The errno wasn't set. How can I make this
card work?

Thanks a lot

Cheuksan Wang

Received on 2005-12-01Z08:22:23