CN103501534A - Method for time synchronization on mobile equipment - Google Patents

Method for time synchronization on mobile equipment Download PDF

Info

Publication number
CN103501534A
CN103501534A CN201310423460.0A CN201310423460A CN103501534A CN 103501534 A CN103501534 A CN 103501534A CN 201310423460 A CN201310423460 A CN 201310423460A CN 103501534 A CN103501534 A CN 103501534A
Authority
CN
China
Prior art keywords
synchronizer
treat
time
lock
connection
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
CN201310423460.0A
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.)
Fuzhou Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201310423460.0A priority Critical patent/CN103501534A/en
Publication of CN103501534A publication Critical patent/CN103501534A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method for time synchronization on mobile equipment. The method is applied to a synchronizer and equipment to be synchronized, and the synchronizer and the equipment to be synchronized respectively comprise a WIFI module. The method includes the steps that when a function of synchronization is triggered, a synchronous update request is sent to the synchronizer; after the synchronous update request is received by the synchronizer, synchronous update data are packed and are sent to the equipment to be synchronized; after the synchronous update data are received by the equipment to be synchronized, the data are extracted and the equipment is synchronized. The method also includes the connecting steps that the WIFI module is used by the equipment to be synchronized to scan the synchronizer with the beacon frame of P2P information nearby, and a P2P invited type management frame connecting request is sent; after the connecting request is received by the synchronizer, whether a connection is determined or not is detected, the connecting request of the equipment to be synchronized is received after the connection is determined, and a wifi-direct connection is built. The method achieves time synchronization under the condition that the internet is not used.

Description

A kind of method of lock in time on mobile device
Technical field
The present invention relates to the method for lock in time on a kind of mobile device.
Background technology
System on mobile device is (as android, ios etc.) method of the automatic synchronization time zone of acquiescence and Time of Day is that the dependence system is used wifi or 3G module to connect the Internet, after carrying out internet registry, send synchronization request and obtain relevant information to the server that is specifically designed to date lock in time.The most important condition of this mode is exactly to connect upper the Internet so, and need to preset the server address (being referred to as ntp server) that date lock in time server can be provided.Just the time synchronized on mobile device can't have been carried out in the place that there is no the Internet so.
Summary of the invention
The technical problem to be solved in the present invention, be to provide the method for lock in time on a kind of mobile device, solves the problem that there is no can't carry out in the Internet situation time synchronized.
The present invention is achieved in that
A kind of method of lock in time on mobile device, be applied in synchronizer and treating on synchronizer, synchronizer and treat that synchronizer all includes the WIFI module, comprises the steps:
Step 10, treat that synchronizer detects and treat whether synchronizing function is triggered, when synchronizing function is triggered, treat that synchronizer sends synchronous update request to synchronizer;
After step 20, synchronizer receive synchronous update request, according to the content of synchronous update request will be synchronously more the new data packing send to and treat synchronizer;
Step 30, after receiving synchronously more new data, extracts by synchronizer and synchronous equipment of itself;
Also comprised Connection Step before or after step 10:
Step 1, treat that synchronizer uses around the scanning of WIFI module the synchronizer with the beacon frame of P2P information, sends P2P invited type management frame and carries out connection request;
After step 2, synchronizer receive connection request, detect connection and whether be identified, accept to treat the connection request of synchronizer after connection is identified, set up wifi-direct and connect.
Further, described is synchronously time synchronized.
Further, in described step 10, treat that the concrete steps that synchronizing function is triggered click lockage button for the user or treat that synchronizing function is triggered automatically.
Further, the Go Intent in the P2P invited type management frame in described step 1 is 0.
Further, connect the process that is identified in described step 2 and comprise that the user clicks confirmation or automatically confirms.
The present invention also provides the movement of a kind of lock in time to treat synchronizer, comprise the WIFI module, it is characterized in that: described movement treats that synchronizer, for using around WIFI module scanning the synchronizer with the beacon frame of P2P information, sends P2P invited type management frame and carries out connection request; And, for when synchronizing function is triggered, to synchronizer, send synchronous update request; And, for when receiving synchronously more new data, upgrade equipment of itself.
Further, described is synchronously time synchronized.
And the present invention also provides the mobile synchronizer of a kind of lock in time, comprise the WIFI module, it is characterized in that: described mobile synchronizer is for after receiving connection request, detect to connect and whether be identified, accept to treat the connection request of synchronizer after connection is identified, sets up wifi-direct and connect; And for after receiving synchronous update request, according to the content of synchronous update request will be synchronously more the new data packing send to and treat synchronizer.
Further, described is synchronously time synchronized.
The present invention has following advantage: utilize the WIFI module of mobile device, and the wifi-direct technology, in the situation that realized the synchronous of system time without the Internet and the server address that the service of date lock in time is provided.
The accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method flowchart.
Embodiment
Refer to shown in Fig. 1, below the present invention is described in detail.
Method of the present invention is applied in synchronizer and treating on synchronizer, synchronizer and treat that synchronizer all includes the WIFI module.Existing mobile device (as the android mobile phone) is basically all with the WIFI module, synchronizer and treat that synchronizer can be two android mobile phones.Below will take and be elaborated as specific embodiment lock in time, but the present invention can carry out the synchronous of other guide equally, as font, system, software upgrading, subject application, phone directory etc.
This method starts from step S101 and treats that synchronizer detects to treat whether synchronizing function is triggered, and when synchronizing function is triggered, treats that synchronizer sends synchronous update request to synchronizer.That treats that synchronizing function is triggered can click lockage button or treat that synchronizing function is triggered automatically for the user.Automatically triggering can be by arranging an event or time, and this event has occurred or time is up triggers and treat synchronizing function.The data bit that the packet of synchronous update request can be arranged into message is all F, treats that synchronizer receives data bit is all that the packet of F just can know it has been synchronous update request.
Treat that synchronizer need to treat that to the synchronizer request of sending synchronizer is connected with synchronizer.If connected before step S101, do not need again to connect.If have to connect enter step S102 and do not treat that synchronizer uses around the scanning of WIFI module with the P2P(peer-to-peer network) synchronizer of the beacon frame of information, send P2P invited type management frame and carry out connection request.Treat that synchronizer sends wifi-direct and connects (the wifi-direct:wifi direct-connecting technology, in the situation that do not need wireless router to realize the point-to-point connection between wifi equipment).Then, after step S103 synchronizer receives connection request, detect connection and whether be identified, accept to treat the connection request of synchronizer after connection is identified, set up wifi-direct and connect.Connect the process that is identified and comprise that the user clicks confirmation or automatically confirms.The user clicks and confirms that being used as connecting the process be identified can realize in the following manner: eject on the synchronizer screen and connect prompting, prompting includes to be confirmed and cancel button, if the user clicks confirmation, connects and is identified, and sets up connection.So one by one connection is carried out to the user and confirm that higher fail safe is arranged, but, in a large number when synchronizer will connect, need to operate continually, trouble.So not high in security requirement, there is again the occasion that large number quipments will connect can use automatic confirmation, after synchronizer receives connection request, automatically confirm to connect, receive the connection request for the treatment of synchronizer.
The connection for the treatment of synchronizer and synchronizer also can be before step S101, and connection procedure is consistent with step S103 with step S102.According to the wifi-direct agreement, can determine master slave relation according to the value of the Go Intent in both sides' P2P invited type management frame during connection, that Go Intent value is larger is main equipment (Group owner), and what Go Intent value was less is from equipment (Group client).Preferably, described step S102 treats that the Go Intent in P2P invited type management frame that synchronizer sends is 0.Because the scope of Go Intent value is 0-15, the Go Intent value that synchronizer is replied can be than 0 not little, and synchronizer, as main equipment, is used for the distributing IP address to treating synchronizer like this, is convenient to a plurality for the treatment of being connected of synchronizer and main equipment.
After being connected, after entering step S104 synchronizer and receiving synchronous update request, according to the content of synchronous update request will be synchronously more the new data packing send to and treat synchronizer.Because synchronous update request is the time synchronized update request, synchronizer has known that needing synchronous content is time data after receiving synchronous update request, synchronizer reads out the system time of the machine, date and time-zone information, as synchronous new data more.Will by synchronously more new data send to and treat synchronizer, according to connection protocol, data stuffing to be sent to the corresponding data position of replying in bag again, will be synchronously more new data send to again and treat synchronizer after packing.
Finally entering step S105 receives synchronously more and extracts and synchronous equipment of itself after new data until synchronizer.After synchronizer receives the reply bag that synchronizer sends, extract system time, date and time-zone information, upgrade system time, date and the time-zone information of equipment of itself, complete synchronizing process.
In the present invention, mobile device can complete from other equipment synchronous to equipment of itself, also can other equipment be carried out synchronously equipment of itself.To sum up, the present invention can complete in the situation that do not have the Internet to realize synchronous to equipment.The present invention can use on increasing mobile phone manufacturer's service station, uses a mobile phone to carry out in advance synchronous client to shop and directly carry out synchronously all as main equipment, can carry out synchronously fast, has alleviated staff's pressure.Need on service station, open the Internet to client's use, greatly not increase the internet security in service station, reduced the cost in service station simultaneously.The present invention also can be applied in Public Service Field, and the present invention has applied range, and implementation procedure is simple, the advantage that cost is low.
Although more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in modification and the variation of the equivalence of doing according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.

Claims (9)

1. the method for lock in time on a mobile device, be applied in synchronizer and treat on synchronizer, synchronizer and treat that synchronizer all includes the WIFI module, is characterized in that: comprise the steps:
Step 10, treat that synchronizer detects and treat whether synchronizing function is triggered, when synchronizing function is triggered, treat that synchronizer sends synchronous update request to synchronizer;
After step 20, synchronizer receive synchronous update request, according to the content of synchronous update request will be synchronously more the new data packing send to and treat synchronizer;
Step 30, after receiving synchronously more new data, extracts by synchronizer and synchronous equipment of itself;
Also comprised Connection Step before or after step 10:
Step 1, treat that synchronizer uses around the scanning of WIFI module the synchronizer with the beacon frame of P2P information, sends P2P invited type management frame and carries out connection request;
After step 2, synchronizer receive connection request, detect connection and whether be identified, accept to treat the connection request of synchronizer after connection is identified, set up wifi-direct and connect.
2. the method for lock in time on a kind of mobile device according to claim 1 is characterized in that: described synchronous be time synchronized.
3. the method for lock in time on a kind of mobile device according to claim 1 is characterized in that: in described step 10, treat that the concrete steps that synchronizing function is triggered click lockage button for the user or treat that synchronizing function is triggered automatically.
4. the method for lock in time on a kind of mobile device according to claim 1, it is characterized in that: the Go Intent in the P2P invited type management frame in described step 1 is 0.
5. the method for lock in time on a kind of mobile device according to claim 1, is characterized in that: connect the process that is identified in described step 2 and comprise that the user clicks confirmation or automatically confirms.
6. synchronizer is treated in the movement of a lock in time, comprise the WIFI module, it is characterized in that: described movement treats that synchronizer, for using around WIFI module scanning the synchronizer with the beacon frame of P2P information, sends P2P invited type management frame and carries out connection request; And, for when synchronizing function is triggered, to synchronizer, send synchronous update request; And, for when receiving synchronously more new data, upgrade equipment of itself.
7. synchronizer is treated in the movement of a kind of lock in time according to claim 6, it is characterized in that: described is synchronously time synchronized.
8. the mobile synchronizer of a lock in time, comprise the WIFI module, it is characterized in that: whether described mobile synchronizer, for after receiving connection request, detects connection and is identified, accept to treat the connection request of synchronizer after connection is identified, sets up wifi-direct and connect; And for after receiving synchronous update request, according to the content of synchronous update request will be synchronously more the new data packing send to and treat synchronizer.
9. the mobile synchronizer of a kind of lock in time according to claim 8 is characterized in that: described synchronous be time synchronized.
CN201310423460.0A 2013-09-17 2013-09-17 Method for time synchronization on mobile equipment Pending CN103501534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310423460.0A CN103501534A (en) 2013-09-17 2013-09-17 Method for time synchronization on mobile equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310423460.0A CN103501534A (en) 2013-09-17 2013-09-17 Method for time synchronization on mobile equipment

Publications (1)

Publication Number Publication Date
CN103501534A true CN103501534A (en) 2014-01-08

Family

ID=49866683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310423460.0A Pending CN103501534A (en) 2013-09-17 2013-09-17 Method for time synchronization on mobile equipment

Country Status (1)

Country Link
CN (1) CN103501534A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065441A (en) * 2014-06-30 2014-09-24 宇龙计算机通信科技(深圳)有限公司 Device time calibration method and system
CN104284413A (en) * 2014-10-31 2015-01-14 北京元心科技有限公司 Mobile terminal time synchronization method and system
CN111865460A (en) * 2019-12-31 2020-10-30 北京骑胜科技有限公司 Time updating method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750434A (en) * 2004-09-13 2006-03-22 乐金电子(昆山)电脑有限公司 Time information share method using blue tooth
CN102209307A (en) * 2011-05-20 2011-10-05 中兴通讯股份有限公司 Time synchronization method and apparatus thereof
WO2012063491A1 (en) * 2010-11-10 2012-05-18 パナソニック株式会社 Wireless communication system and wireless communication device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750434A (en) * 2004-09-13 2006-03-22 乐金电子(昆山)电脑有限公司 Time information share method using blue tooth
WO2012063491A1 (en) * 2010-11-10 2012-05-18 パナソニック株式会社 Wireless communication system and wireless communication device
CN102209307A (en) * 2011-05-20 2011-10-05 中兴通讯股份有限公司 Time synchronization method and apparatus thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WI-FI ALLIANCE(由SHAN_LIANG263上传百度文库): "《Wi-Fi Direct Overview》", 6 October 2012 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065441A (en) * 2014-06-30 2014-09-24 宇龙计算机通信科技(深圳)有限公司 Device time calibration method and system
CN104284413A (en) * 2014-10-31 2015-01-14 北京元心科技有限公司 Mobile terminal time synchronization method and system
CN111865460A (en) * 2019-12-31 2020-10-30 北京骑胜科技有限公司 Time updating method and device, electronic equipment and storage medium
CN111865460B (en) * 2019-12-31 2022-08-09 北京骑胜科技有限公司 Time updating method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
EP4333556A3 (en) Dual-connectivity establishment method and device
CN103051764B (en) Method for sharing information of contact persons in mobile phone
CN103354560B (en) Method and system for data decomposition and synchronization
CN102970362A (en) Method and device for sharing cloud data
EP2654332A1 (en) Key sharing method and system for machine type communication (mtc) server
WO2018107593A1 (en) Method and device for sharing file between different terminals
JP2017533660A (en) Device-to-device discovery method and apparatus
CN104363613A (en) Synchronous AP (access point) configuration realization method
CN102611724B (en) Server notice data synchronization and synchronization server migration method, system and device
CN104918242B (en) Slave base station key updating method, slave base station, terminal and communication system
CN117202406A (en) Method for message processing and associated device and apparatus
CN106160910A (en) Signal synchronization source device and communication method and system thereof
US8995928B2 (en) Radio communication method, radio communication apparatus, and radio communication system
CN102685730A (en) Method for transmitting context information of user equipment (UE) and mobility management entity (MME)
CN104317496A (en) Application sharing method and device
CN103501534A (en) Method for time synchronization on mobile equipment
WO2017076109A1 (en) Software upgrading method and device
WO2018196463A1 (en) Method and apparatus for network access, storage medium, and processor
CN105246129B (en) The network-building method and device of a kind of intelligent terminal
US10601824B2 (en) Provision of access to a network
CN104518874A (en) Network access control method and system
CN103533024A (en) Method for synchronizing firmware on mobile equipment
CN103501317A (en) Method for font synchronization on mobile equipment
CN104639611A (en) Method and device for synchronizing data and mobile terminal
CN103152721A (en) Terminal, mobility management entity, system and network access method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD.

Address before: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant before: Fuzhou Rockchip Semiconductor Co., Ltd.

COR Change of bibliographic data
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140108