Time synchronization method, apparatus, device, and storage medium
By using communication modules based on 5G or ultra-wideband protocols and IEEE protocol configuration in high-capacity device scenarios, the problem of high-precision time synchronization that cannot be achieved in existing technologies has been solved, realizing high-precision time synchronization of multiple user devices and meeting industrial needs.
Patent Information
- Application Number
- CN202310104645.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-30
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2043-01-30
AI Technical Summary
Existing technologies cannot achieve high-precision time synchronization in high-capacity device scenarios. Specific constraint algorithm models and threshold settings have poor scenario transferability and cannot meet industrial needs.
The communication module is configured based on 5G or ultra-wideband protocols. It sends clock signals, timestamps and second pulse signals to user equipment through the base station for time synchronization. It combines IEEE 802154, 6LOPAN and IEEE 1588 protocols for network layer and application layer configuration to achieve high-precision time synchronization.
It achieves high-precision time synchronization in high-capacity device scenarios, reduces clock latency, supports multi-user device connections, and meets industrial needs.
Smart Images

Figure CN116113030B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of time synchronization, and particularly relates to a time synchronization method, device and equipment and a storage medium. BACKGROUND
[0002] At present, high-precision time synchronization is crucial to the development of various industries. Specifically, high-precision time synchronization can be achieved by the following two methods: 1. Real-time solving of the clock error of the receiver local clock through a precise point positioning model with coordinate constraints, and then eliminating the hardware delay between the signal transmitter and the global navigation satellite system (GNSS) receiver through a calibration hardware delay method, so as to realize precise time synchronization of a single pseudolite system and a GNSS system. 2. Starting from the time transfer base station, time transfer is performed on each collection substation in turn until the clock error calculation of the feedback base station is completed and compared with the threshold value, and then returned to the time transfer base station; then starting from the feedback base station, time transfer is performed on each collection substation in reverse, and then returning to the time transfer base station and calculating the clock error of the time transfer base station and comparing it with the threshold value to complete the time transfer.
[0003] However, the first method can only solve the time synchronization problem of a single pseudolite system through a specific constraint algorithm model, and cannot be applied to large-capacity device scenarios. At the same time, the second method needs to set a specific threshold value, which has poor scene migration and cannot be applied to large-capacity device scenarios. Therefore, how to realize high-precision time synchronization in a large-capacity device scenario is a technical problem to be solved. SUMMARY
[0004] The present application provides a time synchronization method, device, equipment and storage medium to realize high-precision time synchronization in a large-capacity device scenario. The technical solution of the present application is as follows:
[0005] In a first aspect, a time synchronization method is provided, applied to a base station, the method comprising: receiving, by a first communication module in the base station, a synchronization packet confirmation message sent by a user equipment; the first communication module is configured based on a 5th generation mobile communication technology (5G) protocol or an ultra-wideband protocol, and the synchronization packet confirmation message is used to confirm time synchronization; sending, by the first communication module, a first clock signal, a first time stamp and a first second pulse signal to the user equipment to synchronize the time of the user equipment.
[0006] In a possible implementation, the method further includes: sending a broadcast signal; the broadcast signal is used to determine whether the user equipment is online; in response to an online confirmation message sent by the user equipment through the first communication module, sending a synchronization package message to the user equipment through the first communication module; the synchronization package message is used to confirm whether the user equipment needs to perform time synchronization; in response to a synchronization package confirmation message sent by the user equipment, obtaining a first clock signal, a first timestamp, and a first second pulse signal from a real time clock (RTC) module, and sending the first clock signal, the first timestamp, and the first second pulse signal to the user equipment through the first communication module to perform time synchronization on the user equipment.
[0007] In a possible implementation, before the base station sends the broadcast signal, the method further includes: receiving, by a second communication module in the base station, a second clock signal, a second timestamp, and a second second pulse signal sent by a parent clock to the base station to perform time synchronization on the base station.
[0008] In a possible implementation, a network layer of the first communication module is configured based on an IEEE 802154 protocol, a 6LOPAN protocol, and an IEEE 1588 protocol, and an application layer of the first communication module is configured based on a 5G protocol or an ultra-wideband protocol; a network layer of the second communication module is configured based on the IEEE 802154 protocol, the 6LOPAN protocol, and the IEEE 1588 protocol, and an application layer of the second communication module is configured based on the 5G protocol or the ultra-wideband protocol.
[0009] In a second aspect, a time synchronization apparatus is provided, which includes a receiving unit and a sending unit; the receiving unit is configured to receive, by a first communication module in the base station, a synchronization package confirmation message sent by the user equipment; the first communication module is configured based on a 5G protocol or an ultra-wideband protocol, and the synchronization package confirmation message is used to confirm time synchronization; and the sending unit is configured to send, by the first communication module, a first clock signal, a first timestamp, and a first second pulse signal to the user equipment to perform time synchronization on the user equipment.
[0010] In a possible implementation, the apparatus further includes a processing unit; the sending unit is further configured to send a broadcast signal; the broadcast signal is used to determine whether the user equipment is online; the sending unit is further configured to, in response to an online confirmation message sent by the user equipment through the first communication module, send a synchronization package message to the user equipment through the first communication module; the synchronization package message is used to confirm whether the user equipment needs to perform time synchronization; and the processing unit is configured to, in response to a synchronization package confirmation message sent by the user equipment, acquire the first clock signal, the first timestamp, and the first second pulse signal from the RTC module, and send the first clock signal, the first timestamp, and the first second pulse signal to the user equipment through the first communication module to perform time synchronization on the user equipment.
[0011] In a possible implementation, before the base station sends the broadcast signal, the receiving unit is further configured to receive, through a second communication module in the base station, a second clock signal, a second timestamp, and a second second pulse signal sent by a parent clock to the base station to perform time synchronization on the base station.
[0012] In a possible implementation, a network layer of the first communication module is configured based on an IEEE 802.154 protocol, a 6LOPAN protocol, and an IEEE 1588 protocol, and an application layer of the first communication module is configured based on a 5G protocol or an ultra-wideband protocol; a network layer of the second communication module is configured based on the IEEE 802.154 protocol, the 6LOPAN protocol, and the IEEE 1588 protocol, and an application layer of the second communication module is configured based on the 5G protocol or the ultra-wideband protocol.
[0013] In a third aspect, an electronic device is provided, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of the first aspect and any possible implementation thereof.
[0014] In a fourth aspect, a computer-readable storage medium is provided, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method of the first aspect and any possible implementation thereof.
[0015] In a fifth aspect, a computer program product is provided, the computer program product includes computer instructions, when the computer instructions are run on an electronic device, the electronic device performs the method of the first aspect and any possible implementation thereof.
[0016] The first aspect provided by the application brings at least the following beneficial effects: in the prior art, the time synchronization problem of a single pseudolite system is usually solved by a specific constraint algorithm model, or each acquisition substation is time-synchronized in turn from a time-synchronization base station until the clock deviation calculation of the feedback base station is completed and compared with a threshold value and then returned to the time-synchronization base station. However, neither of the two methods can be applied to a large-capacity device scenario and cannot meet the industrial demand. After receiving the synchronization packet confirmation message sent by the user equipment, the first communication module is configured based on the 5G protocol or the ultra-wideband protocol, and the first clock signal, the first timestamp, and the first second pulse signal are sent to the user equipment to synchronize the time of the user equipment. The first communication module is configured based on the 5G protocol or the ultra-wideband protocol. Since the transmission data speed of the first communication module configured based on the 5G protocol or the ultra-wideband protocol is fast, the clock delay of the clock signal transmitted through the first communication module is low, thereby enabling the user equipment to achieve high-precision time synchronization. At the same time, the first communication module wirelessly connects the user equipment, and a large number of user equipment can be connected, thereby realizing high-precision time synchronization in a large-capacity device scenario.
[0017] It should be noted that the technical effects brought by any one of the implementation manners of the second aspect to the fifth aspect can be referred to the technical effects brought by the corresponding implementation manners in the first aspect, which will not be repeated here.
[0018] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the application. BRIEF DESCRIPTION OF DRAWINGS
[0019] The accompanying drawings incorporated in and forming a part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application, but are not intended to limit the application.
[0020] Figure 1 is a schematic diagram of a time synchronization system according to an exemplary embodiment;
[0021] Figure 2 is a flowchart of a time synchronization method according to an exemplary embodiment;
[0022] Figure 3 is a flowchart of another time synchronization method according to an exemplary embodiment;
[0023] Figure 4 is a flowchart of another time synchronization method according to an exemplary embodiment;
[0024] Figure 5 is a block diagram of a time synchronization device according to an exemplary embodiment;
[0025] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0026] To enable those skilled in the art to better understand the technical solutions of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0027] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0028] Before providing a detailed introduction to the time synchronization method provided in this application, let's briefly introduce the implementation environment (implementation architecture) involved in this application.
[0029] The time synchronization method provided in this application can be applied to time synchronization systems. Figure 1 A schematic diagram of one structure of this time synchronization system is shown. For example... Figure 1 As shown, the time synchronization system 10 includes a base station 11 and a user equipment (...). Figure 1 User equipment 121 and user equipment 122 are shown as examples; in actual applications, there may be more or fewer user equipment, which is not limited in this application. A master clock 13 is also shown. Base station 11 includes a first communication module 111, a second communication module 112, a device detection module 113, and an RTC module 114. The first communication module 111 is wirelessly connected to user equipment 121, user equipment 122, and device detection module 113, respectively. The second communication module 112 is wirelessly connected to master clock 13 and RTC module 114, respectively. Device detection module 113 is connected to RTC module 114.
[0030] Base station 11 is used to send a first clock signal, a first timestamp and a first second pulse signal to user equipment 121 and user equipment 122 through the first communication module 111, so as to synchronize the time of user equipment 121 and user equipment 122.
[0031] The master clock 13 is used to send a second clock signal, a second timestamp, and a second second pulse signal to the base station 11 through the second communication module 112 in order to synchronize the time of the base station 11.
[0032] The RTC module 114 is configured to save the second clock signal, the second timestamp and the second second pulse signal sent by the master clock 13 to the base station 11 through the second communication module 112 in the base station 11.
[0033] The device detection module 113 acquires the first clock signal, the first timestamp and the first second pulse signal from the RTC module 114 in response to the synchronization packet confirmation message sent by the user equipment 121 and the user equipment 122 through the first communication module 111. The device detection module 113 packages the acquired first clock signal, first timestamp and first second pulse signal, and sends them to the user equipment 121 and the user equipment 122 through the first communication module 111 to synchronize the time of the user equipment 121 and the user equipment 122.
[0034] For the convenience of understanding, the time synchronization method provided in the present application is specifically introduced below in combination with the accompanying drawings.
[0035] As shown in Figure 2 , a time synchronization method provided in an embodiment of the present application, the method comprises:
[0036] S201, the base station receives the synchronization packet confirmation message sent by the user equipment through the first communication module in the base station.
[0037] The first communication module is configured based on a 5G protocol or an ultra-wideband protocol, and the synchronization packet confirmation message is used to confirm the time synchronization.
[0038] As a possible implementation manner, the device detection module in the base station receives the synchronization packet confirmation message sent by the user equipment through the first communication module, and accesses the user equipment to the base station networking.
[0039] S202, the base station sends the first clock signal, the first timestamp and the first second pulse signal to the user equipment through the first communication module to synchronize the time of the user equipment.
[0040] As a possible implementation manner, the base station acquires the first clock signal, the first timestamp and the first second pulse signal from the RTC module for the user equipment that has accessed the base station networking, packages the first clock signal, the first timestamp and the first second pulse signal, and sends them to the user equipment through the first communication module to synchronize the time of the user equipment.
[0041] It can be understood that the prior art usually solves the time synchronization problem of a single pseudolite system through a specific constraint algorithm model, or starts from a time service base station to successively time service each collection substation until the clock bias calculation of the feedback base station is completed and compared with a threshold value and then returned to the time service base station. However, both methods cannot be applied to large-capacity equipment scenarios and cannot meet industrial needs. After receiving the synchronization packet confirmation message sent by the user equipment, the first communication module sends the first clock signal, the first timestamp, and the first second pulse signal to the user equipment to synchronize the time of the user equipment. The first communication module is configured based on the 5G protocol or the ultra-wideband protocol. Since the first communication module configured based on the 5G protocol or the ultra-wideband protocol has a fast transmission data speed, the clock delay of the clock signal transmitted through the first communication module is low, thereby enabling high-precision time synchronization for the user equipment. At the same time, the first communication module wirelessly connects the user equipment, and can connect a large number of user equipment, thereby realizing high-precision time synchronization in a large-capacity equipment scenario.
[0042] In some embodiments, in order to synchronize the time of the user equipment, as shown in Figure 3 The time synchronization method provided by the embodiments of the present application further includes:
[0043] S301, the base station sends a broadcast signal.
[0044] The broadcast signal is used to determine whether the user equipment is online.
[0045] S302, the base station sends a synchronization packet message to the user equipment through the first communication module in response to the online confirmation message sent by the user equipment through the first communication module.
[0046] The synchronization packet message is used to confirm whether the user equipment needs to be time synchronized.
[0047] As a possible implementation, after receiving the broadcast signal sent by the base station, the user equipment sends an online confirmation message to the device detection module in the base station through the first communication module.
[0048] Further, the device detection module in the base station sends a synchronization packet message to the user equipment through the first communication module in response to the online confirmation message sent by the user equipment, and the synchronization packet message includes a packet header, a packet sequence number, a packet type, a function code, and an acknowledge character (ACK).
[0049] It should be noted that the packet header can be a fixed character, the packet sequence number can be the number of communications between the user equipment and the base station, the packet type can be a broadcast packet or a request packet, the function code can include time synchronization, function query, and base station status, and the ACK can include a check code and a fixed packet trailer.
[0050] For example, after receiving the broadcast signal sent by the base station, the user equipment sends "I am here" to the device detection module in the base station through the first communication module. Further, the device detection module in the base station sends a synchronization package message to the user equipment through the first communication module in response to the "I am here" sent by the user equipment. The package header of the synchronization package message is 0X55, the package serial number is 1, the package type is a broadcast package, the function code is time synchronization, function query, and base station state, and the ACK is 0Xff.
[0051] S303, the base station acquires the first clock signal, the first timestamp, and the first second pulse signal from the RTC module in response to the synchronization package confirmation message sent by the user equipment.
[0052] As a possible implementation, after the user equipment receives the synchronization package message sent by the device detection module in the base station through the first communication module, the user equipment determines whether the received synchronization package message is sent by the base station through the package type in the synchronization package message. After determining that the received synchronization package message is sent by the base station, the user equipment sends a synchronization package confirmation message to the device detection module in the base station through the first communication module. The synchronization package confirmation message includes a package header, a package serial number, a package type, a query code, and an ACK.
[0053] Further, the device detection module in the base station acquires the first clock signal, the first timestamp, and the first second pulse signal from the RTC module in response to the synchronization package confirmation message sent by the user equipment.
[0054] It should be noted that the query code can specifically include a request for time synchronization, a request for function query, and a request for base station state.
[0055] For example, after the user equipment receives the synchronization package message sent by the device detection module in the base station through the first communication module, the user equipment determines whether the synchronization package message is sent by the base station through the package type in the synchronization package message. After determining that the received synchronization package message is sent by the base station, the user equipment sends a synchronization package confirmation message to the device detection module in the base station through the first communication module. The package header of the synchronization package confirmation message is 0X55, the package serial number is 2, the package type is a request package, the query code is a request for time synchronization, and the ACK is 0Xff.
[0056] S304, the base station sends the first clock signal, the first timestamp, and the first second pulse signal to the user equipment through the first communication module to synchronize the time of the user equipment.
[0057] As a possible implementation, the device detection module in the base station packages the acquired first clock signal, first timestamp, and first second pulse signal, and sends them to the user equipment through the first communication module.
[0058] Understandably, the online status of the user equipment is confirmed via broadcast signals. After confirming that the user equipment is online, a synchronization packet message is sent to the user equipment to confirm whether the user equipment needs to synchronize its time. Furthermore, after determining that the user equipment needs to synchronize its time, a first clock signal, a first timestamp, and a first second pulse signal are sent to the user equipment to achieve time synchronization.
[0059] In some embodiments, in order to synchronize the time of the base station, before the base station sends a broadcast signal, such as Figure 4 As shown in the embodiments of this application, the time synchronization method further includes:
[0060] S401. The base station receives the second clock signal, the second timestamp, and the second second pulse signal sent by the master clock to the base station through the second communication module in the base station, so as to synchronize the time of the base station.
[0061] One possible implementation involves manually configuring the master clock, setting the number of channels for outputting second pulse signals, the source of the second clock signal, and the frequency at which the master clock sends the second clock signal. The master clock then transmits the second clock signal, the second timestamp, and the second second pulse signal to the base station via a second communication module.
[0062] Furthermore, after receiving the second clock signal, second timestamp, and second second pulse signal sent to the base station by the master clock through the second communication module, the base station stores the second clock signal in the base station through the RTC module in the base station to synchronize the base station's time.
[0063] Simultaneously, the calibration module in the base station receives the third clock signal sent by the master clock through the second communication module and determines the difference between the third clock signal and the second clock signal stored in the RTC module of the base station. If the difference between the third clock signal and the second clock signal stored in the RTC module of the base station is greater than or equal to a preset threshold, the calibration module in the base station sends a time synchronization request message to the master clock through the second communication module. In response to the received time synchronization request message, the master clock sends the second clock signal, the second timestamp, and the second second pulse signal to the base station through the second communication module to synchronize the time of the base station.
[0064] It should be noted that the number of channels for the second pulse signal can be specifically 3, and the source of the clock signal can be either a BeiDou-2 or BeiDou-3 satellite. The time synchronization request message is used to synchronize the time of the base station.
[0065] It can be understood that the application receives the second clock signal, the second timestamp and the second second pulse signal sent by the master clock through the second communication module. The second communication module is configured based on a 5G protocol or an ultra-wideband protocol. Since the transmission speed of the second communication module configured based on the 5G protocol or the ultra-wideband protocol is fast, the clock delay of the clock signal transmitted through the second communication module is low, thereby enabling high-precision time synchronization for the base station and further ensuring the precision of subsequent time synchronization for the user equipment.
[0066] In some embodiments, the network layer of the first communication module is configured based on an IEEE802154 protocol, a 6LOPAN protocol and an IEEE1588 protocol, and the application layer of the first communication module is configured based on a 5G protocol or an ultra-wideband protocol. The network layer of the second communication module is configured based on an IEEE802154 protocol, a 6LOPAN protocol and an IEEE1588 protocol, and the application layer of the second communication module is configured based on a 5G protocol or an ultra-wideband protocol.
[0067] It can be understood that since the transmission speed of the first communication module configured based on the ultra-wideband protocol is higher than that of the first communication module configured based on the 5G protocol, the first communication module configured based on the ultra-wideband protocol can be applied to an industrial scene with high requirements for time synchronization precision. The first communication module configured based on the 5G protocol can be applied to an industrial scene with less high requirements for time synchronization precision and a large deployment area, thereby being applicable to large-capacity equipment scenes with different time synchronization precision requirements.
[0068] Figure 5 A time synchronization device 500 is shown according to an exemplary embodiment, as shown in Figure 5 The time synchronization device 500 provided by the embodiment of the application includes a receiving unit 501 and a sending unit 502.
[0069] The receiving unit 501 is configured to receive a synchronization packet confirmation message sent by a user equipment through a first communication module in a base station. The first communication module is configured based on a 5G protocol or an ultra-wideband protocol, and the synchronization packet confirmation message is used to confirm time synchronization.
[0070] The sending unit 502 is configured to send a first clock signal, a first timestamp and a first second pulse signal to the user equipment through the first communication module, so as to perform time synchronization for the user equipment.
[0071] Optionally, as shown in Figure 5 In order to perform time synchronization for the user equipment, the time synchronization device 500 provided by the embodiment of the application further includes a processing unit 503.
[0072] The sending unit 502 is further configured to send a broadcast signal. The broadcast signal is used to determine whether the user equipment is online.
[0073] The sending unit 502 is further configured to send a synchronization packet message to the user equipment through the first communication module in response to the online confirmation message sent by the user equipment through the first communication module. The synchronization packet message is used to confirm whether the user equipment needs to perform time synchronization.
[0074] The processing unit 503 is configured to acquire the first clock signal, the first timestamp and the first second pulse signal from the RTC module in response to the synchronization packet confirmation message sent by the user equipment, and send the first clock signal, the first timestamp and the first second pulse signal to the user equipment through the first communication module to perform time synchronization on the user equipment.
[0075] Optionally, as shown in Figure 5 In order to perform time synchronization on the base station, before the base station sends the broadcast signal, the receiving unit 501 provided by the embodiment of the application is further configured to:
[0076] receive the second clock signal, the second timestamp and the second second pulse signal sent by the master clock to the base station through the second communication module in the base station to perform time synchronization on the base station.
[0077] Optionally, as shown in Figure 5 The network layer of the first communication module is configured based on the IEEE802154 protocol, the 6LOPAN protocol and the IEEE1588 protocol, and the application layer of the first communication module is configured based on the 5G protocol or the ultra-wideband protocol. The network layer of the second communication module is configured based on the IEEE802154 protocol, the 6LOPAN protocol and the IEEE1588 protocol, and the application layer of the second communication module is configured based on the 5G protocol or the ultra-wideband protocol.
[0078] Figure 6 is a block diagram of an electronic device according to an exemplary embodiment. As shown in Figure 6 The electronic device 600 includes but is not limited to a processor 601 and a memory 602.
[0079] The memory 602 is configured to store executable instructions of the processor 601. It can be understood that the processor 601 is configured to execute the instructions to implement the time synchronization method in the above embodiments.
[0080] It should be noted that those skilled in the art can understand that the electronic device structure shown in Figure 6 does not constitute a limitation on the electronic device, and the electronic device can include more components than Figure 6More or fewer elements, or combinations of elements, or different arrangements of elements can be shown.
[0081] The processor 601 is a control center of the electronic device, connects various parts of the electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 602 and calling data stored in the memory 602, and thus monitors the entire electronic device. The processor 601 can include one or more processing units. Alternatively, the processor 601 can integrate an application processor and a modem processor, in which the application processor mainly processes an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 601.
[0082] The memory 602 can be used to store software programs and various data. The memory 602 can mainly include a program storage area and a data storage area, in which the program storage area can store an operating system, application programs (such as a receiving unit, a sending unit, and a processing unit) required by at least one function module, and the like. In addition, the memory 602 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.
[0083] In the example embodiment, a computer readable storage medium including instructions, for example, a memory including instructions, is also provided, and the instructions can be executed by the processor of the electronic device to implement the time synchronization method in the above embodiment.
[0084] In actual implementation, the functions of the receiving unit 501, the sending unit 502, and the processing unit 503 can be implemented by calling the computer program stored in the memory 602 by the processor 601 in the electronic device. Figure 6 The specific execution process can refer to the description of the time synchronization method part in the above embodiment, and will not be described here.
[0085] Alternatively, the computer readable storage medium can be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0086] In the example embodiment, the embodiment of the present application also provides a computer program product including one or more instructions, which can be executed by the processor of the electronic device to complete the method in the above embodiment.
[0087] It should be noted that the instructions in the computer-readable storage medium or one or more instructions in the computer program product are executed by the processor of the electronic device to implement each process of the above method embodiments, and the same technical effects as the above method can be achieved. To avoid repetition, it will not be described here.
[0088] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional module is exemplified, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0089] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other ways. For example, the above-described device embodiments are only schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0090] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or multiple physical units, that is, can be located in one place, or can be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment scheme.
[0091] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The above integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0092] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, and includes a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media that can store program codes.
[0093] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A time synchronization method, characterized by, The method applied to a base station comprises: sending a broadcast signal; the broadcast signal is used to determine whether a user equipment is online; in response to an online confirmation message sent by the user equipment through a first communication module, sending a synchronization package message to the user equipment through the first communication module; the synchronization package message is used to confirm whether the user equipment needs to perform time synchronization; receiving a synchronization package confirmation message sent by the user equipment through a first communication module in the base station; the first communication module is configured based on a fifth generation mobile communication technology (5G) protocol or an ultra-wideband protocol, and the synchronization package confirmation message is used to confirm time synchronization; in response to the synchronization package confirmation message sent by the user equipment, obtaining a first clock signal, a first timestamp, and a first second pulse signal from a real-time clock (RTC) module, and sending the first clock signal, the first timestamp, and the first second pulse signal to the user equipment through the first communication module to perform time synchronization on the user equipment.
2. The time synchronization method of claim 1, wherein, Before the base station sends the broadcast signal, the method further comprises: receiving a second clock signal, a second timestamp, and a second second pulse signal sent by a parent clock to the base station through a second communication module in the base station to perform time synchronization on the base station.
3. The time synchronization method as claimed in claim 2, characterized in that, The network layer of the first communication module is configured based on an IEEE 802154 protocol, a 6LOPAN protocol, and an IEEE 1588 protocol, and the application layer of the first communication module is configured based on the 5G protocol or the ultra-wideband protocol; the network layer of the second communication module is configured based on the IEEE 802154 protocol, the 6LOPAN protocol, and the IEEE 1588 protocol, and the application layer of the second communication module is configured based on the 5G protocol or the ultra-wideband protocol.
4. A time synchronization apparatus characterized by comprising: The device applied to a base station comprises a receiving unit, a sending unit, and a processing unit. The sending unit is further configured to send a broadcast signal; the broadcast signal is used to determine whether a user equipment is online. The sending unit is further configured to, in response to an online confirmation message sent by the user equipment through a first communication module, send a synchronization package message to the user equipment through the first communication module; the synchronization package message is used to confirm whether the user equipment needs to perform time synchronization; the receiving unit is configured to receive a synchronization package confirmation message sent by the user equipment through a first communication module in the base station; the first communication module is configured based on a fifth generation mobile communication technology (5G) protocol or an ultra-wideband protocol, and the synchronization package confirmation message is used to confirm time synchronization. The processing unit is configured to, in response to the synchronization package confirmation message sent by the user equipment, obtain a first clock signal, a first timestamp, and a first second pulse signal from a real-time clock (RTC) module, and send the first clock signal, the first timestamp, and the first second pulse signal to the user equipment through the first communication module to perform time synchronization on the user equipment.
5. The time synchronization apparatus according to claim 4, characterized by Before the base station sends the broadcast signal, the receiving unit is further configured to: receive a second clock signal, a second timestamp, and a second second pulse signal sent by a parent clock to the base station through a second communication module in the base station to perform time synchronization on the base station. The second communication module in the base station receives a second clock signal, a second timestamp and a second second pulse signal sent by the master clock to the base station, so as to perform time synchronization on the base station.
6. The time synchronization apparatus according to claim 5, wherein The network layer of the first communication module is configured based on an IEEE802154 protocol, a 6LOPAN protocol and an IEEE1588 protocol, and the application layer of the first communication module is configured based on the 5G protocol or the ultra-wideband protocol; the network layer of the second communication module is configured based on an IEEE802154 protocol, a 6LOPAN protocol and an IEEE1588 protocol, and the application layer of the second communication module is configured based on the 5G protocol or the ultra-wideband protocol.
7. An electronic device, comprising: Comprise: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that, When the computer-executable instructions stored in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device can perform the method of any one of claims 1 to 3.
Citation Information
Patent Citations
Time synchronization method, device, terminal, system and storage medium
CN111884745A
Synchronizing Clocks in a Communications Network
US20170195110A1