# Virtual can and processes

**URL:** <https://forum.opencyphal.org/t/virtual-can-and-processes/271>\
**Category:** Applications & Usage\
**Created:** [November 23, 2018, 1:07pm UTC](https://forum.opencyphal.org/t/virtual-can-and-processes/271 "2018-11-23T13:07:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deekay](https://forum.opencyphal.org/letter_avatar_proxy/v4/letter/d/8491ac/32.png) [@deekay](https://forum.opencyphal.org/u/deekay)\
**Post date:** [November 23, 2018, 1:07pm UTC](https://forum.opencyphal.org/t/virtual-can-and-processes/271/1 "2018-11-23T13:07:27Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![deekay](https://forum.opencyphal.org/letter_avatar_proxy/v4/letter/d/8491ac/32.png) [@deekay](https://forum.opencyphal.org/u/deekay)\
**Post date:** [November 23, 2018, 1:57pm UTC](https://forum.opencyphal.org/t/virtual-can-and-processes/271/2 "2018-11-23T13:57:58Z")

</div>

Sorry. I think the problem is something else…

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [November 23, 2018, 3:31pm UTC](https://forum.opencyphal.org/t/virtual-can-and-processes/271/3 "2018-11-23T15:31:56Z")

</div>

> [@deekay](#):
>
> I am experienceing some craches in application launched in 2 that I do not get when using seperate HW for the applciations.

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

> [@deekay](#):
>
> Do I need to create two vcan:s and virtually connect them together?

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