Jan Kiszka wrote:
> Gilles Chanteperdrix wrote:
>> As far as I remember, however, the timestamping of each packet is done
>> in the Linux domain, so, if you want to get the real timestamp, you have
>> to modify rtnet to get the timestamp done in the Xenomai domain.
> 
> No, time stamping is actually done in the RTnet driver (it is a
> by-product of RTmac/TDMA).

Ok, right, bad memory.

> 
>> Unfortunately, that is not all, because if you get Xenomai's timestamp,
>> they drift when compared to Linux timestamps. But if you look only at
>> relative timestamps over short period of times, that is Ok.
>>
> 
> Yes, timestamps will drift compared to a precise reference clock or even
> the Linux host clock. But I'm optimistic we can fix this in the neat future.

Ok. Now I remember why I touched this: in secondary domain, while
copying the packet for the rtcap driver, I read Xenomai's real-time
clock and Linux' real-time clock, and subtracted to Linux' timestamp the
difference between Xenomai's timestamp and the packet timestamp. This
compensates for the drift.

However, I far as I understood, Benjamin wants to get timestamps using
the NIC's clock. So, the solution would be a bit different.

-- 
                                          Gilles


_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to