Ports PS/2
Dernière mise à jour : 2018-10-12T14:52 - 12.10.2018
03.12.2016 - 00h00 - Paris - (Assiste - Pierre Pinard) - Mise à jour
Ports PS/2
Ports PS/2
Le port PS/2 (Personal System/2), également appelé « mini-DIN » est un port de connexion pour claviers et souris d'ordinateurs dans le monde PC.
C'est la société IBM qui a inventé les connecteurs appelés PS/2 pour sa gamme d'ordinateurs homonyme, les IBM PS/2 lancés en 1987, qui a donné son nom à ces nouveaux connecteurs.
Les ports PS/2 ont connu un début confidentiel, mais, en 1995, le format (facteur de forme) ATX (Advanced Technology Extended) des cartes mères est promulgué par Intel. Le format ATX comporte deux ports PS/2, pour un clavier et une souris. Ces connecteurs se sont alors retrouvés absolument partout.
Rappels importants :
Ne jamais brancher une souris sur un port clavier, ni l'inverse.
Ne jamais retirer à chaud (en fonctionnement) un connecteur PS/2 (éteindre l'ordinateur d'abord).
Il existe des changeurs de genre (des adaptateurs) permettant de connecter des souris ou claviers USB sur des ports PS/2.
Brochage des ports PS/2 :
Brochage des connecteurs mini-DIN dédiés aux claviers et souris PS/2 :
Broche |
Nom |
Couleur du fil |
Sens de transfert
(direction) |
Commentaire |
Broche 1 |
Données |
fil rouge |
Entrée / Sortie |
Les paquets de données de la souris ou les codes de numérisation du clavier sont envoyés de la souris ou du clavier à l'ordinateur sur ce seul fil en série.) |
Broche 2 |
Réservé (inutilisé) |
fil vert |
|
Non connecté. Sur certains portables, les broches 2 et 6 transportent respectivement les données et l'horloge pour la souris, dans le cas de l'utilisation d'un câble séparateur. |
Broche 3 |
0V (référentiel) |
fil blanc |
|
Il s'agit d'un signal de terre commun utilisé comme chemin de retour pour les données et est une référence au 0 logique. |
Broche 4 |
+5V |
fil jaune |
Sortie |
Il s'agit d'un simple signal de 5 volts pour alimenter la souris ou le clavier. |
Broche 5 |
Horloge (clock) |
fil noir |
Sortie |
Ce signal est envoyé par la souris ou le clavier pour synchroniser le signal de données. |
Broche 6 |
Réservé (inutilisé) |
fil bleu |
|
Non connecté. Sur certains portables, les broches 2 et 6 transportent respectivement les données et l'horloge pour la souris, dans le cas de l'utilisation d'un câble séparateur. |
Clés du registre en rapport avec les ports PS/2
PS/2 (i8042prt) driver
PS/2 (i8042prt) driver
Last Updated: 1/24/2017
This topic describes the features of I8042prt, the Microsoft Windows 2000 and later system function driver for PS/2-style keyboard and mouse devices.
I8042prt implements the I8042prt service and its executable image is i8042prt.sys.
The features of I8042prt include:
-
Hardware-dependent, simultaneous operation of a PS/2-style keyboard and mouse device.
The keyboard and mouse share I/O ports, but use different interrupts, interrupt service routines (ISR), and ISR dispatch completion routines.
-
Plug and Play, power management, and WMI
-
Operation of legacy devices.
-
Connection of a keyboard class service callback routine and a mouse class service callback routine.
I8042prt uses the class service callback to transfer data from the input data buffer of I8042prt to the data buffer of the class driver.
-
Addition of a vendor-supplied PI8042_KEYBOARD_INITIALIZATION_ROUTINE callback routines for a keyboard device.
An optional upper-level device filter driver provides the callback routines.
-
Addition of a vendor-supplied PI8042_KEYBOARD_ISR callback routine and a custom PI8042_MOUSE_ISR callback routine.
Optional upper-level device filter drivers provide these callbacks routines.
-
Keyboard write buffer request and mouse write buffer request.
An upper-level device filter driver can use write buffer requests to synchronize its writes to a device with the ISR of the device and other reads and writes on the device.
-
Keyboard start information request and mouse start information request.
The start information request passes a pointer to an interrupt object of a device to an upper-level filter driver. The filter driver can use the interrupt object to synchronize its operation with the ISR of the device.
-
I8042prt callback routines.
An upper-level device filter driver can use the callback routines in the context of the ISR of a device to write to a device, and to queue data packets from the device.
Registry settings associated with the PS/2 driver
The following is a list of registry keys associated with the PS/2 port driver.
[Key: HKLM\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters]
- EnableWheelDetection [REG_DWORD] – Determines whether the driver attempts to detect and enable the wheel on the mouse device. Some devices are equipped with a mouse wheel to provide rapid scrolling and other control features if supported by an application.
- ResendIterations [REG_DWORD] – Specifies the maximum number of times a hardware operation is attempted. If the number of trials exceeds the value of this entry, Windows considers the operation to have failed.
- NumberOfButtons [REG_DWORD] – Specifies the number of buttons on the mouse-port mouse at startup. If the number of buttons detected at startup is incorrect, you can override it by changing the value of this entry.
- KeyboardDataQueueSize [REG_DWORD] – Specifies the number of keyboard events that the keyboard driver buffers. This entry is also used in calculating the size of the keyboard driver's internal buffer in nonpaged memory pool. To determine the number of bytes to allocate for the buffer, the system multiplies the size of the KEYBOARD_INPUT_DATA structure by the value of KeyboardDataQueueSize.
- PollStatusIterations [REG_DWORD] – Specifies the maximum number of times the system verifies interrupts on the i8042 controller status register. If the interrupt cannot be verified in the number of trials specified in the value of this entry, the interrupt is ignored.
- PollingIterations [REG_DWORD] - Specifies the maximum number of times Windows 2000 polls the hardware. If the number of trials specified in this entry is exceeded, Windows 2000 stops polling.
- SampleRate [REG_DWORD] – Specifies how often the PS/2 driver measures the characteristics and activities of the PS/2 mouse. The driver uses the information gathered through sampling to optimize the operation of the mouse device.
- PollingIterationsMaximum [REG_DWORD] – Specifies the maximum number of times Windows 2000 polls the hardware on older-style AT keyboards. If the number of trials specified in this entry is exceeded, Windows stops polling.
- MouseResendStallTime [REG_DWORD] – Determines how long the mouse driver waits for an acknowledgement (ACK) of a reset if a RESEND message is returned without an ACK. This entry is used when the mouse driver interrupt service routine includes a reset.
- OverrideKeyboardType [REG_DWORD] – Specifies the keyboard type. You can add this entry to the registry to correct an error in the keyboard type detected at startup.
- OverrideKeyboardSubtype [REG_DWORD] – Specifies the OEM-dependent keyboard subtype. You can add this entry to the registry to correct an error in the keyboard subtype detected at startup.
Additional details on each specific registry key are available on http://technet.microsoft.com.
Source : Microsoft