[ros-kernel] Mouse driver autodetection and installation

Filip Navara xnavara at volny.cz
Mon Jun 7 20:01:50 CEST 2004


Filip Navara wrote:

> 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.

I forgot to mention that the 7 bytes of the PnP ID are received as scan 
codes and not ASCII.

- Filip


More information about the Ros-kernel mailing list