[uClinux-dev] can4linux message timestamp field question

Julien MARBACH jmh at csm-instruments.com
Wed Aug 3 16:54:48 EDT 2005

Thanks for your response,
So the timestamp of the message is a reception timestamp. I thought it
was the timestamp field extracted from the header of the rceived CAN
frame, written by the sender's can controller. That's why the "timeval"
type of the field seemed stange to me...



Le mercredi 13 juillet 2005 à 23:52 +0200, Heinz-Jürgen Oertel a écrit :
> Am Mittwoch, 13. Juli 2005 15:34 schrieb Julien MARBACH:
> > Hello,
> > I'm using can4linux on a 5282 dev board.
> > I'm trying to acces the timestamp field of a CAN message but I don't
> > know how to handle it... The timestamp field is declared of "timeval"
> > type (from time.h I guess) but I fail to understand when this field is
> > set and what information it really contains.
> > Does somebody knows something about it?
> >
> >
> > Thanks
> >
> > Julien MARBACH
> Without having the sources at my hands.
> The receive ISR is calling do_gettimeofday() to get a time stamp as close as 
> possible to the point of time when a CAN message is received. The time 
> stamp filed in canmsg_t contains seconds after 1971 and µs.
> +===================================================================
> Merokok dapat menyebabkan kanker, serangan jantung,
> impotensi dan gangguan kehamilan dan janin.

More information about the uClinux-dev mailing list