CN104284413A - Mobile terminal time synchronization method and system - Google Patents

Mobile terminal time synchronization method and system Download PDF

Info

Publication number
CN104284413A
CN104284413A CN201410601915.8A CN201410601915A CN104284413A CN 104284413 A CN104284413 A CN 104284413A CN 201410601915 A CN201410601915 A CN 201410601915A CN 104284413 A CN104284413 A CN 104284413A
Authority
CN
China
Prior art keywords
time
timestamp
wifi module
access point
mobile 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
CN201410601915.8A
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.)
Beijing Yuanxin Science and Technology Co Ltd
Original Assignee
Beijing Yuanxin Science and 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 Beijing Yuanxin Science and Technology Co Ltd filed Critical Beijing Yuanxin Science and Technology Co Ltd
Priority to CN201410601915.8A priority Critical patent/CN104284413A/en
Publication of CN104284413A publication Critical patent/CN104284413A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes

Abstract

The invention discloses a mobile terminal time synchronization method and system. A mobile terminal acquires a wireless packet containing a timestamp sent by a WiFi access point through a WiFi module after the WiFi module is started, and then extracts the timestamp from the wireless packet to update current time to be the time contained in the timestamp. Due to the fact that the time contained in the timestamp is preset standard time capable of being updated in real time, time synchronization of the mobile terminal is achieved while the current time is updated to be the time contained in the timestamp. Compared with the prior art that the mobile terminal needs to be connected with a time server through a network, the method and system have the advantage that communication between the WiFi module and the WiFi access point can be achieved without networking, and therefore money spent on networking is saved and region limitation of networking is avoided.

Description

The method and system of a kind of mobile terminal synchronization time
Technical field
The present invention relates to technical field of mobile terminals, in particular, relate to the method and system of a kind of mobile terminal synchronization time.
Background technology
After (such as format) causes the time of self to return to original value for some reason when mobile terminal, just the time of mobile terminal need be adjusted to current time accurately.The control method of current employing has two kinds, and one is the manual adjustments time, and another kind is by the wireless network synchronization time.
Owing to adopting manual adjustments cumbersome, and need to know current time accurately, therefore, many employing wireless network synchronization times at present.When adopting the wireless network synchronization time, mobile terminal need be connected by network with time server, then be upgraded the time of mobile terminal by time server.
Be connected if mobile terminal realizes network with time server by base station, just need to spend campus network, if mobile terminal and time server select WiFi to be connected, just need to know WiFi password, and also can be subject to region restriction in some situation.
In summary it can be seen, how when not needing network to connect, do not need monetary expense and wide region, still can realize the synchronous adjustment of the time of mobile terminal is those skilled in the art's technical problems urgently to be resolved hurrily.
Summary of the invention
In view of this, the invention provides the method and system of a kind of mobile terminal synchronization time, with realize when do not need network connect, do not need monetary expense and wide region, still can realize the synchronous adjustment of the time to mobile terminal.
The method of mobile terminal synchronization time, comprising:
Open WiFi module;
The packet radio carrying timestamp of WiFi access point transmission is obtained by described WiFi module;
Described timestamp is extracted from described packet radio;
Current time is updated to the time comprised in described timestamp, the time that described timestamp comprises be pre-set can standard time of real-time update.
Preferably, when described packet radio is beacon frame, the described process carrying the packet radio of timestamp sent by described WiFi module acquisition WiFi access point is comprised:
The beacon frame carrying described timestamp of certain WiFi access point transmission is directly obtained by described WiFi module.
Preferably, when described packet radio is for scanning feedback packet, the described process carrying the packet radio of timestamp sent by described WiFi module acquisition WiFi access point is comprised:
Scanning bag is sent to residing surrounding environment by described WiFi module;
The scanning feedback packet carrying described timestamp of certain WiFi access point transmission is received by described WiFi module.
The system of mobile terminal synchronization time, comprising:
Open unit, for opening WiFi module;
Acquiring unit, for obtaining the packet radio carrying timestamp that WiFi access point sends by described WiFi module;
Extraction unit, for extracting described timestamp from described packet radio;
Updating block, for current time being updated to the time comprised in described timestamp, the time that described timestamp comprises be pre-set can standard time of real-time update.
Preferably, when described packet radio is beacon frame, described acquiring unit comprises:
Direct acquisition subelement, for directly obtaining the beacon frame carrying described timestamp that certain WiFi access point sends by described WiFi module.
Preferably, when described packet radio is for scanning feedback packet, described acquiring unit comprises:
Send subelement, for sending scanning bag by described WiFi module to residing surrounding environment;
Receive subelement, for being received the scanning feedback packet carrying described timestamp that certain WiFi access point sends by described WiFi module.
As can be seen from above-mentioned technical scheme, the invention provides the method and system of a kind of mobile terminal synchronization time, after mobile terminal opens WiFi module, the packet radio carrying timestamp of WiFi access point transmission is obtained by WiFi module, then from packet radio, extraction time stabs, and current time is updated to the time comprised in timestamp.Due to the time comprised in timestamp be pre-set can standard time of real-time update, therefore, current time is updated to the synchronous of the process implementation of the time comprised in timestamp mobile terminal time.Mobile terminal is needed to be connected with time server network compared to existing technology, in the present invention, the communication process of WiFi module and WiFi access point is without the need to networking, therefore also just avoid the problem of monetary expense and the region restriction brought because network connects, thus solve a difficult problem of the prior art.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The method flow diagram of Fig. 1 a kind of mobile terminal synchronization time disclosed in the embodiment of the present invention;
The method flow diagram of Fig. 2 another kind of mobile terminal synchronization time disclosed in the embodiment of the present invention;
The method flow diagram of Fig. 3 another kind of mobile terminal synchronization time disclosed in the embodiment of the present invention;
The structural representation of Fig. 4 a kind of mobile terminal synchronization time disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses the method and system of a kind of mobile terminal synchronization time, with realize when do not need network connect, do not need monetary expense and wide region, still can realize the synchronous adjustment of the time to mobile terminal.
See Fig. 1, the method flow diagram of a kind of mobile terminal synchronization time disclosed in the embodiment of the present invention, comprises step:
Step S11, unlatching WiFi module;
Step S12, the packet radio carrying timestamp sent by described WiFi module acquisition WiFi access point;
Wherein, the English name of timestamp is timestamp.
WiFi access point is specifically as follows router.
It should be noted that, the effect of the WiFi access point in the application is equal to AccessPoint (being called for short AP, wireless access node) access point.
Step S13, from described packet radio, extract described timestamp;
Step S14, current time is updated to the time comprised in described timestamp.
Wherein, the time that described timestamp comprises be pre-set can standard time of real-time update.
Concrete, when WiFi access point is opened, the set of time comprised by timestamp is current standard time, thus makes the time comprised in timestamp be the standard time of real-time update.
In summary it can be seen, the method of a kind of mobile terminal synchronization time provided by the invention, due to the time comprised in timestamp be pre-set can standard time of real-time update, therefore, current time is updated to the synchronous of the process implementation of the time comprised in timestamp mobile terminal time.Mobile terminal is needed to be connected with time server network compared to existing technology, in the present invention, the communication process of WiFi module and WiFi access point is without the need to networking, therefore also just avoid the problem of monetary expense and the region restriction brought because network connects, thus solve a difficult problem of the prior art.
It should be noted that, the packet radio in above-described embodiment is specifically as follows packets of information or the frame that beacon frame (English name is beacon frame), scanning feedback packet (English name is scan response) etc. can carry timestamp.
When packet radio is beacon frame, see Fig. 2, the method flow diagram of a kind of mobile terminal synchronization time disclosed in another embodiment of the present invention, comprises step:
Step S21, unlatching WiFi module;
Step S22, directly to be obtained the beacon frame carrying described timestamp that certain WiFi access point sends by described WiFi module;
Step S23, from described beacon frame, extract described timestamp;
Step S24, current time is updated to the time comprised in described timestamp.
Wherein, the time that described timestamp comprises be pre-set can standard time of real-time update.
In summary it can be seen, the method of a kind of mobile terminal synchronization time provided by the invention, due to the time comprised in timestamp be pre-set can standard time of real-time update, therefore, current time is updated to the synchronous of the process implementation of the time comprised in timestamp mobile terminal time.Mobile terminal is needed to be connected with time server network compared to existing technology, in the present invention, the communication process of WiFi module and WiFi access point is without the need to networking, therefore also just avoid the problem of monetary expense and the region restriction brought because network connects, thus solve a difficult problem of the prior art.
When packet radio is for scanning feedback packet, see Fig. 3, the method flow diagram of a kind of mobile terminal synchronization time disclosed in another embodiment of the present invention, comprises step:
Step S31, unlatching WiFi module;
Step S32, by described WiFi module to residing surrounding environment send scanning bag;
Step S33, to be received the scanning feedback packet carrying described timestamp that certain WiFi access point sends by described WiFi module;
Step S34, from described scanning feedback packet, extract described timestamp;
Step S35, current time is updated to the time comprised in described timestamp.
In summary it can be seen, the method of a kind of mobile terminal synchronization time provided by the invention, due to the time comprised in timestamp be pre-set can standard time of real-time update, therefore, current time is updated to the synchronous of the process implementation of the time comprised in timestamp mobile terminal time.Mobile terminal is needed to be connected with time server network compared to existing technology, in the present invention, the communication process of WiFi module and WiFi access point is without the need to networking, therefore also just avoid the problem of monetary expense and the region restriction brought because network connects, thus solve a difficult problem of the prior art.
As can be seen from Figures 2 and 3, the process obtaining beacon frame is the process of passive acquisition, and the process obtaining scanning feedback packet is the process of active obtaining, and in actual use, can determine according to actual needs, the present invention does not limit at this.
Corresponding with said method embodiment, present invention also offers the system of a kind of mobile terminal synchronization time.
See Fig. 4, the system configuration schematic diagram of a kind of mobile terminal synchronization time disclosed in the embodiment of the present invention, comprising:
Open unit 41, for opening WiFi module;
Acquiring unit 42, for obtaining the packet radio carrying timestamp that WiFi access point sends by described WiFi module;
Wherein, the English name of timestamp is timestamp.
WiFi access point is specifically as follows router.
It should be noted that, the effect of the WiFi access point in the application is equal to AccessPoint (being called for short AP, wireless access node) access point.
Extraction unit 43, for extracting described timestamp from described packet radio;
Updating block 44, for current time being updated to the time comprised in described timestamp, the time that described timestamp comprises be pre-set can standard time of real-time update.
Concrete, when WiFi access point is opened, the set of time comprised by timestamp is current standard time, thus makes the time comprised in timestamp be the standard time of real-time update.
In summary it can be seen, the system of a kind of mobile terminal synchronization time provided by the invention, due to the time comprised in timestamp be pre-set can standard time of real-time update, therefore, current time is updated to the synchronous of the process implementation of the time comprised in timestamp mobile terminal time.Mobile terminal is needed to be connected with time server network compared to existing technology, in the present invention, the communication process of WiFi module and WiFi access point is without the need to networking, therefore also just avoid the problem of monetary expense and the region restriction brought because network connects, thus solve a difficult problem of the prior art.
It should be noted that, the packet radio in above-described embodiment is specifically as follows packets of information or the frame that beacon frame (English name is beacon frame), scanning feedback packet (English name is scan response) etc. can carry timestamp.
Therefore, when packet radio is beacon frame, the acquiring unit 42 in above-described embodiment comprises:
Direct acquisition subelement, for directly obtaining the beacon frame carrying described timestamp that certain WiFi access point sends by described WiFi module.
Now, extraction unit 43, for extracting described timestamp from described beacon frame.
When packet radio is for scanning feedback packet, the acquiring unit 42 in above-described embodiment comprises:
Send subelement, for sending scanning bag by described WiFi module to residing surrounding environment;
Receive subelement, for being received the scanning feedback packet carrying described timestamp that certain WiFi access point sends by described WiFi module.
Now, extraction unit 43, for extracting described timestamp from described scanning feedback packet.
In summary it can be seen, the system of a kind of mobile terminal synchronization time provided by the invention, due to the time comprised in timestamp be pre-set can standard time of real-time update, therefore, current time is updated to the synchronous of the process implementation of the time comprised in timestamp mobile terminal time.Mobile terminal is needed to be connected with time server network compared to existing technology, in the present invention, the communication process of WiFi module and WiFi access point is without the need to networking, therefore also just avoid the problem of monetary expense and the region restriction brought because network connects, thus solve a difficult problem of the prior art.
It should be noted that, in system embodiment, the specific works principle of each part see embodiment of the method, can repeat no more herein.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (6)

1. the method for mobile terminal synchronization time, is characterized in that, comprising:
Open WiFi module;
The packet radio carrying timestamp of WiFi access point transmission is obtained by described WiFi module;
Described timestamp is extracted from described packet radio;
Current time is updated to the time comprised in described timestamp, the time that described timestamp comprises be pre-set can standard time of real-time update.
2. method according to claim 1, is characterized in that, when described packet radio is beacon frame, the described process carrying the packet radio of timestamp sent by described WiFi module acquisition WiFi access point is comprised:
The beacon frame carrying described timestamp of certain WiFi access point transmission is directly obtained by described WiFi module.
3. method according to claim 1, is characterized in that, when described packet radio is for scanning feedback packet, the described process carrying the packet radio of timestamp sent by described WiFi module acquisition WiFi access point is comprised:
Scanning bag is sent to residing surrounding environment by described WiFi module;
The scanning feedback packet carrying described timestamp of certain WiFi access point transmission is received by described WiFi module.
4. the system of mobile terminal synchronization time, is characterized in that, comprising:
Open unit, for opening WiFi module;
Acquiring unit, for obtaining the packet radio carrying timestamp that WiFi access point sends by described WiFi module;
Extraction unit, for extracting described timestamp from described packet radio;
Updating block, for current time being updated to the time comprised in described timestamp, the time that described timestamp comprises be pre-set can standard time of real-time update.
5. system according to claim 4, is characterized in that, when described packet radio is beacon frame, described acquiring unit comprises:
Direct acquisition subelement, for directly obtaining the beacon frame carrying described timestamp that certain WiFi access point sends by described WiFi module.
6. system according to claim 4, is characterized in that, when described packet radio is for scanning feedback packet, described acquiring unit comprises:
Send subelement, for sending scanning bag by described WiFi module to residing surrounding environment;
Receive subelement, for being received the scanning feedback packet carrying described timestamp that certain WiFi access point sends by described WiFi module.
CN201410601915.8A 2014-10-31 2014-10-31 Mobile terminal time synchronization method and system Pending CN104284413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410601915.8A CN104284413A (en) 2014-10-31 2014-10-31 Mobile terminal time synchronization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410601915.8A CN104284413A (en) 2014-10-31 2014-10-31 Mobile terminal time synchronization method and system

Publications (1)

Publication Number Publication Date
CN104284413A true CN104284413A (en) 2015-01-14

Family

ID=52258768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410601915.8A Pending CN104284413A (en) 2014-10-31 2014-10-31 Mobile terminal time synchronization method and system

Country Status (1)

Country Link
CN (1) CN104284413A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357439A (en) * 2016-09-08 2017-01-25 上海斐讯数据通信技术有限公司 Method and system for updating router time
WO2023138339A1 (en) * 2022-01-24 2023-07-27 华为技术有限公司 Time synchronization method, apparatus and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547969A (en) * 2012-02-24 2012-07-04 电子科技大学 High-accuracy wireless clock synchronization system for power system
CN102740430A (en) * 2012-07-17 2012-10-17 宇龙计算机通信科技(深圳)有限公司 Signaling time-synchronous communication device and method without data indicating list
CN103501534A (en) * 2013-09-17 2014-01-08 福州瑞芯微电子有限公司 Method for time synchronization on mobile equipment
CN103782525A (en) * 2011-08-11 2014-05-07 英特尔公司 Systems, methods, and apparatus for a short beacon in low rate Wi-Fi communications
WO2014089252A1 (en) * 2012-12-05 2014-06-12 Intel Corporation Methods and arrangements for time synchronization and service discovery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103782525A (en) * 2011-08-11 2014-05-07 英特尔公司 Systems, methods, and apparatus for a short beacon in low rate Wi-Fi communications
CN102547969A (en) * 2012-02-24 2012-07-04 电子科技大学 High-accuracy wireless clock synchronization system for power system
CN102740430A (en) * 2012-07-17 2012-10-17 宇龙计算机通信科技(深圳)有限公司 Signaling time-synchronous communication device and method without data indicating list
WO2014089252A1 (en) * 2012-12-05 2014-06-12 Intel Corporation Methods and arrangements for time synchronization and service discovery
CN103501534A (en) * 2013-09-17 2014-01-08 福州瑞芯微电子有限公司 Method for time synchronization on mobile equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357439A (en) * 2016-09-08 2017-01-25 上海斐讯数据通信技术有限公司 Method and system for updating router time
WO2023138339A1 (en) * 2022-01-24 2023-07-27 华为技术有限公司 Time synchronization method, apparatus and system

Similar Documents

Publication Publication Date Title
US10840996B2 (en) Repeating method of wireless repeating device, and wireless repeating device
WO2018029933A1 (en) Radio access network node, wireless terminal, core network node, and methods for these
CN113098726B (en) Network slicing method, device and storage medium
US10219175B2 (en) Enhanced mobility management
JP2021513753A (en) Wireless communication method, network device and terminal device
CN101499939B (en) Connection establishing method, system, apparatus based on LTE/SAE system
WO2015196886A1 (en) Imsi acquisition method and device, and signalling monitoring system
MX2020008411A (en) Methods providing qfi harmonization between ran and 5gc and related wireless terminals, base stations, and core network nodes.
US11044600B2 (en) Apparatus and method for performing local breakout service on use requipment
EP3944649A1 (en) Verification method, apparatus, and device
CN106165467A (en) Mandate shared access for Long Term Evolution
CN104780204A (en) Method and system for rapidly sharing files between terminals
CN109510848B (en) Communication system, session management method, data transmission method and device
CN103546932A (en) Method, device, network element and system for switching networks
CN105246099A (en) Association method of S1-MME (Mobility Management Entity) interface and S11 interface signaling procedure under LTE (Long Term Evolution) system interior non-switching scene
CN114666211A (en) Communication method, model processing method and related equipment
CN108093397A (en) A kind of report method and device of the ability information of terminal
CN104301106B (en) Wireless communication system and its authentication method
CN104284413A (en) Mobile terminal time synchronization method and system
CN102625276A (en) Method and system for activating a terminal
CN103763676A (en) Communication method and equipment between AP and AC
CN105722127A (en) Relay node management method and operation and maintenance center
CN102469445A (en) Method, device and system for adjusting duration of terminal timer
CN106454880A (en) Signaling tracking task processing method and apparatus
EP2538707B1 (en) Method for uploading subscriber credentials and associated 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: 20150114