All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexis Berlemont <berlemont.hauw@domain.hid>
To: Stefan Schaal <sschaal@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] cmd_write
Date: Wed, 23 Dec 2009 01:52:17 +0100	[thread overview]
Message-ID: <4B3169C1.7020106@domain.hid> (raw)
In-Reply-To: <36718863-7B28-4FD1-8FE4-1F710EB9E7E4@domain.hid>

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.


  reply	other threads:[~2009-12-23  0:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-23  0:06 [Xenomai-core] cmd_write Stefan Schaal
2009-12-23  0:52 ` Alexis Berlemont [this message]
2009-12-23  1:12   ` Stefan Schaal
2009-12-23  8:55     ` Alexis Berlemont

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B3169C1.7020106@domain.hid \
    --to=berlemont.hauw@domain.hid \
    --cc=sschaal@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.