Hi all,
I'm experimenting with creating a semi universal USB (host) to midi/cv converter with the teensy 3.6 with 4 port usb hub. The first thing I'm not sure how to approach is to detect if/what device is attached. Here are my questions:
- Is it possible to do hot swapping of USB devices? (I did read something about this in the source code I thought).
- Is it possible to autodetect what type, or even specific device is connected, and on what port (what function can give me this info if possible?).
- Should I create all possible instances of USB devices up front, or is it possible to dynamically create them upon connect?
The idea I'm working on is to give each usb device a couple of "apps" that translate the received data into generic midi or cv.
For example:
A Launchpad is connected and detected by the teensy 3.6 > choose a (launchpad specific) app - step-sequencer, mixer, synth, etc > app does it's work. Repeat for all attached USB devices.
Thx for the great work on Teensy and support on this forum!
I'm experimenting with creating a semi universal USB (host) to midi/cv converter with the teensy 3.6 with 4 port usb hub. The first thing I'm not sure how to approach is to detect if/what device is attached. Here are my questions:
- Is it possible to do hot swapping of USB devices? (I did read something about this in the source code I thought).
- Is it possible to autodetect what type, or even specific device is connected, and on what port (what function can give me this info if possible?).
- Should I create all possible instances of USB devices up front, or is it possible to dynamically create them upon connect?
The idea I'm working on is to give each usb device a couple of "apps" that translate the received data into generic midi or cv.
For example:
A Launchpad is connected and detected by the teensy 3.6 > choose a (launchpad specific) app - step-sequencer, mixer, synth, etc > app does it's work. Repeat for all attached USB devices.
Thx for the great work on Teensy and support on this forum!