Professional Documents
Culture Documents
L503C-Y(L511C-Y)_Custom_AT_Command_User_Guide_V1.4
L503C-Y(L511C-Y)_Custom_AT_Command_User_Guide_V1.4
L503C-Y(L511C-Y)_Custom_AT_Command_User_Guide_V1.4
User Guide
Version: V1.4
Date: 2022-12-09
L
Copyright
A
This document contains proprietary technical information which is the property of Shanghai Mobiletek
Communication Ltd. copying of this document and giving it to others and the using or communication
TI
of the contents thereof, are forbidden without express authority. Offenders are liable to the payment of
D Q
damages. All rights reserved in the event of grant of patent or the registration of a utility model or
design. All specification supplied herein are subject to change without notice at any time.
FI N
DISCLAIMER
EN
ALL CONTENTS OF THIS MANUAL ARE PROVIDED “AS IS”. EXCEPT AS REQUIRED BY
LY
Revision History
Date Version Description of chage Author
2022-09-14 V1.0 Initial ym.shu
L
Add AT+QGSN, AT+QLTS, AT+QCELLEX=1 and
2022-10-14 V1.1 ym.shu
AT+QSSLRECV command
A
2022-10-27 V1.2 Remove some commands LI
TI
2022-11-03 V1.3 Add AT+CBAUD command ym.shu
D Q
2022-12-09 V1.4 Modify AT+CTZU and AT+QSSLCFG command LI
FI N
EN
N LY
O
C
1. Contents
Revision History ....................................................................................................................................................... 2
1. Contents .......................................................................................................................................................... 3
1. Introduction .....................................................................................................................................................5
L
1.1 Overview ...............................................................................................................................................................5
A
1.2 References ............................................................................................................................................................ 5
TI
2. General Commands ......................................................................................................................................... 6
D Q
2.1. AT+GSN Request TA Serial Number Identification ...................................................................................... 6
FI N
2.7. AT+QCELLINFO Get Serving Cell and Neighbor Cell information ................................................................... 8
2.9. AT+QCELLEX Get Serving Cell and Neighbor Cell information ....................................................................... 9
N
5.2 AT+QIACT Active PDP Context and Open packet network ............................................................................17
L
5.6 AT+QISEND Send data through TCP or UDP connection .............................................................................. 20
A
5.7 AT+QIRD – get buffer data ..............................................................................................................................20
TI
D Q
5.9 AT+QIDNSGIP Use Domain get IP address ................................................................................................... 22
5.13 AT+QIPROMPT Config whether display “>” and ”send ok” ....................................................................... 24
6.3 AT+QSSLSEND After the connection is established, the module can send data through the SSL connection.
N
..................................................................................................................................................................................31
1. Introduction
1.1 Overview
L
We don‘t suggest using proprietary command in a multiple command. There might be abnormal
A
situation occurs.
TI
D Q
1.2 References
FI N
EN
[1] 3GPP TS 27.007 V3.13.0 (2003-03)
LY
2. General Commands
2.1. AT+GSN Request TA Serial Number Identification
L
Response
A
<IMEI>
Execution Command
OK
AT+GSN
or
TI
D Q
ERROR
FI N
Response
Test Command
+QCFG: " ",(0,1)
AT+QCFG=?
OK
Response
Read Command
+QCFG: <path>,<value>
AT+QCFG?
OK
N
Response
Set Command OK
O
AT+QCFG=<path>[,<value>] or
ERROR
C
integer type
<value> 0 URC reporting is prohibited
1 Enable URC reporting
Response
Test Command
+CTZU: (0,1,3)
AT+CTZU=?
OK
Response
Set Command OK
AT+CTZU=<value> or
L
ERROR
A
Response
Read Command
+CTZU: <value>
AT+CTZU?
OK
TI
D Q
Parameters are defined below:
FI N
EN
Parameter note: Description
LY
integer type
0 Off
<value>
1 Enable
3 retutn RTC time
Response
Test Command
+GMM:<list of supported technologies>,<module>
AT+GMM=?
C
OK
Response
Execution Command
<module identification>
AT+GMM
OK
L
Response
A
servingcell:
Nearby cell information for LTE
TI
+QENG:"servingcell",<state>,"LTE",<istdd>,<mcc>,<mnc>,<cellid>,<p
D Q
cid>,<earfcn>,<freq_bandind_ind>,<ul_bandwidth>,<dl_bandwidth>,<
tac>,<rsrp>,<rsrq>,<rssi>,<sinr>,<srxlev>
FI N
OK
EN
Set Command or
AT+QENG="servingcell/n ERROR
LY
eighbourcell"
neighbourcell:
+QENG: "neighbourcell
inter","LTE",<earfcn>,<PCI>,<RSRQ>,<RSRP>,-,-,<srxlev>,<threshX
_low>,<threshX_high>,<cell_resel_priority>[…]
OK
or
ERROR
N
Response
Test Command
+QENG: ("servingcell","neighbourcell")
AT+QENG=?
OK
O
This command is used to get serving cell and neighbor cell information.
Response
serving cell and neighbor cell for LTE
+QCELLINFO:
"servingcell","LTE",<MCC>,<MNC>,<TAC>,<cellID>,<PCI>,<RX_lev>
,<RSSI>,<earfcn>
[+QCELLINFO: "neighbourcell
Read Command
intra","LTE",<MCC>,<MNC>,<TAC>,<cellID>,<PCI>,<RX_lev>,<RSSI
AT+QCELLINFO?
>,<earfcn>
[…]]
[+QCELLINFO: "neighbourcell
inter","LTE",<MCC>,<MNC>,<TAC>,<cellID>,<PCI>,<RX_lev>,<RSSI
L
>,<earfcn>
OK
A
2.8. AT+QGSN Request product serial number identification
TI
D Q
Returns the IMEI number of the phone
FI N
EN
Response
Execution Command
LY
+QGSN:<IMEI>
AT+QGSN
OK
This command is used to get serving cell and neighbor cell information.
N
Response
serving cell and neighbor cell for LTE
O
+QCELL:
"servingcell","LTE",<MCC>,<MNC>,<TAC>,<cellID>,<PCI>,<RX_lev>
,<RSSI>,<earfcn>
C
[+QCELL: "neighbourcell
Set Command
intra","LTE",<MCC>,<MNC>,<TAC>,<cellID>,<PCI>,<RX_lev>,<RSSI
AT+QCELLEX=1
>,<earfcn>
[…]]
[+QCELL: "neighbourcell
inter","LTE",<MCC>,<MNC>,<TAC>,<cellID>,<PCI>,<RX_lev>,<RSSI
>,<earfcn>
OK
2.10. AT+QLTS
Gets the update time when being synchronized over the network.
Response
+QLTS: <time>,<dst>
L
Execution Command
OK
AT+QLTS
or
A
ERROR
TEST Command Response
TI
AT+QLTS=? OK
D Q
Parameters are defined below:
FI N
EN
Parameter note: Description
LY
Specifies the data rate, in addition to 921600 bits/s or 9600 bits/s, at which the DCE will accept
O
commands. May be used to select operation at rates at which the DCE is not capable of automatically
Parameters Description
<rate> The rate, in bits per second, at which the DTE-DCE interface should
operate. Currently, the following rates are supported:
600,1200,2400,4800,9600,19200,38400,57600,115200,230400,46080
0.If unspecified, Default rate is 115200 bps.
L
Set the data transfer mode
A
Command Response
TI
D Q
ATO[<value>] CONNECT
FI N
Parameters Description
<value> 0 Switch from command mode to data mode.
N
O
C
3. Hardware AT Commands
3.1 AT+CGNETLED Network LED Control
This command is used to set the Network LED state to enable or disable.
L
Response
Write Command
A
OK
AT+CGNETLED=<mode
or
>
ERROR
TI
D Q
Response
Test Command
+CGNETLED:(0-1)
AT+CGNETLED=?
OK
FI N
EN
Response
Read Command
+CGNETLED: <mode>
LY
AT+CGNETLED?
OK
Parameters Description
0 – disable
<mode>
1 – enable
N
Response
Write Command OK
AT+QSCLK=<n> or
ERROR
Response
Read Command
+QSCLK:<n>
AT+QSCLK?
OK
Response
Test Command
+QSCLK: (0-2)
AT+QSCLK=?
OK
Parameters Description
L
<n> can enter sleep mode. When DTR changes to low level, module can quit
sleep mode.
A
2 The serial port goes to sleep without data within 2 seconds
TI
3.3 AT+RESET Reboot the Module
D Q
FI N
Response
Write Command OK
AT+RESET or
ERROR
This command is used to start the task and set the access point APN, user name and password.
L
Write Command Response
A
AT+QIREGAPP=<apn>, OK
<username>,<password or
> ERROR
TI
D Q
Response
+QIREGAPP: <apn>,<username>,<password>
Read Command
FI N
OK
EN
AT+QIREGAPP?
or
ERROR
LY
Response
Test Command
+QIREGAPP:"APN","USER","PWD"
AT+QIREGAPP=?
OK
Parameters Description
N
<apn> string parameter; indicates the name of GPRS / CSD access point
O
<username> string parameter; indicates the user name of GPRS / CSD access point
C
L
This command is used to set PPP activation time.
A
Write Command Response
TI
AT+QPPPTIMER OK
D Q
Read Command Response
AT+QPPPTIMER? OK
FI N
EN
Test Command Response
AT+QPPPTIMER=? OK
LY
This command is used to read SIM card ICCID if SIM inserted. If SIM not inserted, return +CME
ERROR: 10
N
Response
+CCID: <iccid>
Execution Command
OK
O
AT+CCID
or
ERROR
C
Parameters Description
5. TCP IP AT Commands
5.1 AT+QICSGP Configure APN
L
Write Command
Response
A
AT+QICSGP=<cid>,<co
OK
ntext_type>,<APN>,<us
or
ername>,<password>,<
TI
ERROR
D Q
authentication>
Response
Test Command
+QICSGP: (1-15),(1-3),<APN>,<username>,<password>,(0-3)
FI N
AT+QICSGP=?
EN
OK
Read Command Response
LY
AT+QICSGP? OK
Parameters Description
<cid> 1-15
N
Connect type
1: IPV4
<context_type>
2: IPV4V6
O
3: IPV6
<APN> string
C
<username> string
<password> string
Int type
0 none
<authentication> 1 PAP
2 CHAP
3 PAP and CHAP
Response
+QIACT: 1,<context_state>,<context_type>,<IP_address>
Read Command
OK
AT+QIACT?
or
ERROR
L
Response
Write Command OK
A
AT+QIACT=<contextID> or
ERROR
TI
Response
D Q
Test Command
+QIACT: (1,15)
AT+QIACT=?
OK
FI N
EN
Parameters are defined below:
LY
Parameters Description
Connect type
1: IPV4
<context_type>
2: IPV4V6
O
3: IPV6
<IP_address> String type
C
Response
Test Command
+QIDEACT:(1-15)
AT+QIDEACT=?
OK
Response
Execution Command
OK
AT+QIDEACT=<contextI
or
D>
ERROR
L
Parameters Description
A
<contextID> contextID , <1-15>
TI
D Q
5.4 AT+QIOPEN Open socket service
FI N
EN
This command is used to establish a connection with TCP server and UDP server.
LY
Response
Test Command +QIOPEN:(1-15),(0-11),"TCP/UDP/TCPLISTEN/UDPSERVICE","IP_
AT+QIOPEN=? address/domain_name",(0-65535),(0-65535),(0-2)
OK
Write Command
AT+QIOPEN=<contextID
>,<connectID>,<service_ Response
type>,"<IP_address>/<d OK
N
ccess_mode>]]
ReadCommand Response
C
AT+QIOPEN? ERROR
Parameters Description
Int Type
TCP: as client startup tcp connect
<SERVICE_TYPE> UDP:as client startup udp connect
TCP LISTENER:startup TCP server as listen connect
UDP SERVICE:startup udp service
<IP_address> Remote server ip address
<domain_name> Remote server domain address
Remote server’s port only useful as SERVICE_TYPE is “TCP” or “UDP”
<remote_port>
Scoal is 1-65535
<LOCAL_PORT> Local port scoal is 1-65535
L
Socket service mode
0:buffer mode
A
<access_mode>
1:normal mode
2;transparent mode
TI
D Q
5.5 AT+QICLOSE Close socket service
FI N
EN
This command is used to close socket service
LY
Response
Test Command
+QICLOSE:(0-11),(0-65535)
AT+QICLOSE=?
OK
Response
Write Command
OK
AT+QICLOSE=<connect
or
ID> [,<timeout>]
ERROR
N
Response
ReadCommand OK
O
AT+QICLOSE? or
ERROR
C
Parameters Description
Response
Test Command
+QISEND:(0-11),(0-1460)
AT+QISEND=?
OK
Response
Write Command
Response ">", then type data for send, tap CTRL+Z to send
AT+QISEND=<connectI
L
If sending is successful:
D>
SEND OK
AT+QISEND=<connectI
A
If sending fails:
D>,<send_length>
SEND FAIL
TI
AT+QISEND=<connectI +QISEND: <totallen>,<ackbyteslen>,<unackbyteslen>
D Q
D>,0 OK
FI N
EN
Parameters are defined below:
LY
Parameters Description
Response
Test Command
+QIRD: (0-11),(0-1500)
AT+QIRD=?
OK
Response
Write Command +QIRD: <got_len> <data>
AT+QIRD= OK
<connectID>,<req_len> or
ERROR
ReadCommand
OK
AT+QIRD?
L
Parameters Description
A
Integer type
<connectID>
0-11 Socket file description returned by +QIOPEN
TI
Integer type
D Q
<req_len>
The length of request data.
Integer type
<got_len>
FI N
Response
Test Command
+QIDNSCFG:+QIDNSCFG: (1-15),("IP ADDR"),("IP ADDR")
AT+QIDNSCFG=?
N
OK
Response
Write Command
O
OK
AT+QIDNSCFG=<pridns
or
addr>[,<secdnsaddr>]
ERROR
C
Response
+QIDNSCFG:<list of ipv4 dns server>,<list of ipv6 dns server>
Read Command
OK
AT+QIDNSCFG?
or
ERROR
Parameters Description
L
Response
OK
A
or
Write Command
ERROR
AT+QIDNSGIP=<context
TI
URC format return result:
D Q
ID>,<hostname>
+QIURC: "dnsgip",<err>,<IP_count>,<DNS_ttl>
.....
FI N
+QIURC: "dnsgip",<hostIPaddr>
EN
Response
Test Command
+QIDNSGIP:(1-15),("host name")
LY
AT+QIDNSGIP=?
OK
Read Command Response
AT+QIDNSGIP? OK
Parameters Description
N
Response
Test Command
+QISDE:(0-1)
AT+QISDE=?
OK
Response
Write Command OK
L
AT+QISDE=<echo> or
ERROR
A
Response
Read Command
+QISDE: <echo>
TI
AT+QISDE?
D Q
OK
Parameters Description
0: echo off
<echo>
1:echo on
Response
O
Test Command
+QIMUX:(0-1)
AT+QIMUX=?
OK
C
Response
Write Command OK
AT+QIMUX=<mode> or
ERROR
Response
Read Command
+QIMUX:<mode>
AT+QIMUX?
OK
Parameters Description
L
Response
Write Command OK
A
AT+QIHEAD=<mode> or
ERROR
TI
Response
D Q
Read Command
+QIHEAD: <mode>
AT+QIHEAD?
OK
FI N
Response
EN
Test Command
+QIHEAD:(0-1)
AT+QIHEAD=?
OK
LY
Parameters Description
This command is used to config send data whether display “>” and “send ok”
C
Response
Execution Command
OK
AT+QIPROMPT=<send
or
prompt>
ERROR
Response
Read Command
+QIPROMPT:<send prompt>
AT+QIPROMPT?
OK
Response
Test Command
+QIPROMPT:(0-1)
AT+QIPROMPT=?
OK
Parameters Description
L
5.14 TCP URC and UDP URC
A
TI
D Q
+QIURC: "closed",<connectID>
when TCP Socket service disconnect URC
<connectID> Int type, Socket ID :0~11
FI N
EN
+QIURC: "recv",<connectID>,<currentrecvlength><CR><LF>
LY
<data>
normal mode,reveive data and URC
<connectID> Int type, Socket ID:0~11
<currentrecvlength> Int type, The length of receive data
<data> receive data
N
O
C
6. SSL Commands
6.1 AT+QSSLCFG Configure the parameters of SSL context
L
Write Command Response
A
AT+QSSLCFG="sslver OK
sion",<sslctxID>[,<sslv or
ersion>] ERROR
TI
D Q
OK
AT+QSSLCFG="ignorel
or
ocaltime",<on/off>
FI N
ERROR
EN
AT+QSSLCFG="sessio OK
n_cache",<sslctxID>[,< or
LY
on/off>] ERROR
OK
AT+QSSLCFG="seclev
or
el",<level>
ERROR
AT+QSSLCFG=cacert, OK
<sslctxID>,<cacertpath or
> ERROR
OK
N
AT+QSSLCFG=clientce
or
rt,<sslctxID>,<name>
ERROR
O
OK
AT+QSSLCFG=clientke
or
y,<sslctxID>,<name>
ERROR
C
AT+QSSLCFG=ciphers OK
uite,<sslctxID>,<cipher or
suite> ERROR
Response
+QSSLCFG: "sslversion":(0-5),(0-4)
+QSSLCFG: "ciphersuite":(0-5),<cipher_suites>
+QSSLCFG: "cacert":(0-5),<cacertpath>
+QSSLCFG: "clientcert":(0-5),<client_cert_path>
Test Command
+QSSLCFG: "clientkey":(0-5),<client_key_path>
AT+QSSLCFG=?
+QSSLCFG: "seclevel":(0-5),(0-2)
+QSSLCFG: "session_cache":(0-5),(0,1)
+QSSLCFG: "sni":(0-5),(0,1)
+QSSLCFG: "ignorelocaltime":(0-5),(0,1)
OK
L
sscxtId: caCertPath, clientCertPath,
Read Command
clientKeyPath,"seclevel":0,"cache":1,"ignore":1
A
AT+QSSLCFG?
OK
TI
D Q
Parameters are defined below:
FI N
EN
Parameters Description
LY
0X0035 TLS_RSA_WITH_AES_256_CBC_SHA
0X002F TLS_RSA_WITH_AES_128_CBC_SHA
0X0005 TLS_RSA_WITH_RC4_128_SHA
0X0004 TLS_RSA_WITH_RC4_128_MD5
0X000A TLS_RSA_WITH_3DES_EDE_CBC_SHA
0X003D TLS_RSA_WITH_AES_256_CBC_SHA256
0XC002 TLS_ECDH_ECDSA_WITH_RC4_128_SHA
0XC003 TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
0XC004 TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
0XC005 TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
0XC007 TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
L
0XC008 TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
0XC009 TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
A
0XC00A TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
0XC011 TLS_ECDHE_RSA_WITH_RC4_128_SHA
TI
0XC012 TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
D Q
<ciphersuite>
0XC013 TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
0XC014 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
FI N
0xC00C TLS_ECDH_RSA_WITH_RC4_128_SHA
EN
0XC00D TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
0XC00E TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
LY
0XC00F TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
0XC023 TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
0xC024 TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
0xC025 TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
0xC026 TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
0XC027 TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
0XC028 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
0xC029 TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
N
0XC02A TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
0XC02F TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
0XFFFF All cipher suites
O
1 On
Example:
AT Commands Response
AT+QSSLCFG="ignorel
OK
ocaltime",1
AT+QSSLCFG="sessio
OK
n_cache",0,1
AT+QSSLCFG="sslvers
OK
ion",0,3
+QSSLCFG:"seclevel",0,0
AT+QSSLCFG=seclevel
,0
OK
AT+QSSLCFG=cacert,0
OK
,"RAM:cacert.pem"
AT+QSSLCFG=clientce
rt,0,"RAM:clientcert.pe OK
L
m"
A
AT+QSSLCFG=clientke
y,0,"RAM:clientkey.pe OK
m"
TI
D Q
6.2 AT+QSSLOPEN Open a SSL socket to connect remote server
FI N
EN
Response
LY
+QSSLOPEN: <clientID>,<err>
<err> is 0 when service is started successfully, else <err> is not 0.
or
O
ERROR
Response
C
Parameters Description
L
0 Buffer access mode
<access_mode>
1 Direct push mode
A
2 Transparent mode
TI
Example:
D Q
FI N
AT Commands Response
EN
OK
AT+QSSLOPEN=1,0,0,"
LY
10.1.1.0",30073,1
+QSSLOPEN: 0,0
N
O
C
Response
AT+QSSLSEND=<clientID>
Response “>”, then input data to send, tap CTRL+Z to send, tap ESC to
cancel the operation
>
L
<input data>
Write Command <CTRL-Z>
A
AT+QSSLSEND=<clien If connection has been established and sending is successful, response:
tID> SEND OK
TI
D Q
If connection has been established but sending buffer is full, response:
SEND FAIL
FI N
EN
If connection has not been established, abnormally closed,
or parameter is incorrect, response:
LY
ERROR
Response “>”, input data until the data length is equal to
<sendlength>
>
<input data with specified length>
If connection has been established and sending is successful, response:
Write Command
SEND OK
AT+QSSLSEND=<clien
N
tID>,<sendlen>
If connection has been established but sending buffer is full, response:
SEND FAIL
O
is incorrect, response:
ERROR
Response
Test Command
+QSSLSEND: (0-3),(1-1460)
AT+QSSLSEND=?
OK
Parameters Description
Example:
AT Commands Response
L
OK
AT+QSSLOPEN=1,0,0,"
A
10.1.1.0",30073,1
+QSSLOPEN: 0,0
>1234
TI
AT+QSSLSEND=0,4
D Q
SEND OK
FI N
6.4 AT+QSSLCLOSE
EN
LY
This command is used to close a SSL connection. If all the SSL connections based on one SSL
context have been closed, the module will release the SSL context.
Response
Write Command
OK
AT+QSSLCLOSE=<clie
or
ntID>
ERROR
N
Parameters Description
Example:
AT Commands Response
OK
AT+QSSLOPEN=1,0,0,"
10.1.1.0",30073,1
+QSSLOPEN: 0,0
AT+QSSLCLOSE=0 OK
6.5 AT+QSSLSTATE
L
This command is used to query the Socket connection status, and can only query the SSL connection
A
status.
TI
Response
D Q
+QSSLSTATE:
Write Command
<clientID>,"SSLClient",<IP_address>,<remote_port>,<local_port>,<
AT+QSSLSTATE=<clie
FI N
socket_state>,<PDP_ctxID>,<serverID>,<access_mode>,<AT_port>
EN
ntID>
,<SSL_ctxID>
OK
LY
Response
+QSSLSTATE:
Action Command <clientID>,"SSLClient",<IP_address>,<remote_port>,<local_port>,<
AT+QSSLSTATE socket_state>,<PDP_ctxID>,<serverID>,<access_mode>,<AT_port>
,<SSL_ctxID>
OK
Test Command Response
AT+QSSLSTATE=? OK
N
Parameters Description
Integer type. Indicates the data access mode for the SSL connection.
<access_mode>
0 -- cache mode,1--Straight spit mode,2 -- Transparent mode
L
A
6.6 AT+QSSLRECV
TI
D Q
This command is used to get the network data manually.
FI N
EN
Response
Write Command +QSSLRECV:<have_readlen><data>
LY
AT+QSSLRECV=<clien OK
tID>,<readlen> or
ERROR
Response
Test Command
+QSSLRECV: (0-3),(1-1500)
AT+QSSLRECV=?
OK
Parameters Description
O
+QSSLURC:"recv",<clie
ntID>,<currentrecvlength The URC of SSL data incoming in direct push mode.
><CR><LF><data>
L
Parameters Description
A
<currentrecvlength> Integer type, the length of actual received data.
TI
<data> The received data.
D Q
6.8 URC +QSSLURC:"closed"
FI N
EN
LY
Lots of reasons can cause this phenomenon, such as the Internet closes
+QSSLURC:"closed",<cli
the connection or the state of GPRS PDP is deactivated.
entID>
The<socket_state> of <clientID> will be “closing”.
Parameters Description
O
<err> Meaning
0 Operate successfully
1 parameter error
3 mbedtls error
4 connect error
L
8 memory not enough
A
557 socket listen failed
TI
D Q
558 socket write failed
FI N
L
A
TI
D Q
FI N
EN
N LY
O
C
7. FOTA Commands
7.1 AT+QFOTADL Update Firmware
L
Write Command Response
A
AT+QFOTADL=<URL>,< OK
upgrade_mode>,<down or
load_URC_max> ERROR
TI
D Q
Response
Read Command
+QFOTADL: <percent>
AT+QFOTADL?
FI N
OK
EN
Response
Test Command
+HTTPFOTADL: <URL>,(0-100)
LY
AT+QFOTADL=?
OK
Parameters Description
String type. Maximum length: 255 bytes. The URL should start with
<URL>
N
Integer. Download progress URC. The last URC indicates that the
download is complete. For example, if it is set to 50,
L
<percent> Integer. Download or upgrade progress.
A
Integer. 0 indicates the upgrade was successful, and other values
<err>
indicate errors
TI
D Q
FI N
EN
N LY
O
C
8. Error Code
Description Error Code
L
CME_PHONE_ADP_LINK_RSVD 2 // phone adaptor link reserved
A
CME_OPERATION_NOT_ALLOWED 3 // operation not allowed
TI
D Q
CME_OPERATION_NOT_SUPPORTED 4 // operation not supported
FI N
L
CME_INVALID_CHAR_IN_DIAL_STRING 27 //invalid characters in dial string
A
CME_NO_NW_SERVICE 30 //no network service
TI
D Q
CME_NW_TIMEOUT 31 //network timeout
CME_NW_NOT_ALLOWED
EN
calls only
40 //networkpersonalization PIN
CME_NW_PIN_REQUIRED
LY
required
41 //network personalization PUK
CME_NW_PUK_REQUIRED
required
42 //network subset personalization PIN
CME_NW_SUB_PIN_REQUIRED
required
43 //network subset personalization
CME_NW_SUB_PUK_REQUIRED
PUK required
44 //service provider personalization PIN
N
CME_SP_PIN_REQUIRED
required
45 //service provider personalization
CME_SP_PUK_REQUIRED
O
PUK required
46 //corporate personalization PIN
CME_CP_PIN_REQUIRED
required
C
L
location area (#13)
A
133 //requested service option not
CME_SERVICE_OP_NOT_SUBSCRIBED
TI
subscribed (#33)
D Q
134 //service option temporarily out of
CME_SERVICE_OP_OUT_OF_ORDER
order (#34)
FI N
EN
CME_UNSPECIFIED_GPRS_ERR 148 //unspecified GPRS error
LY
L
CMS_SIM_PUK2_REQUIRED 318 //(U)SIM PUK2 required
A
CMS_MEMORY_FAILURE 320 //memory failure
TI
D Q
CMS_INVALID_MEMORY_INDEX 321 //invalid memory index
FI N