Neoway N20 At Command Manual
Hide thumbs Also See for N20:
Table of Contents

Advertisement

Quick Links

N20 AT
Command Munal
Issue 1.4
Date 2018-06-12
Neoway Product Document

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the N20 and is the answer not in the manual?

Questions and answers

Summary of Contents for Neoway N20

  • Page 1 N20 AT Command Munal Issue 1.4 Date 2018-06-12 Neoway Product Document...
  • Page 2 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.
  • Page 3: Table Of Contents

    2.12 Setting the SMS Center Number: +CSCA ................35 2.13 Setting the Parameters of the Text Mode: +CSMP ..............35 2.14 Displaying the Parameters of the Text Mode: +CSDH ............. 36 2.15 Save Settings: +CSAS ......................37 Copyright © Neoway Technology Co., Ltd...
  • Page 4 8.1 Setting HTTP Parameters:+HTTPPARA ..................68 8.2 Setting Up HTTP Link:+HTTPSETUP ..................69 8.3 HTTP Request:+HTTPACTION....................69 8.4 Closing HTTP Link: +HTTPCLOSE ................... 73 8.5 Receiving HTTP Data: +HTTPRECV ..................73 8.6 HTTP Link Closing: +HTTPCLOSED ..................74 Copyright © Neoway Technology Co., Ltd...
  • Page 5 14.5 Subscribing to Topic: +AWSSUB ................... 107 14.6 Receiving Topic Content: +AWSSUBRECV ................108 14.7 Publishing Topic: +AWSPUB ....................108 14.8 Unsubscribing to Topic: +AWSUNSUB .................. 109 14.9 Disconnecting to the AWS MQTT Server: +AWSDISCONN ..........109 Copyright © Neoway Technology Co., Ltd...
  • Page 6 15.4 Obtaining the CCID of the SIM Card: $MYCCID ..............113 15.5 Querying the Type of the Module: $MYMODEM (CSG Standard) .......... 113 15.6 Setting Network Mode: +NETCFG ..................114 15.7 Querying Network State: +NETSTATE ..................116 Copyright © Neoway Technology Co., Ltd...
  • Page 7 AT Command Manual About This Document Scope This document is applicable to N20 series. Audience This document is intended for system engineers (SEs), development engineers, and test engineers. Change History Issue Date Change Changed By 2017-10 Initial draft Tao Wenhong Added HTTP and HTTPS commands ...
  • Page 8 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 Related Documents Neoway_N20_Datasheet Neoway_N20_Product_Specifications Neoway_N20_Hardware_User_Guide Neoway_N20_EVK_User_Guide Copyright © Neoway Technology Co., Ltd...
  • Page 9: Boot Log Instruction

    If the module is booted in automatic baudrate detection mode, enter AT 10 seconds after the module is powered on to check if the AT function is initialized or not. The UART responds with OK if AT is initialized and outputs +PBREADY after the phonebook is available. Copyright © Neoway Technology Co., Ltd...
  • Page 10: General Commands

    Return Value <CR><LF><soft_version> <CR><LF>OK<CR><LF> NEOWAY Manufacturer Example Module model V001 Version Remarks 1.2 Querying Software Version: +GMR Description To query the software version Format AT+GMR<CR> Parameter <revision>: Software version information <CR><LF><revision> Return Value <CR><LF>OK<CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 11: Querying Signal Quality: +Csq

    <22 <-69 dBm <28 <-57 dBm >=28 >=-57 dBm <ber> 0...7 Refer to the value of RXQUAL in the table of GSM 05.08 8.2.4. Not known or not detectable AT+CSQ Example +CSQ: 19,2 Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 12: Querying The Network Registration Status: +Creg

    <CR><LF>+CREG: <n>,<stat>[,<lac>,<ci>[,<Act>]] <CR><LF>OK<CR><LF> Return Value <CR><LF>ERROR<CR><LF> AT+CREG=1 Enable network registration unsolicited codes. AT+CREG? Query the network registration Example +CREG: 0,1 status of the module. Query the value range of the AT+CREG=? network registration status Copyright © Neoway Technology Co., Ltd...
  • Page 13: Querying Eps Network Registration Status: +Cereg

    <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 Copyright © Neoway Technology Co., Ltd...
  • Page 14: Querying The Imsi: +Cimi

    Remarks 1.6 Querying the IMSI: +CIMI Description To query the international mobile subscriber identification (IMSI) Format AT+CIMI<CR> Parameter <CR><LF>+CIMI: <IMSI> <CR><LF>OK<CR><LF> Return Value <CR><LF>ERROR<CR><LF> AT+CIMI Example +CIMI: 460020188385503 Obtain the IMSI number. Copyright © Neoway Technology Co., Ltd...
  • Page 15: Querying Imei: +Cgsn

    1.8 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 <CR><LF>+CCID: <ICCID> <CR><LF>OK<CR><LF> Return Value <CR><LF>ERROR<CR><LF> AT+CCID Example Read command +CCID: 89860002190810001367 Copyright © Neoway Technology Co., Ltd...
  • Page 16: Querying The Module Model: +Cgmm

    Query the product model. +CGMM: N20 Remarks 1.10 Querying the Module Model: +GMM Description To query the module model Format AT+GMM<CR> Parameter <CR><LF>+CGMM: <model> Return Value <CR><LF>OK<CR><LF> AT+GMM Example +GMM: N20 Query the product model. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 17: Setting The Baud Rate Of The Module: +Ipr

    The settings will be not saved after the module is powered off.  1.12 Setting Module Functionality: +CFUN Description To select the level of functionality of the module by setting <fun> AT+CFUN=[<fun>[,<rst>]]<CR>  Format AT+CFUN?<CR>  Copyright © Neoway Technology Co., Ltd...
  • Page 18: Activating Multiplexing Mode: +Cmux

    <mode>: The mode of MUX that is enabled, integer type 0: Basic option (default value) Parameters 1: Advanced option (not supported) <subset>: Subset of frame format, integer type 0: UIH frames used only (default value) Copyright © Neoway Technology Co., Ltd...
  • Page 19 AT+CMUX? Incorrect command syntax. ERROR The multiplexing protocol allows two or more virtual ports to be created on a  Remarks physical port. Generally, two virtual ports are created: one is used for dialing Copyright © Neoway Technology Co., Ltd...
  • Page 20: Clock: +Cclk

    The settings will not be saved after the module is powered off.  Remarks The default clock is GMT+0.  1.15 Entering PIN Code: +CPIN Description To query the PIN status and enter PIN code AT+CPIN=<pin>[,<newpin>]<CR>  Format AT+CPIN?<CR>  Copyright © Neoway Technology Co., Ltd...
  • Page 21 Unlock PBREADY To enter PIN code, lock current SIM card (running  AT+CLCK="SC",1,"1234") and then restart the module. Remarks If PIN code is input incorrectly for three times, PUK is required to unlock.  Copyright © Neoway Technology Co., Ltd...
  • Page 22: Enabling Pin And Querying Mt And Network Device: +Clck

    <status>: 0: not active 1: active <passwd>: Password or code, string type. A pair of quotation marks are required for the value. <class>: 1: Voice service 2: Data service 4: Fax service 8: SMS Copyright © Neoway Technology Co., Ltd...
  • Page 23: Modifying The Password Of The Pin: +Cpwd

    To modify the password of the lock function of the module AT+CPWD=<fac>,<oldpwd>,<newpwd><CR>  Format AT+CPWD=?<CR>  <fac>: A pair of quotation marks is required for the value. "P2":SIM PIN2 Parameter "OI": Outgoing international calls "AI": All incoming calls Copyright © Neoway Technology Co., Ltd...
  • Page 24 "0000" is the new PIN code. Incorrect command syntax. AT+CPWD=SC,1234,0000 A pair of quotation marks ("") is ERROR required for each parameter. Remarks To modify the PIN code, lock the SIM card (running AT+CLCK="SC",1,"1234"). Copyright © Neoway Technology Co., Ltd...
  • Page 25: Defining Pdp Context: +Cgdcont

    Set PDP type to IP and APN to CMNET. AT+CGDCONT? +CGDCONT: 1,"IP","CMNET","0.0.0.0",0,0,0,0 Query current PDP format. AT+CGDCONT=? Example +CGDCONT: (1-24),"IP",,,(0-2),(0-4),(0-1),(0-1) +CGDCONT: (1-24),"PPP",,,(0-2),(0-4),(0-1),(0-1) Query the available value +CGDCONT: (1-24),"IPV6",,,(0-2),(0-4),(0-1),(0-1) range of PDP format. +CGDCONT: (1-24),"IPV4V6",,,(0-2),(0-4),(0-1),(0-1) Copyright © Neoway Technology Co., Ltd...
  • Page 26: Pdp Authentication: +Xgauth

     <cid> is same as that in +CGDCONT.  1.20 Setting GPRS Attach and Detach: +CGATT Description To set GPRS attach and detach AT+CGATT=<state><CR>  Format AT+CGATT?<CR>  AT+CGATT=?<CR>  Parameter <state>: 0, 1 Copyright © Neoway Technology Co., Ltd...
  • Page 27: Enabling & Disabling The Terminal Display: Ate1/Ate0

    The settings will not be saved after the module is powered off.  1.21 Enabling & Disabling the Terminal Display: ATE1/ATE0 Description To enable or disable the terminal display function of the AT commands ATE1<CR>  Format ATE0<CR>  Parameter Copyright © Neoway Technology Co., Ltd...
  • Page 28: Gprs Dialing Command: Atd*99

    Parameter Return Value <CR><LF>CONNECT<CR><LF> ATD*99# Example CONNECT This command is applicable only to external protocol stacks.  Remarks Ensure that the module has registered the network and set APN before dialing  any number. Copyright © Neoway Technology Co., Ltd...
  • Page 29: Sms Commands

    <CR><LF>+CSMS: (list of supported <service>s) <CR><LF>OK<CR><LF> AT+CSMS=1 +CSMS: 1, 1, 1 Set SMS service to 1. AT+CSMS? Query current parameter Example +CSMS: 1, 1, 1, 1 value. AT+CSMS=? Query the value range of SMS +CSMS: (0-1) service. Copyright © Neoway Technology Co., Ltd...
  • Page 30: Setting Preferred Sms Storage: +Cpms

    "SM", that is, store SMS messages in SIM card. AT+CPMS? Query the capacity of Example +CPMS: "SM", 50, 50, "SM", 50, 50, "SM", 50, 50 current SMS storage. AT+CPMS=? Query available +CPMS: ("SM","ME","MT"), ("SM","ME,"MT"), ("SM", storages. "ME","MT") Copyright © Neoway Technology Co., Ltd...
  • Page 31: Setting Sms Inputting Mode: +Cmgf

    <CR><LF>+CMGF: (list of supported <mode>s) <CR><LF>OK<CR><LF> AT+CMGF=1 Set the SMS to text mode. AT+CMGF? Query the current mode of SMS +CMGF: 1 message input. Example AT+CMGF=? Query the value range of SMS mode +CMGF: (0-1) setting. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 32: Setting The Te Character Set: +Cscs

    Query the format of current character set. Example Query the character set formats that the AT+CSCS=? module supports. +CSCS: ("IRA","GSM","UCS2") The list of the character set formats is returned. Remarks The default value is IRA. Copyright © Neoway Technology Co., Ltd...
  • Page 33: Setting The Sms Indication Mode: +Cnmi

    2: The format of the new cell broadcast instruction codes is +CBM: <oa>,[<alpha>,]<scts>[,<tooa>,<length>] <CR><LF><data>(text mode). The cell broadcast will be directly displayed rather than stored. <ds>: Report status of SMS message sending. The default value is 1. Copyright © Neoway Technology Co., Ltd...
  • Page 34: Reading Sms Messages: +Cmgr

    Class 1: Stored in ME Class 2: Stored in SIM Class 3: Sent to TE 2.6 Reading SMS Messages: +CMGR To read SMS messages stored in current memory (use the AT+CPMS command Description to specify the current memory) Copyright © Neoway Technology Co., Ltd...
  • Page 35 2 Unsent messages have been stored 3 Sent messages have been stored Alpha: The number of characters to represent Length: The number of octets of the given TP-level data unit (octets that do not contain the service center address) Copyright © Neoway Technology Co., Ltd...
  • Page 36 +CMTI: "SM",40 Read SMS. AT+CMGR=40 +CMGR: "REC UNREAD","18777397945",,"14/03/26,13:57:58+ 32" hello world If the status of the message is received unread, the status in the storage changes Remarks to received read after executing this command. Copyright © Neoway Technology Co., Ltd...
  • Page 37: Sms Message List: +Cmgl

     +CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>[<CR><LF>+CMG Return Value L: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>[...]] Command successful and SMS-COMMANDs:  +CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF>+CMGL: index>,<stat>,<fo>,<ct>[...]] Command successful and CBM storage:  +CMGL: <index>,<stat>,<sn>,<mid>,<page>,<pages><CR><LF><data>[<CR><LF> +CMGL: <index>,<stat>,<sn>,<mid>,<page>,<pages><CR><LF><data> [...]] PDU mode (+CMGF=0) Command is executed successfully:  Copyright © Neoway Technology Co., Ltd...
  • Page 38 AT+CMGL=ALL command is incorrect. A pair of quotation marks ("") is required for ERROR the parameter. AT+CMGF=1 The parameter should be set to 0. AT+CMGL=4 ERROR AT+CMGF=0 The parameter should be set to 1. Copyright © Neoway Technology Co., Ltd...
  • Page 39: Sending Sms Messages: +Cmgs

    <ackpdu>: 3GPP 23.040 RP-User-Data element of RP-ACK PDU AT+CMGS="66358"<CR> Text mode(+CMGF=1) > This is the text is the symbol after +CMGS: 171 pressing Ctrl+Z. Example AT+CMGS="15889758493"<CR> AT+CMGF=1 might not be executed. > This is the text Copyright © Neoway Technology Co., Ltd...
  • Page 40: Writing Sms Messages: +Cmgw

    <CR>: End character <Ctrl+Z>: Indicates the end of the input message <ESC>: Indicates giving up the input message <CR><LF>+CMGW: <index> <CR><LF>OK<CR><LF> Return Value <CR><LF>ERROR<CR><LF> AT+CMGW="091137880"<CR> > "This is the text"<Ctrl+Z> Example Text mode (+CMGF=1) +CMGW: 15 Copyright © Neoway Technology Co., Ltd...
  • Page 41: Sending Messages From Storage: +Cmss

     <CR><LF>+CMSS: <mr>[,<ackpdu>] Return Value <CR><LF>OK<CR><LF> <mr>: message reference number <scts>: service center time stamp <ackpdu>: 3GPP 23.040 RP-User-Data element of RP-ACK PDU AT+CMSS=2 Send the SMS messages stored in memory Example +CMSS: <mr> Copyright © Neoway Technology Co., Ltd...
  • Page 42: Deleting Sms Messages: +Cmgd

    Delete all read, sent, and unsent SMS AT+CMGD=0,3 messages. Delete successfully AT+CMGD=? Example +CMGD: (0,1,2,3),(0-4) Query the value ranges of parameters. AT+CMGD=5 ERROR The 5 message does not exist. Remarks If we set <delflag>, ignore the parameter <index>. Copyright © Neoway Technology Co., Ltd...
  • Page 43: Setting The Sms Center Number: +Csca

    <fo>: Determined by the command or the first 8 bits of the result code GSM 03.40 SMS-DELIVER; SMS-SUBMIT (default value: 17); or adopt the integer-type SMS-COMMAND (default value: 2) Parameter <vp>: Value Validity Period 0-143 (vp+1)*5mins, 12 hours at most Copyright © Neoway Technology Co., Ltd...
  • Page 44: Displaying The Parameters Of The Text Mode: +Csdh

    AT+CSDH=?<CR>  <show>: Parameter 0: not display (default value) 1: display Return Value See the Example. AT+CSDH=0 Set the header information to not display Example AT+CMGR=0 +CMGR: "REC READ", Read the 0 message. "13510895077",,"15/07/23,20:58:28+32" Copyright © Neoway Technology Co., Ltd...
  • Page 45: Save Settings: +Csas

    2.15 Save Settings: +CSAS Description To save current settings AT+CSAS[=<profile>]<CR>  Format AT+CSAS=?<CR>  <profile>: Parameter 0: Save settings (or omit the parameter) Return Value See the Example. AT+CSAS Save settings AT+CSAS=0 Example Save settings AT+CSAS=1 ERROR Copyright © Neoway Technology Co., Ltd...
  • Page 46 AT Command Manual AT+CSAS=? Query the valid parameter values for +CSAS: 0 the command. Only the parameter settings of AT+CSCA, AT+CSMP, and AT+CSCB can be Remarks saved by executing this command. Copyright © Neoway Technology Co., Ltd...
  • Page 47: Tcp/Udp Client Commands

    Query the current settings of APN +NETAPN:"","","" parameter. Remarks 3.2 Setting Up a PPP Link: +XIIC Description To set up a PPP link AT+XIIC=<n><CR>  Format AT+XIIC?<CR>  Parameter 0: Deactivate the PPP link Copyright © Neoway Technology Co., Ltd...
  • Page 48: Setting Receive Mode: +Recvmode

    0: buffer the TCP or UDP data received and MCU sends command to read the Parameter data 1: print the TCP or UDP data received to UART directly (default) Return Value See the Example Example AT+RECVMODE=0 Set data receiving mode. Copyright © Neoway Technology Co., Ltd...
  • Page 49: Setting Up Tcp Link: +Tcpsetup

    192.168.20.6,7000 on socket 1. The server is probably not started, the IP address is incorrect, or the SIM card +TCPSETUP: 1,FAIL is out of credit. AT+TCPSETUP=0,neowayjsr.oicp.net,60 A TCP/UDP link has been set up on socket 0. Copyright © Neoway Technology Co., Ltd...
  • Page 50: Sending Tcp Data: +Tcpsend

    30 seconds. Then the +TCPSEND: 0,OPERATION EXPIRED expiration information is displayed. One-byte data fails to be sent on AT+TCPSEND=0,1 socket 0 because the link is not +TCPSEND:SOCKET ID OPEN FAILED established. Copyright © Neoway Technology Co., Ltd...
  • Page 51: Receiving Tcp Data: +Tcprecv

    <n>: socket number, ranging from 0 to 4 Parameter <length>: maximum length of data allowed to read, ranging from 1 to 2048 Return Value See the Example Example +TCPRECV: 0 Socket 0 receives data. Copyright © Neoway Technology Co., Ltd...
  • Page 52: Closing Tcp Link: +Tcpclose

    <n>: Socket ID, ranging from 0 to 5 <ip>: Destination IP address, in xx.xx.xx.xx format or domain name format Parameter (www.XXXX.com) <port>: Destination port ID in decimal ASCII code Return Value See the Example. Copyright © Neoway Technology Co., Ltd...
  • Page 53: Sending Udp Data: +Udpsend

    <n>: Socket number, ranging from 0 to 5. A UDP link is established on the socket. Parameter <length>: The length of the data to be sent, ranging from 1 to 4096, unit: byte. Return Value If the AT command is input in correct format, the module returns >.  Copyright © Neoway Technology Co., Ltd...
  • Page 54: Receiving Udp Data: +Udprecv

    Add 0x0d 0x0a to the end of the data. Identify the end based on <length>. Return Value See the Example. 10-byte data is successfully received Example +UDPRECV: 0,10,1234567890 on socket 0. The data is 1234567890. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 55: Reading Udp Data: +Udpread

    If the value of <n> is illegal, the module returns: +UDPCLOSE: ERROR. Return Value Otherwise, the module returns +UDPCLOSE: <n>,OK. AT+UDPCLOSE=1 The TCP link on socket 1 is closed successfully. +UDPCLOSE: 1,OK Example AT+UDPCLOSE=6 Socket number error +UDPCLOSE: ERROR Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 56: Querying Tcp/Udp Link Status: +Ipstatus

    3.15 Querying the Status of Data Sent by the TCP Link: +TCPACK To query the size of data successfully sent by the TCP server and the size of the Description data successfully received Format AT+TCPACK=<n><CR> Parameter <n>: Socket ID, ranging from 0 to 5 Copyright © Neoway Technology Co., Ltd...
  • Page 57 A UDP link is set up on link 2. +TCPACK: NO TCP LINK AT+TCPACK=6 The socket number in the command is incorrect. ERROR The values of <data_sent> and <acked_recv> are unsigned 64-bit integers in Remarks decimal ASCII. The unit is byte. Copyright © Neoway Technology Co., Ltd...
  • Page 58: Tcp Server At Commands

    Activate the PPP before using this command.  Remarks Only the SIM cards with fixed IP addresses can be used as servers.  This function might not work because carriers' networks do not support.  Copyright © Neoway Technology Co., Ltd...
  • Page 59: Closing The Listening Connection: +Closelisten

    All connections with the client are closed successfully. +CLOSECLIENT: 2,remote link closed There parameter this Example AT+CLOSECLIENT=1 command. +CLOSECLIENT: 1,remote link closed Close the connection on socket 1 with the client. AT+CLOSECLIENT=1 No client on socket 1. ERROR Copyright © Neoway Technology Co., Ltd...
  • Page 60: Receiving Data From The Client: +Tcprecv(S)

    Parameter <length>: The length of the data to be sent, value ranges from 1 to 4096, unit: byte. Return Value See the Example. AT+TCPSENDS=0,10 10-byte data is successfully sent Example through socket 0. > Copyright © Neoway Technology Co., Ltd...
  • Page 61: Querying The Connection Status On The Client: +Clientstatus

    Socket status, value: CONNECT DISCONNECT Return Value <TCP or INVALID >: Link type, value: TCP or INVALID <send-buffer-size>: The size of the available send buffer on the module, in decimal ASCII mode, unit: byte Copyright © Neoway Technology Co., Ltd...
  • Page 62: Querying The Status Of Data Sent By The Tcp Link: +Tcpack

    + TCPACK: 1,DISCONNECT The values of <data_sent> and <acked_recv> are unsigned 64-bit integers  in decimal ASCII. The unit is byte. Remarks This function might not work because carriers' networks do not support.  Copyright © Neoway Technology Co., Ltd...
  • Page 63: Transparent Tcp/Udp Commands

    The UART does not display the data transmitted to the server after the  Remarks transparent TCP link is set up successfully. Use +++ to switch the server to the command mode and ATO to switch it to  Copyright © Neoway Technology Co., Ltd...
  • Page 64: Setting Up Transparent Udp Link: +Udptrans

    The command format is incorrect. +UDPTRANS:ERROR AT+UDPTRANS=220.199.66.56,6800 Failed to set up a transparent UDP link. +UDPTRANS:FAIL ERROR returned after AT+UDPTRANS=220.199.66.56,6800 command is executed because a transparent (TCP, UDP, TCP server) ERROR link has been set up. Copyright © Neoway Technology Co., Ltd...
  • Page 65: Querying The Status Of Data Sent By The Tcp Link: +Tcpack

    No transparent link has been set up. +TCPACK:DISCONNECT AT+TCPACK A transparent UDP link has been set +TCPACK:NO TCP LINK The values of <data_sent> and <acked_recv>are unsigned 64-bit integers in Remarks decimal ASCII. The unit is byte. Copyright © Neoway Technology Co., Ltd...
  • Page 66: Querying Tcp/Udp Link Status: +Ipstatus

    5.5 Closing Transparent Link: +TRANSCLOSE Description To close the transparent link Format AT+TRANSCLOSE<CR> Parameter Return Value See the Example. AT+TRANSCLOSE transparent link closed successfully. +TRANSCLOSE:0,OK Example AT+TRANSCLOSE No transparent TCP/UDP link is set up. Copyright © Neoway Technology Co., Ltd...
  • Page 67 +TRANSCLOSE:1,OK The transparent TCP link is closed by the +TCPTRANS:Link Closed server or because of network abnormality. The transparent UDP link is closed by the +UDPTRANS:Link Closed server or because of network abnormality. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 68: Tcp Transparent Server Commands

    A link must be set up between the server and the client through a socket  before the server transparently transmits TCP data. Remarks Use +++ to switch the server to the command mode and ATO to switch it to  the data mode. Copyright © Neoway Technology Co., Ltd...
  • Page 69: Querying The Link Status On The Client: +Clientstatus

    +CLIENTSTATUS:CONNECT,TCP,61440 the buffer size is 61440 bytes. Example No transparent TCP link is set AT+CLIENTSTATUS up. The available buffer is +CLIENTSTATUS:DISCONNECT,TCP,61440 61440. Remarks This function might not work because carriers' networks do not support. Copyright © Neoway Technology Co., Ltd...
  • Page 70: Ftp At Commands

    +FTPLOGIN: User logged in Example AT+FTPLOGIN=58.60.184.213,21,neoway,neow Fails to log in to the FTP server using neoway because the connection times out. +FTPLOGIN: Error Connect Server Fail AT+FTPLOGIN=58.60.184.213,21,neowayftp,ne Fail to log in to the FTP Copyright © Neoway Technology Co., Ltd...
  • Page 71: Logging Out From The Ftp Server: +Ftplogout

    To download data from the FTP server Format AT+FTPGET=<dir&filename>,<type>,<Content or Info>[,offset[,length]] <CR> <dir&filename>: Path and name of the file to be read (Note: The file directory under the FTP root directory) Parameter <type>: File transfer mode: Copyright © Neoway Technology Co., Ltd...
  • Page 72 +FTPGET: 65,-rw-rw-rw- 1 user group Obtain Jan 15 15:01 test.txt information about +FTPGET: OK.total length is 65 test.txt. +FTP: Server Data Link Disconnect AT+FTPPUT=test.txt,1,2,10 Upload 10-byte data. > +FTPPUT: OK,10 Obtain AT+FTPGET=test.txt,1,1 information in test.txt. Copyright © Neoway Technology Co., Ltd...
  • Page 73: Uploading Data To The Ftp Server: +Ftpput

    ERROR: The format of the AT command is incorrect.  Return Value +FTPPUT: Error Not Login: The user has not logged in to the FTP server.  +FTPPUT: AT Busy: Last FTP AT command has not been executed  Copyright © Neoway Technology Co., Ltd...
  • Page 74: Querying Ftp Link Status: +Ftpstatus

    AT+FTPSTATUS The module is successfully connected to the +FTPSTATUS: 1,119.139.221.66,21 FTP server. The IP address of the FTP Example server is 119.139.221.66 and the port is 21. AT+FTPSTATUS Not logged in +FTPSTATUS: 0,0.0.0.0,21 Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 75 AT Command Manual Copyright © Neoway Technology Co., Ltd...
  • Page 76: Http Commands

    AT+HTTPPARA=url, The AT command is not complete. ERROR AT+HTTPPARA=port,80 Set the destination port ID to 80. AT+HTTPPARA=port,8080 Set the destination port ID to 8080. Remarks To send new HTTP request, set new HTTP parameters. Copyright © Neoway Technology Co., Ltd...
  • Page 77: Setting Up Http Link:+Httpsetup

    This parameter must be set if <mode>is set to POST or OPEN_MODE. <type>: POST request data type 0: x-www-form-urlencoded 1: text 2: json 3: xml 4: html Return Value See the Example. Example AT+HTTPPARA Set the destination path. Copyright © Neoway Technology Co., Ltd...
  • Page 78 Date:Thu, 28 Nov 2013 03:06:57 GMT The server finishes the response Connection:close disconnects the link. Content-Length: 13842 /*neoway homepage, html Format, 13842 bytes*/ …….. /* neoway homepage*/ +HTTPCLOSED:HTTP Link Closed Set the destination path. AT+HTTPPARA The default port is 80.
  • Page 79 > MAC=NEOWAY&DATA=012345678 after > is displayed. Receive the response +HTTPRECV: from the HTTP server. HTTP/1.1 200 OK Cache-Control:private, max-age=0 Content-Type:text/xml; charset=utf-8 Server:Microsoft-IIS/7.5 X-AspNet-Version: 4.0.30319 X-Powered-By:ASP.NET Date:Thu, 28 Nov 2013 03:41:52 GMT The server replies an Copyright © Neoway Technology Co., Ltd...
  • Page 80 Content-Type: text/html; charset=utf-8 Server: Microsoft-IIS/7.5 Set-Cookie: ASP.NET_SessionId=pvlaai3fizxg44eyvyqsyenk; path=/; HttpOnly X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET X-UA-Compatible: IE=EmulateIE7 Date: Thu, 28 Nov 2013 05:40:24 GMT The server disconnects Connection: close module after responding. +HTTPCLOSED: HTTP Link Closed Copyright © Neoway Technology Co., Ltd...
  • Page 81: Closing Http Link: +Httpclose

    See the Example. +HTTPRECV: HTTP/1.1 200 OK Cache-Control: private Content-Length: 13842 Report the data Content-Type: text/html; charset=utf-8 received from Example Server: Microsoft-IIS/7.5 HTTP Set-Cookie: ASP.NET_SessionId=pvlaai3fizxg44eyvyqsyenk; connection. path=/; HttpOnly X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET X-UA-Compatible: IE=EmulateIE7 Copyright © Neoway Technology Co., Ltd...
  • Page 82: Http Link Closing: +Httpclosed

    8.6 HTTP Link Closing: +HTTPCLOSED Description Unsolicited report of the HTTP link closing Format <CR><LF>+HTTPCLOSED: HTTP Link Closed<CR><LF> Parameter Return Value See the Example. Example +HTTPCLOSED: HTTP Link Closed Unsolicited report of the HTTP link closing Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 83: Https Commands

    To send new HTTPS request, set new HTTPS parameters.  Remarks The HTTPS connection is closed if the +HTTPSCLOSE command is  executed. 9.2 Setting Up HTTPS Link: +HTTPSSETUP Description To set up an HTTPS connection Copyright © Neoway Technology Co., Ltd...
  • Page 84: Https Request: +Httpsaction

    <type>: POSTrequest data type 0: x-www-form-urlencoded 1: text 2: json 3: xml 4: html Return Value See the Example destination AT+HTTPSPARA =url, www.alipay.com/ index.html address. The default port is 443. Example AT+HTTPSPARA=port,443 HTTPS connection. Copyright © Neoway Technology Co., Ltd...
  • Page 85 HTTP/1.1 200 OK HEAD request Server: spanner/1.0.6 Date: Fri, 01 Aug 2014 03:05:41 GMT Content-Type: text/html; charset=gbk HTTPS server response Content-Length: 56028 Connection: close Last-Modified: Wed, 23 Jul 2014 07:51:40 GMT Strict-Transport-Security: max-age=31536000 Copyright © Neoway Technology Co., Ltd...
  • Page 86 +HTTPSCLOSED: HTTPS Link Closed Custom packets must comply with the HTTP protocol.  Remarks Different status codes might be returned after sending the request.  Copyright © Neoway Technology Co., Ltd...
  • Page 87: Closing Https Link: +Httpsclose

    Content-Type: text/html; charset=utf-8 Server: Microsoft-IIS/7.5 Report the data Set-Cookie: ASP.NET_SessionId=pvlaai3fizxg44eyvyqsyenk; received from path=/; HttpOnly Example HTTPS X-AspNet-Version: 2.0.50727 connection. X-Powered-By: ASP.NET X-UA-Compatible: IE=EmulateIE7 Date: Thu, 28 Nov 2013 05:40:24 GMT Connection: close +HTTPCLOSED: HTTP Link Closed Copyright © Neoway Technology Co., Ltd...
  • Page 88: Https Link Closed Report: +Httpsclosed

    Description Unsolicited report that an HTTPS link is closed Format <CR><LF>+HTTPSCLOSED: HTTPS Link Closed<CR><LF> Parameter Return Value See the Example Unsolicited report that the HTTPS Example +HTTPSCLOSED: HTTPS Link Closed link is closed Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 89: Gps At Commands

    GPS service and get GPS position. It depends on the circumstance. Ensure that a matched antenna is used. 10.2 Querying GPS Status: $MYGPSSTATE Description To query GPS status Format AT$MYGPSSTATE<CR> Parameter <CR><LF>$MYGPSSTATE: gps closed<CR><LF> Return Value <CR><LF>$MYGPSSTATE: gps opened<CR><LF> Example AT$MYGPSPWR=1 Enable GPS Copyright © Neoway Technology Co., Ltd...
  • Page 90: Obtaining Nmea Data: $Mygpspos

    <1>: UTC time of position fix, hh mm ss Return Value <2>: latitude of position, dd mm mmmm <3>: North & South Hemispheres N: north S: south <4>: longitude of position, ddd mm mmmm <5>: Western & Eastern Hemispheres Copyright © Neoway Technology Co., Ltd...
  • Page 91 <4>: PRN number in second channel <5>: PRN number in third channel <6>: PRN number in forth channel <7>: PRN number in fifth channel <8>: PRN number in sixth channel <9>: PRN number in seventh channel Copyright © Neoway Technology Co., Ltd...
  • Page 92 16-19: Information about fourth SV, same as field 4-7 The number of $GPGSV sentences is same as the value of <1>. 3: NMEA$GPRMC <CR><LF>$MYGPSPOS: $GPRMC,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>*<hh><CR>< LF>OK<CR><LF> <1>: UTC time of position fix, hhmmss <2>: status of position fix A: valid V: invalid Copyright © Neoway Technology Co., Ltd...
  • Page 93 <1>: True track made good (degrees) <2>: Magnetic track made good <3>: Ground speed, knots <4>: Ground speed, Kilometers per hour <5>: GPS quality indicator A: Autonomous D: DGPS E: Estimated N: Invalid <hh>: Checksum Copyright © Neoway Technology Co., Ltd...
  • Page 94 <6>: Status A: Fix V: No fix <hh>: Checksum AT$MYGPSPOS=0 Obtain position $MYGPSPOS: information. $GPGGA,060239.00,2241.170914,N,11359.18722 5,E,2,16,2.5,116.6,M,,,,*39 AT$MYGPSPOS=1 $MYGPSPOS: Obtain GPGSA message. $GPGSA,A,2,01,11,16,22,,,,,,,,,2.4,2.2,1.0*32 AT$MYGPSPOS=2 Example $MYGPSPOS: $GPGSV,5,1,19,01,57,160,50,11,84,151,31,16,09, 090,41,22,10,140,49*74 $GPGSV,5,2,19,04,40,184,,07,57,314,,08,87,050,, 10,03,164,*7B Obtain GPGSV message. $GPGSV,5,3,19,15,15,270,,19,,,,20,,,,21,50,071,*7 $GPGSV,5,4,19,24,13,196,,26,05,309,,28,,,,32,,,*7 $GPGSV,5,5,19,41,,,41,42,,,43,50,,,43*72 Copyright © Neoway Technology Co., Ltd...
  • Page 95: Setting Apn Of Agps: +Agpsopen

    Format AT+AGPSOPEN =<pdp_type>,<apnname><CR> < pdp_type >: 1: IPV4 Parameter 2: IPV6 3: IPV4V6 <apnname>: APN, length ranging from 1 to 100 Return Value See the Example AT+AGPSOPEN=1,3GNET Set the APN of AGPS Example Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 96: Setting Agps Server: +Agpssetserver

    <url>: Server address, IPV4, IPV6, and URL are supported <port>: Server port Return Value See the Example Set the server address of AGPS AT+AGPSSETSERVER=3,supl.qxwz.com,7276 Example Remarks AGPSSETSERVER must be set before GPS is enabled. Copyright © Neoway Technology Co., Ltd...
  • Page 97: Psm&Edrx Commands

    00100001 indicates 1 hour <Requested_GPRS-READY-timer>: 8 bit unibyte Requested GPRS READY cycle on GERAN/UTRAN network (T3314) Bit8-Bit6: unit 000 – 2 seconds 001 – 1 minute 010 – 6 minutes 111 - T3314 invalid Bit5-Bit1: binary-code time Copyright © Neoway Technology Co., Ltd...
  • Page 98 <CR><LF>ERROR<CR><LF> AT+CPSMS? Query the state of +CPSMS:0,,,"01100000","00000000" PSM mode. AT+CPSMS=1 Enable PSM mode. Example AT+CPSMS=0 Disable PSM mode. AT+CPSMS=1,,,"01100001","00000001" Set PSM parameters. Remarks The value of <Requested_Periodic-RAU> must be larger than that of  Copyright © Neoway Technology Co., Ltd...
  • Page 99: Setting Edrx Mode: +Cedrxs

    4: E-UTRAN (WB-S1 mode) 5: E-UTRAN (NB-S1 mode) Parameter <Requested_eDRX_value>: 4-bit character string Requested eDRX cycle A/Gb mode GERAN eDRX cycle length duration ~1,88 seconds ~3,76 seconds ~7,53 seconds 12,24 seconds 24,48 seconds 48,96 seconds Copyright © Neoway Technology Co., Ltd...
  • Page 100 2621,44 seconds WB-S1/NB-S1 mode E-UTRAN eDRX cycle length duration 5,12 seconds (WB-S1) 10,24 seconds (WB-S1) 20,48 seconds 40,96 seconds 61,44 seconds(WB-S1)/20,48 seconds(NB-S1) 81,92 seconds 102,4 seconds(WB-S1)/20,48 seconds(NB-S1) 122,88 seconds (WB-S1)/20,48 seconds(NB-S1) 143,36 seconds(WB-S1)/20,48 seconds(NB-S1) Copyright © Neoway Technology Co., Ltd...
  • Page 101 Functions marked by * is not supported.  The settings will be saved after the module is powered off.  Remarks The settings should be negotiated with the network. For valid values, consult  your carriers. Copyright © Neoway Technology Co., Ltd...
  • Page 102: Mqtt Command

    <”topicname”>: Will topic, max. 128 bytes. The parameter must be marked by quotation marks. <Message>: Will Message, max. 1024 bytes Return Value <CR><LF>OK<CR><LF> AT+MQTTWILLPARAM=0,1,"lixytopic",byby Example The will is set successfully. Remarks Topicname must be marked by quotation marks. Copyright © Neoway Technology Co., Ltd...
  • Page 103: Connection Command: +Mqttconn

    <Qos>: Quality of service, 0 and 1 supported Return Value <CR><LF>OK<CR><LF> AT+MQTTSUB="lixytopic",1 Subscribe topic successfully. The server issues the topic retained last time. +MQTTSUB:3,"lixytopic",11,123321HELLO Example AT+MQTTSUB=lixytopic,1 Subscribed topic successfully. Remarks Topicname must be marked by quotation marks. Copyright © Neoway Technology Co., Ltd...
  • Page 104: Unsubscription: +Mqttunsub

    <Message>: Message, max. 1024 bytes Return Value <CR><LF>OK<CR><LF> AT+MQTTPUB=1,1,"lixytopic",123321HELLO topic published successfully. The server does not support AT+MQTTPUB=1,1,"lixytopic",123321HELLO Example QoS=2. After command times out, device disconnects to the MQTT server. Developers need to reconnect +MQTTSUB:5,"lixytopic",11,123321HELLO manually. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 105: Publishing Topic: +Mqttpubs

    The device disconnects to the MQTT server proactively and releases the  MQTT resources. Remarks To publish messages after disconnecting, set up the connection again.  12.9 Receiving Topic Content: +MQTTSUB Description To receive the topic content sent by the server. Copyright © Neoway Technology Co., Ltd...
  • Page 106: Querying The Mqtt Connection Status: +Mqttstate

    Format AT+MQTTSTATE?<CR> Parameter Return Value See the Example AT+MQTTSTATE? The device is connected to the +MQTTSTATE:1 MQTT server. Example Query MQTT connection AT+MQTTSTATE? status. +MQTTSTATE:0 The device is disconnected to the MQTT server. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 107: Ali Mqtt Command

    Return Value ProductKey=product key DeviceName=device name DeviceSecret=device secret device authenticated CLOUDHDAUTH=kfOZFbrf,Ndevice_T1,Bd successfully. PNgkKXcMP6WnCQucnLXigThPn5i9fr Example Authentication is set successfully +CLOUDHDAUTH: OK and the settings will be saved to AT+CLOUDHDAUTH? Query the authentication settings. ProductKey=J5VSBJMed74 DeviceName=TEST_0 Copyright © Neoway Technology Co., Ltd...
  • Page 108: Configuring Mqtt Connection Parameters: +Cloudconn

    Remarks call +CLOUDSUB command register default topic /pk/${deviceName}/get of each device and custom topics. 13.3 Subscribing to Messages: +CLOUDSUB Description To subscribe to messages. Only one subscription can be added at once. Format AT+CLOUDSUB=<topic>,<qos><CR> Copyright © Neoway Technology Co., Ltd...
  • Page 109: Publish Data: +Cloudpublish\+Publishdefault

    A new connection is required to set up by sending +CLOUDCONN. The length of the topic does not exceed 128 bytes.  13.4 PUBLISH Data: +CLOUDPUBLISH\+PUBLISHDEFAULT Description Publish data received after subscribing to a topic <CR><LF>+CLOUDPUBLISH: <packId>,<topic>,<msg_len>,<msg> Format <CR><LF> <CR><LF>+PUBLISHDEFAULT: <packId>,<topic>,<msg_len>,<msg> Copyright © Neoway Technology Co., Ltd...
  • Page 110: Publishing Messages: +Cloudsub

    <Msg>: Message content, maximum length of 1024 bytes After the subscription is successful, +CLOUDPUBACK: <OK> Return Value After the subscription fails, +CMD ERROR: <code> AT+CLOUDPUB=/1000146090/Ndevice_T1/neo001,1,h ello Publish message successfully +CLOUDPUBACK: <OK> Example Fail publish AT+CLOUDPUB=/1000146090/Ndevice_T1/neo001,1,h message. ACK timed ello out. Copyright © Neoway Technology Co., Ltd...
  • Page 111: Unsubscribing: +Cloudunsub

    The number of parameters is incorrect. ERROR The device returns EORROR and disconnects to the MQTT server automatically Remarks after failing to unsubscribe. A new connection is required to set up by sending +CLOUDCONN. Copyright © Neoway Technology Co., Ltd...
  • Page 112: Disconnecting To The Mqtt Server: +Clouddisconn

    Developers can also send this command to check the connection status and Remarks decide whether to reconnect automatically after detecting disconnection. To reconnect manually, execute +MQTTDISCONN to release resources and  execute +MQTTDISCONN to set up a new connection. Copyright © Neoway Technology Co., Ltd...
  • Page 113: Aws Mqtt Commands

    Clientcert: client certificate (character string) Clientkey: client key (character string) Set the authentication mode to AT+AWSTLSCFG=authmode,1 verify required. AT+AWSTLSCFG? Query the current configurations Example +AWSTLSCFG: 1,ca.pem,cc.pem,ck.pem of SSL. AT+AWSTLSCFG=? +AWSTLSCFG: <type>,<type_name> Query value range Copyright © Neoway Technology Co., Ltd...
  • Page 114: Setting User Parameters: +Awsauthparam

    To set AWS connection parameters Format AT+MQTTCONN=<host>,<enable_reconnect><CR> <host>: server address (url:port) <enable_reconnect>: to specify whether to reconnect after going offline Parameter 0: disable 1: enable Return Value <CR><LF>OK<CR><LF> AT+AWSCONNPARAM=a1epg1vh6w7hlk.iot.us-east connection Example -2.amazonaws.com:443,1 parameters successfully. Copyright © Neoway Technology Co., Ltd...
  • Page 115: Connection Command: +Awsconn

    To subscribe to a topic Format AT+AWSSUB=<topicname>,<qos><CR> <topicname>: topic to subscribe to, max. 128 bytes Parameter <qos>: quality of service, 0 and 1 are supported <CR><LF>OK<CR><LF> Return Value <CR><LF>ERROR<CR><LF> AT+AWSSUB=nwy_test/01,1 Subscribe topic Example successfully. Copyright © Neoway Technology Co., Ltd...
  • Page 116: Receiving Topic Content: +Awssubrecv

    <qos>: Quality of service, 0 and 1 are supported Parameter <topicname>: topic name, max. 128 bytes <length>: The length of message to be published, max. 1024 bytes After > is returned, enter messages of the specified length <CR><LF>OK<CR><LF> Return Value <CR><LF>ERROR<CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 117: Unsubscribing To Topic: +Awsunsub

    AT+AWSUNSUB=nwy_test/01 Unsubscribe to the topic successfully. Example AT+AWSUNSUB=nwy_test/01 Fail to unsubscribe to the topic. ERROR Remarks 14.9 Disconnecting to the AWS MQTT Server: +AWSDISCONN Description To disconnect to the AWS MQTT server Format AT+AWSDISCONN<CR> Copyright © Neoway Technology Co., Ltd...
  • Page 118: Querying Mqtt Status: +Awsstate

    14.10 Querying MQTT Status: +AWSSTATE Description To query the status of MQTT connection Format AT+AWSSTATE?<CR> 0: Disconnected Parameter 1: Connected Return Value See the Example AT+AWSSTATE? +AWSSTATE: 1 MQTT connected Example AT+AWSSTATE? +AWSSTATE: 0 MQTT disconnected Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 119: Other At Commands

    1: The LED status when the socket is connected. Return Value <CR><LF>OK<CR><LF> AT$MYSOCKETLED=1 Example This command is used to control the LED indicator when the socket is connected Remarks complying with external protocol stack. Copyright © Neoway Technology Co., Ltd...
  • Page 120: Obtaining The Version Information Of The Module: $Mygmr

    <firmware_version>: Firmware version, 4 bytes in ASCII format. <firmware_release_date>: Firmware release date, DDMMYY, 6 bytes in ASCII format. <module_hardware_version>: Hardware version, 4 bytes in ASCII format. <module_hardware_release date>: Hardware release date AT$MYGMR NEO6 Five spaces follows N20 to make up 8 bytes. V001 Example 110917 V1.0 080817 Remarks Copyright ©...
  • Page 121: Obtaining The Ccid Of The Sim Card: $Myccid

    1 at bit 0: supporting transparent mode Return Value 1 at bit 1: supporting non-transparent mode <network_type>: Network type. Extensible bytes are indicated by bit, 16-bit 1 at bit 0: GPRS 1 at bit 1: CDMA network Copyright © Neoway Technology Co., Ltd...
  • Page 122: Setting Network Mode: +Netcfg

    2: CAT NB1 ONLY 3: CAT M1 ONLY 4: CAT M1 AND CAT NB1 5: GSM CAT M1 AND CAT NB1 <netband>: locked band The following values are available if <netmode> is set to GSM_ONLY. To lock Copyright © Neoway Technology Co., Ltd...
  • Page 123 0x800: LTE B12 0x1000: LTE B13 0x20000: LTE B18 0x40000: LTE B19 0x80000: LTE B20 0x2000000: LTE B26 0x8000000: LTE B28 0x4000000000: LTE B39 <default>: Restore to default settings Example AT+NETCFG=”netpri”,1 Set the network priority to Copyright © Neoway Technology Co., Ltd...
  • Page 124: Querying Network State: +Netstate

    1: CAT M1 2: GSM <net_band>: registered network band Return Value The following values are returned if <net_type> is set to GSM: 0x1: GSM 900MHZ 0x2: GSM 1800MHZ 0x4: GMS 850MHZ 0x8: GSM 1900MHZ Copyright © Neoway Technology Co., Ltd...
  • Page 125 0x4000000000: LTE B39 AT+NETSTATE? The current registered network is +NETSTATE: 2,0x2 GSM and band is GSM 1800 MHz. Example AT+NETSTATE? The current registered network is +NETSTATE: 1,0x4 CAT M1 and band is LTE B3. Copyright © Neoway Technology Co., Ltd...
  • Page 126 AT Command Manual Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 127 If the SMSC address length is 0, replace 08 with 00 and the SMSC type and address fields must be omitted. The following is an example of the PDU message whose SMSC address length is not 0: Copyright © Neoway Technology Co., Ltd...
  • Page 128 3124819396F3: The number of recipient 0008 0A: The length of the content 00680065006C006C006F: SMS message content SMS message content: hello The SMS message content starts from 0100, so the value of LENGTH in AT+CMGS=LENGTH is 23. Copyright © Neoway Technology Co., Ltd...
  • Page 129 AT+CMGS="13430981508" > Content of the message to be sent. Enter Shenzhen Neoway Technology and press Shenzhen Neoway Technology Ctrl+Z (character 0x1A) to send the message. Successful Return value +CMGS: 116 Copyright © Neoway Technology Co., Ltd...
  • Page 130 23 bytes in PDU mode. AT+CMGS=23<CR> > Content of the message to be sent Input message content, which is encoded in PDU 0891683110808805F001000B813124819396F3 mode and sent by pressing 00080A00680065006C006C006F Ctrl+Z (0X1A). Successfully Return value +CMGS: 117 Copyright © Neoway Technology Co., Ltd...

Table of Contents