<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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 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;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></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="WordSection1">
<p class="MsoNormal"><span lang="DA">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DA"><o:p> </o:p></span></p>
<p class="MsoNormal">I often get below SDO: Input/output error when using the EtherCAT command line tool while an EoE handler is running as well.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">~ # ethercat upload -p1 0xf101 1 -t uint8<o:p></o:p></p>
<p class="MsoNormal">Failed to upload SDO: Input/output error<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below is some debug info from the syslog where it seems like the SDO upload requested via the EtherCAT command line tool has been received by the EoE handler that have simply dropped the datagram due to wrong mailbox protocol.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2000-01-06T22:14:11.140760+00:00 PCM51-sn214 kernel: [171153.189812] EtherCAT DEBUG 0: ecrt_master_sdo_upload(master = 0xc786e000, slave_position = 1, index = 0xF101, subindex = 0x01, target = 0xc7198720, target_size = 1, result_size =
0xc7909dc8, abort_code = 0xc7909dcc)<o:p></o:p></p>
<p class="MsoNormal">2000-01-06T22:14:11.140845+00:00 PCM51-sn214 kernel: [171153.189865] EtherCAT DEBUG 0-1: Scheduling SDO upload request.<o:p></o:p></p>
<p class="MsoNormal">2000-01-06T22:14:11.140877+00:00 PCM51-sn214 kernel: [171153.191475] EtherCAT DEBUG 0-1: Processing SDO request...<o:p></o:p></p>
<p class="MsoNormal">2000-01-06T22:14:11.140900+00:00 PCM51-sn214 kernel: [171153.191507] EtherCAT DEBUG 0-1: Uploading SDO 0xF101:01.<o:p></o:p></p>
<p class="MsoNormal">2000-01-06T22:14:11.140922+00:00 PCM51-sn214 kernel: [171153.191529] EtherCAT DEBUG 0-1: Upload request:<o:p></o:p></p>
<p class="MsoNormal"><span lang="DA">2000-01-06T22:14:11.140945+00:00 PCM51-sn214 kernel: [171153.191544] EtherCAT DEBUG: 00 20 40 01 F1 01 00 00 00 00
<o:p></o:p></span></p>
<p class="MsoNormal">2000-01-06T22:14:11.152670+00:00 PCM51-sn214 kernel: [171153.196476] EtherCAT WARNING 0-1: Other mailbox protocol response for eoe0s1.<o:p></o:p></p>
<p class="MsoNormal">2000-01-06T22:14:11.164709+00:00 PCM51-sn214 kernel: [171153.204544] EtherCAT ERROR 0-1: Reception of CoE upload response failed: No response.<o:p></o:p></p>
<p class="MsoNormal">2000-01-06T22:14:11.164791+00:00 PCM51-sn214 kernel: [171153.212760] EtherCAT ERROR 0-1: Failed to process SDO request.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I can see that somebody have added an FIXME comment in the code (ethernet.c), but I wonder if anybody have already done some thoughts of a possible implementation or if anybody is already working on a solution ?<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:10.0pt;font-family:Consolas;color:#7F0055">if</span></b><span style="font-size:10.0pt;font-family:Consolas;color:black"> (mbox_prot != 0x02) {
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F5F">// EoE </span>
<b><span style="font-size:10.0pt;font-family:Consolas;color:#7F9FBF">FIXME</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F5F"> mailbox handler necessary</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black"> eoe-></span><span style="font-size:10.0pt;font-family:Consolas;color:#0000C0">stats</span><span style="font-size:10.0pt;font-family:Consolas;color:black">.<u>rx_errors</u>++;</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:10.0pt;font-family:Consolas;color:#7F0055">#if</span></b><span style="font-size:10.0pt;font-family:Consolas;color:black"> EOE_DEBUG_LEVEL >= 1</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black"> EC_SLAVE_WARN(eoe->slave,
</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"Other mailbox protocol response for %s.\n"</span><span style="font-size:10.0pt;font-family:Consolas;color:black">, eoe->dev->name);</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:Consolas;color:#7F0055">#endif<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:Consolas;color:#7F0055"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">BR, Knud Baastrup<o:p></o:p></p>
</div>
</body>
</html>