[Xenomai-core] Ipipe xenomai and LTTng

2006-01-22 Thread Alexis Berlemont
Hi, The patch available at http://download.gna.org/adeos/patches/v2.6/i386/combo/adeos-ipipe-2.6.14-i386-1.1-00-lttng-0.5.0a.patch is a "Ipipe + LTTng" patch for the 2.6.14.5-i386 kernel release. In order to trace LTTng events in Xenomai, the patch "xenomai-2.1-rc1-lttng-05.patch.bz2" is nece

[Xenomai-core] Re: COMEDI over RTDM (was: rtdm_event_timedwait hang-up)

2006-03-21 Thread Alexis Berlemont
Hi, > > But there are plenty of things I am not happy with : > > -> the original comedilib version is not really well suited for rtdm. In > > this library for many reasons; for example, you can find calls to > > malloc/free > > Oops, not so nice. > > > functions. If I stick to the original impleme

[Xenomai-core] Ipipe xenomai and LTTng

2006-01-23 Thread Alexis Berlemont
Hi, The patch available at http://download.gna.org/adeos/patches/v2.6/i386/combo/adeos-ipipe-2.6.14-i386-1.1-00-lttng-0.5.0a.patch is a "Ipipe + LTTng" patch for the 2.6.14.5-i386 kernel release. In order to trace LTTng events in Xenomai, the patch "xenomai-2.1-rc1-lttng-05.patch.bz2" is nece

[Xenomai-core] Re: LTTng intergration roadmap

2006-05-15 Thread Alexis Berlemont
Hi, > the need for a high-level tracing tool constantly increases with the > growing code base of Xenomai applications. > > Yesterday I started a short discussion with Alexis about the status of > his LTTng combo patch, the Xenomai integration, and the advances of > LTTng itself. But there are cer

[Xenomai-core] Re: Comedi4xenomai (Was: Re: [Orocos-Dev] [Bug 115] [Project] Move device drivers to orocos-components)

2006-08-01 Thread Alexis Berlemont
Hi, > > > This could change fast with e.g. comedi4xenomai in the pipeline... > > > > Do you have more information about this? > > [putting Alexis Berlemont in cc:, as he is probably the one who can > answer this question] > I haven't seen anything on the x

Re: [Xenomai-core] [PATCH] comedi: Fix include for do_div

2008-07-07 Thread Alexis Berlemont
Hi, Sorry for answering so lately, I was not at home the last four days. > Required with 2.6.26 where there is no more calc64. And asm/div64.h is > what you actually want. Thanks. > PS: Kernel-style reformatting would be nice - one day... :-> Today or tomorrow, that sould be done. Alexis. _

[Xenomai-core] skin RTDM in user mode

2008-09-02 Thread Alexis Berlemont
Hi, In ksrc/skins/rtdm/API.CHANGES text file, the TODO list indicates that someone may be working on the development of the user-side RTDM skin (for user-space drivers). Is anyone working on that ? I was wondering what was to be done: - Is it just the porting of the kernel RTDM API (rtdm_task

Re: [Xenomai-core] skin RTDM in user mode

2008-09-02 Thread Alexis Berlemont
Hi, > > - Or do you expect a more complete solution like fuse or fusd ? > > There are a few tricky parts when you want a seamless driver API, > allowing to test or even use RTDM drivers in userspace: > > - IRQ handling (means: forwarding, acknowledging, sharing). >You won't be able to achieve

Re: [Xenomai-core] Problems using rt_intr_wait on PowerPC

2008-09-29 Thread Alexis Berlemont
Hi, > Based on the user_irq.c I created a simple test program for my PPC405GPr > board. > > We have a FPGA which generates an interrupt every millisecond. > It seems to work as simple test (fire it once and assure that it > sets the interrupt-bit). > > When I connect it to the irq_server however (

Re: [Xenomai-core] application porting to Comedi4RTDM

2008-10-16 Thread Alexis Berlemont
Hi, Sorry for answering so late (not at home, no access to my private mails, not even able to answer your mail properly). Even if the Comedi API has been slightly modified, the Comedi principles remain the same. Consequently, I think you will be able to port your application to Comedi4RTDM. Whic

Re: [Xenomai-core] Comedi buffer management.

2008-10-20 Thread Alexis Berlemont
Hi Gilles, Sorry for answering so late. I was unable to regularly check my private mails the last week; I missed yours. > I commited in trunk a fix of Xenomai heap management for the highmem > case. What the patch does is essentially replacing __va_to_kva (which > does not work correctly with hi

[Xenomai-core] Unstable driver integration policy

2008-11-18 Thread Alexis Berlemont
Hi, I would like to find a way to populate the Comedi drivers set. However, I am stuck by a simple fact: I have no acquisition board to validate a least driver... Starting from here, I am trying to find out what should be the proper method to provide non-validated drivers to anybody inclined t

Re: [Xenomai-core] Unstable driver integration policy

2008-11-23 Thread Alexis Berlemont
Hi Philippe, Hi Jan, Many thanks for your answers. > > I would like to find a way to populate the Comedi drivers set. > > > > However, I am stuck by a simple fact: I have no acquisition board to > > validate a least driver... > > > > Starting from here, I am trying to find out what should be the

[Xenomai-core] [PATCH 2/2] RTDM in user mode

2008-12-30 Thread Alexis Berlemont
user-api/test01_task.c (revision 0) @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2005 Joerg Langenberg . + * Copyright (C) 2008 Alexis Berlemont . + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by

[Xenomai-core] [PATCH 1/2] RTDM in user mode

2008-12-30 Thread Alexis Berlemont
/device.c (revision 0) @@ -0,0 +1,569 @@ +/* + * Copyright (C) 2005 Joerg Langenberg . + * Copyright (C) 2008 Alexis Berlemont . + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free

Re: [Xenomai-core] [PATCH 0/2] RTDM in user mode

2009-01-04 Thread Alexis Berlemont
Hi, > I already created some local branch with your patches and compiled them. > Only minor issues visible: please check for pointer<->int conversion > warnings on 64-bit - and please add spaces after if, while, for etc. :). > I will look into this in more details soon. OK. > Did you already tri

Re: [Xenomai-core] Comedi drivers in Xenomai porting/integration status ?

2009-02-16 Thread Alexis Berlemont
Hi, > Hello all! I would like to know what is the current status of the Comedi > port to Xenomai. > > Should all the specific Comedi drivers (ni_pcimio, ni_mite) be available > for testing (by me or someone with a supported DAQ card) and (if ok) for > futher integration ? I am still working on th

Re: [Xenomai-core] Comedi drivers in Xenomai porting/integration status ?

2009-02-17 Thread Alexis Berlemont
Hi, Peter Soetens writes: > On Tuesday 17 February 2009 10:41:10 Jan Kiszka wrote: >> Peter Soetens wrote: >> > These are the facts we observed: >> > >> > * The Xenomai/Comedi port breaks the complete Comedi API, user space >> > *and* kernel space. (We thought/assumed that only the user space >

Re: [Xenomai-core] Comedi drivers in Xenomai porting/integration status ?

2009-02-18 Thread Alexis Berlemont
Hi, >> That was the reason why, I was really suprised to find Comedi >> integrated into the mainline kernel. What strikes me more is that >> Comedi seems to be left as is. Do you think, it will be cleaned up or >> reworked ? > > Without rework Comedi will not make into mainline (I wouldn't call t

[Xenomai-core] Pull request for head

2009-09-15 Thread Alexis Berlemont
The following changes since commit 13d66eb4c8f1648614095d43dd529a3c98fc5278: Philippe Gerum (1): x86: upgrade I-pipe support to 2.6.31-x86-2.4-05 are available in the git repository at: ssh+git://g...@xenomai.org/xenomai-abe.git comedi Alexis Berlemont (46): Replace

[Xenomai-core] Comedi/RTDM becomes Analogy.

2009-09-24 Thread Alexis Berlemont
Hi, About two years ago, I started an effort aimed at porting the Comedi framework over RTDM. The goal was to provide, for the acquisition applications, strict determinism from kernel to user space. As the work progressed, it seemed to me that such effort should be an opportunity to improve the

[Xenomai-core] Some thoughts on Analogy "kernel side" framework

2009-10-07 Thread Alexis Berlemont
Hi, The last week, I have been working on the global architecture of the analogy project. I tried to sum-up the main characteristics of Comedi. That was a start to figure out what shape analogy will get. Here are some notes on that subject: 1) Comedi drivers are not common Linux drivers. In t

Re: [Xenomai-core] Some thoughts on Analogy "kernel side" framework

2009-10-08 Thread Alexis Berlemont
Hi, On Thu, Oct 8, 2009 at 7:37 PM, Philippe Gerum wrote: > On Thu, 2009-10-08 at 01:26 +0200, Alexis Berlemont wrote: >> Hi, >> >> The last week, I have been working on the global architecture of the analogy >> project. >> >> I tried to sum-up the mai

Re: [Xenomai-core] Some thoughts on Analogy "kernel side" framework

2009-10-11 Thread Alexis Berlemont
On Friday 09 October 2009 10:04:07 you wrote: > On Fri, 2009-10-09 at 00:00 +0200, Alexis Berlemont wrote: > > If I understand well, I have gone too far too soon; the idea should be > > to keep the current framework as it is for 2.5. > > > > However, my former mail was

Re: [Xenomai-core] Some thoughts on Analogy "kernel side" framework

2009-10-12 Thread Alexis Berlemont
On Monday 12 October 2009 11:30:11 you wrote: > On Mon, 2009-10-12 at 00:51 +0200, Alexis Berlemont wrote: > > On Friday 09 October 2009 10:04:07 you wrote: > > > On Fri, 2009-10-09 at 00:00 +0200, Alexis Berlemont wrote: > > > > If I understand well, I have gone too

[Xenomai-core] [PULL REQUEST] analogy renaming + many bugfixes

2009-10-19 Thread Alexis Berlemont
The following changes since commit 8c847c4bf43fa65c3ec541850ecdb7e96113e94f: Philippe Gerum (1): powerpc: fix commit number for 2.6.30.3-DENX are available in the git repository at: ssh+git://g...@xenomai.org/xenomai-abe.git analogy Alexis Berlemont (18): Remove useless

Re: [Xenomai-core] Some thoughts on Analogy "kernel side" framework

2009-10-20 Thread Alexis Berlemont
On Saturday 17 October 2009 19:55:41 Philippe Gerum wrote: > On Mon, 2009-10-12 at 23:52 +0200, Alexis Berlemont wrote: > > On Monday 12 October 2009 11:30:11 you wrote: > > > On Mon, 2009-10-12 at 00:51 +0200, Alexis Berlemont wrote: > > > > On Friday 09 O

Re: [Xenomai-core] [PULL REQUEST] analogy renaming + many bugfixes

2009-10-25 Thread Alexis Berlemont
Hi, On Sunday 25 October 2009 12:08:58 Philippe Gerum wrote: > On Mon, 2009-10-19 at 23:18 +0200, Alexis Berlemont wrote: > > The following changes since commit > > 8c847c4bf43fa65c3ec541850ecdb7e96113e94f: Philippe Gerum (1): > > powerpc: fix commit number for 2.6.

[Xenomai-core] [PULL REQUEST] Analogy: many bugfixes

2009-10-27 Thread Alexis Berlemont
Hi Philippe, Sorry, I forgot the "prefix" rule for the short log for many commits. I will take more care starting from now. Alexis. The following changes since commit 39614e10be1d7fc5344b56646b8801cbf8756e08: Alexis Berlemont (1): Add error messages for the IOCTL interfa

[Xenomai-core] [PULL REQUEST] analogy: critical bugfixes for the NI PCIMIO driver

2009-11-03 Thread Alexis Berlemont
commit 255cf6b2bf8dca9dad05a1c169dcecf6e742955e: Alexis Berlemont (1): analogy: force NI TIO / MIO selections when NI PCIMIO is set are available in the git repository at: ssh+git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (4): analogy: force NI MITE selection when

[Xenomai-core] [PULL REQUEST] analogy: many bugfixes, doxygen updates, parport driver, insn_write

2009-11-20 Thread Alexis Berlemont
The following changes since commit e6e21a3e183f145dd1c583e60fbecda982e00c70: Alexis Berlemont (1): analogy: improve ioctl error handling are available in the git repository at: ssh+git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (21): analogy: fix a bug in the

[Xenomai-core] [PULL REQUEST] analogy: doxygen errors descriptions, headers sources fixes

2009-11-22 Thread Alexis Berlemont
The following changes since commit 76456b88f8fe8cf9885996f2c042df7d4b266df0: Alexis Berlemont (1): analogy: add error messages in instruction handling are available in the git repository at: ssh+git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (4): analogy: add

Re: [Xenomai-core] Build tests.

2009-12-14 Thread Alexis Berlemont
Hi Gilles, Gilles Chanteperdrix wrote: > Hi, > > I am working on automated build tests of several configurations of > Xenomai head. While running them, I found a few issues, and would need > acks, since it is in parts others maintain. > > Alex: https://mail.gna.org/public/xenomai-git/2009-12/msg

Re: [Xenomai-core] digital I/O with analgoy using ni_pcmcia

2009-12-21 Thread Alexis Berlemont
Hi, Stefan Schaal wrote: > Hi everybody, > > we have an NI6259 board working xenomai 2.5, using the analogy APIs. > Read/write to analog channels is quite straightforward and can be > inferred from the cmd_read and cmd_write source code. Now I would also > like to use the digital I/O of this boar

Re: [Xenomai-core] cmd_write

2009-12-22 Thread Alexis Berlemont
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

Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-22 Thread Alexis Berlemont
Hi Gilles, Gilles Chanteperdrix wrote: > Hi, > > Since I started talking about it, I have run build tests fixing a few > things here and there. The current status is this (still at the same > place: http://sisyphus.hd.free.fr/~gilles/bx): > > * analogy: I have tried to disable some parts of anal

Re: [Xenomai-core] cmd_write

2009-12-23 Thread Alexis Berlemont
pens 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,

[Xenomai-core] [PULL REQUEST] analogy: build fixes and many bug fixes.

2009-12-25 Thread Alexis Berlemont
The following changes since commit e305035eb6adc4220fe179477f3e300ad944f85c: Alexis Berlemont (1): analogy: fix bad error handling path in test programs are available in the git repository at: ssh+git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (22): analogy

[Xenomai-core] [PULL REQUEST] analogy: one forgotten option dependency

2009-12-25 Thread Alexis Berlemont
The following changes since commit eecb6ee65712a8b412be455344f84fc13ced555b: Alexis Berlemont (1): analogy: make the MITE option depends on the PCI option are available in the git repository at: ssh+git://git.xenomai.org/xenomai-abe.git analogy Alexis

Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-25 Thread Alexis Berlemont
Hi Gilles, Gilles Chanteperdrix wrote: > Alexis Berlemont wrote: >> Hi Gilles, >> >> Gilles Chanteperdrix wrote: >>> Hi, >>> >>> Since I started talking about it, I have run build tests fixing a few >>> things here and there. The

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2009-12-28 Thread Alexis Berlemont
Hi Simon, Simon Boulay wrote: > Hi, > > Here is a patch which adds the support of the Sensoray Model 526 board > to analogy. Great ! I had a look at the code, that is fine for me. I just have few remarks: - some "printk" were left commented in the original comedi driver, you correctly transla

[Xenomai-core] [PULL REQUEST] analogy: various fixes and debug traces

2009-12-28 Thread Alexis Berlemont
://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (5): analogy: fix a bug in the configuration of the debug trace system analogy: add a debug level threshold for drivers analogy: add debug traces in the attach procedure of the NI PCIMIO driver analogy: add some

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2010-01-04 Thread Alexis Berlemont
fixed two months ago: commit 01bcfd898555425e96350b306155cba429a65539 Author: Alexis Berlemont Date: Sun Nov 8 02:10:20 2009 +0100 analogy: fix a bug in the attach procedure The options to be sent to the driver at attach time were badly handled if the values were hexadecimal-based. >> Did you

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2010-01-07 Thread Alexis Berlemont
Hi, Alessio Margan @ IIT wrote: > Hi, > > I've got a doubt about s526 driver on reading analog input. > > I read analog data in this way > > sampl_t data; > a4l_insn_t insn_tab = { > .type = A4L_INSN_READ, > .idx_subd = idx_subd, > .chan_desc = CHAN(idx_chan), > .data_size = sizeof(data), > .da

Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver

2010-01-11 Thread Alexis Berlemont
Hi, On Mon, Jan 11, 2010 at 5:08 PM, Alessio Margan @ IIT wrote: > Hi, > > I try to configure sensoray counters to generate PWM signal > > #define SUBD_CNT 0 > #define SUBD_AI 1 > #define SUBD_AO 2 > #define SUBD_DIO 3 > > insn.type = A4L_INSN_CONFIG; > insn.idx_subd = SUBD_COUNTER; > insn.chan_d

[Xenomai-core] [PULL REQUEST] analogy: sensoray s526 and bug fixes

2010-01-11 Thread Alexis Berlemont
: rename s526 driver (analogy_s526) Alexis Berlemont (3): analogy: fix the tests of the subdevice flags in the basic checks analogy: do not check the range if no range descriptor is found analogy: fix an ugly access in NI MIO driver Simon Boulay (8): analogy: add s526

[Xenomai-core] [PULL REQUEST] analogy: bug fixes

2010-01-14 Thread Alexis Berlemont
The following changes since commit 963fc21168ca6b29ab7c7ea95d56a393c475bdce: Gilles Chanteperdrix (1): bootstrap are available in the git repository at: git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (4): analogy: [NI mite] initialize channels' s

[Xenomai-core] [PULL REQUEST] analogy: bug fixes + insn_bits

2010-02-06 Thread Alexis Berlemont
The following changes since commit 4a5b93dabf66529e665c8f8422902347d4f6158f: Jan Kiszka (1): RTDM: Split up application and driver debugging are available in the git repository at: git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (19): analogy: fix a

Re: [Xenomai-core] Analogy DIO speed

2010-02-18 Thread Alexis Berlemont
Hi, Stefan Schaal wrote: > Thanks to Alexis's Analogy development, digital I/O is possible with Xenomai > using National Instrument DAQs. While the basic DIO functionality works in > the most current xenomai-head, I am wondering how to achieve maximal I/O > speed with the 32 bit digital I/O su

Re: [Xenomai-core] Analogy DIO speed

2010-02-23 Thread Alexis Berlemont
Hi, Stefan Schaal wrote: > Hi Alexis, > > On Feb 18, 2010, at 14:34, Alexis Berlemont wrote: > >> I have some problems with >>> implementing commands on my NI6259 so far. >> Could you remind me what was the problem ? > > See the print-outs below for the p

Re: [Xenomai-core] Analogy DIO speed

2010-02-28 Thread Alexis Berlemont
Alexis Berlemont wrote: > Hi, > > Stefan Schaal wrote: >> Hi Alexis, >> >> On Feb 18, 2010, at 14:34, Alexis Berlemont wrote: >> >>> I have some problems with >>>> implementing commands on my NI6259 so far. >>> Could you remind m

Re: [Xenomai-core] Analogy DIO speed

2010-03-03 Thread Alexis Berlemont
> > > Is there just missing support for the DIO subdevices using commands? > > Best wishes, > > -Stefan > > > ps.: feel free to use our machine for debugging -- it now has the latest > version of your software installed with linux kernel 2.6.29.5. > > >

Re: [Xenomai-core] Analogy DIO speed

2010-03-04 Thread Alexis Berlemont
rking to enable commands for > DIO subdevices? Commands are possible with DIO subdevices. The main problem is my test application which does not handle all the cases. > > Thanks a lot! > > -Stefan > > > On Mar 3, 2010, at 15:58, Alexis Berlemont wrote: > >> Hi Stefan, &

Re: [Xenomai-core] [Xenomai-help] Experimenting with Analogy. Bugs found?

2010-03-12 Thread Alexis Berlemont
Hi, Daniele Nicolodi wrote: > Daniele Nicolodi wrote: >>> 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 wh

Re: [Xenomai-core] Analogy: cancel ongoing commands when a device is closed

2010-03-18 Thread Alexis Berlemont
Daniele Nicolodi wrote: > After fixing analogy to permit continuous acquisition, I discovered that > ongoing commands are not canceled when a device is closed (I obtain a > DMA buffer owerwrite warning in the kernel log when I abruptly terminate > my acquisition program). > > I think this is quit

Re: [Xenomai-core] Analogy a4l_ioctl_bufinfo() bug?

2010-03-18 Thread Alexis Berlemont
Daniele Nicolodi wrote: > Daniele Nicolodi wrote: >> Hello. As reported in the xenomai-help mailing list I'm investigating >> why a4l_mmap() is not supported for the ni pcimio driver. Hacking on the >> driver I discovered that, apparently, the only problem in supporting >> mmap of the device buffer

[Xenomai-core] [PULL REQUEST] analogy: bug fixes

2010-03-19 Thread Alexis Berlemont
The following changes since commit 8cfc1103fe1cf9e700698e8230baf562ffb5cf06: Gilles Chanteperdrix (1): x86 syscalls: make __xn_get_eip a macro are available in the git repository at: git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (16): analogy: in insn_read

Re: [Xenomai-core] [PULL REQUEST] analogy: bug fixes

2010-03-21 Thread Alexis Berlemont
Daniele Nicolodi wrote: > Alexis Berlemont wrote: > > The following changes since commit 8cfc1103fe1cf9e700698e8230baf562ffb5cf06: > >Gilles Chanteperdrix (1): > > x86 syscalls: make __xn_get_eip a macro > > > > are available in the g

Re: [Xenomai-core] [PULL REQUEST] analogy: bug fixes

2010-03-24 Thread Alexis Berlemont
Hi, Daniele Nicolodi wrote: > Alexis Berlemont wrote: > > Daniele Nicolodi wrote: > >> Alexis Berlemont wrote: > >>> The following changes since commit > >>> 8cfc1103fe1cf9e700698e8230baf562ffb5cf06: > >>>Gilles Chanteperdrix (1):

Re: [Xenomai-core] [PULL REQUEST] analogy: bug fixes

2010-03-28 Thread Alexis Berlemont
Hi, Sorry for the late reply. Daniele Nicolodi wrote: > Daniele Nicolodi wrote: > > Alexis Berlemont wrote: > >> If you want to test infinite acquisitions right now, you can clone my > >> git repository. I just pushed the modifications on it. I have not made > &

Re: [Xenomai-core] Bug in a4l_get_chan

2010-03-28 Thread Alexis Berlemont
Daniele Nicolodi wrote: > Hello Alexis, > > I found that a4l_get_chan() in buffer.c does not work for subdevices > that use a global channels description struct (mode = > A4L_CHAN_GLOBAL_CHANDESC in the a4l_chdesc_t structure). > > The problem is that a4l_get_chan() iterates (twice) on the chan_d

Re: [Xenomai-core] Analogy: A4L_CHAN_AREF_* and AREF_* and other macros

2010-04-04 Thread Alexis Berlemont
Hi, Daniele Nicolodi wrote: > Hello Alexis, > > I have noticed that in Analogy headers there are two sets of macros to > define channels references, one with prefix A4L_CHAN_AREF_ and the other > with prefix AREF_. I think keeping both is confusing and dangerous, > because similar symbols are def

Re: [Xenomai-core] Analogy: improve a4l_find_range()

2010-04-04 Thread Alexis Berlemont
Hi, Sorry for the delay. Daniele Nicolodi wrote: > Hello Alexis, I wrote a small patch to improve a4l_find_range(). > > As many every other functions expect to have the range specified as its > idx into the struct describing the subdevice it is useful have it > returned from a4l_find_range(). I

Re: [Xenomai-core] Analogy: cancel ongoing commands when a device is closed

2010-04-05 Thread Alexis Berlemont
Hi, Daniele Nicolodi wrote: > Alexis Berlemont wrote: > > Daniele Nicolodi wrote: > >> After fixing analogy to permit continuous acquisition, I discovered that > >> ongoing commands are not canceled when a device is closed (I obtain a > >> DMA buffer owerwr

Re: [Xenomai-core] Analogy: cmd_bits

2010-04-24 Thread Alexis Berlemont
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: > > r...@unix> ./cmd_bits -v -s 2 0x 0x > cmd_bits: de

[Xenomai-core] [PULL REQUEST] analogy bug fixes + rtdm_rt_capable related changes

2010-05-04 Thread Alexis Berlemont
The following changes since commit e9b509c9021e0134117d0fe75d11e495f0e954b7: arm: add missing #include (2010-05-04 03:44:01 +0200) are available in the git repository at: git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (17): analogy: fix ring-buffer issues analogy

Re: [Xenomai-core] analogy - experimental branch

2010-06-05 Thread Alexis Berlemont
Hi Stefan, Stefan Schaal wrote: > Hi Alexis, > > I was just wondering whether the new "experimental" branch in your git > repository is something that can be tried already. > No. Not yet. This branch is aimed at temporarily holding the corrections I am trying to do for the cmd_bits issue. It

Re: [Xenomai-core] Analogy a4l_fill_desc() bug

2010-06-16 Thread Alexis Berlemont
Hi, On Wed, Jun 16, 2010 at 7:01 PM, Daniele Nicolodi wrote: > On 11/03/10 18:12, Daniele Nicolodi wrote: >> Hello. >> >> I found a bug in a4l_fill_desc(). If I call it on a descriptor obtained >> for an unattached device, the memory allocated for the sbdata descriptor >> field is corrupted in a

Re: [Xenomai-core] analogy - experimental branch

2010-06-24 Thread Alexis Berlemont
Hi, Alexis Berlemont wrote: > Hi Stefan, > > Stefan Schaal wrote: > > Hi Alexis, > > > > I was just wondering whether the new "experimental" branch in your git > > repository is something that can be tried already. > > > > No. N

Re: [Xenomai-core] Analogy: cancel ongoing commands when a device is closed

2010-06-24 Thread Alexis Berlemont
Hi, Alexis Berlemont wrote: > Hi, > > Daniele Nicolodi wrote: > > Alexis Berlemont wrote: > > > Daniele Nicolodi wrote: > > >> After fixing analogy to permit continuous acquisition, I discovered that > > >> ongoing commands are not canceled when

[Xenomai-core] Some changes in Analogy core

2010-06-24 Thread Alexis Berlemont
Hi, I just pushed into my git repository (branch analogy) some significant changes in the asynchronous buffer management. These modifications intend to fix a major issue in the analogy architecture: only the default input and output subdevices were reachable via read / write syscalls. These ch

Re: [Xenomai-core] analogy - experimental branch

2010-06-27 Thread Alexis Berlemont
fter a4l_snd_insn() is called -- does this make sense? > Could you tell me if the mite triggered an interrupt ? Could you send a dump of cat /proc/xenomai/irq after having made the test program hang ? Many thanks, > Best wishes, > > -Stefan > > > On Jun 24, 2010, at

Re: [Xenomai-core] Analogy a4l_fill_desc() bug

2010-06-27 Thread Alexis Berlemont
Hi, Alexis Berlemont wrote: > Hi, > > On Wed, Jun 16, 2010 at 7:01 PM, Daniele Nicolodi wrote: > > On 11/03/10 18:12, Daniele Nicolodi wrote: > >> Hello. > >> > >> I found a bug in a4l_fill_desc(). If I call it on a descriptor obtained > >> for

Re: [Xenomai-core] analogy - experimental branch

2010-06-30 Thread Alexis Berlemont
sumed by the board. Are you sure the digital output lines correspond to what you configured with cmd_bits ? I think the digital output is misconfigured. I am working on it. > > -Stefan > > On Jun 27, 2010, at 3:37, Alexis Berlemont wrote: > > > Hi, > > > >

Re: [Xenomai-core] analogy - experimental branch

2010-07-05 Thread Alexis Berlemont
or the missing pieces of information. Please, if anyone have the info (the mapping between the "CDO_Mode register" values and the sample clock source), do not hesitate to help us. > Best wishes, > > -Stefan > > > On Jun 30, 2010, at 15:45, Alexis Berlemont wrote:

Re: [Xenomai-core] analogy - experimental branch

2010-07-05 Thread Alexis Berlemont
Hi, Alexis Berlemont wrote: > Hi, > > Stefan Schaal wrote: > > Hi Alexis, > > > > thanks for the feedback. We have 32 bit DIO on subdevice #2, and I am not > > sure that there is anything special to be configured. I will check again. > > Feel free

[Xenomai-core] [PULL REQUEST] analogy bug fixes

2010-07-07 Thread Alexis Berlemont
The following changes since commit 653a38669af4427471ed8cdd129eb0bbb33ba178: nucleus: finalize heap mapping sanitization (2010-07-04 18:57:54 +0200) are available in the git repository at: git://git.xenomai.org/xenomai-abe.git analogy ..BRANCH.NOT.VERIFIED.. Alexis Berlemont (48

Re: [Xenomai-core] [PULL REQUEST] analogy bug fixes

2010-07-09 Thread Alexis Berlemont
Hi, Gilles Chanteperdrix wrote: > Alexis Berlemont wrote: > > The following changes since commit 653a38669af4427471ed8cdd129eb0bbb33ba178: > > > > nucleus: finalize heap mapping sanitization (2010-07-04 18:57:54 +0200) > > Ok. Could you rebase on the current maste

Re: [Xenomai-core] analogy - experimental branch

2010-07-09 Thread Alexis Berlemont
ough. In fact, scan_begin_arg should be modified. scan_begin_src indicates the type of trigger and scan_begin_arg gives an associated argument. In our case, it is the signal number. Sorry for the comment (/* in ns */) which is an inappropriate copy-paste (as a matter of fact, it is the whole com

Re: [Xenomai-core] analogy - experimental branch

2010-07-12 Thread Alexis Berlemont
t; In your cmd_bits.c code, you use the "a4l_insn_t insn" structure below for > > triggering, which is what I have to replace with a4l_sync_dio(), I guess? > > > > Best wishes, > > > > -Stefan > > > > > > > > On Jul 9, 2010, at 15:17,

Re: [Xenomai-core] analogy - experimental branch

2010-07-14 Thread Alexis Berlemont
y the analog output subsystem. > Best wishes, > > -Stefan > > > > On Jul 12, 2010, at 15:29, Alexis Berlemont wrote: > > > Hi, > > > > Stefan Schaal wrote: > >> Hi Alexis, > >> > >> I guess I slowly understand th

Re: [Xenomai-core] analogy - experimental branch

2010-07-14 Thread Alexis Berlemont
u write that TRIG_TIMER is not suitable for DIO, but in cmd_write.c in > > your sample code, it is used for the analog write without problems. > > Wouldn't one be able to just use the same clock source for DIO as in > > analogue I/O? > > > > Best wishes, &

Re: [Xenomai-core] analogy - experimental branch

2010-07-19 Thread Alexis Berlemont
o do such operations? The Comedi > > libraries have an example for this, too, in gpct_pulse_generator.c, just > > that this example uses a variety of function calls that I cannot directly > > map to the current Analogy functionality. > > > > Or, do you happen to know whether the

Re: [Xenomai-core] analogy - experimental branch

2010-08-23 Thread Alexis Berlemont
d you clone my git repository (branch analogy), and give it a try with your own test program. There was a bug in the mite configuration which explained why the wrong data were sent to the DIO subdevice. That was also the reason why no interrupt came from the mite. > Best wishes, > > -Stef

Re: [Xenomai-core] analogy - experimental branch

2010-09-04 Thread Alexis Berlemont
e executed. > >>> > >> > >> At last, it comes!!! > >> > >> Thanks to your test program and your help, I think I have fixed this > >> bug. Could you clone my git repository (branch analogy), and give it a > >> try with your o

Re: [Xenomai-core] analogy - experimental branch

2010-09-08 Thread Alexis Berlemont
hes, > > -Stefan > > Alexis. > On Sep 4, 2010, at 14:45, Alexis Berlemont wrote: > >> Hi, >> >> Stefan Schaal wrote: >>> Hi Alexis, >>> >>> we are making great progress with our work. One issue that came up is >>> whether it

[Xenomai-core] [PULL REQUEST] analogy: bugfixes

2010-09-20 Thread Alexis Berlemont
The following changes since commit 9d70c373eee0ac43a1b5869600e33ec6bff89868: rtcan: Mask the SJA_MOD register when probing for channels (2010-09-16 20:43:34 +0200) are available in the git repository at: git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (9): analogy

Re: [Xenomai-core] Analogy regressions in xenomai 2.5.5.1

2010-10-12 Thread Alexis Berlemont
Hi, On Tue, Oct 12, 2010 at 10:44 AM, Daniele Nicolodi wrote: > Hello, I just installed xenomai 2.5.5 on a 2.6.35.7 kernel and I'm > noticing serious regressions on analogy basic features: > > 1. Buffer management is badly broken. It is not possible to run any > acquisition command that wraps aro

Re: [Xenomai-core] Analogy regressions in xenomai 2.5.5.1

2010-10-15 Thread Alexis Berlemont
Hi, Do not worry. I have not forgotten. On Fri, Oct 15, 2010 at 11:16 AM, Daniele Nicolodi wrote: > Hi Alexis, > > do you have the possibility to look at those bugs soonish? Otherwise I > can try to fix them, but I would need some hints on where I should look > in the code. > > Thank you. Cheers

Re: [Xenomai-core] Analogy regressions in xenomai 2.5.5.1

2010-10-17 Thread Alexis Berlemont
Hi, Daniele Nicolodi wrote: > On 13/10/10 08:31, Alexis Berlemont wrote: > >> 1. Buffer management is badly broken. It is not possible to run any > >> acquisition command that wraps around in the ring buffer. That can be > >> simply reproduced with: > >>

Re: [Xenomai-core] Analogy DIO data acquisition

2011-01-03 Thread Alexis Berlemont
Hi, Sorry for the late reply. Happy new Year!!! Stefan Schaal wrote: > Hi Alexis, > >I was wondering whether you could help me with some information about CMD > based data acquisition in analogy. > You might recall from previous emails with you, we are trying to implement > high speed dat

Re: [Xenomai-core] CMD based acquisition with Analogy

2011-01-10 Thread Alexis Berlemont
Hi, Stefan Schaal wrote: > Hi Alexis, > > here is an observation with CMD-based acquisition that puzzles > me. Just to recall, we use an NI6259 board, using your latest > analogy branch of xenomai on a 2.6.29.5 kernel in Ubuntu 9.10. Our > computer is a 32bit Dell Precision with 8 core Xe

[Xenomai-core] [PULL REQUEST] analogy: bug fixes in buffer size config

2011-01-12 Thread Alexis Berlemont
The following changes since commit c0993894a7ab56d9c3f5444e90e68602673288de: 16550A: Disable PCI configuration option for platforms without PCI (2011-01-08 01:05:02 +0100) are available in the git repository at: ssh+git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (5

Re: [Xenomai-core] Integration of new drivers in xenomai

2011-05-12 Thread Alexis Berlemont
Hi, Sorry for answering late. Philippe Gerum wrote: > On Tue, 2011-05-10 at 10:42 +0200, julien.dela...@esa.int wrote: > > Dear all, > > > > For my work, I had to develop drivers for the 6052 and 6701 boards from > > National Instruments. These boards are already supported by the Comedi > > dr

[Xenomai-core] analogy: wake-up threshold

2011-05-12 Thread Alexis Berlemont
Hi Stefan, A few months ago, you asked me whether it was possible to prevent the OS from waking up your process each time a few bytes were acquired. You came with the idea to implement a wake-up threshold below which the user space process is kept in sleep state. A few days ago, I updated my exp

Re: [Xenomai-core] [ANALOGY] ni660x and ni670x : patch and examples

2011-08-07 Thread Alexis Berlemont
Hi, Sorry for the late reply, I just came back from holidays. On Wed, Aug 3, 2011 at 2:18 PM, Julien Delange wrote: > Dear all, > > Please find a patch for the support of ni660x and ni670x in the analogy layer. > The driver works fine and I tested it. I enclosed test programs with > my mail. The

Re: [Xenomai-core] Xenomai 2.6.0, or -rc1?

2011-08-29 Thread Alexis Berlemont
Hi, On Fri, Aug 26, 2011 at 2:34 PM, Gilles Chanteperdrix wrote: > > Hi, > > I think it is about time we release Xenomai 2.6.0. Has anyone anything > pending (maybe Alex)? Should we release an -rc first? > Yes. in my experimental branch, I have a few things which are not that experimental. I woul

[Xenomai-core] PULL REQUEST: analogy

2011-09-04 Thread Alexis Berlemont
The following changes since commit fa167ed2f2d9ce569968d801796f7e760772e97b: doc: regenerate (2011-09-04 21:48:41 +0200) are available in the git repository at: ssh+git://git.xenomai.org/xenomai-abe.git analogy Alexis Berlemont (28): analogy: add first version of waveform generation

Re: [Xenomai-core] Analogy DIO data acquisition with NI6259

2011-09-18 Thread Alexis Berlemont
Hi, On Wed, Sep 14, 2011 at 5:38 AM, Stefan Schaal wrote: > This is a summary and conclusion of using a NI6259 with Xenomai/Analogy for > digital data I/O. First of all, many thanks to Alexis whose Analogy branch > really allowed us to succeed! We would just like share the final results of > o

Re: [Xenomai-core] Analogy: idx_write_subd field in a4l_desc_t

2011-09-30 Thread Alexis Berlemont
Hi, On Tue, Sep 27, 2011 at 4:06 PM, Daniele Nicolodi wrote: > Hello, > > I'm using xenomai-head on a 2.6.38.8 kernel on x86 with a NI-6251 DAQ > board. In this configuration the idx_write_subd field of the a4l_desc_t > structure filled by a4l_open() is not set to the proper value but is set > to

  1   2   >