-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add a method to get a serial number from a device #554
base: master
Are you sure you want to change the base?
Conversation
piedar
commented
Mar 23, 2018
•
edited
Loading
edited
@piedar thank you so much! I wish I could say I was close, but looking at the changes here...clearly not! I have some out of town visitors so probably won't be able to test this until late tonight or tomorrow. I will try and back-port this as an external method (I'll need to spend a little more time with the code base first) so that pre v0.6.1 installations can still grab this if desired since that's what's packaged for most linux distributions. If I get that working I'll make sure to link a gist here! |
@svenevs It will be good to get this tested more. I only verified it working with model 1414, and the others will possibly need audio firmware loaded before the call for it to work. It might be tricky to backport as an external method because it required a fair bit of internal refactoring. The biggest hurdle was solved by adding Also, I was considering making the API call more generic, like
so other attributes (VID, PID, etc) can be included in the future. It's a little messier to make sure everything gets freed though. |
Righto, I'll report back when I can install / run cam test.
I see, I think this closes the gap in my confusion. Basically, prior to this addition getting this information is shaky / unreliable (or even impossible).
I think given the changes here this would make sense to do. AKA if the topic of the PR changes / takes longer to merge and get the others in, I'm happy to help test! But I don't think I understand enough to actually help implement the other attributes... |
Hi @piedar, Sorry for the long delay here. TBH I'm really disappointed with myself right now. I can build $ ./bin/freenect-glview
Kinect camera test
Skipping Kinect v2 device (needs https://github.com/libfreenect2).
Skipping Kinect v2 device (needs https://github.com/libfreenect2).
Number of devices found: 1
Found sibling device [same parent]
Failed to set the LED of K4W or 1473 device: LIBUSB_ERROR_IO
Found sibling device [same parent]
Could not open device: LIBUSB_ERROR_IO
Could not open device This is the third time I've retried this in hopes to compile your PR and check what's going on. Do you have any advice as to why I would not be able to run the manually compiled executables? |
@svenevs That's very strange indeed. I'll suggest trying a couple older versions like |
Signed-off-by: Benn Snyder <[email protected]>
Signed-off-by: Benn Snyder <[email protected]>
Signed-off-by: Benn Snyder <[email protected]>
Signed-off-by: Benn Snyder <[email protected]>
Signed-off-by: Benn Snyder <[email protected]>