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
Unable to establish communication through socketcan
Re: Unable to establish communication through socketcan
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
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
Re: Unable to establish communication through socketcan
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
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
Re: Unable to establish communication through socketcan
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
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