Neoway M590E Manual

Neoway M590E Manual

V1 gprs module, at command set
Table of Contents

Advertisement

Neo_M590E V1 GPRS Module
AT Command Set
Version 1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Neoway M590E

  • Page 1 Neo_M590E V1 GPRS Module AT Command Set Version 1.0...
  • Page 2 Shenzhen Neoway provides customers complete technical support. If you have any question, please contact your account manager or email to the following email addresses: Sales@neoway.com...
  • Page 3 Neo_M590E V1 GPRS Module AT Command Set Revision Record Issue Changes Date V1.0 Initial draft 2016-02-27...
  • Page 4: Table Of Contents

    Neo_M590E V1 GPRS Module AT Command Set Contents Boot LOG Instruction ........................1 1 General Commands ........................2 1.1 Querying the Manufacturer: I ........................2 1.2 Querying the Version: +GMR ........................2 1.3 Querying Signal Quality: +CSQ ........................2 1.4 Querying the Network Registration Status: +CREG ..................3 1.5 GPRS Network Registration: +CGREG ......................
  • Page 5 Neo_M590E V1 GPRS Module AT Command Set 3.6 Setting Up UDP Connection: +UDPSETUP ....................31 3.7 Sending UDP Data: +UDPSEND ......................32 3.8 Receiving UDP Data: +UDPRECV ......................33 3.9 Closing UDP Connection: +UDPCLOSE ....................33 3.10 Querying TCP/UDP Connection Status: +IPSTATUS ................34 3.11 Setting Local UDP Port: +UDPLPORT ....................
  • Page 6: Boot Log Instruction

    \r\nMODEM:STARTUP\r\n is output if you enter AT/r before starting the module and \r\nMODEM:STARTUP\r\n is output after the phonebook is ready.  Only \r\n+PBREADY\r\n is output after the phonebook is ready if you enter AT/r after starting the module. Copyright © Neoway Technology Co., Ltd...
  • Page 7: General Commands

    Query the version of the software. Example +GMR: M590_1169_R9S63000_V001 Remarks 1.3 Querying Signal Quality: +CSQ Description To check the receiving signal strength indication (RSSI) and the bit error rate (BER) of the channel Format AT+CSQ<CR> Parameter Copyright © Neoway Technology Co., Ltd...
  • Page 8: Querying The Network Registration Status: +Creg

    1: Registered the local network 2: Unregistered. The device is searching for base stations. 3: The registration is rejected. 4. Unknown code 5: Registered, roaming <lac>: string type; two - byte location area code in hexadecimal format Copyright © Neoway Technology Co., Ltd...
  • Page 9: Gprs Network Registration: +Cgreg

    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 Copyright © Neoway Technology Co., Ltd...
  • Page 10: Querying Imei: +Cgsn

    To query the International Mobile Equipment Identity (IMEI) of the module Format AT+CGSN<CR> Parameter Return Value <CR><LF>+CGSN: <IMEI> <CR><LF>OK<CR><LF> Example AT+CGSN Query the IMEI number. +CGSN: "860998021170687" Remarks The IMEI is a character string of 15 digits. Copyright © Neoway Technology Co., Ltd...
  • Page 11: Restart The Module: +Cfun

    To enable/disable the GSM 07.10 multiplexing protocol control channel Format  AT+CMUX=<mode>[,<subset>[,<port_speed>[,<N1>[,<T1>[,<N2>[,<T2>[,<T3>[,< k>]]]]]]]]<CR>  AT+CMUX=?<CR> Parameter <mode>: integer type (multiplexer Transparency Mechanism) 0: Basic option 1: Advanced option (not supported) < subset > : integer type. Copyright © Neoway Technology Co., Ltd...
  • Page 12: Setting The Baudrate Of The Module: +Ipr

     AT+IPR=?<CR> Parameter <baud rate>: Baudrate The value can be: 0, 2400, 4800, 9600, 14400, 19200, 28800, 33600, 38400, 57600, 115200, 230400, 460800, 921600, and 1843200 . <CR><LF>OK<CR><LF> Return Value <CR><LF>+IPR: <baud rate><CR><LF> <CR><LF>OK<CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 13: Querying The Module Status: +Cpas

    <CR><LF>+CPAS: (list of supported < pas >s) <CR><LF>OK<CR><LF> Example AT+CPAS Query the work status of the module. +CPAS: 0 The module is ready to execute AT commands. AT+CPAS=? To query the value range of the module work status +CPAS: 0,1,3,4 Copyright © Neoway Technology Co., Ltd...
  • Page 14: Enabling Or Disabling The Sleep Mode: +Enpwrsave

    TZ: Two digits, indicating the time lag between the local time and the GMT time. This information is optional because it can be displayed only when the network supports it. A pair of quotation marks ("") is required. Copyright © Neoway Technology Co., Ltd...
  • Page 15: Entering The Pin Codes: +Cpin

    To enter PIN code, you must lock the current SIM card (running AT+CLCK="SC",1,"1234") and then restart the module.  If you enter wrong PIN code for three times, you must enter PUK to unlock. Copyright © Neoway Technology Co., Ltd...
  • Page 16: Enabling Pin And Querying Mt And Network Device: +Clck

    64: Dedicated packet access 128: Dedicated PAD access Return Value When <mode>=2 and command successful: <CR><LF>+CLCK:<status> [, <class1> [<CR><LF>+CLCK:<status>, <class2> [...]]<CR><LF> Example AT+CLCK="SC",2 +CLCK: 0 AT+CLCK=? Query the network information related to the module. +CLCK:("SC","AO","OX","FD","OI") Copyright © Neoway Technology Co., Ltd...
  • Page 17: Modifying The Password Of The Pin: +Cpwd

    To modify the PIN code, you must lock the SIM card (running AT+CLCK="SC",1,"1234"). 1.16 Setting GPRS Attach and Detach: +CGATT Description To set GPRS attach and detach Format  AT+CGATT=<state><CR>  AT+CGATT?<CR>  AT+CGATT=?<CR> Copyright © Neoway Technology Co., Ltd...
  • Page 18: Setting Pdp Format: Cgdcont

    PDP startup procedure. The allocated address may be read using the +CGPADDR command. <d_comp>: a numeric parameter that controls PDP data compression (applicable for SNDCP only) Copyright © Neoway Technology Co., Ltd...
  • Page 19: Gprs Dialup: Atd*99

    1.19 Switching Data Mode to Command Mode: +++ Description To switch the module from the data mode to the command mode Format Parameter Return Value See the Example. Example Switch to command mode Copyright © Neoway Technology Co., Ltd...
  • Page 20: Switching Command Mode To Data Mode: O

    8-characters short alphanumeric format, or 5-character numeric format (MCC/MNC). <AcT>: Indicates the radio access technology and its value can be 0, 1, and 2. 0: GSM 1: GSM compact 2: UTRAN Return Value <stat>: 0: Unknown network Copyright © Neoway Technology Co., Ltd...
  • Page 21 If it is set to digital mode, get the number 46000 AT+COPS? +COPS:0,0,"CHINA UNICOM" China Unicom (Please note the two spaces between CHINA and UNICOM.) AT+COPS? If it is set to digital mode, then get the +COPS: 0,2,"46001" number 46001. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 22: Sms Commands

    +CPMS: 0, 50, 0, 50, 0, 50 AT+CPMS? Query the capacity of current SMS storage. +CPMS: "SM", 14, 50, "SM", 14, 50, "SM", 14, AT+CPMS=? Query the available storages. +CPMS: ("ME","SM"),("ME","SM"),("ME","SM") AT+CPMS="SM" No SIM card is installed. Copyright © Neoway Technology Co., Ltd...
  • Page 23: Setting Sms Inputting Mode: +Cmgf

    "HEX": Character string consisting of hexadecimal numbers from 0x00 to 0xFF. For example, "032FE6", equal to three 8-bit characters, whose values are respectively 3, 47, and 230 in decimal system. These characters do not have to be converted with Copyright © Neoway Technology Co., Ltd...
  • Page 24: Setting The Sms Indication Mode: +Cnmi

    TE after reservation. Otherwise forward them directly to the TE. 3: Forward unsolicited result codes directly to the TE. TA-TE link specific inband technique used to embed result codes and data when TA is in on-line data mode. Copyright © Neoway Technology Co., Ltd...
  • Page 25 <CR><LF>+CNMI: (list of supported <mode>s), (list of supported <mt>s), (list of supported <bm>s), (list of supported <ds>s), (list of supported <bfr>s) <CR><LF>OK<CR><LF> Example AT+CNMI=1,1,0,0,0 Set the SMS message indication mode. AT+CNMI=? Query the value ranges of the paramters. +CNMI: (0-3), (0-3), (0,2), (0-1), (0,1) Copyright © Neoway Technology Co., Ltd...
  • Page 26: Reading Sms Messages: +Cmgr

    <length>: data length in text mode; TPUD bytes in PDU mode. <pdu>: hexadecimal value of ME/TA <data>: SMS data AT+CMGR=12 +CMGR: "REC Read the 12 message in text READ","13410995077","","14/07/02,14:06:25+32" mode. asdf?@123 Example AT+CMGR=12 Read the 12 message in PDU +CMGR: 1,,27 mode. 0891683110808805F0240BA13114905970F7000041 Copyright © Neoway Technology Co., Ltd...
  • Page 27: Sms Message List: +Cmgl

    4: All SMS messages Return Value  if text mode (+CMGF=1),command successful: <CR><LF>+CMGL: <index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF> <data><CR><LF> <CR><LF>+CMGL: <index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF> <data><CR><LF>>[...]]  if PDU mode (+CMGF=0) and command successful: +CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu> [<CR><LF> +CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu>[...]] Example AT+CMGL="ALL" +CMGL: 1,"REC READ","10010","","14/06/23,14:42:27+32" 0500034F0302672C77ED4FE14E2D768452694F596D4191CF5305542B53E052A05305 6D4191CFFF0C8BF76CE8610F533A52064F7F7528FF093002672C6B2167E58BE27E D3679C5B5857285EF665F6FF0C8BF74EE551FA8D264E3A51C63002767B96468054 Copyright © Neoway Technology Co., Ltd...
  • Page 28: Sending Sms Messages: +Cmgs

    <da>: The destination number to which the SMS message is sent in text mode <text>: SMS message content in text mode <length>: The byte length of the SMS message content in PDU mode <mr>: The storage location <CR>: End character Copyright © Neoway Technology Co., Ltd...
  • Page 29: Writing Sms Messages: +Cmgw

    <length>: The byte length of the SMS message content in PDU mode <index>: Location information <CR>: End character <Ctrl-Z>: Indicates the end of the input message <ESC>: Indicates giving up the input message Return Value <CR><LF>+CMGW:<index> Copyright © Neoway Technology Co., Ltd...
  • Page 30: Sending Stored Sms Messages: +Cmss

    SMS message number in memory 2 is incorrect. ERROR AT+CMSS=6,"15889758495" Forward stored SMS message to 15889758495. 6 is the ID of the message stored successfully. +CMSS: 6 Only message in text mode support this function. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 31: Deleting Sms Messages: +Cmgd

    <tosca>: The format of the SMS center number. 129 indicates common number; 145 indicates international number (add + in front of the number automatically). Return Value <CR><LF>OK<CR><LF> <CR><LF>+CSCA: <sca>, <tosca> <CR><LF>OK<CR><LF> Example AT+CSCA="8613800755500",145 Set an international SMSC number. AT+CSCA? Query the SMSC number. +CSCA: "8613800755500", 145 Copyright © Neoway Technology Co., Ltd...
  • Page 32: Setting The Parameters Of The Text Mode: +Csmp

    Query the current settings of the text mode. +CSMP: 17,167,0,0 Remarks 2.13 Displaying the Parameters of the Text Mode: +CSDH Description To set whether the detailed header information is displayed in the result code in text mode Copyright © Neoway Technology Co., Ltd...
  • Page 33: Tcp/Udp Data Service

    This command is valid in text mode, which can be set by AT+CMGF=1. 3 TCP/UDP Data Service 3.1 Setting Up a PPP Link: +XIIC Description To set up a PPP connection Format  AT+XIIC=<n><CR>  AT+XIIC?<CR> Query the PPP connection status Copyright © Neoway Technology Co., Ltd...
  • Page 34: Setting Up Tcp Connection: +Tcpsetup

    Parameter <n>: Socket number, ranging from 0 to 5 <ip>: Destination IP address, in xx.xx.xx.xx or domain name format <port>: Destination port ID in decimal ASCII code Return Value <CR><LF>OK<CR><LF> <CR><LF>+TCPSETUP:<n>,OK<CR><LF> <CR><LF>OK<CR><LF> <CR><LF>+TCPSETUP:<n>, FAIL<CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 35: Sending Tcp Data: +Tcpsend

    2800-byte data fails to be sent on socket 0 because the buffer is not enough. +TCPSEND:Buffer not enough,439 AT+TCPSEND=0,2800 2800-byte data fails to be sent on socket 0 because data length exceeds the limit. +TCPSEND:Data length error Copyright © Neoway Technology Co., Ltd...
  • Page 36: Receiving Tcp Data: +Tcprecv

    The TCP link is closed. The server sends TCP connection closing command or the network encounters abnormality or weak signals. Remarks 3.6 Setting Up UDP Connection: +UDPSETUP Description To set up a UDP connection Copyright © Neoway Technology Co., Ltd...
  • Page 37: Sending Udp Data: +Udpsend

    After entering the command, input the data to be sent until the module returns >.  If the UDP data is sent successfully, the module returns <CR><LF>+UDPSEND:<n>,<length><CR><LF>. <length> indicates the length of data already sent. Example AT+UDPSEND=0,10 10-byte data is successfully sent through socket 0. >1234567890 Copyright © Neoway Technology Co., Ltd...
  • Page 38: Receiving Udp Data: +Udprecv

    The TCP connection on socket 1 is closed successfully. +UDPCLOSE: 1,OK AT+UDPCLOSE=2 Socket number error +UDPCLOSE:ERROR The TCP connection is closed. The server sends UDP connection closing +UDPCLOSE:0,Link Closed command or the network encounters abnormality or weak signals. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 39: Querying Tcp/Udp Connection Status: +Ipstatus

    This command should have been executed before the AT+UDPSETUP command is executed.  If you do not use this command, the local port ID will be allocated by default, that is, the first one is 4096, the second one is 4097, … Copyright © Neoway Technology Co., Ltd...
  • Page 40: Setting Up Tcp Transparent Transmission Connection: +Tcptrans

    +TCPTRANS:OK is returned. 3.13 Setting Up UDP Transparent Transmission Connection: +UDPTRANS Description To transparently transmit UDP data Format AT+UDPTRANS=<ip>,<port><CR> Parameter <ip>: Destination IP address, in xx.xx.xx.xx format or in domain name format Copyright © Neoway Technology Co., Ltd...
  • Page 41: Setting Automatic Tcp Data Sending: +Tcpauto

    2: start automatic sending 3: stop automatic sending <mode>: return value mode, which is valid only when <operation> is set to 1. 0: No return value is displayed after the TCP data is (or not) sent successfully. Copyright © Neoway Technology Co., Ltd...
  • Page 42 Restore the default settings of socket 0, that is, cancel the automatic sending. AT+TCPAUTO=0,0 ERROR is returned because automatic sending is not set on socket 0. ERROR AT+TCPAUTO=? Query the available range of parameters +TCPAUTO: (0-5),(0-3),(1-1800),(1-50) Copyright © Neoway Technology Co., Ltd...
  • Page 43 This command is used only for non-transparent transmission TCP connections.  The auto-sending function will be stopped if you issue the AT+TCPSEND command. It will start again after the AT+TCPSEND command is executed completely. Copyright © Neoway Technology Co., Ltd...
  • Page 44: Dns Command

    +DNS:OK AT+DNS="www.neoway.com.cn" Failed to translate the DNS in to IP address because PPP is not activated +DNS:Error Remarks  The URL length should not exceed 250 bytes.  Activate PPP before executing this command. Copyright © Neoway Technology Co., Ltd...
  • Page 45: Ftp At Commands

    +FTPLOGIN:Error Connect Server Fail AT+FTPLOGIN=58.60.184.213,21,neowayf Failed to log in to the FTP server because tp,neoway the password is incorrect. +FTPLOGIN:530 Not logged in AT+FTPLOGIN=58.60.184.213,21,neowayf The user has logged in to the FTP server. tp,neowayftp +FTPLOGIN:Have Logged In Copyright © Neoway Technology Co., Ltd...
  • Page 46: Logging Out From The Ftp Server: +Ftplogout

    +FTPGET:<length>,<data>: <length> indicates the data length; <data> indicates the data content.  +FTPGET:OK.total length is <n>: The module reads data successfully and the data length is n.  +FTPGET:OK.partial length is <m>: The module reads the data of <m> byte Copyright © Neoway Technology Co., Ltd...
  • Page 47: Uploading Data To The Ftp Server: +Ftpput

    +FTPGET:OK.file length is 10 Remarks 5.4 Uploading Data to the FTP Server: +FTPPUT Description To upload data to the FTP server Format AT+FTPPUT=<filename>,<type>,<mode>,<size><CR> Parameter <filename>: The name of the file to be uploaded <type>: File transfer mode Copyright © Neoway Technology Co., Ltd...
  • Page 48: Querying Ftp Connection Status: +Ftpstatus

    The FTP connection has been set up. <ip>: The IP address of the FTP server <port>: The port of the FTP server Example AT+FTPSTATUS The module is successfully connected to the FTP server. +FTPSTATUS:login,219.134.179.521,21 Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 49: Tcp Server At Commands

    To close the listening connection and close all connections Format AT+CLOSELISTEN<CR> Parameter Return Value <CR><LF>+CLOSELISTEN:<socket>,local link closed<CR><LF> Socket: SOCKET ID Example AT+CLOSELISTEN The local link will be closed if there is any connection to the client. +CLOSECLIENT:1,remote link closed Copyright © Neoway Technology Co., Ltd...
  • Page 50: Closing Connections Of The Client: +Closeclient

    Remarks Additional (s) makes this command different from the receive mode of the client mode in format. 6.5 Sending Data to the Client: +TCPSENDS Description To send data to the client Copyright © Neoway Technology Co., Ltd...
  • Page 51: Querying The Connection Status On The Client: +Clientstatus

    ASCII mode, unit: byte Example AT+CLIENTSTATUS=0 A TCP connection has been set up with the socket 0 client and the buffer size is +CLIENTSTATUS:0,CONNECT,TCP,2048 2048 bytes. AT+CLIENTSTATUS=1 The connection does not exist. +CLIENTSTATUS:Error 1 Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 52: Unlimited Udp Server At Commands

    +FUDPLISTEN:not listening Remarks This command is valid only after a PPP connection is set up succesfully.  Only the SIM cards with fixed IP addresses can be used as servers.  Copyright © Neoway Technology Co., Ltd...
  • Page 53: Receiving Data From The Client: +Fudprecv(S)

    The IP address is incorrect. +FUDPSENDS:IP OR PORT ERROR AT+UDPSENDS=10.74.2222.173,41287,4000 The length is incorrect. +UDPSENDS:DATA LENGTH ERROR Remarks 7.4 Closing Listening for UDP Server: +CLOSEFUDPLISTEN Description To close listening for UDP server Format AT+CLOSEFUDPLISTEN<CR> Copyright © Neoway Technology Co., Ltd...
  • Page 54 Neo_M590E V1 GPRS Module AT Command Set Parameter Return Value <CR><LF>+ CLOSEFUDPLISTEN:<socket>, closed<CR><LF> Example AT+CLOSEFUDPLISTEN Close listening for UDP server +CLOSEFUDPLISTEN:0,closed Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 55: Lbs Command

    401: No right 400: error occurs during request parsing. 404: legal request, but the queried BS is not included. 408: parsing times out. 500: internal error of server <CR><LF>OK<CR><LF> <CR><LF>+CIPGSMLOC: TIMEOUT<CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 56 If the server does not reply in 10 seconds after the request is submitted successfully, the module returns +CIPGSMLOC: TIMEOUT.  The current coordinates of latitude and longitude are valid and precision is reserved (0.0 by default). Copyright © Neoway Technology Co., Ltd...
  • Page 57: Other At Commands

    Example AT+POSI=1 Obtain the information of one +POSI:1,460,00,27A8,EA7,1D,7,1 base station. AT+POSI=1 Obtain the information of +POSI: multiple base stations. 1,460,01,2543,A85D,3E,45,0,460,01,2543,AB13,1E,41,0,460,0 1,2543,A85E,10,36,0,460,01,2543,AA51,0A,34,0,460,01,2543, B046,11,32,0,460,01,2543,A9A8,3F,31,0,460,01,2543,A805,33, 27,1 Remarks If no cell is found, the module returns OK. Copyright © Neoway Technology Co., Ltd...
  • Page 58: Getting The Local Port Of A Socket: +Getlport

    Obtain the local port ID of socket 1. +GETLPORT: 4096 Its port ID is 4096. Obtain the local port of socket 2. AT+GETLPORT=2 Error is returned because no link is set ERROR up on socket 2. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 59: Tcp Command Example Process

    // Set to internal protocol AT+CGDCONT=1,"IP","CMNET" // Set APN. AT+CGATT? // Query the GPRS attach status. +CGATT: 1 // Attached AT+XIIC=1 // Activate the PPP connection. AT+XIIC? +XIIC: 1, 10.10.73.214 // The PPP connection is set up. Copyright © Neoway Technology Co., Ltd...
  • Page 60: Tcp Connection Through External Protocol

    // Run the following commands unless you see this code. AT+CPIN? // Check the SIM card status. +CPIN: READY AT+CCID // Read the CCID of the SIM card. +CCID: 89860109247552607598 AT+CSQ // Query the RSSI. Copyright © Neoway Technology Co., Ltd...
  • Page 61 Neo_M590E V1 GPRS Module AT Command Set CSQ: 30,1 AT+CREG? +CREG: 0,1 // The module registered the GSM network. … AT+CGDCONT=1,"IP","CMNET" // Set APN. AT+CGATT? // Query the GPRS attach status. +CGATT: 1 // Attached ATD*99# // Dial up CONNECT Copyright © Neoway Technology Co., Ltd...
  • Page 62: A Reference Process Of At Command Programming

    Message content: hello The SMS message content starts from 0100, so the value of LENGTH in AT+CMGS=LENGTH is 23. The following is an example of the PDU message whose SMSC address length is 0: Copyright © Neoway Technology Co., Ltd...
  • Page 63 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 64: Flowchart Of Sending Text Sms Messages (Through Uart)

    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 65: Flowchart Of Sending Pdu Sms Messages (Through Uart)

    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