usb camera not working (discard urb errors)

Hi,
first of all, thx a lot for your nice work.

i'm trying to get an usb camera to work with virtualhere but i keep getting some errors.
i'm running vh server on my ubuntu desktop (x64), and the client on windows 7 x64 in a vmware guest on the same host.

the general config looks fine, i can get a flashdrive to work properly and get around 4MB/s transfer speed when reading from the flashdrive through your win7 client.

When i use my usb camera i can see it in the client, it doesn't have a name but i see the vendor or product id, and when connected it seems to be properly identified by win7 (same name and ids as when i connect the camera directly to that win7).

But when i open yawcam to see a live picture, i get nothing in the preview, the device is recognized by the software but no image can be acquired.

here's a log from the vh server :
Sun Apr 26 18:17:06 2015 LOG_INFO >>> Starting v2.2.4 (Built: Apr 26 2015, 04:40:06)<<<
Sun Apr 26 18:17:06 2015 LOG_INFO Using default configuration config.txt
Sun Apr 26 18:17:06 2015 LOG_INFO Serial:00020003-0004-0005-0006-000700080009
Sun Apr 26 18:17:06 2015 LOG_INFO Server licensed to=unlicensed max_devices=1
Sun Apr 26 18:17:06 2015 LOG_INFO Using large URB's
Sun Apr 26 18:17:06 2015 LOG_DEBUG TCPServer starting...
Sun Apr 26 18:17:06 2015 LOG_INFO Listening on all network interfaces at port 7575
Sun Apr 26 18:17:06 2015 LOG_DEBUG TCPServer (7575) started
Sun Apr 26 18:17:06 2015 LOG_DEBUG Warning, could not open device product file /sys/bus/usb/devices/3-1/
product, Invalid argument (2)
Sun Apr 26 18:17:06 2015 LOG_INFO Found High speed device [eb1a:2761] "0xeb1a, 0x2761" at address 31
Sun Apr 26 18:17:06 2015 LOG_INFO Found High speed device [05e3:0723] "Generic , USB Storage" at addres
s 32
Sun Apr 26 18:17:06 2015 LOG_INFO Found Low speed device [045e:0039] "Microsoft, Microsoft 5-Button Mou
se with IntelliEye(TM)" at address 81
Sun Apr 26 18:17:07 2015 LOG_INFO Callback: ^WVirtualHere USB Sharing^F_vhusb^D_tcp^Elocal Name Registe
red
Sun Apr 26 18:17:29 2015 LOG_DEBUG 192.168.0.77 connected
Sun Apr 26 18:17:35 2015 LOG_INFO Device 31 BOUND to connection 1
Sun Apr 26 18:18:23 2015 LOG_WARNING Warning, discard urb(0x1d85a20) for device eb1a/2761 failed , Invalid
argument (22)
Sun Apr 26 18:18:55 2015 LOG_WARNING Warning, discard urb(0x1d85a20) for device eb1a/2761 failed , Invalid
argument (22)
Sun Apr 26 18:19:17 2015 LOG_WARNING Warning, discard urb(0x1d85c00) for device eb1a/2761 failed , Invalid
argument (22)
Sun Apr 26 18:19:24 2015 LOG_WARNING Warning, discard urb(0x1d85a20) for device eb1a/2761 failed , Invalid

the device is that one : [eb1a:2761] "0xeb1a, 0x2761" at address 31

yawcam complains about an usb device problem and tries to "restart" it over and over.

lsusb shows :
Bus 003 Device 023: ID eb1a:2761 eMPIA Technology, Inc. EeePC 701 integrated Webcam

it's not an eeepc thing but probably the same device, it's actually that one :
http://www.jeulin.fr/fr/a-a1053474-edc1000003/article/57118984-Camera-o…

the camera works also fine in the linux host using guvcview.

I have also tried using usbip but get the same problem, performance from the flashdrive is much worse with usbip though (200k/s)..

Let me know if there's a workaround or if i'm stuck with it, i can probably use a mpjeg streaming server or something..

My goal is to use it with a GL.inet device with openwrt
http://eud.dx.com/product/gl-inet-6416a-micro-usb-powered-smart-router-…

My first choice was a TL-WR703N but apparently the flash size will be too small to host vh server, i would like to avoid using a raspberry pi but i could also choose that if necessary..

thx for your comments,
eldon

#2

That hardware should be more than enough to support that camera over virtualhere at high resolution so im wondering if there is some other issue.

Just for a test is there some way you could turn down the resolution to the lowest possible. I use webcamviewer and set it to 160x120 and see if that works...

#3

thx for the quick reply

i have tested with WebcamViewer it gives me the following error :
"Cannot connect device. This device may be already in use."

i get one "discard urb" error in the server log but i've also noticed that :

Mon Apr 27 20:04:42 2015 LOG_DEBUG Warning, could not open device product file /sys/bus/usb/devices/2-3/product, Invalid argument (2)
Mon Apr 27 20:04:42 2015 LOG_INFO Found High speed device [eb1a:2761] "0xeb1a, 0x2761" at address 23

i've changed the usb port to see if it does something so now the device should be on port 2-3.

I have a debian x64 downstairs so i'll try to run the server from there as a second test.. There's always the possibility that vmware does something wrong with the host usb bus..

I will also try the client on a real windows but i only have a win8 here at the moment and don't know if your client runs on that..
and will try to run the server from a raspberry as a last test.

If you have a trusted setup (system versions) to test your server/client please let me know.
I assume you don't think that camera is amongst those special devices which require some specific usb commands ?

i'll let you know how it goes.

#4

okay tested the server and camera on my debian x64, there aren't any other usb devices on that pc.

i get the same startup debug "product" error message when the camera is plugged in.

i have tested the client in win7 x64 vmware, same thing as before.
on a win8 x64 host, i see a different device name in the manager (same device id in vh client)
when i try to play the camera in win8, either with webcamviewer or yawcam, i get a black window as usual when it does not work, butthen win8 crashed with a blue screen and a memory dump restart..

not sure what i can do more from here..

the camera has an "official" software, i will try to get it, but i suspect it's only another "webcam" viewer..
And the camera does work with those webcam softwares when plugged directly on the host.

let me know if you have any suggestions. There's another microscope camera in the classroom, so i'll try that one too when the holidays are over..

thx

#5

I think that camera will not be compatible for some unknown reason. Try the other camera and see how it goes.

The camera I use for testing is a Logitech C270. This works well with virtualhere running on all platforms (including a wireless mips router using openwrt barrier breaker)