Neoway N58 Commands Manual

Type
Commands Manual
N58
AT Commands Manual (India Power Gird)
Issue 1.1.1 Date 2022-01-12
N58 AT Commands Manual (India Power Gird)
Copyright
Copyright © Neoway Technology Co., Ltd.
ii
Copyright © Neoway Technology Co., Ltd 2022. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior
written consent of Neoway Technology Co., Ltd.
is the trademark of Neoway Technology Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
This document provides guide for users to use N58.
This document is intended for system engineers (SEs), development engineers, and test engineers.
THIS GUIDE PROVIDES INSTRUCTIONS FOR CUSTOMERS TO DESIGN THEIR APPLICATIONS.
PLEASE FOLLOW THE RULES AND PARAMETERS IN THIS GUIDE TO DESIGN AND COMMISSION.
NEOWAY WILL NOT TAKE ANY RESPONSIBILITY OF BODILY HURT OR ASSET LOSS CAUSED BY
IMPROPER OPERATIONS.
THE INFORMATION IN THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE DUE TO
PRODUCT VERSION UPDATE OR OTHER REASONS.
EVERY EFFORT HAS BEEN MADE IN PREPARATION OF THIS DOCUMENT TO ENSURE ACCURACY
OF THE CONTENTS, BUT ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS
DOCUMENT DO NOT CONSTITUTE A WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
Neoway provides customers complete technical support. If you have any question, please contact your
account manager or email to the following email addresses:
Website: http://www.neoway.com
N58 AT Commands Manual (India Power Gird)
Contents
Copyright © Neoway Technology Co., Ltd.
iii
Contents
1 Boot LOG Instruction ............................................................................... 12
2 AT Syntax................................................................................................. 13
2.1 Symbols ...................................................................................................................................... 13
2.2 Description ................................................................................................................................. 13
2.3 Command Types ........................................................................................................................ 14
2.4 Command Response Time-Out .................................................................................................. 14
2.5 Unsolicited Result Codes ........................................................................................................... 18
3 General Commands ................................................................................ 19
3.1 ATI–Querying the Manufacturer Information ............................................................................ 19
3.2 AT+GMR–Querying the Software Version ................................................................................ 19
3.3 AT+CSQ–Querying Signal Quality ............................................................................................ 20
3.4 AT+CREG–Querying the Network Registration Status ............................................................ 21
3.5 AT+CEREG–Querying EPS Network Registration Status ........................................................ 22
3.6 AT+COPS–Selecting an Operator ............................................................................................ 23
3.7 AT+CIMI–Requesting International Mobile Subscriber Identity (IMSI) ..................................... 25
3.8 AT+CGSN–Requesting Product Serial Number Identification .................................................. 26
3.9 AT+GSN–Requesting Product Serial Number Identification .................................................... 26
3.10 AT+CCID–Obtaining ICCID of SIM Card ................................................................................ 27
3.11 AT+CGMM–Requesting Model Identification .......................................................................... 27
3.12 AT+GMM–Querying Module Model ........................................................................................ 28
3.13 AT+IPR–Setting Baud Rate .................................................................................................... 29
3.14 AT+CFUN–Setting Module Functionality ................................................................................ 30
3.15 AT+CMUX–Enabling/Disabling Multiplexing Mode ................................................................. 31
3.16 AT+CCLK–Clock ..................................................................................................................... 32
3.17 AT+CPIN–Entering PIN Code ................................................................................................. 33
3.18 AT+CLCK–Facility Lock .......................................................................................................... 34
3.19 AT+CPWD–Changing the Password ...................................................................................... 36
3.20 AT+CGDCONT–Defining PDP Context .................................................................................. 36
3.21 AT+XGAUTH–PDP Authentication ......................................................................................... 38
3.22 AT+CGATT–Setting GPRS Attach and Detach ...................................................................... 39
3.23 ATE1/ATE0–Enabling/Disabling the Terminal Display ............................................................ 40
3.24 ATD*99#–GPRS ..................................................................................................................... 41
3.25 AT+ENPWRSAVE–Enabling or Disabling Sleep Mode .......................................................... 41
3.26 AT+SIGNAL–Setting Blinking Status Signal Indicator ............................................................ 42
3.27 AT+CMEE–Enabling/Disabling the Report of Result Code .................................................... 44
4 SMS Commands ..................................................................................... 46
N58 AT Commands Manual (India Power Gird)
Contents
Copyright © Neoway Technology Co., Ltd.
iv
4.1 AT+CSMS–Selecting SMS Services ........................................................................................ 46
4.2 AT+CPMS–Setting Preferred SMS Storage ............................................................................. 47
4.3 AT+CMGF–Setting Message Format ....................................................................................... 48
4.4 AT+CSCS–Setting the TE Character Set ................................................................................. 49
4.5 AT+CNMI–New Message Indications to TE ............................................................................. 50
4.6 AT+CMGR–Reading SMS Message ........................................................................................ 52
4.7 AT+CMGL–SMS Message List ................................................................................................. 54
4.8 AT+CMGS–Sending SMS Messages ....................................................................................... 56
4.9 AT+CMGW–Writing SMS Messages ........................................................................................ 57
4.10 AT+CMSS–Sending Messages from Storage ........................................................................ 58
4.11 AT+CMGD–Deleting SMS Messages ..................................................................................... 59
4.12 AT+CSCA–Service Center Address ....................................................................................... 60
4.13 AT+CSMP–Setting Text Mode Parameters ............................................................................ 61
4.14 AT+CSDH–Showing Text Mode Parameters .......................................................................... 62
5 TCP/UDP Client Commands ................................................................... 64
5.1 AT+NETAPN–Setting Network APN ......................................................................................... 64
5.2 AT+XIIC–Setting up a PPP Link ............................................................................................... 64
5.3 +PPPSTATUS–Indicating the PPP Connection Status ............................................................ 66
5.4 AT+PPPREDIAL–PPP Redial ................................................................................................... 67
5.5 AT+TCPSETUP–Setting up a TCP Connection ....................................................................... 68
5.6 AT+TCPSEND–Sending TCP Data .......................................................................................... 69
5.7 AT+RECVMODE–Setting Receive Mode ................................................................................. 71
5.8 +TCPRECV–Indicating Data Received from Server ................................................................ 72
5.9 AT+TCPREAD–Reading TCP Data .......................................................................................... 72
5.10 AT+TCPCLOSE–Closing the TCP Connection ...................................................................... 73
5.11 AT+UDPSETUP–Setting up a UDP Connection ..................................................................... 73
5.12 AT+UDPSEND–Sending UDP Data ....................................................................................... 75
5.13 +UDPRECV–Receiving UDP Data ......................................................................................... 76
5.14 AT+UDPREAD–Reading UDP Data ....................................................................................... 77
5.15 AT+UDPCLOSE–Closing UDP Link ....................................................................................... 78
5.16 AT+IPSTATUS–Querying the Transparent TCP/UDP Socket Status ..................................... 78
5.17 AT+TCPACK–Querying Status of Data Sent by TCP Socket ................................................. 79
5.18 AT+DNSSERVER–Setting the DNS Server ........................................................................... 80
5.19 AT+PDPKEEPALIVE–Setting PDP Keepalive Heartbeat ....................................................... 81
5.20 AT+PDPSTATUS–Querying PDP Status ................................................................................ 82
5.21 AT+TCPKEEPALIVE–Setting TCP Keepalive ........................................................................ 83
5.22 AT+TCPSETMODE–Setting the TCP Client Mode ................................................................. 84
6 TCP Server Commands ........................................................................... 86
6.1 AT+TCPLISTENMODE–Setting the TCP Listen Mode ............................................................. 86
6.2 AT+TCPLISTEN–Setting TCP Listening for the Server ............................................................ 87
6.3 AT+CLOSELISTEN–Closing Listening Socket ......................................................................... 87
6.4 AT+CLOSECLIENT–Closing Remote Socket ........................................................................... 88
N58 AT Commands Manual (India Power Gird)
Contents
Copyright © Neoway Technology Co., Ltd.
v
6.5 +TCPRECV(S)–Indicating Data Received from the Client ....................................................... 89
6.6 AT+TCPREADS–Reading TCP Data from the Client ............................................................... 90
6.7 AT+TCPSENDS–Sending Data to the Client ............................................................................ 90
6.8 AT+CLIENTSTATUS–Querying Client Connection Status ....................................................... 91
6.9 AT+TCPACKS–Querying Status of Data Sent by the TCP Server ........................................... 92
7 TCP/UDP Transparent Commands ......................................................... 94
7.1 AT+TCPTRANS–Setting up a Transparent TCP Connection ................................................... 94
7.2 AT+UDPTRANS–Setting up a Transparent UDP Connection .................................................. 95
7.3 AT+TCPACK–Querying of Data Transmitted Status ................................................................. 96
7.4 AT+IPSTATUS–Querying the TCP/UDP Connection Status .................................................... 97
7.5 AT+TRANSCLOSE–Closing the Transparent Connection ....................................................... 98
8 TCP Transparent Transmission Server Commands .............................. 100
8.1 AT+TCPSRVTRANS–Setting Listening for Transparent TCP ................................................ 100
8.2 AT+CLIENTSTATUS–Querying the Status of the Transparent Client Connection ................. 101
9 FTP Commands .................................................................................... 103
9.1 AT+FTPLOGIN–Logging in to the FTP Server ....................................................................... 103
9.2 AT+FTPLOGOUT–Logging Out from the FTP Server ............................................................ 104
9.3 AT+FTPGET–Downloading Data from the FTP Server .......................................................... 105
9.4 AT+FTPPUT–Uploading Data to the FTP Server ................................................................... 107
9.5 AT+FTPSIZE–Obtaining File Size on FTP Server .................................................................. 108
9.6 AT+FTPSTATUS–Querying the FTP Connection Status ........................................................ 109
10 HTTP/HTTPS Commands ................................................................... 112
10.1 AT+HTTPPARA–Setting HTTP Parameters .......................................................................... 112
10.2 AT+HTTPSETUP–Setting up an HTTP Connection .............................................................. 113
10.3 AT+HTTPACTION–HTTP Request ........................................................................................ 113
10.4 AT+HTTPCLOSED–Closing an HTTP Connection ............................................................... 117
10.5 +HTTPRECV–Indicating HTTP Data Received ..................................................................... 117
10.6 AT+HTTPGET–Downloading HTTP Files .............................................................................. 118
10.7 +HTTPGETRPT–Indicating Download Result ..................................................................... 120
10.8 AT+HTTPGETSTAT?–Querying the HTTP Downloading Result .......................................... 121
10.9 +HTTPCLOSE–Indicating the Socket of an HTTP Client is Closed .................................... 123
10.10 AT+HTTPSCFG–Configuring SSL Parameters for HTTPS ................................................ 123
10.11 AT+HTTPSPARA–Setting HTTPS Parameters .................................................................. 125
10.12 AT+HTTPSSETUP–Setting up an HTTPS Connection ...................................................... 126
10.13 AT+HTTPSACTION–Sending an HTTPS Request ............................................................ 126
10.14 AT+HTTPSCLOSE–Closing an HTTP Connection Proactively .......................................... 129
10.15 +HTTPSRECV–Indicating HTTPS Data Received ............................................................. 129
10.16 AT+HTTPSGET–Donwnloading HTTPS File ...................................................................... 131
10.17 +HTTPSGETRPT–Indicating HTTPS Download Result .................................................... 132
10.18 AT+HTTPSGETSTAT?–Querying the Download Result .................................................... 134
10.19 AT+FILEHTTPACTION–HTTP Request in File System ..................................................... 135
10.20 AT+FILEHTTPACTION–HTTPS Request in File System ................................................... 137
N58 AT Commands Manual (India Power Gird)
Contents
Copyright © Neoway Technology Co., Ltd.
vi
10.21 +FILEHTTPSTAT–Indicating the HTTP(S) Uploading/Downloading Result ...................... 138
10.22 +HTTPCLOSED–Indicating HTTP Link Closed ................................................................. 139
11 Call Control Commands ....................................................................... 141
11.1 ATD–Dialing Command ........................................................................................................ 141
11.2 ATA–Call Answering .............................................................................................................. 142
11.3 ATH–Hanging up Calls ......................................................................................................... 142
11.4 AT+CLIP–Caller ID ............................................................................................................... 143
11.5 ATS0–Auto-Answer .............................................................................................................. 144
11.6 AT+CLVL–Setting the Voice Volume .................................................................................... 144
11.7 AT+CMUT–Mute Control ...................................................................................................... 145
11.8 AT+CLCC–Querying Current Calls ....................................................................................... 146
11.9 AT+SETVOLTE–Setting VoLTE Switch ................................................................................ 148
12 Wi-Fi Function ..................................................................................... 149
12.1 AT+WIFIAPSCAN–Wi-Fi Hotspot Scanning ......................................................................... 149
12.2 AT+WIFIGSMLOC–Wi-Fi Positioning ................................................................................... 149
13 SSL TCP Data Service ........................................................................ 151
13.1 AT+SSLTCPCFG–Configuring SSL Parameters for TCP ..................................................... 151
13.2 AT+SSLTCPSETUP–Setting up a TCP Connection over SSL ............................................. 152
13.3 AT+SSLTCPCLOSE–Closing TCP Connection over SSL .................................................... 154
13.4 AT+SSLTCPSEND–Sending TCP Data over SSL ................................................................ 154
13.5 +SSLTCPRECV–Indicating SSLTCP Data is Received ....................................................... 155
13.6 AT+CERTADD–Adding SSL Certificate ................................................................................ 156
13.7 AT+CERTCHECK–Checking the SSL Certificate ................................................................. 157
13.8 AT+CERTDEL–Deleting an SSL Certificate ......................................................................... 157
13.9 AT+SSLTCPCFGA–Configuring SSL Parameters for TCP .................................................. 158
13.10 AT+SSLTCPREAD–Reading SSL TCP Data ...................................................................... 159
13.11 AT+SSLCIPHERSET–Removing Weak Algorithm from the SSLTCP Connection ............. 160
14 MQTT Commands ............................................................................... 162
14.1 AT+MQTTTLS–Configuring TLS Parameters ....................................................................... 162
14.2 AT+MQTTCONNPARAM–Setting User Parameters ............................................................ 163
14.3 AT+MQTTWILLPARAM–Setting Will .................................................................................... 164
14.4 AT+MQTTWILLMSG–Setting Long Will Messages .............................................................. 165
14.5 AT+MQTTCONN–Connection Command ............................................................................. 165
14.6 AT+MQTTSUB–Subscribing a Topic .................................................................................... 166
14.7 AT+MQTTUNSUB–Canceling a Subscription ....................................................................... 167
14.8 AT+MQTTPUB–Publishing a Topic ....................................................................................... 168
14.9 AT+MQTTPUBS–Publishing a Topic with Long Message .................................................... 169
14.10 AT+MQTTDISCONN–Disconnecting to the MQTT Server ................................................. 169
14.11 +MQTTSUB–Receiving Message ...................................................................................... 170
14.12 AT+MQTTSTATE–Querying the MQTT Connection Status ................................................ 171
15 GPS Function ...................................................................................... 172
15.1 AT$MYGPSPWR–GPS Switch ............................................................................................. 172
N58 AT Commands Manual (India Power Gird)
Contents
Copyright © Neoway Technology Co., Ltd.
vii
15.2 AT$MYGPSSTATE–Querying the GPS Switch Status ......................................................... 172
15.3 AT$MYGPSPOS–Obtaining NMEA Data ............................................................................. 173
15.4 AT$MYGNSSSEL–Enabling an Aid GNSS System .............................................................. 178
15.5 AT$MYGNSSMSG–Obtaining Positioning Data of Aid GNSS System ................................ 178
15.6 AT+SETSERVER–Setting AGPS Server .............................................................................. 179
15.7 AT+GPSDEL–Clearing GPS Data ........................................................................................ 180
15.8 AT$MYGPSCFG–Setting GPS ............................................................................................. 181
16 Domain Name Parsing ........................................................................ 183
16.1 AT+DNS–Parsing the Domain Name ................................................................................... 183
16.2 AT+NWDNS–Parsing the Domain Name ............................................................................. 183
17 PING Test Command ........................................................................... 185
17.1 AT+PING–PING Test ............................................................................................................ 185
18 DTMF Commands ............................................................................... 187
18.1 AT+VTS–Transmitting DTMF Tones ..................................................................................... 187
19 GSM Location Command .................................................................... 188
19.1 AT+CIPGSMLOC–Obtaining the Location of the Module ..................................................... 188
20 Time Synchronization Commands ....................................................... 190
20.1 AT+UPDATETIME–Updating Time to Network ..................................................................... 190
21 Network Sharing Commands ............................................................... 193
21.1 AT+NETSHAREMODE–Selecting Network Sharing Mode .................................................. 193
21.2 AT+NETSHAREACT–Enabling Network Sharing ................................................................. 194
22 Statistics on Data Traffic ...................................................................... 196
22.1 AT+FLOWCALC–Statistics on Total Data Traffic .................................................................. 196
22.2 AT+RATECALC–Statistics on Transient Traffic .................................................................... 196
23 File System Commands ...................................................................... 198
23.1 AT+FSWF–Writing Data to File ............................................................................................. 198
23.2 AT+FSRF–Reading Data from a File .................................................................................... 199
23.3 AT+FSRFEX–Reading File ................................................................................................... 200
23.4 AT+FSDF–Deleting a File ..................................................................................................... 201
23.5 AT+FSLIST–Obtaining File List ............................................................................................ 202
23.6 AT+FSFS–Obtaining the Size of a File ................................................................................. 203
23.7 AT+FSLS–Obtaining the Remaining Storage Size of User Disk .......................................... 203
23.8 AT+FSFAT–Formating the User Disk ................................................................................... 204
23.9 AT+FSRN–Renaming the File .............................................................................................. 205
24 Audio Recording Commands ............................................................... 207
24.1 AT+RECMODE–Setting Recording Mode ............................................................................ 207
24.2 AT+RECF–Starting and Stopping an Audio Recording ........................................................ 208
24.3 AT+RECP–Playing the Record File ...................................................................................... 209
24.4 AT+RECFG–Playing Settings of Recording File................................................................... 210
24.5 AT+AUDPLAY–Playing Audio ............................................................................................... 210
24.6 AT+AUDPAUSE–Pausing Audio Playing .............................................................................. 212
N58 AT Commands Manual (India Power Gird)
Contents
Copyright © Neoway Technology Co., Ltd.
viii
24.7 AT+AUDRESUME–Resuming Audio Playing ....................................................................... 212
24.8 AT+AUDCFG–Settings of Audio Playing .............................................................................. 213
24.9 AT+AUDPCMRATE–Setting the Sampling Rate of Playing the PCM Format Audio ............ 214
25 SIM Card Related Commands ............................................................. 215
25.1 AT+SIMCROSS–Switching SIM ........................................................................................... 215
26 Other Commands ................................................................................ 217
26.1 AT$MYPOWEROFF–Powering off the Module .................................................................... 217
26.2 AT$MYSOCKETLED–Controlling the Indicator of Socket Status ......................................... 217
26.3 AT$MYGMR–Obtaining the Firmware and Hardware Information of the Module ................ 218
26.4 AT$MYCCID–Obtaining the CCID of the SIM Card .............................................................. 219
26.5 AT$MYTYPE–Querying the Type of the Module .................................................................. 219
26.6 AT$MYMODEM–Querying the Type of the Module .............................................................. 220
26.7 AT$MYBCCH–Locking BCCH Channel ................................................................................ 221
26.8 AT$MYBAND–Locking GSM Band ....................................................................................... 223
26.9 AT$MYLACID–Querying Current LAC and CELL_ID ........................................................... 223
26.10 AT$MYCGED–Querying Current Channel, RX Power, and TX Power .............................. 224
26.11 AT$MYSYSINFO–Querying or Locking the Network Mode ............................................... 225
26.12 AT$MYSYSINFOURC–Switch of Network Mode URC Indication ...................................... 226
26.13 AT$MYURCSYSINFO–Network Mode URC Indication ...................................................... 227
26.14 $MYURCSYSINFO–Indicating Network Mode ................................................................... 228
26.15 AT$MYNETINFO–Setting Network Mode Choices ............................................................. 228
26.16 AT$MYNETAUTO–Enabling/Disabling the Default AUTO Network Modes during Startup 229
26.17 AT^SYSINFO–Setting Network Mode Choice .................................................................... 230
26.18 AT+XISP–Selecting Internal or External Protocol Stack .................................................... 232
26.19 AT+NRSP–Querying RSRP, RSRQ, SINR of Cells in a Neighbor of a Serving Cell on the LTE
Network .......................................................................................................................................... 232
26.20 AT+NETMSG–Querying Network Registration Information ................................................ 233
26.21 AT+NETDMSG–Querying Network Registration Information ............................................. 235
26.22 AT+READADC–Reading ADC Value .................................................................................. 236
26.23 AT+SIMHOTSWAP–Setting the Hotswapping Function ..................................................... 237
26.24 AT+MYDATAONLY–Disabling CS Services ........................................................................ 238
26.25 AT+BANDLOCK–Locking to Band ...................................................................................... 239
26.26 AT+MYCELLINFO–Obtaining Information of Neighbor Cells ............................................. 240
26.27 AT+NCUSTSWITCH–Switch of Extended Functions ......................................................... 242
26.28 AT+NBANDLOCK–Locking Multiple Frequency Bands ...................................................... 244
26.29 AT+NFREQLOCK–Locking the Specified Frequency ........................................................ 245
26.30 AT+NWCUSTPIN–Setting Specified GPIO ........................................................................ 247
26.31 AT+IPINFO–Querying Socket Connection Information ...................................................... 248
26.32 AT+SETTZ–Setting Clock Offset Time ............................................................................... 249
26.33 AT+NWCHANNEL–Setting the Network Activation Channel .............................................. 250
26.34 AT+CGACT–Activating/Deactivating PDP Context ............................................................ 251
26.35 AT+FTPGETF–FTP Upgrade Command ............................................................................ 252
26.36 AT+RIMEIR–Reading the Written Record of IMEI Number ................................................ 254
N58 AT Commands Manual (India Power Gird)
Contents
Copyright © Neoway Technology Co., Ltd.
ix
26.37 AT+DIMIR–Deleting the IMEI Number Written Records ..................................................... 255
26.38 AT+FTPGETFCFG–Enabling/Disabling the URC Indicating the Package Download Progress
........................................................................................................................................................ 256
26.39 AT+TCPSRVLEDCFG–Configuring the Indicator Status for TCP Listening ....................... 256
26.40 AT+TCPSRVLEDCFG–Enabling the Data Communication Indicator ................................ 257
Error Codes ........................................................................................... 259
A.1 General Error Codes ................................................................................................................ 259
A.2 FTP Error Codes ...................................................................................................................... 261
A.3 HTTP(S) Error Codes .............................................................................................................. 261
Reference Process of AT Command Programming .............................. 264
B.1 Content of PDU SMS Messages ............................................................................................. 264
B.2 Flowchart of Sending Text SMS Messages (Through UART) ................................................. 266
B.3 Flowchart of Sending PDU SMS Messages (Through UART) ................................................ 267
Support Band List ................................................................................. 268
C.1 GSM Bands ............................................................................................................................. 268
C.2 LTE Bands ............................................................................................................................... 268
N58 AT Commands Manual (India Power Gird)
About This Document
Copyright © Neoway Technology Co., Ltd.
x
About This Document
Scope
This document is applicable to N58.
Audience
This document is intended for system engineers (SEs), development engineers, and test engineers.
Change History
Issue
Date
Changed By
1.0
2021-12
Feng Yan
1.1
2021-12
Liu Fang
Conventions
Symbol
Indication
This warning symbol means danger. You are in a situation that could cause fatal
device damage or even bodily damage.
Means reader be careful. In this situation, you might perform an action that could
result in module or product damages.
Means note or tips for readers to use the module
N58 AT Commands Manual (India Power Gird)
About This Document
Copyright © Neoway Technology Co., Ltd.
xi
Related Documents
Neoway_N58_Datasheet
Neoway_N58_Product_Specifications
Neoway_N58_HW_User_Guide
Neoway_N58_EVK_User_Guide
N58 AT Commands Manual (India Power Gird)
Chapter 1 Boot LOG Instruction
Copyright © Neoway Technology Co., Ltd.
12
1 Boot LOG Instruction
The UART outputs \r\n+PBREADY\r\n after the phonebook is available (the SIM card is inserted);
+EUSIM:ERROR is prompted when there is not a SIM card.
N58 AT Commands Manual (India Power Gird)
Chapter 2 AT Syntax
Copyright © Neoway Technology Co., Ltd.
13
2 AT Syntax
2.1 Symbols
âš« <CR>: carriage return character
âš« <LF>: linefeed character
âš« <..>: parameter name, the angle brackets do not appear in the command line.
âš« [..]: optional parameter, the square brackets do not appear in the command line.
âš« : space
2.2 Description
Prefix
AT or at
Command Line
Standard commands, in compliance with 3GPP 27007, 27005and ITU-T Recommendation V.250.
Extended commands, defined by Neoway
Joint Mark
+ or $, used between the prefix and a command line
Termination Character
<CR>, i.e. 0x0D
N58 AT Commands Manual (India Power Gird)
Chapter 2 AT Syntax
Copyright © Neoway Technology Co., Ltd.
14
Response Syntax
<CR><LF>response<CR><LF>
Response can be one or multiple messages.
Result Syntax
<CR><LF>OK<CR><LF> indicates that a command is executed successfully.
<CR><LF>ERROR<CR><LF> indicates that a command fails to be executed.
For the error codes, see Appendix A.
2.3 Command Types
Type
Syntax
Response
Function
Set
AT+CMD=<VALUE><CR>
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
Store a value or
values for later use
Execute
AT+CMD[=<VALUE>]<CR>
[<CR><LF>response]
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
Invoke a function of
the module.
Test
AT+CMD=?<CR>
[<CR><LF>response]
<CR><LF>OK<CR><LF>
Determine the range
of parameter values
or parameter lengths
that are supported
Query
AT+CMD?<CR>
[<CR><LF>response]
<CR><LF>OK<CR><LF>
Determine the current
value or values stored
Remarks
Symbols are not displayed in AT commands. All commands comply with the rules in this
chapter.
2.4 Command Response Time-Out
Every command issued to the Neoway module returns a result response and the time needed to
process the given command and return the response varies, depending on the command type.
Commands that do not interact with the SIM or the network, and only involve internal setups or
readings, have an immediate response, and the maximum response timeout is default to 300 ms.
N58 AT Commands Manual (India Power Gird)
Chapter 2 AT Syntax
Copyright © Neoway Technology Co., Ltd.
15
Commands that interact with the SIM/USIM, the network, or the peripherals could take many seconds
to send a response, depending on SIM configuration (e.g., number of contacts stored in the
phonebook, number of stored SMS), on the network the command may interact with (e.g., network
quality, network congestion, and so on), or on the peripheral type.
In the table below are listed only the commands whose interaction with the SIM, the network, or the
peripheral could lead to long response timings. For other commands not listed in the table below, the
maximum response time is 300 ms.
No.
Command
Estimated maximum time to get response (seconds)
1
AT+COPS
180
2
AT+CFUN
120
3
AT+CPIN
5
4
AT+CLCK
15
5
AT+CPWD
5
6
AT+CGATT
60
7
ATD*99#
30
8
AT+CMGR
30
9
AT+CMGL
30
10
AT+CMGS
30
11
AT+CMSS
30
12
AT+XIIC
60
13
AT+TCPSETUP
60
14
AT+TCPSEND
30
15
AT+TCPCLOSE
5
16
AT+UDPSETUP
30
17
AT+UDPSEND
30
18
AT+CLOSELISTEN
5
19
AT+CLOSECLIENT
5
20
AT+TCPSENDS
30
21
AT+TCPTRANS
OK or ERROR is returned within 300 ms and the actual
connection status is returned within 60s.
22
AT+UDPTRANS
OK or ERROR is returned within 300 ms and the actual
connection status is returned within 60s.
23
AT+TRANSCLOSE
60
24
AT+FTPLOGIN
30
N58 AT Commands Manual (India Power Gird)
Chapter 2 AT Syntax
Copyright © Neoway Technology Co., Ltd.
16
25
AT+FTPLOGOUT
30
26
AT+FTPGET
30
27
AT+FTPPUT
30
28
AT+FTPSIZE
30
29
AT+HTTPSETUP
60
30
AT+HTTPACTION
60
31
AT+HTTPCLOSE
60
32
AT+HTTPGET
60
33
AT+HTTPSSETUP
60
34
AT+HTTPSACTION
60
35
AT+HTTPSCLOSE
60
36
AT+HTTPSGET
60
37
AT+FILEHTTPACTION
60
38
AT+FILEHTTPSACTION
60
39
AT+HTTPSCLOSED
60
40
ATD
60
41
ATA
30
42
ATH
30
43
AT+CLIP
30
44
ATS0
30
45
AT+WIFIAPSCAN
30
46
AT+WIFIGSMLOC
30
47
AT+SSLTCPSETUP
60
48
AT+SSLTCPCLOSE
5
49
AT+SSLTCPSEND
30
50
AT+CERTADD
30
51
AT+CLOUDCONN
30
52
AT+CLOUDSUB
30
53
AT+CLOUDPUB
30
54
AT+CLOUDPUBMSG
30
55
AT+CLOUDUNSUB
30
56
AT+CLOUDDISCONN
30s+100ms
57
AT+MQTTWILLMSG
30
N58 AT Commands Manual (India Power Gird)
Chapter 2 AT Syntax
Copyright © Neoway Technology Co., Ltd.
17
58
AT+MQTTCONN
15
59
AT+MQTTSUB
10
60
AT+MQTTUNSUB
10
61
AT+MQTTPUB
30
62
AT+MQTTPUBS
30
63
AT+MQTTDISCONN
10
64
AT+AWSCONN
20
65
AT+AWSSUB
20
66
AT+AWSUNSUB
20
67
AT+AWSPUB
20
68
AT+AWSDISCONN
20
69
AT$MYGPSPWR
10
70
AT$MYGPSPOS
1
71
AT+DNS
30
72
AT+NWDNS
30
73
AT+PING
5
74
AT+CIPGSMLOC
10
75
AT+UPDATETIME
60
76
AT+NETSHAREACT
60
77
AT+FSWF
Custom, 0 - 240
78
AT+SIMCROSS
10
79
AT$MYBCCH
15
80
AT$MYBAND
15
81
AT$MYLACID
10
82
AT$MYCGED
10
83
AT$MYSYSINFO
120
84
AT$MYNETINFO
120
85
AT+NETMSG
10
86
AT+NETDMSG
10
87
AT+NEOFOTA
60
88
AT+BANDLOCK
120
89
AT+NBANDLOCK
120
90
AT+NFREQLOCK
120
N58 AT Commands Manual (India Power Gird)
Chapter 2 AT Syntax
Copyright © Neoway Technology Co., Ltd.
18
91
AT+NWCUSTPIN
15
92
AT+IPINFO
15
93
AT+CGACT
60s per dialing operation
94
AT+FTPGETF
30
2.5 Unsolicited Result Codes
Unsolicited result codes (URCs) are messages sent from the GSM/GPRS modem or mobile
phone to provide you with information about the occurrence of an event.
Here are part of the URCs not directly associated with the issuance of a command from TE:
URC
Description
+GSM Service
Indicate that the module has switched to the 2G network.
+PBREADY
Prompted once the module starts up, indicating that the phonebook is
available and the module is ready for AT communications.
+EUSIM:ERROR
Prompted once the module starts up, indicating that no SIM card is inserted
For other URCs, see the description of the following AT commands.
N58 AT Command Manual
Chapter 3 General Commands
Copyright © Neoway Technology Co., Ltd.
19
3 General Commands
3.1 ATI–Querying the Manufacturer Information
To query the manufacturer information, including manufacture, model, and version
Format
Type
Command
Response
Execute
ATI<CR>
<CR><LF><manufacturer>
<CR><LF><module_version>
<CR><LF><soft_version>
<CR><LF>OK<CR><LF>
Parameter
<manufacturer>
Module manufacturer, module name, software version.
<module_version>
Module model
<soft_version>
software version
Example
ATI
NEOWAY
N58
V001
OK
Manufacturer
Module model
Version
3.2 AT+GMR–Querying the Software Version
To query the software version
N58 AT Command Manual
Chapter 3 General Commands
Copyright © Neoway Technology Co., Ltd.
20
Format
Type
Command
Response
Execute
AT+GMR<CR>
<CR><LF>+GMR: <reversion>
<CR><LF>OK<CR><LF>
Parameter
<reversion>
Software version of the module.
Example
AT+GMR
N58-R07-STD-BZ_V20_INDIA-02
OK
Query the software version
3.3 AT+CSQ–Querying Signal Quality
To query the receiving signal strength indication (RSSI).
Format
Type
Command
Response
Execute
AT+CSQ<CR>
<CR><LF>+CSQ: <signal>,<ber>
<CR><LF>OK<CR><LF>
Parameter
<signal>
The following table shows the relationship between the signal (CSQ) and the
RSSI.
signal
rssi
0
<4 or 99
<-107 dBm or unknown
1
<10
< -93 dBm
2
<16
< -111 dBm
3
<22
< -69 dBm
4
<28
< -57 dBm
5
>=28
>=-57 dBm
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269

Neoway N58 Commands Manual

Type
Commands Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI