PCAN USB adapter doesn't work with the 1Mbps bitrate.

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
igor_kkkk
Posts: 5
Joined: Mon 4. Nov 2019, 19:05

PCAN USB adapter doesn't work with the 1Mbps bitrate.

Post by igor_kkkk » Mon 4. Nov 2019, 19:28

Hi!

I have two dev boards (kernel 4.14) connected via a PCAN USB adapter with a common d-sub 9pin cable.
Everything works fine, while CAN is configured up to 250Kbps bitrate.
But when I try to set up a higher bitrate (500Kbps, 1Mbps), the other side stops to receive any frames.
There are no error messages.
Can somebody help me?

How do I test:
On source:
ip link set can2 up type can bitrate 1000000
ifconfig can2 up
candump can2

On target:
ip link set can2 up type can bitrate 1000000
ifconfig can2 up
cangen can2

Thanks!

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.

Post by PEAK-Support » Tue 5. Nov 2019, 09:32

looks like you did not add CAN Termination at each end of the CAN Line. With lower Bitrates and short lines, it could work, but when using 500k up you will run into trouble...
Simply Terminate, as written in the CAN standard, and this will solve your problem.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

igor_kkkk
Posts: 5
Joined: Mon 4. Nov 2019, 19:05

Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.

Post by igor_kkkk » Tue 5. Nov 2019, 13:49

Hi U.Wilhelm

Thank you very much for the hint!
Does PEAK sell a 9-ping d-sub cable with such a 120 Ohm termination?
We will rather buy such a cable, than to make a custom one.

Regards,
Ihor

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

Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.

Post by M.Maidhof » Wed 6. Nov 2019, 11:34

Hi,

yes, see IPEK-003001

https://www.peak-system.com/PCAN-Kabel- ... .html?&L=1

regards

Michael

igor_kkkk
Posts: 5
Joined: Mon 4. Nov 2019, 19:05

Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.

Post by igor_kkkk » Wed 6. Nov 2019, 18:37

Thank you, Michael!

igor_kkkk
Posts: 5
Joined: Mon 4. Nov 2019, 19:05

Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.

Post by igor_kkkk » Wed 13. Nov 2019, 12:13

Hi Michael

We would like to connect 3 dev. boards via the PCAN USB adapters.
I suppose, that we need some CAN HUB.
Does PEAK sell such kind of HUB?
Could you please suggest me a solution for this?
Do we need a special rs-232 cable with 120 Ohm resistor for this?

Regards,
Ihor

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.

Post by PEAK-Support » Wed 13. Nov 2019, 12:45

If the boards did not send the same CAN ID´s you could connect them all to the same CAN Network (up to 128 nodes could be connected to a single CAN Network / depending on the used Transceivers / )

A USB "HUB" is not available / necessarry (we also do not offer such a unit only multi channel routers)
Please simply check of your differnet nodes use differnt CAN IDs, so that no colission could happened.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

igor_kkkk
Posts: 5
Joined: Mon 4. Nov 2019, 19:05

Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.

Post by igor_kkkk » Wed 13. Nov 2019, 13:22

Hi U.Wilhelm

Thanks for a quick reply!
Sorry for a some incomplete question, I would like to clarify it.
We have 3 boards. Every board has its own CAN ID.
To every board a PCAN-USB adapter is connected.
Finally we have three 9 pin D-Sub's on the end and we want to organize a CAN network.

We can use a router for this? (https://www.peak-system.com/PCAN-Router-Pro.229.0.html)

Regards,
Ihor

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.

Post by PEAK-Support » Wed 13. Nov 2019, 13:31

Simply use only ONE PCAN-USB, connect all other 3 nodes to this Network, terminate the CAN Networl at each end with 120 Ohm Resistor. Thats it ! As we wrote - CAN could handle up to 128 nodes on the same Network.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply