How Router Works
HomeShop
  • 👋Welcome to {How To}
  • Mobile Modem
    • Switch SIM Card
    • Mobile Watchdog
    • Mobile Protocol
    • APN Setting
    • Mode & Band Locking
    • Modem Diagnosis
      • Change TTL Value
      • Detach Reattach
      • Fix PLMN Error
  • Networking
    • Firewall
      • Port Forward
    • WiFi Hotspot
      • WiFi Relay
      • Guest WiFi
      • Parent Control
    • Traffic Control
      • IP and DNS
      • SQM QoS
      • Load Balancing
      • Intranet Routes
  • Remote Access
    • Traversal Cloud
    • Ezen Cloud
    • Dynamic DNS
  • Development
    • SSH Terminal
      • VI Editor
      • Crontab Syntax
    • Command Sets
      • MMCLI Commands
        • SMS Message
        • Location 3GPP GPS
      • AT Commands
        • AT+QAGPIO
        • AT+QTEMP
        • AT+COPS
        • AT+QENG
        • AT+QCAINFO
    • Bootloader
    • Custom-Build Firmware
Powered by GitBook
On this page
  • Test Command
  • Set Command
  • Parameters
  1. Development
  2. Command Sets
  3. AT Commands

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

Parameter
String
Description

<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 8 months ago