Data packets from PS/2

View: New views
2 Messages — Rating Filter:   Alert me  

Data packets from PS/2

by Anirudh Ramachandran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.
   A friend of mine needs to get actual data packets from a PS/2 mouse, for
some trajectory analysis. He can read the movement packets sent by the mouse
by reading /dev/psaux, but he also want to send bytes of data - commands -
to the mouse so that he can get the information about sampling and
resolution .
Trying:
$ echo "0xeb" | xdd -r > /dev/psaux
doesn't help. Can anyone help us out please?

Anirudh R


Re: Data packets from PS/2

by Saifi Khan-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 6 Jun 2009, Anirudh Ramachandran wrote:

> Hi.
>    A friend of mine needs to get actual data packets from a PS/2 mouse, for
> some trajectory analysis. He can read the movement packets sent by the mouse
> by reading /dev/psaux, but he also want to send bytes of data - commands -
> to the mouse so that he can get the information about sampling and
> resolution .
> Trying:
> $ echo "0xeb" | xdd -r > /dev/psaux
> doesn't help. Can anyone help us out please?
>
> Anirudh R
>

not sure what 'xdd' is. please let me know more about it !

As far as i know, the following holds good for mouse:
 . the mouse device does not have refresh rate
 . the mouse device cannot be overclocked

As far as the sampling rates are concerned
 . for PS/2 mouse
    - 40 Hz
    - 60 Hz
    - 200 Hz (maximum)
 . for USB mouse
    - 125 Hz

i've tweaked the mouse sampling rate only on my 'FreeBSD' laptop
using the moused(8) daemon.

An entry would be made in the /etc/rc.conf file
moused_ums0_flags="-F 200 -A 1.5,2.0 -a 0.7 -r high -V"


Please do revert with your observations.

thanks
Saifi.