From owner-freebsd-usb@FreeBSD.ORG Fri Apr 11 19:13:23 2008 Return-Path: Delivered-To: FreeBSD-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C68EB1065671 for ; Fri, 11 Apr 2008 19:13:23 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id 9C6F88FC16 for ; Fri, 11 Apr 2008 19:13:23 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 24381 invoked from network); 11 Apr 2008 19:13:23 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 11 Apr 2008 19:13:22 -0000 Message-ID: <47FFB70B.4000804@chuckr.org> Date: Fri, 11 Apr 2008 15:07:55 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: FreeBSD USB List X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: USB HID Parser X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2008 19:13:23 -0000 -----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-----