PCAN_USB FD Connection under VM

CAN FD Interface for High-Speed USB 2.0
Post Reply
Nukerss
Posts: 2
Joined: Tue 16. Mar 2021, 20:50

PCAN_USB FD Connection under VM

Post by Nukerss » Tue 16. Mar 2021, 21:15

Dear support,

I have a problem with connection to Linux VM of my PEAK-USB FD adapter (IPEH-004022).

Here is my setup:

Host OS:
  • (uname -a) output:

    Code: Select all

    Linux ubuntu-pc01 5.8.0-44-generic #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • system is up to date with:

    Code: Select all

    sudo apt update && sudo apt upgrade && sudo apt autoremove 

Virtual OS:
  • (uname -a) output:

    Code: Select all

    Linux ubuntu 5.8.0-44-generic #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • system is up to date with:

    Code: Select all

    sudo apt update && sudo apt upgrade && sudo apt autoremove
  • vmware workstation player 16
  • usb 3.1 controller configured
  • open-vm-tools and open-vm-tools-desktop are installed and latest
Connection to Host OS works fine:
  • dmesg output:

Code: Select all

    [ 1055.486347] peak_usb 1-3.2:1.0: PEAK-System PCAN-USB FD v1 fw v3.2.0 (1 channels)
    [ 1055.486543] peak_usb 1-3.2:1.0 can0: attached to PCAN-USB FD channel 0 (device 0)
  • ifconfig -a output:

Code: Select all

   can0: flags=128<NOARP>  mtu 16
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Connection to Virtual OS is not possible:
  • dmesg output:

Code: Select all

    [ 1383.464390] usb 3-2: Product: PCAN-USB FD
    [ 1383.464393] usb 3-2: Manufacturer: PEAK-System Technik GmbH
    [ 1383.473722] peak_usb 3-2:1.0: PEAK-System PCAN-USB FD v1 fw v3.2.0 (1 channels)
    [ 1384.493238] peak_usb 3-2:1.0 can0: sending command failure: -110
    [ 1385.517187] peak_usb 3-2:1.0 can0: sending command failure: -110
    [ 1385.536887] peak_usb: probe of 3-2:1.0 failed with error -110
My semi-working solution:

Code: Select all

    sudo su
    echo 3-2.1 > /sys/bus/usb/drivers/usb/unbind
    echo 3-2.1 > /sys/bus/usb/drivers/usb/bind
After this manipulation I am able to use my PEAK-CAN USB FD

Does anybody have any idea, why it not working properly?

M.Heidemann
Sales & Support
Sales & Support
Posts: 673
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN_USB FD Connection under VM

Post by M.Heidemann » Wed 17. Mar 2021, 15:18

Hello,

We do not support the use of the PCAN-Linux driver in VM-Environments, so
we can only give suggestions which you may try.

Our devices are regular USB 2.0 devices, i am not sure how well
the virtual 3.1 controller handles this.

Have you tried configuring your USB-Controller as a 2.0 controller as of yet?

Please report back to us regarding this.

Best Regards

Marvin

Nukerss
Posts: 2
Joined: Tue 16. Mar 2021, 20:50

Re: PCAN_USB FD Connection under VM

Post by Nukerss » Tue 23. Mar 2021, 21:22

Hello Marvin,

Thank you for your reply.
M.Heidemann wrote:
Wed 17. Mar 2021, 15:18
Hello,

We do not support the use of the PCAN-Linux driver in VM-Environments, so
we can only give suggestions which you may try.

Our devices are regular USB 2.0 devices, i am not sure how well
the virtual 3.1 controller handles this.

Have you tried configuring your USB-Controller as a 2.0 controller as of yet?
Yes. And when my VM Ware Workstation Pro 16.0 with Ubuntu Linux runs under Windows - there are no described behaviour.
M.Heidemann wrote:
Wed 17. Mar 2021, 15:18
Have you tried configuring your USB-Controller as a 2.0 controller as of yet?
Yes.

M.Heidemann
Sales & Support
Sales & Support
Posts: 673
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN_USB FD Connection under VM

Post by M.Heidemann » Wed 24. Mar 2021, 11:53

Hello,

We had some success with VirtualBox instances for
testing, you may try a VirtualBox instance and see if
that'll work out for you.

As mentioned before, we do not support VM-environments
and can only share some tips from our own experience here.

Please let us know, if this worked out for you

Best Regards

Marvin

Post Reply