CN111865460B - Time updating method and device, electronic equipment and storage medium - Google Patents

Time updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111865460B
CN111865460B CN201911410396.6A CN201911410396A CN111865460B CN 111865460 B CN111865460 B CN 111865460B CN 201911410396 A CN201911410396 A CN 201911410396A CN 111865460 B CN111865460 B CN 111865460B
Authority
CN
China
Prior art keywords
time
electronic device
electronic equipment
connection request
request
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.)
Active
Application number
CN201911410396.6A
Other languages
Chinese (zh)
Other versions
CN111865460A (en
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.)
Hangzhou Qingqi Science and Technology Co Ltd
Original Assignee
Beijing Qisheng 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 Qisheng Technology Co Ltd filed Critical Beijing Qisheng Technology Co Ltd
Priority to CN201911410396.6A priority Critical patent/CN111865460B/en
Publication of CN111865460A publication Critical patent/CN111865460A/en
Application granted granted Critical
Publication of CN111865460B publication Critical patent/CN111865460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0641Change of the master or reference, e.g. take-over or failure of the master
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a time updating method, a time updating device, electronic equipment and a storage medium, wherein the method comprises the following steps: when detecting that a preset condition is established, initiating a broadcast request for time updating; receiving and responding to a connection request sent by second electronic equipment to first electronic equipment based on a broadcast request so as to establish communication connection with the second electronic equipment, wherein the distance between the second electronic equipment and the first electronic equipment is within a preset distance range; receiving time information sent by second electronic equipment; and updating the first local time of the first electronic equipment according to the time information. According to the method and the device, the time of the electronic equipment and the time of the server can be kept consistent as much as possible under the condition that time synchronization cannot be achieved between the electronic equipment and the server, and the phenomenon that the processing flow of the server is abnormal due to time errors of the electronic equipment is avoided.

Description

Time updating method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a time updating method and apparatus, an electronic device, and a storage medium.
Background
At present, when an electronic device with a control chip interacts with a server, time information is generally carried, and the time information is generated according to a timer in the control chip. The timer may advance or delay the counted time as the service time is extended, and the time in the control chip needs to be calibrated by interacting with the server. Generally, the control chip and the server are time-synchronized at regular time to ensure that the time of the control chip and the server is synchronized, so as to facilitate the processing of the subsequent flow.
In an actual application scenario, under some conditions, the electronic device cannot perform time synchronization with the server, for example, the control chip is abnormal, or the server is abnormal, or the network link between the control chip and the server is abnormal, which may cause a large difference between the time of the electronic device and the time of the server, so that after the communication between the electronic device and the server is restored to normal, the time information reported to the server by the electronic device is incorrect, which may cause an abnormality in the server processing flow.
Disclosure of Invention
In view of the above, an object of the present application is to provide a time updating method, a time updating apparatus, an electronic device, and a storage medium, which are capable of keeping the time of the electronic device and the time of the server as consistent as possible in time under the condition that time synchronization cannot be achieved between the electronic device and the server, so as to avoid an abnormal processing flow of the server caused by a time error of the electronic device.
According to an aspect of the present application, there is provided a time updating method applied to a first electronic device, including: when detecting that a preset condition is established, initiating a broadcast request for time updating; receiving and responding to a connection request sent by second electronic equipment to first electronic equipment based on a broadcast request so as to establish communication connection with the second electronic equipment, wherein the distance between the second electronic equipment and the first electronic equipment is within a preset distance range; receiving time information sent by second electronic equipment; and updating the first local time of the first electronic equipment according to the time information.
In some embodiments, the time information includes a second local time and a second synchronization time, the second local time is a local time of the second electronic device, the second synchronization time is a time at which the second electronic device has performed time synchronization with the second server last time, and the step of updating the first local time of the first electronic device according to the time information includes: acquiring first synchronization time of the first electronic equipment for time synchronization with the first server last time; and updating the first local time by using the second local time when the second local time meets the preset time range and the second synchronous time is later than the first synchronous time.
In some embodiments, the step of initiating a broadcast request for time update when the preset condition is detected to be established, includes: acquiring first synchronization time of the first electronic equipment for time synchronization with the first server last time; and when the time interval between the first synchronization time and the first local time is greater than a first preset threshold value, judging that a preset condition is satisfied.
In some embodiments, the step of initiating a broadcast request for time update when the preset condition is detected to be satisfied further comprises: and when the time synchronization with the first server is not successfully carried out within the preset time length, judging that the preset condition is established.
In some embodiments, the step of initiating a broadcast request for time update when the preset condition is detected to be satisfied further comprises: receiving an encrypted data packet which is sent by a mobile terminal and is based on a time encryption strategy; and when the encrypted data packet is not decrypted, judging that the preset condition is satisfied.
According to another aspect of the present application, there is provided a time updating method applied to a second electronic device, including: receiving a broadcast request of time update initiated by first electronic equipment when a preset condition is detected to be satisfied, wherein the distance between the first electronic equipment and second electronic equipment is within a preset distance range; sending a connection request to the first electronic equipment based on the broadcast request so that the first electronic equipment receives and responds to the connection request to establish communication connection with the second electronic equipment; and sending the time information to the first electronic equipment so that the first electronic equipment updates the first local time of the first electronic equipment according to the time information.
In some embodiments, the broadcast request includes a first type identifier of the first electronic device, and the step of sending the connection request to the first electronic device based on the broadcast request includes: acquiring a first type identifier in a broadcast request; acquiring a second type identifier of second electronic equipment; when the first type identification is consistent with the second type identification, judging whether a connection request initiating condition is met; and when the connection request initiating condition is met, sending a connection request to the first electronic equipment.
In some embodiments, the step of determining whether the connection request initiation condition is satisfied includes: acquiring second synchronization time of the second electronic equipment, which is used for performing time synchronization with the second server at the latest time; acquiring a second local time of the second electronic device; and when the time interval between the second synchronous time and the second local time is greater than a second preset threshold value, judging that the connection request initiating condition is met.
According to another aspect of the present application, there is provided a time update apparatus applied to a first electronic device, including: the initiating module is used for initiating a broadcast request of time updating when the fact that a preset condition is established is detected; the connection response module is used for receiving and responding to a connection request sent by the second electronic equipment to the first electronic equipment based on the broadcast request so as to establish communication connection with the second electronic equipment, wherein the distance between the second electronic equipment and the first electronic equipment is within a preset distance range; the information receiving module is used for receiving the time information sent by the second electronic equipment; and the updating module is used for updating the first local time of the first electronic equipment according to the time information.
In some embodiments, the time information includes a second local time and a second synchronization time, the second local time is a local time of the second electronic device, and the second synchronization time is a time when the second electronic device performs time synchronization with the second server last time, where the update module is specifically configured to: acquiring first synchronization time of the first electronic equipment for time synchronization with the first server last time; and updating the first local time by using the second local time when the second local time meets the preset time range and the second synchronous time is later than the first synchronous time.
In some embodiments, the apparatus further comprises a detection module configured to: acquiring first synchronization time of the first electronic equipment for time synchronization with the first server last time; and when the time interval between the first synchronization time and the first local time is greater than a first preset threshold value, judging that a preset condition is satisfied.
In some embodiments, the apparatus further comprises a detection module, and the detection module is further configured to: and when the time synchronization with the first server is not successfully carried out within the preset time length, judging that the preset condition is satisfied.
In some embodiments, the apparatus further comprises a detection module, and the detection module is further configured to: receiving an encrypted data packet which is sent by a mobile terminal and is based on a time encryption strategy; and when the encrypted data packet is not decrypted, judging that the preset condition is satisfied.
According to another aspect of the present application, there is provided a time update apparatus applied to a second electronic device, including: the device comprises a request receiving module, a time updating module and a time updating module, wherein the request receiving module is used for receiving a broadcast request of time updating initiated by first electronic equipment when a preset condition is detected to be satisfied, and the distance between the first electronic equipment and second electronic equipment is within a preset distance range; the connection request module is used for sending a connection request to the first electronic equipment based on the broadcast request so that the first electronic equipment receives and responds to the connection request and establishes communication connection with the second electronic equipment; the information sending module is used for sending the time information to the first electronic device so that the first electronic device updates the first local time of the first electronic device according to the time information.
In some embodiments, the broadcast request includes a first type identifier of the first electronic device, and the connection request module includes: a first obtaining unit, configured to obtain a first type identifier in a broadcast request; the second obtaining unit is used for obtaining a second type identifier of the second electronic equipment; the judging unit is used for judging whether the connection request initiating condition is met or not when the first type identification is consistent with the second type identification; and the sending unit is used for sending the connection request to the first electronic equipment when the connection request initiating condition is met.
In some embodiments, the determining unit is specifically configured to: acquiring second synchronization time of the second electronic equipment, which is used for performing time synchronization with the second server at the latest time; acquiring a second local time of the second electronic device; and when the time interval between the second synchronous time and the second local time is greater than a second preset threshold value, judging that the connection request initiating condition is met.
According to another aspect of the present application, there is provided an electronic device including: the device comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium are communicated through the bus, and the processor executes the machine-readable instructions to execute the time updating method applied to the first electronic device or the time updating method applied to the second electronic device.
According to another aspect of the present application, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the time updating method as applied to a first electronic device as described above, or performs the steps of the time updating method as applied to a second electronic device as described above.
Based on the time updating method, the device, the electronic device and the storage medium, when the first electronic device detects that the time synchronization with the first server cannot be realized, a broadcast request of time updating is initiated, the second electronic device receives the broadcast request and sends a connection request to the first electronic device based on the broadcast request, the first electronic device responds to the connection request and establishes communication connection with the second electronic device, the second electronic device sends time information to the first electronic device, and the first electronic device updates the local time of the first electronic device according to the time information, so that the local time of the first electronic device can be updated through the time information of the second electronic device under the condition that the time synchronization between the first electronic device and the first server cannot be realized, and the time of the second electronic device comes from the second server which keeps time synchronization with the first server, therefore, the updated local time of the first electronic device can be kept consistent with the time of the first server as much as possible, and the abnormal situation of the processing flow of the first server caused by the time error of the first electronic device is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view illustrating an application scenario of a time updating method provided in an embodiment of the present application;
fig. 2 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application;
FIG. 3 is a flow chart illustrating a time update method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a specific method for updating a first local time of a first electronic device in the time updating method of fig. 2 according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a specific method for detecting whether a preset condition is satisfied in the time updating method of fig. 2 according to an embodiment of the present disclosure;
FIG. 6 is a flow chart of another time update method provided by the embodiment of the present application;
fig. 7 is a flowchart illustrating a specific method for initiating a connection request in the time updating method of fig. 6 according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a specific method for determining whether a connection request initiation condition is satisfied in the specific method for initiating a connection request in fig. 7 according to an embodiment of the present application;
fig. 9 is a schematic structural diagram illustrating a time update apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram illustrating another time update apparatus provided in an embodiment of the present application;
fig. 11 is a schematic diagram illustrating a specific structure of a connection request module in the time updating apparatus of fig. 10 according to an embodiment of the present application.
Icon: 10-a first electronic device; 20-a first server; 30-a second electronic device; 40-a second server; 50-an electronic device; 51-a network port; 52-a processor; 53-a communication bus; 54-a storage medium; a 55-I/O interface; 100-time updating means applied to the first electronic device; 110-an initiating module; 120-connect response module; 130-an information receiving module; 140-an update module; 150-a detection module; 200-time updating means applied to the second electronic device; 210-a request receiving module; 220-connection request module; 2201-a first acquisition unit; 2202-a second obtaining unit; 2203-a judging unit; 2204-a transmitting unit; 230-an information sending module; .
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
To enable those skilled in the art to use the present disclosure, the following embodiments are presented in conjunction with a specific application scenario "time update for sharing a single vehicle". It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Although the present application is described primarily in the context of sharing time updates for a single vehicle, it should be understood that this is merely one exemplary embodiment.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
In a specific application scenario of the sharing bicycle, the sharing bicycle includes a vehicle-mounted chip, and when a data packet is sent to the server, time information is usually carried, the time information is generated according to a timer in the vehicle-mounted chip, the time of the timer of the vehicle-mounted chip may be advanced or delayed along with the extension of the service time, and in order to ensure the consistency between the time of the vehicle-mounted chip and the server, the vehicle-mounted chip is usually time-synchronized with the server periodically.
However, in some cases, the vehicle-mounted chip may lose the ability to directly synchronize with the server (e.g., enter a tunnel, and a network signal becomes poor), and at this time, the vehicle-mounted chip may not be synchronized with the server for a long time, and thus the time of the vehicle-mounted chip may be greatly different from that of the server.
The time updating method, the time updating device, the electronic device and the storage medium provided by the embodiment of the application can enable the vehicle-mounted chip to still keep the synchronization time basically same as that of the server when the vehicle-mounted chip cannot be directly synchronized with the server, and the method, the device, the electronic device and the storage medium are described in detail below.
It should be noted that, for convenience of description, the embodiment of the present application is described by taking a shared bicycle as an example, but it does not mean that the embodiment of the present application can only be applied to an application scenario of the shared bicycle, and in other application scenarios similar to the application scenario, for example, an application scenario for a wearable device (smart helmet, smart glasses, bracelet, and the like), a person skilled in the art can obtain technical solutions applicable to these scenarios without creative labor according to the time update technical solutions disclosed in the embodiments of the present application, and the embodiment of the present application belongs to a reasonable extension of the technical solutions disclosed in the embodiments of the present application, and shall also be within the scope of protection of the present application.
Referring to fig. 1, fig. 1 is a schematic view illustrating an application scenario of a time update method according to an embodiment of the present application, in fig. 1, a first electronic device 10 is in communication connection with a first server 20, where the communication connection is a wireless or wired connection, at least one second electronic device 30 is in communication connection with at least one second server 40, where the communication connection is a wireless or wired connection, the first server 20 is in communication connection with the second server 40, where the communication connection is a wireless or wired connection, a distance between the first electronic device 10 and the second electronic device 30 is within a preset distance range, and the preset distance range is within a range allowed by near field communication, and the near field communication modes include, but are not limited to, bluetooth, wireless local area network WLAN, WIFI, NFC, and the like.
It should be noted that there may be a plurality of second electronic devices 30, each second electronic device 30 may be communicatively connected to a separate second server 40, and a plurality of second electronic devices 30 may also be communicatively connected to the same second server 40. The first server 20 and the second server 40 may be the same server or different servers.
The first electronic device 10 and the second electronic device 30 may be devices with a control chip and a near field communication function, such as a sharing bicycle, a smart helmet, a bracelet, smart glasses, and the like.
The first server 20 and the second server 40 may be a physical server or a group of physical servers, a cloud server, or a virtual server or a group of virtual servers that can perform the same function as the physical server.
Normally, the first electronic device 10 is time-synchronized with the first server 20, the second electronic device 30 is time-synchronized with the second server 40, and the first server 20 is time-synchronized with the second server 40.
When the time synchronization between the first electronic device 10 and the first server 20 is not possible, the first electronic device 10 transmits a broadcast request through the near field communication technology to establish a communication connection with the second electronic device 30, and updates the local time according to the received time information transmitted by the second electronic device 30, thereby ensuring that the local time of the first electronic device 10 and the time of the first server 20 are kept as consistent as possible due to the time synchronization between the first server 20 and the second server 40.
Based on fig. 1, the embodiment of the present application provides a schematic structural diagram of exemplary hardware and software components of an electronic device that can implement the idea of the present application. Referring to fig. 2, fig. 2 is a schematic structural diagram of an electronic device 50 according to an embodiment of the present disclosure. The electronic device 50 may be the first electronic device 10 in fig. 1, or may be the second electronic device 30 in fig. 1.
The electronic device 50 may be a device including a control chip and having a short-range communication function, may be a sharing bicycle with a vehicle-mounted chip and a bluetooth function, and may be a wearable device with a control chip and a wifi function, such as a smart helmet.
The electronic device 50 may include a network port 51 for connection to a network, one or more processors 52 for executing program instructions, a communication bus 53, various forms of storage media 54, and Input/Output (I/O) I/O interfaces 55 with other Input/Output devices (e.g., keyboard, display screen).
In some embodiments, processor 52 may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). Merely by way of example, the Processor may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller Unit, a Reduced Instruction Set computer (Reduced Instruction Set computer), a microprocessor, or the like, or any combination thereof, and as one embodiment, the Processor 52 may share a chip on board a single vehicle.
In some embodiments, the storage medium 54 may be a disk, ROM, or RAM, or any combination thereof. Illustratively, the electronic device 50 may also include program instructions stored in ROM, RAM, or other types of non-transitory storage media, or any combination thereof. The above-described time update method of the present application can be implemented according to these program instructions.
When the electronic device 50 is the first electronic device 10 in fig. 1, the storage medium 54 of the electronic device 50 is used for storing a program, for example, a time updating apparatus applied to the first electronic device 10, and the processor 52 is used for executing the program from the storage medium 54 to implement a time updating method applied to the first electronic device 10; when the electronic device 50 is the second electronic device 30 in fig. 1, the storage medium 54 of the electronic device 50 is used for storing a program, for example, a time updating apparatus applied to the second electronic device 30, and the processor 52 is used for executing the program from the storage medium 54 to implement the time updating method applied to the second electronic device 30.
It should be noted that only one processor is depicted in the electronic device 50 for ease of illustration. It should be noted, however, that the electronic device 50 in the present application may also include multiple processors, and thus the steps performed by one processor described in the present application may also be performed by multiple processors in combination or individually. For example, if the processor of the electronic device 50 executes steps a and B, it should be understood that steps a and B may also be executed by two different processors together or separately in one processor. For example, a first processor performs step a and a second processor performs step B, or the first processor and the second processor perform steps a and B together.
Based on the description of the electronic device 50 in fig. 2, the embodiment of the present application first describes a time updating method, please refer to fig. 3, and fig. 3 shows a flowchart of a time updating method provided by the embodiment of the present application, which can be executed by the first electronic device 10 in fig. 1, and includes the following steps:
step S101, when detecting that the preset condition is established, initiating a broadcast request of time update.
In this embodiment, the preset condition is that the local time of the first electronic device 10 may not be consistent with the time of the first server 20, and cannot be synchronized with the first server 20 normally, at this time, the first electronic device 10 sends a broadcast request for time update to obtain the time information from the second electronic device 30, so as to update the local time.
Step S102, a connection request sent by a second electronic device to a first electronic device based on a broadcast request is received and responded to so as to establish communication connection with the second electronic device, wherein the distance between the second electronic device and the first electronic device is within a preset distance range.
In this embodiment, since the first electronic device 10 and the second electronic device 30 both have the short-range communication function, the broadcast request sent by the first electronic device 10 can reach the second electronic device 30 within the preset distance range, taking bluetooth as an example, when the short-range communication technology such as bluetooth is adopted, the preset distance range is 10 meters, that is, on the premise of ensuring transmission quality and transmission efficiency, the working range of bluetooth is about 10 meters, and the bluetooth technology after increasing radio frequency power can work within a range of 100 meters, that is, the preset distance range is 100 meters at this time.
In this embodiment, there may be a plurality of second electronic devices 30 within the preset range, and the second electronic device 30 that receives the broadcast request will send the connection request to the first electronic device 10 only when the preset connection condition is satisfied. After the first electronic device 10 receives and responds to the connection request, the first electronic device 10 establishes a communication connection with the second electronic device 30, and further data exchange can be performed.
And step S103, receiving the time information sent by the second electronic equipment.
In the present embodiment, the time information is used to represent the local time of the second electronic device 30, the information of the synchronized local time, and the like.
Step S104, updating the first local time of the first electronic device according to the time information.
In this embodiment, the first electronic device 10 first determines whether the time information is valid information, and if so, updates its local time according to the time information.
According to the time updating method provided by the embodiment of the application, when the first electronic device 10 and the first server cannot perform time synchronization, the communication connection is established with the second electronic device 30 through the broadcast message, and the local time of the first electronic device 10 is updated based on the time information of the second electronic device 30, so that the local time of the first electronic device 10 in an offline scene is updated in time, and the abnormality of the processing flow of the first server caused by the time inconsistency between the first electronic device and the first server is avoided.
Referring to fig. 4, fig. 4 shows a flowchart of a specific method for updating the first local time of the first electronic device 10 in the time updating method of fig. 2 provided in the embodiment of the present application, namely step S104, where the step S104 includes the following sub-steps:
in sub-step S1041, a first synchronization time of the first electronic device, which is the latest time of time synchronization with the first server, is obtained.
And a sub-step S1042 of updating the first local time with the second local time when the second local time satisfies the preset time range and the second synchronization time is later than the first synchronization time.
In this embodiment, the time information sent by the second electronic device 30 may include a second local time and a second synchronization time, where the second local time is a local time of the second electronic device 30, and the second synchronization time is a time when the second electronic device 30 performs time synchronization with the second server 40 last time.
In this embodiment, it is determined whether the second local time meets the preset time range, so as to exclude a case that the second local time is obviously unreasonable, for example, the current time is 2019, but the second local time is 2018, 10 and 20, obviously, the second local time of the second electronic device 30 is obviously unreasonable, and the first local time cannot be updated by the unreasonable second local time.
In the embodiment, after excluding the time that the second local time is not obviously unreasonable, it is further required to determine whether the latest synchronization time (i.e. the second synchronization time) between the second electronic device 30 and the second server 40 is later than the first synchronization time, and if not, the first local time cannot be updated by the second local time.
It should be noted that there may be a plurality of second electronic devices 30, at this time, each second electronic device 30 may establish a communication connection with the first electronic device 10 according to the sequence of receiving the broadcast request, and at this time, the first electronic device 10 may have two processing methods: the method comprises the following steps: once a second electronic device 30 establishes a connection with itself, no connection request of other second electronic devices 30 is received; the second method comprises the following steps: the connection is established with each second electronic device 30 one by one, based on the first local time after the time information of the last second electronic device 30 that has established connection with itself is successfully updated, for example, the first electronic device 10 is device a, the second electronic devices 30 are device B and device C, time T1, device a updates the local time to time T1 and time T2 according to the time information of device B, device a updates the local time to time T2 according to the time information of device C, and finally, the local time of device a is time T2. If the time information of the device B and the device C cannot meet the update condition required by the device a (that is, the device B and the device C are not in the preset time range or the second synchronization time of the device B and the device C is not later than the first synchronization time), at this time, the device a may initiate the broadcast request again and continue to search for the second electronic device 30.
The time updating method provided by the embodiment of the application excludes the condition that the second local time is obviously unreasonable and the condition that the synchronization time of the second local time is earlier than the first local time, so that the second local time for updating the first local time is reasonable and updated latest, and the updated first local time is more accurate.
Referring to fig. 5, fig. 5 is a flowchart illustrating a specific method for detecting whether a preset condition is satisfied in the time updating method of fig. 2 provided in the embodiment of the present application, where at least the following three methods are detected whether the preset condition is satisfied, and fig. 5(a) is a flowchart of a first method: the first method comprises the following steps:
step S201, a first synchronization time when the first electronic device performs time synchronization with the first server last time is obtained.
Step S202, when a time interval between the first synchronization time and the first local time is greater than a first preset threshold, determining that a preset condition is satisfied.
In this embodiment, the first preset threshold is used to represent a time period from the last time of time synchronization with the first server, that is, how long the first electronic device 10 has not time synchronized with the first server 20, and the first preset threshold may be set according to a specific application scenario, for example, the first preset threshold is 24 hours. The time can be set to 12 hours, 48 hours and the like according to practical application scenes.
Fig. 5(b) shows a flow chart of a second method, which comprises the following steps:
step S301, when the time synchronization with the first server is not successfully performed within the preset time, determining that the preset condition is satisfied.
In this embodiment, the preset time duration may be set according to a specific application scenario, for example, the preset time duration may be 24 hours or 12 hours, and the preset time duration may be the same as or different from the first preset threshold in step S202.
Fig. 5(c) shows a flow chart of method three, which includes the following steps:
step S401, receiving an encrypted data packet based on a time encryption strategy sent by the mobile terminal.
In this embodiment, taking the first electronic device 10 as an example of a sharing bicycle, a key of the lock information of the sharing bicycle is generated based on time, and the sharing bicycle decrypts the encrypted lock information sent by the mobile terminal according to the key, and the lock can be unlocked normally after the decryption is successful.
In step S402, when the encrypted data packet is not decrypted, it is determined that a preset condition is satisfied.
In this embodiment, if the first electronic device 10 fails to decrypt the data packet, it is determined that the local time may be incorrect, and then a broadcast request for time update is issued when the preset condition is determined to be satisfied.
The time updating method provided by the embodiment of the present application fully considers the preset conditions that the various first electronic devices 10 need to send the broadcast request for time updating, and can ensure that the first local time can be updated in time when the first local time is abnormal in various application scenarios.
In this embodiment, since the time information is from the second electronic device 30, in order to obtain the time information of the second electronic device 30 timely and accurately, another time updating method is provided in this embodiment of the present application, please refer to fig. 6, and fig. 6 shows a flowchart of another time updating method provided in this embodiment of the present application, which can be executed by the second electronic device 30 in fig. 1, and includes the following steps:
step S501, receiving a broadcast request of time update initiated by a first electronic device when a preset condition is detected to be satisfied, where a distance between the first electronic device and a second electronic device is within a preset distance range.
Step S502, a connection request is sent to the first electronic device based on the broadcast request, so that the first electronic device receives and responds to the connection request to establish communication connection with the second electronic device.
In the present embodiment, taking bluetooth as an example, the process of establishing the communication connection between the first electronic device 10 and the second electronic device 30 is as follows:
first, the first electronic device 10 pages (pages) the second electronic device 30 within a preset distance range in a frequency modulation manner.
Next, the second electronic device 30 scans (scan) external pages, i.e. page scan, at regular intervals, and responds to the external pages when the external pages are scanned, and at this time, a Link connection, i.e. an association of bluetooth physical ACL links (ACLs), is established between the first electronic device 10 and the second electronic device 30.
Third, after the ACL Link connection is established, the second electronic device 30 may initiate a channel connection request, that is, a connection of a Logical Link Control and Adaptation Layer Protocol L2CAP (L2 CAP).
Fourth, the second electronic device 30 uses a Session Description Protocol SDP (SDP) to query the hands-free service of the first electronic device 10, and obtains a channel number of the rfcomm Protocol based on serial (9-pin RS-232) emulation of the L2CAP Protocol. The second electronic device 30 will then initiate a connection request of the rfcomm protocol to establish a connection of the rfcomm protocol, thereby completing the communication connection between the first electronic device 10 and the second electronic device 30.
Step S503, sending the time information to the first electronic device, so that the first electronic device updates the first local time of the first electronic device according to the time information.
According to the time updating method provided by the embodiment of the application, the communication connection is established between the first electronic device 10 and the second electronic device 30, and the time information of the second electronic device 30 is timely sent to the first electronic device 10, so that the local time of the first electronic device 10 can be timely updated.
Referring to fig. 7, fig. 7 shows a flowchart of a specific method for initiating a connection request in the time updating method of fig. 6 provided in the embodiment of the present application, and step S502 includes the following sub-steps:
sub-step S5021, obtains the first type identifier in the broadcast request.
In this embodiment, the first type Identifier is an Identifier for characterizing a type of the first electronic device 10, taking the first electronic device 10 with a bluetooth function as an example, the first type Identifier may be a Universally Unique Identifier UUID (UUID) of the first electronic device 10, where the UUID includes 128 as a feature field and a 128-bit bluetooth service field, and bluetooth modules of different manufacturers may respectively define bluetooth services and feature words.
In sub-step S5022, a second type identifier of the second electronic device is obtained.
In this embodiment, the second type identifier is similar to the first type identifier, and is not described herein again.
And a substep S5023, when the first type identifier is consistent with the second type identifier, determining whether the connection request initiation condition is satisfied.
In this embodiment, taking the first electronic device 10 and the second electronic device 30 with bluetooth function as an example, the first type identifier is the same as the second type identifier, which may specifically mean that the feature field and the bluetooth service field in the first type identifier and the second type identifier are the same, that is, the second electronic device 30 and the first electronic device 10 are the same manufacturer. For the case that the second electronic device 30 and the first electronic device 10 are not of the same manufacturer, the second electronic device 30 does not continuously determine whether the connection request initiation condition is satisfied, and ends the processing, at this time, the communication connection between the second electronic device 30 and the first electronic device 10 is not established any more.
In this embodiment, the connection request initiation condition is a condition that the second electronic device 30 determines that the local time information can be sent to the first electronic device 10, so as to avoid that the second electronic device 30 sends inaccurate time information to the first electronic device 10, which may cause an error in updating the local time of the first electronic device 10.
And a sub-step S5024 of sending a connection request to the first electronic device when the connection request initiation condition is satisfied.
Referring to fig. 8, fig. 8 is a flowchart illustrating a specific method for determining whether a connection request initiation condition is satisfied in the specific method for initiating a connection request in fig. 7 provided in the embodiment of the present application, where the method is implemented on the basis of the foregoing embodiment, and the method includes the following steps:
step S601, obtaining a second synchronization time of the second electronic device, which is the latest time of time synchronization with the second server.
Step S602, a second local time of the second electronic device is obtained.
Step S603, when a time interval between the second synchronization time and the second local time is greater than a second preset threshold, determining that the connection request initiation condition is satisfied.
In this embodiment, the second preset threshold may be set according to actual scene needs, for example, the second preset threshold is set to 1 hour, that is, the time synchronization with the second server 40 is performed within 1 hour last time, so that it can be ensured that the second local time is a relatively trusted time, the second preset threshold may be set according to the requirement of the actual application scene on the credibility of the time, when the requirement of the credibility is high, the second preset threshold is reduced, and when the requirement of the credibility is low, the second preset threshold is increased.
Based on the same inventive concept, the embodiment of the present application further provides a time updating apparatus applied to the first electronic device, and corresponds to the time updating method applied to the first electronic device, and since the principle of the apparatus in the embodiment of the present application to solve the problem is similar to the time updating method applied to the first electronic device in the embodiment of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a time update apparatus 100 applied to a first electronic device according to an embodiment of the present application, where the apparatus includes: the system comprises an initiating module 110, a connection response module 120, an information receiving module 130 and an updating module 140; wherein the content of the first and second substances,
the initiating module 110 is configured to initiate a broadcast request for time update when it is detected that a preset condition is met.
And a connection response module 120, configured to receive and respond to a connection request sent by a second electronic device to a first electronic device based on the broadcast request, so as to establish a communication connection with the second electronic device, where a distance between the second electronic device and the first electronic device is within a preset distance range.
The information receiving module 130 is configured to receive time information sent by the second electronic device;
the updating module 140 is configured to update the first local time of the first electronic device according to the time information.
According to the embodiment of the application, when the first electronic device 10 and the first server cannot perform time synchronization, the communication connection is established with the second electronic device 30 through the broadcast message, and the local time of the first electronic device 10 is updated based on the time information of the second electronic device 30, so that the local time of the first electronic device 10 in an offline scene is updated in time, and the abnormality of the processing flow of the first server caused by the time inconsistency between the first electronic device and the first server is avoided.
In a possible implementation manner, the time information includes a second local time and a second synchronization time, the second local time is a local time of the second electronic device, and the second synchronization time is a time when the second electronic device performs time synchronization with the second server last time, where the update module 140 is specifically configured to:
acquiring first synchronization time of the first electronic equipment for time synchronization with the first server last time; and updating the first local time by using the second local time when the second local time meets the preset time range and the second synchronous time is later than the first synchronous time.
In a possible implementation manner, the time update apparatus 100 applied to the first electronic device further includes a detection module 150, where the detection module 150 is configured to: acquiring first synchronization time of the first electronic equipment for time synchronization with the first server last time; and when the time interval between the first synchronization time and the first local time is greater than a first preset threshold value, judging that a preset condition is satisfied.
In a possible implementation, the detection module 150 is further configured to: and when the time synchronization with the first server is not successfully carried out within the preset time length, judging that the preset condition is satisfied.
In a possible implementation, the detection module 150 is further configured to: receiving an encrypted data packet which is sent by a mobile terminal and is based on a time encryption strategy; and when the encrypted data packet is not decrypted, judging that the preset condition is satisfied.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Based on the same inventive concept, the embodiment of the present application further provides a time updating apparatus applied to the second electronic device, and corresponds to the time updating method applied to the second electronic device, and as the principle of the apparatus in the embodiment of the present application to solve the problem is similar to the time updating method applied to the second electronic device described above in the embodiment of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 10, a schematic structural diagram of a time update apparatus 200 applied to a second electronic device 30 according to an embodiment of the present application is shown, where the apparatus includes: a request receiving module 210, a connection request module 220 and an information transmitting module 230; wherein the content of the first and second substances,
a request receiving module 210, configured to receive a broadcast request of time update initiated by a first electronic device when a preset condition is detected to be satisfied, where a distance between the first electronic device and a second electronic device is within a preset distance range.
The connection request module 220 is configured to send a connection request to the first electronic device based on the broadcast request, so that the first electronic device receives and responds to the connection request to establish a communication connection with the second electronic device.
The information sending module 230 is configured to send the time information to the first electronic device, so that the first electronic device updates the first local time of the first electronic device according to the time information.
According to the embodiment of the application, the communication connection is established between the first electronic device 10 and the second electronic device 30, and the time information of the second electronic device 30 is timely sent to the first electronic device 10, so that the local time of the first electronic device 10 can be timely updated.
In a possible implementation manner, the broadcast request includes a first type identifier of the first electronic device, and the connection request module 220 includes a first obtaining unit 2201, a second obtaining unit 2202, a determining unit 2203, and a sending unit 2204, please refer to fig. 11, where fig. 11 illustrates a specific structural diagram of the connection request module in the time updating apparatus of fig. 10 according to an embodiment of the present disclosure.
A first obtaining unit 2201, configured to obtain the first type identifier in the broadcast request.
A second obtaining unit 2202, configured to obtain a second type identifier of a second electronic device.
A judging unit 2203, configured to judge whether the connection request initiation condition is satisfied when the first type identifier is consistent with the second type identifier.
A sending unit 2204, configured to send a connection request to the first electronic device when the connection request initiation condition is satisfied.
In one possible implementation, the determining unit 2203 is specifically configured to:
acquiring second synchronization time of the second electronic equipment, which is used for performing time synchronization with the second server at the latest time; acquiring a second local time of the second electronic device; and when the time interval between the second synchronous time and the second local time is greater than a second preset threshold value, judging that the connection request initiating condition is met.
Embodiments of the present application also provide a computer-readable storage medium, having a computer program stored thereon, where the computer program is executed by a processor to perform the steps of the time updating method applied to the first electronic device or the steps of the time updating method applied to the second electronic device.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the system and the apparatus described above may refer to the corresponding process in the method embodiment, and is not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A time updating method applied to a first electronic device, the method comprising:
when detecting that a preset condition is established, initiating a broadcast request for time updating;
receiving and responding to a connection request sent by a second electronic device to the first electronic device based on the broadcast request so as to establish communication connection with the second electronic device, wherein the distance between the second electronic device and the first electronic device is within a preset distance range, the number of the second electronic devices is multiple, the broadcast request comprises a first type identifier of the first electronic device, and the way for the second electronic device to send the connection request to the first electronic device based on the broadcast request is as follows: acquiring the first type identification in the broadcast request; acquiring a second type identifier of the second electronic equipment; when the first type identification is consistent with the second type identification, judging whether a connection request initiating condition is met; when the connection request initiating condition is met, sending a connection request to the first electronic equipment;
receiving time information sent by the second electronic equipment;
and updating the first local time of the first electronic equipment according to the time information.
2. The method according to claim 1, wherein the time information includes a second local time and a second synchronization time, the second local time is a local time of the second electronic device, the second synchronization time is a time when the second electronic device last performed time synchronization with the second server, and the step of updating the first local time of the first electronic device according to the time information includes:
acquiring first synchronization time of the first electronic equipment for time synchronization with a first server at the last time;
and when the second local time meets a preset time range and the second synchronization time is later than the first synchronization time, updating the first local time by using the second local time.
3. The method of claim 1, wherein the step of initiating a broadcast request for a time update when the preset condition is detected to be met is preceded by the step of:
acquiring first synchronization time of the first electronic equipment for time synchronization with a first server at the last time;
and when the time interval between the first synchronization time and the first local time is greater than a first preset threshold value, judging that the preset condition is satisfied.
4. The method of claim 1, wherein the step of initiating a broadcast request for a time update when the preset condition is detected to be met is preceded by the step of:
and when the time synchronization with the first server is not successfully carried out within the preset time length, judging that the preset condition is satisfied.
5. The method of claim 1, wherein the first electronic device is communicatively coupled to a mobile terminal, and wherein the step of initiating a broadcast request for a time update upon detecting that a predetermined condition is met further comprises:
receiving an encrypted data packet which is sent by the mobile terminal and is based on a time encryption strategy;
and when the encrypted data packet is not decrypted, judging that the preset condition is satisfied.
6. A time updating method is applied to a plurality of second electronic devices, and comprises the following steps:
receiving a broadcast request of time update initiated by first electronic equipment when a preset condition is detected to be satisfied, wherein the distance between the first electronic equipment and the second electronic equipment is within a preset distance range;
sending a connection request to the first electronic device based on the broadcast request so that the first electronic device can receive and respond to the connection request to establish communication connection with the second electronic device, wherein the broadcast request comprises a first type identification of the first electronic device;
sending time information to the first electronic device, so that the first electronic device updates a first local time of the first electronic device according to the time information;
the step of transmitting a connection request to the first electronic device based on the broadcast request comprises:
acquiring the first type identification in the broadcast request;
acquiring a second type identifier of the second electronic equipment;
when the first type identification is consistent with the second type identification, judging whether a connection request initiating condition is met;
and when the connection request initiating condition is met, sending a connection request to the first electronic equipment.
7. The method of claim 6, wherein the step of determining whether the connection request initiation condition is satisfied comprises:
acquiring second synchronization time of the second electronic equipment, which is used for performing time synchronization with a second server at the latest time;
acquiring a second local time of the second electronic device;
and when the time interval between the second synchronization time and the second local time is greater than a second preset threshold, judging that the connection request initiating condition is met.
8. A time updating device applied to a first electronic device, the device comprising:
the initiating module is used for initiating a broadcast request of time updating when the fact that a preset condition is established is detected;
a connection response module, configured to receive and respond to a connection request sent by a second electronic device to the first electronic device based on the broadcast request, so as to establish a communication connection with the second electronic device, where a distance between the second electronic device and the first electronic device is within a preset distance range, the second electronic device is multiple, the broadcast request includes a first type identifier of the first electronic device, and a manner in which the second electronic device sends the connection request to the first electronic device based on the broadcast request is as follows: acquiring the first type identification in the broadcast request; acquiring a second type identifier of the second electronic equipment; when the first type identification is consistent with the second type identification, judging whether a connection request initiating condition is met; when the connection request initiating condition is met, sending a connection request to the first electronic equipment;
the information receiving module is used for receiving the time information sent by the second electronic equipment;
and the updating module is used for updating the first local time of the first electronic equipment according to the time information.
9. A time updating device applied to a plurality of second electronic devices, the device comprising:
a request receiving module, configured to receive a broadcast request of time update initiated by a first electronic device when a preset condition is detected to be satisfied, where a distance between the first electronic device and the second electronic device is within a preset distance range, and the broadcast request includes a first type identifier of the first electronic device;
the connection request module is used for sending a connection request to the first electronic equipment based on the broadcast request so as to enable the first electronic equipment to receive and respond to the connection request and establish communication connection with the second electronic equipment, and the connection request module comprises a first acquisition unit, a second acquisition unit, a judgment unit and a sending unit;
the first obtaining unit is configured to obtain a first type identifier in the broadcast request;
a second obtaining unit, configured to obtain a second type identifier of the second electronic device;
the judging unit is used for judging whether a connection request initiating condition is met or not when the first type identification is consistent with the second type identification;
a sending unit, configured to send a connection request to the first electronic device when a connection request initiation condition is satisfied;
and the information sending module is used for sending time information to the first electronic equipment so that the first electronic equipment updates the first local time of the first electronic equipment according to the time information.
10. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the time update method according to any one of claims 1 to 5 or to perform the time update method according to any one of claims 6 to 7.
11. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the time update method according to one of the claims 1 to 5, or performs the steps of the time update method according to one of the claims 6 to 7.
CN201911410396.6A 2019-12-31 2019-12-31 Time updating method and device, electronic equipment and storage medium Active CN111865460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911410396.6A CN111865460B (en) 2019-12-31 2019-12-31 Time updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911410396.6A CN111865460B (en) 2019-12-31 2019-12-31 Time updating method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111865460A CN111865460A (en) 2020-10-30
CN111865460B true CN111865460B (en) 2022-08-09

Family

ID=72970764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911410396.6A Active CN111865460B (en) 2019-12-31 2019-12-31 Time updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111865460B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112512027A (en) * 2020-12-25 2021-03-16 浪潮电子信息产业股份有限公司 Server, communication method, system and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970125A (en) * 2012-10-25 2013-03-13 中兴通讯股份有限公司 Method and device for synchronizing time in close distance
CN103501534A (en) * 2013-09-17 2014-01-08 福州瑞芯微电子有限公司 Method for time synchronization on mobile equipment
CN105515750A (en) * 2014-10-20 2016-04-20 中兴通讯股份有限公司 Time synchronization method and apparatus based on Bluetooth communication
CN109347593A (en) * 2018-11-30 2019-02-15 广东美的制冷设备有限公司 Equipment and its method for synchronizing time and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458496B (en) * 2012-06-04 2019-02-01 中兴通讯股份有限公司 A kind of method for synchronizing time and system using WiFi-direct
WO2016008068A1 (en) * 2014-07-14 2016-01-21 华为技术有限公司 Method for controlling wearable electronic device, central apparatus and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970125A (en) * 2012-10-25 2013-03-13 中兴通讯股份有限公司 Method and device for synchronizing time in close distance
CN103501534A (en) * 2013-09-17 2014-01-08 福州瑞芯微电子有限公司 Method for time synchronization on mobile equipment
CN105515750A (en) * 2014-10-20 2016-04-20 中兴通讯股份有限公司 Time synchronization method and apparatus based on Bluetooth communication
CN109347593A (en) * 2018-11-30 2019-02-15 广东美的制冷设备有限公司 Equipment and its method for synchronizing time and computer readable storage medium

Also Published As

Publication number Publication date
CN111865460A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
US9942759B2 (en) Communication apparatus
EP3641382A1 (en) Wireless link monitoring method and device
EP2950494B1 (en) Machine-type communication downlink data transmission method, base station and use equipment
TWI575917B (en) Establishing reliable routes without expensive mesh peering
US9774580B2 (en) Mesh network with personal pre-shared keys
US20140301289A1 (en) Network-assisted to direct device discovery switch
CN108886685B (en) Terminal matching method and device
JP7224855B2 (en) Communication device, control method and program
WO2017003337A1 (en) Bluetooth low energy address resolving
WO2016008344A1 (en) Wireless connection establishing methods and wireless connection establishing apparatuses
EP2536247B1 (en) Wireless communication apparatus that operates as master station or remote station in wireless network and computer readable medium
US20180241570A1 (en) Security authentication method, configuration method, and related device
EP3763164B1 (en) Electronic device supporting multiple wireless communication protocols and method therefor
CN104918242B (en) Slave base station key updating method, slave base station, terminal and communication system
CN104009925A (en) Method and device for establishing bridge connection with router and router
US20130301833A1 (en) System and Method for Establishing a Secure Connection in Communications Systems
CN106686669B (en) Synchronization method and device
WO2016029847A1 (en) Methods and apparatus for switching between a wired communication and a wireless communication
EP3182787B1 (en) Communication method and device
CN114731515A (en) Integrity protection of radio resource control messages
CN111865460B (en) Time updating method and device, electronic equipment and storage medium
KR20190089346A (en) Electronic apparatus, terminal, method for controlling thereof and computer program product thereof
US11317468B2 (en) Apparatus and method for performing data communication in nan protocol-based network environment
JP5481685B2 (en) Time synchronization method and computer system
JP7256633B2 (en) Communication device, control method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220824

Address after: 311199 Room 301, No. 108, Xincheng Road, Nanyuan street, Linping District, Hangzhou City, Zhejiang Province

Patentee after: HANGZHOU QINGQI SCIENCE AND TECHNOLOGY Co.,Ltd.

Address before: Room 203, 2 / F, building 34, yard 8, Dongbei Wangxi Road, Haidian District, Beijing 100193

Patentee before: Beijing Qisheng Technology Co.,Ltd.

TR01 Transfer of patent right