Usbutil Ver 102 New
usbutil ver 102 new dump --json | jq '.[] | vendor: .manufacturer, speed: .speed_gbps'
Previously, you needed to unplug physically. Now:
usbutil reset /dev/bus/usb/003/007
The reset command sends a USB port reset signaling, re-enumerating the device.
Send a control transfer. Options:
Example:
usbutil ctrl --device 001:004 --bmRequestType 0x40 --bRequest 0xA0 --wValue 0x0000 --data @bootload.bin
Create a udev-like script using the monitor: usbutil ver 102 new
usbutil monitor --events attach --match vendor=0x0781 | while read line; do
rsync -av /home/user/important /media/backup/
logger "Backup triggered by usbutil v102"
done
usbutil ver 102 new list -t
Read data from a device endpoint or bulk interface to file. Options:
Example:
usbutil dump --device 001:004 --endpoint 0x81 --size 65536 --out capture.bin
The new --power-stats flag polls the voltage and current delivered on each port every 200ms. For embedded developers, this flags underpowered hubs instantly.
Show detailed descriptors for a device. Options: usbutil ver 102 new dump --json | jq '
Example:
usbutil info --device 001:004
Displays: Device descriptor, configurations, interfaces, endpoints, BOS, string descriptors. Previously, you needed to unplug physically