Apex Xavier II+ DI Usage#

DI Usage#

Hardware Specification#

Pin Definition:

5-way GPIO

Interface

PIN Number

Description

Device Node

GPIO_A

1

GPIO IN

di0

GPIO_B

2

GPIO IN

di1

GND

6-9

Ground


3-way GPIO

Interface

PIN Number

Description

Device Node

GPIO_F

3

GPIO IN

di2

GPIO_G

5

GPIO IN

di3

GND

6/8

Ground


Electrical Characteristics#


Description

Vin

Input Voltage

GND

Ground

A

Anode

C

Cathode

Vin Voltage Range

Result

1~12V

high level=1

0~0.8V

low level=0

> 12V or < 0 V

Not supported and may damage hardware.

Method of Application#

The example of using the GPIO interface is as follows.

# switch to root
sudo su -
# Read Data(DI)
cat /sys/class/gpio/<device node name>/value
# Example: cat /sys/class/gpio/gpio339/value