페이지 선택
Generic selectors
Exact matches only
Search in title
Search in content
Search in pages
AT Commands for  NTP function

 

Command Description
AT+CNTPCID Set GPRS bearer profile’s ID
AT+CNTP Synchronize network time

 

 

 

 

AT+CNTPCID      Set GPRS Bearer Profile’s ID

 

T) AT+CNTPCID=?

+ CNTPCID: (range of supporded <cid>s)

 

OK

Parameters

See Write Command

R) AT+CNTPCID?

+ CNTPCID: <cid>

 

OK

Parameters

See Write Command

W) AT+CNTPCID=<cid>

OK

If error is related to ME functionality:

ERROR

Parameters

<cid>       Bearer profile identifier, refer to AT+SAPBR

 

 

 

 

AT+CNTP      Synchronize Network Time

 

T) AT+CNTP=?

+CNTP: (length of <ntp server>),(range of <time zone>),(range of <cid>),

(range of <mode>)

 

OK

Parameter

See Write Command

R) AT+CNTP?

+ CNTP: <ntp sever>,<time zone>,<cid>,<mode>

 

OK

Parameter

See Write Command

W) AT+CNTP=<ntpserver>[,<time zone>][,<cid>][,<mode>]

OK

Parameter

<ntp server>     NTP server’s url

<time zone>        

Local time zone, the range is (-47 to 48), in fact, time zone range (-12 to 12), but taking into

account that some countries and regions will use half time zone, or even fourth time zone, so

the entire extended four time zones X, so that when the time zone of the input integers are

used, without the need for decimal.

Time zone in front of the West if it is a negative number indicates the time zone.

<cid>     Bearer profile identifier, refer to AT+SAPBR

<mode>     print network time on uart and set to local time

0     Just set network to localtime

1     Just output network time to AT port

2     Set network to localtime and output network time to AT port

E) AT+CNTP

OK

 

+CNTP: <code>[,<time>]

Parameter

<code>         

1     Network time synchronization is successful

61     Network Error

62     DNS resolution error

63     Connection Erro

64     Service response error

65     Service Response Timeout

<time>     Network time

Reference

Note

After successful synchronization time, you can use AT+CCLK to query local time.

 

 

 

 

Adsense

EMW3070

Viewed Page List