![Ercogener GenLoc 54e User Manual Download Page 57](http://html.mh-extra.com/html/ercogener/genloc-54e/genloc-54e_user-manual_2421804057.webp)
EG_GenLoc54e_1040_UG_002_UK
Page 57 / 86
Descriptions and non-contractual illustrations in this document are given as an indication only.
ERCOGENER reserves the right to make any modifications.
Dct_427_02
7.5.2
Management of logical Inputs
The modem contains the EGM standard library (see the documents "EG_EGM_CL_xxx_yy" of
ERCOGENER); in this case, these functions are controlled by AT commands.
AT+GPIOGET
This command is used to read the Inputs. By default, the inputs 1 to 5 are opto-coupled. To
read:
AT+GPIOGET=<n> with:
<
n
>
= 7 : reading the Input E1
8 : reading the Input E2
9 : reading the Input E3
36 : reading the Input E4
37 : reading the Input E5
Table 31 : Example of management of logical Inputs
Command
Response
Interpretation
AT+GPIOGET=7
+GPIOGET: 7= 1
OK
Input 1 read at 1, the input 1 is not commanded
AT+GPIOGET=9
+GPIOGET: 9= 0
OK
Input 3 read at 0, the input 3 is commanded
See Table of paragraph 8.2.4.1 Opto-coupled inputs for the characteristics of use of the
Inputs/Output
7.5.3
Management of analog Inputs
The modem contains the EGM standard library (see the documents "EG_EGM_CL_xxx_yy" of
ERCOGENER); in this case, these functions are controlled by AT commands.
AT+EGADC
This command is used to read the Inputs. To read:
AT+EGADC=<n> with:
<
n
>
= 0 : reading the tension of GPS antenna
1 : reading the Input ANA1
2 : reading the Input ANA2
3 : reading the internal voltage
4 : reading the input voltage
8 : reading the reference voltage
Table 32 : Example of management of analog Inputs
Command
Response
Interpretation
AT+EGADC=?
+EGADC: (0-4,8),(0-65535),(0-65535),"+/-(0-32767)"
OK
Range value
AT+EGADC=3
+EGADC: 3,4375
OK
Reading of internal voltage. It is
at 4375 mV