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

GTB returns zeros #8

Open
MusicMaker opened this issue Feb 22, 2024 · 6 comments
Open

GTB returns zeros #8

MusicMaker opened this issue Feb 22, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@MusicMaker
Copy link

As discussed on Microsoft Discord about a custom MIDi 2.0 device that showed zeros for the GTB in Workbench. There was some doubt about the device. Due to lack of any peer device, tried a Linux USB MIDI 2.0 gadget.

A. How to reproduce:

  • Ubuntu 23.10 updated with 6.7.5 kernel and USB gadget support
  • Gadget created for MIDI 2.0
  • Workbench report as follows:

image

image

B. A tool to read the GTB descriptors with libusb returns a correct GTB for the gadget:

image

C. Conclusion : would think there is an issue in Workbench.

@starfishmod
Copy link
Member

Can you please send through the commands you used to create the Linux Gadget?
This will help in replicating the issue.
Thanks

@starfishmod
Copy link
Member

I just tried to replicate your issue using a MIDI 2 Gadget and I get:
image

It seems I'll need your script to create the Linux Gadget to replicate this issue.

@MusicMaker
Copy link
Author

MusicMaker commented Mar 12, 2024

Just upgraded to Ubuntu 23.10, Kernel 6.8

Tried the gadget from the USB Linux page. Script attached.

midi2_gadget.sh.txt

it curious why the config descriptors isn't parsed correctly.

image

Add the lsusb log for the gadget:

gadget_log.txt

@MusicMaker
Copy link
Author

Any further ideas?

@starfishmod
Copy link
Member

Ok I finally found some of the issue around this.
When I connect:

  • Linux Gadget -> OSX = Working as expected
  • Linux Gadget -> Linux = (After small fix) Mostly Working - Getting GTB's seems to be odd. I think I might have a race condition
  • A88-MK2 -> OSX = Working as expected
  • A88-MK2 -> Linux = Same Issue as Linux Gadget

I will keep investigating - however it may be an unsolvable issue for Linux host.

@starfishmod starfishmod added the bug Something isn't working label Mar 18, 2024
@starfishmod
Copy link
Member

Ok I had disabled the getting GTB infomation over LibUSB where the MIDI 2.0 Kernel is used as it always causes an error. See node-usb/node-usb#749

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants