USBTINY not recognized under vmware

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
vlatko
 
Posts: 4
Joined: Fri Dec 04, 2009 6:44 am

USBTINY not recognized under vmware

Post by vlatko »

Hello,

I have a problem with usbtiny. I have a vmware fusion under macosx. Everything works fine except when I plug in the usbtiny I get the message "USB device not recognized". Other USB devices work fine (usb memory, external disk...etc.).
This also happens on my other mac with vmware. I have also tryed it on PC, and it works!
Any ideas?

thanx
Last edited by vlatko on Fri Dec 04, 2009 1:46 pm, edited 1 time in total.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: USBTINY not recognized under vmware

Post by adafruit »

why not just run the usbtiny under the mac OS or windows? why complicate it with virtualization? :(

User avatar
vlatko
 
Posts: 4
Joined: Fri Dec 04, 2009 6:44 am

Re: USBTINY not recognized under vmware

Post by vlatko »

because I like to use bascom, and there is no bascom for mac...:)

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: USBTINY not recognized under vmware

Post by adafruit »

can you make the .hex file in bascome and then use the native mac to program it?

User avatar
vlatko
 
Posts: 4
Joined: Fri Dec 04, 2009 6:44 am

Re: USBTINY not recognized under vmware

Post by vlatko »

sure I can, but.....why doesn't it work????

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: USBTINY not recognized under vmware

Post by adafruit »

virtualization is not the same as running it directly on the hardware

User avatar
len17
 
Posts: 394
Joined: Sat Mar 14, 2009 7:20 pm

Re: USBTINY not recognized under vmware

Post by len17 »

I've had spotty luck with USB devices in virtual machines (VMWare and others). Some devices work, some don't and some have mysteriously stopped working. :-(

User avatar
vlatko
 
Posts: 4
Joined: Fri Dec 04, 2009 6:44 am

Re: USBTINY not recognized under vmware

Post by vlatko »

You are right that virtualization is not the same as the real thing, but things like this make me go mad.....I wish I could understand the problem...

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: USBTINY not recognized under vmware

Post by adafruit »

its essentially the same reason you cant just translate a book by looking up each word in the dictionary. virtualization software is just not designed to virtualize hardware

Entropy
 
Posts: 472
Joined: Tue Jan 08, 2008 12:43 am

Re: USBTINY not recognized under vmware

Post by Entropy »

Len17 wrote:I've had spotty luck with USB devices in virtual machines (VMWare and others). Some devices work, some don't and some have mysteriously stopped working. :-(
Same here. In theory "USB passthrough" shouldn't be too difficult, but there are a number of cases where I've tried it and weird things happened.

I remember in at least one case with QEMU and some USB device (don't remember which), attempting to use the USB passthrough feature resulted in both guest and host becoming mostly unresponsive.

User avatar
nkhorman
 
Posts: 4
Joined: Sun Jan 11, 2009 9:17 pm

Re: USBTINY not recognized under vmware

Post by nkhorman »

I know this is an old thread, but for those that might be having problems using usbtiny with vmware, I found the following solution to be successful.

My symptoms were that;
Plugging the usbtiny into my mac would pop the "select what machine the device should be attached to" dialog.
After selecting the vm, and watching "device manager", I would catch a glimpse of the device showing up and then disappearing.

Based on the following KB article;
http://kb.vmware.com/selfservice/micros ... Id=1025256

The problem was revealed by the vm's log file;

Code: Select all

2013-09-02T20:18:04.163-06:00| vmx| I120: USB: Connecting device 0x2000000717810c9f
2013-09-02T20:18:04.164-06:00| vmx| I120: USB: Found device [name:Multiple\ Vendors\ USBtiny vid:1781 pid:0c9f path:13/15/1/2 speed:low family:vendor virtPath:usb:2 arbRuntimeKey:7 version:2], connected to [Virtual Hub 1, Port 1]
2013-09-02T20:18:04.165-06:00| vmx| I120: USB: Found device [name:Multiple\ Vendors\ USBtiny vid:1781 pid:0c9f path:13/15/1/2 speed:low family:vendor virtPath:usb:2 arbRuntimeKey:7 version:2], connected to [Virtual Hub 1, Port 1]
2013-09-02T20:18:05.779-06:00| vmx| I120: USBGA: device id: 2000000717810c9f disconnected from host
2013-09-02T20:18:05.779-06:00| vmx| I120: USB: device:2000000717810c9f disconnected
2013-09-02T20:18:05.781-06:00| vmx| I120: USB: Found device [name:Multiple\ Vendors\ USBtiny vid:1781 pid:0c9f path:13/15/1/2 speed:low family:vendor virtPath:usb:2 disconnected:1 arbRuntimeKey:7 version:2], connected to [Virtual Hub 1, Port 1]
I fixed the problem as follow;
I "Shutdown" the virtual machine
Stopped VMWare Fusion
Edited the the machines .vmx file, and added;

Code: Select all

usb.quirks.device0 = "0x1781:0x0c9f skip-reset"
Everything worked like a charm after that.
I was able to install the usb windows drivers for the usbtiny, and avrdude and Arduino 1.0.5 both recognized and used the it.

P.S. I'm using VMWare Fusion 5.0.3 and OS X 10.9 (13A558) BANNED beta pre-public developer release

Cheers

conorpower
 
Posts: 1
Joined: Thu Mar 20, 2014 4:07 pm

Re: USBTINY not recognized under vmware

Post by conorpower »

Follow what NK Norman suggests. If this does still not work, shut down the virtual machine. Then on the Mac, right click on the vmware alias to open the "virtual machine library". Right click on the window that is displayed and click "settings".

Under "Removable Devices" left click on "USB &Bluetooth" then select "Advanced USB Options". Tell the machine what to do when a new USB device is plugged in. That is, the correct box is "Connect to this virtual machine".

Reopen the virtual machine. You should be fine, but, make sure you have the correct drivers. If you don't have the correct drivers, download them from the link provided by adafruit. Then open Device Manager where you will see usbtiny or similar and you can update the drivers.

User avatar
robstar
 
Posts: 9
Joined: Mon Jan 12, 2015 5:09 pm

Re: USBTINY not recognized under vmware

Post by robstar »

(update from the future, so folks know this thread isn't obsolete)

NK Norman's suggestion worked for me for Ubuntu 14.04 LTS under OSX Yosemite (10.10.1)

i might've had to unplug and re-plug, but eventually it worked.

to actually use the device, you might need to change the unix permissions to allow your user access. the following may help:

Code: Select all

$ sudo chmod a+rw /dev/bus/usb/$(lsusb | grep '1781:0c9f' | cut -d: -f1 | cut -d' ' -f2,4 --output-delimiter=/)
Thanks!

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”