All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexis Berlemont <berlemont.hauw@domain.hid>
To: Daniele Nicolodi <daniele@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Experimenting with Analogy. Bugs found?
Date: Sat, 13 Mar 2010 01:42:04 +0100	[thread overview]
Message-ID: <4B9ADF5C.5060306@domain.hid> (raw)
In-Reply-To: <4B990EF1.1000400@domain.hid>

Hi,

Daniele Nicolodi wrote:
> Hello. I'm testing Analogy on my x86 system with a NI 6251 ADC board (I
> can test with other NI ADCs if it useful to someone).
> 
> The lack of overview documentation is making my progress slow, but I
> have a couple of acquisition routines working quite well.

Which documentation are talking about ? For me the docs are:
- the Doxygen doc (Xenomai API -> modules -> Analogy API):
http://www.xenomai.org/documentation/xenomai-2.5/html/api/index.html
- the wiki pages in the section "Device Drivers':
http://www.xenomai.org/index.php/Driver_documentation

Are you talking about these ones. Where did you see TRI_WAKE_EOS was not 
supported ?

> 
> So far I have discovered that the TRI_WAKE_EOS flags works quite ok on
> my hardware, despite being indicates as unsupported in the
> documentation. Messing with the drivers I also discovered that
> a4l_mmap() is also working. There is just a bug to iron out (I can
> provide more details on my hacking if someone is interested in helping
> my track down the issue).
> 
> At the moment I'm facing two problems:
> 
> 1. I setup an asynchronous acquisition. I then use a loop to
> a4l_sys_read() the acquired data. When the acquisition command is over,
> as configured with the .stop_src and .stop_arg in the command data
> structure, the a4l_sys_read() returns an ENOENT error. The comedi way of
> signaling the acquisition command end is to return 0, as is done for
> files to signal the end of file. I think this is an API deficiency but I
> haven't looked at how much work is to fix it.
I thought I fixed this bug a few weeks ago. I have to make a pull request.

Author: Alexis Berlemont <alexis.berlemont@domain.hid>  2010-02-06 23:00:54
Committer: Alexis Berlemont <alexis.berlemont@domain.hid>  2010-02-06 
23:55:11
Parent: 1e4f9f3524bfc8ad84f92dfba5cbfc7f07652e7f (analogy: add 
a4l_flush_sync())
Child:  527ed184265ba494c080af940b099bb537c0e9fe (analogy: reinitialize 
events flags before accepting commands)
Branches: analogy, master, remotes/origin/analogy, 
remotes/xenomai-head/master
Follows: v2.5.1
Precedes:

     analogy: read() and poll() return no more -ENOENT when acquisition 
is over


> 
> 2. Looks like it is not possible to setup an endless acquisition. If I
> set .stop_src = TRIG_NONE and .stop_arg = 0, the command submission goes
> fine, but I obtain an ENOENT error at the first a4l_sys_read(). I have
> no idea on where to look to track down this issue.
I will have a look at that soon.

> 
> Thanks. Cheers,

Alexis.


  parent reply	other threads:[~2010-03-13  0:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-11 15:40 [Xenomai-help] Experimenting with Analogy. Bugs found? Daniele Nicolodi
2010-03-12  0:07 ` [Xenomai-core] " Daniele Nicolodi
2010-03-12 16:05   ` Daniele Nicolodi
2010-03-13  0:46     ` Alexis Berlemont
2010-03-13  0:42 ` Alexis Berlemont [this message]
2010-03-15  8:49   ` Daniele Nicolodi
     [not found]   ` <4B9FF458.4050908@domain.hid>
2010-03-18 23:32     ` Alexis Berlemont
2010-03-18 23:37       ` Daniele Nicolodi

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=4B9ADF5C.5060306@domain.hid \
    --to=berlemont.hauw@domain.hid \
    --cc=daniele@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.