<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40" xmlns:ns0="urn:schemas-microsoft-com:office:smarttags">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal">Hi Etherlab-dev.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We just started testing the 1.5.2 etherlab release.<o:p></o:p></p>
<p class="MsoNormal">Our setup is a linux 3.4 with EoE running at startup and then we start a C based application which uses the C master at the same time.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We could not get the 1.5.2 running with both EoE and C master simultaneously and as soon as we initialized the C master and put our IO cards to OP the EoE Thread or Ethercat OP thread would use 99% CPU.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I think I have located the error and it seems that the C master send function lost its protection semaphore at some point, resulting in the EoE thread and C master accessing the send function at the same time.<o:p></o:p></p>
<p class="MsoNormal">Basically I use the send_callback from C master(which points to the secure send_ext) if it is available, instead of send.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I would like some feedback if this is the correct solution for this problem
<span style="font-family:Wingdings">J</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Best regards,
</span><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman","serif";
color:navy"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Times New Roman","serif""><ns0:PersonName><ns0:PersonName></ns0:PersonName></ns0:PersonName></span><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Johnny
Rasmussen</span></b><span lang="EN-GB" style="font-size:12.0pt;font-family:"Arial","sans-serif";
color:navy"><br>
</span><i><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";
color:black">DEIF Wind Power Technology</span></i><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman","serif";color:navy"><br>
</span><i><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";
color:black">Software Developer</span></i><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
</div>
</body>
</html>