CN116506055A - Method, device, equipment and medium for determining time tag - Google Patents

Method, device, equipment and medium for determining time tag Download PDF

Info

Publication number
CN116506055A
CN116506055A CN202310399930.8A CN202310399930A CN116506055A CN 116506055 A CN116506055 A CN 116506055A CN 202310399930 A CN202310399930 A CN 202310399930A CN 116506055 A CN116506055 A CN 116506055A
Authority
CN
China
Prior art keywords
time
message
determining
equipment
delay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310399930.8A
Other languages
Chinese (zh)
Inventor
陈重辰
区永通
邓轲
徐键
何超林
韩利群
吴旦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Original Assignee
China Southern Power Grid Digital Grid Technology Guangdong 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 China Southern Power Grid Digital Grid Technology Guangdong Co ltd filed Critical China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Priority to CN202310399930.8A priority Critical patent/CN116506055A/en
Publication of CN116506055A publication Critical patent/CN116506055A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electric Clocks (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for determining a time tag. Determining a second device that establishes a communication connection with the first device; wherein the first device does not have a time tag function, and the second device has a time tag function; acquiring delay time length of message interaction between a first device and a second device calibrated in advance; transmitting the data message to the second equipment, and acquiring a receiving time tag when the second equipment receives the data message; based on the receiving time label and the delay time length, the sending time label corresponding to the data message is determined, so that the problem of low calibration accuracy of the time label of the low-performance equipment is solved, deviation of determining the time label of the low-performance equipment is eliminated, and accuracy of determining the time label of the low-performance equipment is improved.

Description

Method, device, equipment and medium for determining time tag
Technical Field
The present invention relates to the field of internet of things, and in particular, to a method, an apparatus, a device, and a medium for determining a time tag.
Background
Currently, the application of the internet of things is very wide, for example, with the rapid development of the internet of things, a large number of intelligent electronic devices IED (Intelligent Electronic Device) exist in an electric power automation system. Due to the limitations of cost, application conditions and the like, part of IEDs have simple functions and do not have a time recording function, so that message information of the low-performance IEDs has no time tag, and the application of the functions is limited.
Currently, if it is desired to determine the time tag of the message data collected by the low-performance IED, when the message data of the IED is summarized to the assembler through the electric power internet of things, the assembler uniformly adds the current assembler time tag.
However, since the IEDs are often transmitted to the collector via multiple networks, there may be a large time delay in the middle, and there may be a large actual deviation due to the fact that the time for the collector to receive the IED message data is used as the time stamp for the IED acquisition.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for determining a time tag, which eliminate the deviation of determining a low-performance IED time tag and improve the accuracy of determining the low-performance IED time tag.
In a first aspect, the present invention provides a method for determining a time stamp, the method comprising:
determining a second device that establishes a communication connection with the first device; the first device does not have a time tag function, and the second device has a time tag function;
acquiring a delay time length of message interaction between the first equipment and the second equipment, which are calibrated in advance;
transmitting a data message to the second equipment, and acquiring a receiving time tag when the second equipment receives the data message;
and determining a sending time label corresponding to the data message based on the receiving time label and the delay time length.
In a second aspect, the present invention provides a time stamp determining apparatus, the apparatus comprising:
a second device determining module configured to determine a second device that establishes a communication connection with the first device; the first device does not have a time tag function, and the second device has a time tag function;
the delay time length acquisition module is used for acquiring the delay time length of the message interaction between the first equipment and the second equipment, which are calibrated in advance;
the receiving time determining module is used for sending the data message to the second equipment and acquiring a receiving time label when the second equipment receives the data message;
and the time tag determining module is used for determining a sending time tag corresponding to the data message based on the receiving time tag and the delay time length.
In a third aspect, the present invention provides an apparatus comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of determining a time stamp of any of the embodiments of the present invention.
In a fourth aspect, the present invention provides a computer readable storage medium storing computer instructions for causing a processor to perform a method of determining a time stamp according to any of the embodiments of the present invention.
According to the technical scheme provided by the embodiment of the invention, through determining the second equipment which is in communication connection with the first equipment, wherein the first equipment does not have a time tag function, the second equipment has a time tag function, further, the delay time of the message interaction between the first equipment and the second equipment, which is calibrated in advance, is obtained, the data message is sent to the second equipment, and the receiving time tag of the second equipment when the data message is received is obtained, so that the sending time tag corresponding to the data message is determined based on the receiving time tag and the delay time. The embodiment of the invention solves the problem of low calibration accuracy of the time label of the low-performance equipment, confirms the message time label of the first equipment by calculating the communication delay time length of the first equipment and the second equipment by utilizing the communication transmission relation between the equipment of the Internet of things, realizes the time recording function of the first equipment on the basis of not increasing the hardware cost, eliminates the deviation of determining the time label of the low-performance equipment, and improves the accuracy of determining the time label of the low-performance equipment.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for determining a time stamp according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a process of transmitting data to a primary device related to a first device according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a transmission time stamp corresponding to a certain data packet according to a first embodiment of the present invention;
fig. 4 is a flowchart of a method for determining a time stamp according to a second embodiment of the present invention;
FIG. 5 is a schematic diagram of calibrating delay time lengths of a first device and a second device according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a time tag determining device according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that, in the description and claims of the present invention and the above figures, the terms "first preset condition", "second preset condition", and the like are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for determining a time tag according to a first embodiment of the present invention, where the embodiment is applicable to a case of determining a time tag for a device without a time tag function. The method may be performed by a time-stamped determining means, which may be implemented in hardware and/or software, which may be configured on a computer device, which may be a notebook, desktop computer, smart tablet, etc. As shown in fig. 1, the method includes:
s110, determining a second device which establishes communication connection with the first device.
The device is an intelligent electronic device IED (Intelligent Electronic Device) in the electric power automation system, and the device can perform electric energy transmission, for example, the device can be a gas insulated switchgear, an XLPE cable, a generator, a transformer, a circuit breaker, a contactor and the like. The first device does not have a time stamp function and may be referred to simply as an NT-IED in this embodiment. The second device has a time stamp function, which may be abbreviated as T-IED in this embodiment, and the number of second devices may be one or more.
In the actual production process, a large number of first devices and second devices are configured, and the process of transmitting data from the first device to the primary device is shown in fig. 2. As shown in fig. 2A, raw data collected by the NT-IED may be directly uploaded to the data aggregator. As shown in fig. 2B, the raw data collected by the NT-IED may be first transferred to the T-IED, which then uploads the received data to the data aggregator. For the case shown in fig. 2A, the data aggregator may be the second device. For the situation shown in fig. 2B, there are T-IEDs that can receive data from a plurality of NT-IEDs, there is a one-to-one data transfer relationship between the T-IEDs and the NT-IEDs, and the further T-IEDs send data to a plurality of other devices, where the other devices include a portion of the second devices and a portion of the first devices, based on which the second devices that establish a communication connection with the first devices are first determined.
Specifically, in the process of transmitting data to the second device, the first device determines the second device corresponding to the first device based on the data message uploading path, and based on the second device, the second device establishing communication connection with the first device can be determined according to the data message uploading path corresponding to the first device.
S120, obtaining delay time length of message interaction between the first equipment and the second equipment calibrated in advance.
The delay time may be understood as the time that elapses during which the first device transmits data to the second device, the data being transmitted from the first device to the second device.
Specifically, the delay time length can be calibrated in advance, after the delay time calibration of the first device and the second device is completed, the delay time length can be stored in a data table, and the delay time length can be directly obtained from the data table in actual production.
The code number corresponding to the first device is a, the second device that establishes communication connection with the first device includes a second device 1 and a second device 2, the code number corresponding to the second device 1 is 001, the code number corresponding to the second device 2 is 002, the delay time period of the first device for message interaction with the second device 1 is calibrated to be 0.05s in advance, the delay time period of the first device for message interaction with the second device 2 is 0.06s, and a data table constructed by the code numbers of the first device, the second device and the delay time is referred to in table 1 on the basis. As shown in table 1, as long as the first device code number and the second device code number are determined, the delay duration of the message interaction between the first device and the second device can be obtained by querying the data table.
Table 1 delay duration data table
S130, sending the data message to the second device, and acquiring a receiving time tag when the second device receives the data message.
The data message is the last data content of the first device to the second device. The receiving time label is the time information corresponding to the second equipment when receiving the data message sent by the first equipment.
In practical application, the first device uploads its own data to the second device in the form of a data message, when the second device receives the data message, the second device may record a timestamp corresponding to the time when the second device receives the data message, where the timestamp is a receiving time tag when the second device receives the data message, and at this time, the first device further obtains the receiving time tag.
And S140, determining a sending time label corresponding to the data message based on the receiving time label and the delay time length.
The sending time tag is time information corresponding to when the first device sends the data message to the second device.
Specifically, on the basis of determining the receiving time label and the delay time length, the sending time label corresponding to the data message can be determined through operation of the receiving time label and the delay time length.
Optionally, determining a sending time tag corresponding to the data message specifically includes: and subtracting the receiving time label from the delay time length to determine the sending time label corresponding to the data message.
In this embodiment, the receiving time tag minus the delay time length may determine the sending time tag corresponding to the data packet. For example, referring to fig. 3, how to determine the transmission time tag corresponding to the data packet, when the first device transmits the data packet to the second device, the corresponding time stamp is T1, and T1 is the transmission time tag corresponding to the data packet, and since the first device does not have the time tag function, the specific value of T1 is unknown. The time stamp corresponding to the second device when receiving the data message sent by the first device is T2, where T2 is a receiving time tag when the second device receives the data message, and the specific value of T1 is known because the second device has a time tag function. On the basis of obtaining the delay time length, the delay time length is subtracted from T2 to obtain T1.
In practical applications, the benefits of determining the sending time tag corresponding to the data packet mainly include two aspects. In the first aspect, if the data message sent by the first device is sent at regular time, whether the data message sent by the first device is normal is judged by determining whether the sending time label corresponding to the data message follows a regular timing rule, and meanwhile, the second device can also check whether the network has a problem through the sending time label. In the second aspect, the second device may learn the working state of the first device by recording and analyzing the message with the time tag. For example, if the smart meter is the first device, the non-invasive load analysis technology commonly used by the smart meter at present can learn when the smart home appliance is turned on and turned off by analyzing the sending time tag on the smart home appliance.
Alternatively, the first device may collect raw data, and may also receive the collected raw data of other power devices. When the first device receives the original data, the data message corresponding to the original data is sent to the second device, and the receiving time label when the second device receives the data message is obtained, in this case, the time label when the first device receives the original data can be determined according to the receiving time label and the delay time length, and the data storage is performed on the time label when the first device receives the original data. In practical applications, when a specific time for the first device to receive the original data needs to be determined, the time tag for the first device to receive the original data may be directly called.
According to the technical scheme provided by the embodiment of the invention, through determining the second equipment which is in communication connection with the first equipment, wherein the first equipment does not have a time tag function, the second equipment has a time tag function, further, the delay time of the message interaction between the first equipment and the second equipment, which is calibrated in advance, is obtained, the data message is sent to the second equipment, and the receiving time tag of the second equipment when the data message is received is obtained, so that the sending time tag corresponding to the data message is determined based on the receiving time tag and the delay time. The embodiment of the invention solves the problem of low calibration accuracy of the time label of the low-performance equipment, confirms the message time label of the first equipment by calculating the communication delay time length of the first equipment and the second equipment by utilizing the communication transmission relation between the equipment of the Internet of things, realizes the time recording function of the first equipment on the basis of not increasing the hardware cost, eliminates the deviation of determining the time label of the low-performance equipment, and improves the accuracy of determining the time label of the low-performance equipment.
On the basis of the above embodiment, determining a second device that establishes a communication connection with the first device specifically includes: and determining candidate devices which are in communication connection with the first device based on the data uploading path of the first device, wherein the device with the time tag function is determined as a second device from the candidate devices.
The data uploading path is used for representing the communication connection relation between the first equipment and the second equipment. The candidate devices are all devices that establish a communication connection with the first device.
The first device is in communication connection with two second devices, and the first device establishes communication connection with two other devices at the same time, wherein the code number corresponding to the first device is a, the two second devices comprise a second device 1 and a second device 2, the code number corresponding to the second device 1 is 001, and the code number corresponding to the second device 2 is 002; the two other devices include the other device 1 and the other device 2, the code number corresponding to the other device 1 is 01, the code number corresponding to the other device 2 is 02, and the data uploading path can be expressed as "A/001-002-01-02". The candidate devices include the second device 1, the second device 2, the other devices 1, and the other devices 2.
In this embodiment, based on the data upload path of the first device, a candidate device that establishes a communication connection with the first device may be determined. The candidate device includes other devices that are not the second device, and the second device may be determined from the candidate devices based further on the code format corresponding to the first device.
Example two
Fig. 4 is a flowchart of a method for determining a time stamp according to a second embodiment of the present invention, where on the basis of the foregoing embodiment, how the delay time length of the message interaction between the first device and the second device in the embodiment of the present invention is determined is further refined, and the embodiment of the present invention may be combined with each of the alternatives in the foregoing one or more embodiments. As shown in fig. 4, the method includes:
s210, calibrating the time message and the confirmation message to obtain the delay time length of the message interaction between the first equipment and the second equipment.
The time synchronization message is message information sent by the second device to the first device. The time-setting message is only used for calculating the delay time length, can be set according to actual conditions and can be simple data. The confirmation message is message information sent to the second device immediately when the first device receives the time setting message sent by the second device. The confirmation message can be set by the actual situation, and can be a simple data.
In this embodiment, for the first device and the second device, the delay lengths may be calibrated for the first device and the second device according to the pairing message and the acknowledgement message. If the number of the second devices which are in communication connection with the first device comprises a plurality of second devices, the delay time length of the first device and each second device can be respectively calibrated, and each delay time length is stored with data.
In this embodiment, the manner of determining the delay period specifically includes the following steps S211 to S214:
s211, the second device sends the time alignment message to the first device, and determines a first sending time stamp corresponding to the time alignment message.
S212, when the first device receives the time pairing message, the first device sends a confirmation message to the second device.
S213, when the second device receives the confirmation message, determining a first receiving time stamp corresponding to the confirmation message.
S214, determining delay time length of the first device and the second device for message interaction based on the first sending time stamp and the first receiving time stamp.
The time stamp is a time tag. The first sending time stamp is a time stamp produced when the second device sends the pairing message to the first device. The first receiving timestamp is a timestamp generated by the second device when the second device receives the acknowledgement message.
In this embodiment, the manner in which the delay time of the first device and each of the second devices are calibrated is the same, and a first device and a second device are exemplified herein. Referring to fig. 5, in the process of calibrating the delay time, the second device first sends a time alignment message to the first device, and records a first sending timestamp corresponding to the time alignment message, namely t1. And then the first equipment immediately sends a confirmation message to the second equipment when receiving the opposite time message, and the second equipment records a first receiving time stamp when receiving the confirmation message, namely t2. Thus, the delay time length of the first device and the second device for carrying out message interaction can be determined based on t1 and t2.
On the basis of the above embodiment, S214 may include: subtracting the first receiving time stamp and the first sending time stamp to determine the round trip time; and determining the delay time length of the message interaction between the first equipment and the second equipment based on the round trip time length.
On the basis of the above exemplary embodiment, the time difference obtained by subtracting t2 from t1 is the round trip time length, as shown in fig. 5, where the round trip time length includes the sum of the time elapsed for the message to be transmitted from the second device to the first device and the time elapsed for the acknowledgement message to return from the first device to the second device, so the delay time length for the first device to interact with the second device may be expressed as:
optionally, S214 may include: when the second equipment receives the confirmation message, the second equipment sends the time setting message to the first equipment again; when the first equipment receives the time alignment message again, the first equipment sends a confirmation message again to the second equipment; when the second device receives the confirmation message again, determining a second receiving time stamp corresponding to the confirmation message; and determining the delay time length of the message interaction between the first device and the second device based on the first sending time stamp, the first receiving time stamp and the second receiving time stamp.
On the above exemplary basis, in order to obtain a more accurate delay period, the delay period may be determined based on two round trip periods. As shown in fig. 5, when the second device receives the acknowledgement message, a first reception timestamp corresponding to the acknowledgement message is determined, and the time alignment message is immediately sent to the first device again. When the first device receives the opposite message again, immediately sending a confirmation message again to the second device, at this time, the second device receives the confirmation message again, and records a second receiving time stamp t3 corresponding to the received confirmation message. On the basis of determining the first transmission time stamp t1, the first receiving time stamp t2 and the second receiving time stamp t3, the first device and the second device performThe delay time of the message interaction can be expressed as:it should be noted that, the second transmission time stamp of the second device for retransmitting the opposite time message is the same as the first reception time stamp of the first reception acknowledgement message.
It should be noted that, the calibration of the delay time length of the message interaction between the first device and the second device may be periodically performed at intervals of a preset time length, so as to update the delay time length data table, so as to avoid inaccurate determination result of the low-performance device time tag due to change of the delay time length caused by ageing of the device.
S220, determining a second device which establishes communication connection with the first device; wherein the first device does not have a time tag function, and the second device has a time tag function;
s230, acquiring delay time length of message interaction between the first equipment and the second equipment calibrated in advance;
s240, sending the data message to the second device, and acquiring a receiving time tag when the second device receives the data message;
s250, determining a sending time label corresponding to the data message based on the receiving time label and the delay time length.
According to the technical scheme provided by the embodiment of the invention, the delay time length of the message interaction between the first equipment and the second equipment is obtained based on the calibration of the time message and the confirmation message, the delay time length obtained by the calibration can be stored in the data table, and in the actual application process, the delay time length of the message interaction between the first equipment and the second equipment is directly read from the data table, so that the sending time label of the data message of the first equipment can be quickly and conveniently determined based on the receiving time label and the delay time length. When the delay time length of the message interaction between the first equipment and the second equipment is calibrated, the delay time length is determined through the two round trip time lengths, and the accuracy of determining the time label of the low-performance equipment is further improved.
Example III
Fig. 6 is a schematic structural diagram of a time tag determining apparatus according to a third embodiment of the present invention, where the apparatus may execute the method for determining a time tag according to the embodiment of the present invention. The device comprises: a second device determination module 310, a delay duration acquisition module 320, a receive time determination module 330, and a time tag determination module 340.
A second device determining module 310, configured to determine a second device that establishes a communication connection with the first device; the first device does not have a time tag function, and the second device has a time tag function;
a delay duration obtaining module 320, configured to obtain a delay duration of the message interaction between the first device and the second device, where the delay duration is calibrated in advance;
a receiving time determining module 330, configured to send a data packet to the second device, and obtain a receiving time tag when the second device receives the data packet;
the time tag determining module 340 is configured to determine a sending time tag corresponding to the data packet based on the receiving time tag and the delay duration.
On the basis of the above technical solutions, the second device determining module 310 is further configured to determine, based on the data upload path of the first device, a candidate device that establishes a communication connection with the first device, and determine, from among the candidate devices, a device with a time tag function as the second device.
On the basis of the technical schemes, the time tag determining device further comprises a delay duration determining module, wherein the delay duration determining module is used for obtaining the delay duration of the message interaction between the first equipment and the second equipment based on the calibration of the time message and the confirmation message.
On the basis of the above technical solutions, the delay time length determining module includes:
a first sending time determining unit, configured to send a time alignment message to the first device by using the second device, and determine a first sending timestamp corresponding to the time alignment message;
the confirmation message sending unit is used for sending a confirmation message to the second device when the first device receives the time setting message;
a first receiving time determining unit, configured to determine a first receiving time stamp corresponding to the acknowledgement message when the second device receives the acknowledgement message;
and the delay time length determining unit is used for determining the delay time length of the message interaction between the first device and the second device based on the first sending time stamp and the first receiving time stamp.
On the basis of the above technical solutions, the delay time length determining unit includes:
the round trip time length determining subunit is used for subtracting the first receiving time stamp and the first sending time stamp to determine round trip time length;
and the delay time length determining subunit is used for determining the delay time length of the message interaction between the first equipment and the second equipment based on the round trip time length.
On the basis of the above technical solutions, the delay time length determining unit includes:
a message resending subunit, configured to send the time synchronization message to the first device again when the second device receives the acknowledgement message;
a confirmation message sending subunit, configured to send a confirmation message to the second device again when the first device receives the pair time message again;
a second receiving time determining subunit, configured to determine a second receiving time stamp corresponding to the acknowledgement message when the second device receives the acknowledgement message again;
and the delay time length determining subunit is used for determining the delay time length of the message interaction between the first device and the second device based on the first sending time stamp, the first receiving time stamp and the second receiving time stamp.
Based on the above technical solutions, the time tag determining module 330 is further configured to subtract the receiving time tag and the delay duration to determine a sending time tag corresponding to the data packet.
According to the technical scheme provided by the embodiment of the invention, through determining the second equipment which is in communication connection with the first equipment, wherein the first equipment does not have a time tag function, the second equipment has a time tag function, further, the delay time of the message interaction between the first equipment and the second equipment, which is calibrated in advance, is obtained, the data message is sent to the second equipment, and the receiving time tag of the second equipment when the data message is received is obtained, so that the sending time tag corresponding to the data message is determined based on the receiving time tag and the delay time. The embodiment of the invention solves the problem of low calibration accuracy of the time label of the low-performance equipment, confirms the message time label of the first equipment by calculating the communication delay time length of the first equipment and the second equipment by utilizing the communication transmission relation between the equipment of the Internet of things, realizes the time recording function of the first equipment on the basis of not increasing the hardware cost, eliminates the deviation of determining the time label of the low-performance equipment, and improves the accuracy of determining the time label of the low-performance equipment.
The time tag determining device provided by the embodiment of the disclosure can execute the time tag determining method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the executing method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for convenience of distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
Example IV
Fig. 7 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. The device 10 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The device may also represent various forms of mobile apparatuses such as personal digital processing, cellular telephones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing apparatuses. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the apparatus 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the device 10 can also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 13. An input/output (I/O) interface 15 is also connected to bus 13.
The various components in the device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the method of determining the time stamp.
In some embodiments, the method of determining a time stamp may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the above-described time stamp determining method may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of time-stamping by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable time stamp determining apparatus, such that the computer programs, when executed by the processor, cause the functions/operations specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage 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. Alternatively, the computer readable storage medium may be a machine readable signal medium. 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome. It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein. The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for determining a time stamp, comprising:
determining a second device that establishes a communication connection with the first device; the first device does not have a time tag function, and the second device has a time tag function;
acquiring a delay time length of message interaction between the first equipment and the second equipment, which are calibrated in advance;
transmitting a data message to the second equipment, and acquiring a receiving time tag when the second equipment receives the data message;
and determining a sending time label corresponding to the data message based on the receiving time label and the delay time length.
2. The method of claim 1, wherein the determining the second device to establish the communication connection with the first device comprises:
and determining candidate devices which are in communication connection with the first device based on the data uploading path of the first device, and determining the device with the time tag function from the candidate devices as the second device.
3. The method of claim 1, wherein the delay time for the first device to interact with the second device is based on a calibration of a time message and a confirmation message.
4. The method of claim 3, wherein obtaining the delay time length for the first device to interact with the second device based on calibrating the time message and the acknowledgement message comprises:
the second device sends a time pairing message to the first device and determines a first sending time stamp corresponding to the time pairing message;
when the first equipment receives the time setting message, the first equipment sends a confirmation message to the second equipment;
when the second equipment receives the confirmation message, determining a first receiving time stamp corresponding to the confirmation message;
and determining the delay time length of the message interaction between the first device and the second device based on the first sending time stamp and the first receiving time stamp.
5. The method of claim 4, wherein determining a delay period for the first device to interact with the second device based on the first transmit timestamp and the first receive timestamp comprises:
the first receiving time stamp and the first sending time stamp are subtracted to determine the round trip time;
and determining the delay time length of the message interaction between the first equipment and the second equipment based on the round trip time length.
6. The method of claim 4, wherein determining a delay period for the first device to interact with the second device based on the first transmit timestamp and the first receive timestamp comprises:
when the second equipment receives the confirmation message, the second equipment sends the time setting message to the first equipment again;
when the first device receives the time setting message again, the first device sends a confirmation message again to the second device;
when the second device receives the confirmation message again, determining a second receiving time stamp corresponding to the confirmation message;
and determining the delay time length of the first device and the second device for message interaction based on the first sending time stamp, the first receiving time stamp and the second receiving time stamp.
7. The method of claim 1, wherein the determining, based on the receive time stamp and the delay time length, a transmit time stamp corresponding to the data message comprises:
and subtracting the delay time from the receiving time label to determine the sending time label corresponding to the data message.
8. A time stamp determining apparatus, comprising:
a second device determining module configured to determine a second device that establishes a communication connection with the first device; the first device does not have a time tag function, and the second device has a time tag function;
the delay time length acquisition module is used for acquiring the delay time length of the message interaction between the first equipment and the second equipment, which are calibrated in advance;
the receiving time determining module is used for sending the data message to the second equipment and acquiring a receiving time label when the second equipment receives the data message;
and the time tag determining module is used for determining a sending time tag corresponding to the data message based on the receiving time tag and the delay time length.
9. An apparatus, the apparatus comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of determining a time stamp of any of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the method of determining a time stamp of any of claims 1-7 when executed.
CN202310399930.8A 2023-04-14 2023-04-14 Method, device, equipment and medium for determining time tag Pending CN116506055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310399930.8A CN116506055A (en) 2023-04-14 2023-04-14 Method, device, equipment and medium for determining time tag

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310399930.8A CN116506055A (en) 2023-04-14 2023-04-14 Method, device, equipment and medium for determining time tag

Publications (1)

Publication Number Publication Date
CN116506055A true CN116506055A (en) 2023-07-28

Family

ID=87319482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310399930.8A Pending CN116506055A (en) 2023-04-14 2023-04-14 Method, device, equipment and medium for determining time tag

Country Status (1)

Country Link
CN (1) CN116506055A (en)

Similar Documents

Publication Publication Date Title
CN115081960B (en) Regional hollow rate information generation method and device, electronic equipment and computer medium
CN110166159A (en) One kind being based on GPRS network clock synchronization, electric energy meter time synchronization method and system
CN115567589A (en) Compression transmission method, device, equipment and storage medium of JSON data
CN114500605A (en) Industrial Internet of things data transmission method based on 5G and intelligent gateway
CN116506055A (en) Method, device, equipment and medium for determining time tag
CN116193296A (en) Method, device, equipment and medium for collecting and processing containerized distributed data
CN112256714A (en) Data synchronization method and device, electronic equipment and computer readable medium
CN116208288A (en) Method, device, equipment and storage medium for correcting timing time
US20230045153A1 (en) Method and apparatus for displaying measurement parameters
CN116821590B (en) Method and system for collecting power edge data
CN112910086B (en) Intelligent substation data verification method and system
CN116582529A (en) Log synchronization method and device, electronic equipment and storage medium
CN112968933B (en) Data transmission method, device, server and storage medium
CN117651078A (en) Data transmission method and device, electronic equipment and storage medium
CN117076185B (en) Server inspection method, device, equipment and medium
CN114553894B (en) Data synchronization method, device, system and storage medium
CN116628383A (en) Page jump method, device, electronic equipment and storage medium
CN117406577A (en) Timing error determining method, timing error determining device, chip and storage medium
CN114422877A (en) System, method, device, equipment, medium and product for collecting temperature
CN115208871A (en) Hydrogen production equipment monitoring system and method and storage medium
CN117806604A (en) TLV data analysis method and device based on spring boot frame
CN116521757A (en) Time sequence data processing method, device, equipment and storage medium
CN116074331A (en) Block data synchronization method and related product
CN117394867A (en) Data compression method and device, electronic equipment and storage medium
CN118158299A (en) Data conversion method, device, equipment and 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