AT commands

NameTypeDescriptionArguments
ATSETCheck if you have contact with the modem
    AT+CFUNREADGet modem functionality of the modem
      AT+CFUNSETSet functionality of the modem
      1. 1: number The level of functionality. Heavily affects the power usage.
        • "0" - Minimum functionality
        • "1" - Full functionality
        • "2" - Disable phone transmit RF circuits only
        • "3" - Disable phone receive RF circuits only
        • "4" - Disable phone both transmit and receive RF circuits
      AT+CIMISETShow IMSI
        AT+CGSNSETShow IMEI
        1. 1: number The type of serial number identification
          • "0" - Default. Respond with <sn>
          • "1" - Respond with <imei>
          • "2" - Respond with <imeisv>
          • "3" - Respond with <svn>
        AT+CGPADDRSETShow allocated IP address
          AT+CGDCONTSETSet the PDP APN configuration
          1. 1: number PDP context
            • "<0-10>" - Context id
          2. 2: string PDP type
            • "IP" - Internet protocol
            • "IPV6" - Internet protocol version 6
            • "IPV4V6" - Virtual type of dual IP stack
            • "Non-IP" - Transfer of non-IP data to external packet data network
          3. 3: string APN name
            • "<apn>" - APN
          AT+CGDCONTREADList APNs
            AT+CGACTREADList PDP status
              AT+CGACTSETSet PDP activation
              1. 1: number Activation/deactivation as 1/0
                • "1" - Activate PDP
                • "0" - Deactivate PDP
              2. 2: number PDP context ID
                • "<0-10>" - PDP context id to operate on
              AT+QICLOSESETClose a socket service
              1. 1: number Socket connect ID
                • "<0-11>" - The socket connect ID
              AT+QIOPENSETOpen a socket service
              1. 1: number The context ID
                • "<0-16>" - The context ID. Must be between 0 and 16.
              2. 2: number The connect ID
                • "<0-11>" - The socket connect ID. Must be between 0 and 11
              3. 3: string Service type is the type of socket service to start
                • "TCP" - Start a TCP connection as a client
                • "UDP" - Start a UDP connection as a client
                • "TCP LISTENER" - Start a TCP server to listen to TCP connection
                • "UDP SERVICE" - Start a UDP service
              4. 4: string IP address or domain name the service you're using
                • "IP_ADDRESS" - IP adress. For TCP or UPD it's the remote server IP. If you're setting up a TCP LISTENER or UDP SERVICE the value should be 127.0.0.1.
                • "DOMAIN_NAME" - Domain name. For TCP or UPD it's the remote server IP. If you're setting up a TCP LISTENER or UDP SERVICE the value should be 127.0.0.1.
              5. 5: number The remote port
                • "<0-65535>" - REMOTE_PORT is the port of the remote server, [0-65535]. Must be specified if SERVICE_TYPE is TCP or UDP, set to 0 otherwise.
              6. 6: number The local port
                • "<0-65535>" - LOCAL_PORT is the local port used, [0-65535]. Must be specified if SERVICE_TYPE is TCP LISTENER or UDP SERVICE. You can provide 0 as a value which will assign a local port automatically.
              7. 7: number Access mode
                • "0" - Buffer access mode
                • "1" - Direct push mode
                • "2" - Transparent access mode
              AT+QISENDSETSend data to an open socket service
              1. 1: number Socket connect ID
                • "<0-11>" - The socket connect ID
              2. 2: number Length of data
                • "<0-1460>" - The length of the data being sent after sending this command
              AT#XSOCKETREADList active sockets
                AT#XSOCKETSETCreate new socket
                1. 1: number Socket operation
                  • "0" - Close a socket
                  • "1" - Open an IPv4 socket
                  • "2" - Open an IPv6 socket
                2. 2: number Socket type
                  • "1" - Set SOCK_STREAM for the stream socket type using TCP protocol
                  • "2" - Set SOCK_DGRAM for the datagram socket type using the UDP protocol
                  • "3" - Set SOCK_RAW for the raw socket type using a generic IP protocol
                3. 3: number Socket role
                  • "0" - Client
                  • "1" - Server
                AT#XSENDTOSETSend data on active UDP socket
                1. 1: string Hostname or IP address
                  • "<host>" - Hostname or IP address. If IP address, only IPv4 supported
                2. 2: number UDP service port
                  • "<0-65535>" - Port number to send to
                3. 3: number The datatype to send
                  • "0" - Hexidecimal string
                  • "1" - Plain text
                  • "2" - JSON
                  • "3" - OMA TLV
                4. 4: string The data to send
                  • "<>" - Data string according to selected data type