Nelstaar
Nelstaar

Reputation: 769

SocketCAN stops read after RX overflow, is it normal?

I’m doing tests on embedded hardware with integrated CAN bus interface. The driver provides Linux Socket API.

I try to see the limits: I have one transmitter that writes CAN frames as fast as possible and a receiver that reads continuously.

After a moment the receiver gets an error frame signalling RX overflow. I have no problem with that, it's normal and expected.

But my question is why at this point no more frame is received ? (The restart-ms option is set)

I expected some dropped frames and others RX buffer errors but not the end of reception.

Upvotes: 1

Views: 1174

Answers (1)

Nelstaar
Nelstaar

Reputation: 769

After exchanging emails with socket-can developers and my device provider, it was an bug in the driver. In the mean time a patch was released to move at91_can to new rx_fifo architecture. this patch fix the issue.

Upvotes: 1

Related Questions