CN103428844A - Method for achieving mobile phone time synchronization of mobile phone terminal - Google Patents

Method for achieving mobile phone time synchronization of mobile phone terminal Download PDF

Info

Publication number
CN103428844A
CN103428844A CN2012101574220A CN201210157422A CN103428844A CN 103428844 A CN103428844 A CN 103428844A CN 2012101574220 A CN2012101574220 A CN 2012101574220A CN 201210157422 A CN201210157422 A CN 201210157422A CN 103428844 A CN103428844 A CN 103428844A
Authority
CN
China
Prior art keywords
time
mobile phone
server
current system
terminal
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
Application number
CN2012101574220A
Other languages
Chinese (zh)
Inventor
陈飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN2012101574220A priority Critical patent/CN103428844A/en
Publication of CN103428844A publication Critical patent/CN103428844A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method for achieving mobile phone time synchronization of a mobile phone terminal. The method includes the following steps that a time zone where a mobile phone is located is set on a human-computer interaction interface, and the time zone can be stored as a default time zone; the time synchronization is selected on the human-computer interaction interface of the mobile phone terminal, a network request is sent to a time synchronization server, a plurality of server link addresses are set, and one time synchronization address is randomly obtained from the server link addresses; milliseconds started from the time that a server obtains Greenwich mean time to the present are calculated, and the milliseconds are fed back to a client side of the mobile phone; the terminal obtains second current system time according to data returned by the server, a half of the difference between the second current system time and first current system time is added to the calculated time to serve as system time of the mobile phone; the terminal prompts the set system time to the user and gives a prompt that a time error is the difference between the second current system time and first current system time. The user can use easier operation, and rapidly and conveniently synchronize the mobile phone time anytime and anywhere.

Description

The implementation method of mobile phone terminal mobile phone time synchronized
Technical field
The present invention relates to a kind of mobile communication technology, particularly relate to a kind of method that mobile phone terminal is realized the mobile phone time synchronized.
Background technology
In recent years, along with scientific and technological level and expanding economy, mobile phone and universal, due to the battery of mobile phone outage, change battery, and often go to other time zones, and at this moment the mobile phone time is set just becomes people and often need the thing of doing.At present, people are changing the plug battery or are going to other time zones to need manually to set the time of mobile phone, this need to have correct time with reference to and and impracticable: mobile phone time trouble the first, manually is set, needs manually input numeral, the time error usually arranged is larger; The mobile phone time the second, manually is set relatively limits to, and needs free source to make reference, be not whenever and wherever possible can.Three, due to user that the mobile phone time reduces the greatly Experience Degree for this portable equipment of mobile phone being set frequently, affect user's use.Three, the present invention is not limited to cell phone system, and hardware and platform can easily realized time synchronized on mobile phone arbitrarily;
Summary of the invention
The technical problem to be solved in the present invention is in order to overcome the defect of prior art, and a kind of implementation method of time synchronized of mobile phone terminal is provided, and makes the user can use more easily operation, can be whenever and wherever possible, and synchronous mobile phone time easily rapidly.
The present invention solves above-mentioned technical problem by following technical proposals: a kind of implementation method of mobile phone terminal mobile phone time synchronized, it is characterized in that, and it comprises the following steps:
S1, the time zone at mobile phone place can be set at human-computer interaction interface, and can save as the acquiescence time zone, no person can obtain the time zone of mobile phone acquiescence;
On S2, mobile phone terminal man-machine interface, select time is synchronous, send network request to the time synchronization server, be provided with a plurality of server link addresses, obtain at random one of them time synchronized address, minimizing causes always failure of time synchronized because of server problem, and the first current system time of obtaining preserves;
S3, server start timing millisecond number till now while obtaining Greenwich Mean Time, feed back to cell-phone customer terminal;
The data that S4, terminal are returned according to server, and revise the poor millisecond number in time zone, calculate the date of time, Hour Minute Second;
S5, obtained for the second current system time, add half of the second current system time and the first current system time phase difference in the time calculated, be set to the system time of mobile phone;
System time after S6, terminal handle arrange is prompted to the user and the prompt time error is the second current system time and the first current system time phase difference.
Positive progressive effect of the present invention is: it is directly just correct time by the system time setting of mobile phone that the present invention clicks time synchronized for the user, has facilitated operation.Simple and practical.
The accompanying drawing explanation
Fig. 1 is the schematic flow sheet of one embodiment of the invention;
Fig. 2 is the schematic diagram of accurate Calculation time in the present invention.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail.
As shown in Figure 1, at human-computer interaction interface, the user selects to set time zone, just can be synchronized to the mobile phone time in corresponding time zone.The user selects the synchronous mobile phone time, client can obtain the link address of time server and at random to server transmitting time synchronization request, server is received after request to obtain and is started timing millisecond number till now in 0 o'clock on the 1st January of 1970 Greenwich Mean Time, feeds back to cell-phone customer terminal.Calculate the current time at cell-phone customer terminal, and come the correction time to reduce the error caused due to network delay by half of networking request time.In the normal situation of network, error is at 1 second, in the bad situation of network, may have the time error more than 10 seconds, and we can give user's prompt time error, and the user can select subsynchronous again.
Mobile phone terminal of the present invention realizes that the method for time synchronized comprises the following steps particularly:
S1, the time zone at mobile phone place can be set at human-computer interaction interface, and can save as the acquiescence time zone, no person can obtain the time zone of mobile phone acquiescence; On S2, mobile phone terminal man-machine interface, select time is synchronous, send network request to the time synchronization server, be provided with a plurality of server link addresses, obtain at random one of them time synchronized address, minimizing causes always failure of time synchronized because of server problem, and obtains the first current system time t1 and preserve; S3, server are obtained and are started timing millisecond number till now in 0 o'clock on the 1st January of 1970 Greenwich Mean Time, feed back to cell-phone customer terminal; The data that S4, terminal are returned according to server, and revise the poor millisecond number in time zone, calculate the date of time, Hour Minute Second; S5, obtain the second current system time t2, add half of t2-t1 in the time calculated, be set to the system time of mobile phone; System time after S6, terminal handle arrange is prompted to the user and the prompt time error is the second current system time and the first current system time phase difference (t2-t1 second).
Wherein, further comprising the steps of in step S1: S11, user are while setting time zone, obtain the time zone of mobile phone acquiescence.After S12, user set the time zone of mobile phone, can save as the acquiescence time zone, according to the time zone of user's demand, set the cell phone system time, facilitate the user owing to going to other zones to set the mobile phone time.
Wherein, further comprising the steps of in step S4: S41, be provided with six time synchronized domain names altogether, mobile phone can be given tacit consent to and connects one of them server, reduces because server failure causes always failure of time synchronized; S42, return to the time that Greenwich is convenient to calculate different time zone; S43, directly to return to millisecond number comparatively accurate, and convenient when being calculated time zone and network error, return data is 32 bit data, consumption network flow not substantially, and transmission speed is fast;
Wherein, further comprising the steps of in step S5: in S51, this program, round network request process time used 1/2nd as distance host the communication time to client, with the corrective networks transmission delay; S52, every two use HTTP modes are obtained network time, and the accuracy of this mode acquisition time is equivalent to network condition much relations.General, under synchronous mode, network state is good, and HTTP mode error is about 1 second, and CMWAP is about 2 seconds.In the poor situation of network condition, can cause 10 seconds and above error.So lock in time under the CMNET/WLAN network as far as possible please; S53, be revised set of time the mobile phone time, relatively accurate.
Although more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, under the prerequisite that does not deviate from principle of the present invention and essence, can make various changes or modifications to these execution modes.Therefore, protection scope of the present invention is limited by appended claims.

Claims (4)

1. the implementation method of a mobile phone terminal mobile phone time synchronized, is characterized in that, it comprises the following steps:
S1, the time zone at mobile phone place can be set at human-computer interaction interface, and can save as the acquiescence time zone, no person can obtain the time zone of mobile phone acquiescence;
On S2, mobile phone terminal man-machine interface, select time is synchronous, send network request to the time synchronization server, be provided with a plurality of server link addresses, obtain at random one of them time synchronized address, minimizing causes always failure of time synchronized because of server problem, and the first current system time of obtaining preserves;
S3, server start timing millisecond number till now while obtaining Greenwich Mean Time, feed back to cell-phone customer terminal;
The data that S4, terminal are returned according to server, and revise the poor millisecond number in time zone, calculate the date of time, Hour Minute Second;
S5, obtained for the second current system time, add half of the second current system time and the first current system time phase difference in the time calculated, be set to the system time of mobile phone;
System time after S6, terminal handle arrange is prompted to the user and the prompt time error is the second current system time and the first current system time phase difference.
2. the implementation method of mobile phone time synchronized as claimed in claim 1, is characterized in that,
S11, user can set time zone, facilitate the user that the time of different time zone is set.
After S12, user set the time zone of mobile phone, can save as the acquiescence time zone, next user just not be used in and has selected time zone.
3. the implementation method of mobile phone terminal mobile phone time synchronized as claimed in claim 1, is characterized in that, further comprising the steps of in described step S4:
S41, be provided with six time synchronized domain names altogether, mobile phone can be given tacit consent to and connects one of them server, reduces because server failure causes always failure of time synchronized;
S42, return to the time that Greenwich is convenient to calculate different time zone;
S43, directly to return to millisecond number comparatively accurate, and convenient when being calculated time zone and network error, return data is 32 bit data.
4. the implementation method of mobile phone terminal mobile phone time synchronized as claimed in claim 1, is characterized in that, further comprising the steps of in described step S5:
In S51, this program, round network request process time used 1/2nd as distance host the communication time to client, with the corrective networks transmission delay;
S52, use HTTP mode are obtained network time, and the accuracy of this mode acquisition time is equivalent to network condition much relations;
S53, it is revised set of time the mobile phone time.
CN2012101574220A 2012-05-17 2012-05-17 Method for achieving mobile phone time synchronization of mobile phone terminal Pending CN103428844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101574220A CN103428844A (en) 2012-05-17 2012-05-17 Method for achieving mobile phone time synchronization of mobile phone terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101574220A CN103428844A (en) 2012-05-17 2012-05-17 Method for achieving mobile phone time synchronization of mobile phone terminal

Publications (1)

Publication Number Publication Date
CN103428844A true CN103428844A (en) 2013-12-04

Family

ID=49652823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101574220A Pending CN103428844A (en) 2012-05-17 2012-05-17 Method for achieving mobile phone time synchronization of mobile phone terminal

Country Status (1)

Country Link
CN (1) CN103428844A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973804A (en) * 2014-05-19 2014-08-06 广东欧珀移动通信有限公司 Method and device for setting terminal time
CN106452648A (en) * 2014-06-26 2017-02-22 青岛海信移动通信技术股份有限公司 Time synchronization method and communication terminal
CN107071586A (en) * 2017-04-06 2017-08-18 深圳Tcl新技术有限公司 The system time establishing method and device of television terminal
CN110012171A (en) * 2019-04-10 2019-07-12 惠州Tcl移动通信有限公司 Time display method, device, storage medium and electronic equipment
CN112804565A (en) * 2019-11-14 2021-05-14 上海哔哩哔哩科技有限公司 Interactive video playing method, device, system, computer equipment and storage medium
CN113179145A (en) * 2021-04-26 2021-07-27 中国工商银行股份有限公司 Time synchronization method, device and system
WO2021155806A1 (en) * 2020-02-07 2021-08-12 维沃移动通信有限公司 Reference time information acquisition method, information send/receive method, and related device
CN113268489A (en) * 2021-04-23 2021-08-17 天地(常州)自动化股份有限公司 Cumulant synchronization method for host and display of mine vehicle protection device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118279A (en) * 2006-08-01 2008-02-06 环达电脑(上海)有限公司 Time autocorrection system and method for electronic device
CN101184299A (en) * 2007-12-04 2008-05-21 华为技术有限公司 Method and apparatus for implementing mobile phone time information renovation
CN101287004A (en) * 2008-05-29 2008-10-15 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, method and system for updating system time thereof
CN101409738A (en) * 2008-10-16 2009-04-15 深圳市金立通信设备有限公司 System and method for automatically checking mobile phone time
CN101848051A (en) * 2010-05-19 2010-09-29 中兴通讯股份有限公司 Method and device for performing clock synchronization between equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118279A (en) * 2006-08-01 2008-02-06 环达电脑(上海)有限公司 Time autocorrection system and method for electronic device
CN101184299A (en) * 2007-12-04 2008-05-21 华为技术有限公司 Method and apparatus for implementing mobile phone time information renovation
CN101287004A (en) * 2008-05-29 2008-10-15 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, method and system for updating system time thereof
CN101409738A (en) * 2008-10-16 2009-04-15 深圳市金立通信设备有限公司 System and method for automatically checking mobile phone time
CN101848051A (en) * 2010-05-19 2010-09-29 中兴通讯股份有限公司 Method and device for performing clock synchronization between equipment

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973804B (en) * 2014-05-19 2017-05-03 广东欧珀移动通信有限公司 Method and device for setting terminal time
CN103973804A (en) * 2014-05-19 2014-08-06 广东欧珀移动通信有限公司 Method and device for setting terminal time
CN106452648A (en) * 2014-06-26 2017-02-22 青岛海信移动通信技术股份有限公司 Time synchronization method and communication terminal
CN107071586B (en) * 2017-04-06 2020-04-24 深圳Tcl新技术有限公司 System time setting method and device of television terminal
CN107071586A (en) * 2017-04-06 2017-08-18 深圳Tcl新技术有限公司 The system time establishing method and device of television terminal
CN110012171B (en) * 2019-04-10 2021-05-07 惠州Tcl移动通信有限公司 Time display method and device, storage medium and electronic equipment
CN110012171A (en) * 2019-04-10 2019-07-12 惠州Tcl移动通信有限公司 Time display method, device, storage medium and electronic equipment
CN112804565A (en) * 2019-11-14 2021-05-14 上海哔哩哔哩科技有限公司 Interactive video playing method, device, system, computer equipment and storage medium
CN112804565B (en) * 2019-11-14 2023-08-11 上海哔哩哔哩科技有限公司 Interactive video playing method, device, system, computer equipment and storage medium
WO2021155806A1 (en) * 2020-02-07 2021-08-12 维沃移动通信有限公司 Reference time information acquisition method, information send/receive method, and related device
CN113260038A (en) * 2020-02-07 2021-08-13 维沃移动通信有限公司 Acquisition method of reference time information, information transceiving method and related equipment
CN113268489A (en) * 2021-04-23 2021-08-17 天地(常州)自动化股份有限公司 Cumulant synchronization method for host and display of mine vehicle protection device
CN113179145A (en) * 2021-04-26 2021-07-27 中国工商银行股份有限公司 Time synchronization method, device and system
CN113179145B (en) * 2021-04-26 2022-05-27 中国工商银行股份有限公司 Time synchronization method, device and system

Similar Documents

Publication Publication Date Title
CN103428844A (en) Method for achieving mobile phone time synchronization of mobile phone terminal
CN104601203B (en) A kind of low-power consumption bluetooth equipment dynamically adjusts the method and device of Connecting quantity
US9397965B2 (en) Conversational message service operating method for providing acknowledgement
EP2884718B1 (en) Method, device and system for processing instant messaging information and setting terminal priority
EP2854084A1 (en) Information processing method, server and logistics terminal
CN105025437B (en) A kind of localization method, apparatus and system
CN102045638B (en) Method and equipment for time synchronization
CN105337844A (en) Method and device for displaying message and electronic equipment
US10609137B2 (en) Global logical timestamp
CN104283926A (en) Data synchronization method, device and server
CN105916100A (en) Heartbeat packet agency method, device and communication system
CN111756829A (en) Account book data synchronization method, device, equipment and storage medium
CN110071778B (en) Time synchronization method, device, equipment and medium
CN108881435B (en) Real-time clock providing method, server, home appliance, system, and medium
CN105163336A (en) Method and system for optimizing stability of wireless network
CN110768740B (en) Time synchronization method and device
US10721685B2 (en) Apparatus and method for controlling traffic transmission time in electronic device
CN104079368A (en) Method of transmitting test data of application software and server
KR20090018256A (en) Apparatus and method for power consumption improvement by synchronizing heartbeat in portable terminal
CN104767623B (en) Dynamic password generation method and device
CN106485583B (en) Data updating method and device
US9801121B2 (en) Electronic device and method of managing BS list thereof
US11620960B2 (en) Synchronous display blinking
KR101593822B1 (en) Apparatus for providing communication service, control method thereof, recording medium for recording program for executing the control method, application saved in the recording medium for executing the control method being combined with hardware
CN110427336B (en) CPU link rate configuration method, system, equipment and computer medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131204

WD01 Invention patent application deemed withdrawn after publication