Re:comedi_command - analog input - only runs once

I've tried setting cmd.data to some buffer, and cmd.data_len to sizeof(comedi_t) * BUFFER_SIZE, but it has the same effect (interrupt is only generated once).  Actually, it seems that data and data_len are ignored, which is consistent with an earlier post which said that due to driver implementation complexities, data and data_len are no longer used.
 
Tim

"AlbertoSechi_at_libero.it" <AlbertoSechi_at_libero.it> wrote:
Hi, try with cmd.data_len = sizeof(sampl_t) . Anyway the best solution is
managing data directly from buffer if you want to write a kernel module.
Bye
Alberto.

> I am trying to run a slightly modified version of the
> it.c example, which I have copied below. In another
> modified version (not included), I read data from the
> buffer, and it seemed to be correct data. However, in
> both cases, the callback function is only called once.
> There are no error messages in the kernel log. The
> kernel log is shown below. Any idea why it doesn't
> continue to run? Thanks,
>
> Tim Lee
>
> System details:
> kernel: linux-2.4.24-adeos
> RTAI: v3.0r2
> comedi: a CVS snapshot soon after 0.7.68
> 
> Jun 21 23:10:27 Chivo kernel: Comedi real-time example
> #1
> Jun 21 23:10:27 Chivo kernel: Tapping: comedi_lock: 0
> Jun 21 23:10:27 Chivo kernel: command test returned 0
> Jun 21 23:10:27 Chivo kernel: command test returned 0
> Jun 21 23:10:27 Chivo kernel: command returned 0
> Jun 21 23:10:28 Chivo kernel: who's yer daddy? 0
>

		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Received on 2004-06-22Z13:42:53