I'm working on a project where I'd like to make a USB 3.0 port dual use and I'd like to use a BUS switch IC and arduino to decide if what's plugged in is a USB device or other IO device, so if it finds a device descriptor, it'll put it on the USB BUS, otherwise it'll route pins to the IO.
I understand it's not the best idea in the world and open to a lot of problems, but since I anticipate a very limited number of devices to be connected I think it'd be safe enough. The VCC and GND pins would be the same either way.
I've tried to search based on this criteria but found very little in just determining a valid USB device is connected. Looking for pull down/ups wouldn't work as any of the IO could have these.
What would that "USB BUS switcht" look like? USB is not a BUS.
The Arduino default USB port is a client. To connect to I/O things a Server USB is needed.
Thanks.. but I know all that. I was looking to see if a known mechanism/method to detect a USB device other than pull up/down resistor on the data lines was available really.
Of course I could use something like a raspberry pi to "see" a USB device and then send my target device a signal to say "hey, I found a USB device" but the reason I'm asking here is that something like that is well over the top for what I want to achieve. An arduino that could be the middle man would be great. If it's not something an arduino can do, I'll explore other avenues.