<div dir="ltr"><div><div><div>Hi Gavin,<br><br></div>your interest is my motivation. I have attached the bundle file. <br><br></div>My changes is base on the newest Version 1.5.2 in 'stable-1.5' branch. I added a new 'rtleaders' branch first and did all my changes on that. So after "$ hg unbundle etherlab_1.5.2_jyuan.hg", don't forget to switch to the 'rtleaders' branch using "$ hg update rtleaders".<br>
<br></div><div>I found a better way of synchronizing the master clock to ref slave clock. It is much faster and more stable. I managed to port my C++ code into C code in the rtai_rtdm_dc example today, but I cannot test if the new code compiles right now. If you have a rtai environment, please test it for me if it compiles, and give me some feedback. <br>
<br></div><div>Besides that, there is a more accurate DC time offset calculation. There should be no more errors like "Slave did not sync after 5000ms". The accurate time offset estimation saves much time for the DC Sync procedure. Slaves would have such a small dc diff (several hundred ns maybe) at the beginning of the dc sync check, that I even changed EC_SYSTEM_TIME_TOLERANCE_NS from 1000000ns to 1000ns.<br>
<br>The postponed check of master->has_app_time makes the error "No app_time received up to now, but master already active" away.<br><br></div><div>And there are the bugfix for ecrt_master_select_reference_clock() from Graeme Foot, and some other bug fixes from Jeroen Van den Keybus.<br>
</div><div><br></div><div>Any feedback is welcome. Have fun testing those changes!<br></div><div><br></div><div>Jun<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 3, 2014 at 12:13 AM, Gavin Lambert <span dir="ltr"><<a href="mailto:gavinl@compacsort.com" target="_blank">gavinl@compacsort.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2 April 2014 22:40, quoth Jun Yuan:<br>
<div class="">> But there is a reason why we all put the ecrt_master_application_time() outside<br>
> the loop. Because we all got burned by the error "No app_time received up to<br>
> now, but master already active.", which is a timing bug in Etherlab. I've<br>
> resolved the problem by change the code of Etherlabmaster, which get rid of<br>
> the "No app_time" bug. Now I don't need to call ecrt_master_application_time()<br>
> outside the loop any more. I will publish the bundle to the mailing list when<br>
> I have time.<br>
<br>
</div>I'd be very interested to see this. Slave sync timing, "no app time", and the 5000ms sync timeout have been a recurring bugbear for me.<br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Jun Yuan<br>[Aussprache: Djün Üän]<br><br>Robotics Technology Leaders GmbH<br>Am Loferfeld 58, D-81249 München<br>Tel: +49 89 189 0465 24<br>Fax: +49 89 189 0465 11<br>mailto: <a href="mailto:j.yuan@rtleaders.com" target="_blank">j.yuan@rtleaders.com</a><br>
<br>Umlautregel in der chinesischen Lautschrift Pinyin: Nach den Anlauten y, j, q, und x wird u als ü ausgesprochen, z.B. yu => ü, ju => dschü, qu => tschü, xu => schü.
</div>