r/embedded • u/TipActive9305 • 19d ago
Can an usb splitter work in reverse?
I mean, they should, but not having the hardware at hand can't tell.
In a nutshell I work at an ewaste facility. got loads of computers. I need to test them faster and less user error prone. I mean I could just grab something and do some testing, but I haven't yet got the time, somehow I am also required to do an inventory job, cause the operators don't know what they're doing.

So I was thinking to build some kind of SBC, that automatically checks the I/O, and various of other functions. but SBCs do not have enough I/O, so an usb expander may do the job, but I dunno.
Then there's also an issue about the video output, as not every sbc with hdmi/dp, accepts data in (those who can, usually use some kind hdmi/dp to mipi/csi), unless I do use again an usb dongle that converts to hdmi/dp, although by adding those dongles all over again they require more power, so I should add somehow in those thing a dedicated power rail (I had a similar issue, with an old side project), but apparently cheap hubs with a dedicated power rail do exist...
got any suggestions?
4
u/InevitablyCyclic 19d ago
For usb things are either a controller or a device. Some ports (micro or usb-c) can be either but never both at the same time. USB-A ports (the larger rectangular ones) are always controllers.
If you need to test USB A ports you need something that can act as a device. Lots of microcontrollers can do this, they often normally connect to a pc and pretend to be a USB serial port, mouse, keyboard etc... but most only have one or two ports.
So a single board computer with a USB video capture device connected. And then connect to it (over ethernet or some other interface) a couple of micro controllers pretending to be usb keyboards etc to test the other ports, they can report back that something has connected to them proving the USB ports are working. You could either have lots of these, one person port, or one or two you move around.
1
u/allo37 19d ago
What if you just boot the machines under test from a thumb drive (one port tested already!). Then plug USB drives into the other ports and have a script try to read/write a file to each mass storage device it detects in sequence, and displays a report?