Skip to contentSkip to conversation

Question about Xenomai, Posix and Java

Xenomai Héctor Vargas 3 participants 3 messages Dec 13, 2012 – Dec 15, 2012 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I want to create an application where a control task (real time control of a DC motor) developed in Xenomai (posix skin) can be controlled from a Java interface (GUI). The idea is to create a middle task between the xenomai control task and the Java application working as a gateway by using TCP sockets. Before starting to work on it I would like to know if someone has already done something like this. It is possible to do it?.

Thanks for your answer,

Héctor.-

#1 lore raw
Quoted 8 lines · Héctor Vargas

Hi everyone,

I want to create an application where a control task (real time control of a DC motor) developed in Xenomai (posix skin) can be controlled from a Java interface (GUI). The idea is to create a middle task between the xenomai control task and the Java application working as a gateway by using TCP sockets. Before starting to work on it I would like to know if someone has already done something like this. It is possible to do it?.

I do not see why it would not work (RTnet has everything needed AFAIK). But why not invoking the Xenomai code from the Java code as JNI ?

Signature · 1 line
                                                                Gilles.

A message that is not in the archive (sent off-list or not yet received): 50CC6607.6080506__19747.5351779305$1355572777$gmane$org@xenomai.org

#3 lore raw
Quoted 12 lines · Gilles Chanteperdrix
Quoted 8 lines · Héctor Vargas

Hi everyone,

I want to create an application where a control task (real time control of a DC motor) developed in Xenomai (posix skin) can be controlled from a Java interface (GUI). The idea is to create a middle task between the xenomai control task and the Java application working as a gateway by using TCP sockets. Before starting to work on it I would like to know if someone has already done something like this. It is possible to do it?.

Quoted 3 lines

I do not see why it would not work (RTnet has everything needed AFAIK). But why not invoking the Xenomai code from the Java code as JNI ?

we have also made good experiences with an architecture that uses a lock-free/wait-free communication scheme between non-RT and RT components, see
http://www.linuxtag.org/2012/fileadmin/www.linuxtag.org/slides/Gernot%20Hillier%20+%20Wolfgang%20Mauerer%20+%20Jan%20Sawallisch%20-%20Android_%20real-time%20for%20the%20rest%20of%20us.p416.pdf

(the paper is about Java in the sense of Android and real-time in the sense of preempt_rt, but the scheme is immediately transferable to Java/Xenomai)

Cheers, Wolfgang