<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<i>Hello Ravi,<br>
<br>
Which runtime enviroment do you use?<br>
<br>
Xenomai/RTAI?<br>
Kernelversion ?<br>
Distro?<br>
<br>
My configuration<br>
Debian squeeze<br>
<br>
Xenomai<br>
Kernel 2.6.35.9<br>
Xenomai 2.5.6<br>
<br>
RTAI<br>
Kernel 2.6.32.11<br>
RTAI 3.8.1<br>
<br>
<br>
You need the master_send_ext for using async communication like EoE,...<br>
<br>
Greatings<br>
<br>
Andreas<br>
<br>
<br>
<br>
Am 04.05.2011 07:22, schrieb Ravi Chemudugunta:<br>
<span style="white-space: pre;">>> For RTDM usage please try
revision 2026:ab0b96ac18bb.<br>
>> <br>
>> The last merge in the repository did some incompatibilities.<br>
>> <br>
> <br>
> Hi Andreas,<br>
> <br>
> Thanks for the reply.<br>
> <br>
> I could not somehow get it going with 2026, I probably should be <br>
> looking at why it didn't work. But after a couple of reboots from<br>
> kernel crashes, I thought I was better off with the newer version.<br>
> <br>
> Below is my effort so far. I disabled application_callbacks
because <br>
> it seems that with that on, the system would freeze after the<br>
> application had finished a given cycle, but the system appears to <br>
> still be processing in the background, because the link light<br>
> flashes.<br>
> <br>
> With the changes below, the cycle works (and the system does not <br>
> freeze), and I get sensible time measurements for e.g. time spent
in<br>
> ecrt_rtdm_master_recieve(),<br>
> <br>
> however I do not seem to be able to exchange any domain data in
both <br>
> directions (it is zero all the time).<br>
> <br>
> I had a brief look at how the domain calls (queque, process) are<br>
> being shuttled between RTDM, and it appears to be correct -<br>
> afaics...<br>
> <br>
> <br>
> diff -r bdd6a7285460 rtdm/module.c --- a/rtdm/module.c Mon May
02<br>
> 12:47:31 2011 +1200 +++ b/rtdm/module.c Wed May 04 17:15:09 2011<br>
> +1200 @@ -166,6 +166,7 @@ <br>
> /**********************************************************/<br>
> <br>
> /* DRIVER sendcallback */<br>
> <br>
> /**********************************************************/<br>
> <br>
> +/*<br>
> <br>
> void send_callback(void *cb_data)<br>
> <br>
> {<br>
> <br>
> EC_RTDM_DRV_STRUCT * pdrvstruc;<br>
> <br>
> @@ -174,13 +175,14 @@ if (pdrvstruc->master)<br>
> <br>
> {<br>
> <br>
> my_mutex_acquire(&pdrvstruc->masterlock,TM_INFINITE);<br>
> <br>
> - ecrt_master_send_ext(pdrvstruc->master);<br>
> <br>
> + //ecrt_master_send_ext(pdrvstruc->master);<br>
> <br>
> my_mutex_release(&pdrvstruc->masterlock);<br>
> <br>
> }<br>
> <br>
> }<br>
> <br>
> +*/<br>
> <br>
> <br>
> <br>
>
/*****************************************************************************/<br>
><br>
><br>
> </span><br>
-<br>
<span style="white-space: pre;">> <br>
> + /*<br>
> <br>
> void receive_callback(void *cb_data)<br>
> <br>
> {<br>
> <br>
> EC_RTDM_DRV_STRUCT * pdrvstruc;<br>
> <br>
> @@ -193,7 +195,7 @@
my_mutex_release(&pdrvstruc->masterlock);<br>
> <br>
> }<br>
> <br>
> }<br>
> <br>
> -<br>
> <br>
> +*/<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> @@ -561,7 +563,7 @@<br>
> <br>
> EC_RTDM_INFO(pdrvstruc->masterno,"Creating Master mutex <br>
> %s!\n",&pdrvstruc->mutexname[0]);<br>
> <br>
> <br>
>
my_mutex_create(&pdrvstruc->masterlock,&pdrvstruc->mutexname[0]);<br>
> <br>
> //ecrt_release_master(mstr);<br>
> <br>
> - ecrt_master_callbacks(pdrvstruc->master, send_callback, <br>
> receive_callback, pdrvstruc);<br>
> <br>
> + //ecrt_master_callbacks(pdrvstruc->master, send_callback, <br>
> receive_callback, pdrvstruc);<br>
> <br>
> <br>
> EC_RTDM_INFO(pdrvstruc->masterno,"MSTR ATTACH done <br>
> domain=%u!\n",(unsigned int)pdrvstruc->domain);<br>
> <br>
> pdrvstruc->isattached=1;<br>
> <br>
> ret = 0;</span><br>
<br>
<br>
Mit freundlichem Gruß<br>
<br>
Andreas Stewering-Bone<br>
<br>
-- <br>
------------------------------------------------------------------------<br>
<br>
Dipl.-Ing.(FH) Andreas Stewering-Bone<br>
<a class="moz-txt-link-abbreviated" href="mailto:andreas.stewering-bone@igh-essen.com">andreas.stewering-bone@igh-essen.com</a><br>
Tel.: +49 201 / 36014-15<br>
<br>
Ingenieurgemeinschaft IgH<br>
Gesellschaft für Ingenieurleistungen mbH<br>
Heinz-Bäcker-Str. 34<br>
D-45356 Essen<br>
Amtsgericht Essen HRB 11500<br>
USt-Id.-Nr.: DE 174 626 722<br>
Geschäftsführung: <br>
- Dr.-Ing. S. Rotthäuser, <br>
- Dr.-Ing. T. Finke, <br>
- Dr.-Ing. W. Hagemeister<br>
Tel.: +49 201 / 360-14-0<br>
<a class="moz-txt-link-freetext" href="http://www.igh-essen.com">http://www.igh-essen.com</a><br>
<br>
------------------------------------------------------------------------<br>
<br>
</i>
</body>
</html>