Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kinect 1414 Could not open device #501

Closed
LewisErick opened this issue Apr 13, 2017 · 9 comments
Closed

Kinect 1414 Could not open device #501

LewisErick opened this issue Apr 13, 2017 · 9 comments
Labels
Milestone

Comments

@LewisErick
Copy link

LewisErick commented Apr 13, 2017

Hi there! I'm currently using Mac OS X El Capitan 10.11.5 with Kinect Model 1414 to run freenect-glview, however it always gives me this error:

Kinect camera test
Number of devices found: 1
Failed to open motor subddevice or it is not disabled.Failed to open audio subdevice or it is not disabled.Could not open device

The config I used to build and install it from source is the following:

BUILD_AS3_SERVER:BOOL=OFF
BUILD_CPP:BOOL=ON
BUILD_CV:BOOL=OFF
BUILD_C_SYNC:BOOL=ON
BUILD_EXAMPLES:BOOL=ON
BUILD_FAKENECT:BOOL=ON
BUILD_OPENNI2_DRIVER:BOOL=OFF
BUILD_PYTHON:BOOL=OFF
BUILD_PYTHON2:BOOL=OFF
BUILD_PYTHON3:BOOL=OFF
BUILD_REDIST_PACKAGE:BOOL=OFF
CMAKE_BUILD_TYPE:STRING=debug
CMAKE_INSTALL_PREFIX:PATH=/usr/local
CMAKE_OSX_ARCHITECTURES:STRING=
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
CMAKE_OSX_SYSROOT:STRING=
GLUT_cocoa_LIBRARY:FILEPATH=/System/Library/Frameworks/Cocoa.framework
LIBUSB_1_INCLUDE_DIR:PATH=/usr/local/include/libusb-1.0
LIBUSB_1_LIBRARY:FILEPATH=/usr/local/lib/libusb-1.0.dylib

The lsusb gives me the following:

Bus 029 Device 010: ID 045e:02ae Microsoft Corporation Xbox NUI Camera  Serial: A00362A12109049A
Bus 029 Device 008: ID 045e:02b0 Microsoft Corporation Xbox NUI Motor 
Bus 029 Device 009: ID 045e:02ad Microsoft Corporation Xbox Kinect Audio, © 2011 Microsoft Corporation. All rights reserved.  Serial: A44882D14248049A

It does work with freenect-camtest and freenect-regview

@piedar
Copy link
Contributor

piedar commented Apr 13, 2017

The code that opens the motor ought to print out an error if it fails. But apparently it's not even finding the motor subdevice - maybe libusb_get_parent() is not working on your platform?

@LewisErick
Copy link
Author

Indeed, I checked at runtime that the libusb_get_parent() function is giving me NULL.
Does that have to do with libusb itself or am I missing something?

LIBUSB_1_INCLUDE_DIR:PATH=/usr/local/include/libusb-1.0 LIBUSB_1_LIBRARY:FILEPATH=/usr/local/lib/libusb-1.0.dylib

I installed libusb using Macports like the README said:
sudo port install git-core cmake libusb libtool

@LewisErick
Copy link
Author

LewisErick commented Apr 14, 2017

I've looked more into it and it seems that the parent of the device of the camera is non existent.
Could you please tell me what should the libusb_get_parent(camera) should give me in terms of its description (vendor id and product id)?

@LewisErick
Copy link
Author

So at the end I made a workaround which detected the motor and sensor from the camera not by its parent but by the match in the vendor ID. This workaround is not perfect as it does not consider the possibility of two or more Kinects connected at the same time, but that itself is not an issue in what I'm working on. Thanks!

https://github.com/LewisErick/libfreenect/blob/master/src/usb_libusb10.c

@FranciscoG
Copy link

FranciscoG commented May 25, 2017

having this exact same freenect-glview issue
I'm on OSX 10.11.6

I'm hoping that this could be resolved without me having to build it locally.

@piedar piedar added the Bug label May 31, 2017
@piedar piedar added this to the v0.5.6 milestone May 31, 2017
@piedar piedar closed this as completed in 6943a00 May 31, 2017
@piedar
Copy link
Contributor

piedar commented May 31, 2017

Fixing incoming! Please try the latest and reopen if the issue persists.

brew reinstall --HEAD libfreenect

piedar added a commit that referenced this issue May 31, 2017
Signed-off-by: Benn Snyder <benn.snyder@gmail.com>
@FranciscoG
Copy link

brew installed at HEAD and still the same issue :-(

@piedar piedar reopened this May 31, 2017
@piedar
Copy link
Contributor

piedar commented Jun 1, 2017

Turns out a more careful analysis was necessary: (2ce5bd3). Please report results!

@FranciscoG
Copy link

works for me now!! thank you!

@piedar piedar closed this as completed Jul 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants