PCAN USB in WinXP Virtualbox Instance

USB to CAN Interface
Locked
roy.emmerich
Posts: 1
Joined: Fri 27. Jan 2012, 11:31

PCAN USB in WinXP Virtualbox Instance

Post by roy.emmerich » Fri 27. Jan 2012, 12:02

I have the following setup:

Lenovo Thinkpad x201 running Win 7 64 bit. Due to 64 bit hassles with some of the development software I use, I do all my development on a virtualised 32 bit WinXP instance and everything works well.

Today I received my PCAN USB device and tried to get it running in this virtualised environment. The installation went well, however the problems started when I tried to mount/attach the PCAN USB device in the virtualised environment:
Mounting the PCAN USB device
Mounting the PCAN USB device
mount_pcan_usb_device.jpg (62.45 KiB) Viewed 21249 times
The first time I tried mounting the PCAN USB device nothing seemed to happen. I waited a bit as it normally takes a few seconds for the virtualised environment to see new USB devices. Nothing happened. I then tried mounting the device again and received the following error:
Screenshot of Virtualbox error window when mounting PCAN USB device
Screenshot of Virtualbox error window when mounting PCAN USB device
pcan_usb_error.jpg (53.85 KiB) Viewed 21249 times
I've used Virtualbox long enough to know that when you get these types of messages, the best thing is to just reboot both the guest and host operating systems. I did this twice and still the same thing happens.

Naturally, when I fire up PCAN-View in my 32 bit WinXP instance there are no available CAN devices.

Having browsed through the forums I can see that a few others are using the PCAN USB device in Virtualbox virtualised environments so I would really appreciate some help to get this working.

As an aside, mounting other USB devices in my 32 bit WinXP instance works fine, so I know the problem isn't with Virtualbox passing through the USB messages to the guest system.

As I have to use the PCAN USB device this coming Monday for an important project, I decided to install it on my Win 7 host system where it works fine.

G.Lang
Support
Support
Posts: 169
Joined: Wed 22. Sep 2010, 14:58

Re: PCAN USB in WinXP Virtualbox Instance

Post by G.Lang » Mon 30. Jan 2012, 11:16

Hi,

normally the usage of the PCAN-USB adaptor inside a virtual enviroment is not a problem. But it can not be guaranteed by us. It looks that something block the device. In the past i had an similar problem with an AMD-PC (AMD Phenom processor + AMD chipset @ Win7 64 host + Win XP guest). The problem was the "AMD usb filter driver" (for audio devices and so on). After uninstalling the "AMD usb filter driver" everythings work as expected. Maybe it´s a similar problem with your Intel powered PC. Sometimes it helps to create an empty USB filter.
usb_filter.jpg
usb_filter.jpg (85.68 KiB) Viewed 21230 times
It hope this infos are useful.

regards
Gunther

hlovik
Posts: 1
Joined: Tue 7. Aug 2012, 14:50

Re: PCAN USB in WinXP Virtualbox Instance

Post by hlovik » Tue 7. Aug 2012, 15:38

Hi roy.emmerich.

I'm having the same problems with VirtualBox (v4.1.16) with VirtualBox extension pack installed.
Did you ever get the PCAN-USB adapter working with WinXP virtualbox?

G.Lang
Support
Support
Posts: 169
Joined: Wed 22. Sep 2010, 14:58

Re: PCAN USB in WinXP Virtualbox Instance

Post by G.Lang » Wed 8. Aug 2012, 09:28

Hi ,

there´s a PCAN-USB adaptor running @Win XP 32bit under a Win 7 64bit host on my desk.

here are some details:

host: Windows 7 64bit
guest: Windows XP 32bit
CPU: AMD Phenom X6
VirtualBox version: 4.1.18
VirtualBox extension pack : 4.1.18
VirtualBox USB-2.0-Controller: not active
PCAN-USB driver version: pcan_usb.sys version 3.6.3.9864 (out of date)
AMD usb filter driver: not installed

But note: we cannot guarantee the proper function
Win XP with working PCAN-USB adaptor
Win XP with working PCAN-USB adaptor
pic1_winxp_as_virtual_machine.jpg (1.05 MiB) Viewed 21059 times
PCAN-USB adaptor at Win XP
PCAN-USB adaptor at Win XP
pic2_usb@winxp.jpg (430.77 KiB) Viewed 21059 times
VirtualBox overview
VirtualBox overview
pic3_winxp_as_virtual_machine.jpg (218.7 KiB) Viewed 21059 times
VirtualBox USB-controller settings
VirtualBox USB-controller settings
pic4_usb_settings.jpg (106.92 KiB) Viewed 21059 times
used pcan-usb driver version (outdated version, please use allways the current version)
used pcan-usb driver version (outdated version, please use allways the current version)
pic5_usb_driver.jpg (325.49 KiB) Viewed 21059 times
regards
Gunther

vagnusde67
Posts: 4
Joined: Fri 3. Aug 2012, 14:34

Re: PCAN USB in WinXP Virtualbox Instance

Post by vagnusde67 » Fri 14. Sep 2012, 10:14

HI all, I have an ASUS K53S and I'm having problem using pcan-usb with a virtual box.

Although I could use it from Ubuntu:
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 004: ID 058f:a014 Alcor Micro Corp.
Bus 001 Device 005: ID 0bda:0139 Realtek Semiconductor Corp.
Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 004: ID 04b3:310b IBM Corp. Red Wheel Mouse
Bus 001 Device 006: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
Bus 003 Device 002: ID 0c72:000c PEAK System PCAN-USB

the oracle virtual box version 4.1.12 does not show the driver among the ones available.

Do you have any idea why?

Thanks
Vincenzo

vagnusde67
Posts: 4
Joined: Fri 3. Aug 2012, 14:34

Re: PCAN USB in WinXP Virtualbox Instance

Post by vagnusde67 » Fri 14. Sep 2012, 10:16

Problem solved whatching other users screen shot. Thanks :-)

neuweiler
Posts: 1
Joined: Wed 18. Sep 2013, 21:30

Re: PCAN USB in WinXP Virtualbox Instance

Post by neuweiler » Wed 18. Sep 2013, 21:35

Found this solution on Mac thread, worked fine for me:

1) "Add filter from device"
2) Edit the filter entry and clear everything except the "Name:" field.
3) Reboot and connect the device (evtl. also reboot the host).

dhirschshell
Posts: 1
Joined: Wed 8. Mar 2017, 09:29

Re: PCAN USB in WinXP Virtualbox Instance

Post by dhirschshell » Wed 8. Mar 2017, 09:44

The method recommended by neuweiler (remove everything but the Name field in the filter for the PEAK device) *almost* worked for me, except that the next time I closed and restarted the VM, it captured *all* of my USB devices, including a USB mouse and keyboard, which was not at all desirable.

What *did* finally work for me was removing only the information from the "Product" field, as recommended in a comment on the VirtualBox forums: https://www.virtualbox.org/ticket/10309#comment:5

So far, VirtualBox has successfully captured the device under every use case I've tested (dock/undock my laptop, close/reopen the VM, etc.). I think I've *finally* got this fully solved (fingers crossed!), after at least two full days of tearing my hair out in frustration!

Locked