From: Roel J. <ro...@ro...> - 2014-11-16 21:02:32
|
Dear list, I'm Roel. The guy who's trying to get the Inkling to work with the Wacom driver. Thanks Chris, for providing some details on where I should start hacking the driver. In the following link is the source code of how I activated the HID interface of the device: https://github.com/roelj/inklingreader/blob/275411f269253dc72731b063307edd46f9d458b3/src/usb/online-mode.c Do you know what these sequences of URB_CONTROL's mean? Kind regards, Roel On Sun, 2014-11-16 at 11:59 -0600, Chris Bagwell wrote: > Looks like Roel's about got it figured out. Based on this packet > snippet in github thread: > > 02:00:00:e6:03:08:00:00:a5:0d > I see he's got it sending pen data data. The 02 matches with report > ID #2 in the lsusb output: > > Item(Local ): Usage, data= [ 0x02 ] 2 > Pen > Item(Main ): Collection, data= [ 0x01 ] 1 > Application > Item(Global): Report ID, data= [ 0x02 ] 2 > > > The next 4 bytes are X/Y as described by these fields: > > Item(Local ): Usage, data= [ 0x30 ] 48 > Direction-X > Item(Local ): Usage, data= [ 0x31 ] 49 > Direction-Y > Item(Global): Report Size, data= [ 0x10 ] 16 > Item(Global): Report Count, data= [ 0x02 ] 2 > > > And so on. > > > This seems to be a full HID compliant device so in near future it may > "just work" with latest Linux kernels. Its probably worth booting > Linux 3.17 kernel and see how it behaves. > > Around this commit time frame they have been cleaning up kernel driver > so that newer Wacom devices better work with generic HID input driver. > https://github.com/torvalds/linux/commit/471d17148c8b4174ac5f5283a73316d12c4379bc > > > In mean time you'll probably have good luck getting a custom driver > working starting from input-wacom git repo from sourceforge page. > > > If you search wacom mailing list you should see past examples of > people adding their usb product ID's to wacom_wac.c file and then > hacking up existing IRQ handlers to parse pen data for new wacom > tablets. > > I'm guessing you had to replay some USB packet to get device send pen > data instead of mouse data? Or to start sending any data at all? You > can look at wacom_sys.c::wacom_set_device_mode() as example of > sending that type data. > > > Chris > > > > > > > On Sun, Nov 16, 2014 at 7:41 AM, Isaac Marco Blancas > <isa...@ud...> wrote: > Some help is needed by Roel Jansen in the inklingreader for > linux project. He is getting good results and needs help to > understand the X Y coodinates and pressure params. > > > You can see at > https://github.com/roelj/inklingreader/issues/13#issuecomment-63218429 > > > > 2014-10-29 17:47 GMT+01:00 Isaac Marco Blancas > <isa...@ud...>: > I tried with the hid-recorder but there are no events > when I move the pen. > > sudo hid-recorder -d /dev/hidraw6 > R: 215 05 0d 09 02 a1 01 85 02 09 02 a1 00 05 01 09 30 > 09 31 15 00 26 80 07 35 00 46 00 78 65 11 55 0e 75 10 > 95 02 81 02 05 0d 09 42 09 45 09 44 09 32 15 00 25 01 > 75 01 95 04 65 00 81 02 05 09 19 01 29 04 15 00 25 01 > 75 01 95 04 81 02 05 0d 09 30 15 00 26 00 04 75 10 95 > 01 81 02 05 0d 09 3d 09 3e 15 81 25 7f 75 08 95 02 81 > 02 c0 05 01 09 00 85 04 15 00 26 ff 00 75 08 95 0c 81 > 02 05 01 09 00 85 08 15 00 26 ff 00 75 08 95 3b 81 02 > 09 01 85 80 75 08 95 20 b1 02 c0 05 01 09 02 a1 01 85 > 01 09 01 a1 00 05 01 09 30 09 31 15 00 26 80 07 35 00 > 46 00 78 65 11 55 0e 75 10 95 02 81 02 05 09 19 01 29 > 03 15 00 25 01 75 01 95 03 65 00 81 02 95 05 81 01 c0 > c0 > N: Wacom, Inc. MSC Device > P: usb-0000:00:1d.0-1.1/input0 > I: 3 056a 0221 > reading debug > interface /sys/kernel/debug/hid/0003:056A:0221.000A/events instead of /dev/hidraw6 > ^C > No events where recorded. > You may need to remove the option "--debugfs" to get > more recordings. > > > -- > Isaac Marco Blancas > Universidad a Distancia de Madrid (UDIMA) > 902 02 00 03 > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push > notifications. > Take corrective actions from your mobile device. > http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk > _______________________________________________ > Linuxwacom-discuss mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk > _______________________________________________ Linuxwacom-discuss mailing list Lin...@li... https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss |