[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] Time not so accurate ?




Have you accounted for the transmission delay in your calculations?
i.e. as the sender wakes-up after 1ms, how much time does it take 
for the data to travel to the other PC.

HTH,
-Sas

Sébastien GAUME wrote:
> 
> Hi Wayne,
> 
> > Do you mean here that the elapsed time as measured in the receiver is not one millisecond
> > and that the sum of the deviation from the expected 1 MS period accumulates to a positive
> > sum of errors when RTAI is the receiver and accumulates a negative sum of errors when rtl
> > is the receiver (respondent)? Or does the receiver initially have no error and after a
> > while start having a consistent error?
> 
> I never do any sum of errors. Initially there's no error. In fact, before starting measuring,
> I do some kind of synchronization between the two PCs, to make them start at the same time.
> That's why the receiver's first wakeup is quite similar to the sender's first sending
> (difference about 5 us). But after a while, the difference between the sending time and the
> receiving time increases.
> 
> Victor advised me to switch the two PCs, what I actually did. Unfortunately, the results
> remain the same. So what I have to do is to use CLOCK_GPOS.
> 
> Sebastien
> 
> ----- End of forwarded message from owner-rtl@fsmlabs.com -----
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/