Dear All
I have a wavecom Fasttrack superme 20 modem evaluation kit with me.
I want to get the date/time information from the network service provider using GSM.
Though we can achieve the same by connecting to internet using GPRS and then use ‘ntpclient’ to get this done,i have a special requirement where i need to do it using GSM.
So i searched the AT commands document and found that there is a Wavecom proprietary command AT+WLOC.
For this command to work,first we need to enable this feature and restart the modem which i did first.
Then i issued this command and i got the output. I am in India and using a Airtel SIM card.
Here is the response for it.
at+wloc=1
+WLOC: 04f404,1391,7758,bb40012b541401d85bc3c779d1440000,00100011001200140016001
700180019001a001b001c001d001e001f,01, 08101000800422
OK
The last 7 bytes of the output i.e “08101000800422” has the data,time,month,year and time-zone information.
The AT command document says that this information is in the SIM toolkit format.
After searching in Google,I found that this date/tine information is in the Service-Centre-Time-Stamp-(SCTS) format which is explained in the GSM 04.08( Version 6.10 Release 1997) document.
All that i understood(if i am right) is that the last byte ‘22’ stands for the timezone information expressed as quartets of an hour,between the local time and GMT.For my case i am at GMT+5.30 timezone,so that comes to 22.
The rest of the information seemed to give wrong data and time.Is there anything that i am doing wrong.
Please excuse me if this is the wrong place to post this question.
Any help would be of great use.
Thanks.