My device is SJA1000, CPC-PCI, Driver version is 3.5.7 svn 80, Linux 2.6.31
Before sending the can message, my app check if the write operation available
by calling select func. Most of the time, it works well. But sometimes the
select function always return 0, so the app can't send the message anymore. So
I dump the status of the driver, it displayed
Baud: 1000, St 12, EWL: 96, Ecode 0
RX: Err 0, Size 256, Used:0
TX: Err 0, Size: 256, Used:1
No error happened, but exists a message in the TxFifo, and no one handle this
message. No transmit interrupt.
How this situation happened? Any ideas? Thanks!
I have no idea what happens here. I normally send the frame by calling write
and handle the fifo full condition.
How are you using select to check if the tx fifo is free?
Can you use the ioctl(.., status, ...) to check if the tx fifo is free?
You are right, Many thanks!
but anyway, what you described might be an failure.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.