B.25. Local GPIO
Prev | Appendix B. Supported GPIO/Switcher Devices | Next

## B.25. Local GPIO

Driver Name:

  Local GPIO

Supported RML Commands:

  GPI Enable ['GE']
  GPI Set ['GI']
  GPO Set ['GO']

This driver supports a variety of GPIO devices, including:

15 Pin Joystick Port
USB HID Devices
MeasurementComputing GPIO Cards

### B.25.1. 15 Pin Joystick Port

Joystick support utilizes the Linux Input Device subsystem. Inputs are active-low, and should be wired as follows:

Table B.2. 15 Pin Joystick Port Wiring

Pin | Signal
--- | ---
2 | Input 1
4 | Ground
7 | Input 2
5 | Ground
10 | Input 3
12 | Ground
14 | Input 4
12 | Ground

In addition, you will need to connect 47 kohm resistors between the following pins: 1-3, 6-8, 9-11 and 13-15. While not strictly needed for the GPI portion of the interface to work, the kernel's analog joystick driver will refuse to initialize the port if these resistors (or a real joystick) are not present.

The device name of the joystick will be one of the `/dev/input/event`n`` devices.

NOTE: There have been reports that some port models do not internally connect pin 12 to ground. The symptom of this situation will be that Inputs 1 and 2 work, but not Inputs 3 and 4. If this is the case, connecting the ground for Inputs 3 and 4 to pins 04 or 05 should remedy the problem.

### B.25.2. MeasurementComputing GPIO Cards

The following MeasurementComputing cards are supported:

PCI-PDIS08
PCI-PDIS16
PCI-DIO24

The device name for the card should be `/dev/gpio`n``.

#### B.25.2.1. PCI-PDIS08 and PCI-PDIS16

The Measurement Computing PCI-PDIS08 and PCI-PDIS16 boards feature floating, opto-isolated inputs. The inputs are not polarity sensitive and may be driven by either AC or DC. The outputs are electro-mechanical relays with dry contacts.

Table B.3. PCI-PDIS08 and PCI-PDIS16 Connector Pinout (DB37F)

Pin | Signal
--- | ---
1 | Input 8/16
20 | Input 8/16
2 | Input 7/15
21 | Input 7/15
3 | Input 6/14
22 | Input 6/14
4 | Input 5/13
23 | Input 5/13
5 | Input 4/12
24 | Input 4/12
6 | Input 3/11
25 | Input 3/11
7 | Input 2/10
26 | Input 2/10
8 | Input 1/9
27 | Input 1/9
9 | Output 8/16 C
28 | Output 8/16 N/O
10 | Output 7/15 C
29 | Output 7/15 N/O
11 | Output 6/14 C
30 | Output 6/14 N/O
12 | Output 5/13 N/C
13 | Output 5/13 N/O
31 | Output 5/13 C
14 | Output 4/12 N/C
32 | Output 4/12 N/O
33 | Output 4/12 C
15 | Output 3/11 N/C
16 | Output 3/11 N/O
34 | Output 3/11 C
17 | Output 2/10 N/C
35 | Output 2/10 N/O
36 | Output 2/10 C
18 | Output 1/9 N/C
19 | Output 1/9 N/O
37 | Output 1/9 C

#### B.25.2.2. PCI-DIO24

The Measurement Computing PCI-DIO24 board features 24 bi-directional, TTL level signal lines, referenced to a common ground. The driver can be configured to use all of the lines as inputs or outputs (mixing inputs and outputs on the same board is not supported). When used as inputs, termination resistor packs should be installed.

Table B.4. PCI-DIO24 Connector Pinout (DB37F)

Pin | Signal
--- | ---
37 | Input 1
36 | Input 2
35 | Input 3
34 | Input 4
33 | Input 5
32 | Input 6
31 | Input 7
30 | Input 8
10 | Input 9
9 | Input 10
8 | Input 11
7 | Input 12
6 | Input 13
5 | Input 14
4 | Input 15
3 | Input 16
29 | Input 17
28 | Input 18
27 | Input 19
26 | Input 20
25 | Input 21
24 | Input 22
23 | Input 23
22 | Input 24
11 | Ground
13 | Ground
15 | Ground
17 | Ground
19 | Ground
21 | Ground
18 | +5 vdc
20 | +5 vdc
16 | +12 vdc
14 | +-12 vdc

Prev | Up | Next
B.24. Local Audio Adapter | Home | B.26. Logitek vGuest