Page 1 of 1

How to connect multiple USB devices

Posted: 30. Dec 2012, 07:06
by sebaslg1984
Hi,

I'm trying to connect 2 usb devices and get them up n running at the same time in my VM (Ubuntu 11.10).

Until now, I've been able to use just one at the time, but not both.

I have created the filters properly (I just had to add the filter when I plugged the devices).

If I have the 2 devices plugged, just one of 'em will work and if I unplug this device then the other one works (I ran "dmesg" multiple times to see this).

As a wild guess, I think there may be something wrong with the usb enumeration. any way, Im kind of new on this. :oops:

I would appreciate some help or guide on this matter.

Thanks in advance for the help.

Sebastian

Re: How to connect multiple USB devices

Posted: 30. Dec 2012, 13:05
by mpack
Are these two identical devices, or two different devices? If the former then the problem is that VBox has no way to tell them apart using the filter(s) you provided. ps. I think you need one filter per device.

Re: How to connect multiple USB devices

Posted: 30. Dec 2012, 20:48
by sebaslg1984
They are different devices:
- A serial-usb converter.
- A development board connected via USB.

I have a filter per device.

Thanks!

Re: How to connect multiple USB devices

Posted: 31. Dec 2012, 01:15
by mpack
If they are different devices and each has its own filter then I know of no reason why they shouldn't both be working.

The "development board connected via USB" I would expect to be unreliable in a VM regardless of whether it's the first device or the 100th. I assume its a JTAG-ICE adapter and therefore too finicky about timing to be used in a VM.

Re: How to connect multiple USB devices

Posted: 2. Jan 2013, 18:10
by sebaslg1984
Well in fact, I was able to use the development board (DB) via USB.

The whole think should work as follows:

In one terminal I log to the DB via Serial Port (serial-usb converter), and a particular boot menu brings up, where I choose an option to download files to the board via usb. after choosing this option, it looks for a usb device connected to the board and waits for the tranfer.

In another terminal, a specific program sends the file trough USB.

In the first terminal I can check that the transfer is done.

Since I have this issue, i have to plug the serial-converter, choose the usb download option, unplug, plug the board via usb and run the program to start transfer and hope everything goes well.

What I have noticed is that when both devices are plugged, only one of them works well and when i unplug this working device, the other one starts working properly.

Again, thanks a lot for your time!!