PCAN USB adapter doesn't work with the 1Mbps bitrate.
PCAN USB adapter doesn't work with the 1Mbps bitrate.
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!
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!
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
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.
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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
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
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.
Thank you, Michael!
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
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
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
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
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.
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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
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
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
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: PCAN USB adapter doesn't work with the 1Mbps bitrate.
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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------