CN113068250B - Time synchronization device, method, equipment and storage medium - Google Patents

Time synchronization device, method, equipment and storage medium Download PDF

Info

Publication number
CN113068250B
CN113068250B CN202110358097.3A CN202110358097A CN113068250B CN 113068250 B CN113068250 B CN 113068250B CN 202110358097 A CN202110358097 A CN 202110358097A CN 113068250 B CN113068250 B CN 113068250B
Authority
CN
China
Prior art keywords
instruction
positioning
module
target
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110358097.3A
Other languages
Chinese (zh)
Other versions
CN113068250A (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.)
Qingyuan Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Qingyuan Power Supply Bureau of Guangdong Power Grid 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 Qingyuan Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Qingyuan Power Supply Bureau of Guangdong Power Grid Co Ltd
Priority to CN202110358097.3A priority Critical patent/CN113068250B/en
Publication of CN113068250A publication Critical patent/CN113068250A/en
Application granted granted Critical
Publication of CN113068250B publication Critical patent/CN113068250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/04Large scale networks; Deep hierarchical networks
    • H04W84/06Airborne or Satellite Networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a time synchronization device, a time synchronization method, a time synchronization device and a time synchronization storage medium. The time synchronization device includes: the positioning module is connected with the control module; the positioning module is used for acquiring positioning clock information and sending the positioning clock information to the control module; the control module is used for receiving a control instruction input by a user, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to at least two devices to be tested, wherein the target instruction comprises: an open instruction or an end instruction, wherein the open instruction includes: on time. According to the technical scheme, the accuracy of the synchronous signals can be improved, and the synchronous signal processing method and device are applied to scenes of high-accuracy tests and debugging.

Description

Time synchronization device, method, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a time synchronization device, a method, equipment and a storage medium.
Background
In power debugging and electrical test of a power network, debugging and test are often required to be performed in different areas, so that electrical signals in different areas are ensured to be started at the same time or transmitted simultaneously, and therefore, electrical equipment in different areas needs to have the same time reference.
In order to start test equipment or send signals as accurately as possible, normally, workers in different areas communicate through mobile phones and determine action time by a countdown method, and the method is simple to operate, but because the mobile phone calls have a certain delay and the reactions of different workers are different, the accuracy is extremely low, test data are inaccurate, only rough conclusion judgment can be performed, and for occasions with high accuracy requirements and higher test data requirements, the method cannot be completed at all.
Disclosure of Invention
The embodiment of the invention provides a time synchronization device, a time synchronization method, a time synchronization device and a time synchronization device, and a storage medium, so that the accuracy of a synchronization signal can be improved, and the time synchronization device, the time synchronization method, the time synchronization device and the storage medium are applied to scenes of high-accuracy tests and debugging.
In a first aspect, an embodiment of the present invention provides a time synchronization apparatus, including:
the positioning module is connected with the control module;
the positioning module is used for acquiring positioning clock information and sending the positioning clock information to the control module;
the control module is used for receiving a control instruction input by a user, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to at least two devices to be tested, wherein the target instruction comprises: an open instruction or an end instruction, wherein the open instruction includes: on time.
Further, the time synchronization device further includes: the touch screen is connected with the control module;
the touch screen is used for acquiring a control instruction input by a user and sending the control instruction to the control module.
Further, the touch screen is further configured to:
and acquiring a query instruction input by a user, querying according to the query instruction to obtain target data, and displaying the target data or sending the target data to a control module.
Further, the control module is specifically configured to:
receiving a control instruction input by a user, and determining target time information according to the control instruction;
and generating an opening instruction and sending the opening instruction to at least two devices to be tested when the target time information is the same as the positioning clock information, or generating a closing instruction and sending the closing instruction to at least two devices to be tested when the target time information is the same as the positioning clock information.
Further, the opening instruction further includes: duration or interval.
In a second aspect, an embodiment of the present invention further provides a time synchronization method, where the method includes:
acquiring positioning clock information based on a positioning module, and sending the positioning clock information to a control module;
receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to at least two devices to be tested, wherein the target instruction comprises: an open instruction or an end instruction, wherein the open instruction includes: on time.
Further, receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to a device to be tested, including:
receiving a control instruction input by a user based on the control module, and determining target time information according to the control instruction;
and when the target time information is the same as the positioning clock information, the control module generates an opening instruction and sends the opening instruction to at least two devices to be tested, or when the target time information is the same as the positioning clock information, the control module generates a closing instruction and sends the closing instruction to at least two devices to be tested.
In a third aspect, embodiments of the present invention further provide a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing a method according to any of the embodiments of the present invention when executing the program.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements a method according to any of the embodiments of the present invention.
According to the embodiment of the invention, the positioning module acquires positioning clock information and sends the positioning clock information to the control module; and receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to at least two devices to be tested so as to realize that the accuracy of the synchronous signal can be improved, and the method is applied to scenes of high-accuracy tests and debugging.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a time synchronization device according to a first embodiment of the present invention;
FIG. 1a is a diagram of a time synchronization device according to a first embodiment of the present invention;
FIG. 1b is a schematic diagram of a time synchronization apparatus according to a first embodiment of the present invention;
FIG. 1c is a schematic diagram of the operation of a time synchronization device according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a time synchronization method in a second embodiment of the invention;
fig. 3 is a schematic structural diagram of a computer device in a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Example 1
Fig. 1 is a schematic structural diagram of a time synchronization device according to an embodiment of the present invention. As shown in fig. 1, the time synchronization device specifically includes: a positioning module 110 and a control module 120.
Wherein the positioning module 110 is connected with the control module 120;
the positioning module 110 is configured to obtain positioning clock information, and send the positioning clock information to the control module;
the control module 120 is configured to receive a control instruction input by a user, generate a target instruction according to the control instruction and the positioning clock information, and send the target instruction to at least two devices to be tested, where the target instruction includes: an open instruction or an end instruction, wherein the open instruction includes: on time.
Optionally, the time synchronization device further includes: the touch screen is connected with the control module;
the touch screen is used for acquiring a control instruction input by a user and sending the control instruction to the control module.
Optionally, the touch screen is further configured to:
and acquiring a query instruction input by a user, querying according to the query instruction to obtain target data, and displaying the target data or sending the target data to a control module.
Optionally, the control module is specifically configured to:
receiving a control instruction input by a user, and determining target time information according to the control instruction;
and generating an opening instruction and sending the opening instruction to at least two devices to be tested when the target positioning clock information and the target time information are the same, or generating a closing instruction and sending the closing instruction to the devices to be tested when the target positioning clock information and the target time information are the same.
Optionally, the opening instruction further includes: duration or interval.
Optionally, the positioning module includes: the GPRS acquisition unit is connected with the GPRS time service unit, and the GPRS time service unit is connected with the control unit;
the GPRS acquisition unit is used for acquiring an atomic clock signal and transmitting the atomic clock signal to the GPRS time service unit;
the GPRS time service unit is used for converting the atomic clock signal into communication coding information and sending the communication coding information to the control module.
Illustratively, the adoption of the GPRS acquisition unit and the GPRS time service unit can save expenses.
In a specific example, a stable time reference source is selected first, and a GPRS micro atomic clock is selected as a standard time reference source provided by the embodiment of the present invention, where the embodiment of the present invention is designed based on the characteristics of a GPRS satellite. As shown in fig. 1a, the time synchronization device provided by the embodiment of the invention comprises a GPRS acquisition unit, a GPRS time service unit, a control module, a touch screen and a signal transmission module, wherein the GPRS acquisition unit is in communication with a communication satellite, acquires atomic clock signals of the satellite, transmits the atomic clock signals to the GPRS time service unit, and converts the atomic clock signals acquired by the GPRS into communication codes and transmits the communication codes to the control module. The main body of the control module is a singlechip, is additionally provided with other functional modules, has timing and logic storage functions, can perform data transmission, and realizes the action of the control signal transmission module; the touch screen is a man-machine dialogue device, and can be used for inquiring data, setting fixed values, setting logic functions and the like; the signal transmitting module is used for transmitting the switching value signal after receiving the instruction of the control module, and determining the starting time and the duration of signal execution according to the instruction transmitted by the control module. The signal sending module and the device to be tested can be connected through a wire or a wireless.
In another specific example, as shown in fig. 1b, the time synchronization device further includes: the device comprises a metal shell, a GPRS acquisition interface and a signal transmission interface, wherein a switch is arranged on the side face of the metal shell, the GPRS acquisition interface is externally connected with a GPRS acquisition unit, the signal transmission interface is connected with external equipment to be tested, and the equipment to be tested is the equipment used for the test. The front of the metal shell is provided with a touch screen, and the touch screen is used for data observation and parameter setting.
In another specific example, as shown in fig. 1c, since the sites in different areas all use the same satellite as the standard source, the determined time is always completely consistent, and thus, the following series of functional applications can be performed:
and (3) starting at fixed time: when signals of all stations at a certain time point are required to be sent out simultaneously in test and debugging, starting time can be set on the touch screen, the starting time is the same, and when the time point is reached, devices of all stations send out signals simultaneously, and the time points are identical in height.
The signal is continuous: when a certain signal is required to last for a certain fixed time in test and debugging, all stations of A-N can be set for the same time and for a period of time, then the signal of the device is sent out at a certain fixed time and is continuously and simultaneously disconnected at a certain time, and of course, different station quasi-time difference setting can be realized, for example: one station lasts for 1S and the other station lasts for 2S, and because the time precision of the device is extremely high, the device can accurately send out signals, and the running state is judged according to the conclusion of the test.
Infinite loop: when the test debugging needs a pulse signal, the duration and the interval time of the signal can be set, and then the sent signal is sent periodically so as to meet the requirement of the test debugging.
According to the technical scheme, positioning clock information is obtained through a positioning module, and the positioning clock information is sent to a control module; and receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to the equipment to be tested, so that the accuracy of the synchronous signal can be improved, and the method is applied to scenes of high-accuracy tests and debugging.
Example two
Fig. 2 is a flowchart of a time synchronization method provided in a second embodiment of the present invention, where the method may be performed by a time synchronization device in the embodiment of the present invention, and the device may be implemented in software and/or hardware, and as shown in fig. 2, the time synchronization method specifically includes the following steps:
s210, positioning clock information is acquired based on the positioning module, and the positioning clock information is sent to the control module.
The positioning clock information may be GPS clock information or GPRS clock information, which is not limited in the embodiment of the present invention.
The positioning module may be a GPS positioning module or a GPRS positioning module, which is not limited in this embodiment of the present invention.
Wherein, the control module can be a singlechip.
Illustratively, the positioning module obtains positioning clock information, the positioning module sends the obtained positioning clock information to the control module, and the control module receives the positioning clock information.
S220, receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to at least two devices to be tested.
Wherein the target instruction comprises: an open instruction or an end instruction, wherein the open instruction includes: on time.
The method for acquiring the control instruction input by the user may be a control instruction manually input by the user on the touch screen, a control instruction generated according to voice information input by the user, or a control instruction generated according to gesture information input by the user, which is not limited in the embodiment of the present invention.
Wherein the control instruction includes: one or more of on time, off time, duration, and interval time, to which embodiments of the present invention are not limited.
Wherein the target instruction comprises: at least one of an on command, an off command, a continuous on command, and an interval on command.
Specifically, the method for generating the target instruction according to the control instruction and the positioning clock information and transmitting the target instruction to at least two devices to be tested may be: and the control instruction carries starting time, and when the time corresponding to the positioning clock information is the same as the starting time, the starting instruction is generated, and at least two devices to be tested are controlled to be started simultaneously according to the starting instruction. The mode of generating the target instruction according to the control instruction and the positioning clock information and transmitting the target instruction to at least two devices to be tested may also be: and the control instruction carries closing time, and when the time corresponding to the positioning clock information is the same as the closing time, a closing instruction is generated, and at least two devices to be tested are controlled to be closed at the same time according to the closing instruction. The method for generating the target instruction according to the control instruction and the positioning clock information and transmitting the target instruction to at least two devices to be tested may further be: and the control instruction carries opening time and duration, when the time corresponding to the positioning clock information is the same as the opening time, an opening instruction is generated, at least two devices to be tested are controlled to be simultaneously opened according to the opening instruction, timing is started after the opening instruction is started, and when the duration is reached, the at least two devices to be tested are controlled to be simultaneously closed. The mode of generating the target instruction according to the control instruction and the positioning clock information and transmitting the target instruction to at least two devices to be tested may also be: the control instruction comprises: setting the starting time as a for the equipment A to be tested, setting the starting time as B for the equipment B to be tested, setting the starting time as C for the equipment C to be tested, controlling the starting of the equipment A to be tested when the positioning clock information is a according to the control command and the positioning clock information, controlling the starting of the equipment B to be tested when the positioning clock information is B according to the control command and the positioning clock information, and controlling the starting of the equipment C to be tested when the positioning clock information is C according to the control command and the positioning clock information. The mode of generating the target instruction according to the control instruction and the positioning clock information and transmitting the target instruction to at least two devices to be tested may also be: the control instruction comprises: setting the closing time as a for the equipment A to be tested, setting the closing time as B for the equipment B to be tested, setting the closing time as C for the equipment C to be tested, controlling the equipment A to be tested to be closed when the positioning clock information is a according to the control instruction and the positioning clock information, controlling the equipment B to be tested to be closed when the positioning clock information is B according to the control instruction and the positioning clock information, and controlling the equipment C to be tested to be closed when the positioning clock information is C according to the control instruction and the positioning clock information. The mode of generating the target instruction according to the control instruction and the positioning clock information and transmitting the target instruction to at least two devices to be tested may also be: the control instruction comprises: and the starting time and the interval time are used for controlling at least two devices to be tested to be started at preset intervals according to the control instruction and the positioning clock information. The embodiment of the present invention is not limited thereto.
Optionally, receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to a device to be tested, including:
receiving a control instruction input by a user based on the control module, and determining target time information according to the control instruction;
and when the target time information is the same as the positioning clock information, the control module generates an opening instruction and sends the opening instruction to at least two devices to be tested, or when the target time information is the same as the positioning clock information, the control module generates a closing instruction and sends the closing instruction to at least two devices to be tested.
The target time information may be a start time or a closing time. When the target time information is the starting time, the control module generates an opening instruction and sends the opening instruction to the equipment to be tested when the positioning clock information and the target time information are identical. When the target time information is closing time, the control module generates a closing instruction and sends the closing instruction to the equipment to be tested when the positioning clock information and the target time information are identical. Optionally, the control instruction may further include: and when the time corresponding to the positioning time information is the same as the closing time, controlling the equipment to be tested to close.
In a specific example, since the sites in different areas all use the same satellite as a standard source, the determined time is always completely consistent, and thus, the following series of functional applications can be performed:
and (3) starting at fixed time: when signals of all stations at a certain time point are required to be sent out simultaneously in test and debugging, starting time can be set on the touch screen, the starting time is the same, and when the time point is reached, devices of all stations send out signals simultaneously, and the time points are identical in height.
The signal is continuous: when a certain signal is required to last for a certain fixed time in test and debugging, all stations of A-N can be set for the same time and for a period of time, then the signal of the device is sent out at a certain fixed time and is continuously and simultaneously disconnected at a certain time, and of course, different station quasi-time difference setting can be realized, for example: one station lasts for 1S and the other station lasts for 2S, and because the time precision of the device is extremely high, the device can accurately send out signals, and the running state is judged according to the conclusion of the test.
Infinite loop: when the test debugging needs a pulse signal, the duration and the interval time of the signal can be set, and then the sent signal is sent periodically so as to meet the requirement of the test debugging.
According to the technical scheme, positioning clock information is obtained through a positioning module, and the positioning clock information is sent to a control module; and receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to the equipment to be tested, so that the accuracy of the synchronous signal can be improved, and the method is applied to scenes of high-accuracy tests and debugging.
Example III
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. FIG. 3 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 3 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in FIG. 3, computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MCA) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive"). Although not shown in fig. 3, a disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable nonvolatile optical disk (Compact Disc-Read Only Memory, CD-ROM), digital versatile disk (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media, may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. In addition, in the computer device 12 of the present embodiment, the display 24 is not present as a separate body but is embedded in the mirror surface, and the display surface of the display 24 and the mirror surface are visually integrated when the display surface of the display 24 is not displayed. Moreover, the computer device 12 may also communicate with one or more networks such as a local area network (Local Area Network, LAN), a wide area network Wide Area Network, a WAN) and/or a public network such as the internet via the network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk array (Redundant Arrays of Independent Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the time synchronization method provided by the embodiment of the present invention:
acquiring positioning clock information based on a positioning module, and sending the positioning clock information to a control module;
receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to at least two devices to be tested, wherein the target instruction comprises: an open instruction or an end instruction, wherein the open instruction includes: on time.
Example IV
A fourth embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a time synchronization method as provided by all the inventive embodiments of the present application:
acquiring positioning clock information based on a positioning module, and sending the positioning clock information to a control module;
receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to at least two devices to be tested, wherein the target instruction comprises: an open instruction or an end instruction, wherein the open instruction includes: on time.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (Hyper Text Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (6)

1. A time synchronization device, comprising: the positioning module is connected with the control module;
the positioning module is used for acquiring positioning clock information and sending the positioning clock information to the control module;
the control module is used for receiving a control instruction input by a user, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to at least two devices to be tested, wherein the target instruction comprises: an open instruction or a close instruction, wherein the open instruction includes: opening time;
the control module is specifically used for:
receiving a control instruction input by a user, and determining target time information according to the control instruction;
generating an opening instruction and sending the opening instruction to at least two devices to be tested when the positioning clock information and the target time information are the same, or generating a closing instruction and sending the closing instruction to at least two devices to be tested when the positioning clock information and the target time information are the same;
the positioning module comprises: the GPRS acquisition module is connected with the GPRS time service module, and the GPRS time service module is connected with the control module;
the GPRS acquisition module is used for acquiring an atomic clock signal and sending the atomic clock signal to the GPRS time service module;
the GPRS time service module is used for converting the atomic clock signal into communication coding information and sending the communication coding information to the control module;
the opening instruction further includes: duration or interval.
2. The time synchronization device of claim 1, further comprising: the touch screen is connected with the control module;
the touch screen is used for acquiring a control instruction input by a user and sending the control instruction to the control module.
3. The time synchronization device of claim 2, wherein the touch screen is further configured to:
and acquiring a query instruction input by a user, querying according to the query instruction to obtain target data, and displaying the target data or sending the target data to a control module.
4. A time synchronization method, performed by the time synchronization device of any one of 1 to 3, comprising:
acquiring positioning clock information based on a positioning module, and sending the positioning clock information to a control module;
receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to at least two devices to be tested, wherein the target instruction comprises: an open instruction or a close instruction, wherein the open instruction includes: opening time;
receiving a control instruction input by a user based on the control module, generating a target instruction according to the control instruction and the positioning clock information, and sending the target instruction to a device to be tested, wherein the method comprises the following steps:
receiving a control instruction input by a user based on the control module, and determining target time information according to the control instruction;
when the positioning clock information and the target time information are the same, the control module generates an opening instruction and sends the opening instruction to at least two devices to be tested, or when the positioning clock information and the target time information are the same, the control module generates a closing instruction and sends the closing instruction to at least two devices to be tested;
the positioning module comprises: the GPRS acquisition module is connected with the GPRS time service module, and the GPRS time service module is connected with the control module;
the GPRS acquisition module is used for acquiring an atomic clock signal and sending the atomic clock signal to the GPRS time service module;
the GPRS time service module is used for converting the atomic clock signal into communication coding information and sending the communication coding information to the control module;
the opening instruction further includes: duration or interval.
5. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method as claimed in claim 4 when executing the program.
6. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method as claimed in claim 4.
CN202110358097.3A 2021-04-01 2021-04-01 Time synchronization device, method, equipment and storage medium Active CN113068250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110358097.3A CN113068250B (en) 2021-04-01 2021-04-01 Time synchronization device, method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110358097.3A CN113068250B (en) 2021-04-01 2021-04-01 Time synchronization device, method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113068250A CN113068250A (en) 2021-07-02
CN113068250B true CN113068250B (en) 2023-07-18

Family

ID=76565604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110358097.3A Active CN113068250B (en) 2021-04-01 2021-04-01 Time synchronization device, method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113068250B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821074B (en) * 2021-09-06 2023-09-08 北京车和家信息技术有限公司 Time synchronization method and device, electronic equipment and storage medium
CN114326928B (en) * 2021-12-08 2024-04-26 深圳市汇川技术股份有限公司 Method, apparatus, control device and computer readable storage medium for time synchronization

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012077704A1 (en) * 2010-12-07 2012-06-14 日本電気株式会社 Debug stub server, debugging method and program
CN207939521U (en) * 2017-12-06 2018-10-02 云南电网有限责任公司大理供电局 A kind of clock synchronization apparatus towards digital transformer substation debugging

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3151850B2 (en) * 1991-05-10 2001-04-03 カシオ計算機株式会社 Automatic performance device
US8174383B1 (en) * 2004-08-26 2012-05-08 Avante International Technology, Inc. System and method for operating a synchronized wireless network
CN101771528B (en) * 2008-12-31 2013-08-07 华为技术有限公司 Method, device and system for realizing clock synchronization
US8793402B2 (en) * 2011-08-26 2014-07-29 International Business Machines Corporation Synchronizing time across a plurality of devices connected to a network
CN202889361U (en) * 2011-10-28 2013-04-17 王维毅 Internet of Things terminal and Internet of Things time service system
CN203166942U (en) * 2013-02-27 2013-08-28 南京讯汇科技发展有限公司 Time synchronization device based on IEEE1588 protocol
CN105334907A (en) * 2015-09-28 2016-02-17 成都成电光信科技股份有限公司 Clock synchronization method and data processing system
CN105656590B (en) * 2015-12-30 2019-03-08 天维尔信息科技股份有限公司 Realize the methods, devices and systems of time synchronization
CN108012321A (en) * 2016-12-21 2018-05-08 深圳中盛智兴科技有限公司 Intelligent main equipment and smart slave device, time reminding method and system
CN109672918B (en) * 2017-10-17 2020-11-03 腾讯科技(深圳)有限公司 Animation synchronous playing method and device
CN108834281B (en) * 2018-07-05 2019-09-13 常州市武进区半导体照明应用技术研究院 The policy control method of road lamp system
CN111176130B (en) * 2020-01-07 2022-05-24 华为技术有限公司 Equipment control method, equipment control method and equipment control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012077704A1 (en) * 2010-12-07 2012-06-14 日本電気株式会社 Debug stub server, debugging method and program
CN207939521U (en) * 2017-12-06 2018-10-02 云南电网有限责任公司大理供电局 A kind of clock synchronization apparatus towards digital transformer substation debugging

Also Published As

Publication number Publication date
CN113068250A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN111475298B (en) Task processing method, device, equipment and storage medium
CN113068250B (en) Time synchronization device, method, equipment and storage medium
KR20220091500A (en) Methods and devices, electronic devices and media for displaying music points
CN111664844B (en) Navigation method, navigation device and electronic equipment
CN111831054B (en) Asynchronous system clock synchronization method, device, system and storage medium
EP3869175A2 (en) Testing method and apparatus for automated driving system, electronic device, storage medium and computer program product
US20230100171A1 (en) Method and apparatus for automatically identifying and annotating auditory signals from one or more parties
CN113377366A (en) Control editing method, device, equipment, readable storage medium and product
CN112395363B (en) Data synchronization method, device, equipment and readable storage medium
CN110837333A (en) Method, device, terminal and storage medium for adjusting playing progress of multimedia file
WO2019000881A1 (en) Method, apparatus and device for navigation, and computer-readable storage medium
CN108920085B (en) Information processing method and device for wearable device
CN110806834A (en) Information processing method and device based on input method, electronic equipment and medium
CN110865846A (en) Application management method, device, terminal, system and storage medium
CN110837334A (en) Method, device, terminal and storage medium for interactive control
CN111707286B (en) Method and device for planning route
CN110060477B (en) Method and device for pushing information
CN108848122B (en) Method and equipment for pushing information and showing information
CN108540644B (en) Method and electronic device for setting an alarm
JP2019091012A (en) Information recognition method and device
US11740639B2 (en) Method and apparatus for gutting signal light information
CN113849416A (en) Test method, test device, storage medium and electronic equipment
CN110750424B (en) Resource inspection method and device
CN109284350B (en) Method and device for updating search content, storage medium and electronic equipment
CN114185805A (en) Embedded point verification method, device, equipment and storage medium

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