USB
- libusb
- gregkh/usbutils
- edge/main/x86_64/usbutils
- usb-devices
- usbhid-dump
- lsusb
- usb-modeswitch
- edge/main/x86_64/usb-modeswitch
- usb_modeswitch
- 参考
# 查看设备树
lsusb -t
# 查看单个设备
lsusb -s 2:2
# 设备详细信息
# bcdUSB USB version of the port
lsusb -s 2:2 -vvv
usbids
curl -O http://www.linux-usb.org/usb.ids
加密狗
sniffing
- Free USB Analyzer
- Wireshark USB capture
- Linux module usbmon
- USB Monitoring
usbip
-
- 新的 usbip 代码
- 2017 年似乎有些修改
-
usbip-utils
-
usbip-vhci
- 客户端内核模块
- 提供虚拟 USB Host Controller 用于从远程导入设备
-
usbip-host (stub driver)
- 服务端模块
- 提供设备驱动绑定到物理 USB 设备, 使得设备可被暴露
-
usbip-vudc
- 服务端模块
- 提供虚拟的 USB Device Controller, 将使用 USB Gadget Subsystem 创建的设备进行暴露
-
usbip-utils
- 用户空间工具
- 用于管理和处理链接
# 查看内核配置
grep USBIP /boot/config*
# 如果上面的配置, 则加载 configs 查看
modprobe configs
zcat /proc/config.gz |grep USBIP
# CONFIG_USBIP_CORE=m
# CONFIG_USBIP_VHCI_HCD=m
# CONFIG_USBIP_HOST=m
# 服务端
# ==========
# 加载内核模块
modprobe usbip-core
modprobe usbip-host
# 启动服务端
usbipd -D
# 查看设备
usbip list -l
# 绑定暴露
usbip --debug bind -b 1-1.2
# 查看端口信息
# 被远程挂载后会显示相关信息
usbip port
# 取消绑定
usbip unbind -b 1-1.3
# 客户端
# ==========
# 查看远程服务器上暴露的设备
usbip list -r 192.168.0.1
# 加载内核
modprobe vhci-hcd
# 挂载远程设备
usbip attach -r 192.168.0.1 -b 1-1.3
# 查看远程的分区信息
# 假设挂载后的设备为 /dev/sdd
fdisk -l /dev/sdd
# 卸载
usbip detach -p 0
usbredir
https://github.com/OliRead/usbdmx A versatile USB DMX library written in Go for programatic show control and special effects.
echi hdc https://en.wikipedia.org/wiki/Host_controller_interface_(USB,_Firewire)
https://en.wikipedia.org/wiki/Message_Signaled_Interrupts
usbkey
BOC
- /dev/sr0
- mnt/Setup.exe
usb 1-8: new full-speed USB device number 4 using xhci_hcd
usb 1-8: New USB device found, idVendor=096e, idProduct=070a
usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-8: Product: FT Interpass3000
usb 1-8: Manufacturer: FS
usb-storage 1-8:1.0: USB Mass Storage device detected
scsi host7: usb-storage 1-8:1.0
scsi 7:0:0:0: CD-ROM FT BOC Interpass3000 1.00 PQ: 0 ANSI: 2
sr 7:0:0:0: [sr0] scsi3-mmc drive: 0x/0x caddy
cdrom: Uniform CD-ROM driver Revision: 3.20
sr 7:0:0:0: Attached scsi CD-ROM sr0