In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to get NTP time in SIM868? for this question, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
What is NTP?
NTP is the Network time Protocol (Network Time Protocol), which is used to synchronize the time of various devices (such as PC, mobile phones) in the network.
In the computer world, time is very important. for example, for scientific research activities such as rocket launch, there is a very high demand for the unity and accuracy of time, according to the time of A computer or the time of B computer? NTP is used to solve this problem. NTP (Network Time Protocol, Network time Protocol) is a protocol used to synchronize the time of various computers in the network. Its purpose is to synchronize the computer clock to UTC UTC. Its accuracy can reach 0.1ms in the local area network and 1-50ms in most places on the Internet.
It enables computers to synchronize their servers or clock sources (such as quartz clock, GPS, etc.). It can provide high-precision time correction, and can use encryption confirmation to prevent virus protocol attacks.
Introduction in the SIM868 manual
Many NTP server IP addresses are no longer available. Here are some recommended ones.
210.72.145.44
Has failed.
202.120.2.101
Has failed.
Ntp1.aliyun.com
120.25.115.20
Aliyun, Shenzhen City, Guangdong Province
Available
Ntp2.aliyun.com
Ntp3.aliyun.com
Ntp4.aliyun.com
Ntp5.aliyun.com
Ntp6.aliyun.com
Ntp7.aliyun.com
203.107.6.88
Aliyun, Shenzhen City, Guangdong Province
Available
Cn.ntp.org.cn
223.113.97.99
Yangzhou Mobile, Jiangsu Province
Available, official website: NTP time service fast domain name service
More NTP available domain names can be found in the "IP Pool" on this official website.
133.100.11.8
Japan
Available
The first part of AT instruction flow, preparation work
AT
OK
Check to see if you can communicate properly
AT+CSQ
+ CSQ: 23Co0
OK
Check signal quality
It is easy to make mistakes when the signal quality is poor.
AT+CREG?
+ CREG: 0Pol 1
OK
Check whether GSM is registered successfully
AT+CGREG?
+ CGREG: 0Pol 1
OK
Check whether GPRS is registered successfully
AT+CGATT?
+ CGATT: 1
OK
View GPRS attachment status
The second part, synchronization command
AT+SAPBR=3,1, "CONTYPE", "GPRS"
OK
Configure host scenario 1
AT+SAPBR=3,1, "APN", "3GNET"
OK
Configure host scenario 1
AT+SAPBR=1,1
OK
Activate a GPRS context
AT+SAPBR=2,1
+ SAPBR: 1Jing 1, "10.64.228.99"
OK
Get load-bearing layer parameters
Make sure that the bearing layer is normal.
AT+CNTPCID=1
OK
Set the CID used by CNTP
AT+CNTP= "203.107.6.88", 8
OK
Set the NTP server and local time zone
NTP server IP address: 203.107.6.88
Local time zone: 8
AT+CNTP?
+ CNTP: 202.120.2.101
OK
Get NTP server address and time zone settings
This instruction can be omitted.
AT+CNTP
OK
+ CNTP: 1
Synchronize network time
Return
+ CNTP: 1
Indicates that the time has been synchronized successfully
AT+CCLK?
+ CCLK: "18Compact 06Compact 28recover12hand 09purl 2808"
OK
Get local time
Check to see if the time is synchronized successfully
AT+SAPBR=0,1OK closes the GPRS context so much for the answer to the question about how to obtain NTP time in SIM868. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.