Unable to establish communication through socketcan

CAN FD Interface for M.2 (PCIe)
Post Reply
Ojas C
Posts: 3
Joined: Fri 29. Nov 2024, 07:59

Unable to establish communication through socketcan

Post by Ojas C » Sat 8. Mar 2025, 11:04

Hello, I am new to using PCAN products, and when I tried to connect to a CAN motor driver through the PEAK M.2 4 channel module, I am unable to receive any messages. There are a few reasons which i think maybe the cause. I would appreciate it anyone could help me narrow it down. the driver works with my USB to FDCAN, but not with PEAK.

1. firstly i know that the bus should be terminated from both sides, and when i check the DSUB connector that came with the module, there is no 120 ohm resistance between CANH and CANL. so is there anyway i can enable it or do i need to add it externally? the CAN bus on motor driver is properly terminated with 120 ohm.

2. i tried to debug it with socketcan and socketcan shows that there are more than 64 bus errors and there are errors in receiving messages. i have a hunch that this is due to the lack of termination at both ends, but still i felt i should mention it.

i would appreciate any help, or any advice on how to debug this situation.
Thank you

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

Re: Unable to establish communication through socketcan

Post by M.Maidhof » Mon 10. Mar 2025, 18:32

Hello,

please use an external termination resistor to terminate your CAN bus system correctly. Next, please check the used bitrate settings again, they must fit exactly to your settings of your motor driver. As a test, please connect two channels of the PCAN M.2 card with a terminated CAN cable and test the communication with candump and cansend.

regards

Michael

Ojas C
Posts: 3
Joined: Fri 29. Nov 2024, 07:59

Re: Unable to establish communication through socketcan

Post by Ojas C » Tue 11. Mar 2025, 05:13

Hello Michael,
Thanks for replying. I will try to terminate the dsub provided with the module. I also read there is a way to enable termination on the m.2 card itself? in that case will that be better? I will also try to establish communication between 2 channels of the peak and check the bitrate and get back to you

Regards,
Ojas

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

Re: Unable to establish communication through socketcan

Post by M.Maidhof » Tue 11. Mar 2025, 10:20

Hello,

yes, it is also possible to enable the termination on the card, however, you have to solder on the card which need some good soldering experiences. We recommend to use external termination resistors in the CAN cables, like we offer here: https://www.peak-system.com/PCAN-Term.270.0.html?&L=1

regards

Michael

Post Reply