Users Guide
ADC/DAC mode
Using the Dell Command | Configure application, you can switch GPIO to ADC (Analog-to-Digital Converter) or DAC (Digital-to-
Analog Converter) mode. For more information, see the Dell Command | Configure Version 3.3 Command Line Interface
Reference Guide.
After switching to ADC or DAC mode, use the AD5593R IIO DAC/ADC Linux Driver to access ADC/DAC pins as described at
wiki.analog.com/resources/tools-software/linux-drivers/iio-dac/ad5593r#driver_testing
NOTE: System reboot is required to apply changes.
Access the ADC/DAC pins through IIO. For example:
/sys/bus/iio/devices/devices/iio:device0
/sys/bus/iio/devices/devices/iio:device1
Sensors
The sensors on the Edge Gateway provide measurements on pressure, relative humidity and temperature, and motion.
Table 26. Sensor types
Sensor type Description
ST Micro HTS221 Relative humidity and temperature sensor
ST Micro LNG2DMTR Motion G-sensor—Accelerometer
ST Micro LPS22HB Pressure sensor
Retrieve the raw data from the sensors by running the following commands. Then, apply the formula in the table to convert the
data collected into measurements such as relative humidity and temperature.
Retrieving raw data from sensors
● To query sensor devices, run the following command.
$ cat /sys/bus/iio/devices/iio:device*/name
hts221 <-- device0, Humidity and temp.
lng2dm_accel <-- device1, G-sensor
lps22hb <-- device2, Pressure
● To retrieve data from the humidity and temperature sensor, run the following commands.
$ cat in_humidityrelative_offset
$ cat in_humidityrelative_raw
$ cat in_humidityrelative_scale
$ cat in_temp_offset
$ cat in_temp_raw
$ cat in_temp_scale
● To retrieve data from the motion G-sensor, run the following commands.
$ cat in_accel_scale_available
$ cat in_accel_*_scale
$ cat in_accel_*_raw
● To retrieve data from the pressure sensor, run the following commands.
$ cat in_pressure_raw
$ cat in_pressure_scale
76
Setting up the operating system