Obtain Time From GSM netwok using SIM900

Instead of using a Realtime Clock if the Project is already using a SIM 900 module then you can obtain correct Date and Time from the NTP Server GSM Network using the following commands.

AT

OK If your response contains this, This string should tell you all is well

AT+CMGF=1

OK If your response contains this, This string should tell you all is well(Set SMS Text Mode )

AT+CENG=3

OK If your response contains this, This string should tell you all is well(command is used to turn on the engineering mode to get detailed network information)

AT+CCLK?

+CCLK: “16/01/12,07:33:42+00”
If the response is OK then you will get date and time in above format.
Date – YY/MM/DD format

 

SIM 900 Network Time

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s