Look, i got it!


usbding.­sh
06.12.2019 16:26:08
0 MB (b3fdfa592f8f72aa2f2c65ac36d421ee)

http://files.q3t.de/a/get/eeb5288706d1063d27e10b9abfbaf325

translates vendor device to bus device
#!/bin/bash if [ -z $1 -o -z $2 ]; then echo "usbding vendor device" exit fi s=$(lsusb | grep "${1}:${2}") bus=${s/Bus /} dev=${bus/*Device /} bus=${bus/ Device*/} bus=$(expr $bus + 0) dev=${dev/:*/} dev=$(expr $dev + 0) echo "-device usb-host,hostbus=${bus},hostaddr=${dev}"
timings [ include: 56µs, load: 11µs, generate: 50µs, action: 10.98ms, final: 128µs, total: 11ms ]