Trying to capture raw USB touchscreen data

Some years ago, I made a shell script + C program that filters data from a USB-touchscreen. It used the /usr/sbin/usbdump tool but with time delay value commented out to get real-time data. This had to be converted from hex byte pairs to decimal screen coordinates and passed to a POS-system program.
Now I have upgraded to FreeBSD 14 but the usbdump program has changed and I can't seem to get the delay out of it, so no real-time touchscreen operation. The old version is segfaulting, probably due to kernel differences, so that's no option.

Also, I can't seem to dump only 1 particular USB device, which should be possible according to usbdump -?, but usbdump -v -d ugen#.# to a touchscreen doesn't output anything at all.

Anybody knows how to capture raw traffic data from a USB-device, real-time, using FreeBSD 14?
 
Back
Top