From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b1770f1c8dfb48ec X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-01-05 15:17:31 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!nntpd.lkg.dec.com!star.enet.dec.com!kleinsorge From: kleinsorge@star.enet.dec.com (Fred Kleinsorge) Newsgroups: comp.sys.dec Subject: Re: Mouse specification Date: 5 Jan 1994 22:45:13 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <2gfftp$i9c@nntpd.lkg.dec.com> References: <1994Jan5.210054.14760@nrcnet0.nrc.ca> Reply-To: kleinsorge@star.enet.dec.com (Fred Kleinsorge) NNTP-Posting-Host: star.enet.dec.com X-Newsreader: mxrn 6.18-4 ORBAN@amt00.ime.nrc.ca (Peter Orban) asks: >Does anyone know about the specification of the DEC mouse, >the 3 button version, made by Logitech for them. >Is it a serial interface, can it be connected to a PC serial >port? Does anyone know the pin-out for the connector? > It is RS232-compatable 4800 baud serial device (8 bits, odd parity). 1 GND (signal and power) 2 TXD 3 RXD 4 -12V 5 +5V 6 N/A 7 Device Present (short to pin 1) SHELL Protective Ground + 5 6 7 3 4 +1 2+ (+ = connector key) Requires +5Vdc +/- 5% @ 150mA (pin 5) -8Vdc to -13Vdec @20mA (pin 4) Mouse report: +--+--+--+--+--+--+--+--+ ! 1! 0! 0!SX!SY!LB!MB!RB! BYTE 1 +--+--+--+--+--+--+--+--+ ! 0!X6!X5!X4!X3!X2!X1!X0! BYTE 2 +--+--+--+--+--+--+--+--+ ! 0!Y6!Y5!Y4!Y3!Y2!Y1!Y0! BYTE 3 +--+--+--+--+--+--+--+--+ Bit 7 = Phasing information (packet start = 1) SX, SY = Sign bits X6-X0 = X data (unsigned displacement) Y6-Y0 = Y data (unsigned displacement) BYTE 1 = 100xxxxx indicates the first byte of a report. Commands: R Set Inremental Stream Mode D Set Prompt mode P Request position (also sets prompt mode) T Self Test and send ident Self test (and power up) report +--+--+--+--+--+--+--+--+ ! 1! 0! 1! 0!R3!R2!R1!R0! BYTE 1 (Firmware ID) +--+--+--+--+--+--+--+--+ ! 0!M2!M1!M0! 0! 0! 1! 0! BYTE 2 (Hardware ID) +--+--+--+--+--+--+--+--+ ! 0!E6!E5!E4!E3!E2!E1!E0! BYTE 3 (Error code or zero) +--+--+--+--+--+--+--+--+ ! 0! 0! 0! 0! 0!LB!MB!RB! BYTE 4 (Button code or zero) +--+--+--+--+--+--+--+--+ R3-R0 = Firmware revision. E6-E0 = Error Code (normally 0) LB/MB/RB= Buttons down or failed (normally 0) M2-M0 = Manufacturing code BYTE 1 = 101xxxxx indicates self test report BYTE 2 = xxxx0010 indicates device is a mouse (xxxx0100 = tablet) BYTE 3 = Error code (3Dh = button error, 3Eh = RAM or ROM failure) BYTE 4 = Button codes for failing buttons (for instance a stuck or removed button). The mouse is half-duplex, a command sent to it will abort any report in progress. It also requires 1 second after stable power before it is ready, and 500ms to process a self-test. You should not send the mouse data during power up or self test. There is no flow control, and the mouse powers up in Prompt mode to avoid position data from being generated before software is ready for it. For any other questions... you are on your own ;-) -- +--------------------------------------+ Fred Kleinsorge | All opinions expressed are mine, and | kleinsorge@star.enet.dec.com | may not reflect those of my employer | +--------------------------------------+