* [Xenomai-core] cmd_write
@ 2009-12-23 0:06 Stefan Schaal
2009-12-23 0:52 ` Alexis Berlemont
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Schaal @ 2009-12-23 0:06 UTC (permalink / raw)
To: xenomai
Hi,
I have been trying to test the functionality of the analogy_ni_pcimio driver on a NI6259 board. I am using a linux kernel 2.6.29.5 with the xenomai-head (rc5). Doing an a4l_sync_write to an analog output channel works fine. Now I am trying to use the cmd structure for writing to the same analog output channel, as done in the cmd_write progam (whose source I found in <xenomai_root>/src/util/analogy/cmd_write.c .
But I am getting the error as indicated below. Any idea why this happens? My own programming gets the same error.
Thanks a lot!
-Stefan
unix> /usr/xenomai/bin/cmd_write -v -d analogy0 -s 1 -c 0 -S 1
cmd_write: device analogy0 opened (fd=0)
cmd_write: basic descriptor retrieved
subdevices count = 14
read subdevice index = 0
write subdevice index = 1
cmd_write: complex descriptor retrieved
cmd_write: channel 0
ranges count = 3
range's size = 16 (bits)
cmd_write: scan size = 2
cmd_write: size to write = 2
cmd_write: command successfully sent
cmd_write: triggering failed (ret=-32)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] cmd_write
2009-12-23 0:06 [Xenomai-core] cmd_write Stefan Schaal
@ 2009-12-23 0:52 ` Alexis Berlemont
2009-12-23 1:12 ` Stefan Schaal
0 siblings, 1 reply; 4+ messages in thread
From: Alexis Berlemont @ 2009-12-23 0:52 UTC (permalink / raw)
To: Stefan Schaal; +Cc: xenomai
Hi,
Stefan Schaal wrote:
> Hi,
>
> I have been trying to test the functionality of the analogy_ni_pcimio driver on a NI6259 board. I am using a linux kernel 2.6.29.5 with the xenomai-head (rc5). Doing an a4l_sync_write to an analog output channel works fine. Now I am trying to use the cmd structure for writing to the same analog output channel, as done in the cmd_write progam (whose source I found in <xenomai_root>/src/util/analogy/cmd_write.c .
>
> But I am getting the error as indicated below. Any idea why this happens? My own programming gets the same error.
>
> Thanks a lot!
>
> -Stefan
>
>
> unix> /usr/xenomai/bin/cmd_write -v -d analogy0 -s 1 -c 0 -S 1
>
> cmd_write: device analogy0 opened (fd=0)
> cmd_write: basic descriptor retrieved
> subdevices count = 14
> read subdevice index = 0
> write subdevice index = 1
> cmd_write: complex descriptor retrieved
> cmd_write: channel 0
> ranges count = 3
> range's size = 16 (bits)
> cmd_write: scan size = 2
> cmd_write: size to write = 2
> cmd_write: command successfully sent
> cmd_write: triggering failed (ret=-32)
>
Is there any kernel error messages ? Could you give us the last few
lines of `dmesg` ?
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
>
Alexis.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] cmd_write
2009-12-23 0:52 ` Alexis Berlemont
@ 2009-12-23 1:12 ` Stefan Schaal
2009-12-23 8:55 ` Alexis Berlemont
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Schaal @ 2009-12-23 1:12 UTC (permalink / raw)
To: Alexis Berlemont; +Cc: xenomai
dmesg:
Analogy: analogy_ni_pcimio: ni_mio_common: interrupt: b_status=0002 m1_status=80a80000
[15619.322973] Analogy: analogy_ni_pcimio: ni_ao_wait_for_dma_load: timed out waiting for dma load
-Stefan
On Dec 22, 2009, at 16:52, Alexis Berlemont wrote:
> Hi,
>
> Stefan Schaal wrote:
>> Hi,
>> I have been trying to test the functionality of the analogy_ni_pcimio driver on a NI6259 board. I am using a linux kernel 2.6.29.5 with the xenomai-head (rc5). Doing an a4l_sync_write to an analog output channel works fine. Now I am trying to use the cmd structure for writing to the same analog output channel, as done in the cmd_write progam (whose source I found in <xenomai_root>/src/util/analogy/cmd_write.c .
>> But I am getting the error as indicated below. Any idea why this happens? My own programming gets the same error.
>> Thanks a lot!
>> -Stefan
>> unix> /usr/xenomai/bin/cmd_write -v -d analogy0 -s 1 -c 0 -S 1
>> cmd_write: device analogy0 opened (fd=0)
>> cmd_write: basic descriptor retrieved
>> subdevices count = 14
>> read subdevice index = 0
>> write subdevice index = 1
>> cmd_write: complex descriptor retrieved
>> cmd_write: channel 0
>> ranges count = 3
>> range's size = 16 (bits)
>> cmd_write: scan size = 2
>> cmd_write: size to write = 2
>> cmd_write: command successfully sent
>> cmd_write: triggering failed (ret=-32)
> Is there any kernel error messages ? Could you give us the last few lines of `dmesg` ?
>> _______________________________________________
>> Xenomai-core mailing list
>> Xenomai-core@domain.hid
>> https://mail.gna.org/listinfo/xenomai-core
> Alexis.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] cmd_write
2009-12-23 1:12 ` Stefan Schaal
@ 2009-12-23 8:55 ` Alexis Berlemont
0 siblings, 0 replies; 4+ messages in thread
From: Alexis Berlemont @ 2009-12-23 8:55 UTC (permalink / raw)
To: Stefan Schaal; +Cc: xenomai
Hi,
On Wed, Dec 23, 2009 at 2:12 AM, Stefan Schaal <sschaal@domain.hid> wrote:
> dmesg:
>
> Analogy: analogy_ni_pcimio: ni_mio_common: interrupt: b_status=0002 m1_status=80a80000
> [15619.322973] Analogy: analogy_ni_pcimio: ni_ao_wait_for_dma_load: timed out waiting for dma load
This bug hapens randomly on a card to which I have a remote access.
The occurences were scarce, that is the reason why this bug is still
at the tail of my todo list.
On your board, I suppose it happens at every try. I will try to fix
this bug as soon as possible.
>
> -Stefan
>
>
> On Dec 22, 2009, at 16:52, Alexis Berlemont wrote:
>
>> Hi,
>>
>> Stefan Schaal wrote:
>>> Hi,
>>> I have been trying to test the functionality of the analogy_ni_pcimio driver on a NI6259 board. I am using a linux kernel 2.6.29.5 with the xenomai-head (rc5). Doing an a4l_sync_write to an analog output channel works fine. Now I am trying to use the cmd structure for writing to the same analog output channel, as done in the cmd_write progam (whose source I found in <xenomai_root>/src/util/analogy/cmd_write.c .
>>> But I am getting the error as indicated below. Any idea why this happens? My own programming gets the same error.
>>> Thanks a lot!
>>> -Stefan
>>> unix> /usr/xenomai/bin/cmd_write -v -d analogy0 -s 1 -c 0 -S 1
>>> cmd_write: device analogy0 opened (fd=0)
>>> cmd_write: basic descriptor retrieved
>>> subdevices count = 14
>>> read subdevice index = 0
>>> write subdevice index = 1
>>> cmd_write: complex descriptor retrieved
>>> cmd_write: channel 0
>>> ranges count = 3
>>> range's size = 16 (bits)
>>> cmd_write: scan size = 2
>>> cmd_write: size to write = 2
>>> cmd_write: command successfully sent
>>> cmd_write: triggering failed (ret=-32)
>> Is there any kernel error messages ? Could you give us the last few lines of `dmesg` ?
>>> _______________________________________________
>>> Xenomai-core mailing list
>>> Xenomai-core@domain.hid
>>> https://mail.gna.org/listinfo/xenomai-core
>> Alexis.
>>
>
>
>
Alexis.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-12-23 8:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23 0:06 [Xenomai-core] cmd_write Stefan Schaal
2009-12-23 0:52 ` Alexis Berlemont
2009-12-23 1:12 ` Stefan Schaal
2009-12-23 8:55 ` Alexis Berlemont
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.