Virtual can and processes

Hi!

This is the first time using virtual can on linux machine to test without using multiple HW for my applciations.
What I have done is:

  1. Crated a virtual can interface, i.e. vcan0 according to
sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0
  1. Lanch a linux application emulating UAVCAN node using vcan0

  2. Lanch a second linux application emulating two other UAVCAN nodes using vcan0.

The idea is to let the two processes talk to eachother via UAVCAN and vcan0.

I am experienceing some craches in application launched in 2 that I do not get when using seperate HW for the applciations.

Am I missing out something when using vcan?

Do I need to create two vcan:s and virtually connect them together?

BR
Daniel

Sorry. I think the problem is something else…

Please elaborate what constitutes “some crashes”. Your actions seem correct.

No, you use a single interface as if it was a real bus.