AT+QAGPIO

AT+QAGPIO is an AT command used in Quectel cellular modules to set the output level of a GPIO pin on the AP or PMU. It can control external devices or sensors connected to the pin.

This command takes effect immediately and automatically saves the parameter configuration. The maximum response time is 300 ms. Below is a guide to executing the AT+QAGPIO command under the default Mobile-Data protocol with MMCLI command sets.

Test Command

AT+QAGPIO=?
Response
+QAGPIO: <type>,<gpio_num>,(supported <value> list)

Set Command

AT+QAGPIO=<type>,<gpio_num>,<value>
Response
''

Example:

mmcli -m 2 --command=AT+QAGPIO=? response: '+QAGPIO: (0,1),<GPIO>,(0,1)'

mmcli -m 2 --command=AT+QAGPIO=0,105,1 response: ' '

mmcli -m 2 --command=AT+QAGPIO=1,8,0 response: ' '

Parameters

ParameterStringDescription

<type>

Integer

Set AP or PMU 0: AP 1: PMU

<gpio_num>

Integer

GPIO number

<value>

Integer

GPIO output level 0: Low level 1: High level

Note: The range of PMU GPIO is 1 to 11.

Last updated