SteveBar
Well-known member
If I missed this info in another thread feel free to point to it, I’ve been browsing and reading for several hours today and haven’t come across these answers. But learned a ton of other stuff in the search!
I’m working on a MIDI router device that bridges several “5-pin DINs” (via serial UARTs) to the “USB device port” and the “USB host ports via 4 port hub”.
I’d like to know when a device is connected/disconnected to one of the USB host ports. Is there a callback function I can register with the USB host object to be notified? Or do I need to poll it through the available() function? Or???
I know about the product string and manufacture string functions, but The device really needs to keep a list of which physical port each device is plugged into. This info is needed so the user can select routings for MIDI messages by physical port numbers. Perhaps the hub number is also needed in case an additional hub is plugged in.
I noticed the device port/hub number in the debug dump, but can’t find an easy way to get this info via a function?
Any help would be awesome. And thanks to all who are working on the USB host! Especially Paul for keeping MIDI top of mind.
I’m working on a MIDI router device that bridges several “5-pin DINs” (via serial UARTs) to the “USB device port” and the “USB host ports via 4 port hub”.
I’d like to know when a device is connected/disconnected to one of the USB host ports. Is there a callback function I can register with the USB host object to be notified? Or do I need to poll it through the available() function? Or???
I know about the product string and manufacture string functions, but The device really needs to keep a list of which physical port each device is plugged into. This info is needed so the user can select routings for MIDI messages by physical port numbers. Perhaps the hub number is also needed in case an additional hub is plugged in.
I noticed the device port/hub number in the debug dump, but can’t find an easy way to get this info via a function?
Any help would be awesome. And thanks to all who are working on the USB host! Especially Paul for keeping MIDI top of mind.