<div dir="ltr">Calling the function after <i>ert_master_receive</i> and before <i>ecrt_domain_queue() </i>fixed the issue. (At the moment, I have only tested it on stable-1.5).<div>Best,</div><div>Mohsen</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 26, 2018 at 11:29 AM Mohsen Alizadeh Noghani <<a href="mailto:m.alizad3h@gmail.com">m.alizad3h@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone.<div>Following my previous email, I have tried reading the 32-bit time of the reference clock by <i>ecrt_master_reference_clock_time</i> in various versions of the library. Here are the results of calling this function in userspace code:</div><div><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;margin-bottom:0px"><li style="box-sizing:border-box;margin-left:0px">1.5.2 (<i>Failed to get reference clock time: Input/output error</i>)</li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px">stable-1.5 branch of SourceForge (<i>Failed to get reference clock time: Input/output error</i>)</li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px">default branch of SourceForge. (Returns -5: <i>Slave synchronization datagram was not received</i>)</li><li style="box-sizing:border-box;margin-top:0.25em;margin-left:0px">default branch of SourceForge + gavinl's patchset (Returns -5: <i>Slave synchronization datagram was not received</i>).</li></ul><div><font color="#24292e" face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"><span style="font-size:14px"><br></span></font></div><div><font color="#24292e" face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"><span style="font-size:14px">- As expected, <i>ecrt_master_64_bit_reference_clock_time</i> (in the patched version) also returns -5 (</span></font><i style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">Slave synchronization datagram was not received</i></div>).</div><div>- By reading the register "0x92c" on the reference slave, I can verify that the DC mechanism is working as it should.</div><div>So what is causing the error <i style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">Slave synchronization datagram was not received</i><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">?</span></div><div><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">Best,</span></div><div><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">Mohsen</span></div><div><i style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><br></i></div><div><br></div></div>
</blockquote></div>