structureio / OpenNI2

OpenNI2
Apache License 2.0
981 stars 449 forks source link

usb transfer timeout #78

Open rhetr opened 8 years ago

rhetr commented 8 years ago

Running ubuntu 15.04 x64, trying to read from a structure sensor. I compiled openni2 from source and added export $OPENNI2_INCLUDE=$OPENNI_PATH/Include to my ~/.profile, but I can't get any of the sample programs (SimpleRead, SimpleViewer) to run at all. I keep getting this error:

After initialization:

SimpleViewer: Device open failed:
    Could not open "1d27/0600@2/9": USB transfer timeout!

I also tried running it with sudo but had the same results. How do I fix this issue?

rhetr commented 8 years ago

If I run a program immediately after plugging in the structure sensor it works, but after I exit the program I have to replug it in before it works again.

pincy commented 8 years ago

Any updates on this? Even removing and replugging doesn't help. The only message i ever get is: USB transfer timeout!

The structure sensor shows up properly on lsusb Bus 002 Device 037: ID 1d27:0600 ASUS

oroulet commented 8 years ago

exactly same issue on ubuntu 16.04 here. The same sensor works on other PCs with same version of openni2 but older linux versions...

Mowalle commented 7 years ago

I can report the same issue on two different machines running Arch Linux x64 when trying to use the Structure Sensor. OpenNI2 was installed from the AUR. The workaround mentioned by @rhetr with immediately starting a programme after plugging in the device is working. You have about 1-2 seconds before the error occurs.

oroulet commented 7 years ago

Usually that kind of issue is another driver or program using the device, but I cannot find which one. In my case it is only one out of 5 PCs (same distribution version), but would be great to find out what is happening...

smichaud commented 7 years ago

Hi, I had the same issue with Linux mint 17 (ubuntu 16.04) and the Structure Sensor. Thank to @rhetr , at least I cant work with the sensor by replugging it everytime...

Schroedi commented 7 years ago

I do experience the same issue on Android. The sensor only works if I start the application automatically when the sensor is plugged in.

On Linux, I use the addDeviceConnectedListener. Otherwise, I also have to plug in the sensor immediately before the application starts.

Is there any progress in this regard? Does the sensor expect some commands directly after it is plugged in?

jlamperez commented 6 years ago

Someone has progressed in this issue? I am having the same behaviour...

Thanks!