Smart Machine Smart Decision
SIM7500_SIM7600 Series_AT Command Manual_V1.07 2017-12-25
+CGFUNC: 40,1
12.6 AT+CGDRT Set the direction of specified GPIO
Description
This command is used to set the specified GPIO to input or output state. If setting to input state,
then this GPIO can not be set to high or low value.
SIM PIN References
NO Vendor
Syntax
AT+CGDRT=? +CGDRT: (list of supported <GPIO>s),(list of supported <
gpio_io >s)
OK
Write Command Responses
AT+CGDRT=<GPIO>,
<gpio_io>
OK
ERROR
Read Command Responses
AT+ CGDRT=<GPIO> + CGDRT: <GPIO>,<gpio_io>
OK
Defined values
<GPIO>
The value is GPIO ID, different hardware versions have different values.
<gpio_io>
0 – in
1 – out
Examples
AT+CGDRT=43,0