Pages: [1]   Go Down
Author Topic: AT+QNITZ=1  (Read 6463 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The  "AT+QNITZ=1" does not work.

I want to synchronize the time with the Network time.

I have to do anything special?
Is another way to do that?
Logged

Leeds, England
Offline Offline
God Member
*****
Karma: 14
Posts: 587
Quick, chuck it in the bin before the boss finds out...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What do you mean 'does not work'?

Do you get an error message when sending the command?

Does your GSM Network support this function?
Logged

Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, network supports.

I receive a positive feedback from the serial port.

The code:

     Serial.println(modemAccess.writeModemCommand("AT+QNITZ=1",1000));
    delay(1000);
    Serial.println(modemAccess.writeModemCommand("AT+QNITZ?",1000));
    delay(1000);
    Serial.println(modemAccess.writeModemCommand("AT+CCLK?",1000));



What i receive:
     
AT+QNITZ?

+QNITZ: 1

OK

+CFUN: 1

+CPIN: READY

AT+CCLK?

+CCLK: "04/01/01,00:00:58+00"

OK

And that is not the correct time.

Thank you.
Logged

Leeds, England
Offline Offline
God Member
*****
Karma: 14
Posts: 587
Quick, chuck it in the bin before the boss finds out...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does your GSM Network provider support this feature?
Logged

Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes it does. I work on my GSM Network provider.

And i already try a different network card and it does not work also.

P.s. Just to confirm, to check if the network provider support this, on my handset I allow the option "get time from the network"and that works fine.

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

With this:

    modemAccess.writeModemCommand("AT+QIFGCNT=0",1000);
    delay(1000);
    Serial.println(modemAccess.writeModemCommand("AT+QICSGP=1, 'internet-iza'",1000));
    delay(1000);
    modemAccess.writeModemCommand("AT+QGSMLOC=2",1000);
    delay(1000);
    Serial.println(modemAccess.writeModemCommand("AT+CCLK?",1000));


it is working, but not at my local time, is 2 hours less.
Can help me why?

How i use this the comand: . AT +QLOCC?
Logged

Madrid (Spain)
Offline Offline
Full Member
***
Karma: 0
Posts: 135
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It's possible time was in UTC
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's possible time was in UTC

Yes, that is correct, the time is in UTC, how can i change it to NL time?
Set timezone on arduino? how can i do that?
Logged

Madrid (Spain)
Offline Offline
Full Member
***
Karma: 0
Posts: 135
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You could make an adapter to a similar library like this: http://playground.arduino.cc/Code/Time
(This library access to a time server to update time).
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

is that complicated to add only 2hours to the clock? smiley-money
Logged

Madrid (Spain)
Offline Offline
Full Member
***
Karma: 0
Posts: 135
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

May be. Arduino hasn't time management. You have to do it manually.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And the only way is like you told me before?

I can not add 2 to the code somewhere? at any command.

because the time is presented "...+00" and I want "...+02"

 
Logged

Pages: [1]   Go Up
Jump to: