Connectivity and communication
protocols
A Microsoft wireless Arc mouse
To transmit their input, typical cabled mice use a thin electrical cord
terminating in a standard connector, such as RS-232C, PS/2, ADB or USB. Cordless
mice instead transmit data via infrared radiation (see IrDA) or radio
(including Bluetooth), although many such cordless
interfaces are themselves connected through the aforementioned wired serial
buses.
While the electrical interface and the format of the data transmitted by
commonly available mice is currently standardized on USB, in the past it varied
between different manufacturers. A bus mouse used a dedicated interface card for
connection to an IBM PC or
compatible computer.
Mouse use in DOS applications became more common after the introduction of
the Microsoft mouse, largely because Microsoft provided an open standard for
communication between applications and mouse driver software. Thus, any application
written to use the Microsoft standard could use a mouse with a driver that
implements the same API, even if the mouse hardware itself was incompatible
with Microsoft's. This driver provides the state of the buttons and the
distance the mouse has moved in units that its documentation calls "mickeys",[35] as does the Allegro library.
Serial interface and protocol
Standard PC mice once used the RS-232C serial port via a D-subminiature connector, which provided power to
run the mouse's circuits as well as data on mouse movements. The Mouse Systems
Corporation version used a five-byte protocol and supported three buttons. The
Microsoft version used a three-byte protocol and supported two buttons. Due to
the incompatibility between the two protocols, some manufacturers sold serial
mice with a mode switch: "PC" for MSC mode, "MS" for
Microsoft mode.
PS/2 interface and protocol
For more details on this topic, see PS/2 connector.
With the arrival of the IBM PS/2
personal-computer series in 1987, IBM introduced the eponymous PS/2 interface for mice and keyboards, which other
manufacturers rapidly adopted. The most visible change was the use of a round
6-pin mini-DIN, in
lieu of the former 5-pin connector. In default mode (called stream mode)
a PS/2 mouse communicates motion, and the state of each button, by means of
3-byte packets. For any motion, button press or button release event, a PS/2
mouse sends, over a bi-directional serial port, a sequence of three bytes, with
the following format:
Bit 7
|
Bit 6
|
Bit 5
|
Bit 4
|
Bit 3
|
Bit 2
|
Bit 1
|
Bit 0
|
|
Byte 1
|
YV
|
XV
|
YS
|
XS
|
1
|
MB
|
RB
|
LB
|
Byte 2
|
X movement
|
|||||||
Byte 3
|
Y movement
|
Here, XS and YS represent the sign bits of the movement vectors, XV and YV indicate
an overflow in the respective vector component, and LB, MB and RB indicate the
status of the left, middle and right mouse buttons (1 = pressed). PS/2 mice also
understand several commands for reset and self-test, switching between
different operating modes, and changing the resolution of the reported motion
vectors.
A Microsoft IntelliMouse relies on an extension of
the PS/2 protocol: the ImPS/2 or IMPS/2 protocol (the abbreviation combines the
concepts of "IntelliMouse" and "PS/2"). It initially
operates in standard PS/2 format, for backwards compatibility. After the host
sends a special command sequence, it switches to an extended format in which a
fourth byte carries information about wheel movements. The IntelliMouse
Explorer works analogously, with the difference that its 4-byte packets also
allow for two additional buttons (for a total of five).
Mouse vendors also use other extended formats, often without providing
public documentation. The Typhoon mouse uses 6-byte packets which can appear as
a sequence of two standard 3-byte packets, such that an ordinary PS/2 driver can handle them. For 3-D (or
6-degree-of-freedom) input, vendors have made many extensions both to the
hardware and to software. In the late 1990s Logitech created ultrasound based
tracking which gave 3D input to a few millimetres accuracy, which worked well
as an input device but failed as a profitable product. In 2008, Motion4U
introduced its "OptiBurst" system using IR tracking for use as a Maya
(graphics software) plugin.
Apple Desktop Bus
Apple Macintosh Plus mice (left) Beige mouse
(right) Platinum mouse 1986
In 1986 Apple first implemented the Apple Desktop Bus allowing the daisy-chaining
together of up to 16 devices, including arbitrarily many mice and other devices
on the same bus with no configuration whatsoever. Featuring only a single data pin,
the bus used a purely polled approach to computer/mouse communications and
survived as the standard on mainstream models (including a number of non-Apple
workstations) until 1998 when iMac joined the industry-wide
switch to using USB. Beginning
with the "Bronze Keyboard" PowerBook G3 in May 1999, Apple dropped
the external ADB port in favor of USB, but retained an internal ADB connection
in the PowerBook G4 for communication with its built-in
keyboard and trackpad until early 2005.
USB
The industry-standard USB (Universal
Serial Bus) protocol and its connector have become widely used for mice; it is
among the most popular types.
Cordless or wireless
A wireless mouse made for notebook computers
Cordless or wireless mice transmit data via infrared radiation (see IrDA) or radio
(including Bluetooth and WiFi).
The receiver is connected to the computer through a serial or USB port, or can
be built in (as is sometimes the case with Bluetooth and WiFi). Modern non-Bluetooth and non-WiFi
wireless mice use USB receivers. Some of these can be stored inside the mouse for
safe transport while not in use, while other, newer mice use newer "nano"
receivers, designed to be small enough to remain plugged into a laptop during
transport, while still being large enough to easily remove.
Atari standard joystick
connectivity
The Amiga and the Atari ST use an Atari standard DE-9 connector for mice, the same connector that
is used for joysticks on the same
computers and numerous 8-bit systems, such as the Commodore 64 and the Atari 2600. However, the signals used for mice
are different from those used for joysticks. As a result, plugging a mouse into
a joystick port causes the "joystick" to continuously move in some
direction, even if the mouse stays still, whereas plugging a joystick into a
mouse port causes the "mouse" to only be able to move a single pixel
in each direction.
Sumber : Here
Tidak ada komentar:
Posting Komentar