All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai and MEN IO Cards/MDIS drivers
@ 2010-10-21  9:58 edward.robbins
  2010-10-21 19:37 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: edward.robbins @ 2010-10-21  9:58 UTC (permalink / raw)
  To: xenomai

Hi again,

I've almost finished setting up xenomai on my machine. I get very little time to work on this project, so wont get back to it until Saturday, but the next stage for me is getting the IO cards to work, and I thought I'd throw out an email as a precursor.

In this system we have a MEN M32 digital input card and an M28 digital output card. These come with Linux drivers, but they have to run through MEN's cross-platform driver API/framework, MDIS5. Previous versions of MDIS supported Xenomai and RTAI explicitly, but they seem to have dropped that support in the latest version, and I doubt the previous version will 'just work' with newer kernels. I have managed to successfully build the standard Linux MDIS drivers already.

MDIS adds so many layers of obfuscation and abstraction that on a previous occasion when I was attempting to get some M62 analogue output cards to work on a VMEbus VXworks platform I gave up on MDIS and wrote a new driver from scratch. 

Since Linux drivers are more complex to start with, and then there is Xenomai as well, and time is tight, I'd rather not do that for these cards. 

Does anyone have experience of using MEN drivers/IO cards in Xenomai? Can I simply wrap the MDIS API with the Xenomai API (described here http://www.xenomai.org/documentation/xenomai-2.5/html/api/index.html) once I've crawled my way through their code? Is there an easier way?

Also, I presume that as a temporary fall-back I can use the standard, non-RT drivers from Xenomai user-land processes?

Many thanks,
Edward

Control Systems Engineer
Oxford Technologies Ltd
7 Nuffield Way, Abingdon, Oxon, OX14 1RJ
Tel: +44 (0)1235 522119



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-help] Xenomai and MEN IO Cards/MDIS drivers
  2010-10-21  9:58 [Xenomai-help] Xenomai and MEN IO Cards/MDIS drivers edward.robbins
@ 2010-10-21 19:37 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2010-10-21 19:37 UTC (permalink / raw)
  To: edward.robbins; +Cc: xenomai

edward.robbins@domain.hid wrote:
> Hi again,
> 
> I've almost finished setting up xenomai on my machine. I get very
> little time to work on this project, so wont get back to it until
> Saturday, but the next stage for me is getting the IO cards to work,
> and I thought I'd throw out an email as a precursor.
> 
> In this system we have a MEN M32 digital input card and an M28
> digital output card. These come with Linux drivers, but they have to
> run through MEN's cross-platform driver API/framework, MDIS5.
> Previous versions of MDIS supported Xenomai and RTAI explicitly, but
> they seem to have dropped that support in the latest version, and I
> doubt the previous version will 'just work' with newer kernels. I
> have managed to successfully build the standard Linux MDIS drivers
> already.
> 
> MDIS adds so many layers of obfuscation and abstraction that on a
> previous occasion when I was attempting to get some M62 analogue
> output cards to work on a VMEbus VXworks platform I gave up on MDIS
> and wrote a new driver from scratch.
> 
> Since Linux drivers are more complex to start with, and then there is
> Xenomai as well, and time is tight, I'd rather not do that for these
> cards.
> 
> Does anyone have experience of using MEN drivers/IO cards in Xenomai?
> Can I simply wrap the MDIS API with the Xenomai API (described here
> http://www.xenomai.org/documentation/xenomai-2.5/html/api/index.html)
> once I've crawled my way through their code? Is there an easier way?

The driver should use the RTDM API. The porting involves using the API,
but also removing any piece of code which could have an effect on
determinism. So, you really have to read and understand the part of the
driver which will be used by real-time processes.

> 
> Also, I presume that as a temporary fall-back I can use the standard,
> non-RT drivers from Xenomai user-land processes?

You can do that of course.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-21 19:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21  9:58 [Xenomai-help] Xenomai and MEN IO Cards/MDIS drivers edward.robbins
2010-10-21 19:37 ` Gilles Chanteperdrix

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.