1
$\begingroup$

Can anyone please share me the command how can i find the frequency of CAN send and CAN receive messages. I'm sending CAN messages using a serial port and receiving it with a peak CAN usb. There is no error no drop messages between both receving and sending sides but i don't know the command to get the frequency. I'm using only simple candump and can send commands in Ubuntu. I know the bps but i want to know the frequency of sending and receiving sides. Thank you

$\endgroup$

2 Answers 2

2
$\begingroup$

candump can output the timestamp for each message in different formats. Check the usage notes of candump.

candump -t d can0 will give you the time difference between messages for instance.

$\endgroup$
0
$\begingroup$

You can pipe the output to wc with the -l flag for line counting:

candump can0 | wc -l
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.