Lines Matching +full:manufacturer +full:- +full:id
2 # SPDX-License-Identifier: GPL-2.0
23 return f"{dev.bus}-{dev_path}"
69 # we have to detach the usb-storage driver from multi gadget since
124 data += self.ep_in.read(size - len(data))
138 data += self.s.recv(size - len(data))
158 if (time.monotonic() - self.stats_logged) < interval:
167 with open(f"/sys/bus/usb/devices/{dev.bus}-{dev.address}/{name}") as f:
174 vid, pid = [int(x, 16) for x in args.id.split(":", 1)]
176 print("Bus | Addr | Manufacturer | Product | ID | Path")
177 print("--- | ---- | ---------------- | ---------------- | --------- | ----")
180 manufacturer = try_get_usb_str(dev, "manufacturer") or "unknown"
183 …f"{dev.bus:3} | {dev.address:4} | {manufacturer:16} | {product:16} | {dev.idVendor:04x}:{dev.idPro…
188 vid, pid = [int(x, 16) for x in args.id.split(":", 1)]
206 parser.add_argument("--id", type=str, default="1d6b:0109", help="vid:pid of target device")
207 parser.add_argument("--path", type=str, required=False, help="path of target device")
208 parser.add_argument("-v", "--verbose", action="count", default=0)
223 …parser_connect.add_argument("-s", "--server", type=str, default="127.0.0.1", help="server hostname…
224 parser_connect.add_argument("-p", "--port", type=int, default=564, help="server port")
228 logging.TRACE = logging.DEBUG - 5
237 logging.basicConfig(level=level, format="%(asctime)-15s %(levelname)-8s %(message)s")