Quote:
Originally Posted by fuzzyash
Hi All,
I am looking for a way to view the raw data being sent from my USB optical mouse.
A little background on why:
I want to use the optical reader as a linear position sensor for a CNC project I am working on. I figure it would make a good position feedback sensor.
I've been googling for a while but haven't found exactly what I'm looking for.
Even better would be if someone out there could point me to a site that explains how the data is encoded. I know how the device itself works but nothing about the way the data is sent to the PC.
Thanks
|
An optical mouse is likely to be a standard USB HID device. Maybe this link-
www.usb.org/developers/devclass_docs/HID1_11.pdf - will help you.
In fact, you may be able to get some implementation information by getting the kernel sources, and starting at the file "usbmouse.c" - which is under drivers/usb/input.
Cheers,
Danny