User's Manual

12 How to manage interfaces in Linux DynaGATE 10-12 User manual Rev. 2-1
12.17 How to read the Internal Temperature Sensor
The DynaGATE 10-12 is provided with a sensor that measures the temperature inside the product.
To read the internal temperature, enter the following command:
cat /sys/class/hwmon/hwmon0/temp1_input
12.18 How to know the programmable pushbutton status
The programmable pushbutton can be programmed to execute a shell script every time the button is
pushed. The script is located at /usr/bin/switch_script.sh and can be customized according to
the needs of the user.
To know the programmable pushbutton status, enter the following command:
gpio_utility gpio74
The output is as follows:
l If the button is pushed, then value = 0
l If the button is not pushed, then value = 1.
12.19 How to read the Vehicle Ignition Sense status
The DynaGATE 10-12 is provided with a digital input, the Vehicle Ignition Sense, that can be used to read
the status of Pin 3 (Key Signal) of the Power IN connector.
To read the Vehicle Ignition Sense status, enter the following command:
gpio_utility gpio30
The output is as follows:
l If Pin 3 is not connected, or connected to GND, then value = 1
l If Pin 3 is connected to "Power IN+", then value = 0.
12.20 The TPM and the tpm2-tools package
The TPM 2.0 device is fully supported by Linux via the tpm2-tools package that is pre-installed in the
image.
The tpm2-tools package includes many commands used to setup and manage the TPM.
For more information refer to the following table:
Subject Link
How to use tpm2-tools https://github.com/tpm2-software/tpm2-tools/wiki/How-to-use-tpm2-tools
Information on the TPM hardware https://www.infineon.com/cms/en/product/security-smart-card-solutions/optiga-
embedded-security-solutions/optiga-tpm/slb-9670vq2.0/
88 / 114