Page 1 of 1
PCAN USB adapter doesn't work with the 1Mbps bitrate.
Posted: Mon 4. Nov 2019, 19:28
by igor_kkkk
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!
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
Posted: Tue 5. Nov 2019, 09:32
by PEAK-Support
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.
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
Posted: Tue 5. Nov 2019, 13:49
by igor_kkkk
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
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
Posted: Wed 6. Nov 2019, 11:34
by M.Maidhof
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
Posted: Wed 6. Nov 2019, 18:37
by igor_kkkk
Thank you, Michael!
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
Posted: Wed 13. Nov 2019, 12:13
by igor_kkkk
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
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
Posted: Wed 13. Nov 2019, 12:45
by PEAK-Support
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.
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
Posted: Wed 13. Nov 2019, 13:22
by igor_kkkk
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
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
Posted: Wed 13. Nov 2019, 13:31
by PEAK-Support
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.