Neoway N25 Commands Manual

  • Hello! I'm your chat assistant. I've reviewed the N25 AT Commands Manual and understand how to use the AT commands provided. This document covers a wide range of functionalities, from basic network registration and SMS handling to more advanced features like TCP/UDP connections, FTP/HTTP interaction, and MQTT. I'm ready to help you with any questions about the N25 module and its command set.
  • How do I query the module's IMEI?
    How do I enable network registration unsolicited result codes?
    What command is used for setting up a TCP connection?
    How do I save parameter settings?
AT Commands Manual
Issue 1.1 Date 2019-11-12
N25 AT Commands Manual
Copyright
Copyright © Neoway Technology Co., Ltd
i
Copyright © Neoway Technology Co., Ltd 2019. 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 N25.
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
N25 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
ii
Contents
1 General Commands ................................................................................. 8
1.1 Querying Module Information: ATI................................................................................................ 8
1.2 Querying Software Version: +CGMR ........................................................................................... 8
1.3 Querying IMEI: +CGSN ................................................................................................................ 9
1.4 Querying the IMSI: +CIMI ............................................................................................................ 9
1.5 Obtaining the ICCID of the SIM Card: +CCID ............................................................................ 10
2 UE Control and Status Report ................................................................ 11
2.1 Querying the Network Registration Status: +CREG ................................................................... 11
2.2 Querying EPS Network Registration Status: +CEREG .............................................................. 12
2.3 Enabling & Disabling the Terminal Display: ATE1/ATE0 ............................................................ 14
2.4 Setting the Code Result Suppression Mode: ATQ ..................................................................... 14
2.5 Setting the Response Format of the Device: ATV ...................................................................... 15
2.6 Saving Parameter Settings: AT&W ............................................................................................ 16
2.7 Resetting the Module to Factory Settings: AT&F ....................................................................... 16
2.8 Setting Module Functionality: +CFUN ........................................................................................ 17
2.9 Clock: +CCLK ............................................................................................................................. 17
2.10 Setting the Baud Rate of the Module: +IPR ............................................................................. 18
2.11 Entering PIN Code: +CPIN ...................................................................................................... 19
2.12 Setting Error Information: +CMEE ........................................................................................... 19
3 SMS Commands .................................................................................... 21
3.1 Setting Preferred SMS Storage: +CPMS ................................................................................... 21
3.2 Setting SMS Inputting Mode: +CMGF........................................................................................ 22
3.3 Setting TE Character Set: +CSCS ............................................................................................. 22
3.4 Setting SMS Indication Mode: +CNMI ....................................................................................... 23
3.5 Reading SMS Messages: +CMGR ............................................................................................ 25
3.6 SMS Message List: +CMGL ....................................................................................................... 26
3.7 Sending SMS Messages:+CMGS .............................................................................................. 28
3.8 Writing SMS Messages:+CMGW ............................................................................................... 29
3.9 Sending Stored SMS Messages:+CMSS .................................................................................. 30
3.10 Delete SMS Messages: +CMGD ............................................................................................. 31
3.11 Setting SMS Center Number: +CSCA ..................................................................................... 32
3.12 Setting Text Mode Parameters: +CSMP .................................................................................. 32
3.13 Displaying Text Mode Parameters: +CSDH ............................................................................. 33
4 Network Service ..................................................................................... 35
4.1 Querying Signal Quality: +CSQ ................................................................................................. 35
4.2 Selecting and Registering a GSM Network: +COPS ................................................................. 36
4.3 Querying Network State: +NETSTATE ...................................................................................... 37
4.4 Querying Network Status: + TUESTATS .................................................................................... 38
4.5 Querying CE Status: +CESTATUS............................................................................................. 40
4.6 Setting SC Mode: +SETSCMODE ............................................................................................. 40
N25 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
iii
4.7 Setting Network Mode: +NETCFG ............................................................................................. 41
5 EGPRS Commands ............................................................................... 42
5.1 Setting PDP Format: CGDCONT ............................................................................................... 42
5.2 Setting Up a PPP Link: +XIIC .................................................................................................... 43
5.3 Setting GPRS Attach and Detach: +CGATT .............................................................................. 44
5.4 Reporting IP Address: +IPADDR ................................................................................................ 44
5.5 Reporting RRC Status: +CSCON .............................................................................................. 45
5.6 Reporting PSM Status: +PSMEVENT........................................................................................ 45
5.7 Releasing RRC Connection: +RRCRLSREQ ............................................................................ 46
6 TCP Client Commands ........................................................................... 47
6.1 Setting Receive Mode: +RECVMODE ....................................................................................... 47
6.2 Setting TCP Keepalive: + TCPKEEPALIVE ............................................................................... 47
6.3 Setting Up TCP Connection: +TCPSETUP ................................................................................ 48
6.4 Sending TCP Data: +TCPSEND ................................................................................................ 49
6.5 Querying Status of Data Sent: +TCPACK .................................................................................. 50
6.6 Receiving TCP Data: +TCPRECV ............................................................................................. 51
6.7 Reading TCP Data: +TCPREAD ................................................................................................ 51
6.8 Closing TCP Link: +TCPCLOSE ................................................................................................ 52
6.9 Setting Up UDP Connection: +UDPSETUP ............................................................................... 52
6.10 Sending UDP Data: +UDPSEND ............................................................................................. 53
6.11 Receiving UDP Data: +UDPRECV .......................................................................................... 54
6.12 Reading UDP Data: +UDPREAD ............................................................................................. 55
6.13 Closing UDP Connection: +UDPCLOSE ................................................................................. 55
6.14 Querying TCP/UDP Connection Status: +IPSTATUS .............................................................. 55
7 Transparent TCP/UDP Commands......................................................... 57
7.1 Setting Up Transparent TCP Connection: +TCPTRANS ........................................................... 57
7.2 Setting Up Transparent UDP Connection:+UDPTRANS ........................................................... 58
7.3 Closing Transparent Connection: +TRANSCLOSE ................................................................... 58
7.4 Querying TCP/UDP Connection Status: +IPSTATUS ................................................................ 59
8 FTP AT Commands ................................................................................ 60
8.1 Logging in to the FTP Server: +FTPLOGIN ............................................................................... 60
8.2 Logging Out from the FTP Server: +FTPLOGOUT .................................................................... 61
8.3 Obtaining File Size on FTP Server: +FTPSIZE.......................................................................... 61
8.4 Downloading Data from the FTP Server: +FTPGET .................................................................. 62
8.5 Uploading Data to the FTP Server: +FTPPUT ........................................................................... 63
8.6 Querying FTP Link Status: +FTPSTATUS ................................................................................. 64
9 HTTP Commands ................................................................................... 66
9.1 Setting HTTP Parameters: +HTTPPARA ................................................................................... 66
9.2 Setting Up HTTP Link: +HTTPSETUP ....................................................................................... 67
9.3 HTTP Request: +HTTPACTION................................................................................................. 67
9.4 Closing HTTP Link: +HTTPCLOSE ........................................................................................... 70
9.5 Receiving HTTP Data: +HTTPRECV ......................................................................................... 70
9.6 HTTP Link Closing: +HTTPCLOSED ......................................................................................... 71
10 HTTPS Commands .............................................................................. 72
10.1 Setting HTTPS Parameters: +HTTPSPARA ............................................................................ 72
10.2 Setting Up HTTPS Connection: +HTTPSSETUP .................................................................... 72
N25 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
iv
10.3 HTTPS Request: +HTTPSACTION ......................................................................................... 73
10.4 Closing HTTPS Connection: +HTTPSCLOSE ......................................................................... 75
10.5 Receiving HTTPS Data: +HTTPSRECV .................................................................................. 75
10.6 HTTPS Connection Closed Report: +HTTPSCLOSED ........................................................... 76
11 MQTT Commands ................................................................................ 77
11.1 User Parameter Settings: +MQTTCONNPARAM .................................................................... 77
11.2 Will Settings: +MQTTWILLPARAM .......................................................................................... 77
11.3 Connection Command: +MQTTCONN .................................................................................... 78
11.4 Subscription: +MQTTSUB ........................................................................................................ 78
11.5 Cancelling Subscription: +MQTTUNSUB ................................................................................ 79
11.6 Topic Publish: +MQTTPUB ...................................................................................................... 79
11.7 Disconnecting to the MQTT Server: +MQTTDISCONN ........................................................... 80
11.8 Receiving Topic Content: +MQTTSUB ..................................................................................... 80
11.9 Report of Disconnection: +MQTTDISCONNED ....................................................................... 81
11.10 Querying MQTT Connection Status: +MQTTSTATE ............................................................. 81
12 PSM&eDRX Commands ...................................................................... 82
12.1 Setting PSM Mode: +CPSMS .................................................................................................. 82
12.2 Setting eDRX Mode: +CEDRXS .............................................................................................. 84
12.3 Reading eDRX Parameters: +CEDRXRDP ............................................................................. 86
13 Other Commands ................................................................................. 88
13.1 Updating Time:+UPDATETIME ................................................................................................ 88
13.2 Powering Off Module: +CPWROFF ......................................................................................... 90
13.3 Setting Clock Mode: +CSCLK .................................................................................................. 90
13.4 Setting PM Mode: +NVSETPM ................................................................................................ 91
13.5 PING Test: +PING .................................................................................................................... 91
13.6 Enabling Extending Functions: +NEONBIOTCFG ................................................................... 92
13.7 Setting LED: +LEDMODE ........................................................................................................ 92
14 Error Code ............................................................................................ 94
Reference Process of AT Command Programming ................................ 96
A.1 Content of PDU SMS Messages ............................................................................................... 96
A.2 Flowchart of Sending Text SMS Messages (Through UART) ................................................... 98
A.3 Flowchart of Sending PDU SMS Messages (Through UART) .................................................. 99
N25 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
v
About This Document
Scope
This document is applicable to N25.
Audience
This document is intended for system engineers (SEs), development engineers, and test engineers.
Change History
Issue
Date
Changed By
1.0
2019-01
Tao Wenhong
1.1
2019-10
Tao Wenhong
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
N25 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
vi
Related Documents
Neoway_N25_Datasheet
Neoway_N25_Product_Specifications
Neoway_N25_EVK_User_Guide
N25 AT Commands Manual
Chapter 1 General Commands
Copyright © Neoway Technology Co., Ltd
7
Boot LOG Instruction
The UART outputs +PBREADY after the phonebook is available.
If the module is booted in automatic baudrate detection mode, enter AT 5 seconds after the module is
powered up to check if the AT function is initialized. The UART responds with OK if AT is initialized and
outputs +PBREADY after the phonebook is available.
N25 does not detect baudrate automatically if at is sent.
N25 AT Commands Manual
Chapter 1 General Commands
Copyright © Neoway Technology Co., Ltd
8
1 General Commands
1.1 Querying Module Information: ATI
Description
To query the module information, including manufacturer, model, and version
Format
ATI<CR>
Parameter
<manufacturer>: Module manufacturer
<module_model>: Module model
<soft_version>: Software version
Return Value
<CR><LF><manufacturer>
<CR><LF><module_model>
<CR><LF><soft_version>
<CR><LF>OK<CR><LF>
Example
ATI
NEOWAY
N25
01
OK
Manufacturer
Module model
Version
Remarks
N/A
1.2 Querying Software Version: +CGMR
Description
To query the software version
Format
AT+CGMR<CR>
Parameter
<version>: Software version information
Return Value
<CR><LF>+CGMR: <version>
<CR><LF>OK<CR><LF>
Example
AT+CGMR
+CGMR: N25-R02-STDBZ-01
OK
Remarks
N/A
N25 AT Commands Manual
Chapter 1 General Commands
Copyright © Neoway Technology Co., Ltd
9
1.3 Querying IMEI: +CGSN
Description
To query the International Mobile Equipment Identity (IMEI) of the module
Format
AT+CGSN<CR>
Parameter
N/A
Return Value
<CR><LF>+CGSN: <IMEI>
<CR><LF>OK<CR><LF>
Example
AT+CGSN
+CGSN: 355910044336974
OK
Remarks
The IMEI is a character string of 15 digits.
1.4 Querying the IMSI: +CIMI
Description
To query the international mobile subscriber identification (IMSI)
Format
AT+CIMI<CR>
Parameter
N/A
Return Value
<CR><LF>+CIMI: <IMSI>
<CR><LF>OK<CR><LF>
<CR><LF>ERROR<CR><LF>
<CR><LF>+CME ERROR: <err><CR><LF>
Example
AT+CIMI
+CIMI: 460020188385503
OK
Obtain the IMSI number.
AT+CIMI
ERROR
Query the IMSI.
No SIM card is installed.
Remarks
IMSI is a character string of 15 digits and starts with 3 digits of MCC and 2 digits of
MNC. It is used to authenticate the SIM card.
N25 AT Commands Manual
Chapter 1 General Commands
Copyright © Neoway Technology Co., Ltd
10
1.5 Obtaining the ICCID of the SIM Card: +CCID
Description
To obtain the integrated circuit card identifier (ICCID) of the SIM card
Format
AT+CCID<CR>
Parameter
<ICCID>: SIM card ID
Return Value
<CR><LF>+CCID: <ICCID>
<CR><LF>OK<CR><LF>
<CR><LF>ERROR<CR><LF>
Example
AT+CCID
+CCID: 89860002190810001367
OK
Read command
AT+CCID
ERROR
Read command
The SIM card is not inserted.
Remarks
The ICCID number is a character string of 20 digits.
N25 AT Commands Manual
Chapter 2 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
11
2 UE Control and Status Report
2.1 Querying the Network Registration Status: +CREG
Description
To query the network registration status of the module
Format
AT+CREG=[<n>]<CR>
AT+CREG?<CR>
AT+CREG=?<CR>
Parameter
<n>: Specified whether to enable network registration unsolicited result codes.
0: Disable network registration unsolicited result codes (default setting).
1: Enable network registration unsolicited result codes +CREG: <stat>.
2: Enable network registration and location information (Cell ID, Local ID)
unsolicited result code +CREG: <stat>[, [<lac>],[<ci>],[<AcT>]]
<stat>: network status
0: Not registered, the module is not currently searching an operator to register to
1: Registered the home network
2: Not registered, but the module is currently trying to attach or searching an
operator to register to
3: Registration denied
4. Unknown code
5: Registered, roaming
<lac>: Two-byte location area code in hexadecimal format, string type
<ci>: Four-byte cell ID in hexadecimal format, string type
<Act>: The access technology of the serving cell, integer type
0: GSM
1: GSM compact
2: UTRAN
3: GSM w/EGPRS
4: UTRAN w/HSDPA
5: UTRAN w/HSUPA
6: UTRAN w/HSDPA and HSUPA
7: E-UTRAN
9: NB-IoT
Return Value
<CR><LF>+CREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
<CR><LF>OK<CR><LF>
<CR><LF>ERROR<CR><LF>
<CR><LF>+CME ERROR: <err><CR><LF>
N25 AT Commands Manual
Chapter 2 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
12
Example
AT+CREG=1
OK
Enable network registration
unsolicited codes.
AT+CREG?
+CREG: 0,1
OK
Query the network registration
status of the module.
AT+CREG=?
+CREG: (0-2)
OK
Query the value range of the
network registration status
parameter.
Remarks
N/A
2.2 Querying EPS Network Registration Status: +CEREG
Description
To query the EPS network registration status of the module
Format
AT+CEREG=[<n>]<CR>
AT+CEREG?<CR>
AT+CEREG=?<CR>
Parameter
<n>: Specified whether to enable network registration unsolicited result codes.
0: Disable network registration unsolicited result codes (default setting).
1: Enable network registration unsolicited result codes +CREG: <stat>.
2: Enable network registration and location information (Cell ID, Local ID) unsolicited
result code +CREG: <n>,<stat>[,[<lac>],[<ci>],[<AcT>]]
3: Enable network registration unsolicited information cause_type and reject_cause
4: Enable network registration unsolicited information Active-Time and Periodic-
TAU
5: Enable network registration unsolicited information cause_type, reject_cause,
Active-Time, and Periodic-TAU
<stat>: network status
0: Not registered, the module is not currently searching for an operator to register
1: Registered to the home network
2: Not registered, but the module is currently trying to attach or searching for an
operator to register
3: Registration denied
4. Unknown code
5: Registered, roaming
<lac>: Two-byte location area code in hexadecimal format, string type
<ci>: Four-byte cell ID in hexadecimal format, string type
<Act>: The access technology of the serving cell, integer type
0: GSM
1: GSM compact
2: UTRAN
3: GSM w/EGPRS
N25 AT Commands Manual
Chapter 2 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
13
4: UTRAN w/HSDPA
5: UTRAN w/HSUPA
6: UTRAN w/HSDPA and HSUPA
7: E-UTRAN
9: NB-IoT
<cause_type>:
0: <reject_cause> contains EMM cause
1: <reject_cause> contains UE cause
<reject_cause>: reject cause. See 3GPP TS 24.301 Annex A.
<Active-Time>: In GERAN/UTRAN network, set Active Time value (T3324)
Bit8-Bit6: unit
000 2 seconds
001 1 minute
010 6 minutes
111 - T3324 invalid
Bit5-Bit1: binary-code time
e.g. 00000001 indicates 2 second ×1=2 seconds
<Periodic-TAU>: 8-bit unibyte
In GERAN/UTRAN network, set RAU circle (T3412)
Bit8-Bit6: unit
000 10 minutes
001 1 hours
010 10 hours
011 2 seconds
100 30 seconds
101 1 minute
110 320 hours
111 - T3412 invalid
Bit5-Bit1: binary-code time, e.g. 00100010 indicates 1 hour ×2=2 hours
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CEREG: <n>,<stat>[,[<tac>],[<ci>],[<AcT>],[cause_type],
[reject_cause],[<Active-Time>],[<Periodic-TAU>]]
<CR><LF>OK<CR><LF>
<CR><LF>+CEREG: (list of supported <n>s)
<CR><LF>OK<CR><LF>
Example
AT+CEREG?
+CEREG: 0,1
OK
If the value of <n> is set to 1, the current
EPS network registration status is
queried.
AT+CEREG=1
OK
Enable network registration unsolicited
codes.
AT+CEREG=?
+CEREG: (0-5)
OK
Query the value range of the network
registration status parameter.
N25 AT Commands Manual
Chapter 2 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
14
Remarks
N/A
2.3 Enabling & Disabling the Terminal Display: ATE1/ATE0
Description
To enable or disable the terminal display function of the AT commands
Format
ATE1<CR>
ATE0<CR>
Parameter
N/A
Return Value
See the Example
Example
ATE1
OK
AT
OK
Turn on module AT command echo function
Send AT, serial tools show "AT" and "OK".
ATE0
OK
OK
Turn off the module AT command echo
function
Send AT, serial tools only show "OK"
Remark
Settings by this command are not saved after the module is powered off.
The terminal display function is enabled by default.
If the command is sent after dialing up to connect the network, terminal display
is disabled automatically.
2.4 Setting the Code Result Suppression Mode: ATQ
Description
To set the mode whether to suppress the code result
Format
ATQ[<value>]<CR>
Parameter
<value>: 0, 1
0: Output the code result (default)
1: Suppress the code result
Return Value
See the Example.
Example
ATQ1
AT+CSQ
+CSQ: 31, 99
Set to code result suppress mode. (The module does not
return OK after this command is executed successfully.)
After the mode is set, the return value for the AT+CSQ
command does not contain the code result OK.
N25 AT Commands Manual
Chapter 2 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
15
ATQ0
OK
AT
OK
Set to the code result output mode.
After the mode is set, the return value for the AT command
contains the code result OK.
Remarks
After mode set to the code result suppression mode, the module does not
output OK or ERROR to commands.
The setting by this command is not saved after the module is powered down.
The setting is valid only for the GSM commands and invalid for customized
commands.
ATQ is equal to ATQ1.
2.5 Setting the Response Format of the Device: ATV
Description
To set the response format of the device
Format
ATV[<value>]<CR>
Parameter
<value>: 0, 1
0: Set the response format to output with only some header, footer, and digit text.
1: Set the response format to output with all headers, footers, and detailed response
text (default).
Return Value
See the Example.
Example
ATV1
OK
AT+CSQ
+CSQ: 31, 99
OK
Set the response format to output with
all headers, footers, and detailed
response text.
ATV00
AT+CSQ
+CSQ: 31, 99
0
Set the response format to output with
only some header, footer, and digit
text. The module returns 0 after the
format is set successfully.
Remarks
ATV is equal to ATV1.
After ATV0 is executed, the return value for a command in correct format is 0
(default setting is OK) which follows the command; 4 for command in incorrect
format (default setting is ERROR).
Settings by this command are not be saved after the module is powered down.
N25 AT Commands Manual
Chapter 2 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
16
2.6 Saving Parameter Settings: AT&W
Description
To save parameter settings
Format
AT&W<CR>
Parameter
N/A
Return Value
See the Example
Example
AT+CEREG?
+CEREG: 0,0
OK
AT+CEREG=1
OK
AT&W
OK
AT+CEREG?
+CEREG: 1,1
OK
Query the current parameter value. The
value is 0.
Set commands that support parameter
saving.
Save parameter settings and restart the
module.
Query the current parameter value. The
value is 1.
AT&W0
OK
Save parameter settings. This
command has the same function as
AT&W.
Remarks
The following commands support parameter saving: ATE, +CMEE, ATV, ATQ,
CEREG, IPR, etc.
AT&W0 is equal to AT&W. To restore to the default settings, execute AT&F.
2.7 Resetting the Module to Factory Settings: AT&F
Description
To reset the module to the factory settings
Format
AT&F[<value>]<CR>
Parameter
<value>
0: Reset the module to factory settings.
Return Value
See the Example.
Example
AT&F0
OK
Reset the module to factory settings.
AT&F
OK
Reset the module to factory settings.
Remarks
If the module is set to the code result suppression mode (ATQ1), reset it to factory
settings by executing this command.
N25 AT Commands Manual
Chapter 2 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
17
2.8 Setting Module Functionality: +CFUN
Description
To select the level of functionality of the module by setting <fun>
Format
AT+CFUN=[<fun>[,<rst>]]<CR>
AT+CFUN?<CR>
AT+CFUN=?<CR>
Parameter
<fun>: power saving function mode
0: turn off radio and SIM power
1: Full functionality (default)
4: turn off the transmitting and receiving RF circuit of the module (airplane mode)
<rst>: Specifies whether to restart the module
0: do not reset the MT before setting it to <fun> power level
1: reset the MT before setting it to <fun> power level
Return Value
<CR><LF>+CFUN: (list of supported <fun>s),(list of supported <rst>s)
<CR><LF>OK<CR><LF>
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>ERROR<CR><LF>
Example
AT+CFUN=1
OK
Set full functionality.
AT+CFUN?
+CFUN: 1
OK
Query current function level.
Full functionality
AT+CFUN=?
+CFUN: (0,1,4),(0,1)
OK
Query available parameter value
ranges.
Remarks
Settings by this command are not be saved after the module is powered down.
2.9 Clock: +CCLK
Description
To set and query the real-time clock
Format
AT+CCLK=<time><CR>
AT+CCLK?<CR>
Parameter
<time>: Character string in format of "YY/MM/DD,hh:mm:ss[+TZ]".
TZ: Two digits, indicating the time lag between the local time and the GMT time.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>ERROR<CR><LF>
N25 AT Commands Manual
Chapter 2 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
18
<CR><LF>+CCLK: <time>
<CR><LF> OK<CR><LF>
Example
AT+CCLK="18/07/01,14:54:01+32"
OK
Set the real-time clock of the module.
AT+CCLK?
+CCLK: "18/07/01,14:54:10+32"
OK
Query the setting of the real-time clock.
AT+CCLK=14/07/02,10:48:50
ERROR
Incorrect command syntax.
Remarks
Settings by this command are not be saved after the module is powered down.
The default clock is GMT+0.
2.10 Setting the Baud Rate of the Module: +IPR
Description
To set the baud rate of the module
Format
AT+IPR=<baud rate><CR>
AT+IPR?<CR>
AT+IPR=?<CR>
Parameter
<baud rate>: The value can be 0, 2400, 4800, 9600, 19200, 38400, 57600
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+IPR: <baud rate>
<CR><LF>OK<CR><LF>
<CR><LF>+IPR: (list of supported <baud rate>s)
<CR><LF>OK<CR><LF>
Example
AT+IPR=57600
OK
Set the baud rate to 57600 bps.
AT+IPR?
+IPR: 57600
OK
Query the current baud rate.
AT+IPR=?
+IPR:
(0,2400,4800,9600,19200,38400,57600)
OK
Query the available baud rate
range.
AT+IPR=100
ERROR
Set the baud rate to 100.
The value is not allowed
Remarks
The default baud rate is 0, indicating automatic baud rate detection.
Settings by this command are not saved after the module is powered down.
N25 AT Commands Manual
Chapter 2 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
19
2.11 Entering PIN Code: +CPIN
Description
To query the PIN status and enter PIN code
Format
AT+CPIN=<pin>[,<newpin>]<CR>
AT+CPIN?<CR>
Parameter
<pin>, <newpin>: string type value
Return Value
<CR><LF>+CPIN: <code>
<CR><LF>OK<CR><LF>
<code>:
READY: No password
SIM PIN: Enter PIN code.
SIM PUK: Enter PUK code.
SIM PIN2: Enter PIN2 code.
SIM PUK2: Enter PUK2 code.
<CR><LF>ERROR<CR><LF>
Example
AT+CPIN?
+CPIN: READY
OK
Query whether PIN code is required.
AT+CPIN="0000"
ERROR
Incorrect pin code
AT+CPIN="1234"
OK
Input correct PIN code.
AT+CPIN?
ERROR
No SIM card is inserted.
Remarks
To enter PIN code, lock current SIM card and then restart the module.
If PIN code is input incorrectly for three times, PUK is required to unlock.
2.12 Setting Error Information: +CMEE
Description
To enable or disable the +CME ERROR:<err> result code
Format
AT+CMEE=<n><CR>
AT+CMEE? <CR>
AT+CMEE=?<CR>
Parameter
<n>:
0: Disable the +CME ERROR:<err> result code and display ERROR.
1: Enable the +CME ERROR:<err> result code and use the numeric <err> value.
/