Go Down

Topic: AT+QNITZ=1 (Read 7298 times) previous topic - next topic

Placido

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?

dannable

What do you mean 'does not work'?

Do you get an error message when sending the command?

Does your GSM Network support this function?
Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Placido

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.

dannable

Does your GSM Network provider support this feature?
Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Placido

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.


Placido

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?

davidgoth

It's possible time was in UTC

Placido


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?

davidgoth

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).

Placido

is that complicated to add only 2hours to the clock? $)

davidgoth

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

Placido

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"


RudiAhlers

Just add "+2" to your code....

Look at the Arduino Playground to see how to add strings together.

Go Up