Welcome, Guest. Please login or register.

Author Topic: Optical mouse driver  (Read 2633 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Louis DiasTopic starter

Optical mouse driver
« on: September 21, 2005, 10:58:39 PM »
I have an optical mouse.  It has a USB-to-PS/2 adapter on it and works fine on the PC.  I bought a PS/2 to 9pin serial adapter to plug into that adapter.  Problem is, the mouse doesn't power up now but does when I don't use the 9pin adapter.  Do I need a power source for the mouse that a serial port doesn't provide?

I want to read what the mouse is sending when it moves so I can write a driver for another machine (Gamecube Linux) but I'm sure the source would be somewhat re-useable on any platform.
 

Offline Thomas

Re: Optical mouse driver
« Reply #1 on: September 22, 2005, 07:40:40 AM »

You cannot use an adapter on another adapter. USB, PS/2 and serial protocols are different. The mouse supports USB and PS/2 and it tries to determine where it is connected to on power-up in order to use the correct protocol. With the serial adapter it cannot determine the correct protocol and so it gives up. Usually you can use a mouse only with the adapter it came with.

Bye,
Thomas

Offline Louis DiasTopic starter

Re: Optical mouse driver
« Reply #2 on: September 22, 2005, 11:31:22 AM »
Thanks for the info.

Is there someplace I can look up the PS/2 mouse & keyboard protocol?

Thanks.
 

Offline Thomas

Re: Optical mouse driver
« Reply #3 on: September 22, 2005, 11:53:52 AM »

Perhaps this can help you: http://www.computer-engineering.org/

Bye,
Thomas

Offline melott

  • Hero Member
  • *****
  • Join Date: Dec 2002
  • Posts: 989
    • Show only replies by melott
Re: Optical mouse driver
« Reply #4 on: September 22, 2005, 03:08:47 PM »
I don't know if this will help ....
I'm using a 'HP' (Hewlett Packard?) USB optical mouse
with a USB to PS2 adaptor plugged into a 'Mr.Mysza' on
my A3k ... works fine  :-)
Stealth ONE  8-)
 

Offline motrucker

Re: Optical mouse driver
« Reply #5 on: September 23, 2005, 03:57:50 AM »
Quote

melott wrote:
I don't know if this will help ....
I'm using a 'HP' (Hewlett Packard?) USB optical mouse
with a USB to PS2 adaptor plugged into a 'Mr.Mysza' on
my A3k ... works fine  :-)

I use a Logitech optical mouse with this same interface on an A1200 - it works fine.
A2000 GVP 40MHz \'030, 21Mb RAM SD/FF, 2 floppies, internal CD-ROM drive, micromys v3 w/laser mouse
A1000 Microbotics Starboard II w/2Mb 1080, & external floppy (AIRdrive)
C-128 w/1571, 1750, & Final Cartridge III+
 

Offline Protek

  • Full Member
  • ***
  • Join Date: Aug 2005
  • Posts: 164
    • Show only replies by Protek
Re: Optical mouse driver
« Reply #6 on: September 23, 2005, 09:06:08 AM »
I have also an optical Logitech usb mouse connected to a usb->ps2 adapter (keyboard but I guess there's no difference) which then is connected to ps2->amiga d9 adapter and everything works fine (even the wheel).
A4000/040 3.1/3.1, 2 MB Chip, 24 MB Fast, Piccolo SD64 2MB, GVP A2000mHC+8 Rev2, 4 GB CF HD via CF IDE
A1200 3.1/3.9, Blizzard 1230MkIV 030@50 with SCSI kit, 2 MB Chip, 128 MB Fast, 1 GB CF HD via CF IDE
A600 3.1/3.1, 2 MB Chip, A603, 1GB CF HD via CF IDE
 

Offline Thomas

Re: Optical mouse driver
« Reply #7 on: September 23, 2005, 10:32:46 AM »

Oh dear !

You cannot compare a Cocolino or Topolino3 or whatever it is called to a simple adapter ! Why do you think it is so expensive while you can get a simple 6pin mini-din to 9pin d-sub adapter for a few bucks ? The Cocolino is not an adapter. It is a complete micro controller residing inside the case of an adapter. It understands PS/2 protocol and translates it into joystick impulses as needed by the Amiga. It works with any mouse which supports the PS/2 protocol, be it a PS/2-only mouse, a PS/2-serial combi mouse or a PS/2-USB combi mouse. It does not do any serial transmission and it is not able to tell the Computer which PS/2 codes it received from the mouse.

Bye,
Thomas