<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"MS Gothic";
panose-1:2 11 6 9 7 2 5 8 2 4;}
@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;}
@font-face
{font-family:"\@MS Gothic";
panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",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;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Just another thought:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">In your log I see a:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> Link: DOWN<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Check if your driver is propagating the link state to Etherlab by calling:
ecdev_set_link(ecdev, 1);<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Regards,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Patrick<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><font size="2" face="Calibri"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;font-weight:bold">From:</span></font></b><font size="2" face="Calibri"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">
etherlab-dev [mailto:etherlab-dev-bounces@etherlab.org] <b><span style="font-weight:bold">On Behalf Of
</span></b>???<br>
<b><span style="font-weight:bold">Sent:</span></b> Donnerstag, 19. Januar 2017 04:15<br>
<b><span style="font-weight:bold">To:</span></b> Graeme Foot <Graeme.Foot@touchcut.com><br>
<b><span style="font-weight:bold">Cc:</span></b> etherlab-dev@etherlab.org<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [etherlab-dev] "Master still waiting for devices!" problem.<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hi Graeme,<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I think that 1) and 2) was done correctly in my case.<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">For 3), I'll check dmesg.<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">For 4), I found the thread in 2013:<br>
<a href="http://lists.etherlab.org/pipermail/etherlab-users/2013/002074.html" target="_blank">http://lists.etherlab.org/pipermail/etherlab-users/2013/002074.html</a><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">But I can't get the attachment since I'm not in the etherlab-user mail list.<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Is there any other way to get the attachment?<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Thank you for your response.<br>
Best regards - Erix Chou<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">2017-01-19 5:27 GMT+08:00 Graeme Foot <<a href="mailto:Graeme.Foot@touchcut.com" target="_blank">Graeme.Foot@touchcut.com</a>>:<o:p></o:p></span></font></p>
<br>
<span style="FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt">Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans Beckhoff<br>
Registered office: Verl, Germany | Register court: Guetersloh HRA 7075</span> <br>
<br>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div id="m_8988594303130456556divtagdefaultwrapper">
<div id="m_8988594303130456556divtagdefaultwrapper">
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">I can think of four possible errors at the moment:<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">1) Your ethercat configuration file isn't matching the correct MAC address.<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">In /etc/sysconfig/ethercat you have "MASTER0_DEVICE="ff:ff:ff:ff:ff:ff"". ff:ff:ff:ff:ff:ff matches the first available device, looking
at devices in the order the drivers are loaded (in the DEVICE_MODULES key). So you may have sepecified a MAC address that is not matching your device<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">2) You are not loading your device module.<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">In /etc/sysconfig/ethercat you have "DEVICE_MODULES=". This specifies the network driver modules (ethercat versions) that you want to
run (space delimited list). You should put your module first in the list if you use a generic MAC address (ie: ff:ff:ff:ff:ff:ff) in the setting above.<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">eg: <o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">DEVICE_MODULES="cpsw e1000 e1000e"<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">3) Your driver doesn't work.<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">Check dmesg for any errors.<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">4) Your driver is not correctly integrating with the EtherCAT master.<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">There's various functions that your driver needs to interact with the master. But from memory the one that tells the master that a device
is available is:<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">ecdev_offer();<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">But the guts of it is that no offered net devices match the requirements of the MASTER0_DEVICE config setting.<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">I wrote a patch for the CX2100 device a while ago. You could look it up in the forums to check how it interacts with the master (or I
could send it if you can't find it). Look for the ecdev_... methods and the notes about the skb's.<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">Regards,<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">Graeme.<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></font></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">
<hr size="2" width="98%" align="center">
</span></font></div>
<div id="m_8988594303130456556divRplyFwdMsg">
<p class="MsoNormal"><b><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;font-weight:bold">From:</span></font></b><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
etherlab-dev <<a href="mailto:etherlab-dev-bounces@etherlab.org" target="_blank">etherlab-dev-bounces@etherlab.org</a>> on behalf of
</span></font><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">周甫霖</span></font><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
<<a href="mailto:erixchou@mapacode.tw" target="_blank">erixchou@mapacode.tw</a>><br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, 18 January 2017 9:26:42 PM<br>
<b><span style="font-weight:bold">To:</span></b> <a href="mailto:etherlab-dev@etherlab.org" target="_blank">
etherlab-dev@etherlab.org</a><br>
<b><span style="font-weight:bold">Subject:</span></b> [etherlab-dev] "Master still waiting for devices!" problem.</span></font><font color="black" face="Calibri"><span style="font-family:"Calibri",sans-serif;color:black">
<o:p></o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"> <o:p></o:p></span></font></p>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">Hi all,<br>
<br>
First appreciate the implement of etherlabmaster.<br>
I'm devolping a non-native supported ethernet device to be able to work as a RTDM EtherCAT master.<br>
What the device is one part of TI AM335x SoC and is named "cpsw".<br>
Everything smoothly while adapting driver code, building module file, and installing.<br>
But I was stuck by a problem when I try to start EtherCAT master.<br>
Following is my steps and message shown by dmesg:<br>
<br>
# /etc/init.d/ethercat start<br>
Starting EtherCAT master 1.5.2 done<br>
<br>
[ 30.849754] EtherCAT: Requesting master 0...<br>
[ 30.854265] EtherCAT ERROR 0: Master still waiting for devices!<br>
<br>
More information:<br>
<br>
# /opt/etherlab/bin/ethercat master<br>
Master0<br>
Phase: Waiting for device(s)...<br>
Active: no<br>
Slaves: 0<br>
Ethernet devices:<br>
Main: a0:f6:fd:22:bd:ed (waiting...)<br>
Link: DOWN<br>
Tx frames: 0<br>
Tx bytes: 0<br>
Rx frames: 0<br>
Rx bytes: 0<br>
Tx errors: 0<br>
Tx frame rate [1/s]: 0 0 0<br>
Tx rate [KByte/s]: 0.0 0.0 0.0<br>
Rx frame rate [1/s]: 0 0 0<br>
Rx rate [KByte/s]: 0.0 0.0 0.0<br>
Common:<br>
Tx frames: 0<br>
Tx bytes: 0<br>
Rx frames: 0<br>
Rx bytes: 0<br>
Lost frames: 0<br>
Tx frame rate [1/s]: 0 0 0<br>
Tx rate [KByte/s]: 0.0 0.0 0.0<br>
Rx frame rate [1/s]: -509579 -509608 -335544<br>
Rx rate [KByte/s]: 845836.0 -469824.0 163840.0<br>
Loss rate [1/s]: 0 0 0<br>
Frame loss [%]: 0.0 0.0 0.0<br>
Distributed clocks:<br>
Reference clock: None<br>
Application time: 0<br>
2000-01-01 00:00:00.000000000<br>
<br>
<br>
<br>
Could anyone kindly advice what is the key point to go forword form "waiting device"?<br>
<br>
Best regards - Erix Chou<o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
<br clear="all">
<br>
-- <o:p></o:p></span></font></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif">動程科技有限公司</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif"><o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif">台南市安平區建平十七街</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif">159</span></font><font face="Calibri"><span style="font-family:"Calibri",sans-serif">號七樓之一</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif"><o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif">周甫霖</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif"> Erix Chou<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Arial"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">E-mail</span></font><font face="Calibri"><span style="font-family:"Calibri",sans-serif">:</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif"><a href="mailto:erixchou@mapacode.tw" target="_blank"><font color="#1155cc"><span style="color:#1155CC">erixchou@mapacode.tw</span></font></a><o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Arial"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">TEL</span></font><font face="Calibri"><span style="font-family:"Calibri",sans-serif">:</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif">06-2970665<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Arial"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">Mobile</span></font><font face="Calibri"><span style="font-family:"Calibri",sans-serif">:</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif">0985946776<o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>