Data validation method and system for virtual electronic test instrument platform
By using a transmission limiting function to decompose waveform data and allocate independent channels for transmission on a virtual electronic testing instrument platform, the problem of data error caused by transmission signal fluctuations was solved, and the stability of data transmission and the accuracy of experimental results were guaranteed.
Patent Information
- Application Number
- CN202511708562.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-20
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2045-11-20
AI Technical Summary
When the transmitted signal fluctuates, it affects the stability of the signal output, resulting in errors in the virtual experimental data.
By obtaining the transmission constraint function, the waveform data is decomposed into multiple waveform units, and the independent waveform data is transmitted through two independent transmission channels. The similarity is calculated to determine the stability of data transmission, the hash value is used to verify the success of transmission, and the data is interpolated to synthesize the original waveform.
Quickly determine the stability of data transmission, ensure the accuracy of experimental data, avoid extra data transmission, and improve the reliability of experimental results.
Smart Images

Figure CN121167330B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of virtual test platform, and particularly relates to a data verification method and system for a virtual electronic test instrument platform. BACKGROUND
[0002] The virtual electronic test instrument platform is an innovative experimental system based on computer software (such as LabVIEW) and general data acquisition hardware. It softwareizes and modularizes the functions of traditional physical instruments (such as oscilloscopes, signal generators, etc.) through graphical programming, forming a comprehensive experimental environment integrating signal acquisition, analysis, processing and display. The platform not only greatly reduces experimental costs and breaks through the limitations of traditional instruments in function and space, but also realizes remote experiments and resource sharing through network communication technology, enabling students to conduct independent experiments anytime and anywhere, greatly improving the flexibility, scalability of experimental teaching and the innovation ability of students.
[0003] Data transmission between virtual electronic instruments has a great impact on the stability of the virtual platform. When transmission signal fluctuation occurs, it will affect the stability of signal output, otherwise the data produced by the virtual experiment will have errors. SUMMARY
[0004] The purpose of the present application is to provide a data verification method for a virtual electronic test instrument platform, which aims to solve the problem of signal output instability when transmission signal fluctuation occurs, otherwise the data produced by the virtual experiment will have errors.
[0005] The present application is implemented as follows: a data verification method for a virtual electronic test instrument platform, the method comprising:
[0006] Obtaining waveform data to be transmitted, before each transmission, a set of transmission limiting functions are randomly generated according to the preset independent variable range and dependent variable range;
[0007] Sending the transmission limiting functions to the data receiver and receiving the return data, checking the transmission limiting functions, and storing the transmission limiting functions in the data receiver and the data sender at the same time;
[0008] Decomposing the waveform in the waveform data to be transmitted into multiple waveform units, determining the decomposition ratio based on the transmission limiting function, and decomposing one waveform unit into two independent wave data;
[0009] Transmitting the two independent wave data through two transmission channels, calculating the similarity of the two sets of independent wave data in the data receiver, determining the data transmission stability, and outputting the data verification result.
[0010] Preferably, the step of sending the transmission limiting function to the data receiver and receiving the return data, checking the transmission limiting function, and storing the transmission limiting function in the data receiver and the data sender simultaneously comprises:
[0011] The transmission limiting function is called and sent to the data receiver by the data sender, and the data receiver receives it and generates a return data;
[0012] The return data returned from the data receiver is received, and the return data is represented by the hash value of the transmission limiting function;
[0013] The data sender calculates the hash value of the transmission limiting function, and completes the check according to the calculated hash value and the received return data to determine whether the transmission is successful.
[0014] Preferably, the step of disassembling the waveform in the waveform data to be transmitted into multiple waveform units, determining the decomposition ratio based on the transmission limiting function, and disassembling one waveform unit into two independent wave data comprises:
[0015] The waveform data to be transmitted is identified, the peak, starting point and ending point of each waveform are identified, and the entire waveform is divided into multiple independent waveform units, and each waveform unit contains only one peak or valley;
[0016] The waveform units are numbered and the number is input into the transmission limiting function to obtain a calculation value, and the decomposition ratio is determined according to the calculation value;
[0017] According to the decomposition ratio, the waveform units are sampled, and each waveform unit is decomposed into two independent wave data.
[0018] Preferably, the step of transmitting the two independent wave data through two transmission channels, calculating the similarity of the two sets of independent wave data in the data receiver, determining the data transmission stability, and outputting the data verification result comprises:
[0019] Two independent transmission channels are constructed, and the time stamp of the independent wave data is set, and the transmission is performed through two channels, and the data receiver receives it;
[0020] The data receiver receives the first waveform data and the second waveform data, performs interpolation processing on the first waveform data and the second waveform data based on the time value, and outputs the first interpolation data and the second interpolation data;
[0021] The Pearson correlation coefficient of the first interpolation data and the second interpolation data is calculated, and the Pearson correlation coefficient is used as the similarity of the two, and when the similarity is higher than the preset value, it is determined that the data transmission is stable, and the data verification result is output.
[0022] Preferably, the data receiver synthesizes the original waveform data to be transmitted according to the first interpolation data and the second difference data.
[0023] Another object of the present application is to provide a data verification system for a virtual electronic test instrument platform, the system comprising:
[0024] a function generation module configured to obtain waveform data to be transmitted, and randomly generate a set of transmission limiting functions according to a preset independent variable range and a dependent variable range before each transmission;
[0025] a function transmission verification module configured to send the transmission limiting functions to the data receiver and receive return data, verify the transmission limiting functions, and store the transmission limiting functions in the data receiver and the data sender;
[0026] a waveform data splitting module configured to split the waveform in the waveform data to be transmitted into a plurality of wave units, determine a splitting ratio based on the transmission limiting functions, and split one wave unit into two independent wave data;
[0027] a transmission verification module configured to transmit the two independent wave data through two transmission channels, calculate the similarity of the two sets of independent wave data at the data receiver, determine the data transmission stability, and output a data verification result.
[0028] Preferably, the function transmission verification module comprises:
[0029] a function return unit configured to call the transmission limiting functions, send the transmission limiting functions to the data receiver through the data sender, receive the transmission limiting functions at the data receiver, and generate a return data;
[0030] a hash value calculation unit configured to receive the return data returned from the data receiver, and the return data is represented by the hash value of the transmission limiting functions;
[0031] a function verification unit configured to calculate the hash value of the transmission limiting functions through the data sender, complete verification according to the calculated hash value and the received return data, and determine whether the transmission is successful.
[0032] Preferably, the waveform data splitting module comprises:
[0033] a waveform splitting unit configured to perform waveform identification on the waveform data to be transmitted, identify the wave peak, starting point and ending point of each waveform, divide the entire waveform into a plurality of independent wave units, and each wave unit contains only one wave peak or trough;
[0034] The decomposition ratio calculation unit is used to number the waveform units, input the numbers into the transmission limiting function to obtain the calculated values, and determine the decomposition ratio based on the calculated values.
[0035] The waveform sampling unit is used to sample waveform units according to the decomposition ratio. Each waveform unit is decomposed into two independent waveform data.
[0036] Preferably, the transmission verification module includes:
[0037] The data receiving unit is used to construct two independent transmission channels, set the timestamps of independent wave data, transmit them through the two channels, and receive them through the data receiver.
[0038] The data interpolation unit is used to receive data from the data receiver, obtain first waveform data and second waveform data, perform interpolation processing on them based on time values, and output first interpolated data and second interpolated data.
[0039] The data verification unit is used to calculate the Pearson correlation coefficient between the first interpolated data and the second interpolated data, and uses the Pearson correlation coefficient as the similarity between the two. When the similarity is higher than a preset value, the data transmission is determined to be stable, and the data verification result is output.
[0040] Preferably, the data receiver synthesizes the original waveform data to be transmitted based on the first interpolation data and the second difference data.
[0041] The data verification method for a virtual electronic testing instrument platform provided by this invention decomposes a waveform, dividing it into two parts for independent transmission. The data obtained from the independent transmission are then mutually verified to determine the stability of the data transmission. This method can quickly determine the stability of the data during transmission without introducing additional data transmission volume, thus ensuring the accuracy of the experimental data. Attached Figure Description
[0042] Figure 1 A flowchart of a data verification method for a virtual electronic testing instrument platform provided in an embodiment of the present invention;
[0043] Figure 2 A flowchart illustrating the steps of sending a transmission constraint function to a data receiver, receiving returned data, verifying the transmission constraint function, and storing the transmission constraint function simultaneously in both the data receiver and the data sender, as provided in this embodiment of the invention.
[0044] Figure 3 The flowchart illustrates the steps of decomposing a waveform in waveform data to be transmitted into multiple waveform units, determining the decomposition ratio based on a transmission constraint function, and decomposing one waveform unit into two independent waveform data, as provided in an embodiment of the present invention.
[0045] Figure 4 The flow chart of the steps of transmitting two independent wave data through two transmission channels, calculating the similarity of the two sets of independent wave data at the data receiving side, determining the data transmission stability, and outputting the data verification result is provided for the embodiment of the present application.
[0046] Figure 5 The architecture diagram of the data verification system for the virtual electronic test instrument platform is provided for the embodiment of the present application.
[0047] Figure 6 The architecture diagram of the function transmission verification module is provided for the embodiment of the present application.
[0048] Figure 7 The architecture diagram of the waveform data splitting module is provided for the embodiment of the present application.
[0049] Figure 8 The architecture diagram of the transmission verification module is provided for the embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0051] As shown in the flow chart of the data verification method for the virtual electronic test instrument platform provided for the embodiment of the present application, the method comprises: Figure 1
[0052] S100, obtaining waveform data to be transmitted, before each transmission, a set of transmission limiting functions are randomly generated according to the preset independent variable range and dependent variable range.
[0053] In this step, the waveform data to be transmitted is obtained. When the waveform data is transmitted between virtual electronic instruments or between the client and the virtual platform, the accuracy of the waveform data transmission needs to be ensured. When the system fluctuates, the data transmission is prone to packet loss, and it is difficult to ensure the integrity of the data. When the waveform data to be transmitted is obtained, a set of transmission limiting functions are generated. The independent variable range and the dependent variable range of the transmission limiting function are preset, such as setting the independent variable range in the range of positive real numbers or between 0-10, and setting the dependent variable range between 0.39-0.65. For example, the generated transmission limiting function is .
[0054] S200, transmitting the transmission limiting function to the data receiving side and receiving the return data, verifying the transmission limiting function, and storing the transmission limiting function in the data receiving side and the data sending side at the same time.
[0055] In this step, the transmission limiting function is sent to the data receiver, which is used by the data sender to adjust the transmitted waveform data and by the data receiver to check the integrity of the transmitted waveform data, so both must use the same transmission limiting function. Therefore, the transmission limiting function is sent by the data sender to the data receiver, and then the received function is returned by the data receiver to the data sender to determine whether the transmission of the transmission limiting function is complete.
[0056] S300, the waveform in the waveform data to be transmitted is disassembled into multiple waveform units, the disassembly ratio is determined based on the transmission limiting function, and one waveform unit is disassembled into two independent wave data.
[0057] In this step, the waveform in the waveform data to be transmitted is disassembled. For the waveform data to be transmitted, the waveform will continuously oscillate along the horizontal axis direction, and the amplitude of each oscillation is different, thereby forming multiple independent wave peaks or troughs in the horizontal axis direction, and the wave peaks and troughs appear alternately. Therefore, according to the positions of the wave peaks and troughs, the signal wave of the entire waveform data to be transmitted is disassembled into individual wave peaks or troughs, each wave peak or trough is regarded as a waveform unit, and then a set of calculation values is generated for each waveform unit by the transmission limiting function. The disassembly ratio of each waveform unit is determined by the calculation value, and each waveform unit is disassembled into two independent wave data according to the disassembly ratio.
[0058] S400, the two independent wave data are transmitted through two transmission channels, the similarity of the two sets of independent wave data is calculated at the data receiver, the data transmission stability is determined, and the data verification result is output.
[0059] In this step, the two independent wave data are transmitted through two transmission channels. Two independent channels are used for transmission, and the transmission processes of the two channels do not affect each other. Even if one transmission channel has transmission abnormalities, the data transmitted by the other transmission channel can remain complete. After receiving the two sets of independent wave data, the similarity between them is calculated. The higher the similarity, the better the stability of the two channels. When the similarity is higher than a preset value, it means that the data transmission is normal. The independent wave data of the two channels are combined to obtain the original waveform unit. If the similarity is lower than the preset value, it is determined that there is network fluctuation, and the data verification result is output. According to the data verification result, it is determined whether the experimental result is reliable. When the network fluctuation is large, the network needs to be repaired. If the fluctuation is not large, the waveform unit can be repaired according to the two sets of independent wave data.
[0060] As Figure 2As shown, in a preferred embodiment of the present invention, the steps of sending a transmission constraint function to the data receiver, receiving the returned data, verifying the transmission constraint function, and storing the transmission constraint function simultaneously at both the data receiver and the data sender specifically include:
[0061] S201, call the transmission constraint function, send the transmission constraint function to the data receiver through the data sender, the data receiver receives it and generates a return data.
[0062] In this step, the transmission constraint function is invoked. The transmission constraint function is generated by the data sender and then sent from the data sender to the data receiver. During transmission, encrypted transmission can be used. The data receiver receives the transmission constraint function and generates the return data based on the transmission constraint function.
[0063] S202, receive the return data from the data receiver, the return data being represented by the hash value of the transmission limiting function.
[0064] In this step, the data receiver receives the return data from the data receiver and returns the return data to the data sender. The return data can be a direct copy of the received transmission constraint function, or the hash value of the received transmission constraint function can be calculated and used as the return data.
[0065] S203, the data sender calculates the hash value of the transmission constraint function, and performs verification based on the calculated hash value and the received return data to determine whether the transmission was successful.
[0066] In this step, the data sender calculates the hash value of the transmission constraint function. The current transmission constraint function is directly generated by the data sender. After the calculation is completed, the two sets of hash values are compared. If they are the same, the transmission is considered successful; otherwise, it is considered unsuccessful. If the returned data directly uses the received transmission constraint function, then the two sets of transmission constraint functions are directly compared.
[0067] like Figure 3 As shown, in a preferred embodiment of the present invention, the step of decomposing the waveform in the waveform data to be transmitted into multiple waveform units, determining the decomposition ratio based on the transmission constraint function, and decomposing one waveform unit into two independent waveform data specifically includes:
[0068] S301 performs waveform recognition on the waveform data to be transmitted, identifies the peak, start point and end point of each waveform, and divides the entire waveform into multiple independent waveform units, with each waveform unit containing only one peak or trough.
[0069] In this step, the waveform data to be transmitted is identified, the waveform signal diagram of this transmission is extracted, and the wave peaks and wave troughs contained therein are identified. Each wave peak and wave trough is regarded as a waveform unit, and a waveform unit is composed of a plurality of waveform point coordinates. The number of waveform point coordinates is obtained according to the sampling frequency of the waveform, and the abscissa of the waveform point coordinate is the coordinate of the point on the waveform diagram.
[0070] In this step, the waveform unit is numbered, and the number is input into the transmission limiting function to obtain a calculation value. The decomposition ratio is determined according to the calculation value.
[0071] In this step, the waveform unit is numbered, and the number is input into the transmission limiting function to obtain a calculation value. The decomposition ratio is determined according to the calculation value.
[0072] In this step, the waveform unit is numbered, and the number is input into the transmission limiting function to obtain a calculation value. The decomposition ratio is determined according to the calculation value.
[0073] In this step, the waveform unit is numbered, and the number is input into the transmission limiting function to obtain a calculation value. The decomposition ratio is determined according to the calculation value.
[0074] For example, Figure 4As shown, as a preferred embodiment of the present application, the step of transmitting two independent wave data through two transmission channels, calculating the similarity of the two sets of independent wave data at the data receiving side, and determining the data transmission stability and outputting the data verification result, specifically includes:
[0075] S401, two independent transmission channels are constructed, and the time stamp of the independent wave data is set, and the independent wave data is transmitted through two channels and received by the data receiving side.
[0076] In this step, two independent transmission channels are constructed, and the two transmission channels are independent of each other and do not affect each other, so that the two sets of independent wave data are transmitted through two transmission channels, and the batch of independent wave data is determined according to the time stamp of the independent wave data. The data receiving side stores the two sets of independent wave data of the same batch together.
[0077] S402, received by the data receiving side, get the first waveform data and the second waveform data, and perform interpolation processing based on the time value, output the first interpolation data and the second interpolation data.
[0078] In this step, the independent wave data is received by the data receiving side, and the independent wave data of the same batch from the two channels is the first waveform data and the second waveform data, respectively. The total number of coordinates M contained in the first waveform data and the second waveform data is counted, and the first waveform data and the second waveform data are interpolated with M as the target, so that the number of coordinates contained in the first waveform data and the second waveform data reaches the total number of coordinates M, and the first interpolation data and the second interpolation data are obtained. For example, the first waveform data contains coordinates: (1, 1.23), (3, 3.07), (4, 3.92), (5, 4.78), (7, 3.84), (9, 1.98); The second waveform data contains coordinates: (2, 2.22), (6, 4.67), (8, 2.85), (10, 1.12); After interpolation, the first interpolation data is (1, 1.23), (2, 2.15), (3, 3.07), (4, 3.92), (5, 4.78), (6, 4.56), (7, 3.84), (8, 2.91), (9, 1.98), (10, 1.05), and the second interpolation data is (1, 1.18), (2, 2.22), (3, 3.11), (4, 4.03), (5, 4.89), (6, 4.67), (7, 3.79), (8, 2.85), (9, 2.02), (10, 1.12).
[0079] S403, calculate the Pearson correlation coefficient between the first interpolated data and the second interpolated data, and use the Pearson correlation coefficient as the similarity between the two. When the similarity is higher than the preset value, the data transmission is determined to be stable, and the data verification result is output.
[0080] In this step, the Pearson correlation coefficient between the first interpolated data and the second interpolated data is calculated. For example, if the first interpolated data is (1, 1.23), (2, 2.15), (3, 3.07), (4, 3.92), (5, 4.78), (6, 4.56), (7, 3.84), (8, 2.91), (9, 1.98), (10, 1.05), and the second interpolated data is (1, 1.18), (2, 2.22), (3, 3.11), (4, 4.03), (5, 4.89), (6, 4.67), (7, 3.79), (8, 2.85), (9, 2.02), (10, 1.12), the correlation coefficient is calculated using the formula:
[0081] ;
[0082] in, For the first interpolated data, the first The ordinate of each coordinate. For the second interpolated data, the first The ordinate of each coordinate. This is the average of all ordinates in the first interpolated data. The correlation coefficient is calculated by taking the average of all ordinates in the second interpolation data. A correlation coefficient of 0.9989 indicates stable data transmission and guarantees the validity of the experimental results on the virtual platform. If the correlation coefficient is lower than a preset value, such as below 0.8, the transmission is considered unstable, and the validity of the experimental results is difficult to guarantee. Specifically, the data receiver merges the two sets of first and second waveform data to obtain the current waveform unit, containing the following waveform point coordinates: (1, 1.23), (3, 3.07), (4, 3.92), (5, 4.78), (7, 3.84), (9, 1.98), (2, 2.22), (6, 4.67), (8, 2.85), (10, 1.12). Based on the transmission constraint function, the data receiver can determine the theoretically required ratio of waveform point coordinates between the first and second waveform data, thereby determining whether packet loss exists and assisting in assessing network stability. In case of network anomalies, timely alerts are provided.
[0083] like Figure 5As shown, the data verification system for the virtual electronic test instrument platform provided by the embodiment of the application comprises:
[0084] The function generation module 100 is configured to obtain waveform data to be transmitted, and randomly generate a set of transmission limiting functions according to a preset independent variable range and dependent variable range before each transmission.
[0085] In the system, the function generation module 100 obtains waveform data to be transmitted. When the waveform data is transmitted between virtual electronic instruments or between a client and a virtual platform, the accuracy of the waveform data transmission needs to be ensured. When the system fluctuates, the data transmission is prone to packet loss, and it is difficult to ensure the integrity of the data. When the waveform data to be transmitted is obtained, a set of transmission limiting functions is generated. The independent variable range and the dependent variable range of the transmission limiting functions are preset, for example, the independent variable range is set to the range of positive real numbers or 0-10, and the dependent variable range is set to 0.39-0.65. For example, the generated transmission limiting function is .
[0086] The function transmission verification module 200 is configured to send the transmission limiting function to the data receiver and receive the returned data, verify the transmission limiting function, and store the transmission limiting function in the data receiver and the data sender.
[0087] In the system, the function transmission verification module 200 sends the transmission limiting function to the data receiver. For the data sender, the transmission limiting function is used to adjust the transmitted waveform data. For the data receiver, the transmission limiting function is used to verify the integrity of the transmitted waveform data. Therefore, the same transmission limiting function must be used by both. Therefore, the data sender sends the transmission limiting function to the data receiver, and then the data receiver returns the received function to the data sender to determine whether the transmission of the transmission limiting function is complete.
[0088] The waveform data splitting module 300 is configured to split the waveform in the waveform data to be transmitted into a plurality of waveform units, determine a splitting ratio based on the transmission limiting function, and split one waveform unit into two independent wave data.
[0089] In the system, the waveform data splitting module 300 splits the waveform in the waveform data to be transmitted. For the waveform data to be transmitted, the waveform will continuously oscillate along the horizontal axis direction, and the amplitude of each oscillation is different, thereby forming a plurality of independent wave peaks or troughs in the horizontal axis direction, and the wave peaks and troughs appear alternately. Therefore, according to the positions of the wave peaks and troughs, the signal wave of the entire waveform data to be transmitted is split into individual wave peaks or troughs, and each wave peak or trough is regarded as a wave unit. Then, the transmission limiting function is used to generate a set of calculation values for each wave unit, and the calculation values are used to determine the splitting ratio of each wave unit. According to the splitting ratio, each wave unit is split into two independent wave data.
[0090] The transmission verification module 400 is configured to transmit the two independent wave data through two transmission channels, calculate the similarity between the two sets of independent wave data at the data receiving end, determine the data transmission stability, and output a data verification result.
[0091] In the system, the transmission verification module 400 transmits the two independent wave data through two transmission channels. The two channels are independent of each other, and the transmission process of one channel does not affect the transmission process of the other channel. Even if one transmission channel has transmission abnormalities, the data transmitted by the other transmission channel can remain complete. After receiving the two sets of independent wave data, the similarity between the two sets of data is calculated. The higher the similarity, the better the stability of the two channels. When the similarity is higher than a preset value, it indicates that the data transmission is normal. The independent wave data of the two channels are combined to obtain the original wave unit. If the similarity is lower than the preset value, it indicates that there is network fluctuation, and a data verification result is output. According to the data verification result, it is determined whether the experimental result is reliable. When the network fluctuation is large, the network needs to be repaired. If the fluctuation is not large, the wave unit can be repaired according to the two sets of independent wave data.
[0092] As shown in Figure 6 As a preferred embodiment of the present application, the function transmission verification module 200 includes:
[0093] The function return unit 201 is configured to call the transmission limiting function, send the transmission limiting function to the data receiving end through the data sending end, receive the transmission limiting function by the data receiving end, and generate a return data based on the transmission limiting function.
[0094] In this step, the function return unit 201 calls the transmission limiting function, which is generated by the data sending end and then sent to the data receiving end. During transmission, an encrypted transmission method can be used. The data receiving end receives the transmission limiting function and generates a return data based on the transmission limiting function.
[0095] The hash value calculation unit 202 is configured to receive the return data returned by the data receiver, and the return data is characterized by the hash value of the transmission limiting function.
[0096] In this step, the hash value calculation unit 202 receives the return data returned by the data receiver, and the data receiver returns the return data to the data sender. The return data can directly copy the received transmission limiting function, or calculate the hash value of the received transmission limiting function, and take the hash value as the return data.
[0097] The function verification unit 203 is configured to calculate the hash value of the transmission limiting function by the data sender, and complete the verification according to the calculated hash value and the received return data to determine whether the transmission is successful.
[0098] In this step, the function verification unit 203 calculates the hash value of the transmission limiting function by the data sender. The current transmission limiting function is directly generated in the data sender. After the calculation is completed, the two sets of hash values are compared. If they are the same, it is determined that the transmission is successful, otherwise it is determined that the transmission is not successful. If the return data directly uses the received transmission limiting function, the two sets of transmission limiting functions can be directly compared.
[0099] As shown in Figure 7 As a preferred embodiment of the present application, the waveform data splitting module 300 includes:
[0100] The waveform splitting unit 301 is configured to perform waveform identification on the waveform data to be transmitted, identify the peak, starting point and ending point of each waveform, and divide the entire waveform into a plurality of independent waveform units, and each waveform unit contains only one peak or trough.
[0101] In this module, the waveform splitting unit 301 performs waveform identification on the waveform data to be transmitted, extracts the waveform signal diagram of this transmission, and identifies the peaks and troughs contained therein. Each peak and trough is regarded as a waveform unit. A waveform unit is composed of a plurality of waveform point coordinates. The number of waveform point coordinates is obtained according to the sampling frequency of the waveform. The abscissa of the waveform point coordinate is the coordinate of the point on the waveform diagram.
[0102] The decomposition ratio calculation unit 302 is configured to perform numbering processing on the waveform unit, input the number into the transmission limiting function to obtain a calculation value, and determine the decomposition ratio according to the calculation value.
[0103] In the module, the decomposition ratio calculation unit 302 performs numbering processing on the waveform unit, takes the number as the input of the transmission limiting function, and outputs the corresponding calculation value through the transmission limiting function. For example, starting from the first waveform unit, the numbering is performed in the order of consecutive natural numbers, so as to determine the number of each waveform. The horizontal coordinate span value of a single waveform unit can also be counted, and the horizontal coordinate span value is taken as the input. For example, the starting coordinate of the A waveform unit is (T1, F1), and the ending coordinate is (T2, F2). The horizontal coordinate span value is T2-T1, which is input into the transmission limiting function to obtain the calculation value. The numerical value of the calculation value is taken as the decomposition ratio. For example, the calculation value is P, and the decomposition ratio is P:1-P.
[0104] The waveform sampling unit 303 is configured to sample the waveform unit according to the decomposition ratio, and each waveform unit is decomposed into two independent wave data.
[0105] In the module, the waveform sampling unit 303 samples the waveform unit according to the decomposition ratio. The total number N of waveform point coordinates contained in the waveform unit is counted. The number of waveform point coordinates contained in the two groups of independent wave data is P*N and N(1-P) respectively. The waveform point coordinates contained in the entire waveform unit are divided into two groups, which are respectively included in the two independent wave data. In this process, the waveform point coordinates contained in the two groups of independent wave data are evenly distributed on the waveform of the waveform unit. For example, when the decomposition ratio is 0.4:0.6, the simplified decomposition ratio is 2:3, and the two groups of independent wave data are defined as the first wave data and the second wave data. Each time, two waveform point coordinates are randomly selected and included in the first wave data. Then, three waveform point coordinates are randomly selected and included in the second wave data. Then, two waveform point coordinates are randomly selected and included in the first wave data. The waveform point coordinates can only be selected once. The above process is repeated in the order of 2, 3, 2, 3, 2, 3……, and the waveform point coordinates are respectively added to the first wave data and the second wave data. The number of waveform point coordinates added to the first wave data at a time is 2, and the number of waveform point coordinates added to the second wave data at a time is 3. Thus, all the waveform point coordinates are divided into two parts and included in the two groups of independent wave data.
[0106] As shown in Figure 8 , as a preferred embodiment of the present application, the transmission verification module 400 includes:
[0107] The data receiving unit 401 is configured to construct two independent transmission channels, set the time stamp of the independent wave data, transmit the independent wave data through the two channels, and receive the independent wave data through the data receiving unit.
[0108] In the module, the data receiving unit 401 constructs two independent transmission channels, the two transmission channels are independent of each other and do not affect each other, so as to transmit two groups of independent wave data through the two transmission channels, and determine the batch of the independent wave data according to the time stamp of the independent wave data, and the data receiving party stores the two groups of independent wave data of the same batch together.
[0109] The data interpolation unit 402 is configured to receive the first waveform data and the second waveform data through the data receiving party, interpolate the first waveform data and the second waveform data based on time values, and output first interpolation data and second interpolation data.
[0110] In the module, the data interpolation unit 402 receives independent wave data through the data receiving party, the independent wave data of the same batch from the two channels are the first waveform data and the second waveform data, counts the total number of coordinates M contained in the first waveform data and the second waveform data, interpolates the first waveform data and the second waveform data based on the target M, so that the number of coordinates contained in the first waveform data and the second waveform data reaches the total number of coordinates M, and obtains the first interpolation data and the second interpolation data. For example, the first waveform data contains coordinates: (1, 1.23), (3, 3.07), (4, 3.92), (5, 4.78), (7, 3.84), (9, 1.98); the second waveform data contains coordinates: (2, 2.22), (6, 4.67), (8, 2.85), (10, 1.12); after interpolation, the first interpolation data is (1, 1.23), (2, 2.15), (3, 3.07), (4, 3.92), (5, 4.78), (6, 4.56), (7, 3.84), (8, 2.91), (9, 1.98), (10, 1.05), and the second interpolation data is (1, 1.18), (2, 2.22), (3, 3.11), (4, 4.03), (5, 4.89), (6, 4.67), (7, 3.79), (8, 2.85), (9, 2.02), (10, 1.12).
[0111] The data verification unit 403 is configured to calculate the Pearson correlation coefficient of the first interpolation data and the second interpolation data, take the Pearson correlation coefficient as the similarity of the two, and determine that the data transmission is stable when the similarity is higher than a preset value, and output a data verification result.
[0112] In this module, the data verification unit 403 calculates the Pearson correlation coefficient between the first interpolated data and the second interpolated data. For example, if the first interpolated data is (1, 1.23), (2, 2.15), (3, 3.07), (4, 3.92), (5, 4.78), (6, 4.56), (7, 3.84), (8, 2.91), (9, 1.98), (10, 1.05), and the second interpolated data is (1, 1.18), (2, 2.22), (3, 3.11), (4, 4.03), (5, 4.89), (6, 4.67), (7, 3.79), (8, 2.85), (9, 2.02), (10, 1.12), according to the calculation formula:
[0113] ;
[0114] in, For the first interpolated data, the first The ordinate of each coordinate. For the second interpolated data, the first The ordinate of each coordinate. This is the average of all ordinates in the first interpolated data. The correlation coefficient is calculated by taking the average of all ordinates in the second interpolation data. A correlation coefficient of 0.9989 indicates stable data transmission and guarantees the validity of the experimental results on the virtual platform. If the correlation coefficient is lower than a preset value, such as below 0.8, the transmission is considered unstable, and the validity of the experimental results is difficult to guarantee. Specifically, the data receiver merges the two sets of first and second waveform data to obtain the current waveform unit, containing the following waveform point coordinates: (1, 1.23), (3, 3.07), (4, 3.92), (5, 4.78), (7, 3.84), (9, 1.98), (2, 2.22), (6, 4.67), (8, 2.85), (10, 1.12). Based on the transmission constraint function, the data receiver can determine the theoretically required ratio of waveform point coordinates between the first and second waveform data, thereby determining whether packet loss exists and assisting in assessing network stability. In case of network anomalies, timely alerts are provided.
[0115] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for data validation for a virtual electronic test instrument platform, characterized by, The method comprises: acquiring waveform data to be transmitted, randomly generating a set of transmission limiting functions according to a preset independent variable range and dependent variable range before each transmission; sending the transmission limiting functions to a data receiver and receiving a return data, checking the transmission limiting functions, and storing the transmission limiting functions in the data receiver and the data sender; decomposing a waveform in the waveform data to be transmitted into a plurality of wave units, determining a decomposition ratio based on the transmission limiting functions, and decomposing one wave unit into two independent wave data; transmitting the two independent wave data through two transmission channels, calculating the similarity of the two sets of independent wave data at the data receiver, determining the data transmission stability, and outputting a data verification result; The step of decomposing a waveform in the waveform data to be transmitted into a plurality of wave units, determining a decomposition ratio based on the transmission limiting functions, and decomposing one wave unit into two independent wave data comprises: performing waveform identification on the waveform data to be transmitted, identifying the wave peak, starting point and ending point of each waveform, dividing the entire waveform into a plurality of independent wave units, and each wave unit containing only one wave peak or trough; numbering the wave units, inputting the numbers into the transmission limiting functions to obtain calculation values, and determining the decomposition ratio according to the calculation values; sampling the wave units according to the decomposition ratio, and decomposing each wave unit into two independent wave data.
2. The data validation method for a virtual electronic test instrument platform of claim 1, wherein, The step of sending the transmission limiting functions to the data receiver, receiving the return data, checking the transmission limiting functions, and storing the transmission limiting functions in the data receiver and the data sender comprises: retrieve the transmission limiting functions, send the transmission limiting functions to the data receiver through the data sender, the data receiver receives the transmission limiting functions, and generates a return data; receiving the return data returned from the data receiver, the return data is represented by the hash value of the transmission limiting function; calculating the hash value of the transmission limiting function through the data sender, and completing the check according to the calculated hash value and the received return data to determine whether the transmission is successful.
3. The data validation method for a virtual electronic test instrument platform of claim 1, wherein, The step of transmitting the two independent wave data through two transmission channels, calculating the similarity of the two sets of independent wave data at the data receiver, determining the data transmission stability, and outputting a data verification result comprises: constructing two independent transmission channels and setting the timestamp of the independent wave data, transmitting the independent wave data through two channels, and receiving the independent wave data through the data receiver; receiving the first waveform data and the second waveform data through the data receiver, performing interpolation processing on the first waveform data and the second waveform data based on the time value, and outputting the first interpolation data and the second interpolation data; calculating the Pearson correlation coefficient of the first interpolation data and the second interpolation data, taking the Pearson correlation coefficient as the similarity of the two, and determining the data transmission stability when the similarity is higher than a preset value, and outputting a data verification result.
4. The data validation method for a virtual electronic test instrument platform of claim 3, wherein, The data receiver synthesizes the first interpolation data and the second difference data to obtain the original waveform data to be transmitted.
5. A data validation system for a virtual electronic test instrument platform, characterized by, The system comprises: The function generation module is configured to obtain waveform data to be transmitted, and randomly generate a set of transmission limiting functions according to a preset independent variable range and a dependent variable range before each transmission. The function transmission and verification module is configured to send the transmission limiting functions to a data receiving party, receive return data, verify the transmission limiting functions, and store the transmission limiting functions in the data receiving party and the data sending party. The waveform data splitting module is configured to split a waveform in the waveform data to be transmitted into a plurality of wave units, determine a splitting ratio based on the transmission limiting functions, and split one wave unit into two independent wave data. The transmission verification module is configured to transmit the two independent wave data through two transmission channels, calculate the similarity of the two sets of independent wave data at the data receiving party, determine the data transmission stability, and output a data verification result. The waveform data splitting module includes: The waveform splitting unit is configured to perform waveform identification on the waveform data to be transmitted, identify the wave peak, starting point and ending point of each waveform, divide the entire waveform into a plurality of independent wave units, and each wave unit contains only one wave peak or trough. The splitting ratio calculation unit is configured to number the wave units, input the number into the transmission limiting function to obtain a calculation value, and determine the splitting ratio based on the calculation value. The waveform sampling unit is configured to sample the wave units according to the splitting ratio, and each wave unit is split into two independent wave data.
6. The data verification system for a virtual electronic test instrument platform of claim 5, wherein, The function transmission and verification module includes: The function return unit is configured to call the transmission limiting function, send the transmission limiting function to the data receiving party through the data sending party, receive the transmission limiting function at the data receiving party, and generate a return data. The hash value calculation unit is configured to receive the return data returned from the data receiving party, and the return data is represented by the hash value of the transmission limiting function. The function verification unit is configured to calculate the hash value of the transmission limiting function through the data sending party, complete the verification based on the calculated hash value and the received return data, and determine whether the transmission is successful.
7. The data verification system for a virtual electronic test instrument platform of claim 5, wherein, The transmission verification module includes: The data receiving unit is configured to construct two independent transmission channels, set the time stamp of the independent wave data, transmit the independent wave data through the two channels, and receive the independent wave data at the data receiving party. The data interpolation unit is configured to receive the first wave data and the second wave data at the data receiving party, perform interpolation processing on the first wave data and the second wave data based on the time value, and output the first interpolation data and the second interpolation data. The data verification unit is configured to calculate the Pearson correlation coefficient of the first interpolation data and the second interpolation data, use the Pearson correlation coefficient as the similarity of the two data, determine the data transmission stability when the similarity is higher than a preset value, and output a data verification result.
8. The data verification system for a virtual electronic test instrument platform of claim 7, wherein, The data receiving party synthesizes the original waveform data to be transmitted based on the first interpolation data and the second difference data.
Citation Information
Patent Citations
Auxiliary data cross-network convergence method and system based on block chain technology
CN111797161A
Microphone testing method and device, and storage medium
CN113709650A
Data transmission link verification method, device and gait closed-loop stimulation output method
CN119743413A