From: Pete Zaitcev <[EMAIL PROTECTED]> Date: Thu, 14 Jul 2005 16:13:19 -0700On Thu, 14 Jul 2005 14:40:41 -0700, "Steve Calfee" <[EMAIL PROTECTED]> wrote:> I don't know where to go from here. I kind of think maybe discussing a tool > that supports a tool that supports usb driver development might be getting a> little far from the use of linux-usb-devel list usage. I think it's fine for the list.> So we need to define a goal for the usbmon decoder, figure out a place to> commonly work on it, or I can just send you what I have and that is good > enough? Anything is better than what we have now. As far as USBMon (uppercase) is concerned, decoding needs to be reimplemented in Java, so I was going to look at your awk script for ideas. Randy may be able to convert it to Perl more directly. I assume that all these components are covered by GPL, so we are free to mix and match. -- Pete
OK, fine.Here are two awk programs. They will run on GAWK on any platform (theoretically).
The first one is usbmonxf.awk, where I translate the USBMon output to an intermediate format. Its output goes to sdout, so you can use it as a filter or put its output in a text file.
"usage: gawk --non-decimal-data -f usbmonxf.awk < usbmondump.txt "The second one is a mainly table driven decoder called usbdecode.awk which reads usbmonxf.awk output and generates decoded text to stdout.
"usage: gawk -f usbdecode.awk < webdump.txt " So if USBMon generates its output to stdout you could use:USBMon | gawk --non-decimal-data -f usbmonxf.awk | gawk -f usbdecode.awk >decoded.txt
Regards ~Steve
usbmonxf.awk
Description: Binary data
usbdecode.awk
Description: Binary data