SimCom SIM900 Series, SIM900D, SIM900B, SIM900A Command Manual

SIM900 NTP AT Command Manual_V1.00
Document Title: Version: Date: Status: Document Control ID:
General Notes
SIMCom offers this information as a service to its customers, to support application and engineering efforts that use the products designed by SIMCom. The information provided is based upon requirements specifically provided to SIMCom by the customers. SIMCom has not undertaken any independent search fo r additional relevant information, includin g any information that may be in the customer’s possession. Furthermore, system validation of this product designed by SIMCom within a larger electronic system remains the responsibility of the customer or the customer’s system integrator. All specifications supplied herein are subject to change.
Copyright This document contains proprietary technical information which is the property of SIMCom Limited., copying of this document and giving it to others and the using or communication of the contents thereof, are forbidden without express authority. Offenders are liable to the payment of damages. All rights reserved in the event of grant of a patent or the registration of a utility model or design. All specification supplied herein are subject to change without notice at any time.
Copyright © Shanghai SIMCom Wireless Solutions Ltd. 2013
SIM900 NTP AT Command Manual
1.00 2013-09-22 New SIM900 NTP AT Command Manual_V1.00
SIM900 NTP AT Command Manual
Version History
Version Chapter What is new
V1.00 Origin
SIM900_NTP AT Command Manual_V1.00 9/22/2013
2
SIM900 NTP AT Command Manual
1 Introduction
This document presents the AT command of NTP operation for SIM900. This document can apply to the same series of the modules which contain NTP function, like SIM900, SIM900D, SIM900B and SIM900A.
1.1 Features
1.2 Reference
[1] SIM900 AT Commands Set
SIM900_NTP AT Command Manual_V1.00 9/22/2013
3
SIM900 NTP AT Command Manual
2 AT commands
2.1 AT+CNTP
AT+CNTP Set NTP Parameters and Get Network Time
Test Command
AT+CNTP=?
Read Command
AT+CNTP?
Write Command
AT+CNTP=<UR L>[,<time zone>][,<cid>][,< mode>]
Response
OK
Response
+CNTP: “<URL>”,<time zone>,<cid>,<mode>
OK
Parameter See Write Command
Response
OK
If error is related to ME functionality:
+CME ERROR: <err>
Parameter <URL> A string parameter (string should be included in quotation marks) which indicates the NTP Server address. <time zone> (-12-12) A numeric parameter which indicates the network time zone, default value is 8
<cid> Bearer profile identifier refer to AT+SAPBR <mode> 0 synchronize the modem with network time 1 report network time 2 report network time and synchronize the modem
Execution Command
AT+CNTP
Response
OK
+CNTP: <result>[,<time>]
Parameter <result> A numeric parameter which indicates the operation result:
1 Success 61 Net error 62 Dns error 63 Connect error
SIM900_NTP AT Command Manual_V1.00 9/22/2013
4
SIM900 NTP AT Command Manual
64 Timeout 65 Server error 66 Operation not allow
<time> String type(string should be included in quotation marks) value; format is "yy/MM/dd,hh:mm:ss", where characters indicate year (two last digits),month, day, hour, minutes, seconds .E.g. 6th of May 2010, 00:01:52 equals to "10/05/06,00:01:52"
Reference
Note
SIM900_NTP AT Command Manual_V1.00 9/22/2013
5
SIM900 NTP AT Command Manual
3 Examples
SIM900 NTP module provides Network Time solution. The following is the examples for
application.
Activate bearer profile
3.1
AT+SAPBR=3,1,"Contype","GPRS" //Set bearer parameter
OK
AT+SAPBR=3,1,"APN","CMNET"
OK
AT+SAPBR =1,1 //
OK
AT+SAPBR=2,1 +SAPBR: 1,1,"10.89.193.1" OK
Activate bearer context
3.2 Set NTP parameters and Get the network time
AT+CNTP="pool.ntp.org ",8,1,2
OK
AT+CNTP
+CNTP: 1,"13/04/18,14:38:30"
OK
3.3 Deactivate bearer profile
AT+SAPBR=0,1 // Deactivate bearer context
OK
SIM900_NTP AT Command Manual_V1.00 9/22/2013
6
SIM900 NTP AT Command Manual
Contact us:
Shanghai SIMCom wireless solutions Ltd.
Address: Building A, SIM Technology Building, No. 633 Jinzhong Road, Shanghai, P. R. China 200335 Tel: +86 21 3252 3300 Fax: +86 21 3252 3020 URL: www.sim.com/wm
SIM900_NTP AT Command Manual_V1.00 9/22/2013
7
Loading...