Peak M2 on Ubuntu I7 RT latency

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
elpimous12
Posts: 59
Joined: Tue 3. Aug 2021, 23:34

Peak M2 on Ubuntu I7 RT latency

Post by elpimous12 » Sun 21. Aug 2022, 21:29

Hello the team.
I send a 64 bytes canFD frame, who send a query to I'd...
how long must I wait before read RXQueue, to be sure to read a feeded Rx frame?
Usleep(10)? 100 ?
Thanks the team.
vincent

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Peak M2 on Ubuntu I7 RT latency

Post by M.Maidhof » Tue 23. Aug 2022, 10:34

Hi,

I don't think that anyone can answer this question correctly, because it is depending on your used bitrate, message size, CPU load, responds time of your other CAN node etc....

Simply check the timestamp of the received message to see how long it takes to receive the answer on your system. On the other hand, use a small sleep and call CAN_Read until you will receive a CAN message again.

regards

Michael

elpimous12
Posts: 59
Joined: Tue 3. Aug 2021, 23:34

Re: Peak M2 on Ubuntu I7 RT latency

Post by elpimous12 » Tue 23. Aug 2022, 11:06

Thanks, Michael.
I'll do that 👌

Post Reply