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

licut_probe.cpp endpoint class_dirname not found on recent Linux kernel (or my particular distro) #1

Open
Geremia opened this issue Jul 6, 2016 · 0 comments

Comments

@Geremia
Copy link
Owner

Geremia commented Jul 6, 2016

I don't know much about Linux USB interfacing, but I'm having trouble getting the endpoint open. Line 62 of licut_probe.cpp is not correct for recent Linux kernels (or at least not for my distro, Slackware):

sprintf( class_dirname, "/sys/class/usb_endpoint/usbdev%u.%u_ep%02x/device", bus, device, test_ep );

I don't have a /sys/class/usb_endpoint/ directory. What should I use instead?

Also, I've had to apply this patch to get the USB ID / bus numbers correct:

--- a/licut_probe.cpp
+++ b/licut_probe.cpp
@@ -37,8 +37,8 @@ int LicutProbe::Open( int verbose /*= 0*/ )
        if (verbose) printf( "Opened lsusb -v\n" );
        while (fgets( buff, sizeof(buff), lsusb ) && !found_devname)
        {
-           // Pared down search from "ID 0403:6001 Future Technology Devices International"
-           if (!in_ftdi && !found_ftdi && strstr( buff, "ID 0403:6001" ))
+         // Pared down search from "ID 20d3:0011 Future Technology Devices International"
+         if (!in_ftdi && !found_ftdi && strstr( buff, "ID 20d3:0011" ))
                {
                        in_ftdi = true;
                        found_ftdi = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant