Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN queue overflow

Using simple Channel API to read CAN and getting error -1074388710...sometimes.  Using Channel Init/Start ...then into loop to Read....after loop Clear.  Measuring temperature at low sample rate...5 samples at 10 samples/sec.  Tried to clear buffer with Get Num Samples followed by Read to clear buffer...works sometimes but not dependable. 
0 Kudos
Message 1 of 2
(3,958 Views)
Hi,
 
If there is asome time between init/start and Read or there is some other code within the loop, thus the Read is not called frequently enough, this error message appears because all the incomming messages are buffered in the backround.
The samples pending method is a good way to overcome this problem, but you should have your own loop to read the CAN channels to avoid long times between the reads.
 
DirkW
0 Kudos
Message 2 of 2
(3,917 Views)