Issues with Linux driver

This forum covers PCAN-Linux and Linux development issues concerning our products
Wielomat
Posts: 6
Joined: Thu 28. Feb 2013, 14:47

Re: Issues with Linux driver

Post by Wielomat » Wed 16. Sep 2020, 10:33

No, I mean I use PCAN Explorer to verify but our program always send CAN messages to have expected lengths depending on CAN-ID.
For example in the attached picture the message with CAN-ID 1E0h was received with different data lengths and data. Our program on the linux side does not do this. Also the heartbeat send every second as CAN-ID 760h was received as CAN-ID 761h.
As this does not happen with the older embedded device we are going to replace this is either some hardware issues I have to pinpoint or something in the driver went wrong and a bit got flipped/overwritten at some point.
Attachments
PCan missformed receive.png
PCan missformed receive.png (82.01 KiB) Viewed 2899 times

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Issues with Linux driver

Post by M.Heidemann » Wed 16. Sep 2020, 11:19

Yes, this looks like a hardware/driver issue.

Furthermore:
If the tx fifo does not seem to be read by the driver it's because it doesn't receive any Tx interrupts from the hw anymore. Often it's because of a bus state that is no more ACTIVE.
The fact that restarting the application resolves this is a strong indication.

You may also wanna check for phyical issue (wrong baudrate, wrong termination, etc)


Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply