On 2013/05/08 08:08 PM, wally_666 wrote:
> Just to bring some closure, the DAQCard-1200 appears to work with
> comdedi_data_read/write() on 13.04 but actually doesn't. I managed to
> find the cable and a break out terminal strip and loopback wired the D/A
> to the A/D and some DO to DI. Nothing reasonable is happening on the
> I/O pins running on Ubuntu 13.04.
>
> Moving the card to the 10.04 laptop and everything actually works as
> verified by the loopback readings and a voltmeter.
Looks like something may have broken in the last 4 years.
There have been various changes to the way the PCMCIA device is
configured. For example this patch:
<
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/staging/comedi/drivers/ni_labpc_cs.c?id=55a19b39acb8888af8e9cfe5b762d03c52fdb48c>
shows that some extra magic was used in the setting of
'p_dev->io.Attributes1' so that it depends on 'io->flags', whereas the
earlier 'link->io.Attributes1' was previously fixed to the value
'IO_DATA_PATH_WIDTH_8'.
Something small like that could easily be the cause of the problem.
It's all changed again more than once since that patch, but still
determines the data width automatically instead of fixing it to width 8.
The above might not be the problem. I don't know much about PCMCIA
cards, but would it be possible for you to post the output from
`pccardctl info` to see if it provides any clues?
> Note that both systems report "Comedi Version Code" 0x00074c as
> returned by comedi_get_version_code()
Yes, that was the version from the last official, out-of-tree comedi
release and it's never been changed.
> Also note that building, but not installing) the comedilib-0.10.1 on
> Ubuntu 10.04 results in a demo/cmd program that seems to work and a
> testing/comedi_test that also appears to run correctly.
>
> I'd be willing to test any fixes that might appear for Ubuntu 13.04
>
> I guess one extra complication is my 12.04 & 13.04 systems are 64-bit,
> the 10.04 laptop is 32-bit.
64-bit shouldn't be a problem, but you never know!
>
> --wally.
>
>
> On Wednesday, May 8, 2013 10:41:56 AM UTC-5, wally_666 wrote:
>
> Followup, I retried the DAQCard-1200 on 13.04 and using my timing
> test program and it seems to work OK, but running the comedi_test
> program in the comedilib/testing directory locks up when doing:
> testing cmd_read_fast_1chan. Also the "cmd" example in the demo
> directory locks up after printing the start time.
>
> I don't have the 8.1 comedilib source handy to try on the 10.04
> system, but I'll try to get to it eventually in case anyone cares.
>
> The DAQCard-700s will head to the boneyard, the DAQCard-1200s might
> still have some utility since I don't use comedi commands in my code.
If you like, you could lend them to me and I can try and get them
working. I don't know how practical that would be for you though.