User guide

Table Of Contents
EG_GenPro25e_1055_UG_000_UK Page 45 / 66
Descriptions and non-contractual illustrations in this document are given as an indication only.
ERCO & GENER reserves the right to make any modification.
Dct_427_01
7.4 Inputs/Output functioning
The modem contains an EGM application: in this case, the modem GenPro 25e provides 3 inputs (opto-
coupled) and 1 output (open collector) available for an external use.
These functions can also be controlled by AT commands:
AT+GPIOSET for a writing access to a GPIO with the GPIO used as an output,
AT+GPIOGET for a reading access to the GPIO with the GPIO used as an input.
7.4.1 Output functioning
AT+GPIOSET=10 This command is used to control the output. By default, the output is cabled as an open
collector. To control it:
AT+GPIOSET=<n>,<x> with:
<n> = 10 : Only 1 output available on the GenPro 25e (so, n=10),
<x> = 0 : Output OFF
1 : Output ON
Examples:
Table 21 : Output functioning
Command Response Interpretation
AT+GPIOSET=10,1
OK
Output 1 OFF, transistor closed
AT+GPIOSET=10,0
OK
Output 1 goes to ON (transistor open)
7.4.2 Inputs functioning
AT+GPIOGET This command is used to read the inputs. By default the inputs 1 to 3 are opto-coupled. To
read them:
AT+GPIOGET=<n> with:
<n> = 7 : reading the input 1
8 : reading the input 2
9 : reading the input 3
Table 22 : Inputs functioning
Command Response Interpretation
AT+GPIOGET=7
+GPIOGET: 7= 0
OK
Input 1 read at 0, the input 1 is controlled
AT+GPIOGET=9
+GPIOGET: 9= 1
OK
Input 3 read a 1, the input 3 is not controlled
See Table of § Inputs/Output.