Data receiving method, data sending method and computer readable storage medium
By synchronously processing the fault start signal in the digital substation, calculating and sending high-frequency sampling data messages, it solves the high-frequency data sampling requirements of the traveling wave ranging device, improves the accuracy of fault analysis and data transmission efficiency, and realizes digitization sampling.
Patent Information
- Application Number
- CN202410568478.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-09
AI Technical Summary
In digital substations, the traveling wave ranging device's demand for high-frequency analog sampling data cannot be met. As a result, the traditional merging unit can only sample and send data at low frequency, resulting in low accuracy of fault analysis results and high data transmission traffic.
By realizing the synchronization of fault start signals at the data receiving end and the sending end, the sampling time stamps of multiple sets of fault data messages are calculated according to the preset sampling frequency, and multiple sets of fault data messages are sent according to the preset sending frequency to ensure the reliability of data transmission. High-frequency matching fault detection waveforms realize the transmission of high-frequency sampling data.
It saves the traffic required for data transmission, improves the accuracy of fault analysis, realizes digital sampling, and improves the accuracy of fault location.
Smart Images

Figure CN118612147A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data receiving method, a data sending method, and a computer-readable storage medium. Background Art
[0002] In a digital substation, the substation automation system can be divided into three levels: station control layer, bay layer and process layer. The process layer equipment can include a merging unit, which can sample current analog signals and voltage analog signals, and package the sampled analog data into a message and send it to the device at the bay layer, such as the protection measurement and control device. This method can be called a digital sampling method.
[0003] Traveling wave ranging devices are usually also installed in the bay layer to monitor and analyze traveling wave signals on the transmission line (formed by the voltage waveform and current waveform on the transmission line when a fault occurs in the substation automation system) to achieve fault diagnosis and location.
[0004] However, since the traveling wave ranging device has a high sampling frequency requirement for analog quantity sampling data, in the traditional technical solution, although the sampling frequency of the merging unit can meet the sampling frequency requirement of the traveling wave ranging device, the merging unit cannot transmit high-frequency sampling data. The merging unit can only perform data sampling at a low frequency and send low-frequency sampling data to the traveling wave ranging device in real time, which not only consumes a large amount of data traffic, but also the traveling wave ranging device analyzes the received low-frequency sampling data, and the fault analysis result obtained has a low accuracy rate. Therefore, in the traditional technical solution, the traveling wave ranging device cannot realize digital sampling. Summary of the invention
[0005] The embodiments of the present application provide a data receiving method, a data sending method and a computer-readable storage medium, which can realize the transmission of high-frequency sampling data, save the traffic required for data transmission, improve the accuracy of fault analysis, and thus realize digital sampling.
[0006] In a first aspect, an embodiment of the present application provides a data receiving method, which is applied to a data receiving end, and the method includes: when a fault signal is detected, sending a fault start signal and recording a first moment, the first moment is the moment of sending the fault start signal, the fault start signal is used to obtain multiple groups of fault data messages, and the sampling frequency of the multiple groups of fault data messages is a preset sampling frequency; receiving a first fault data message and recording a second moment, the second moment is the moment of receiving the first fault data message, the first fault data message is the first group of fault data messages in the multiple groups of fault data messages, and the multiple groups of fault data messages are messages collected during a fault time period, and the fault time period includes a third moment, the third moment is the moment when the fault start signal is received, and the third moment is between the first moment and the second moment; calculating multiple sampling time marks of the multiple groups of fault data messages according to the preset sampling frequency, the first moment and the second moment, the multiple sampling time marks correspond to the multiple groups of fault data messages one by one, the difference between the time interval of two adjacent sampling time marks in the multiple sampling time marks and the sampling period corresponding to the preset sampling frequency is less than or equal to the preset error, and the preset sampling frequency matches the frequency required for the fault detection waveform of the data receiving end.
[0007] In some embodiments, multiple sampling time stamps of multiple groups of fault data messages are calculated according to a preset sampling frequency, a first moment, and a second moment, including: obtaining a preset sending time period; calculating a data delay according to the first moment and the second moment; calculating a first sampling time stamp of the first fault data message according to the first moment, the preset sending time period, and the data delay; calculating a second sampling time stamp of the second fault data message according to the first sampling time stamp and the preset sampling frequency, the second fault data message being any group of fault data messages among the multiple groups of fault data messages that is different from the first fault data message, and when the second fault data message is the next group of fault data messages of the first fault data message, the difference between the time interval between the second sampling time stamp and the first sampling time stamp and the sampling period of the preset sampling frequency is less than or equal to a preset error.
[0008] In some implementations, the first sampling time mark is positively correlated with the data delay, and the first sampling time mark is negatively correlated with the preset sending time period.
[0009] In some embodiments, the data delay is calculated based on the first moment and the second moment, including: determining that half of the difference between the second moment and the first moment is the data delay; calculating the first sampling time mark of the first fault data message based on the first moment, the preset sending time period and the data delay, including: determining that the difference between the preset sending time period and the data delay is the first time difference; determining that the difference between the first moment and the first time difference is the first sampling time mark.
[0010] In some implementations, the third sampling time mark is the sum of the second sampling time mark and the first ratio, the third sampling time mark is the sampling time mark of the next group of fault data messages of the second fault data message, and the first ratio is the sampling period corresponding to the preset sampling frequency.
[0011] In some embodiments, multiple sampling time stamps of multiple groups of fault data messages are calculated according to a preset sampling frequency, a first moment and a second moment, including: receiving a first test message, the first test message is used to indicate that the reception of multiple groups of fault data messages has been completed; in response to receiving the first test message, multiple sampling time stamps of multiple groups of fault data messages are calculated according to the preset sampling frequency, the first moment and the second moment.
[0012] In some implementations, the fourth fault data message carries multiple groups of sampling values, which are sampling values collected through multiple channels, and the multiple groups of sampling values correspond one-to-one to the multiple channels. The fourth fault data message is any one of the multiple groups of fault data messages.
[0013] In a second aspect, an embodiment of the present application provides a data sending method, which is applied to a data sending end, and the method includes: in response to a received fault start signal, recording the moment when the fault start signal is received as a third moment; determining a fault time period according to the third moment, the third moment being a moment in the fault time period; determining multiple groups of fault data messages according to the fault time period, and sending the multiple groups of fault data messages according to a preset sending frequency, the multiple groups of fault data messages are fault data messages collected within the fault time period, the sampling frequency of the multiple groups of fault data messages is a preset sampling frequency, the time interval between adjacent sampling time marks in the multiple sampling time marks of the multiple groups of fault data messages is the same as the sampling period of the preset sampling frequency, the multiple groups of fault data messages correspond one-to-one to the multiple sampling time marks, and the preset sampling frequency matches the frequency required for the fault detection waveform of the data receiving end.
[0014] In some implementations, the fault time period includes a first fault time period and a second fault time period, the first fault time period is a preset sending time period before the third moment, and the second fault time period is a preset sending time period after the third moment.
[0015] In some embodiments, the multiple groups of fault data messages include multiple groups of first fault data messages and multiple groups of second fault data messages. The multiple groups of fault data messages are determined according to the fault time period, and the multiple groups of fault data messages are sent according to a preset sending frequency, including: obtaining multiple groups of first fault data messages within the first fault time period; within the second fault time period, after collecting multiple groups of second fault data messages according to the preset sampling frequency, sending multiple groups of first fault data messages and multiple groups of second fault data messages according to the preset sending frequency.
[0016] In some embodiments, the multiple groups of fault data messages include multiple groups of first fault data messages and multiple groups of second fault data messages. The multiple groups of fault data messages are determined according to the fault time period, and the multiple groups of fault data messages are sent at a preset sending frequency, including: obtaining multiple groups of first fault data messages within the first fault time period, and sending multiple groups of first fault data messages at a preset sending frequency; within the second fault time period, collecting multiple groups of second fault data messages at a preset sampling frequency, and sending multiple groups of second fault data messages at a preset sending frequency.
[0017] In some implementations, after determining multiple groups of fault data messages according to the fault time period and sending the multiple groups of fault data messages at a preset sending frequency, it also includes: sending a first test message, the first test message is used to indicate that the multiple groups of fault data messages have been sent.
[0018] In some implementations, the preset sampling frequency is higher than the preset sending frequency.
[0019] In a third aspect, an embodiment of the present application provides a data receiving device, which includes: a sending module, which is used to send a fault start signal and record a first moment when a fault signal is detected. The first moment is the moment when the fault start signal is sent. The fault start signal is used to obtain multiple groups of fault data messages, and the sampling frequency of the multiple groups of fault data messages is a preset sampling frequency; a receiving module, which is used to receive the first fault data message and record a second moment. The second moment is the moment when the first fault data message is received. The first fault data message is the first group of fault data messages among the multiple groups of fault data messages; a calculation module, which is used to calculate multiple sampling time marks of the multiple groups of fault data messages according to the preset sampling frequency, the first moment and the second moment. The multiple sampling time marks correspond one-to-one to the multiple groups of fault data messages. The difference between the time interval of two adjacent sampling time marks in the multiple sampling time marks and the sampling period corresponding to the preset sampling frequency is less than or equal to the preset error. The preset sampling frequency matches the frequency required for the fault detection waveform of the data receiving end.
[0020] In a fourth aspect, an embodiment of the present application provides a data sending device, which includes: a recording module, which is used to respond to a received fault start signal and record the moment when the fault start signal is received as a third moment; a determination module, which is used to determine the fault time period according to the third moment; a sending module, which is used to determine multiple groups of fault data messages according to the fault time period, and send the multiple groups of fault data messages according to a preset sending frequency, the multiple groups of fault data messages are fault data messages collected within the fault time period, the sampling frequency of the multiple groups of fault data messages is a preset sampling frequency, the time interval between adjacent sampling time marks in the multiple sampling time marks of the multiple groups of fault data messages is the same as the sampling period of the preset sampling frequency, the multiple groups of fault data messages correspond one-to-one to the multiple sampling time marks, and the preset sampling frequency matches the frequency required for the fault detection waveform of the data receiving end.
[0021] In the fifth aspect, an embodiment of the present application provides a system, including a data sending end and a data receiving end; when the data receiving end detects a fault signal, it sends a fault start signal to the data sending end and records a first moment; the data sending end responds to the received fault start signal and records the moment when the fault start signal is received as a third moment; the data sending end determines the fault time period according to the third moment; the data sending end determines multiple groups of fault data messages according to the fault time period, and sends the multiple groups of fault data messages to the data receiving end at a preset sending frequency; the data receiving end receives the first fault data message and records a second moment; the data receiving end calculates multiple sampling time marks of the multiple groups of fault data messages according to the preset sampling frequency, the first moment and the second moment.
[0022] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement a method as in any one of the first aspect or the second aspect above.
[0023] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, it implements the method in any one of the first aspect or the second aspect mentioned above.
[0024] In the technical solution provided by the embodiment of the present application, the data receiving end can obtain multiple groups of fault data messages by sending a fault start signal when a fault signal is detected, and record the first moment of sending the fault start signal, and the sampling frequency of the multiple groups of fault data messages is the preset sampling frequency. The second moment when the first group of fault data messages is received is recorded; thereby, multiple sampling time stamps of the multiple groups of fault data messages are calculated according to the preset sampling frequency, the first moment and the second moment. The data receiving end obtains multiple groups of fault data messages only when a fault signal is detected, and there is no need to receive the fault data messages in real time, which can save the traffic required for data transmission. In addition, after receiving the multiple groups of fault data messages obtained by the preset sampling frequency, the data receiving end can calculate the multiple sampling time stamps of the multiple groups of fault data messages by the preset sampling frequency, the first moment and the second moment. There is no need to support high transmission frequency data sending and receiving optical ports. After multiple groups of fault data messages are transmitted at a low frequency, the data receiving end can calculate the preset sampling frequency to collect multiple sampling time stamps of the multiple groups of fault data messages, thereby realizing the transmission of high-frequency sampling data. The analysis results calculated by the data receiving end through the high-frequency sampling data are more accurate, which can improve the accuracy of the fault analysis performed by the data receiving end and realize digital sampling. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0026] Figure 1 It is an interactive schematic diagram of a data receiving method provided in an embodiment of the present application.
[0027] Figure 2 It is a schematic diagram of a time scale calculation of a data receiving method provided in an embodiment of the present application.
[0028] Figure 3 It is a message format diagram of a data receiving method provided in an embodiment of the present application.
[0029] Figure 4 It is a structural diagram of a data receiving device provided in an embodiment of the present application.
[0030] Figure 5 It is a receiving schematic diagram of a data sending device provided in an embodiment of the present application.
[0031] Figure 6 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0033] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0034] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0035] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0036] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0037] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0038] The merging unit can collect sampling data from various locations of the substation automation system, and package the collected sampling data into messages and send them to the bay layer device. The bay layer device can perform applications such as fault analysis and fault location based on the received messages.
[0039] The traveling wave ranging device requires high-frequency sampling data to perform fault analysis and fault location. However, the sending and receiving optical ports used for interaction between the merging unit and the spacing layer device cannot support data transmission with high sampling frequencies. If the merging unit samples and sends data at a low sampling frequency supported by the optical port, not only will a large amount of data traffic be consumed, but the traveling wave ranging device will not be able to obtain high accuracy of the analysis results after performing fault analysis on the low-frequency sampling data.
[0040] In view of this, the present application provides a data receiving method, a data sending method and a computer-readable storage medium, which can realize the transmission of high-frequency sampling data, save the traffic required for data transmission, and improve the accuracy of fault analysis.
[0041] The inventors have found that the traveling wave ranging device does not need to receive the sampled data sent by the merging unit in real time, and can achieve fault analysis and location by only receiving the data in a short period of time when the fault is detected. Therefore, in the embodiment of the present application, the data sending end (such as the merging unit) does not need to send data to the data receiving end (such as the traveling wave ranging device) in real time. The data sending end and the data receiving end only need to maintain normal communication of the link to ensure the normal transmission of the fault data.
[0042] In an embodiment of the present application, the data transmitting end may send a frame of test message to the data receiving end every preset time period. After the data receiving end receives the test message, it may determine whether the link can communicate normally by calculating whether the time interval between the currently received test message and the test message received in the previous frame is the same or close to the preset time period. When the data receiving end detects that the time interval between two frames of test messages is the same or close to the preset time period, it can be determined that the link can communicate normally. When the data receiving end detects that the time interval between two frames of test messages is different from the preset time period or differs greatly, it can be determined that the risk of the link not being able to communicate normally is high, and the data receiving end can play a warning message, and the warning message is used to indicate that there is an abnormality in the current communication link. The warning message may include one or more of a prompt tone, a prompt box, and a flashing light, which is not limited in this application.
[0043] For example, the data sending end can send a frame of test message to the data receiving end every 2 seconds, and the data receiving end determines whether the receiving time interval between the currently received test message and the previous frame of test message is 2 seconds. If the receiving time interval between the two frames of test messages is greater than 2 seconds, the data receiving end determines that there is an abnormality in the current communication link and plays a warning tone and prompt box.
[0044] like Figure 1 The figure shows an interactive schematic diagram of a data receiving method provided in an embodiment of the present application.
[0045] When the data receiving end detects that a system fault exists, the interaction process between the data receiving end and the data sending end may include:
[0046] Step S101: When the data receiving end detects a fault signal, it sends a fault start signal to the data sending end and records the first moment. The first moment is the moment of sending the fault start signal, and the fault start signal is used to obtain multiple groups of fault data messages, and the sampling frequency of the multiple groups of fault data messages is the preset sampling frequency.
[0047] In the embodiment of the present application, the data receiving end may be a traveling wave ranging device, or may be any device for receiving data in the system, which is not limited in the present application. When the data receiving end detects that a fault occurs in the current system, a fault start signal is sent to the data sending end to obtain multiple groups of fault data messages collected by the data sending end within a certain period of time before and after the moment of the fault, and the data receiving end performs fault analysis and fault location based on the multiple groups of fault data messages. The sampling frequency of the multiple groups of fault data messages must meet the frequency required for the data receiving end to perform fault analysis and fault location, that is, the preset sampling frequency can meet the frequency requirements of the data receiving end.
[0048] When the data receiving end sends a fault start signal to the data sending end, the data receiving end records the current moment as the first moment. The first moment can be used to determine the time stamps of the multiple groups of fault data messages obtained, so that the data receiving end can perform fault analysis and fault location based on the multiple groups of fault data messages and their corresponding multiple sampling time stamps.
[0049] In an embodiment of the present application, in order to ensure that the moment recorded by the data receiving end has a unified time reference with the data sending end, the data receiving end and the data sending end can use the same clock source to facilitate time synchronization and improve system performance and reliability.
[0050] In some implementations, in order to improve the accuracy of time reference between the data receiving end and the data sending end, the data receiving end and the data sending end may also use IRIG-B code (IRIG-B Time Code) for time synchronization to ensure that the data receiving end and the data sending end perform data transmission and communication in a synchronous manner in the system.
[0051] Step S102: the data sending end responds to the received fault start signal and records the time when the fault start signal is received as the third time.
[0052] In the embodiment of the present application, the data sending end may be a merging unit or other device for collecting and sending data, which is not limited in the present application. When the data sending end receives a fault start signal, it may determine, based on the fault start signal, that the data receiving end corresponding to the fault start signal currently requests to obtain multiple groups of fault data messages. The data sending end then records the moment when the fault start signal is received as the third moment, and the third moment may be used to determine the fault time period. The multiple groups of fault data messages sent by the data sending end to the data receiving end are messages collected during the fault time period.
[0053] For example, Figure 2 As shown, it is a schematic diagram of a time scale calculation of a data receiving method provided in an embodiment of the present application. Figure 2As shown, T1 represents the first moment, T3 represents the third moment, if the time required for the fault start signal transmission is ignored, T1 and T3 should be at the same time point, that is, the time distance t1 between T1 and T3 on the horizontal line is the time required for the transmission of the fault start signal.
[0054] Step S103: the data sending end determines the fault time period according to the third moment, where the third moment is a moment in the fault time period.
[0055] In an embodiment of the present application, a preset sending time period of the data sending end can be pre-set, and the information of the preset sending time period can be synchronized to the data receiving end, so that the preset sending time period recorded by the data sending end and the data receiving end is the same data. The data sending end can determine the fault time period based on the preset sending time period, thereby determining multiple groups of fault data messages collected during the fault time period. The data receiving end can calculate multiple sampling time stamps of the multiple groups of fault data messages received based on the preset sending time period.
[0056] To ensure that multiple groups of fault data messages cover the messages collected by the data sending end when the data receiving end detects a fault signal, the fault time period may include a first fault time period and a second fault time period. The first fault time period may be a preset sending time period before the third moment, and the second fault time period may be a preset sending time period after the third moment.
[0057] For example, when the third moment is T3 and the preset sending time period is 20ms, the first fault time period is 20ms before T3, and the second fault time period is 20ms after T3. The fault time period covers a total of 40ms before and after T3.
[0058] Step S104: The data transmitting end determines multiple groups of fault data messages according to the fault time period, and sends the multiple groups of fault data messages according to the preset sending frequency. The multiple groups of fault data messages are fault data messages collected during the fault time period, the sampling frequency of the multiple groups of fault data messages is the preset sampling frequency, the time interval between adjacent sampling time marks in the multiple sampling time marks of the multiple groups of fault data messages is the same as the sampling period of the preset sampling frequency, the multiple groups of fault data messages correspond to the multiple sampling time marks one by one, and the preset sampling frequency matches the frequency required by the fault detection waveform of the data receiving end.
[0059] In the embodiment of the present application, after the data transmitting end determines the third moment and determines the fault time period according to the third moment, it can determine the multiple groups of fault data messages collected in the fault time period according to the fault time period. Since the fault time period includes the preset sending time period before the third moment and the preset sending time period after the third moment, the data transmitting end can only obtain the fault data messages collected in the preset sending time period before the third moment at the third moment, and cannot obtain the fault data messages collected in the preset sending time period after the third moment. In the embodiment of the present application, the data transmitting end determines and sends multiple groups of fault data messages in two ways: the first way is to temporarily not send the fault data messages collected in the preset sending time period before the third moment at the third moment, and after collecting the fault data messages in the preset sending time period after the third moment, send the multiple groups of fault data messages collected in the fault time period (including the preset sending time period before the third moment and the preset sending time period after the third moment) together. The second way is to first send the fault data messages collected in the preset sending time period before the third moment according to the preset sending frequency at the third moment, and collect the fault data messages in the preset sending time period after the third moment at the same time. The two sending methods may specifically include the following steps:
[0060] Method 1:
[0061] A1: Acquire multiple groups of first fault data messages within a first fault time period.
[0062] In an embodiment of the present application, multiple groups of fault data messages include multiple groups of first fault data messages and multiple groups of second fault data messages, each group of fault data messages may include multiple groups of sampling values, the multiple groups of sampling values are sampling values collected by the data sending end through multiple channels, and the multiple groups of sampling values correspond one to one to the multiple channels. That is, the data sending end can collect data from multiple sampling channels based on a preset sampling frequency, and store the collected multiple frames of data, so as to package the stored multiple frames of data into multiple groups of fault data messages and send them to the data receiving end. The data storage memory of the data sending end can store data within at least two preset sending time periods.
[0063] For example, the data sending end can collect data 1 of three channels (channel 1: A current analog quantity, channel 2: B current analog quantity, channel 3: C current analog quantity) at t1, and store data 1 corresponding to t1. The data sending end collects data 2 of three channels at t2, and stores data 2 corresponding to t2... The data sending end collects data N of three channels at tn, and stores data N corresponding to tn. If the third moment recorded by the data sending end is tn, and the preset sending time period is the time period between t1 and tn, then the multiple groups of first fault data messages are respectively packaged into messages as data 1, data 2...data N.
[0064] A2: In the second fault time period, after collecting multiple groups of second fault data messages according to a preset sampling frequency, multiple groups of first fault data messages and multiple groups of second fault data messages are sent according to a preset sending frequency.
[0065] In an embodiment of the present application, the data sending end can continue to collect data according to the preset sampling frequency at the third moment, and pack multiple groups of data collected within the preset sending time period after the third moment into multiple groups of messages, namely, multiple groups of second fault data messages.
[0066] In the embodiment of the present application, after the data transmitting end collects multiple groups of second fault data messages, it sends multiple groups of first fault data messages and multiple groups of second fault data messages to the data receiving end according to the preset sending frequency. The data transmitting end can send messages to the data receiving end in sequence according to the order in which the multiple groups of first fault data messages and the multiple groups of second fault data messages are collected, so that the message receiving order when the data receiving end receives the multiple groups of fault data messages is the same as the message collection order, thereby determining the time stamp of the multiple groups of fault data messages according to the receiving order.
[0067] The preset sampling frequency may be higher than the preset transmission frequency. For example, the preset sampling frequency may be set to 100 times the preset transmission frequency. For example, when the preset sampling frequency is 1 MHz, the preset transmission frequency may be set to 10 kHz.
[0068] For another example, if the preset sampling frequency is 1 MHz, the preset transmission frequency is set to 10 kHz, and the preset transmission time period is 20 ms, then the fault time period is 40 ms. It takes 4 seconds to send data sampled at the preset sampling frequency of 1 MHz for 40 ms at the preset transmission frequency of 10 kHz.
[0069] Method 2:
[0070] B1: Acquire multiple groups of first fault data messages within a first fault time period, and send the multiple groups of first fault data messages according to a preset sending frequency.
[0071] In the embodiment of the present application, the data sending end can directly obtain the stored multiple groups of first fault data at the third moment. After obtaining the multiple groups of first fault data messages, the data sending end sends the multiple groups of first fault data messages at a preset sending frequency.
[0072] B2: In the second fault time period, multiple groups of second fault data messages are collected according to a preset sampling frequency, and multiple groups of second fault data messages are sent according to a preset sending frequency.
[0073] In the embodiment of the present application, when the data transmitting end sends multiple groups of first fault data messages at a preset sending frequency, multiple groups of second fault data messages can be collected synchronously at a preset sampling frequency. That is, the sending of multiple groups of first fault data messages and the collection of multiple groups of second fault data messages can be performed synchronously, which can avoid the waiting time for collecting multiple groups of second fault data messages, thereby reducing the delay in the sending process of multiple groups of fault data messages.
[0074] After collecting multiple groups of second fault data messages, the data sending end adds the multiple groups of second fault data messages to the sequence of messages to be sent, and sends the multiple groups of second fault data messages after the multiple groups of first fault data messages are sent. That is, the data sending end can send multiple groups of fault data messages in the collection order of the multiple groups of fault data messages and at a preset sending frequency.
[0075] In the embodiment of the present application, after the data transmitting end has finished sending multiple groups of fault data messages, it sends a frame of the first test message to the data receiving end, and the first test message is used to indicate that the multiple groups of fault data messages have been sent. Exemplarily, after receiving the fault start signal, the message sequence sent by the data transmitting end can be: multiple groups of first fault data messages → multiple groups of second fault data messages → first test message.
[0076] Step S105: The data receiving end receives the first fault data message and records the second time. The second time is the time when the first fault data message is received, the first fault data message is the first group of fault data messages among multiple groups of fault data messages, the multiple groups of fault data messages are messages collected during the fault time period, the fault time period includes a third time, the third time is the time when the fault start signal is received, and the third time is between the first time and the second time.
[0077] In the embodiment of the present application, after receiving the fault data message, the data receiving end stores the received fault data message and records the receiving sequence number of the fault data message. Exemplarily, when the data receiving end receives the first group of fault data messages, it stores the first group of fault data messages and records the receiving sequence number of the first group of fault data messages as 1, and when the data receiving end receives the second group of fault data messages, it stores the second group of fault data messages and records the receiving sequence number of the second group of fault data messages as 2... When the data receiving end receives the Nth group of fault data messages, it stores the Nth group of fault data messages and records the receiving sequence number of the second group of fault data messages as N.
[0078] After receiving the first group of fault data messages, the data receiving end may record the current time as the second time, so as to calculate multiple sampling time marks of multiple groups of fault data messages according to the second time.
[0079] Step S106: Calculate multiple sampling time stamps of multiple groups of fault data messages according to the preset sampling frequency, the first moment and the second moment, the multiple sampling time stamps correspond one-to-one to the multiple groups of fault data messages, the difference between the time interval of two adjacent sampling time stamps in the multiple sampling time stamps and the sampling period corresponding to the preset sampling frequency is less than or equal to the preset error, and the preset sampling frequency matches the frequency required for the fault detection waveform at the data receiving end.
[0080] In the embodiment of the present application, after receiving the first group of fault data messages, the data receiving end may start a process of calculating the first sampling time mark of the first group of fault data messages.
[0081] In some embodiments, the data receiving end may not start the process of calculating the first sampling time stamp of the first group of fault data messages after receiving the first group of fault data messages. After receiving the first test message, the process of calculating multiple sampling time stamps of multiple groups of fault data messages is started. The first test message is used to indicate that the reception of multiple groups of fault data messages is complete.
[0082] In the embodiment of the present application, the format of the fault data message and the first test message may be the same or similar. Figure 3 As shown, a message format schematic diagram of a data receiving method provided in an embodiment of the present application. The message format may include communication information, a test flag, a fault message signal, a channel 1 sampling value, a channel 2 sampling value, a channel 3 sampling value... a channel N sampling value. The communication information may carry information such as commands, requests, responses, and status updates, and the test flag and the fault message signal are used to characterize the current message as a fault data message or a first test message. For example, when the test flag is set to 1 and the fault message signal is set to 0, the current message is characterized as a first test message. When the test flag is set to 0 and the fault message signal is set to 1, the current message is characterized as a fault data message. Channel 1 sampling value, channel 2 sampling value, channel 3 sampling value... Channel N sampling value is used to carry multiple groups of sampling values corresponding to multiple channels.
[0083] In the embodiment of the present application, in response to receiving the first test message, the data receiving end can calculate multiple sampling time marks of multiple groups of fault data messages according to a preset sending time period, a preset sampling frequency, a first moment and a second moment.
[0084] Exemplarily, if the data sending end determines and sends multiple groups of fault data messages through the above-mentioned method 2, the calculation formula of the first sampling time mark of the first fault data message can be:
[0085] T6 = T1 - (T4 - (T2 - T1) * 0.5);
[0086] Among them, T6 represents the first sampling time mark, T1 represents the first moment, T4 represents the preset sending time period, and T2 represents the second moment.
[0087] The method for calculating the first sampling time stamp at the data receiving end may include the following steps:
[0088] Step 1: Get the preset sending time period.
[0089] In the embodiment of the present application, the preset sending time period may be a pre-set time period, and the preset sending time period of the data receiving end and the preset sending time period of the data sending end may be the same value.
[0090] Step 2: Calculate the data delay based on the first moment and the second moment.
[0091] In an embodiment of the present application, during the process of data interaction between the data receiving end and the data sending end, the data receiving end sends a fault start signal to the data sending end at a first moment. The data sending end records the moment when the fault start signal is received as the third moment, and sends the first fault data message to the data receiving end. The data receiving end records the moment when the first fault data message is received as the second moment. If the time when the data receiving end and the data sending end respond, and the time required for the fault start signal and the first fault data message to be transmitted are ignored, the first moment, the third moment, and the second moment should be the same moment. In order to improve the accuracy of the first sampling time-scale value calculated by the data receiving end, the embodiment of the present application can calculate the time when the data receiving end and the data sending end respond, and the time required for the fault start signal and the first fault data message to be transmitted, and use the calculation result as the data delay.
[0092] In the embodiment of the present application, the data delay may be half of the difference between the second moment and the first moment.
[0093] For example, Figure 2 As shown, T1 represents the first moment, T3 represents the third moment, and T2 represents the second moment. The time distance t1 between T1 and T3 on the horizontal line is the delay of transmitting the fault start signal, and the time distance t2 between T3 and T2 on the horizontal line is the delay of transmitting the first fault data message, and the data delay t=(t1+t2)*0.5. As can be seen from the figure, the time distance between T2 and T1 on the horizontal line is equal to t1+t2, that is, the data delay is (T2-T1)*0.5.
[0094] Step 3: Calculate the first sampling time mark of the first fault data message according to the first moment, the preset sending time period and the data delay.
[0095] In the embodiment of the present application, the first sampling time scale may be positively correlated with the data delay and negatively correlated with the preset sending time period. The method for calculating the first sampling time scale may be:
[0096] C1: Determine the difference between the preset sending time period and the data delay as the first time difference.
[0097] C2: Determine the difference between the first moment and the first time difference as the first sampling time mark.
[0098] In the embodiment of the present application, if the data delay is ignored, the first sampling time mark is the difference between the first moment and the preset time period. Since there is data delay, the first sampling time mark should be calculated based on the difference between the preset sending time period and the data delay.
[0099] For example, Figure 2 As shown, T4 represents the preset sending time period, and the dotted circle T6 represents the first sampling time mark of the first fault data message. If the data delay is ignored, the first sampling time mark should be the difference between T1 and T4. Due to the existence of data delay, the first sampling time mark T6 = T1-(T4-(T2-T1)*0.5).
[0100] If T1 represents the first moment, T3 represents the third moment, and T2 represents the second moment. The time distance t1 between T1 and T3 on the horizontal line is the delay of transmitting the fault start signal, and the time distance t2 between T3 and T2 on the horizontal line is the delay of transmitting the first fault data message, and the data delay t=(t1+t2)*0.5. As can be seen from the figure, the time distance between T2 and T1 on the horizontal line is equal to t1+t2, that is, the data delay is (T2-T1)*0.5.
[0101] In some implementations, if the data sending end determines and sends multiple groups of fault data messages through the above-mentioned method 1, the calculation formula for the first sampling time stamp of the first fault data message may also be:
[0102] T6=T1-(T4-(T2-T1-T4)*0.5);
[0103] Among them, T6 represents the first sampling time mark, T1 represents the first moment, T4 represents the preset sending time period, T2 represents the second moment, and (T2-T1-T4)*0.5 represents the data delay.
[0104] The specific calculation process of the data receiving end calculating the first sampling time stamp can refer to the above Step 1 to Step 3, and this application will not elaborate on it here.
[0105] In the embodiment of the present application, after calculating the first sampling time stamp, the data receiving end can calculate the sampling time stamps corresponding to other fault data messages in the multiple groups of fault data messages according to the first sampling time stamp and the preset sampling frequency. In the embodiment of the present application, since the sampling frequency adopted by the data sending end when collecting multiple groups of fault data messages is the preset sampling frequency. It can be seen that the difference between the sampling time stamps corresponding to any two adjacent groups of fault data messages in the multiple groups of fault data messages collected by the data sending end is the sampling period of the preset sampling frequency.
[0106] Theoretically, the difference between the sampling time marks corresponding to any two adjacent groups of fault data messages among the multiple groups of fault data messages received by the data receiving end should also be the sampling period of the preset sampling frequency. In the embodiment of the present application, in order to improve the accuracy of the multiple sampling time marks calculated by the data receiving end, the data delay is considered and calculated, then the difference between the sampling time marks corresponding to any two adjacent groups of fault data messages among the calculated multiple sampling time marks is equal to the sampling period of the preset sampling frequency, or infinitely close to the sampling period of the preset sampling frequency. That is, the difference between the sampling time marks corresponding to any two adjacent groups of fault data messages and the sampling period of the preset sampling frequency is less than or equal to the preset error. The specific value of the preset error can be determined according to the data delay and / or the preset sending time period, and the present application does not limit the specific value of the preset error.
[0107] In an embodiment of the present application, the sampling time stamp of the next group of fault data messages adjacent to the previous group of fault data messages can be determined according to the sampling time stamp of the previous group of fault data messages, or the sampling time stamp of any group of fault data messages can be determined according to the sampling time stamp of the first group of fault data messages.
[0108] For example, if the next group of fault data messages adjacent to the second fault data message is the third fault data message, the third sampling time stamp corresponding to the third fault data message may be the sum of the second sampling time stamp of the second fault data message and the first ratio, where the first ratio is the sampling period corresponding to the preset sampling frequency, for example, the sampling period is t s .
[0109] For example, when the sampling period of the preset sampling frequency is t s At this time, the sampling time mark of the first group of fault data messages received by the data receiving end is T6. Then the sampling time mark corresponding to the second group of fault data messages is T6+t s The sampling time stamp corresponding to the third group of fault data messages is T6+2t s ...The sampling time corresponding to the Nth group of fault data messages is T6+(N-1)t s .
[0110] Similarly, the data receiving end can also calculate the sampling time stamp of the last group of fault data messages among multiple groups of fault data messages according to the first moment, the preset sending time period and the data delay, and infer the sampling time stamps of other fault data messages based on the sampling time stamp of the last group of fault data messages.
[0111] Exemplarily, the sampling time stamp of the last group of fault data messages is T7=T1+(T4+(T2-T1)*0.5).
[0112] The specific calculation process of the sampling time stamp of the last group of fault data messages can refer to the technical solutions provided in the above Steps 1 to 3, and this application will not go into details here.
[0113] In the technical solution provided by the embodiment of the present application, the data receiving end can obtain multiple groups of fault data messages by sending a fault start signal when a fault signal is detected, and record the first moment of sending the fault start signal, and the sampling frequency of the multiple groups of fault data messages is the preset sampling frequency. The second moment when the first group of fault data messages is received is recorded; thereby, multiple sampling time stamps of the multiple groups of fault data messages are calculated according to the preset sampling frequency, the first moment and the second moment. The data receiving end obtains multiple groups of fault data messages only when a fault signal is detected, and there is no need to receive the fault data messages in real time, which can save the traffic required for data transmission. In addition, after receiving the multiple groups of fault data messages obtained by the preset sampling frequency, the data receiving end can calculate the multiple sampling time stamps of the multiple groups of fault data messages by the preset sampling frequency, the first moment and the second moment. There is no need to support high transmission frequency data sending and receiving optical ports. After multiple groups of fault data messages are transmitted at a low frequency, the data receiving end can calculate the preset sampling frequency to collect multiple sampling time stamps of the multiple groups of fault data messages, thereby realizing the transmission of high-frequency sampling data. The analysis results calculated by the data receiving end through the high-frequency sampling data are more accurate, which can improve the accuracy of the fault analysis performed by the data receiving end.
[0114] It should be understood that, under the premise of no logical conflict, the above-mentioned various application embodiments can be implemented in combination with each other to meet actual application requirements. The specific embodiments or implementation plans obtained after these combinations still fall within the protection scope of this application.
[0115] Corresponding to the data receiving method in the above embodiment, an embodiment of the present application provides a data receiving device 40, which can be a data receiving device. The data receiving device 40 can be implemented by software, hardware or a combination of both to become part or all of a computer device, and is used to execute the steps in the data receiving method in the above embodiment.
[0116] Figure 4A structural schematic diagram of a data receiving device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0117] Reference Figure 4 The data receiving device 40 includes a recording module 410 , a receiving module 420 and a calculating module 430 .
[0118] The recording module 410 is used to send a fault start signal when a fault signal is detected, and record a first moment, where the first moment is the moment when the fault start signal is sent, and the fault start signal is used to obtain multiple groups of fault data messages, and the sampling frequency of the multiple groups of fault data messages is a preset sampling frequency;
[0119] The receiving module 420 is used to receive the first fault data message and record the second moment, where the second moment is the moment when the first fault data message is received, the first fault data message is the first group of fault data messages among multiple groups of fault data messages, the multiple groups of fault data messages are messages collected during the fault time period, the fault time period includes a third moment, the third moment is the moment when the fault start signal is received, and the third moment is between the first moment and the second moment;
[0120] The calculation module 430 is used to calculate multiple sampling time stamps of multiple groups of fault data messages according to the preset sampling frequency, the first moment and the second moment. The multiple sampling time stamps correspond to the multiple groups of fault data messages one by one. The difference between the time interval of two adjacent sampling time stamps in the multiple sampling time stamps and the sampling period corresponding to the preset sampling frequency is less than or equal to the preset error. The preset sampling frequency matches the frequency required for the fault detection waveform of the data receiving end.
[0121] In some embodiments, the calculation module 430 is also used to: obtain a preset sending time period; calculate the data delay according to the first moment and the second moment; calculate the first sampling time mark of the first fault data message according to the first moment, the preset sending time period and the data delay; calculate the second sampling time mark of the second fault data message according to the first sampling time mark and the preset sampling frequency, the second fault data message is any group of fault data messages in multiple groups of fault data messages that is different from the first fault data message, when the second fault data message is the next group of fault data messages of the first fault data message, the difference between the time interval between the second sampling time mark and the first sampling time mark and the sampling period of the preset sampling frequency is less than or equal to the preset error.
[0122] In some implementations, the first sampling time mark is positively correlated with the data delay, and the first sampling time mark is negatively correlated with the preset sending time period.
[0123] In some embodiments, the calculation module 430 is also used to: determine that half of the difference between the second moment and the first moment is the data delay; calculate the first sampling time mark of the first fault data message based on the first moment, the preset sending time period and the data delay, including: determining that the difference between the preset sending time period and the data delay is the first time difference; determining that the difference between the first moment and the first time difference is the first sampling time mark.
[0124] In some implementations, the third sampling time mark is the sum of the second sampling time mark and the first ratio, the third sampling time mark is the sampling time mark of the next group of fault data messages of the second fault data message, and the first ratio is the sampling period corresponding to the preset sampling frequency.
[0125] In some embodiments, the calculation module 430 is also used to: receive a first test message, the first test message is used to indicate that multiple groups of fault data messages have been received; in response to receiving the first test message, calculate multiple sampling time marks of the multiple groups of fault data messages according to a preset sampling frequency, a first moment and a second moment.
[0126] In some implementations, the fourth fault data message carries multiple groups of sampling values, which are sampling values collected through multiple channels, and the multiple groups of sampling values correspond one-to-one to the multiple channels. The fourth fault data message is any one of the multiple groups of fault data messages.
[0127] The embodiment of the present application also provides a data sending device 50, which can be a data sending device. The data sending device 50 can be implemented by software, hardware or a combination of both to become part or all of a computer device for executing the steps in the above embodiments.
[0128] Figure 5 A schematic diagram of the structure of a data sending device provided in an embodiment of the present application is shown. For the convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0129] Reference Figure 5 The data sending device 50 includes a recording module 510, a determining module 520 and a sending module 530.
[0130] The recording module 510 is configured to, in response to the received fault start signal, record the time when the fault start signal is received as the third time.
[0131] The determination module 520 is configured to determine the fault time period according to a third moment, where the third moment is a moment in the fault time period.
[0132] The sending module 530 is used to determine multiple groups of fault data messages according to the fault time period, and send the multiple groups of fault data messages according to the preset sending frequency. The multiple groups of fault data messages are fault data messages collected within the fault time period. The sampling frequency of the multiple groups of fault data messages is the preset sampling frequency. The time interval between adjacent sampling time marks in the multiple sampling time marks of the multiple groups of fault data messages is the same as the sampling period of the preset sampling frequency. The multiple groups of fault data messages correspond to the multiple sampling time marks one by one, and the preset sampling frequency matches the frequency required by the fault detection waveform of the data receiving end.
[0133] In some implementations, the fault time period includes a first fault time period and a second fault time period, the first fault time period is a preset sending time period before the third moment, and the second fault time period is a preset sending time period after the third moment.
[0134] In some embodiments, the multiple groups of fault data messages include multiple groups of first fault data messages and multiple groups of second fault data messages, and the sending module 530 is also used to: obtain multiple groups of first fault data messages within a first fault time period; within the second fault time period, after collecting multiple groups of second fault data messages according to a preset sampling frequency, send multiple groups of first fault data messages and multiple groups of second fault data messages according to a preset sending frequency.
[0135] In some embodiments, the multiple groups of fault data messages include multiple groups of first fault data messages and multiple groups of second fault data messages, and the sending module 530 is also used to: obtain multiple groups of first fault data messages within a first fault time period, and send the multiple groups of first fault data messages according to a preset sending frequency; within the second fault time period, collect multiple groups of second fault data messages according to a preset sampling frequency, and send multiple groups of second fault data messages according to the preset sending frequency.
[0136] In some implementations, the sending module 530 is further used to: send a first test message, where the first test message is used to indicate that the sending of multiple groups of fault data messages is complete.
[0137] In some implementations, the preset sampling frequency is higher than the preset sending frequency.
[0138] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0139] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0140] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0141] Figure 6 Schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 6 As shown, the electronic device 60 of this embodiment includes: at least one processor 610 ( Figure 6 Only one is shown in the figure), a memory 620, and a communication module 640, wherein the memory 620 stores a computer program 630 that may be run on the processor 610. When the processor 610 executes the computer program 630, the steps in the above data receiving method embodiment are implemented, such as Figure 1 Alternatively, when the processor 610 executes the computer program 630, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 4 The functions of modules 410 to 430 shown, or Figure 5 The functions of the modules 510 to 530 are shown, and the communication module 640 can be a separate communication unit for communicating with an external server or terminal device.
[0142] The electronic device 60 may include, but is not limited to: a processor 610 and a memory 620. Those skilled in the art will appreciate that Figure 6 It is only an example of the electronic device 60 and does not constitute a limitation of the electronic device 60. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 60 may also include an input sending device, a network access device, a bus, etc.
[0143] The processor 610 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0144] In some embodiments, the memory 620 may be an internal storage unit of the electronic device 60, such as a hard disk or memory of the electronic device 60. The memory 620 may also be an external storage device of the electronic device 60, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 60. The memory 620 may also include both an internal storage unit of the electronic device 60 and an external storage device. The memory 620 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program 630. The memory 620 may also be used to temporarily store data that has been sent or is to be sent.
[0145] In addition, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0146] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on an electronic device, the electronic device executes the steps in the above-mentioned method embodiments.
[0147] An embodiment of the present application provides a chip, which includes a processor and a memory. The memory stores a computer program, and when the computer program is executed by the processor, the steps in the above-mentioned method embodiments are implemented.
[0148] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the steps in the above-mentioned method embodiments.
[0149] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0150] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (Direct Rambus RAM, DR RAM).
[0151] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0152] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0153] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0154] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0155] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0156] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0157] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to a large-screen device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0158] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data receiving method, characterized in that: Applied to a data receiving end, the method comprises: When a fault signal is detected, a fault start signal is sent, and a first moment is recorded, where the first moment is the moment when the fault start signal is sent, and the fault start signal is used to obtain multiple groups of fault data messages, and the sampling frequency of the multiple groups of fault data messages is a preset sampling frequency; receiving a first fault data message and recording a second time, wherein the second time is the time when the first fault data message is received, the first fault data message is the first group of fault data messages among the multiple groups of fault data messages, the multiple groups of fault data messages are messages collected within a fault time period, the fault time period includes a third time, the third time is the time when the fault start signal is received, and the third time is between the first time and the second time; A plurality of sampling time stamps of the plurality of groups of fault data messages are calculated according to the preset sampling frequency, the first moment and the second moment, the plurality of sampling time stamps correspond one-to-one to the plurality of groups of fault data messages, the difference between the time interval of two adjacent sampling time stamps in the plurality of sampling time stamps and the sampling period corresponding to the preset sampling frequency is less than or equal to a preset error, and the preset sampling frequency matches the frequency required by the fault detection waveform of the data receiving end.
2. The data receiving method according to claim 1, characterized in that: The calculating a plurality of sampling time marks of the plurality of groups of fault data messages according to the preset sampling frequency, the first moment and the second moment comprises: Get the preset sending time period; Calculate data delay according to the first moment and the second moment; Calculate a first sampling time stamp of the first fault data message according to the first moment, the preset sending time period and the data delay; According to the first sampling time mark and the preset sampling frequency, a second sampling time mark of a second fault data message is calculated, the second fault data message is any group of fault data messages among the multiple groups of fault data messages that is different from the first fault data message, and when the second fault data message is the next group of fault data messages of the first fault data message, the difference between the time interval between the second sampling time mark and the first sampling time mark and the sampling period of the preset sampling frequency is less than or equal to the preset error.
3. The data receiving method according to claim 2, characterized in that: The calculating the data delay according to the first moment and the second moment includes: Determine half of the difference between the second moment and the first moment as the data delay; The calculating, according to the first moment, the preset sending time period and the data delay, a first sampling time mark of the first fault data message includes: Determine that the difference between the preset sending time period and the data delay is a first time difference; Determine the difference between the first moment and the first time difference as the first sampling time scale; Among them, the third sampling time mark is the sum of the second sampling time mark and the first ratio, the third sampling time mark is the sampling time mark of the next group of fault data messages of the second fault data message, and the first ratio is the sampling period corresponding to the preset sampling frequency.
4. The data receiving method according to claim 1, characterized in that: The calculating a plurality of sampling time marks of the plurality of groups of fault data messages according to the preset sampling frequency, the first moment and the second moment comprises: receiving a first test message, wherein the first test message is used to indicate that the plurality of groups of fault data messages have been received; In response to receiving the first test message, a plurality of sampling time marks of the plurality of groups of fault data messages are calculated according to the preset sampling frequency, the first time and the second time.
5. A data transmission method, characterized in that: Applied to a data sending end, the method comprises: In response to the received fault start signal, recording the time when the fault start signal is received as a third time; Determine a fault time period according to the third moment, wherein the third moment is a moment in the fault time period; A plurality of groups of fault data messages are determined according to the fault time period, and the plurality of groups of fault data messages are sent at a preset sending frequency, the plurality of groups of fault data messages are fault data messages collected within the fault time period, the sampling frequency of the plurality of groups of fault data messages is a preset sampling frequency, the time intervals between adjacent sampling time marks in the plurality of sampling time marks of the plurality of groups of fault data messages are the same as the sampling period of the preset sampling frequency, the plurality of groups of fault data messages correspond one-to-one to the plurality of sampling time marks, and the preset sampling frequency matches the frequency required for the fault detection waveform of the data receiving end.
6. The data transmission method according to claim 5, characterized in that: The fault time period includes a first fault time period and a second fault time period, the first fault time period is a preset sending time period before the third moment, and the second fault time period is a preset sending time period after the third moment.
7. The data transmission method according to claim 6, characterized in that: The multiple groups of fault data messages include multiple groups of first fault data messages and multiple groups of second fault data messages, and the determining the multiple groups of fault data messages according to the fault time period, and sending the multiple groups of fault data messages according to a preset sending frequency, includes: Acquire the multiple groups of first fault data messages within the first fault time period; In the second fault time period, after collecting the plurality of groups of second fault data messages according to the preset sampling frequency, the plurality of groups of first fault data messages and the plurality of groups of second fault data messages are sent according to the preset sending frequency.
8. The data transmission method according to claim 6, characterized in that: The multiple groups of fault data messages include multiple groups of first fault data messages and multiple groups of second fault data messages, and the determining the multiple groups of fault data messages according to the fault time period, and sending the multiple groups of fault data messages according to a preset sending frequency, includes: Acquire the multiple groups of first fault data messages within the first fault time period, and send the multiple groups of first fault data messages according to the preset sending frequency; In the second fault time period, the multiple groups of second fault data messages are collected according to the preset sampling frequency, and the multiple groups of second fault data messages are sent according to the preset sending frequency.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement the method as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Data processing system and method for traveling wave distance measurement of power transmission line
CN111965485A
Power transmission line fault positioning method and system
CN112578221A
Differential protection method and system for self-adaptive frequency conversion flow control based on wireless communication
CN114006360A
Breakdown prediction device, breakdown prediction method, and breakdown prediction program
US20120287526A1
