[ros-kernel] Mouse driver autodetection and installation
Filip Navara
xnavara at volny.cz
Mon Jun 7 18:56:38 CEST 2004
Hi Eric!
Eric Kohl wrote:
>Btw, does anyone know how to read the PnP-ID from PS/2 mice?
>
>
Basicly you set sample rate to 20 followed by 40 and then 60 at last
(these numbers are decimal!) and then read seven bytes from the data
port that are the PnP ID. There's one quirk though with some very old MS
mice that send 'P' followed by a make/break sequences (don't remember
the exact numbers of these codes) instead of the correct PnP ID. The ID
that comes back from mouse is in format PNPxxxx or MSHxxxx.
The code for sending PS/2 commands and receiving the results is already
present in the current psaux driver (function SendCommand I think).
Hope this helps,
Filip
More information about the Ros-kernel
mailing list