3.4 SPI, GPIO, I2C, and Relay Configuration
The DLAP-211-NanoS and DLAP-211-JNXS support two I2C, one
SPI, one UART, eight GPIO, and Relay functions through a 37-pin
D-sub connector that can be accessed through the commands
described in the following sections.
3.4.1
SPI
1. Download the SPItest tool from ADLINK:
https://www.adlinktech.com/Products/
Deep_Learning_Accelerator_Platform_and_Server/
Inference_Platform/DLAP-211-JNX
2. Grant access:
$ chmod +x spidev_test
3. Send and recieve data:
$./spidev_test -D /dev/spidev0.0 -v -p data
spi mode: 0x0 bits per word: 8 max speed: 500000
Hz (500 KHz)
TX | 61 64 6C 69 6E 6B __ | data
RX | 00 00 00 00 00 00 __ |
3.4.2
GPIO
GPIO values can be set where * is high (1) or low (0).
GPO_06:
$echo * > /sys/class/gpio/gpio267/value
GPO_10:
$echo * > /sys/class/gpio/gpio417/value
GPO_12:
$echo * > /sys/class/gpio/gpio268/value
GPO_14:
$echo * > /sys/class/gpio/gpio345/value
GPI_02:
$cat /sys/class/gpio/gpio419/value
GPI_03:
$cat /sys/class/gpio/gpio264/value
GPI_04:
$ cat /sys/class/gpio/gpio265/value
GPI_05:
$cat /sys/class/gpio/gpio266/value
32
Using the System
Need help?
Do you have a question about the DLAP-211-JNX Series and is the answer not in the manual?