AT Command to control GPIO


M2M application developers can use the General Purpose Input Output (GPIO) pins for various types of controls. Module vendors generally provide proprietary AT commands to read/write the GPIOs.

SIMCOM provides AT commands to control the GPIO,
at+sgpio=?
+SGPIO: (0-1),(1-12),(0-2),(0-1)
OK

Above response indicates that the AT command support set/read operation (0-1), it can set any of the 12 GPIOs (1-12), it can be configured to input/output/keypad (0-2) and the actual value can be set to 0 or 1 (0-1)

Set GPIO 1 as input,
at+sgpio=0,1,0
OK

Read GPIO 1
at+sgpio=1,1
+SGPIO: 0
OK

Keywords: Module GPIO Control, M2M GPIO Control, GPRS GPIO Control, 3G GPIO Control, GPIO Control through AT commands,