- From: Bill Jennings` <comedi_at_bigriverwireless.net>
- Date: Fri, 13 May 2005 10:46:37 -0700
On Fri, 2005-05-13 at 10:17 -0700, Bill Jennings` wrote: <snip> > But... > > My application is for linux. I have two machines that give similar > results, both run Debian Sarge, one with a stock Debian 2.4.27 kernel > and one with a locally compiled 2.6.8 kernel. I have comedi kenrel > modules 0.7 installed, and libcomedi 0.7.22 installed. When I load the > driver modules: comedi.o and either pci1760.o or adv_pci_dio.o and run: > comedi_config /dev/comedi0 pci1760 > it appears to work. > > But when I run my test program, or the di_insn or do_insn programs, the > driver logs the following: > > kernel: comedi0: adv_pci_dio: PCI-1760 mailbox request timeout! > > and none of the operations work. They all return success, but the led's > never come on when I do an output, and I always read 0xF7 when I do an > input. I got a clue: I noticed that in the kernel log file the driver initialization was indicating an iobase of 0. I fiddled around with adv_pci_dio.c and found that if I change the "PCI Region" for a 1760 to 0 instead of 2, it gets a base address of 0xA000, the same as window. Now, the output function works some of the time, even when it logs a "mailbox request timeout", but the input still never works. I fiddled with the timing, added delays between the outb() calls, increased the timeout from 250us to 25000us, and increased the retry count from 3 to 10. No change in the symptoms. Has anybody ever gotten an Advantech 1760 to work with comedi? I also noticed, in the archives, that this exact problem seems to have been reported twice in the last year, but no resolution is mentions (almost no replies at all). Again, it works fine under windows, so the cards are OK. There is something different between the comedi drivers and the windows drivers, and I'm not a windows hacker such that I could reverse engineer the algorithm differences. Any help is greatly appreciated. Sincerely Bill Jennings <comedi_at_bigriverwireless.net>
Received on 2005-05-13Z16:46:37