CN104065441A - Device time calibration method and system - Google Patents

Device time calibration method and system Download PDF

Info

Publication number
CN104065441A
CN104065441A CN201410307354.0A CN201410307354A CN104065441A CN 104065441 A CN104065441 A CN 104065441A CN 201410307354 A CN201410307354 A CN 201410307354A CN 104065441 A CN104065441 A CN 104065441A
Authority
CN
China
Prior art keywords
equipment
time information
time
near field
field communication
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
CN201410307354.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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201410307354.0A priority Critical patent/CN104065441A/en
Publication of CN104065441A publication Critical patent/CN104065441A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

The invention is applicable to the field of communication/electronic devices, and provides a device time calibration method and system. The method comprises: a first device obtains time information provided by a second device through a short-range communication method; and the first device updates the time of the first device according to the time information. The method and the system enable devices without data service connection support to calibrate time automatically, and are suitable for time calibration of mobile terminals, digital cameras, computers, digital photo frames, wearable devices, automobile electronic devices, industrial field equipment and smart household appliances.

Description

Time calibration method and system of equipment
Technical Field
The invention belongs to the field of communication/electronic equipment, and particularly relates to a time calibration method and a time calibration system for equipment.
Background
After most of the existing equipment with the electronic clock function is powered off, the clock of the equipment usually stops timing; after the device is restarted, if the time is not calibrated, the time of the device is a random value. Some devices cannot automatically correct time, and need a user to manually calibrate the time; there are also devices that can correct the time automatically, but are usually calibrated in the following way:
and connecting the Internet time server for calibration through a data service function of the wireless network. However, the method needs the support of the data service, but some equipment users do not open the data service or the data service flow is insufficient; or network communication fails, the device may not be able to calibrate time.
Disclosure of Invention
The invention aims to provide a time calibration method and a time calibration system for equipment, and aims to solve the problem that the equipment which cannot obtain data service connection support cannot automatically calibrate time.
In a first aspect, the present invention provides a method for time calibration of a device, the method comprising:
the method comprises the steps that a first device obtains time information provided by a second device through a near field communication mode;
and the first equipment updates the time of the first equipment according to the time information.
In a second aspect, the present invention provides a method for time calibration of a device, the method comprising:
the second equipment provides time information for the first equipment in a near field communication mode, so that the first equipment can update the time of the first equipment according to the time information.
In a third aspect, the present invention provides a time calibration system for a device, the system being built in a first device, the system comprising:
the acquisition module is used for acquiring the time information provided by the second equipment in a near field communication mode;
and the updating module is used for updating the time of the first equipment according to the time information.
In a fourth aspect, the present invention provides a time calibration system for a device, the system being built in a second device, the system comprising:
the providing module is used for providing time information for the first equipment in a near field communication mode so that the first equipment can update the time of the first equipment according to the time information.
In the invention, the first device acquires the time information provided by the second device in a near field communication mode; and updating the time of the first device according to the time information. Therefore, the time calibration method can automatically calibrate the time of equipment which cannot be supported by data service connection, and is suitable for time calibration of mobile terminals, digital cameras, computers, digital photo frames, wearable equipment, automobile electronic equipment, industrial field equipment, smart homes and the like.
Drawings
Fig. 1 is a flowchart of a time calibration method of a device according to an embodiment of the present invention.
Fig. 2 is a flowchart of a time calibration method of a device according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a time calibration method of a device according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a time calibration system of a device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
The first embodiment is as follows:
referring to fig. 1, a method for calibrating time of a device according to an embodiment of the present invention includes the following steps:
s101, the first equipment acquires time information provided by the second equipment through a near field communication mode, and the second equipment provides the time information for the first equipment through the near field communication mode;
in the first embodiment of the present invention, the first device and the second device include, but are not limited to, the following devices:
the system comprises a mobile terminal, a digital camera, a computer, a digital photo frame, wearable equipment, automobile electronic equipment, industrial field equipment, an intelligent television, an intelligent clock, an intelligent electric cooker, an intelligent refrigerator and the like in an intelligent home.
In the first embodiment of the present invention, the near field Communication modes include WIFI, bluetooth, NFC (near field Communication), and the like.
And S102, the first equipment updates the time of the first equipment according to the time information.
In the first embodiment of the present invention, after S102, the method may further include the following steps:
starting a timer;
and judging whether the timer is overtime, if so, returning to the step S101, and otherwise, returning to the step of judging whether the timer is overtime.
In the first embodiment of the present invention, the first device obtains the time information provided by the second device through the near field communication; and updating the time of the first device according to the time information. Therefore, the time calibration method can automatically calibrate the time of equipment which cannot be supported by data service connection, and is suitable for time calibration of mobile terminals, digital cameras, computers, digital photo frames, wearable equipment, automobile electronic equipment, industrial field equipment, smart homes and the like.
Example two:
referring to fig. 2, a time calibration method for a device according to a second embodiment of the present invention includes the following steps:
s201, the master device broadcasts a system message carrying time information to the slave device in a near field communication mode;
in the second embodiment of the present invention, the master device corresponds to the second device in the first embodiment of the present invention, and the slave device corresponds to the first device in the first embodiment of the present invention.
In the second embodiment of the present invention, the protocol corresponding to the near field communication method defines concepts of a master device and a slave device.
In the second embodiment of the present invention, the master device is a device capable of ensuring time accuracy.
In the second embodiment of the present invention, the master device and the slave device include, but are not limited to, the following devices:
the system comprises a mobile terminal, a digital camera, a computer, a digital photo frame, wearable equipment, automobile electronic equipment, industrial field equipment, an intelligent television, an intelligent clock, an intelligent electric cooker, an intelligent refrigerator and the like in an intelligent home.
In the second embodiment of the present invention, the close-range communication method includes WIFI, bluetooth, NFC, and the like.
S202, the slave equipment receives a system message which is broadcasted by the master equipment and carries time information in a near field communication mode;
s203, the slave equipment analyzes the system message to acquire time information;
and S204, the slave equipment updates the time of the slave equipment according to the time information.
In the second embodiment of the present invention, after S204, the method may further include the following steps:
starting a timer;
and judging whether the timer is overtime, if so, returning to the S202, otherwise, returning to the step of judging whether the timer is overtime.
In the second embodiment of the present invention, the slave device receives the system message carrying the time information broadcast by the master device in the near field communication manner, and analyzes the system message to obtain the time information; and updating the time of the slave device according to the time information. Therefore, the time calibration method can automatically calibrate the time of equipment which cannot be supported by data service connection, and is suitable for time calibration of mobile terminals, digital cameras, computers, digital photo frames, wearable equipment, automobile electronic equipment, industrial field equipment, smart homes and the like.
Example three:
referring to fig. 3, a time calibration method for a device according to a third embodiment of the present invention includes the following steps:
s301, the slave device sends a time calibration request message to the master device in a near field communication mode;
in the third embodiment of the present invention, the master device corresponds to the second device in the first embodiment of the present invention, and the slave device corresponds to the first device in the first embodiment of the present invention.
In the third embodiment of the present invention, the protocol corresponding to the near field communication method does not need to be modified, and only the application programs need to be added to the master device and the slave device.
In the third embodiment of the present invention, the master device is a device capable of ensuring time accuracy.
In the third embodiment of the present invention, the master device and the slave device include, but are not limited to, the following devices:
the system comprises a mobile terminal, a digital camera, a computer, a digital photo frame, wearable equipment, automobile electronic equipment, industrial field equipment, an intelligent television, an intelligent clock, an intelligent electric cooker, an intelligent refrigerator and the like in an intelligent home.
In the third embodiment of the present invention, the close-range communication method includes WIFI, bluetooth, NFC, and the like.
S302, the master device receives a time calibration request message sent by the slave device in a near field communication mode;
s303, the master device sends a response message carrying time information to the slave device in a near field communication mode;
s304, the slave device receives a response message carrying time information sent by the master device in a near field communication mode;
s305, the slave equipment analyzes the response message to acquire time information;
s306, the slave device updates the time of the slave device according to the time information.
In the third embodiment of the present invention, after S306, the method may further include the following steps:
starting a timer;
and judging whether the timer is overtime, if so, returning to the step S301, and otherwise, returning to the step of judging whether the timer is overtime.
In the third embodiment of the present invention, the slave device sends the time calibration request message to the master device in the near field communication manner, receives the response message carrying the time information sent by the master device in the near field communication manner, and analyzes the response message to obtain the time information; and updating the time of the slave device according to the time information. Therefore, the time calibration method can automatically calibrate the time of equipment which cannot be supported by data service connection, and is suitable for time calibration of mobile terminals, digital cameras, computers, digital photo frames, wearable equipment, automobile electronic equipment, industrial field equipment, smart homes and the like.
Example four:
referring to fig. 4, a time calibration system of a device according to a fourth embodiment of the present invention is disposed in a first device, and includes: an acquisition module 11 and an update module 12, wherein,
the acquisition module 11 is configured to acquire time information provided by the second device in a near field communication manner;
and an updating module 12, configured to update the time of the first device according to the time information.
In the fourth embodiment of the present invention, the first device and the second device include, but are not limited to, the following devices:
the system comprises a mobile terminal, a digital camera, a computer, a digital photo frame, wearable equipment, automobile electronic equipment, industrial field equipment, an intelligent television, an intelligent clock, an intelligent electric cooker, an intelligent refrigerator and the like in an intelligent home.
In the fourth embodiment of the present invention, the near field Communication mode includes WIFI, bluetooth, NFC (near field Communication), and the like.
In the fourth embodiment of the present invention, the system may further include:
the starting module is used for starting the timer;
and the judging module is used for judging whether the timer is overtime, if so, the acquiring module acquires the time information provided by the second equipment in a near field communication mode, and otherwise, the judging module returns to judge whether the timer is overtime.
In the fourth embodiment of the present invention, the first device may be a slave device, and the second device may be a master device; the protocol corresponding to the near field communication mode defines the concepts of the master device and the slave device. The master device is a device capable of ensuring time accuracy.
The obtaining module may specifically include:
the first receiving module is used for receiving the system message which is broadcasted by the main equipment and carries the time information in the near field communication mode;
the first analysis module is used for analyzing the system message and acquiring time information;
the updating module may be specifically configured to update the time of the slave device according to the time information.
In the fourth embodiment of the present invention, the obtaining module may specifically include:
the first sending module is used for sending a time calibration request message to the main equipment in a near field communication mode;
the second receiving module is used for receiving a response message which is sent by the main equipment and carries time information in a near field communication mode;
and the second analysis module is used for analyzing the response message and acquiring the time information.
Example five:
the time calibration system for a device according to the fifth embodiment of the present invention is built in a second device, and includes:
the providing module is used for providing time information for the first equipment in a near field communication mode so that the first equipment can update the time of the first equipment according to the time information.
In the fifth embodiment of the present invention, the first device is a slave device, and the second device is a master device;
the providing module is specifically configured to: broadcasting a system message carrying time information to slave equipment in a near field communication mode;
or,
the providing module specifically comprises:
the second sending module is used for receiving the time calibration request message sent by the slave equipment in a near field communication mode;
and the third receiving module is used for sending a response message carrying time information to the slave equipment in a near field communication mode.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and the program may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method of time calibration of a device, the method comprising:
the method comprises the steps that a first device obtains time information provided by a second device through a near field communication mode;
and the first equipment updates the time of the first equipment according to the time information.
2. The method of claim 1, wherein after the first device updates the time of the first device according to the time information, the method further comprises:
starting a timer;
and judging whether the timer is overtime, if so, returning to the first equipment to acquire the time information provided by the second equipment in a short-distance communication mode, and otherwise, returning to judge whether the timer is overtime.
3. The method of claim 1 or 2, wherein the first device is a slave device and the second device is a master device;
the acquiring, by the first device, the time information provided by the second device in the near field communication manner specifically includes:
the slave equipment receives a system message which is broadcasted by the master equipment and carries time information in a near field communication mode;
the slave equipment analyzes the system message to obtain time information;
the updating, by the first device, the time of the first device according to the time information specifically includes:
and the slave equipment updates the time of the slave equipment according to the time information.
4. The method of claim 1 or 2, wherein the first device is a slave device and the second device is a master device;
the acquiring, by the first device, the time information provided by the second device in the near field communication manner specifically includes:
the slave device sends a time calibration request message to the master device in a near field communication mode;
the slave equipment receives a response message carrying time information sent by the master equipment in a near field communication mode;
the slave equipment analyzes the response message to obtain time information;
the updating, by the first device, the time of the first device according to the time information specifically includes:
and the slave equipment updates the time of the slave equipment according to the time information.
5. A method of time calibration of a device, the method comprising:
the second equipment provides time information for the first equipment in a near field communication mode, so that the first equipment can update the time of the first equipment according to the time information.
6. A system for time calibration of a device, the system being built into a first device, the system comprising:
the acquisition module is used for acquiring the time information provided by the second equipment in a near field communication mode;
and the updating module is used for updating the time of the first equipment according to the time information.
7. The system of claim 7, wherein the system further comprises:
the starting module is used for starting the timer;
and the judging module is used for judging whether the timer is overtime, if so, the acquiring module acquires the time information provided by the second equipment in a near field communication mode, and otherwise, the judging module returns to judge whether the timer is overtime.
8. The system of claim 7 or 8, wherein the first device is a slave device and the second device is a master device;
the acquisition module specifically includes:
the first receiving module is used for receiving the system message which is broadcasted by the main equipment and carries the time information in the near field communication mode;
the first analysis module is used for analyzing the system message and acquiring time information;
the updating module is specifically configured to update the time of the slave device according to the time information.
9. The system of claim 7 or 8, wherein the first device is a slave device and the second device is a master device;
the acquisition module specifically includes:
the first sending module is used for sending a time calibration request message to the main equipment in a near field communication mode;
the second receiving module is used for receiving a response message which is sent by the main equipment and carries time information in a near field communication mode;
the second analysis module is used for analyzing the response message and acquiring time information;
the updating module is specifically configured to update the time of the slave device according to the time information.
10. A system for time alignment of a device, the system being built into a second device, the system comprising:
the providing module is used for providing time information for the first equipment in a near field communication mode so that the first equipment can update the time of the first equipment according to the time information.
CN201410307354.0A 2014-06-30 2014-06-30 Device time calibration method and system Pending CN104065441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410307354.0A CN104065441A (en) 2014-06-30 2014-06-30 Device time calibration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410307354.0A CN104065441A (en) 2014-06-30 2014-06-30 Device time calibration method and system

Publications (1)

Publication Number Publication Date
CN104065441A true CN104065441A (en) 2014-09-24

Family

ID=51552995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410307354.0A Pending CN104065441A (en) 2014-06-30 2014-06-30 Device time calibration method and system

Country Status (1)

Country Link
CN (1) CN104065441A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228092A (en) * 2015-10-12 2016-01-06 Tcl集团股份有限公司 A kind of method and system of TV acquisition time
CN105553588A (en) * 2015-09-11 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Time updating method and related equipment
CN106792021A (en) * 2016-12-16 2017-05-31 北京小米移动软件有限公司 The time obtaining method and device of intelligent television

Citations (5)

* 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
CN102523021A (en) * 2011-12-09 2012-06-27 无锡中星微电子有限公司 Communication method of bluetooth earphone and mobile terminal, and apparatus thereof
CN202841535U (en) * 2012-06-11 2013-03-27 林碧辉 Wireless positioning information device
CN103458496A (en) * 2012-06-04 2013-12-18 中兴通讯股份有限公司 Method and system for achieving time synchronization through WiFi-Direct
CN103501534A (en) * 2013-09-17 2014-01-08 福州瑞芯微电子有限公司 Method for time synchronization on mobile equipment

Patent Citations (5)

* 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
CN102523021A (en) * 2011-12-09 2012-06-27 无锡中星微电子有限公司 Communication method of bluetooth earphone and mobile terminal, and apparatus thereof
CN103458496A (en) * 2012-06-04 2013-12-18 中兴通讯股份有限公司 Method and system for achieving time synchronization through WiFi-Direct
CN202841535U (en) * 2012-06-11 2013-03-27 林碧辉 Wireless positioning information device
CN103501534A (en) * 2013-09-17 2014-01-08 福州瑞芯微电子有限公司 Method for time synchronization on mobile equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553588A (en) * 2015-09-11 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Time updating method and related equipment
CN105228092A (en) * 2015-10-12 2016-01-06 Tcl集团股份有限公司 A kind of method and system of TV acquisition time
CN106792021A (en) * 2016-12-16 2017-05-31 北京小米移动软件有限公司 The time obtaining method and device of intelligent television

Similar Documents

Publication Publication Date Title
KR101916559B1 (en) Method, device and system of prompting communication event
CN106961655B (en) Apparatus and method for detecting fake annunciator in wireless communication system
KR102208438B1 (en) Method for proximity service data and an electronic device thereof
US11792629B2 (en) Electronic device, control terminal, non-transitory computer-readable storage medium and device connection method
US20220082676A1 (en) Electronic device for performing ranging through ultra-wide band (uwb), and method for operating electronic device
CN106487928B (en) Message pushing method and device
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
CN110650408B (en) Earphone, anti-lost method, anti-lost system and computer readable storage medium
US10591589B2 (en) Apparatus and method for measuring wireless range
CN104660685A (en) Method and device for obtaining equipment information
EP2712126A2 (en) Networking method, server end device, client end device and network system
CN110621055A (en) Network distribution method, device, terminal, equipment, storage medium and system
KR20180088937A (en) Method and apparatus for identifying type of electronic device on smart socket
US20170310806A1 (en) Message processing method and system, and related device
CN111371657A (en) Network configuration method and system of intelligent household appliance and intelligent household appliance
CN105376696A (en) Data transmission method and intelligent terminal
CN104486755A (en) System and method for realizing WIFI (Wireless Fidelity) configuration of intelligent equipment based on ibeacon
CN105391856A (en) Event reminding method and device
US9253591B2 (en) Communications via a receiving device network
WO2015143933A1 (en) Information sending method and information sending apparatus
CN104065441A (en) Device time calibration method and system
CN105530684B (en) Network access method, device and system
KR102248911B1 (en) Electronic device and method for processing data in electronic device
KR20190107492A (en) Electronic device for performing device to device communication and method thereof
CN103546988A (en) Equipment side and method for synchronizing information of intelligent terminal and equipment side

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: 20140924