PaulStoffregen / USBHost_t36

USB Host Library for Teensy 3.6 and 4.0
167 stars 86 forks source link

Only one MIDI Device found per USB Peer #135

Open rnixx opened 3 months ago

rnixx commented 3 months ago

Hi,

I'm trying to connect a USB peer device which provides 4 MIDI devices. Unfortunately only the first MIDI device provided by peer is found/instantiated properly.

Instantiation of the MIDI devices is done as follows:

USBHost usbhost;
USBHub hub_1(usbhost);
MIDIDevice midi_1(usbhost);
MIDIDevice midi_2(usbhost);
MIDIDevice midi_3(usbhost);
MIDIDevice midi_4(usbhost);

Does the actual implementation even support multiple MIDI devices from a single peer device? If so, what am I doing wrong?

Thanks for your help.

insolace commented 3 months ago

I’m not familiar with the specifics of the host code on teensy, but it sounds like you’re connecting a USB device that implements four “ports” or “virtual cables”. If this is the case then you need to parse the cable codes, which are in the first byte of the USB MIDI packet. On Jun 29, 2024, at 11:04 AM, Robert Niederreiter @.***> wrote: Hi, I'm trying to connect a USB peer device which provides 4 MIDI devices. Unfortunately only the first MIDI device provided by peer is found/instantiated properly. Instantiation of the MIDI devices is done as follows: USBHost usbhost; USBHub hub_1(usbhost); MIDIDevice midi_1(usbhost); MIDIDevice midi_2(usbhost); MIDIDevice midi_3(usbhost); MIDIDevice midi_4(usbhost);

Does the actual implementation even support multiple MIDI devices from a single peer device? If so, what am I doing wrong? Thanks for your help.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>