<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)">
<style><!--
/* Font Definitions */
@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:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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-NZ" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><i>ecrt_master_64bit_reference_clock_time_queue</i> must be called at any point prior to calling
<i>ecrt_master_send</i>.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><i>ecrt_master_64bit_reference_clock_time</i> must be called
<b>following</b> some previous calls to <i>ecrt_master_64bit_reference_clock_time_queue</i>,
<i>ecrt_master_send</i>, and <i>ecrt_master_recv</i> (in that order), and <b>before</b> calling
<i>ecrt_master_64bit_reference_clock_time_queue</i> a second time. (It doesn’t have to be on the immediately subsequent cycle, but that usually makes the most sense.) Interleaved calls to other functions are irrelevant (apart from closing the master, of course).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This should be fairly obvious, if you think about it. (And it’s documented.)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As for how often to call them, that’s entirely up to how often you want the answer, either for internal diagnostics or to look at the datagram in the network trace. It is purely informational and does not affect slave clock synchronisation.
If you’re not interested in the answer, then you don’t need to call it at all.<span style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></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><span lang="EN-US">From:</span></b><span lang="EN-US"> Mohsen Alizadeh Noghani <m.alizad3h@gmail.com>
<br>
<b>Sent:</b> Thursday, 25 October 2018 20:28<br>
<b>To:</b> etherlab-users@etherlab.org; Gavin Lambert <gavin.lambert@tomra.com>; Graeme.Foot@touchcut.com<br>
<b>Subject:</b> Where, in the application cycle, should I call ecrt_master_64bit_reference_clock_time/queue?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hello everyone.<o:p></o:p></p>
<div>
<p class="MsoNormal">I would like to know where should I call <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>ecrt_master_64bit_reference_clock_time_queue() </i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">and <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>ecrt_master_64bit_reference_clock_time() </i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">1- with respect to each other (does it matter which one is called first?)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">2- with respect the distributed clock function calls? i.e.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>ecrt_master_application_time()</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>ecrt_master_sync_reference_clock()</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>ecrt_master_sync_slave_clocks()</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">3- with respect to<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>ecrt_domain_queue()</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">and <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><i>ecrt_master_send()</i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Best,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Mohsen<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>