How To Manage Interfaces In Linux; How To Drive The Gpios: The Gpio Utility - Eurotech ReliaGATE 10-12-6 Series User Manual

Iot edge gateway ti am335x, lte cat 1
Table of Contents

Advertisement

ReliaGATE 10-12 User manual Rev. 2-1
12
H
OW TO MANAGE INTERFACES IN
Interfaces availability depends on product version.
If Everyware Software Framework (ESF) is installed, it will manage the network interfaces, cellular
modem, Bluetooth adapter and GPIOs.
Any changes you make to the Linux configuration files may be overwritten if the related service is
managed by ESF.
Refer to the ESF documentation for more information.
12.1

How to drive the GPIOs: the GPIO Utility

Several ReliaGATE 10-12 interfaces are controlled by their GPIOs.
To manage these interfaces, drive their GPIOs by using the GPIO Utility: gpio_utility.
gpio_utility allows you to:
Read / Write a GPIO status
l
Set a GPIO as input or output
l
Unexport a GPIO.
l
The GPIOs are exported by default at startup.
To read the GPIO status (for example: the status of LED 1), enter the following command:
gpio_utility gpio117
The output is as follows:
If LED 1 is ON, then gpio117 = 1
l
If LED 1 is OFF, then gpio117 = 0
l
To set the GPIO status (for example: the status of LED 1), enter the following commands:
#turn led on
gpio_utility gpio117 1
#turn led off
gpio_utility gpio117 0

12 How to manage interfaces in Linux

L
INUX
71 / 118

Advertisement

Table of Contents
loading

This manual is also suitable for:

Regate-10-12-65gRegate-10-12-66gRegate-10-12-67gDynagate 10-12-6 series

Table of Contents