Mastering Modem Communication: Common AT Commands

May 10, 2024 | Resource

In the realm of modem communication, the AT command set reigns supreme. These commands, prefixed with “AT” (short for attention), serve as directives for controlling and configuring modems. Whether you’re troubleshooting, configuring settings, or retrieving information, understanding these commands is essential. Let’s delve into 10 common AT commands for modems:

  1. AT+CMGF=1
    • Format: AT+CMGF=<mode>
    • Usage: Set SMS message format. <mode> 1 for text mode, 0 for PDU mode.
    • Example:
    • AT+CMGF=1
  • AT+CMGS=”6591459862″
    • Format: AT+CMGS=”<number>”
    • Usage: Send SMS message to the specified <number>.
    • Example:
    • AT+CMGS="6591459862"
      > hello world
      ^Z
  • AT^SYSINFO
    • Usage: Retrieve system information.
    • Example:
    • AT^SYSINFO
  • AT+CPIN?
    • Usage: Check SIM card status.
    • Example:
    • AT+CPIN?
  • AT+CFUN=1,1
    • Usage: Reset modem.
    • Example:
    • AT+CFUN=1,1
  • AT+COPS?
    • Usage: Check the currently selected operator.
    • Example:
    • AT+COPS?
  • AT+CREG?
    • Usage: Check registration status with the network.
    • Example:
    • AT+CREG?
  • AT+CSQ
    • Usage: Check signal quality.
    • Example:
    • AT+CSQ
  • ATD<number>;
    • Format: ATD<number>;
    • Usage: Dial a phone number.
    • Example:
    • ATD1234567890;
  • ATH
    • Usage: Hang up the current call.
    • Example:
    • ATH

Mastering these AT commands empowers you to navigate modem communication with finesse. Whether you’re sending messages, checking network status, or initiating calls, these commands are your gateway to seamless modem control. Explore, experiment, and unlock the full potential of your modem with these indispensable directives.