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

USB MIDI Host with HUB Problems #2

Open
DatanoiseTV opened this issue Jan 16, 2019 · 2 comments
Open

USB MIDI Host with HUB Problems #2

DatanoiseTV opened this issue Jan 16, 2019 · 2 comments

Comments

@DatanoiseTV
Copy link

I'm working on USB MIDI Host support with a USB hub and I cannot get the device to enumerate properly. I have ported changes from the USB Host Shield Library 2.0.

Here are my changes:
https://github.com/DatanoiseTV/USB_Host_Library_SAMD

Any hints?

@gdsports
Copy link
Owner

I just verified the USB hub fixes from felis/USB_Host_Shield_2.0#414 work on the USB Host Shield. I will see why they do not work on SAMD.

@billmoser
Copy link

billmoser commented Jul 3, 2020

_EDIT: Never mind. I don't know what's going on, but today, the original lib (gdsports) works fine, although enumeration is slow. _

I had this issue also. The in particular, the example in USBH_MIDI/USB_MIDI_converter_multi only worked for me if I had a single controller on the hub. I used @DatanoiseTV's fork, and everything works ok reading midi from two controllers. For a project I'm working on (not yet in github) I need to be able to write the devices as well. Here things did not go so well, even with @DatanoiseTV's changes, until I refactored the example code to wait in setup() for the devices to be ready before going into reads/writes in loop(). Even so, it takes about 45 seconds for my devices (Source Audio guitar effects pedals) to be ready to go into the read/write loop, which seems excessive. I forked your repo, and then merged in @DatanoiseTV's changes, so my fork is current with your repo. Let me know if you want me to do a pull request. BTW, Thanks for doing this port of @felis's UHS2! My goal was to be able to debug/test an Arduino Uno using UHS2, and deploy with your SAMD port on my Trinket M0, and that looks like it's going to work out at this point.

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

3 participants