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

For Kinects with 0000000000000000 Serial No - use Audio Serial as a fallback? #360

Closed
ofTheo opened this issue Jan 22, 2014 · 4 comments
Closed
Milestone

Comments

@ofTheo
Copy link
Contributor

ofTheo commented Jan 22, 2014

This might be a good solution for K4W and 1473 Kinects.

The audio device serial should be unique and serve as a good replacement for the camera serial for the purpose of distinguishing devices.

I think we won't even need to flash firmware to get that info.

@piedar piedar modified the milestones: v0.4.1, v0.5.0 Feb 6, 2014
@piedar
Copy link
Contributor

piedar commented Feb 12, 2014

I never found a way to reliably differentiate two Kinects on different ports of the same bus. Without knowing that, you can't say for sure which Camera goes with which Audio.

You could assume that the first Camera on some bus goes with the first Audio and so on. This would work in most situations, but would be unreliable if multiple Kinects are plugged into the same bus in quick succession.

@ofTheo
Copy link
Contributor Author

ofTheo commented Feb 12, 2014

Ah yes, I noticed this as well when I was working on the motor stuff.

I guess the proper way would be to mimic what the sdk does and get the serial no via some special call.

On Feb 11, 2014, at 11:28 PM, Benn Snyder notifications@github.com wrote:

I never found a way to reliably differentiate two Kinects on different ports of the same bus. Without knowing that, you can't say for sure which Camera goes with which Audio.

You could assume that the first Camera on some bus goes with the first Audio and so on. This would work in most situations, but would be unreliable if multiple Kinects are plugged into the same bus in quick succession.


Reply to this email directly or view it on GitHub.

@zarvox
Copy link
Member

zarvox commented Feb 12, 2014

Actually, this may be possible using newer libusb features. All of the Kinects have an internal USB hub, so to match subdevices within a single physical package, you might be able to simply check if their parent device is the same 4-port hub.

http://libusb.sourceforge.net/api-1.0/group__dev.html#ga97bb4dfff6bbb897ed9dfd6fa1a1deed

Note that I haven't actually tried this yet, but it seems like it might be a good way to cleanly group subdevices.

@nguyenkools
Copy link

@ofTheo I have a kinect model 1473, and i have a problem : " Xbox Nui motor is not detected and serial number of camera is always 0000000000". Can you show me how to solve this problem.? i wanna my laptop detect it with other serial number (different from 000000000) .
i'm working with openframeworks and libfreenect on windows 7.
thank you for help me!

olzhas added a commit to olzhas/libfreenect that referenced this issue May 29, 2014
@piedar piedar closed this as completed in fb2b056 Jul 19, 2014
yarikoptic added a commit to yarikoptic/libfreenect that referenced this issue Feb 14, 2015
libfreenect v0.5.0 Satellite

* tag 'v0.5.0': (44 commits)
  Fix stupid comparison mistake in audio serial fallback
  Update CMakeList.txt and ebuild for v0.5.0
  c_sync: Collapse unused functions
  Configure audio support at runtime - fixes OpenKinect#372
  Use audio serial as a fallback for K4W and 1473 models that do not provide a useful camera serial (thanks @olzhas). Fixes OpenKinect#360 and resolves OpenKinect#393.
  Remove legacy keep_alive.c; now require libusb >= 1.0.18
  c_sync: Add freenect_sync_camera_to_world() (thanks @martyvona) - fixes OpenKinect#294
  Fix a crash-on-exit in the OpenNI2 driver caused by using a deleted iterator.
  Cleanup imports in examples; also fixes a micview compile error on OS X.
  Allow freenect_set_tilt_degs to take a negative angle
  Update CMakeLists.txt for v0.4.3
  win32: Fix command in examples/CMakeLists.txt
  ebuild: Improve python dependency - fixes OpenKinect#391
  Standardize indentation in fnusb_open_subdevices
  Use non-infinite timeouts for bulk tilt / led commands Reset the audio device before using it to ensure the commands can be sent correctly Fixes OpenKinect#390
  Update README.md and CMakeLists.txt for v0.4.2
  Fix fakenect not handling freenect_process_events_timeout
  FN_DEBUG: print read_register and read_cmos_register replies
  Fix cmake module include order Fix cpack user option on linux Separate cpack options for different generators and add tgz generator Add cmake config file Fixes OpenKinect#355
  wrappers/python: update freenect.c - fixes OpenKinect#326
  ...
yarikoptic added a commit to yarikoptic/libfreenect that referenced this issue Feb 14, 2015
* dfsg: (84 commits)
  Fix stupid comparison mistake in audio serial fallback
  Update CMakeList.txt and ebuild for v0.5.0
  c_sync: Collapse unused functions
  Configure audio support at runtime - fixes OpenKinect#372
  Use audio serial as a fallback for K4W and 1473 models that do not provide a useful camera serial (thanks @olzhas). Fixes OpenKinect#360 and resolves OpenKinect#393.
  Remove legacy keep_alive.c; now require libusb >= 1.0.18
  c_sync: Add freenect_sync_camera_to_world() (thanks @martyvona) - fixes OpenKinect#294
  Fix a crash-on-exit in the OpenNI2 driver caused by using a deleted iterator.
  Cleanup imports in examples; also fixes a micview compile error on OS X.
  Allow freenect_set_tilt_degs to take a negative angle
  Update CMakeLists.txt for v0.4.3
  win32: Fix command in examples/CMakeLists.txt
  ebuild: Improve python dependency - fixes OpenKinect#391
  Standardize indentation in fnusb_open_subdevices
  Use non-infinite timeouts for bulk tilt / led commands Reset the audio device before using it to ensure the commands can be sent correctly Fixes OpenKinect#390
  Update README.md and CMakeLists.txt for v0.4.2
  Fix fakenect not handling freenect_process_events_timeout
  FN_DEBUG: print read_register and read_cmos_register replies
  Fix cmake module include order Fix cpack user option on linux Separate cpack options for different generators and add tgz generator Add cmake config file Fixes OpenKinect#355
  wrappers/python: update freenect.c - fixes OpenKinect#326
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants