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

Why is libusb_set_configuration called twice? #6

Open
Noir- opened this issue Jun 1, 2020 · 1 comment
Open

Why is libusb_set_configuration called twice? #6

Noir- opened this issue Jun 1, 2020 · 1 comment

Comments

@Noir-
Copy link

Noir- commented Jun 1, 2020

I'm trying to understand the current implementation in order to add support for my Analog Rytm MKI. Is there any reason why this is called twice in a row?

ret = libusb_set_configuration(digit, 1);

Also, is there any explanation available where this magic number (1) comes from?

@droelfdroelf
Copy link
Owner

The initialization was basically copy pasted from USB sniffer logs I took with the Elektron drivers. Not sure if it is really needed to call usb_set_configuration() twice. The parameters were also taken from the sniffer logs. As for the Analog Rhythm, I remember that some of the Elektron devices run USB not at high speed (480MBit/s) but full speed only (12MBit/s), maybe they do things differently here to save bandwidth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants