Re: [etherlab-users] Failed to get reference clock time: Input/output error

2018-10-28 Thread Gavin Lambert
This is normal for the first few cycles; it takes several cycles for the reference clock to “sync in”. It should eventually start working. This is why there’s a patch in the unofficial patchset to suppress the fprintf error when using the usermode library. From: Mohsen Alizadeh Noghani Sent: F

Re: [etherlab-users] Measuring the frequency of master sending the frames to network

2018-10-28 Thread Mohsen Alizadeh Noghani
Since I only needed to subtract the reference slave's time in each cycle from the previous fine, method 2a worked very well. So in the cycle, I have, #ifdef MEASURE_TIMING ecrt_master_reference_clock_time(master, &t_cur); printf("%" PRIu32 "\n", t_cur - t_prev); t_prev = t_cur; #endif 1- How is

[etherlab-users] A question about the master's clock synchronization algorithm used in rtai_rtdm_dc

2018-10-28 Thread Mohsen Alizadeh Noghani
Hello everyone. In the rtai_rtdm_dc example, there is a choice of syncing the master's clock to the reference slave, instead of the other way around. The algorithm is basically implemented in three functions, *system_time_ns*, *sync_distributed_clocks, *and *update_master_clock.* There are many var