Data receiving method, data sending method and computer readable storage medium
By acquiring and calculating the sampling time stamp during fault signal detection, the problem of the merging unit being unable to send sampling data at a high frequency is solved, enabling the transmission of high-frequency sampling data and accurate fault analysis, reducing data traffic consumption and improving analysis accuracy.
Patent Information
- Application Number
- CN202410568478.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2044-05-09
AI Technical Summary
Traditional merging units cannot transmit high-frequency sampled data, resulting in low accuracy of fault analysis results and high data traffic consumption for traveling wave ranging devices.
By sending a fault start signal when a fault signal is detected, acquiring multiple sets of fault data messages, recording the time, and calculating the sampling timestamps of the multiple sets of fault data messages, high-frequency sampling data transmission and fault analysis can be achieved.
It saves data transmission bandwidth, improves the accuracy of fault analysis, and enables digital sampling.
Smart Images

Figure CN118612147B_ABST
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
[0002] In a digitalized substation, a substation automation system can be divided into three levels of a station control layer, a bay layer and a process layer. The process layer device can include a merging unit, which can sample current analog signals and voltage analog signals, and send the analog quantity sampling data obtained by sampling in the form of a message to a device of the bay layer, such as a protection and control device. This method can be referred to as a digital sampling method.
[0003] A traveling wave distance measuring device is usually installed in the bay layer, and is used to monitor and analyze the traveling wave signals (formed by the voltage waveform and the current waveform on the transmission line when a fault occurs in the substation automation system) on the transmission line, so as to realize fault diagnosis and positioning.
[0004] However, since the traveling wave distance measuring device has a high requirement on the sampling frequency of 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 distance measuring device, the merging unit cannot send high-frequency sampling data. The merging unit can only sample data at a low frequency and send low-frequency sampling data to the traveling wave distance measuring device in real time, which not only consumes a large amount of data flow, but also the fault analysis result obtained by the traveling wave distance measuring device after analyzing the received low-frequency sampling data has a low accuracy. Therefore, in the traditional technical solution, the traveling wave distance measuring device cannot realize digital sampling. SUMMARY
[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 transmission of high-frequency sampling data, save the required data transmission flow, improve the accuracy of fault analysis, and thus realize digital sampling.
[0006] In a first aspect, the embodiments of the present application provide a data receiving method applied to a data receiving end, the method comprising: when a fault signal is detected, sending a fault starting signal and recording a first time, the first time being a time when the fault starting signal is sent, the fault starting signal being used to obtain a plurality of groups of fault data packets, a sampling frequency of the plurality of groups of fault data packets being a preset sampling frequency; receiving a first fault data packet and recording a second time, the second time being a time when the first fault data packet is received, the first fault data packet being a first group of fault data packets in the plurality of groups of fault data packets, the plurality of groups of fault data packets being packets collected in a fault time period, the fault time period including a third time, the third time being a time when the fault starting signal is received, the third time being between the first time and the second time; calculating a plurality of sampling time stamps of the plurality of groups of fault data packets according to the preset sampling frequency, the first time and the second time, the plurality of sampling time stamps corresponding to the plurality of groups of fault data packets in one-to-one correspondence, a time interval between two adjacent sampling time stamps in the plurality of sampling time stamps being less than or equal to a preset error from a sampling period corresponding to the preset sampling frequency, the preset sampling frequency and a frequency required by a fault detection waveform of the data receiving end being matched.
[0007] In some embodiments, the calculating the plurality of sampling time stamps of the plurality of groups of fault data packets according to the preset sampling frequency, the first time and the second time comprises: obtaining a preset sending time period; calculating a data delay according to the first time and the second time; calculating a first sampling time stamp of the first fault data packet according to the first time, the preset sending time period and the data delay; calculating a second sampling time stamp of a second fault data packet according to the first sampling time stamp and the preset sampling frequency, the second fault data packet being any group of fault data packet different from the first fault data packet in the plurality of groups of fault data packets, when the second fault data packet is a next group of fault data packet of the first fault data packet, a time interval between the second sampling time stamp and the first sampling time stamp being less than or equal to a preset error from a sampling period of the preset sampling frequency.
[0008] In some embodiments, the first sampling time stamp is positively correlated with the data delay, and the first sampling time stamp is negatively correlated with the preset sending time period.
[0009] In some embodiments, the calculating the data delay according to the first time and the second time comprises: determining a half of a difference between the second time and the first time as the data delay; the calculating the first sampling time stamp of the first fault data packet according to the first time, the preset sending time period and the data delay comprises: determining a difference between the preset sending time period and the data delay as a first time difference; and determining a difference between the first time and the first time difference as the first sampling time stamp.
[0010] In some embodiments, the third sampling time mark is a sum of the second sampling time mark and a first ratio, the third sampling time mark is a sampling time mark of a next group of fault data packets of the second fault data packet, and the first ratio is a sampling period corresponding to the preset sampling frequency.
[0011] In some embodiments, the plurality of sampling time marks of the plurality of groups of fault data packets is calculated according to the preset sampling frequency, the first time and the second time, including: receiving a first test packet, the first test packet being used to represent that the plurality of groups of fault data packets are received completely; and in response to receiving the first test packet, calculating the plurality of sampling time marks of the plurality of groups of fault data packets according to the preset sampling frequency, the first time and the second time.
[0012] In some embodiments, the fourth fault data packet carries a plurality of groups of sampling values, the plurality of groups of sampling values are sampling values collected through a plurality of channels, the plurality of groups of sampling values correspond to the plurality of channels one by one, and the fourth fault data packet is any one of the plurality of groups of fault data packets.
[0013] In a second aspect, an embodiment of the present application provides a data sending method applied to a data sending end, including: in response to a received fault starting signal, recording a time when the fault starting signal is received as a third time; determining a fault time period according to the third time, the third time being a time in the fault time period; determining a plurality of groups of fault data packets according to the fault time period, and sending the plurality of groups of fault data packets according to a preset sending frequency, the plurality of groups of fault data packets being fault data packets collected in the fault time period, a sampling frequency of the plurality of groups of fault data packets being the preset sampling frequency, a time interval between adjacent sampling time marks in a plurality of sampling time marks of the plurality of groups of fault data packets being the same as a sampling period of the preset sampling frequency, the plurality of groups of fault data packets corresponding to the plurality of sampling time marks one by one, and the preset sampling frequency matching a frequency required by a fault detection waveform of a data receiving end.
[0014] In some embodiments, the fault time period includes a first fault time period and a second fault time period, the first fault time period being a preset sending time period before the third time, and the second fault time period being a preset sending time period after the third time.
[0015] In some embodiments, the plurality of groups of fault data packets includes a plurality of groups of first fault data packets and a plurality of groups of second fault data packets, the plurality of groups of fault data packets being determined according to the fault time period, and the plurality of groups of fault data packets being sent according to the preset sending frequency, including: obtaining the plurality of groups of first fault data packets in the first fault time period; and after the plurality of groups of second fault data packets are collected according to the preset sampling frequency in the second fault time period, sending the plurality of groups of first fault data packets and the plurality of groups of second fault data packets according to the preset sending frequency.
[0016] In some embodiments, the plurality of sets of fault data packets comprises a plurality of sets of first fault data packets and a plurality of sets of second fault data packets, the plurality of sets of fault data packets is determined according to a fault time period, and the plurality of sets of fault data packets is transmitted according to a preset transmission frequency, comprising: obtaining the plurality of sets of first fault data packets in a first fault time period, and transmitting the plurality of sets of first fault data packets according to the preset transmission frequency; and in a second fault time period, collecting the plurality of sets of second fault data packets according to a preset sampling frequency, and transmitting the plurality of sets of second fault data packets according to the preset transmission frequency.
[0017] In some embodiments, after the plurality of sets of fault data packets is determined according to the fault time period and transmitted according to the preset transmission frequency, the method further comprises: transmitting a first test packet, the first test packet being used to indicate that the plurality of sets of fault data packets is transmitted completely.
[0018] In some embodiments, the preset sampling frequency is higher than the preset transmission frequency.
[0019] In a third aspect, an embodiment of the present application provides a data receiving device, the device comprising: a sending module configured to send a fault start signal when a fault signal is detected, and record a first time, the first time being a time when the fault start signal is sent, the fault start signal being used to obtain a plurality of sets of fault data packets, a sampling frequency of the plurality of sets of fault data packets being a preset sampling frequency; a receiving module configured to receive a first fault data packet, and record a second time, the second time being a time when the first fault data packet is received, the first fault data packet being a first set of fault data packets in the plurality of sets of fault data packets; and a calculating module configured to calculate a plurality of sampling time tags of the plurality of sets of fault data packets according to the preset sampling frequency, the first time and the second time, the plurality of sampling time tags corresponding to the plurality of sets of fault data packets one by one, a time interval between two adjacent sampling time tags in the plurality of sampling time tags being less than or equal to a preset error, and the preset sampling frequency matching a frequency required by a fault detection waveform of a data receiving end.
[0020] In a fourth aspect, an embodiment of the present application provides a data sending device, the device comprising: a recording module configured to record a third time as a time when a received fault start signal is received in response to the received fault start signal; a determining module configured to determine a fault time period according to the third time; and a sending module configured to determine a plurality of sets of fault data packets according to the fault time period, and transmit the plurality of sets of fault data packets according to a preset transmission frequency, the plurality of sets of fault data packets being fault data packets collected in the fault time period, a sampling frequency of the plurality of sets of fault data packets being the preset sampling frequency, a time interval between adjacent sampling time tags in a plurality of sampling time tags of the plurality of sets of fault data packets being the same as a sampling period of the preset sampling frequency, the plurality of sets of fault data packets corresponding to the plurality of sampling time tags one by one, and the preset sampling frequency matching a frequency required by a fault detection waveform of a data receiving end.
[0021] In a fifth aspect, an embodiment of the present application provides a system, comprising a data sending end and a data receiving end; when the data receiving end detects a fault signal, the data receiving end sends a fault starting signal to the data sending end and records a first time; the data sending end, in response to the received fault starting signal, records a time when the fault starting signal is received as a third time; the data sending end determines a fault time period according to the third time; the data sending end determines a plurality of groups of fault data packets according to the fault time period and sends the plurality of groups of fault data packets to the data receiving end according to a preset sending frequency; the data receiving end receives a first fault data packet and records a second time; and the data receiving end calculates a plurality of sampling time stamps of the plurality of groups of fault data packets according to a preset sampling frequency, the first time and the second time.
[0022] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, the processor being configured to execute a computer program stored in the memory to implement the method in any one of the first aspect or the second aspect.
[0023] In a seventh aspect, an embodiment of the present application provides a computer readable storage medium, the computer readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the method in any one of the first aspect or the second aspect.
[0024] In the technical scheme provided by the embodiment of the present application, the data receiving end can obtain a plurality of groups of fault data packets by sending a fault starting signal when detecting a fault signal, record a first time when the fault starting signal is sent, and the sampling frequency of the plurality of groups of fault data packets is a preset sampling frequency. A second time when the first group of fault data packets is received is recorded; and a plurality of sampling time stamps of the plurality of groups of fault data packets are calculated according to the preset sampling frequency, the first time and the second time. The data receiving end only obtains the plurality of groups of fault data packets when detecting the fault signal, and does not need to receive the fault data packets in real time, thereby saving the flow required for data transmission. In addition, the data receiving end can calculate a plurality of sampling time stamps of the plurality of groups of fault data packets according to the preset sampling frequency, the first time and the second time after receiving the plurality of groups of fault data packets obtained by the preset sampling frequency. Without supporting the data sending and receiving optical port with high transmission frequency, the data receiving end can calculate the plurality of sampling time stamps of the plurality of groups of fault data packets collected at the preset sampling frequency, thereby realizing the transmission of high-frequency sampling data, the analysis result calculated by the data receiving end through the high-frequency sampling data is more accurate, the accuracy of the fault analysis performed by the data receiving end is improved, and digital sampling is realized. BRIEF DESCRIPTION OF DRAWINGS
[0025] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 This is an interactive schematic diagram of a data receiving method provided in an embodiment of this application.
[0027] Figure 2 This is a schematic diagram of time-scale calculation for a data receiving method provided in an embodiment of this application.
[0028] Figure 3 This is a schematic diagram of a message format for a data receiving method provided in an embodiment of this application.
[0029] Figure 4 This is a schematic diagram of the structure of a data receiving device provided in an embodiment of this application.
[0030] Figure 5 This is a schematic diagram of a data transmission device provided in an embodiment of this application.
[0031] Figure 6 This is a schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation
[0032] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application can also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0033] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0034] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0035] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0036] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0037] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0038] The merging unit can collect sampling data from various locations within the substation automation system and package the collected data into messages, which are then sent to the bay-level devices. The bay-level devices can then perform applications such as fault analysis and fault location based on the received messages.
[0039] Traveling wave ranging devices require high-frequency sampling data for fault analysis and location. However, the transmit and receive optical ports used for communication between the merging unit and the spacer layer cannot support high-sampling-frequency data transmission. If the merging unit samples and transmits data at the low sampling frequency supported by the optical port, it not only consumes a large amount of data traffic, but also results in low accuracy of the analysis results obtained by the traveling wave ranging device after performing fault analysis on the low-frequency sampled data.
[0040] In view of this, this application provides a data receiving method, a data sending method, and a computer-readable storage medium, which can realize the transmission of high-frequency sampled data, save the bandwidth required for data transmission, and improve the accuracy of fault analysis.
[0041] The inventors discovered that the traveling wave ranging device does not need to receive sampling data sent by the merging unit in real time; it only needs to receive data within a short period of time when a fault is detected to achieve fault analysis and location. Therefore, in the embodiments of this 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 fault data.
[0042] In this embodiment, the data sender can send a test message to the data receiver at preset time intervals. Upon receiving the test message, the data receiver can determine whether the link can communicate normally by calculating the time interval between the currently received test message and the previously received test message and checking if it is the same as or close to the preset time interval. When the data receiver detects that the time interval between two test messages is the same as or close to the preset time interval, it can determine that the link can communicate normally. When the data receiver detects that the time interval between two test messages is different from or significantly different from the preset time interval, it can determine that the risk of the link failing to communicate normally is high, and the data receiver can play a warning message to indicate that there is an anomaly in the current communication link. The warning message may include one or more of the following: a sound alert, a notification box, and flashing lights; this application does not limit the specific type of warning message.
[0043] For example, the data sender can send a test message to the data receiver every 2 seconds. The data receiver then determines whether the time interval between the current test message and the previous test message is 2 seconds. If the time interval between the two test messages is greater than 2 seconds, the data receiver determines that there is an abnormality in the current communication link and plays a warning sound and a prompt box.
[0044] like Figure 1 The diagram shown is an interactive schematic of a data receiving method provided in an embodiment of this application.
[0045] When the data receiver detects a system fault, the interaction process between the data receiver and the data sender may include:
[0046] Step S101: When the data receiver detects a fault signal, it sends a fault initiation signal to the data sender and records the first moment. The first moment is the time when the fault initiation signal is sent. The fault initiation signal is used to acquire multiple sets of fault data packets, and the sampling frequency of the multiple sets of fault data packets is a preset sampling frequency.
[0047] In this embodiment, the data receiver can be a traveling wave ranging device or any device in the system used to receive data; this application does not impose any limitations on this. When the data receiver detects a fault in the current system, it sends a fault initiation signal to the data transmitter to acquire multiple sets of fault data packets collected by the data transmitter within a certain period before and after the fault occurred. The data receiver then performs fault analysis and fault location based on these multiple sets of fault data packets. The sampling frequency of the multiple sets of fault data packets must meet the frequency requirements for fault analysis and fault location by the data receiver; that is, the preset sampling frequency must meet the frequency requirements of the data receiver.
[0048] When the data receiver sends a fault start signal to the data sender, the data receiver records the current time as the first time. The first time can be used to determine the timestamp of the multiple sets of fault data messages acquired, so that the data receiver can perform fault analysis and fault location based on the multiple sets of fault data messages and their corresponding multiple sampling timestamps.
[0049] In this embodiment of the application, in order to ensure that the time recorded by the data receiver has a unified time reference with that of the data sender, the data receiver and the data sender can use the same clock source to achieve time synchronization and improve the performance and reliability of the system.
[0050] In some implementations, to improve the accuracy of time reference between the data receiver and the data transmitter, the data receiver and the data transmitter may also use IRIG-B code (IRIG-B Time Code) for time synchronization, ensuring that the data receiver and the data transmitter transmit and communicate synchronously 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 moment.
[0052] In this embodiment, the data transmitter can be a merging unit or other device for collecting and transmitting data; this application does not limit the specific device. When the data transmitter receives a fault initiation signal, it can determine, based on the fault initiation signal, that the data receiver corresponding to the fault initiation signal is currently requesting to acquire multiple sets of fault data packets. The data transmitter records the time when it receives the fault initiation signal as the third time, which can be used to determine the fault time period. The multiple sets of fault data packets sent by the data transmitter to the data receiver are the packets collected within the fault time period.
[0053] For example, such as Figure 2 The diagram shown illustrates a time-scale calculation method for a data receiving method provided in this application. Figure 2As shown, T1 represents the first moment and T3 represents the third moment. If the time required for the transmission of the fault start signal 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 based on the third time, which is a time within the fault time period.
[0055] In this embodiment, a preset transmission time period can be pre-set at the data transmitter, and the information of the preset transmission time period can be synchronized to the data receiver, ensuring that the preset transmission time period recorded by the data transmitter and the data receiver is the same. The data transmitter can determine the fault time period based on the preset transmission time period, thereby identifying multiple sets of fault data packets collected within the fault time period. The data receiver can then calculate multiple sampling timestamps for the received multiple sets of fault data packets based on the preset transmission time period.
[0056] To ensure that multiple sets of fault data messages cover the messages collected by the data sender when the data receiver detects a fault signal, the fault time period can include a first fault time period and a second fault time period. The first fault time period can be a preset transmission time period before the third time, and the second fault time period can be a preset transmission time period after the third time.
[0057] For example, when the third time point is T3 and the preset transmission 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 transmitter determines multiple sets of fault data packets based on the fault time period and sends them at a preset transmission frequency. The multiple sets of fault data packets are fault data packets collected within the fault time period. The sampling frequency of the multiple sets of fault data packets is a preset sampling frequency. The time interval between adjacent sampling time markers in the multiple sampling time markers of the multiple sets of fault data packets is the same as the sampling period of the preset sampling frequency. The multiple sets of fault data packets correspond one-to-one with the multiple sampling time markers. The preset sampling frequency matches the frequency required by the fault detection waveform at the data receiver.
[0059] In this embodiment, after determining the third time and the fault time period based on the third time, the data sending end can determine multiple sets of fault data packets collected within the fault time period. Since the fault time period includes a preset transmission time period before the third time and a preset transmission time period after the third time, the data sending end can only obtain fault data packets collected within the preset transmission time period before the third time at the third time, and cannot obtain fault data packets collected within the preset transmission time period after the third time. In this embodiment, the data sending end can determine and send multiple sets of fault data packets in two ways: Method 1: At the third time, the fault data packets collected within the preset transmission time period before the third time are not sent temporarily. After the fault data packets within the preset transmission time period after the third time are collected, the multiple sets of fault data packets collected within the fault time period (including the preset transmission time period before and after the third time) are sent together. Method 2: At the third time, the fault data packets collected within the preset transmission time period before the third time are sent first according to a preset transmission frequency, while simultaneously collecting fault data packets within the preset transmission time period after the third time. The two sending methods can be specifically divided into the following steps:
[0060] Method 1:
[0061] A1: Obtain multiple sets of first fault data packets within the first fault time period.
[0062] In this embodiment, the multiple sets of fault data messages include multiple sets of first fault data messages and multiple sets of second fault data messages. Each set of fault data messages may include multiple sets of sampled values. These sampled values are collected by the data sending end through multiple channels, and each set of sampled values corresponds one-to-one with a channel. That is, the data sending end can collect data from multiple sampling channels based on a preset sampling frequency and store the collected multi-frame data so that the stored multi-frame data can be packaged into multiple sets of fault data messages and sent to the data receiving end. The data storage memory of the data sending end can store data within at least two preset transmission time periods.
[0063] For example, at time t1, the data transmitter can collect data 1 from three channels (channel 1: analog current A, channel 2: analog current B, channel 3: analog current C) and store the corresponding data 1 at t1. At time t2, the data transmitter can collect data 2 from the three channels and store the corresponding data 2 at t2, and so on. At time tn, the data transmitter can collect data N from the three channels and store the corresponding data N at tn. If the third time point recorded by the data transmitter is tn, and the preset transmission time period is the time period between t1 and tn, then multiple sets of first fault data messages are packaged into a message as data 1, data 2, ..., data N.
[0064] A2: During the second fault time period, after collecting multiple sets of second fault data packets at a preset sampling frequency, send multiple sets of first fault data packets and multiple sets of second fault data packets at a preset sending frequency.
[0065] In this embodiment of the application, the data sending end can continue to collect data at a preset sampling frequency at the third moment, and package the multiple sets of data collected within the preset transmission time period after the third moment into multiple sets of messages, namely multiple sets of second fault data messages.
[0066] In this embodiment, after the data sending end collects multiple sets of second fault data packets, it sends multiple sets of first fault data packets and multiple sets of second fault data packets to the data receiving end according to a preset sending frequency. The data sending end can send the packets to the data receiving end sequentially according to the order in which the multiple sets of first fault data packets and multiple sets of second fault data packets are collected, so that the packet receiving order when the data receiving end receives the multiple sets of fault data packets is the same as the packet collection order, thereby determining the timestamp of the multiple sets of fault data packets according to the receiving order.
[0067] The preset sampling frequency can be higher than the preset transmission frequency. For example, the preset sampling frequency can be set to 100 times the preset transmission frequency. For instance, when the preset sampling frequency is 1MHz, the preset transmission frequency can be set to 10kHz.
[0068] For example, if the preset sampling frequency is 1MHz, the preset transmission frequency is 10kHz, and the preset transmission time period is 20ms, then the fault time period is 40ms. Transmitting data sampled for 40ms at the preset sampling frequency of 1MHz at the preset transmission frequency of 10kHz would take 4 seconds.
[0069] Method 2:
[0070] B1: Acquire multiple sets of first fault data packets within the first fault time period, and send multiple sets of first fault data packets according to the preset sending frequency.
[0071] In this embodiment of the application, the data sending end can directly obtain multiple sets of first fault data stored at the third moment. After obtaining multiple sets of first fault data messages, the data sending end sends multiple sets of first fault data messages at a preset sending frequency.
[0072] B2: During the second fault time period, collect multiple sets of second fault data messages according to the preset sampling frequency, and send multiple sets of second fault data messages according to the preset sending frequency.
[0073] In this embodiment, when the data transmitter sends multiple sets of first fault data packets at a preset transmission frequency, it can simultaneously collect multiple sets of second fault data packets at a preset sampling frequency. That is, the transmission of multiple sets of first fault data packets and the collection of multiple sets of second fault data packets can be performed synchronously, which can eliminate the waiting time for collecting multiple sets of second fault data packets, thereby reducing the delay of multiple sets of fault data packets during transmission.
[0074] After collecting multiple sets of second fault data packets, the data sending end adds the multiple sets of second fault data packets to the sequence of packets to be sent. After the multiple sets of first fault data packets are sent, the data sending end sends the multiple sets of second fault data packets. That is, the data sending end can send multiple sets of fault data packets in the order of collection of multiple sets of fault data packets at a preset sending frequency.
[0075] In this embodiment, after the data sending end finishes sending multiple sets of fault data packets, it sends a first test message to the data receiving end. The first test message is used to indicate that the sending of multiple sets of fault data packets has been completed. For example, after receiving the fault initiation signal, the data sending end can send the following message sequence: multiple sets of first fault data packets → multiple sets of second fault data packets → 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 of multiple sets of fault data messages. The multiple sets of fault data messages are messages collected within the fault time period, which includes the 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 this embodiment of the application, after receiving a fault data packet, the data receiving end stores the received fault data packet and records its reception sequence number. For example, when the data receiving end receives the first set of fault data packets, it stores the first set of fault data packets and records its reception sequence number as 1; when the data receiving end receives the second set of fault data packets, it stores the second set of fault data packets and records its reception sequence number as 2… and so on. When the data receiving end receives the Nth set of fault data packets, it stores the Nth set of fault data packets and records its reception sequence number as N.
[0078] After receiving the first set of fault data packets, the data receiving end can record the current time as the second time, so as to calculate multiple sampling time stamps for multiple sets of fault data packets based on the second time.
[0079] Step S106: Calculate multiple sampling time markers for multiple sets of fault data messages based on the preset sampling frequency, the first time, and the second time. The multiple sampling time markers correspond one-to-one with the multiple sets of fault data messages. The difference between the time interval of two adjacent sampling time markers 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 by the fault detection waveform of the data receiving end.
[0080] In this embodiment of the application, after receiving the first set of fault data packets, the data receiving end can start the process of calculating the first sampling time stamp of the first set of fault data packets.
[0081] In some embodiments, the data receiver may not initiate the process of calculating the first sampling timescale of the first set of fault data packets after receiving the first set of fault data packets. Instead, after receiving the first test message, it initiates the process of calculating multiple sampling timescales for multiple sets of fault data packets. The first test message is used to indicate that the reception of multiple sets of fault data packets has been completed.
[0082] In this embodiment of the application, the format of the fault data message and the first test message can be the same or similar. For example, as shown below... Figure 3 The diagram illustrates a message format of a data receiving method according to an embodiment of this application. The message format may include communication information, a test flag, a fault message signal, channel 1 sample values, channel 2 sample values, channel 3 sample values… channel N sample values. The communication information may carry commands, requests, responses, and status updates. The test flag and fault message signal are used to indicate whether the current message is a faulty 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 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 a faulty data message. The channel 1 sample values, channel 2 sample values, channel 3 sample values… channel N sample values are used to carry multiple sets of sample values corresponding to multiple channels.
[0083] In this embodiment of the application, the data receiving end can, in response to receiving the first test message, calculate multiple sampling time stamps for multiple sets of fault data messages based on a preset transmission time period, a preset sampling frequency, a first time, and a second time.
[0084] For example, if the data sender determines and sends multiple sets of fault data packets using the above method two, the formula for calculating the first sampling time stamp of the first fault data packet can be:
[0085] T6 = T1 - (T4 - (T2 - T1) * 0.5);
[0086] Where T6 represents the first sampling time stamp, T1 represents the first moment, T4 represents the preset transmission time period, and T2 represents the second moment.
[0087] The method for calculating the first sampling time stamp at the data receiver may include the following steps:
[0088] Step 1: Obtain the preset sending time period.
[0089] In this embodiment of the application, the preset transmission time period can be a pre-set time period, and the preset transmission time period of the data receiver and the preset transmission time period of the data sender are the same value.
[0090] Step 2: Calculate the data delay based on the first and second time points.
[0091] In this embodiment, during data interaction between the data receiver and the data sender, the data receiver sends a fault initiation signal to the data sender at a first moment. The data sender records the moment of receiving the fault initiation signal as a third moment and sends a first fault data packet to the data receiver. The data receiver records the moment of receiving the first fault data packet as a second moment. If the response time between the data receiver and the data sender, and the transmission time required for the fault initiation signal and the first fault data packet are ignored, then the first moment, the third moment, and the second moment should be the same moment. To improve the accuracy of the data receiver in calculating the first sampling timescale value, this embodiment calculates the response time between the data receiver and the data sender, and the transmission time required for the fault initiation signal and the first fault data packet, and uses the calculation result as the data delay.
[0092] In this embodiment of the application, the data delay can be half the difference between the second time point and the first time point.
[0093] For example, such as Figure 2 As shown in the diagram, 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 represents the delay in transmitting the fault initiation signal, and the time distance t2 between T3 and T2 on the horizontal line represents the delay in transmitting the first fault data message. The data delay t = (t1 + t2) * 0.5. As can be seen from the diagram, the time distance between T2 and T1 on the horizontal line is equal to t1 + t2, meaning the data delay is (T2 - T1) * 0.5.
[0094] Step 3: Calculate the first sampling time stamp of the first fault data packet based on the first moment, the preset transmission time period and the data delay.
[0095] In this embodiment, the first sampling time stamp can be positively correlated with the data delay and negatively correlated with the preset transmission time period. The method for calculating the first sampling time stamp can be as follows:
[0096] C1: The difference between the preset sending time period and the data delay is determined as the first time difference.
[0097] C2: Determine the difference between the first moment and the first time difference as the first sampling time scale.
[0098] In this embodiment, if data delay is ignored, the first sampling time stamp is the difference between the first moment and the preset time period. Since data delay exists, the first sampling time stamp should be calculated based on the difference between the preset transmission time period and the data delay.
[0099] For example, such as Figure 2 As shown, T4 represents the preset transmission time period, and the dashed circle T6 represents the first sampling time stamp of the first fault data packet. If data delay is ignored, the first sampling time stamp should be the difference between T1 and T4. Due to the data delay, the first sampling time stamp 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, then the time distance t1 between T1 and T3 on the horizontal line represents the delay in transmitting the fault initiation signal, and the time distance t2 between T3 and T2 on the horizontal line represents the delay in transmitting the first fault data message. The data delay t = (t1 + t2) * 0.5. As shown in the diagram, the time distance between T2 and T1 on the horizontal line is equal to t1 + t2, meaning the data delay is (T2 - T1) * 0.5.
[0101] In some implementations, if the data sender determines and sends multiple sets of fault data packets using the above method one, the formula for calculating the first sampling time stamp of the first fault data packet can also be:
[0102] T6=T1-(T4-(T2-T1-T4)*0.5);
[0103] Where T6 represents the first sampling time stamp, T1 represents the first moment, T4 represents the preset transmission time period, T2 represents the second moment, and (T2-T1-T4)*0.5 represents the data delay.
[0104] The specific calculation process for the first sampling time stamp at the data receiving end can be referred to Steps 1 to 3 above, and will not be elaborated here.
[0105] In this embodiment, after calculating the first sampling time stamp, the data receiving end can calculate the sampling time stamps corresponding to other fault data packets in multiple sets of fault data packets based on the first sampling time stamp and the preset sampling frequency. In this embodiment, since the data sending end uses the preset sampling frequency when collecting multiple sets of fault data packets, it can be seen that the difference in sampling time stamps between any two adjacent sets of fault data packets collected by the data sending end is the sampling period of the preset sampling frequency.
[0106] Theoretically, the difference in sampling timestamps between any two adjacent fault data packets received by the data receiver should also be equal to the sampling period of the preset sampling frequency. In this embodiment, to improve the accuracy of the multiple sampling timestamps calculated by the data receiver, data delay is considered and calculated. Therefore, the difference in sampling timestamps between any two adjacent fault data packets is equal to or infinitely close to the sampling period of the preset sampling frequency. That is, the difference between the sampling timestamps between any two adjacent fault data packets and the sampling period of the preset sampling frequency is less than or equal to a preset error. The specific value of the preset error can be determined based on the data delay and / or the preset transmission time period. This application does not limit the specific value of the preset error.
[0107] In this embodiment of the application, the sampling time stamp of the next set of fault data packets adjacent to the previous set of fault data packets can be determined based on the sampling time stamp of the previous set of fault data packets, or the sampling time stamp of any set of fault data packets can be determined based on the sampling time stamp of the first set of fault data packets.
[0108] For example, if the next set of fault data packets adjacent to the second fault data packet is the third fault data packet, then the third sampling time stamp corresponding to the third fault data packet can be the sum of the second sampling time stamp of the second fault data packet and a first ratio, where the first ratio is the sampling period corresponding to a preset sampling frequency, for example, a sampling period of t. s .
[0109] For example, when the sampling period of the preset sampling frequency is t s When the sampling timestamp of the first group of fault data packets received by the data receiver is T6, then the sampling timestamp of the second group of fault data packets is T6+t. s Therefore, the sampling time stamp corresponding to the third group of fault data messages is T6+2t. s ...The sampling time stamp corresponding to the Nth fault data message is T6+(N-1)t s .
[0110] Similarly, the data receiver can also calculate the sampling timestamp of the last fault data packet among multiple fault data packets based on the first moment, the preset transmission time period and the data delay, and infer the sampling timestamp of other fault data packets based on the sampling timestamp of the last fault data packet.
[0111] For example, the sampling time stamp T7 of the last set of fault data messages is T1 + (T4 + (T2 - T1) * 0.5).
[0112] The specific calculation process for the sampling time stamp of the last set of fault data messages can be found in the technical solutions provided in Steps 1 to 3 above, and will not be elaborated here.
[0113] In the technical solution provided in this application embodiment, the data receiving end can acquire multiple sets of fault data packets by sending a fault initiation signal when a fault signal is detected, and record the first moment of sending the fault initiation signal. The sampling frequency of the multiple sets of fault data packets is a preset sampling frequency. The second moment of receiving the first set of fault data packets is recorded; thereby, multiple sampling timestamps of the multiple sets of fault data packets are calculated based on the preset sampling frequency, the first moment, and the second moment. The data receiving end only acquires multiple sets of fault data packets when a fault signal is detected, eliminating the need for real-time reception of fault data packets and saving data transmission bandwidth. Furthermore, after receiving multiple sets of fault data packets obtained through the preset sampling frequency, the data receiving end can calculate multiple sampling timestamps of the multiple sets of fault data packets using the preset sampling frequency, the first moment, and the second moment. Without needing to support high-frequency data transmission and reception optical ports, after multiple sets of fault data packets are transmitted at low frequencies, the data receiver can calculate multiple sampling timestamps of multiple sets of fault data packets at a preset sampling frequency, thereby achieving the transmission of high-frequency sampled data. The analysis results calculated by the data receiver using high-frequency sampled data are more accurate, which can improve the accuracy of fault analysis performed by the data receiver.
[0114] It should be understood that, provided there are no logical conflicts, the above-described embodiments can be combined and implemented to adapt to actual application needs. These combined embodiments or implementation schemes are still within the scope of protection of this application.
[0115] Corresponding to the data receiving method in the above embodiments, this application provides a data receiving device 40. The data receiving device 40 can be a data receiving equipment. The data receiving device 40 can be implemented as part or all of a computer device by software, hardware or a combination of both, and is used to execute the steps in the data receiving method in the above embodiments.
[0116] Figure 4A schematic diagram of a data receiving device provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown.
[0117] Reference Figure 4 The data receiving device 40 includes a recording module 410, a receiving module 420, and a calculation module 430.
[0118] The recording module 410 is used to send a fault start signal when a fault signal is detected and to record the first moment. The first moment is the time when the fault start signal is sent. The fault start signal is used to acquire multiple sets of fault data messages. The sampling frequency of the multiple sets 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 time. The second time is the time when the first fault data message is received. The first fault data message is the first fault data message in a set of multiple fault data messages. The multiple fault data messages are messages collected within the fault time period. The fault time period includes the third time. The third time is the time when the fault start signal is received. The third time is between the first time and the second time.
[0120] The calculation module 430 is used to calculate multiple sampling time markers of multiple sets of fault data messages according to the preset sampling frequency, the first time, and the second time. The multiple sampling time markers correspond one-to-one with the multiple sets of fault data messages. The difference between the time interval of two adjacent sampling time markers 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 by the fault detection waveform of the data receiving end.
[0121] In some embodiments, the calculation module 430 is further configured to: obtain a preset transmission time period; calculate a data delay based on a first time and a second time; calculate a first sampling time stamp of a first fault data packet based on the first time, the preset transmission time period, and the data delay; calculate a second sampling time stamp of a second fault data packet based on the first sampling time stamp and a preset sampling frequency, wherein the second fault data packet is any group of fault data packets that is different from the first fault data packet among multiple groups of fault data packets, and when the second fault data packet is the next group of fault data packets after the first fault data packet, 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.
[0122] In some implementations, the first sampling timescale is positively correlated with the data delay and negatively correlated with the preset transmission time period.
[0123] In some implementations, the calculation module 430 is further configured to: determine half of the difference between the second time and the first time as the data delay; calculate the first sampling time stamp of the first fault data message based on the first time, the preset transmission time period and the data delay, including: determining the difference between the preset transmission time period and the data delay as the first time difference; and determining the difference between the first time and the first time difference as the first sampling time stamp.
[0124] In some implementations, the third sampling time stamp is the sum of the second sampling time stamp and the first ratio, the third sampling time stamp is the sampling time stamp of the next set of fault data packets of the second fault data packet, and the first ratio is the sampling period corresponding to the preset sampling frequency.
[0125] In some embodiments, the calculation module 430 is further configured to: receive a first test message, the first test message being used to characterize the completion of receiving multiple sets of fault data messages; and in response to receiving the first test message, calculate multiple sampling time stamps of the multiple sets of fault data messages according to a preset sampling frequency, a first time, and a second time.
[0126] In some implementations, the fourth fault data message carries multiple sets of sampled values, which are sampled values collected through multiple channels. Each set of sampled values corresponds one-to-one with a channel. The fourth fault data message is any one of the multiple sets of fault data messages.
[0127] This application embodiment also provides a data transmission device 50, which can be a data transmission equipment. The data transmission device 50 can be implemented by software, hardware or a combination of both as part or all of a computer device, and is used to perform the steps in the above embodiments.
[0128] Figure 5 The diagram shows a data transmission device according to an embodiment of this application. For ease of explanation, only the parts related to the embodiment of this application are shown.
[0129] Reference Figure 5 The data transmission device 50 includes a recording module 510, a determining module 520, and a transmission module 530.
[0130] The recording module 510 is used to record the moment when the fault start signal is received as the third moment in response to the received fault start signal.
[0131] The determination module 520 is used to determine the fault time period based on the third time point, where the third time point is a moment within the fault time period.
[0132] The sending module 530 is used to determine multiple sets of fault data messages based on the fault time period and send the multiple sets of fault data messages according to a preset sending frequency. The multiple sets of fault data messages are fault data messages collected within the fault time period. The sampling frequency of the multiple sets of fault data messages is a preset sampling frequency. The time interval between adjacent sampling time markers in the multiple sampling time markers of the multiple sets of fault data messages is the same as the sampling period of the preset sampling frequency. The multiple sets of fault data messages correspond one-to-one with the multiple sampling time markers. 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, wherein the first fault time period is a preset transmission time period before the third time period and the second fault time period is a preset transmission time period after the third time period.
[0134] In some implementations, the multiple sets of fault data messages include multiple sets of first fault data messages and multiple sets of second fault data messages. The sending module 530 is further configured to: acquire multiple sets of first fault data messages within a first fault time period; and within a second fault time period, after acquiring multiple sets of second fault data messages at a preset sampling frequency, send multiple sets of first fault data messages and multiple sets of second fault data messages at a preset sending frequency.
[0135] In some implementations, the multiple sets of fault data messages include multiple sets of first fault data messages and multiple sets of second fault data messages. The sending module 530 is further configured to: acquire multiple sets of first fault data messages within a first fault time period and send multiple sets of first fault data messages according to a preset sending frequency; and within a second fault time period, acquire multiple sets of second fault data messages according to a preset sampling frequency and send multiple sets of second fault data messages according to a preset sending frequency.
[0136] In some implementations, the sending module 530 is further configured to: send a first test message, the first test message being used to indicate that multiple sets of fault data messages have been sent.
[0137] In some implementations, the preset sampling frequency is higher than the preset transmission frequency.
[0138] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0139] It should be understood that the sequence number of each step in the above embodiments does not imply 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 this application.
[0140] Based on the same inventive concept, embodiments of this application also provide an electronic device.
[0141] Figure 6 This is a schematic diagram of the structure of the electronic device provided in an embodiment of this application. For example... 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 diagram. The processor 610 includes a memory 620 and a communication module 640. The memory 620 stores a computer program 630 that may run on the processor 610. When the processor 610 executes the computer program 630, it implements the steps in the above-described data receiving method embodiments, for example... Figure 1 Steps S101 to S106 are shown. Alternatively, when processor 610 executes computer program 630, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 4 The functions of modules 410 to 430 shown, or Figure 5 The functions of modules 510 to 530 are shown. The communication module 640 can be a separate communication unit used to communicate with external servers or terminal devices.
[0142] Electronic device 60 may include, but is not limited to, a processor 610 and a memory 620. Those skilled in the art will understand that... Figure 6 This is merely an example of electronic device 60 and does not constitute a limitation on electronic device 60. It may include more or fewer components than shown, or combine certain components, or different components. For example, electronic device 60 may also include input transmitting devices, network access devices, buses, etc.
[0143] The processor 610 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0144] In some embodiments, memory 620 may be an internal storage unit of electronic device 60, such as a hard disk or memory of electronic device 60. Memory 620 may also be an external storage device of electronic device 60, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on electronic device 60. Memory 620 may also include both internal and external storage units of electronic device 60. Memory 620 is used to store operating system, applications, bootloader, data, and other programs, such as the program code of computer program 630. Memory 620 may also be used to temporarily store data that has been sent or will be sent.
[0145] Furthermore, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above 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. In the various embodiments of this application, each functional unit can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0146] This application provides a computer-readable storage medium storing a computer program that, when run on an electronic device, causes the electronic device to perform the steps described in the various method embodiments above.
[0147] This application provides a chip, which includes a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the steps in the various method embodiments described above.
[0148] This application provides a computer program product that, when run on an electronic device, causes the electronic device to execute the steps described in the various method embodiments above.
[0149] It should be understood that the processor mentioned in the embodiments of this application can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0150] It should also be understood that the memory mentioned in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0151] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above 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 and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0152] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0153] Those skilled in the art will recognize that the units and algorithm steps of the various examples 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 implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0154] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.
[0155] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0156] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0157] If the integrated unit is implemented as 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, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a large-screen device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0158] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A data receiving method, characterized in that, Applied to a data receiving end, the method includes: When a fault signal is detected, a fault initiation signal is sent and a first moment is recorded. The first moment is the moment when the fault initiation signal is sent. The fault initiation signal is used to acquire multiple sets of fault data packets. The sampling frequency of the multiple sets of fault data packets is a preset sampling frequency. Receive a first fault data message and record a 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 in the plurality of fault data messages. The plurality of fault data messages are messages collected within 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. The third time is between the first time and the second time. The multiple sampling time markers of the multiple sets of fault data packets are calculated according to the preset sampling frequency, the first time, and the second time. The multiple sampling time markers correspond one-to-one with the multiple sets of fault data packets. The difference between the time interval of two adjacent sampling time markers and the sampling period corresponding to the preset sampling frequency is less than or equal to a preset error. The preset sampling frequency matches the frequency required for the fault detection waveform of the data receiving end. The step of calculating multiple sampling time stamps for the multiple sets of fault data packets based on the preset sampling frequency, the first time, and the second time includes: Get the preset sending time period; Calculate the data delay based on the first time point and the second time point; Calculate the first sampling time stamp of the first fault data packet based on the first time, the preset transmission time period, and the data delay; Based on the first sampling time stamp and the preset sampling frequency, the second sampling time stamp of the second fault data message is calculated. The second fault data message is any group of fault data messages that is different from the first fault data message among the multiple groups of fault data messages. When the second fault data message is the next group of fault data messages after 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 the preset error.
2. The data receiving method according to claim 1, characterized in that, The calculation of data delay based on the first time point and the second time point includes: The data delay is determined to be half of the difference between the second time point and the first time point. The step of calculating the first sampling time stamp of the first fault data packet based on the first time, the preset transmission time period, and the data delay includes: The difference between the preset transmission time period and the data delay is determined to be the first time difference; The difference between the first time point and the first time difference is determined as the first sampling time scale; Wherein, the third sampling time stamp is the sum of the second sampling time stamp and the first ratio, the third sampling time stamp is the sampling time stamp of the next set of fault data packets of the second fault data packet, and the first ratio is the sampling period corresponding to the preset sampling frequency.
3. The data receiving method according to claim 1, characterized in that, The step of calculating multiple sampling time stamps for the multiple sets of fault data packets based on the preset sampling frequency, the first time, and the second time includes: Receive a first test message, which is used to indicate that the multiple sets of fault data messages have been received. In response to receiving the first test message, multiple sampling time stamps of the multiple sets of fault data messages are calculated based on the preset sampling frequency, the first time, and the second time.
4. A data transmission method, characterized in that, Applied to the data sending end, the method includes: In response to the received fault start signal, the moment when the fault start signal is received is recorded as the third moment; The fault time period is determined based on the third time point, where the third time point is a time point within the fault time period. The fault time period includes a first fault time period and a second fault time period. The first fault time period is a preset transmission time period before the third time point, and the second fault time period is a preset transmission time period after the third time point. Multiple sets of fault data packets are determined based on the fault time period, and the multiple sets of fault data packets are sent according to a preset transmission frequency. The multiple sets of fault data packets are fault data packets collected within the fault time period. The sampling frequency of the multiple sets of fault data packets is a preset sampling frequency. The time interval between adjacent sampling time markers in the multiple sampling time markers of the multiple sets of fault data packets is the same as the sampling period of the preset sampling frequency. The multiple sets of fault data packets correspond one-to-one with the multiple sampling time markers. The preset sampling frequency matches the frequency required by the fault detection waveform of the data receiving end. The multiple sets of fault data packets include multiple sets of first fault data packets and multiple sets of second fault data packets. The step of determining multiple sets of fault data packets based on the fault time period and sending the multiple sets of fault data packets at a preset sending frequency includes: Obtain the multiple sets of first fault data packets within the first fault time period; During the second fault time period, after collecting the multiple sets of second fault data packets according to the preset sampling frequency, the multiple sets of first fault data packets and the multiple sets of second fault data packets are sent according to the preset sending frequency.
5. The data transmission method according to claim 4, characterized in that, The multiple sets of fault data packets include multiple sets of first fault data packets and multiple sets of second fault data packets. The step of determining the multiple sets of fault data packets based on the fault time period and sending the multiple sets of fault data packets according to a preset sending frequency includes: Acquire the multiple sets of first fault data packets within the first fault time period, and send the multiple sets of first fault data packets according to the preset sending frequency; During the second fault time period, the multiple sets of second fault data packets are collected according to the preset sampling frequency, and the multiple sets of second fault data packets are sent according to the preset sending frequency.
6. An electronic device, characterized in that, It includes a processor and a memory, the processor being configured to execute a computer program stored in the memory to implement the method as described in any one of claims 1-5.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-5 above.
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