B4R Question Read cell tower date & time

Shay

Well-Known Member
Licensed User
Longtime User
Hi
Using the GSM/GPRS module (I have D6 module)
How can I read the date and time from the cell tower?
 

Shay

Well-Known Member
Licensed User
Longtime User
Yes and it is working
I will try it (how do I run manual commands - is it described in the above example?)
b.t.w where do you get the commands, since I need also to get the module IMEI number (or some other unique number for licensing)
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
I tried the following, and I am getting "false"
B4X:
Public Sub CheckTime As String
    Return SendCommand("AT+CCLK?",False)
End Sub
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
I added it into timer after 5 sec, and I am getting this: (I removed the log and enabled SMSevents)
(current time and date is 22/11/2017 23:16)

see also the gibrish I am getting sometimes, why?

Reading | ################################################
********************* PROGRAM STARTING ****************
AppStart
****************
AT+CNMI=2,1
OK
****************
AV+CCLK?
+CCLK: "12/06/01,10:10:08+0"
OK
****************
AT)�CLK?
)�CLK: "12/07/01,10:10:18+0"
OK
****************
AT)�CLK?
)�CLK: "12/07/01,10:10:2<+0"
OK

****************
AT)�CLK?
)�CLK: "12/07/01,10:10:38+0"
OK

****************
AV+CCLK?
+CCLK: "12/06/01,10:10:68+0"
OK
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
Is there other command?
Do you know which network in Israel support it?
What about the ��� I see?
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
After lot's of digging
the "�" is baudrate issue - reduced to 9600 and now it is ok

Regarding the clock - the CCLK command is not supported yet (or ever I guess) in this module
there is other command but it can work only 1 time (why??)
I am opening ticket with the vendor
 
Upvote 0
Top