How to automate UUU to match both USB 2.0 and USB 3.0 port path
Dray1998 opened this issue · 5 comments
Hi,
When UUU uses "-m" to monitor USB path, it will get stuck during fastboot because the path has changed.
This is mentioned in the UUU pdf file as well:
"Notes: Some board supports super speed (USB3.0). USB 3.0 port path is difference USB 2.0. If use -m to filter port, you need add USB 3.0 port number otherwise fastboot will not be detected."
I used "uuu -lsusb" to get the USB path of my device, but it does not give the USB 3.0 port number. Currently, I'm using USB device tree viewer to get both USB 2.0 and USB 3.0 port path, but its not suitable if I want to write a script to automate this process. Different PC might have different paths, so the script has to be able to determine itself the corresponding USB 3.0 port path for each detected USB 2.0 path.
May I know if you have any suggestion for this?
using two -m option to monitor two path, -m Path1 -m path2
Hi @nxpfrankli
Thanks for the reply. Yes, I understand that uuu can monitor multiple paths, but my question is how to determine the corresponding USB 3.0 port path for each detected USB 2.0 path by "uuu -lsusb".
I use uuu -lsusb again after uuu flash.bin
to determinate usb 3.0 port. OS have not provide map info between USB 2.0 and USB 3.0 port
In a scenario of running multiple devices at the same time, it it difficult to differentiate between devices using -lsusb after uuu flash.bin, so its best if can determine it before flash.bin
I'm using USB device tree viewer to get the map info between USB 2.0 and USB 3.0 port. It provides both port chain and companion port chain, which represents USB 2.0 and USB 3.0 port path.
I noticed uuu uses the libusb library, and within it has libusb_get_ss_endpoint_companion_descriptor function. This function finds and parses the USB 3.0 endpoint companion descriptor given by endpoint. Maybe this could help uuu to determine the USB 3.0 port path changes during fastboot?
try 33f8086, added serial number filter support.