Sample Header Ad - 728x90

On a system, can two CAN ports have the same CAN-ids?

1 vote
1 answer
737 views
If a device with two CAN ports have the same CAN-id, will this cause trouble? The networks are separated for some reason, but the "master" should be the same for both networks. Edit: Below the network topology.
("master")   CAN-BUS 0     +----------+
+----------+       |------->| CAN-ID 2 |
|          || CAN-ID 3 |
              CAN-BUS 1     +----------+
As what I now understand is that the CAN-id is set in software. If I play around with ifconfig you can not set the CAN-id. Instead, this is set when I want to generate CAN traffic through cangen:
CANID=1
ip link set can0 type can bitrate 125000
ip link set up can0
cangen can0 -I $CANID -L 8 -v
Asked by Bayou (175 rep)
Mar 8, 2022, 12:28 PM
Last activity: Mar 9, 2022, 02:49 PM