CN103051438A - Time synchronization method and time synchronization device - Google Patents
Time synchronization method and time synchronization device Download PDFInfo
- Publication number
- CN103051438A CN103051438A CN2011103059982A CN201110305998A CN103051438A CN 103051438 A CN103051438 A CN 103051438A CN 2011103059982 A CN2011103059982 A CN 2011103059982A CN 201110305998 A CN201110305998 A CN 201110305998A CN 103051438 A CN103051438 A CN 103051438A
- Authority
- CN
- China
- Prior art keywords
- time
- server
- palmtop
- standard
- synchronism apparatus
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The embodiment of the invention provides a time synchronization method and a time synchronization device. The time synchronization method comprises the following steps of actively acquiring a standard time from a time server when a palm computer is successfully connected with the network of a time server; and synchronizing the local time of the palm computer with the standard time. According to the time synchronization method and the time synchronization device, in the situation that the network is normally connected, the standard time can be obtained from the time server by the time synchronization device in a built-in palm computer, so that synchronous setting on the local time of the palm computer with the standard time is finished. According to a time synchronization process, manual participation of a user is not needed, the accuracy of the local time of the palm computer can be greatly improved, and convenience is provided for the user.
Description
Technical field
The present invention relates to a kind of communication technical field, relate in particular to a kind of method for synchronizing time and time synchronism apparatus.
Background technology
Present personal digital assistant (Personal Digital Assistant, PDA) also is that palmtop PC generally is equipped with WINCE system 5.0 and above system, and Windows Mobile6.0 and above system perhaps are housed, and all with the Wi-Fi function.In the prior art, for the time of PDA, be to realize by synchronization means wherein, it need artificial operation realize the time synchronously, can not the automatic synchronization time, this is great inconvenience for the user has brought.
Summary of the invention
The invention provides a kind of time synchronism apparatus and method for synchronizing time, need not user's manual operation, can automatically realize the time synchronized function.
A kind of method for synchronizing time provided by the invention comprises:
When detecting the network connection success between palmtop PC and the time server, initiatively obtain the standard time from time server;
Local zone time and the described standard time of palmtop PC are carried out synchronously.
Correspondingly, the present invention also provides a kind of time synchronism apparatus, comprising:
The network detection module, whether successful for detection of the network connection between palmtop PC and the time server;
Time-obtaining module is used for initiatively obtaining the standard time from time server when described network detection module detects the network connection success;
The time synchronized module, being used for the standard time that local zone time and described time-obtaining module with palmtop PC get access to carries out synchronously.
Implement the present invention, in the normal situation of network connection, the time synchronism apparatus that is built in the palmtop PC can obtain the standard time from time server, arranges synchronously with local zone time and the standard time of finishing palmtop PC.The process of this time synchronized need not the user and manually participates in, and the very big accuracy of the local zone time of the raising palmtop PC of degree is for the user provides convenience.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of a kind of method for synchronizing time embodiment one provided by the invention;
Fig. 2 is the schematic flow sheet of a kind of method for synchronizing time embodiment two provided by the invention;
Fig. 3 is the composition schematic diagram of a kind of time synchronism apparatus embodiment one provided by the invention;
Fig. 4 is the composition schematic diagram of a kind of time synchronism apparatus embodiment two provided by the invention.
Embodiment
The embodiment of the invention provides a kind of method for synchronizing time and time synchronism apparatus, can realize the automatic synchronization of time.
At first explanation is, time synchronism apparatus of the present invention and method for synchronizing time are applicable to be equipped with WINCE system 5.0 and above system, the palmtop PC PDA of Windows Mobile6.0 and above system perhaps is housed, and this PDA has network connecting function.Particularly, this network connecting function can be to have the Wi-Fi function.
Referring to Fig. 1, be the schematic flow sheet of a kind of method for synchronizing time embodiment one provided by the invention.
The method that present embodiment provides comprises:
Step 100 when the network connection between palmtop PC and time server is successful, is initiatively obtained the standard time from time server;
Step 101 is carried out local zone time and the described standard time of palmtop PC synchronously.
A method for synchronizing time that provides is provided, and in the normal situation of network connection, the time synchronism apparatus that is built in the palmtop PC can obtain the standard time from time server, arranges synchronously with local zone time and the standard time of finishing palmtop PC.The process of this time synchronized need not the user and manually participates in, and the very big accuracy of the local zone time of the raising palmtop PC of degree is for the user provides convenience.
Referring to Fig. 2, be the schematic flow sheet of method for synchronizing time embodiment two provided by the invention.
The method that present embodiment provides comprises:
Step 204 arranges the local zone time of described palmtop PC with the described standard time, and the local zone time that also is about to palmtop PC is the described standard time synchronously;
Two method for synchronizing time that provide are provided, owing to be provided with a plurality of time servers, therefore can be guaranteed the validity of time synchronized, avoid breaking down or network connection unsuccessfully causes carrying out time synchronized because of server sometime; In addition, this time server also can by User Defined, can give the user with more selection.The embodiment of the invention can realize having more validity, for the user gives security on the synchronous basis of automatic time.
Below will introduce the time synchronism apparatus that the embodiment of the invention provides, time synchronism apparatus of the present invention is built in WINCE system 5.0 and the above system of being equipped with, the palmtop PC PDA of Windows Mobile6.0 and above system perhaps is housed, and this PDA has network connecting function.Particularly, this network connecting function can be to have the Wi-Fi function.
Referring to Fig. 3, be the composition schematic diagram of a kind of time synchronism apparatus embodiment one provided by the invention.
The time synchronism apparatus that present embodiment provides comprises:
Time-obtaining module 11 is used for initiatively obtaining the standard time from time server when described network detection module 10 detects the network connection success;
Time synchronized module 12, being used for the standard time that local zone time and described time-obtaining module 11 with palmtop PC get access to carries out synchronously.
A time synchronism apparatus that provides is provided, and in the normal situation of network connection, the time synchronism apparatus that is built in the palmtop PC can obtain the standard time from time server, arranges synchronously with local zone time and the standard time of finishing palmtop PC.The process of this time synchronized need not the user and manually participates in, and the very big accuracy of the local zone time of the raising palmtop PC of degree is for the user provides convenience.
Referring to Fig. 4, be the composition schematic diagram of time synchronism apparatus embodiment two provided by the invention.
The method that present embodiment provides comprises:
Time-obtaining module 11 is used for initiatively obtaining the standard time from time server when described network detection module 10 detects the network connection success;
Particularly, described time-obtaining module 11 is used for accessing a plurality of time servers successively, until successfully get access to the standard time.
Described time-obtaining module 11 is specifically obtained the standard time from which time server is arranged in the registry information of described handheld computer system by the user.
Described time-obtaining module 11 can also with the timing of described timer 14 settings, initiatively be obtained the standard time from time server.
Here the certain hour that arranges on the timer 14 can be 10s, and perhaps 5s can be by User Defined.
Time synchronized module 12, being used for the standard time that local zone time and described time-obtaining module 11 with palmtop PC get access to carries out synchronously.
Two time synchronism apparatus that provide are provided, owing to be provided with a plurality of time servers, therefore can be guaranteed the validity of time synchronized, avoid breaking down or network connection unsuccessfully causes carrying out time synchronized because of server sometime; In addition, this time server can give the user with more selection by User Defined.The embodiment of the invention can realize having more validity, for the user gives security on the synchronous basis of automatic time.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform.Based on such understanding, technical scheme of the present invention is to can embodying with the form of software product in whole or in part that background technology contributes, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Above disclosed is a kind of preferred embodiment of the present invention only, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.
Claims (10)
1. a method for synchronizing time is characterized in that, comprising:
When the network connection between palmtop PC and time server is successful, initiatively obtain the standard time from time server;
Local zone time and the described standard time of palmtop PC are carried out synchronously.
2. method for synchronizing time as claimed in claim 1 is characterized in that, described time server is a plurality of, and described active is obtained the standard time from time server, comprising:
Access successively a plurality of time servers, until successfully get access to the standard time.
3. method for synchronizing time as claimed in claim 1 or 2 is characterized in that, described time server is arranged in registry information by the user.
4. method for synchronizing time as claimed in claim 3 is characterized in that, described active is obtained the standard time from time server, comprising:
With predetermined timing, initiatively obtain the standard time from time server.
5. method for synchronizing time as claimed in claim 4 is characterized in that, described active also comprises before obtaining the standard time from time server:
Whether monitor the time synchronization information that the user arranges in the described palmtop PC registration table revises;
When described time synchronization information was modified, whether the network connection that detects between described palmtop PC and the described time server was successful.
6. a time synchronism apparatus is characterized in that, comprising:
The network detection module, whether successful for detection of the network connection between palmtop PC and the time server;
Time-obtaining module is used for initiatively obtaining the standard time from time server when described network detection module detects the network connection success;
The time synchronized module, being used for the standard time that local zone time and described time-obtaining module with palmtop PC get access to carries out synchronously.
7. time synchronism apparatus as claimed in claim 6 is characterized in that, described time-obtaining module specifically is used for accessing a plurality of time servers successively, until successfully get access to the standard time.
8. such as claim 6 or 7 described time synchronism apparatus, it is characterized in that described time-obtaining module is specifically obtained the standard time to be arranged in the registry information of described handheld computer system by the user from which time server.
9. time synchronism apparatus as claimed in claim 8 is characterized in that, described time synchronism apparatus also comprises:
Timer is used for arranging a timing;
Then described time-obtaining module is initiatively obtained the standard time from time server with the timing of described set timer.
10. time synchronism apparatus as claimed in claim 9 is characterized in that, described time synchronism apparatus also comprises:
Whether the information monitoring module is revised for the time synchronization information of monitoring described palmtop PC registration table user setting; When described time synchronization information was modified, whether the network connection of notifying described network detection module to detect between described palmtop PC and the described time server was successful.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103059982A CN103051438A (en) | 2011-10-11 | 2011-10-11 | Time synchronization method and time synchronization device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103059982A CN103051438A (en) | 2011-10-11 | 2011-10-11 | Time synchronization method and time synchronization device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103051438A true CN103051438A (en) | 2013-04-17 |
Family
ID=48063947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011103059982A Pending CN103051438A (en) | 2011-10-11 | 2011-10-11 | Time synchronization method and time synchronization device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103051438A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973804A (en) * | 2014-05-19 | 2014-08-06 | 广东欧珀移动通信有限公司 | Method and device for setting terminal time |
CN104239069A (en) * | 2014-10-10 | 2014-12-24 | 南车株洲电力机车有限公司 | Engineering van time synchronization method and system |
CN110572229A (en) * | 2019-09-09 | 2019-12-13 | Oppo广东移动通信有限公司 | Time calibration method, device, terminal and storage medium |
CN114360086A (en) * | 2021-12-09 | 2022-04-15 | 北京汽车研究总院有限公司 | Data processing method, data processing device, in-vehicle device, and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070268938A1 (en) * | 2006-05-19 | 2007-11-22 | Dowd Gregory Louis | Network time protocol precision timestamping service |
-
2011
- 2011-10-11 CN CN2011103059982A patent/CN103051438A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070268938A1 (en) * | 2006-05-19 | 2007-11-22 | Dowd Gregory Louis | Network time protocol precision timestamping service |
Non-Patent Citations (2)
Title |
---|
姚光强,陈立平: "SNTP时间同步技术在农产品质量安全追溯系统中的应用", 《农业工程学报》 * |
陈敏: "基于NTP协议的网络时间同步系统的研究与实现", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973804A (en) * | 2014-05-19 | 2014-08-06 | 广东欧珀移动通信有限公司 | Method and device for setting terminal time |
CN103973804B (en) * | 2014-05-19 | 2017-05-03 | 广东欧珀移动通信有限公司 | Method and device for setting terminal time |
CN104239069A (en) * | 2014-10-10 | 2014-12-24 | 南车株洲电力机车有限公司 | Engineering van time synchronization method and system |
CN110572229A (en) * | 2019-09-09 | 2019-12-13 | Oppo广东移动通信有限公司 | Time calibration method, device, terminal and storage medium |
CN114360086A (en) * | 2021-12-09 | 2022-04-15 | 北京汽车研究总院有限公司 | Data processing method, data processing device, in-vehicle device, and storage medium |
CN114360086B (en) * | 2021-12-09 | 2024-04-26 | 北京汽车研究总院有限公司 | Data processing method, data processing device, vehicle device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102567799B (en) | For the method and system of the vncsion history in document | |
EP3249568B1 (en) | Method and apparatus for displaying application and picture, and electronic device | |
EP2787423A1 (en) | Standby operation control method and device | |
RU2014139981A (en) | Method and device for data synchronization | |
CN103051438A (en) | Time synchronization method and time synchronization device | |
WO2016127687A1 (en) | Media file playback progress synchronization method, device and system | |
CN106558305B (en) | Voice data processing method and device | |
CN106797561A (en) | A kind of identity identifying method and wearable device | |
CN110599659A (en) | Access control permission synchronization method and device | |
MY159635A (en) | System,method,and program for generating screen | |
CN103309713A (en) | System upgrading method, device and equipment | |
CN104063353A (en) | Information synchronization method for master device and slave device | |
CN110691101A (en) | Configuration method and device of authentication-free list of dumb terminal | |
CN102830943B (en) | Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform | |
CN103516856A (en) | Method and apparatus for information combination | |
CN104796867B (en) | A kind of method and terminal that active logs in | |
CN105101259B (en) | WIFI (Wireless Fidelity) identification method and intelligent terminal | |
CN102929676B (en) | Based on the quick adaptation method of Android operating system terminal device | |
EP2717648B1 (en) | Method, device and mobile terminal for acquiring time | |
CN110310352B (en) | Role action editing method and device, computing equipment and storage medium | |
CN106454880B (en) | The processing method and processing device of signaling tracing task | |
WO2014059001A1 (en) | Location based social networking system and method | |
CN103002436A (en) | Upgrade method and device of terminal device with android platform | |
US20150052238A1 (en) | Device Compatibility Management | |
CN104506640A (en) | System and method for monitoring mobile equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130417 |