From: Alexis Berlemont <alexis.berlemont@domain.hid>
To: Stefan Schaal <sschaal@domain.hid>
Cc: Peter Pastor Sampedro <pastorsa@domain.hid>, xenomai@xenomai.org
Subject: Re: [Xenomai-core] Analogy: cmd_bits
Date: Sun, 25 Apr 2010 00:20:30 +0200 [thread overview]
Message-ID: <20100424222030.GA3143@domain.hid> (raw)
In-Reply-To: <0B3F00B1-55F9-4239-A154-E63EAE89072B@usc.edu>
Hi,
Stefan Schaal wrote:
> I tried the new cmd_bits function today to use commands to write to a DIO device on my NI6259 board (thanks a lot, Alexis, for starting this!). Unfortunately, cmd_bits terminates with an error:
>
> root@domain.hid> ./cmd_bits -v -s 2 0xffffffff 0xffffffff
> cmd_bits: device analogy0 opened (fd=0)
> cmd_bits: basic descriptor retrieved
> subdevices count = 14
> read subdevice index = 0
> write subdevice index = 1
> cmd_bits: complex descriptor retrieved
> cmd_bits: selected subdevice index = 2
> cmd_bits: command successfully sent
> cmd_bits: a4l_write failed (err=-2) (count=0)
> (I added a counter in the while loop in cmd_bits.c, and the error occurs immediately after the while loop is entered, i.e., count=0)
>
> root@domain.hid> dmesg
> [63462.716029] Analogy: a4l_write: idle subdevice
I noticed this bug. I am working on it. This test program disclosed an
annoying bug which needs some time to fix: a4l_async_write() returned
"idle subdevice" because the subdevice index is wrongly retrieved.
>
> Any thoughts what may cause this error?
>
> Best wishes,
>
> -Stefan
--
Alexis.
next prev parent reply other threads:[~2010-04-24 22:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-18 16:50 [Xenomai-core] Analogy: cancel ongoing commands when a device is closed Daniele Nicolodi
2010-03-19 0:05 ` Alexis Berlemont
2010-03-29 18:40 ` Daniele Nicolodi
2010-04-05 21:54 ` Alexis Berlemont
2010-04-23 20:39 ` [Xenomai-core] Analogy: cmd_bits Stefan Schaal
2010-04-24 22:20 ` Alexis Berlemont [this message]
2010-06-24 23:04 ` [Xenomai-core] Analogy: cancel ongoing commands when a device is closed 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=20100424222030.GA3143@domain.hid \
--to=alexis.berlemont@domain.hid \
--cc=pastorsa@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.