background image

 

 

 

 

 

Neo_M590E V1 GPRS Module

 

AT Command Set

 

 

Version 1.0

 

 

 

 

 

Содержание M590E

Страница 1: ...Neo_M590E V1 GPRS Module AT Command Set Version 1 0...

Страница 2: ...he M590E V1 This document is intended for system engineers SEs development engineers and test engineers The information in this document is subject to change without notice due to product version upda...

Страница 3: ...Neo_M590E V1 GPRS Module AT Command Set Revision Record Issue Changes Date V1 0 Initial draft 2016 02 27...

Страница 4: ...mat CGDCONT 13 1 18 GPRS Dialup ATD 99 14 1 19 Switching Data Mode to Command Mode 14 1 20 Switching Command Mode to Data Mode O 15 1 21 Selecting and Registering a GSM Network COPS 15 2 SMS Commands...

Страница 5: ...e Server TCPLISTEN 44 6 2 Closing the Listening Connection CLOSELISTEN 44 6 3 Closing Connections of the Client CLOSECLIENT 45 6 4 Receiving Data from the Client TCPRECV S 45 6 5 Sending Data to the C...

Страница 6: ...drate If you send AT IPR to the module to set the baudrate to a certain value the module cannot automatically detect a baudrate unless you run the command AT IPR 0 r After the module is started send A...

Страница 7: ...LF OK CR LF Example ATI NEOWAY M590 V1 REVISION V001 OK Manufacturer Module mode Version Remarks N A 1 2 Querying the Version GMR Description To query the software version Format AT GMR CR Parameter...

Страница 8: ...module Remarks N A 1 4 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 0 Forbid...

Страница 9: ...tration CGREG Description To control the presentation of an unsolicited result code of the module s GPRS network registration status Format AT CGREG n CR AT CGREG CR AT CGREG CR Parameters n Specifies...

Страница 10: ...LF Example AT CGREG CGREG 0 1 OK Query the current GPRS network registration status The network registration unsolicited result code is disabled AT CGREG 1 OK Enable network registration result code...

Страница 11: ...R LF CR LF CFUN fun CR LF OK CR LF CR LF CFUN list of supported fun s list of supported rst s CR LF OK CR LF Example AT CFUN 1 1 OK Restart the module AT CFUN CFUN 1 OK Query the current functions AT...

Страница 12: ...supported T2 integer type response timer for the multiplexer control channel in units of ten milliseconds not supported T3 integer type wake up response timer in seconds not supported k integer type...

Страница 13: ...tomatically detect the following baudrate 9600 14400 19200 38400 57600 and 115200 1 10 Querying the Module Status CPAS Description To query the work status of the module Format AT CPAS CR AT CPAS CR P...

Страница 14: ...f the module AT ENPWRSAVE ENPWRSAVE 1 OK Query the enabling status of the sleep mode of the module AT ENPWRSAVE ENPWRSAVE 0 1 OK To query the value range of the module work status Remarks The setting...

Страница 15: ...enter the PIN codes Format AT CPIN pin newpin CR AT CPIN CR Parameter pin newpin string type with a pair of quotation marks PUK PUK code of the SIM card PIN PIN code of the SIM card Return Value CR L...

Страница 16: ...tgoing calls OX All outgoing international calls except to the home country FD SIM fixed dialing memory feature mode 0 Unlock 1 Lock 2 Query the status status 0 not active 1 active passwd Password or...

Страница 17: ...quotation marks is required for the value newpwd New password or code string type A pair of quotation marks is required for the value Return Value CR LF OK CR LF CR LF CPWD list of supported fac pwdl...

Страница 18: ...NT cid type APN CR Parameter cid PDP Context Identifier a numeric parameter that specifies a particular PDP context definition The parameter is local to the TE MT interface and is used in other PDP co...

Страница 19: ...to UNINET AT CGDCONT 2 IP UNINET OK Set APN of the second PDP to UNINET Remarks The APN of each carrier is different from each other 1 18 GPRS Dialup ATD 99 Description GPRS dialup through the extern...

Страница 20: ...rk Format AT COPS mode format oper AcT AT COPS CR AT COPS CR Parameter mode To set automatic network selection or manual selection 0 Automatic selection ignore the parameter oper 1 Manual selection 2...

Страница 21: ...meric mode AT COPS 0 2 OK Set to digital mode AT COPS COPS 0 0 CHINA MOBILE OK AT COPS COPS 0 2 46000 OK China Mobile Please note the two spaces between CHINA and MOBILE If it is set to digital mode g...

Страница 22: ...ly ME ME only Return Value CR LF CPMS used1 total1 used2 total2 used3 total3 CR LF CR LF OK CR LF OR CR LF CPMS mem1 used1 total1 mem2 used2 total2 mem3 us ed3 total3 CR LF CR LF OK CR LF OR CR LF CPM...

Страница 23: ...MGF CMGF 1 OK Query the current mode of SMS message input AT CMGF CMGF 0 1 OK Query the value range of SMS mode setting Remarks N A 2 3 Setting the TE Character Set CSCS Description To set the format...

Страница 24: ...cation Mode CNMI Description To set the mode how the module informs users of new SMS messages received from the network Format AT CNMI mode mt bm ds bfr CR AT CNMI CR AT CNMI CR Parameter mode control...

Страница 25: ...ts tooa length CR LF data text mode The cell broadcast will be directly displayed rather than stored 3 Class 3 CBMs are routed directly to TE using unsolicited result codes defined in bm 2 Messages of...

Страница 26: ...rrent memory use the AT CPMS command to specify the current memory Format AT CMGR index CR Parameter index location value index from preferred message storage mem1 to the TE Return Value if text mode...

Страница 27: ...es STO SENT Stored sent SMS messages ALL All SMS messages When you set AT CMGF 0 0 Unread SMS messages received 1 Read SMS messages received 2 Stored unsent SMS messages 3 Stored sent SMS messages 4 A...

Страница 28: ...ext format AT CMGF 1 AT CMGL CMGL 0 4 OK Query in PDU format AT CMGF 0 AT CMGF 1 OK AT CMGL 4 ERROR The parameter should be set to 0 AT CMGF 0 OK AT CMGL ALL ERROR The parameter should be set to 1 Rem...

Страница 29: ...If you use UART debugging tool to sent PDU SMS message enter r behind the AT CMGS command manually or send CR in hexadecimal system For details about PDU see the A 1 Content of PDU SMS Messages 2 8 W...

Страница 30: ...y SMS SUBMIT The network returns reference value mr to the end device after the SMS message is sent successfully Format AT CMSS index da toda CR Parameter index Message location da the destination num...

Страница 31: ...ported index s list of supported delflag s CR LF OK CR LF Example AT CMGD 1 3 OK Delete all read sent and unsent SMS messages Delete successfully AT CMGD CMGD 1 50 0 4 OK Query the value ranges of par...

Страница 32: ...2 vp Value Validity Period 0 143 vp 1 5mins 12 hours at most 144 167 12hours vp 143 30mins 24 hours at most 168 196 vp 166 1day 197 255 vp 192 1week pid Integer type TP protocol ID default value 0 dcs...

Страница 33: ...AT CSDH 1 OK AT CMGR 26 CMGR REC READ 18665312109 15 12 16 09 08 25 08 161 17 0 0 8613010888500 145 16 0038003700320030003000380034003000390040007100 71002E0063006F006D OK Set the detailed header info...

Страница 34: ...PP connection has been set up before you establish a TCP connection You can run the XIIC command to check Use the AT CGDCONT command to set the APN and other parameters before you set up a PPP connect...

Страница 35: ...XIIC 1 command to set up a PPP connection before running this command 3 3 Sending TCP Data TCPSEND Description To send TCP data The module will returns after this command is sent Send TCP data 50 ms t...

Страница 36: ...ata You can identify the end based on length Return Value See the Example Example TCPRECV 0 10 1234567890 10 byte data is successfully received on socket 0 The data is 1234567890 Remarks N A 3 5 Closi...

Страница 37: ...incorrect Remarks Use the AT XIIC 1 command to set up a PPP connection before running this command The local address of UDP varies with PPP connections 3 7 Sending UDP Data UDPSEND Description To sen...

Страница 38: ...ata You can identify the end based on length Return Value See the Example Example UDPRECV 0 10 1234567890 10 byte data is successfully received on socket 0 The data is 1234567890 Remarks N A 3 9 Closi...

Страница 39: ...SCONNECT No TCP or UDP connection is set up on socket 1 AT IPSTATU ERROR The AT command is not complete AT IPSTATUS 7 IPSTATUS Error 1 The socket number in the command is incorrect AT IPSTATU 1 ERROR...

Страница 40: ...FAIL Failed to set up a TCP transparent transmission connection AT TCPTRANS 220 199 66 56 6800 ERROR ERROR is returned after the command is executed because a transparent transmission TCP UDP TCP ser...

Страница 41: ...lay the data transmitted to the server after the transparent transmission UDP connection is set up successfully Use to switch the server to the command mode and ATO to switch it to the data mode The m...

Страница 42: ...nd 20 byte data at the scheduled time AT TCPAUTO 0 1 0 120 20 OK TCPAUTO 0 OK Set socket 0 to send 20 byte data after 120 seconds and forbid return value Enter the 20 byte TCP data after is returned A...

Страница 43: ...tings by this command will not be saved after the module is powered off This command is used only for non transparent transmission TCP connections The auto sending function will be stopped if you issu...

Страница 44: ...m of www xxxx com Return Value CR LF OK CR LF CR LF DNS ip CR LF DNS OK CR LF Example AT DNS www neoway com cn OK DNS 112 127 8 18 DNS OK Query the IP address of www neoway com cn and the module retur...

Страница 45: ...ully FTPLOGIN 530 Not logged in The user failed to log in to the FTP server because the user account or password is incorrect FTPLOGIN Error Connect Server Fail Failed to connect the FTP server FTPLOG...

Страница 46: ...Note The file directory under the FTP root directory Type File transfer mode 1 ASCII 2 Binary content or info File content or file or specified directory information 1 Obtain the file content 2 Obtai...

Страница 47: ...mation about test txt AT FTPGET test txt 1 1 FTPGET 10 0123456789 FTPGET OK total length is 10 Obtain the information in test txt AT FTPGET test txt 1 1 2 FTPGET 8 23456789 FTPGET OK total length is 8...

Страница 48: ...ssfully and the file length is n FTPPUT Delete File OK The file is deleted successfully Example AT FTPPUT test txt 1 1 1024 FTPPUT OK 1024 Upload the text txt file which is 1024 bytes The file is tran...

Страница 49: ...us Here the server is in the listening status AT TCPLISTEN TCPLISTEN not listening Query the listening status Here the server is not in the listening status Connect AcceptSocket 1 ClientAddr 119 123 7...

Страница 50: ...0 remote link closed CLOSECLIENT 1 remote link closed There is no parameter in this command All connections with the client are closed successfully Remarks N A 6 4 Receiving Data from the Client TCPRE...

Страница 51: ...RROR The module server sends TCP data and encounters data congestion Remarks Ensure that the TCP connection has been set up before sending TCP data 6 6 Querying the Connection Status on the Client CLI...

Страница 52: ...ort ID 6000 The listening function of the server is started Failed to bind AT FUDPLISTEN 6000 ERROR Set server listening before setting up PPP connections AT FUDPLISTEN 6000 Listening Transparent list...

Страница 53: ...o send data to the client Format AT FUDPSENDS ip port length CR Parameter ip IP address of the client port ID of the port for the client to communicate length The length of the data to be sent value r...

Страница 54: ...ule AT Command Set Copyright Neoway Technology Co Ltd 49 Parameter N A Return Value CR LF CLOSEFUDPLISTEN socket closed CR LF Example AT CLOSEFUDPLISTEN CLOSEFUDPLISTEN 0 closed Close listening for UD...

Страница 55: ...fail_string Failure string fail_string CONTACT FAIL LINK FAIL LINK NOT FREE CR LF OK CR LF CR LF CIPGSMLOC result_string CR LF CIPGSMLOC OK CR LF result_string string including longitude and latitude...

Страница 56: ...on request is sent successfully but the queried BS is not included AT CIPGSMLOC 1 OK AT CIPGSMLOC 1 CIPGSMLOC LINK NOT FREE Request multi BS positioning The connection is occupied AT CIPGSMLOC 0 OK Cl...

Страница 57: ...l CI Cell ID hexadecimal BSIC Base station ID hexadecimal RxLev Signal strength of the base station expressed by 1 to 64 ENDED End symbol 0 indicates there is more base station information 1 indicates...

Страница 58: ...cription To get the local port of a socket Format AT GETLPORT n CR Parameter n Socket ID ranging from 0 to 5 Return Value CR LF GETLPORT port_num CR LF CR LF OK CR LF or CR LF ERROR CR LF port_num Loc...

Страница 59: ...is code AT CPIN Check the SIM card status CPIN READY OK AT CCID Read the CCID of the SIM card CCID 89860109247552607598 OK AT CSQ Query the RSSI CSQ 26 0 OK AT CREG CREG 0 1 The module registered the...

Страница 60: ...t successfully AT IPSTATUS 0 IPSTATUS 0 CONNECT TCP 2047 Query the connection status AT TCPCLOSE 0 Close the TCP connection on socket 0 TCPCLOSE 0 OK AT CGATT 0 Close the PPP connection GPRS DISCONNEC...

Страница 61: ...mand Set Copyright Neoway Technology Co Ltd 56 CSQ 30 1 OK AT CREG CREG 0 1 The module registered the GSM network OK AT CGDCONT 1 IP CMNET Set APN OK AT CGATT Query the GPRS attach status CGATT 1 Atta...

Страница 62: ...93 should be 3124819396F3 after conversion 7 0008 8 The hexadecimal length of the SMS message content For example the UCS2 code of hello is 00080A00680065006C006C006F that is 10 bits and the hexadecim...

Страница 63: ...C address information length SMSC number is not needed 0100 0B the length of the recipient number 81 Receiving mode 3124819396F3 The number of recipient 0008 0A The length of the content 00680065006C0...

Страница 64: ...et the text mode AT CMGF 1 OK Configure the TE character set AT CSCS GSM OK Send an SMS message AT CMGS 13430981508 Content of the message to be sent Shenzhen Neoway Technology Return value CMGS 116 O...

Страница 65: ...t the PDU mode AT CMGF 0 OK Configure TE character set AT CSCS UCS2 OK Send an SMS message AT CMGS 23 CR Content of the message to be sent 0891683110808805F001000B813124819396F3 00080A00680065006C006C...

Отзывы: