I use libusb using the libusb_control_transfer
function to send information to a USB device.
My host is WINDOWS 10 and my guest is Ubuntu 20.04 within Vmware Workstation version 16.2.3.
The problem is that communication using the libusb_control_transfer
function is 20 times slower than I run it on Ubuntu without using vmware For example, sending 180KB takes me about 20 seconds with Vmware Workstation But when I do this without Vmware Workstation it takes 1-2 seconds.
I made sure that USB is set up correctly for me in Setting -> USB Controller.
ldd myBinary :
linux-vdso.so.1
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
/lib64/ld-linux-x86-64.so.2
My questions:
Why is using libusb_control_transfer in Vmware Workstation much slower than using it in Ubuntu without VM?
Can someone make a recommendation how to fix that?