Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How does candump display send, receive and timestamp?


Asked by Livia Decker on Dec 13, 2021 FAQ



As the title says, I used the command candump can0 can1 to watch frames on the CAN bus, but I can't distinguish which frames are received and which are sent. Sometimes I need the timestamp of received frames to analyze problems.
Accordingly,
Tcpdump prints out a description of the contents of packets on a network interface that match the Boolean expression; the description is preceded by a time stamp, printed, by default, as hours, minutes, seconds, and fractions of a second since midnight.
Consequently, The time stamp precision supported by a specific capture file format differs widely and varies from one second “0” to one nanosecond “0.123456789”. Most file formats store the time stamps with a fixed precision (e.g. microseconds), while some file formats are even capable of storing the time stamp precision itself (whatever the benefit may be).
Moreover,
Date and time: We can use any date and time to display the format of timestamp. If we have used the only date, then it will display a date and time. Current timestamp: This function is used to select the current date and time in PostgreSQL. If we want to use the current date and time, then we have to use a current timestamp function in PostgreSQL.
Indeed,
You can adjust the way Wireshark displays the time stamp data in the packet list, see the “Time Display Format” item in the Section 3.7, “The “View” Menu” for details. While reading or writing capture files, Wireshark converts the time stamp data between the capture file format and the internal format as required.