Date: Fri, 11 Apr 2008 15:07:55 -0400 From: Chuck Robey <chuckr@chuckr.org> To: FreeBSD USB List <FreeBSD-usb@FreeBSD.org> Subject: USB HID Parser Message-ID: <47FFB70B.4000804@chuckr.org>
next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In trying to make sure I really did know how to do that horrible USB HUD parsing, I wrote a parser, in python. The code's finished, and I'm more than half finished banging in all the tables. I didn't like the ones that I saw (even ones that I saw out from on other OSes) because I thought they did an incomplete job of laying out the environment for each command, leaving too much to the knowledge of the user. Also, there seems to be as yet no application to do this for Unix. So, I was wondering if I could get a word or two of comment about what's left over. D'you think it'd be worth anything at all to do a GUI? I was thinking it wouldn't be all that hard to put something up in Tkinter (python's tcl/tk interface) if anyone would care for it. Also, I made it to take input in the form that comes out of the krepdump tool, which is also available via od. You know, 4 columns of hex address, then 16 sets of 2 column hex columns, giving 16 bytes data per line. Would you think I could just rely on folks using od (maybe give the od syntax in the startup usage screen?) or should I make some extra input mode? If I do the GUI, I don't see why I couldn't allow one to scroll forward/backward item by item, and there's so much data that one could really use it to help you learn that lousy HID spec. If you're basically against all uses of GUIs, then I honestly wouldn't credit your opinion on allowing one. The folks I want to hear from on the GUI question are those who like to use GUIs sometimes, if they're available (I AM offering a non-GUI mode, after all). But if you generally like GUI's, but think that a GUI here makes little sense, I AM VERY interested in hearing that, may well listen to it. Here's a page of output, remember that my tables are incomplete yet, the source is my own graphic tablet: input line addr 0000, data 05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 09 44 05:Global: Usage Page Digitizers 09:Local: Usage: Digitizers/Pen:02 A1:Main: Collection Application (mouse, keyboard):01 85:Global: Report ID/Decimal=7 09:Local: Usage: Digitizers/Stylus:20 A1:Main: Collection Physical (group of axes):00 09:Local: Usage: Digitizers/Tip Switch:42 09:Local: Usage: Digitizers/Barrel Switch:44 Thanks, folks. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH/7cLz62J6PPcoOkRAuG3AKCdoHeMSl2k9hHIYYlOzGZsALSzqQCfctBS gCrHRfRRZBBf5UErtCf1Uks= =LLOO -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47FFB70B.4000804>