in reply to Re: USB logging
in thread USB logging

I'm on linux and using Debian.

Replies are listed 'Best First'.
Re^3: USB logging
by moritz (Cardinal) on Jun 13, 2009 at 12:48 UTC
    If the USB devices are mounted by udev or a similar tool, you might try to install some hooks that set up an inotify listener, which then records all reads from the USB device.

    That way you wouldn't have to make sense of the USB traffic yourself, but you could use the more high-level file system and inotify interface.

Re^3: USB logging
by Corion (Patriarch) on Jun 13, 2009 at 12:25 UTC

    I think the easiest solution is to use Net::Pcap to capture all USB traffic. At least from what I understand, Wireshark can nowadays sniff USB traffic, and I presume that this feature comes from the libpcap library which is encapsulated for Perl by Net::Pcap.