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 gadget mode #106

Open
fayep opened this issue Apr 7, 2021 · 5 comments
Open

USB gadget mode #106

fayep opened this issue Apr 7, 2021 · 5 comments

Comments

@fayep
Copy link

fayep commented Apr 7, 2021

I just got the MiSTer PI hat and it is great in regular cores but it does not appear in eg. ScummVM or Basilisk. If I could plug a USB cable from the MiSTer USB (not user) port to the Pi directly and have it detected as a MIDI class device directly using USB gadget mode that would be amazing. It seems like overkill to need to purchase and attach 2 USB to MIDI adaptors, one to the Mister and one to the Pi so that they can exchange data. I think this would also render the the MT32 PI instantly usable with other devices compatible with USB midi.
https://github.com/atomic-penguin/linux/blob/master/drivers/usb/gadget/f_midi.c might be a good starting place?

@dwhinham
Copy link
Owner

dwhinham commented Apr 7, 2021

The real place to request this would be rsta2/Circle, and it was brought up already here rsta2/circle#11 and here rsta2/circle#202

I agree this would be a nice idea, but I just don't have the skills/experience to do it and it would be an enormous amount of work - the RPi USB interface has no public documentation so we're pretty lucky to have it working at all under baremetal.

As a workaround for the MiSTer use case I do have network MIDI (RTP-MIDI/AppleMIDI) almost working, so with a little bit of extra software on the MiSTer Linux side it might be possible to do things that way.

@fayep
Copy link
Author

fayep commented Apr 7, 2021

Only if you are using a PI B or plug a USB ethernet in though? I will take a look at this at the weekend and see how much work is involved. Thanks for the pointer to Circle

@dwhinham
Copy link
Owner

dwhinham commented Apr 7, 2021

No, it'll support Wi-Fi too which the 3A+ has - I've actually had some very good results so far in my testing with Wi-Fi re: latency, much better than I expected.

No problem - if Circle did end up picking up gadget mode support I'd jump on supporting it here too, of course; would be a nice touch.

@fayep
Copy link
Author

fayep commented Apr 8, 2021

So I've found this http://www.isticktoit.net/?p=1383, so at least we know there's stuff working with relatively modern kernels. That should make things a little easier, hopefully.

@c0d3h4x0r
Copy link

Any more information on this? I would love to be able to use my MiSTer mt32-pi with my PC or RetroPie via just a USB cable.

loki666 referenced this issue in probonopd/MiniDexed Nov 29, 2023
* Initial attempt to include USB Gadget Mode as a configuration option.  Note: Also requires a move to the latest release of circle.

* Set "official" (as allocated from pid.codes) USB vendor and device ID for MiniDexed
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

3 participants