CN111194076A - Multi-device time synchronization system and method - Google Patents

Multi-device time synchronization system and method Download PDF

Info

Publication number
CN111194076A
CN111194076A CN201811357040.6A CN201811357040A CN111194076A CN 111194076 A CN111194076 A CN 111194076A CN 201811357040 A CN201811357040 A CN 201811357040A CN 111194076 A CN111194076 A CN 111194076A
Authority
CN
China
Prior art keywords
spread spectrum
communication module
spectrum communication
time
wireless spread
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.)
Granted
Application number
CN201811357040.6A
Other languages
Chinese (zh)
Other versions
CN111194076B (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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201811357040.6A priority Critical patent/CN111194076B/en
Publication of CN111194076A publication Critical patent/CN111194076A/en
Application granted granted Critical
Publication of CN111194076B publication Critical patent/CN111194076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques

Abstract

The embodiment of the invention discloses a multi-device time synchronization system and a multi-device time synchronization method. The multi-device time synchronization system comprises: a master device and at least one slave device. The master device includes a first wireless spread spectrum communication module and a first data manipulation module. The first data operation module is connected with the first wireless spread spectrum communication module and used for providing time setting parameters and transmitting the time setting parameters to the first wireless spread spectrum communication module to be sent out in a wireless mode. Each slave device comprises a second wireless spread spectrum communication module, a second data operation module and a time synchronization module. The second wireless spread spectrum communication module is used for receiving the time setting parameters in a wireless mode; the second data operation module is connected with the second wireless spread spectrum communication module and used for processing the time synchronization parameters to obtain processed time synchronization parameters; and the time synchronization module is connected with the second data operation module and is used for performing time synchronization operation according to the processed time synchronization parameters.

Description

Multi-device time synchronization system and method
Technical Field
The invention relates to a multi-device time synchronization system and a multi-device time synchronization method.
Background
The Android and other embedded platforms are gradually applied to mobile embedded operating equipment with remarkable openness, so that the Android platform-based display screen asynchronous control system has a wide market application prospect. The display screen asynchronous control system has the characteristics of portability, usability, embeddability and the like, so that the display screen asynchronous control system has huge development space in the field of synchronous broadcasting control, multiple Android devices need to realize time consistency among the devices in a reasonable and scientific mode accurately, and better synchronous broadcasting and control effects and better advertisement broadcasting effects and economic values are achieved.
In the existing technical scheme, GPS time service is adopted, a standard time signal is acquired from a GPS satellite, and the time signal is set to each independently distributed device, so that the system time synchronization of a plurality of independent devices is realized; however, the GPS time service has a problem of poor signal stability, and particularly, the GPS signal may not be received indoors or in the presence of a blocking object, which may result in a time calibration failure and finally may cause time inconsistency among a plurality of independent devices.
In another existing technical scheme, NTP timing is adopted, and NTP is a Network time protocol (Network time protocol) and is used for synchronizing time of each computer in a Network; the method is used for synchronizing the clock of the computer to the universal coordinated time UTC, the NTP transmits based on the UDP message, and the used UDP port number is 123; however, NTP timing must depend on a network, and network equipment needs to be erected, which is costly, and the stability of the network may affect the timing effect.
Disclosure of Invention
Therefore, embodiments of the present invention provide a multi-device time synchronization system and a multi-device time synchronization method, which can achieve the technical effect of stable time synchronization between multiple devices.
In one aspect, a system for synchronizing time of multiple devices provided in an embodiment of the present invention includes: a master device and at least one slave device. The master device includes a first wireless spread spectrum communication module and a first data manipulation module. The first data operation module is connected with the first wireless spread spectrum communication module and used for providing time synchronization parameters and transmitting the time synchronization parameters to the first wireless spread spectrum communication module to be sent out in a wireless mode, wherein the time synchronization parameters comprise the system time and the group ID of the master device and the channel and the address of the first wireless spread spectrum communication module. The at least one slave device is located within the operating range of the first wireless spread spectrum communication module. Each slave device comprises a second wireless spread spectrum communication module, a second data operation module and a time synchronization module. The second wireless spread spectrum communication module is used for wirelessly receiving the time setting parameters; the second data operation module is connected with the second wireless spread spectrum communication module and used for processing the time synchronization parameter to obtain a processed time synchronization parameter; and the time synchronization module is connected with the second data operation module and is used for performing time synchronization operation according to the processed time synchronization parameters. Wherein each of the slave devices is provided with the same group ID as the master device, and the second wireless spread spectrum communication module is provided with the same channel and address as the first wireless spread spectrum communication module.
In one embodiment of the present invention, the first data manipulation module includes a data encapsulation unit and a data writing unit. The data encapsulation unit is used for encapsulating the time setting parameters into data packets; and the data writing unit is used for writing the data packet into the first wireless spread spectrum communication module and sending the data packet out in a wireless mode.
In one embodiment of the present invention, the second wireless spread spectrum communication module is configured to receive the data packet wirelessly. The second data operation module comprises a data reading unit and a data analysis unit; the data reading unit is used for reading the data packet from the second wireless spread spectrum communication module; and the data analysis unit is connected with the data reading unit and used for analyzing the data packet to obtain the processed time setting parameters including the system time of the main equipment and the group ID. The time synchronization module comprises a judgment unit and a time setting unit; the judging unit is used for judging whether the group ID in the processed time tick parameter is the same as the group ID of the slave device; and the time setting unit is used for setting the system time of the slave equipment according to the system time when the group ID in the processed time setting parameter is the same as the group ID of the slave equipment.
In an embodiment of the present invention, the first wireless spread spectrum communication module and the second wireless spread spectrum communication module are LoRa modules.
In an embodiment of the present invention, the multi-device time synchronization system further includes: a relay device and at least one second slave device. The relay device is located in the working range of the main device and comprises a third wireless spread spectrum communication module and a data replacement module; the third wireless spread spectrum communication module is provided with a channel and an address which are the same as those of the first wireless spread spectrum communication module and is used for receiving the time setting parameters in a wireless mode and sending relay time setting parameters; and the data replacement module is connected with the third wireless spread spectrum communication module and used for replacing the group ID in the time setting parameters with the specified group ID to obtain the relay time setting parameters. The at least one second slave device is located within the operating range of the third wireless spread spectrum communication module; each of the second slave devices includes: the system comprises a fourth wireless spread spectrum communication module, a third data operation module and a second time alignment module; the fourth wireless spread spectrum communication module is configured to wirelessly receive the relay time setting parameter; the third data operation module is connected with the fourth wireless spread spectrum communication module and is used for processing the relay time setting parameters to obtain processed relay time setting parameters; and the second time synchronization module is connected with the third data operation module and is used for performing time synchronization operation according to the processed relay time synchronization parameter. Wherein each of the second slave devices is provided with the specified group ID.
On the other hand, the method for time synchronization by multiple devices provided by the embodiment of the present invention includes: the method comprises the steps that a master device provides time setting parameters and sends the time setting parameters out in a wireless mode, wherein the time setting parameters comprise system time and group ID of the master device and a channel and an address of a first wireless spread spectrum communication module on the master device; the at least one slave device receives the time synchronization parameters in a wireless mode through a second wireless spread spectrum communication module respectively, processes the time synchronization parameters to obtain processed time synchronization parameters, wherein the at least one slave device is located in the working range of the first wireless spread spectrum communication module, and the second wireless spread spectrum communication module and the first wireless spread spectrum communication module are provided with the same channel and address; and each slave device carries out time setting operation according to the processed time setting parameters.
In an embodiment of the present invention, the step of the master device providing the time tick parameter and sending the time tick parameter in a wireless manner includes: encapsulating the time setting parameters into data packets; writing the data packet to the first wireless spread spectrum communication module; and the first wireless spread spectrum communication module wirelessly transmits the data packet.
In an embodiment of the present invention, the step of the at least one slave device receiving the time tick parameters wirelessly through a second wireless spread spectrum communication module, and processing the time tick parameters to obtain processed time tick parameters includes: receiving, by the second wireless spread spectrum communication module, the data packet wirelessly; reading the data packet from the second wireless spread spectrum communication module; and analyzing the read data packet to obtain the processed time tick parameters.
In an embodiment of the present invention, the time tick operation performed by each of the slave devices according to the processed time tick parameter includes: judging whether the group ID in the processed time setting parameter is the same as the group ID of the slave equipment or not; and when the group ID in the processed time setting parameter is the same as the group ID of the slave device, setting the system time of the slave device according to the system time.
In an embodiment of the present invention, the multi-device time synchronization method further includes: the relay equipment receives the time setting parameters in a wireless mode through a third wireless spread spectrum communication module, performs group ID replacement on the time setting parameters to obtain relay time setting parameters, and sends the relay time setting parameters out in a wireless mode; the at least one second slave device receives the relay time setting parameters in a wireless mode through a fourth wireless spread spectrum communication module respectively, processes the relay time setting parameters to obtain the processed relay time setting parameters, wherein the at least one second slave device is located in the working range of the third wireless spread spectrum communication module, and the fourth wireless spread spectrum communication module and the third wireless spread spectrum communication module are provided with the same channel and address; and each second slave device performs time setting operation according to the processed relay time setting parameter.
In an embodiment of the present invention, the time synchronization operation performed by each of the second slave devices according to the processed relay time synchronization parameter includes: judging whether the replaced group ID in the processed relay time setting parameter is the same as the group ID of the second slave equipment or not; and setting a system time of the second slave device according to the system time when the replaced group ID in the post-processing relay time setting parameter is the same as the group ID of the second slave device.
In an embodiment of the present invention, the first wireless spread spectrum communication module, the second wireless spread spectrum communication module, the third wireless spread spectrum communication module, and the fourth wireless spread spectrum communication module are LoRa modules respectively.
The above technical solution may have one or more of the following advantages: according to the embodiment of the invention, the wireless spread spectrum communication modules are adopted on a plurality of devices, and the group IDs of the devices are set to be the same, so that stable time correction among the devices with the same group IDs can be realized. In addition, stable time correction among multiple devices in a wider range can be realized through the relay device provided with the wireless spread spectrum communication module.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a multi-device time synchronization system according to a first embodiment of the present invention.
Fig. 2 is a block diagram of the master device shown in fig. 1.
Fig. 3 is a block diagram of the slave device shown in fig. 1.
Fig. 4 is a schematic structural diagram of a multi-device time synchronization system according to a second embodiment of the present invention.
Fig. 5 is a block diagram of the master device shown in fig. 4.
Fig. 6 is a block diagram of the slave device 43 shown in fig. 4.
Fig. 7 is a block diagram of the relay device shown in fig. 4.
Fig. 8 is a block diagram of the slave device 45 shown in fig. 4.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First embodiment
Referring to fig. 1, a first embodiment of the present invention provides a multi-device time synchronization system 10, including: a master device 11 and at least one, e.g. a plurality of slave devices 13; wherein the master device 11 and the plurality of slave devices 13 are both provided with the same group ID (e.g., XX).
Referring to fig. 2, the host device 11 includes, for example, a data operation module 111 and a wireless spread spectrum communication module 113. The data operation module 111 is connected to the wireless spread spectrum communication module 113, and is configured to provide a time tick parameter, which includes the system time and the group ID of the master device 11, and the channel (e.g., CC) and the address (e.g., DD) of the wireless spread spectrum communication module 113, and transmit the time tick parameter to the wireless spread spectrum communication module 113 to be sent out wirelessly.
Specifically, the data operation module 111 includes, for example, a data encapsulation unit 1112 and a data writing unit 1114. The data encapsulating unit 1112 is configured to encapsulate the time tick parameter into a data packet; and the data writing unit 1114 is configured to write the data packet into the wireless spread spectrum communication module 113 and send the data packet in a wireless manner.
Referring to fig. 3, each slave device 13 is located in the working range of the wireless spread spectrum communication module 113, and each slave device 113 includes, for example, a wireless spread spectrum communication module 131, a data operation module 133 and a time setting module 135. The wireless spread spectrum communication module 131 is configured to receive the time synchronization parameter in a wireless manner; the data operation module 133 is connected to the wireless spread spectrum communication module 131, and is configured to process the time tick parameter to obtain a processed time tick parameter; and the time synchronization module 135 is connected to the data operation module 133, and configured to perform time synchronization according to the processed time synchronization parameter. The wireless spread spectrum communication module 131 in each slave device 13 is provided with the same (e.g., CC) and address (e.g., DD) as the wireless spread spectrum communication module 113.
Specifically, the wireless spread spectrum communication module 131 is configured to receive the data packet from the master device 11 in a wireless manner. The data manipulation module 133 includes a data reading unit 1332 and a data parsing unit 1334; the data reading unit 1332 is configured to read the data packet from the wireless spread spectrum communication module 131; and the data parsing unit 1334 is connected to the data reading unit 1332, and is configured to parse the data packet to obtain the processed time tick parameter including the system time and the group ID (e.g., XX) of the host device 11. The time synchronization module 135 includes a determination unit 1352 and a time setting unit 1354. The judging unit 1352 is configured to judge whether the group ID in the processed time tick parameter is the same as a group ID (e.g., XX) set by the slave device 13 itself; and a time setting unit 1354, configured to set the system time of the slave device 13 according to the system time in the post-processing time tick when the group ID in the post-processing time tick is the same as the group ID (e.g. XX) of the slave device 13 itself, so as to implement time correction between the master device 11 and each slave device 13.
By way of example, the wireless spread spectrum communication module 113 and the wireless spread spectrum communication module 131 in the first embodiment are LoRa modules, such as F8L10D modules, and the addresses related to the wireless spread spectrum communication modules 113 and 131 are typically transparent addresses configured in a data transparent mode, that is, destination addresses. Here, LoRa is an abbreviation of Long Range, which is a Long-distance wireless transmission technology based on spread spectrum technology, and is one of many LPWAN communication technologies, and LPWAN is an abbreviation of Low Power Wide area network (Low Power Wide area network). Of course, the LoRa module may be replaced by other wireless spread spectrum communication modules with a wireless communication distance in the kilometer range.
In addition, the inventors have performed the following verification tests: the existing 100 devices have no relay occasion; any one piece of equipment is set as main equipment through upper computer software, the main equipment is used as a circle center, and the other 99 pieces of equipment in the working range of the LoRa module are used as slave equipment; setting a channel of 100 devices as 01, an address as 01 and a group ID as 01; after waiting for 3 days, observation was carried out, and the time for finding 100 devices was consistent. The upper computer software includes but is not limited to Android software, IOS software, PC software, WEB platform, USB flash disk configuration and the like.
Therefore, the mechanism can ensure that the time of the devices with the same channel, address and group ID is consistent within the working distance range of the LoRa module.
Second embodiment
Referring to fig. 4, a second embodiment of the present invention provides a multiple device pairing system 40, including: a master device 41, at least one, e.g., a plurality of slave devices 43, a relay device 44, and at least one, e.g., a plurality of slave devices 45; wherein the master device 41 and the plurality of slave devices 43 are both provided with the same group ID (e.g., XX), and the relay device 44 and the plurality of slave devices 45 are both provided with the same group ID (e.g., YY).
Referring to fig. 5, the master device 41 includes a data manipulation module 411 and a wireless spread spectrum communication module 413. The data operation module 411 is connected to the wireless spread spectrum communication module 413, and is configured to provide a time synchronization parameter to the wireless spread spectrum communication module 413 for sending out in a wireless manner, where the time synchronization parameter includes a system time and a group ID of the master device 41, and a channel (e.g., CC) and an address (e.g., DD) of the wireless spread spectrum communication module 413. More specifically, the data operation module 411 includes, for example, a data packing unit 4112 and a data writing unit 4114; the data encapsulating unit 4112 is configured to encapsulate the time tick parameter into a data packet, and the data writing unit 4114 is configured to write the data packet into the wireless spread spectrum communication module 413 and send the data packet in a wireless manner.
Referring to fig. 6, each slave device 43 is located in the working range of the wireless spread spectrum communication module 413 of the master device 41, and each slave device 43 includes, for example, a wireless spread spectrum communication module 431, a data operation module 433, and a time synchronization module 435; the wireless spread spectrum communication module 431 is configured to receive the time tick parameters in a wireless manner, the data operation module 433 is connected to the wireless spread spectrum communication module 431 and configured to process the time tick parameters to obtain processed time tick parameters, and the time tick module 435 is connected to the data operation module 433 and configured to perform time tick operation according to the processed time tick parameters. Among them, the wireless spread spectrum communication module 431 in each slave device 43 is provided with the same channel (for example, CC) and address (for example, DD) as the wireless spread spectrum communication module 413 in the master device 41. More specifically, the wireless spread spectrum communication module 431 in the slave device 43 is configured to receive the data packet from the master device 41 in a wireless manner; the data operation module 433 includes a data reading unit 4332 and a data parsing unit 4334, where the data reading unit 4332 is configured to read the data packet from the wireless spread spectrum communication module 431, and the data parsing unit 4334 is connected to the data reading unit 4332 and configured to parse the data packet to obtain the processed time synchronization parameter including the system time and the group ID (e.g., XX) of the master device 41; the time synchronization module 435 includes a determining unit 4352 and a time setting unit 4354, where the determining unit 4352 is configured to determine whether the group ID in the processed time synchronization parameter is the same as the group ID (e.g. XX) set by the slave device 43 itself, and the time setting unit 4354 is configured to set the system time of the slave device 43 according to the system time in the processed time synchronization parameter when the group ID in the processed time synchronization parameter is the same as the group ID (e.g. XX) of the slave device 43 itself, so as to implement time correction between the master device 41 and each slave device 43.
Referring to fig. 7, the relay device 44 is located within the operating range of the wireless spread spectrum communication module 413 of the master device 41 and includes a wireless spread spectrum communication module 441 and a data replacement module 443, and the data replacement module 443 is provided with, for example, a group ID for reception (e.g., XX) and a group ID for transmission (e.g., YY). The wireless spread spectrum communication module 441 is provided with the same channel (e.g., CC) and address (e.g., DD) as the wireless spread spectrum communication module 413 in the master device 41, for wirelessly receiving the time tick parameters and transmitting relay time tick parameters; and the data replacing module 443 is connected to the wireless spread spectrum communication module 441, and is configured to replace the group ID (e.g. XX) in the time synchronization parameter with a specified group ID (e.g. YY) to obtain the relay time synchronization parameter. Further, it is understood that the relay device 44 may also have a time tick module similarly to the slave device 43, so that its own system time is corrected to coincide with the system time of the master device 41.
Referring to fig. 8, the respective slave devices 45 are located within the operating range of the wireless spread spectrum communication module 441, and each slave device 45 includes, for example: a wireless spread spectrum communication module 451, a data operation module 453, and a time setting module 455; the wireless spread spectrum communication module 451 is configured to wirelessly receive the relay time setting parameter, the data operation module 453 is connected to the wireless spread spectrum communication module 451 and configured to process the relay time setting parameter to obtain a processed relay time setting parameter, and the time setting module 455 is connected to the data operation module 453 and configured to perform a time setting operation according to the processed relay time setting parameter. Wherein each slave device 45 is provided with the specified group ID (e.g., YY), and the wireless spread spectrum communication module 451 in the respective slave device 45 is provided with the same channel (e.g., CC) and address (e.g., DD) as the wireless spread spectrum communication module 413 in the master device 41. As such, the wireless spread spectrum communication modules 413, 431, 441, and 451 in the master device 41, each slave device 43, the relay device 44, and each slave device 45 all have the same channel (e.g., CC) and address (e.g., DD), the master device 41, each slave device 43, and the relay device 44 are provided with the same first group ID (e.g., XX), and the relay device 44 is also provided with the same second group ID (e.g., YY) as each slave device 45.
By way of example, the wireless spread spectrum communication module 413 in the master device 41, the wireless spread spectrum communication module 431 in each slave device 43, the wireless spread spectrum communication module 441 in the relay device, and the wireless spread spectrum communication module 451 in each slave device 45 of the present second embodiment are each an LoRa module such as an F8L10D module; the address related to each wireless spread spectrum communication module 413, 431, 441, and 451 is typically a transparent transmission address configured in a data transparent transmission mode, i.e., a destination address.
In addition, the inventors have performed the following verification tests: the existing 100 devices have relay occasions; setting any equipment as a master device through upper computer software, setting 49 equipment in the working range of the LoRa module as a slave 1 device by taking the master device as a circle center, and setting a channel of the 50 equipment (1 master device and 49 slave 1 devices) as 01, an address as 01 and a group ID as 01; taking the main equipment as a circle center, taking 1 equipment in the working range of the LoRa module as relay equipment (with a time synchronization module), setting a channel of the relay equipment to be 01, an address to be 01, a group ID for receiving to be 01 and a group ID for transmitting to be 02; and using the master device as a circle center, setting the rest 49 devices outside the working range of the master device and in the working range of the relay device as slave 2 devices, and setting the channel of the 49 slave 2 devices as 01, the address as 01 and the group ID as 02; after waiting for 3 days, observation was carried out, and the time for finding 100 devices was consistent. The upper computer software includes but is not limited to Android software, IOS software, PC software, WEB platform, USB flash disk configuration and the like.
Therefore, the mechanism can ensure that the time of the equipment with the same channel and address is consistent in the working distance range of the LoRa module of the master equipment and the working range of the LoRa module of the relay equipment. Furthermore, it is understood that the relay devices can be stacked indefinitely according to the rule shown in fig. 4, and thus the time synchronization mechanism can ensure time consistency among a plurality of independent devices in a large range.
In summary, the foregoing embodiments of the present invention provide a time synchronization mechanism based on a wireless spread spectrum communication module, such as an LoRa module, for multiple devices distributed independently, where the mechanism may not depend on a network, so as to reduce the cost of network devices, and is divided into a non-relay mode and a relay mode according to different application scenarios, so as to accurately ensure that the system time of each device distributed independently in a large area is consistent, and the time synchronization mechanism has the advantages of wide coverage area, high accuracy, stable signal, low cost, and the like; therefore, better synchronous playing and control effects among devices are achieved, and better advertisement playing effects and economic values are generated.
In addition, an embodiment of the present invention further provides a multi-device time synchronization method based on the multi-device time synchronization system, which includes the following steps:
(a) a master device (e.g., master device 11, 41) provides and wirelessly sends out a time tick parameter, wherein the time tick parameter includes a system time and a group ID (e.g., XX) of the master device and a channel (e.g., CC) and an address (e.g., DD) of a first wireless spread spectrum communication module (e.g., 113, 413) on the master device;
(b) at least one slave device (for example, slave devices 13 and 43) respectively wirelessly receives the time tick parameters through a second wireless spread spectrum communication module (for example, 131 and 431), and processes the time tick parameters to obtain processed time tick parameters (for example, including the system time and the group ID), wherein the at least one slave device is in the operating range of the first wireless spread spectrum communication module, and the second wireless spread spectrum communication module and the first wireless spread spectrum communication module are provided with the same channel and address; and
(c) and each slave device performs time synchronization operation according to the processed time synchronization parameter, for example, judges whether the group ID is the same as a group ID set by itself, and sets its own system time according to the system time when the group ID is the same as the group ID set by itself.
In addition, the multi-device time synchronization method of the embodiment may further include the steps of:
(d) the relay device (e.g. 44) receives the time setting parameter in a wireless manner through a third wireless spread spectrum communication module (e.g. 441), and performs group ID replacement on the time setting parameter to obtain a relay time setting parameter, and transmits the relay time setting parameter in a wireless manner;
(e) at least one second slave device (e.g. 45) respectively wirelessly receives the relay time setting parameters through a fourth wireless spread spectrum communication module (e.g. 451) and processes the relay time setting parameters to obtain processed relay time setting parameters (e.g. including the system time and the alternate group ID (e.g. YY)), wherein the at least one second slave device is within an operating range of the third wireless spread spectrum communication module, and the fourth wireless spread spectrum communication module and the third wireless spread spectrum communication module are provided with the same channel (e.g. CC) and address (e.g. DD); each second slave device performs time synchronization operation according to the processed relay time synchronization parameter, for example, determines whether the replaced group ID is the same as the group ID set by itself, and sets its own system time according to the system time when the replaced group ID is the same as the group ID set by itself.
Finally, it should be noted that specific details of each step in this embodiment may refer to the related descriptions of the first embodiment and the second embodiment, and therefore, the details are not repeated herein.
In addition, it is worth to be noted that the LoRa module according to the foregoing embodiment of the present invention has the characteristics of long distance, low frequency and low power consumption, and the operating frequency thereof is in a low frequency band below 1GHZ, such as 433MHz, 868MHz, 915MHz, and the like, so that the LoRa module is very suitable for time synchronization between a plurality of LED display asynchronous devices with operating systems (such as Android or Linux operating systems) that have high time synchronization requirements. The LED display screen asynchronous equipment comprises an embedded processor (such as a microprocessor based on an ARM core) and a programmable logic device (such as an FPGA) connected with the embedded processor, and an LoRa module connected with the embedded processor, wherein the embedded processor is connected with the LED display screen asynchronous equipment; when the LED display screen asynchronous equipment is used as main equipment, an embedded processor of the LED display screen asynchronous equipment is configured with a data operation module for example; when the LED display screen asynchronous device is used as a slave device, an embedded processor of the LED display screen asynchronous device is configured with a data operation module and a time synchronization module; or when the LED display screen asynchronous device is used as a relay device, the embedded processor of the LED display screen asynchronous device is configured with a data replacement module.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments can be arbitrarily combined and collocated without conflict between technical features and structural contradictions, which do not violate the purpose of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and/or method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units/modules is only one logical division, and there may be other divisions in actual implementation, for example, multiple units or modules 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 through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units/modules described as separate parts may or may not be physically separate, and parts displayed as units/modules may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units/modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
The integrated units/modules, which are implemented in the form of software functional units/modules, may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. A multi-device time synchronization system, comprising:
a master device, comprising:
a first wireless spread spectrum communication module;
the first data operation module is connected with the first wireless spread spectrum communication module and used for providing time synchronization parameters and transmitting the time synchronization parameters to the first wireless spread spectrum communication module to be sent out in a wireless mode, wherein the time synchronization parameters comprise the system time and the group ID of the master device and the channel and the address of the first wireless spread spectrum communication module;
at least one slave device located within an operating range of the first wireless spread spectrum communication module, wherein each of the slave devices comprises:
a second wireless spread spectrum communication module, configured to wirelessly receive the time synchronization parameter;
the second data operation module is connected with the second wireless spread spectrum communication module and used for processing the time synchronization parameter to obtain a processed time synchronization parameter;
the time synchronization module is connected with the second data operation module and is used for performing time synchronization operation according to the processed time synchronization parameters;
wherein each of the slave devices is provided with the same group ID as the master device, and the second wireless spread spectrum communication module is provided with the same channel and address as the first wireless spread spectrum communication module.
2. The multi-device time pairing system of claim 1, wherein the first data manipulation module comprises:
the data encapsulation unit is used for encapsulating the time setting parameters into data packets;
and the data writing unit is used for writing the data packet into the first wireless spread spectrum communication module and sending the data packet out in a wireless mode.
3. The multi-device time-tick system of claim 2 wherein the second wireless spread spectrum communication module is configured to receive the data packet wirelessly;
the second data manipulation module includes:
a data reading unit, configured to read the data packet from the second wireless spread spectrum communication module;
the data analysis unit is connected with the data reading unit and used for analyzing the data packet to obtain the processed time setting parameters including the system time of the main equipment and the group ID;
the time synchronization module comprises:
a determining unit, configured to determine whether the group ID in the processed time tick parameter is the same as the group ID of the slave device;
a time setting unit, configured to set a system time of the slave device according to the system time when the group ID in the processed pair time parameter is the same as the group ID of the slave device.
4. The multi-device time pairing system of claim 1, wherein the first wireless spread spectrum communication module and the second wireless spread spectrum communication module are LoRa modules.
5. The multi-device time synchronization system of claim 1, further comprising:
a relay device located within the operating range of the master device and comprising:
the third wireless spread spectrum communication module is provided with a channel and an address which are the same as those of the first wireless spread spectrum communication module and is used for receiving the time setting parameters in a wireless mode and sending relay time setting parameters;
the data replacement module is connected with the third wireless spread spectrum communication module and used for replacing the group ID in the time setting parameters with the specified group ID to obtain the relay time setting parameters;
at least one second slave device located within an operating range of the third wireless spread spectrum communication module, wherein each of the second slave devices comprises:
a fourth wireless spread spectrum communication module, configured to receive the relay timing parameter in a wireless manner;
a third data operation module, connected to the fourth wireless spread spectrum communication module, for processing the relay timing parameters to obtain processed relay timing parameters;
the second time synchronization module is connected with the third data operation module and used for performing time synchronization operation according to the processed relay time synchronization parameter;
wherein each of the second slave devices is provided with the specified group ID.
6. A multi-device time synchronization method is characterized by comprising the following steps:
the method comprises the steps that a master device provides time setting parameters and sends the time setting parameters out in a wireless mode, wherein the time setting parameters comprise system time and group ID of the master device and a channel and an address of a first wireless spread spectrum communication module on the master device;
the at least one slave device receives the time synchronization parameters in a wireless mode through a second wireless spread spectrum communication module respectively, processes the time synchronization parameters to obtain processed time synchronization parameters, wherein the at least one slave device is located in the working range of the first wireless spread spectrum communication module, and the second wireless spread spectrum communication module and the first wireless spread spectrum communication module are provided with the same channel and address;
and each slave device carries out time setting operation according to the processed time setting parameters.
7. The multi-device time synchronization method of claim 6, wherein the master device providing time synchronization parameters and wirelessly transmitting the time synchronization parameters comprises:
encapsulating the time setting parameters into data packets;
writing the data packet to the first wireless spread spectrum communication module;
and the first wireless spread spectrum communication module wirelessly transmits the data packet.
8. The method for multi-device time synchronization according to claim 7, wherein the at least one slave device wirelessly receives the time synchronization parameters through a second wireless spread spectrum communication module, and the processing the time synchronization parameters to obtain processed time synchronization parameters comprises:
receiving, by the second wireless spread spectrum communication module, the data packet wirelessly;
reading the data packet from the second wireless spread spectrum communication module;
and analyzing the read data packet to obtain the processed time tick parameters.
9. The multi-device time tick method according to claim 8, wherein said each of said slave devices performing time tick operations according to said processed time tick parameters comprises:
judging whether the group ID in the processed time setting parameter is the same as the group ID of the slave equipment or not;
when the group ID in the processed time setting parameter is the same as the group ID of the slave device, setting the system time of the slave device according to the system time.
10. The multi-device time synchronization method according to claim 6, further comprising:
the relay equipment receives the time setting parameters in a wireless mode through a third wireless spread spectrum communication module, performs group ID replacement on the time setting parameters to obtain relay time setting parameters, and sends the relay time setting parameters out in a wireless mode;
the at least one second slave device receives the relay time setting parameters in a wireless mode through a fourth wireless spread spectrum communication module respectively, processes the relay time setting parameters to obtain the processed relay time setting parameters, wherein the at least one second slave device is located in the working range of the third wireless spread spectrum communication module, and the fourth wireless spread spectrum communication module and the third wireless spread spectrum communication module are provided with the same channel and address;
and each second slave device performs time setting operation according to the processed relay time setting parameter.
11. The multi-device time synchronization method according to claim 10, wherein the time synchronization operation performed by each of the second slave devices according to the processed relay time synchronization parameter includes:
judging whether the replaced group ID in the processed relay time setting parameter is the same as the group ID of the second slave equipment or not;
setting a system time of the second slave device according to the system time when the replaced group ID in the post-processing relay time setting parameter is the same as the group ID of the second slave device.
12. The method as claimed in claim 10 or 11, wherein the first wireless spread spectrum communication module, the second wireless spread spectrum communication module, the third wireless spread spectrum communication module and the fourth wireless spread spectrum communication module are LoRa modules respectively.
CN201811357040.6A 2018-11-15 2018-11-15 Multi-device time synchronization system and method Active CN111194076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811357040.6A CN111194076B (en) 2018-11-15 2018-11-15 Multi-device time synchronization system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811357040.6A CN111194076B (en) 2018-11-15 2018-11-15 Multi-device time synchronization system and method

Publications (2)

Publication Number Publication Date
CN111194076A true CN111194076A (en) 2020-05-22
CN111194076B CN111194076B (en) 2022-05-17

Family

ID=70708892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811357040.6A Active CN111194076B (en) 2018-11-15 2018-11-15 Multi-device time synchronization system and method

Country Status (1)

Country Link
CN (1) CN111194076B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006097880A1 (en) * 2005-03-18 2006-09-21 Philips Intellectual Property & Standards Gmbh Method for synchronization of network nodes
CN101997671A (en) * 2010-11-25 2011-03-30 中兴通讯股份有限公司 Clock synchronization method and system of master/salve clock equipment
CN102647269A (en) * 2011-02-22 2012-08-22 中国石油集团长城钻探工程有限公司 Time synchronization method for downhole instrument
KR20140119857A (en) * 2013-03-27 2014-10-13 한국전자통신연구원 Apparatus and method for managing synchronization group in wireless communication system
CN105429767A (en) * 2015-10-20 2016-03-23 北京小鸟听听科技有限公司 Group-establishing method and group-establishing system of audio groups, and equipment
CN108601080A (en) * 2018-05-09 2018-09-28 山东山大电力技术股份有限公司 A kind of time synchronizing signal transmission method and device based on wireless communication
CN108737007A (en) * 2018-08-24 2018-11-02 新华三技术有限公司 A kind of method for synchronizing time, device and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006097880A1 (en) * 2005-03-18 2006-09-21 Philips Intellectual Property & Standards Gmbh Method for synchronization of network nodes
CN101997671A (en) * 2010-11-25 2011-03-30 中兴通讯股份有限公司 Clock synchronization method and system of master/salve clock equipment
CN102647269A (en) * 2011-02-22 2012-08-22 中国石油集团长城钻探工程有限公司 Time synchronization method for downhole instrument
KR20140119857A (en) * 2013-03-27 2014-10-13 한국전자통신연구원 Apparatus and method for managing synchronization group in wireless communication system
CN105429767A (en) * 2015-10-20 2016-03-23 北京小鸟听听科技有限公司 Group-establishing method and group-establishing system of audio groups, and equipment
CN108601080A (en) * 2018-05-09 2018-09-28 山东山大电力技术股份有限公司 A kind of time synchronizing signal transmission method and device based on wireless communication
CN108737007A (en) * 2018-08-24 2018-11-02 新华三技术有限公司 A kind of method for synchronizing time, device and equipment

Also Published As

Publication number Publication date
CN111194076B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
US20230074050A1 (en) Method for Terminal to Transmit and Receive Data on Multi-link, and Terminal
US9286249B2 (en) USB device communication method, device and system wherein a human interface device (HID) descriptor and report are added to a driver of USB device
CN105357737A (en) Method and device for accessing WiFi device to wireless access point
CN107770298B (en) Method and device for transmitting data
CN105188056A (en) Method and device for connecting WiFi (Wireless Fidelity) equipment with access point
CN108811110A (en) A kind of accidental access method and device, readable storage medium storing program for executing, base station
CN111224903B (en) Data transmission method, data transmission equipment and computer readable storage medium
CN111885683A (en) Communication method and device
US10237369B2 (en) Opportunistic backhauling of data for fine time measurement (FTM) responder systems
CN110661588B (en) Message transmission method, switching device, wireless communication equipment and storage medium
CN111194076B (en) Multi-device time synchronization system and method
CN110730496B (en) Synchronization method and terminal equipment
CN102664836B (en) A kind of Prototype Verification Platform for broadband wireless communications digital baseband processor
CN105722124A (en) Method for configuring RRU (Radio Remote Unit) equipment, RRU equipment and intermediate equipment
CN101478596B (en) Dual mode terminal and ultralong short message storage method
CN111769895A (en) Multi-device timing method and system and device timing method and device
CN112584389B (en) Networking method and communication device
CN113179533B (en) Network problem positioning method, device, equipment, storage medium and program product
CN114827967A (en) Software updating method, Bluetooth device and storage medium
CN105357272B (en) A kind of OTA upgrade method and equipment
CN114916011A (en) Control method of UWB baseband chip, UWB main control chip and storage medium
CN112449307B (en) Information pushing method and device, server and storage medium
Gringoli et al. A flexible framework for debugging iot wireless applications
CN107608809B (en) Exception handling method and device
CN102013918B (en) Method, system and device for transmitting data

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