CN113835689A - Decoding algorithm verification method and device, electronic equipment and storage medium - Google Patents

Decoding algorithm verification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113835689A
CN113835689A CN202111075179.3A CN202111075179A CN113835689A CN 113835689 A CN113835689 A CN 113835689A CN 202111075179 A CN202111075179 A CN 202111075179A CN 113835689 A CN113835689 A CN 113835689A
Authority
CN
China
Prior art keywords
decoding algorithm
input data
decoding
data
algorithm module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111075179.3A
Other languages
Chinese (zh)
Inventor
吴法利
罗勇
徐田昌
唐武
何政
吴充禄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Changlong Railway Electronic Engineering Co ltd
Original Assignee
Shenzhen Changlong Railway Electronic Engineering Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Changlong Railway Electronic Engineering Co ltd filed Critical Shenzhen Changlong Railway Electronic Engineering Co ltd
Priority to CN202111075179.3A priority Critical patent/CN113835689A/en
Publication of CN113835689A publication Critical patent/CN113835689A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD

Abstract

The invention relates to a decoding algorithm verification method, a device, electronic equipment and a storage medium, which relate to the technical field of decoding and comprise the following steps: acquiring an input data file, wherein the input data file comprises input data; acquiring an input data segment from the input data, wherein the input data segment comprises sampling points, and the number of the sampling points of the input data segment is greater than a preset number threshold; inputting the input data segment into a decoding algorithm module to be detected, wherein the decoding algorithm module to be detected comprises a decoding algorithm; collecting decoding data of the decoding algorithm module to be detected, wherein the decoding data is obtained after the decoding algorithm module to be detected decodes the input data; and comparing the decoding data with the input data to obtain a performance test result of the decoding algorithm in the decoding algorithm module to be tested. By the aid of MATLAB programming, C language programming and cross compiling, decoding algorithms in the to-be-detected decoding module are quickly and automatically verified, and research and development efficiency is improved.

Description

Decoding algorithm verification method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of decoding technologies, and in particular, to a decoding algorithm verification method, apparatus, electronic device, and storage medium.
Background
In the research and development and fault analysis process of the actual locomotive signal vehicle-mounted equipment, because the input test target is real-time sampling waveform data of a track signal, aiming at the performance verification of a decoding algorithm module to be tested, the traditional method is that the test target data generates a real-time analog signal by using an audio player, the real-time analog signal is used as the input of the whole locomotive signal vehicle-mounted equipment, and then the sampling module in the system converts the input analog signal into data and outputs the data to the decoding algorithm module to be tested. Meanwhile, research and development personnel need to monitor the working state of decoding algorithm simulation by connecting a simulator or other data communication modes. Because the test target passes through the digital-analog conversion process and the analog-digital conversion process, the test repeatability cannot be ensured, the test target is limited to the requirement of real-time operation of a hardware system, the whole test process cannot be accelerated, the test target is limited by the limitations of data communication capacity and platform capacity, and the like, and the operation monitoring process has poor flexibility and insufficient efficiency.
Disclosure of Invention
The invention provides a decoding algorithm verification method, a decoding algorithm verification device, electronic equipment and a storage medium, and aims to solve the problems that in the prior art, the test repeatability cannot be guaranteed, the requirement of real-time operation of a hardware system is limited, the whole test process cannot be accelerated, the limitation of data communication capacity and platform capacity is caused, the flexibility of the operation monitoring process is poor, and the efficiency is insufficient.
In order to solve the problems, the invention adopts the following technical scheme: the method comprises the following steps:
in a first aspect, the present invention provides a decoding algorithm verification method, including:
acquiring an input data file, wherein the input data file comprises input data;
acquiring an input data segment from the input data, wherein the input data segment comprises sampling points, and the number of the sampling points of the input data segment is greater than a preset number threshold;
inputting the input data segment into a decoding algorithm module to be detected, wherein the decoding algorithm module to be detected comprises a decoding algorithm;
collecting decoding data of the decoding algorithm module to be detected, wherein the decoding data is obtained after the decoding algorithm module to be detected decodes the input data;
and comparing the decoding data with the input data to obtain a performance test result of the decoding algorithm in the decoding algorithm module to be tested.
The further technical scheme is that the acquiring of the input data file comprises:
receiving input data, wherein the input data comprises waveform data, uplink and downlink data, carrier frequency data, low-frequency data and lamp position data;
and importing the input data into a file with a preset format to obtain the input data file.
The further technical scheme is that the acquiring of the input data segment from the input data comprises:
and sampling the input data within a preset fixed time by using a DecodeFunc function to obtain an input data fragment.
The further technical scheme is that the comparing the decoding data with the input data to obtain the performance test result of the decoding algorithm in the decoding algorithm module to be tested comprises:
and comparing the decoding data with the input data by using a Mex _ Decode _ disp _ Resault function to obtain a performance test result of the decoding algorithm in the decoding algorithm module to be tested.
The further technical scheme is that the input data segment is input into a decoding algorithm module to be detected, including;
and inputting waveform data, carrier frequency data, low-frequency data and lamp position data of the input data into a decoding algorithm module to be detected by using a Decode _ InputData function, and inputting uplink and downlink data of the input data into the decoding algorithm module to be detected by using a Decode _ HwParaset function.
The further technical scheme is that before the input data file is acquired, the method further comprises the following steps:
acquiring a check value of the decoding algorithm module to be detected;
judging whether the check value of the decoding algorithm module to be detected is the same as the historical check value;
and if the check value of the decoding algorithm module to be tested is different from the historical check value, recompiling the decoding algorithm in the decoding algorithm module to be tested.
The technical scheme is that the collecting the decoding data of the decoding algorithm module to be detected comprises the following steps:
setting a probe in the decoding algorithm module to be detected by using a mexFunction function;
acquiring decoding data of the decoding algorithm module to be detected by using the probe to obtain an output probe;
and acquiring the output probe, wherein the output probe contains the decoding data of the decoding algorithm module to be detected.
In a second aspect, the present invention also provides a decoding algorithm verification apparatus comprising means for performing the method according to the first aspect.
In a third aspect, the present invention further provides an electronic device, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the method of the first aspect when executing the program stored in the memory.
In a fourth aspect, the invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the following advantages:
according to the embodiment of the invention, the performance test result of the decoding algorithm in the decoding algorithm module to be tested is directly obtained by directly obtaining the input data and comparing the decoding data with the input data, so that the decoding algorithm in the decoding module to be tested is quickly and automatically verified, and the research and development efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a decoding algorithm verification method according to embodiment 1 of the present invention;
fig. 2 is a schematic flow chart illustrating a process of collecting decoding data of the decoding algorithm module to be tested in the decoding algorithm verification method according to embodiment 1 of the present invention;
fig. 3 is a schematic flowchart of a decoding algorithm verification method according to embodiment 2 of the present invention;
fig. 4 is a block diagram of a decoding algorithm verifying apparatus according to embodiment 3 of the present invention;
fig. 5 is a block diagram of a decoding algorithm verifying apparatus according to embodiment 4 of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to embodiment 5 of the present invention.
Detailed Description
In order to more fully understand the technical content of the present invention, the technical solution of the present invention will be further described and illustrated with reference to the following specific embodiments, but not limited thereto.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Example 1
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flowchart of a decoding algorithm verification method according to embodiment 1 of the present invention. The method can be applied to electronic equipment, wherein the electronic equipment comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus, and the method is not particularly limited. Specifically, as shown in FIG. 1, the method includes the following steps S101-S105.
S101, an input data file is obtained, and the input data file comprises input data.
In the research and development and fault analysis process of the actual locomotive signal vehicle-mounted equipment, the input data are waveform data and information (carrier frequency data, low frequency data and lamp position data) corresponding to the waveform data, and the information (the carrier frequency data, the low frequency data and the lamp position data) corresponding to the waveform data are all time curves.
In one embodiment, the obtaining the input data file comprises:
receiving input data, wherein the input data comprises waveform data, uplink and downlink data, carrier frequency data, low-frequency data and lamp position data;
and importing the input data into a file with a preset format to obtain the input data file.
And the file with the preset format, which is used for importing the input data into the file with the preset format, is specifically a JSON file.
S102, acquiring an input data segment from the input data, wherein the input data segment comprises sampling points, and the number of the sampling points of the input data segment is greater than a preset number threshold.
The input data is input in one time in a pointer mode, the actual data input process is simulated through traversal, the preset number threshold of the sampling points is 512 sampling points, only when the number of the sampling points is larger than 512, the input data segment and the other input data segment contain respective information, and when the number of the sampling points is smaller than 512, the information in the input data segment is consistent with that of the other input data segment.
In one embodiment, the obtaining the input data segment from the input data includes:
and sampling the input data within a preset fixed time by using a DecodeFunc function to obtain an input data fragment.
The DecodeFunc function is a periodic calling function programmed by a user in C language, and the time starting point takes track circuit waveform data as a base line. The preset fixed time refers to 64ms, the input data is sampled at each 64ms time period through a CMain function calling periodic calling function DecodeFunc function, so that the input data is averagely segmented and then subjected to subsequent decoding operation, and the CMain function is formed by programming a user by using C language.
S103, inputting the input data segment into a decoding algorithm module to be detected, wherein the decoding algorithm module to be detected comprises a decoding algorithm.
The decoding algorithm is specifically a C language code, the to-be-detected decoding algorithm module comprises a decoding algorithm (C language code), and the to-be-detected decoding algorithm module is a mex file.
In an embodiment, the inputting the input data segment into a decoding algorithm module to be tested includes;
and inputting waveform data, carrier frequency data, low-frequency data and lamp position data of the input data into a decoding algorithm module to be detected by using a Decode _ InputData function, and inputting uplink and downlink data of the input data into the decoding algorithm module to be detected by using a Decode _ HwParaset function.
The Decode _ InputData function is a waveform data input function formed by programming a user by using C language, and the waveform data, carrier frequency data, low frequency data and lamp position data of the input data are input into a decoding algorithm module to be detected by calling the Decode _ InputData function through a CMain function; the Decode _ HwParaSet is an uplink and downlink data input function, and the CMain function calls the Decode _ HwParaSet function to input uplink and downlink data of the input data into the decoding algorithm module to be detected.
S104, collecting decoding data of the decoding algorithm module to be detected, wherein the decoding data is obtained by decoding the input data by the decoding algorithm module to be detected.
The acquisition of the decoding data of the decoding algorithm module to be detected is performed by a probe, the probe is a variable and is used for storing debugging information within one decoding period (64ms), so that the probe can acquire the decoding data obtained after the input data is decoded by the decoding algorithm module to be detected, and the debugging information includes the decoding data.
As shown in fig. 2, in an embodiment, the collecting the decoding data of the decoding algorithm module to be tested includes:
s1041, setting a probe in the decoding algorithm module to be detected by using a mexFunction function.
The mexFunction function is programmed by a user through C language and is an interface specified by MATLAB, parameters in the mexFunction function are used for transmitting input and output of a decoding module to be detected, and the MATLAB can identify and use the decoding module to be detected through the mexFunction function.
S1042, acquiring the decoding data of the decoding algorithm module to be detected by using the probe to obtain an output probe;
the probe is a variable and can acquire the detailed running state of the decoding module to be tested, and is used for storing debugging information in a decoding period (64ms), so that the probe can acquire the decoding data of the decoding algorithm module to be tested, and the debugging information contains the decoding data.
And S1043, acquiring the output probe, wherein the output probe contains the decoding data of the decoding algorithm module to be detected.
And when the decoding module to be detected completes one decoding period (64ms), acquiring the output probe, wherein the output probe is a probe which completes the operation of acquiring the decoding data of the decoding algorithm module to be detected within the decoding period (64 ms).
And S105, comparing the decoding data with the input data to obtain a performance test result of the decoding algorithm in the decoding algorithm module to be tested.
The comparing the decoded data with the input data, specifically, comparing the lamp position data in the decoded data with the lamp position data in the input data, comparing the low frequency data in the decoded data with the low frequency data in the input data, and comparing the carrier frequency data in the decoded data with the carrier frequency data in the input data.
In an embodiment, the comparing the decoding data with the input data to obtain a performance test result of a decoding algorithm in the decoding algorithm module to be tested includes:
and comparing the decoding data with the input data by using a Mex _ Decode _ disp _ Resault function to obtain a performance test result of the decoding algorithm in the decoding algorithm module to be tested.
Comparing the decoded data with the input data by writing an MATLAB function Mex _ Decode _ disp _ Resault, wherein the MATLAB function Mex _ Decode _ disp _ Resault is a decoded data display function. Specifically, the MATLAB function Mex _ Decode _ disp _ Resault compares the time when the light position in the decoded data changes with the time when the light position of the input data changes, and checks whether the strain time (namely decoding delay) of the decoding algorithm in the decoding algorithm module to be tested conforms to the performance parameter; comparing the lamp position type in the decoded data with the lamp position type of the input data through an MATLAB function Mex _ Decode _ disp _ Resault to judge whether the lamp position type in the decoded data is consistent with the lamp position type of the input data or not, and checking whether a decoding algorithm in a decoding algorithm module to be detected accords with a performance parameter or not, wherein the lamp position is a traffic signal lamp; comparing carrier frequency data in the input data with carrier frequency data in the decoded data through an MATLAB function Mex _ Decode _ disp _ Resault, judging whether the carrier frequency data in the input data and the carrier frequency data in the decoded data are consistent, and checking whether a decoding algorithm in a decoding algorithm module to be detected accords with performance parameters; and comparing the low-frequency data in the input data with the low-frequency data in the decoded data through an MATLAB function Mex _ Decode _ disp _ Resault, judging whether the low-frequency data in the input data and the low-frequency data in the decoded data are consistent, and checking whether a decoding algorithm in a decoding algorithm module to be detected accords with the performance parameters.
Specifically, the performance test result of the decoding algorithm in the decoding algorithm module to be tested is directly obtained by directly obtaining input data and comparing the decoding data with the input data, so that the decoding algorithm in the decoding module to be tested is quickly and automatically verified, and the research and development efficiency is improved; MATLAB programming, C language programming and cross compiling are utilized, the working state of decoding algorithm simulation in a decoding algorithm module to be tested is not required to be monitored through a connection simulator or other data communication modes, and meanwhile, input data is not required to be subjected to digital-analog and analog-digital conversion processes, so that the input data can be tested repeatedly; the decoding algorithm in the to-be-detected decoding module is quickly and automatically verified without being limited by data communication capacity, platform capacity and the like, so that the flexibility of the operation monitoring process is enhanced, and the research and development efficiency is improved.
Example 2
Referring to fig. 3, fig. 3 is a schematic flowchart of a decoding algorithm verification method according to embodiment 2 of the present invention. The decoding algorithm verification method of embodiment 2 includes steps S201 to S209, wherein steps S201 to S205 are similar to steps S101 to S105 in embodiment 1, and are not described herein again. The added steps S206 to S209 in the present embodiment are explained in detail below.
S206, obtaining the check value of the decoding algorithm module to be detected.
And respectively calculating MD5 check values of all module files (including decoding modules to be detected) by using a check function Simulink.getFileChecksum according to a determined sequence, combining all check values into a long character string, and calculating an MD5 check value of the character string by using the check function Simulink.getFileChecksum.
And S207, judging whether the check value of the decoding algorithm module to be detected is the same as the historical check value.
Any file of any type has only one MD5 check value, and if the file is modified or tampered with, its MD5 check value will also change.
And S208, if the check value of the decoding algorithm module to be tested is different from the historical check value, recompiling the decoding algorithm in the decoding algorithm module to be tested.
S209, initializing the decoding algorithm module to be detected by using a Decodelnit function.
The DecodeInit function is an initialization function formed by programming a user by using C language and is used for initializing the decoding algorithm module to be tested.
When the check value of the decoding algorithm module to be tested is different from the historical check value, the decoding algorithm in the decoding algorithm module to be tested is judged to be updated, and then codes in all modules (including the decoding module to be tested) are recompiled to be a new MEX file.
Specifically, the MD5 check values of all module files (including the decoding module under test) are compared by the check function, so as to determine whether the decoding algorithm in the decoding algorithm module under test is updated, and whether the decoding algorithm needs to be recompiled.
Example 3
Referring to fig. 4, an embodiment of the present invention further provides a decoding algorithm verifying apparatus 300, where the decoding algorithm verifying apparatus 300 includes a first obtaining unit 301, a second obtaining unit 302, a first input unit 303, a first acquiring unit 304, and a first comparing unit 305.
A first obtaining unit 301, configured to obtain an input data file, where the input data file includes input data.
A second obtaining unit 302, configured to obtain an input data segment from the input data, where the input data segment includes sampling points, and the number of the sampling points of the input data segment is greater than a preset number threshold.
A first input unit 303, configured to input the input data segment into a to-be-detected decoding algorithm module, where the to-be-detected decoding algorithm module includes a decoding algorithm.
The first collecting unit 304 is configured to collect decoding data of the decoding algorithm module to be detected, where the decoding data is obtained by decoding the input data by the decoding algorithm module to be detected.
The first comparing unit 305 compares the decoded data with the input data to obtain a performance test result of the decoding algorithm in the decoding algorithm module to be tested.
In one embodiment, the obtaining the input data file comprises:
receiving input data, wherein the input data comprises waveform data, uplink and downlink data, carrier frequency data, low-frequency data and lamp position data;
and importing the input data into a file with a preset format to obtain the input data file.
In one embodiment, the obtaining the input data segment from the input data includes:
and sampling the input data within a preset fixed time by using a DecodeFunc function to obtain an input data fragment.
In an embodiment, the inputting the input data segment into a decoding algorithm module to be tested includes;
and inputting waveform data, carrier frequency data, low-frequency data and lamp position data of the input data into a decoding algorithm module to be detected by using a Decode _ InputData function, and inputting uplink and downlink data of the input data into the decoding algorithm module to be detected by using a Decode _ HwParaset function.
In an embodiment, the comparing the decoding data with the input data to obtain a performance test result of a decoding algorithm in the decoding algorithm module to be tested includes:
and comparing the decoding data with the input data by using a Mex _ Decode _ disp _ Resault function to obtain a performance test result of the decoding algorithm in the decoding algorithm module to be tested.
In an embodiment, the collecting the decoding data of the decoding algorithm module to be tested includes:
setting a probe in a decoding algorithm module to be detected by using a mexFunction function;
acquiring decoding data of the decoding algorithm module to be detected by using the probe to obtain an output probe;
and acquiring the output probe, wherein the output probe contains the decoding data of the decoding algorithm module to be detected.
In the embodiment of the invention, the probe is set through the C language programming to flexibly acquire the decoding data of the decoding algorithm module to be detected, so that the monitoring of the decoding module to be detected is more flexible, and the efficiency is improved; the performance test result of the decoding algorithm in the decoding algorithm module to be tested is displayed in an imaging mode through MATLAB programming, the simulation working state of the decoding algorithm is monitored without connecting a simulator or other data communication modes, and the efficiency is improved.
Example 4
Referring to fig. 5, an embodiment of the present invention further provides a decoding algorithm verification apparatus 300, where the decoding algorithm verification apparatus 300 is different from the decoding algorithm verification apparatus 300 proposed in embodiment 3, and further includes: a third acquiring unit 306, a first judging unit 307, a first compiling unit 308, and a first initializing unit 309.
A third obtaining unit 306, configured to obtain a check value of the decoding algorithm module to be tested.
The first judging unit 307 is configured to judge whether the check value of the decoding algorithm module to be tested is the same as the historical check value.
The first compiling unit 308 is configured to recompile the decoding algorithm in the decoding algorithm module to be tested if the check value of the decoding algorithm module to be tested is different from the historical check value.
The first initialization unit 309 is configured to initialize the decoding algorithm module to be tested by using a decode init function.
In the embodiment of the invention, the MD5 check values of all module files (including the decoding module to be tested) are compared through the check function, so that whether the decoding algorithm in the decoding algorithm module to be tested is updated or not is determined, and whether the decoding algorithm needs to be recompiled or not is determined.
Example 5
Referring to fig. 6, an embodiment of the present invention further provides an electronic device, which includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114.
A memory 113 for storing a computer program;
the processor 111 is configured to execute the program stored in the memory 113 to implement the decoding algorithm verification method provided in embodiment 1.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by the processor 111, implements the steps of the decoding algorithm verification method provided in embodiment 1.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A decoding algorithm validation method, comprising:
acquiring an input data file, wherein the input data file comprises input data;
acquiring an input data segment from the input data, wherein the input data segment comprises sampling points, and the number of the sampling points of the input data segment is greater than a preset number threshold;
inputting the input data segment into a decoding algorithm module to be detected, wherein the decoding algorithm module to be detected comprises a decoding algorithm;
collecting decoding data of the decoding algorithm module to be detected, wherein the decoding data is obtained after the decoding algorithm module to be detected decodes the input data;
and comparing the decoding data with the input data to obtain a performance test result of the decoding algorithm in the decoding algorithm module to be tested.
2. The decoding algorithm validation method of claim 1, wherein the obtaining the input data file comprises:
receiving input data, wherein the input data comprises waveform data, uplink and downlink data, carrier frequency data, low-frequency data and lamp position data;
and importing the input data into a file with a preset format to obtain the input data file.
3. The decoding algorithm validation method of claim 1, wherein the obtaining of the input data segment from the input data comprises:
and sampling the input data within a preset fixed time by using a DecodeFunc function to obtain an input data fragment.
4. The decoding algorithm verification method according to claim 1, wherein the comparing the decoded data with the input data to obtain a performance test result of the decoding algorithm in the decoding algorithm module to be tested comprises:
and comparing the decoding data with the input data by using a Mex _ Decode _ disp _ Resault function to obtain a performance test result of the decoding algorithm in the decoding algorithm module to be tested.
5. The decoding algorithm verification method according to claim 2, wherein the inputting the input data segment into a decoding algorithm module under test comprises;
and inputting waveform data, carrier frequency data, low-frequency data and lamp position data of the input data into a decoding algorithm module to be detected by using a Decode _ InputData function, and inputting uplink and downlink data of the input data into the decoding algorithm module to be detected by using a Decode _ HwParaset function.
6. The decoding algorithm validation method of claim 1, wherein prior to obtaining the input data file, the method further comprises:
acquiring a check value of the decoding algorithm module to be detected;
judging whether the check value of the decoding algorithm module to be detected is the same as the historical check value;
and if the check value of the decoding algorithm module to be tested is different from the historical check value, recompiling the decoding algorithm in the decoding algorithm module to be tested.
7. The decoding algorithm verification method according to claim 1, wherein the collecting the decoding data of the decoding algorithm module to be tested comprises:
setting a probe in the decoding algorithm module to be detected by using a mexFunction function;
acquiring decoding data of the decoding algorithm module to be detected by using the probe to obtain an output probe;
and acquiring the output probe, wherein the output probe contains the decoding data of the decoding algorithm module to be detected.
8. A decoding algorithm verification device comprising means for performing the method of any one of claims 1-7.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the method of any one of claims 1 to 7 when executing a program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202111075179.3A 2021-09-14 2021-09-14 Decoding algorithm verification method and device, electronic equipment and storage medium Pending CN113835689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111075179.3A CN113835689A (en) 2021-09-14 2021-09-14 Decoding algorithm verification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111075179.3A CN113835689A (en) 2021-09-14 2021-09-14 Decoding algorithm verification method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113835689A true CN113835689A (en) 2021-12-24

Family

ID=78959270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111075179.3A Pending CN113835689A (en) 2021-09-14 2021-09-14 Decoding algorithm verification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113835689A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130290806A1 (en) * 2012-04-30 2013-10-31 Lsi Corporation Systems and Methods for Data Decoder State Preservation During Extended Delay Processing
CN103747407A (en) * 2013-12-27 2014-04-23 深圳英飞拓科技股份有限公司 Audio module automatic test method based on FFT frequency sweep
CN106934313A (en) * 2017-03-23 2017-07-07 张家港市欧微自动化研发有限公司 A kind of Quick Response Code decoding algorithm contrast verification system
CN110473558A (en) * 2019-07-31 2019-11-19 深圳市长龙铁路电子工程有限公司 A kind of real-time multi-functional codec of 450M locomotive station unit
CN111402908A (en) * 2020-03-30 2020-07-10 Oppo广东移动通信有限公司 Voice processing method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130290806A1 (en) * 2012-04-30 2013-10-31 Lsi Corporation Systems and Methods for Data Decoder State Preservation During Extended Delay Processing
CN103747407A (en) * 2013-12-27 2014-04-23 深圳英飞拓科技股份有限公司 Audio module automatic test method based on FFT frequency sweep
CN106934313A (en) * 2017-03-23 2017-07-07 张家港市欧微自动化研发有限公司 A kind of Quick Response Code decoding algorithm contrast verification system
CN110473558A (en) * 2019-07-31 2019-11-19 深圳市长龙铁路电子工程有限公司 A kind of real-time multi-functional codec of 450M locomotive station unit
CN111402908A (en) * 2020-03-30 2020-07-10 Oppo广东移动通信有限公司 Voice processing method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106850372B (en) Method and system for testing controller CAN signal
US11036507B2 (en) Processor testing using pairs of counter incrementing and branch instructions
CN110580226B (en) Object code coverage rate testing method, system and medium for operating system level program
CN110543420B (en) Software testing method, system, terminal and storage medium
CN105677574A (en) Android application vulnerability detection method and system based on function control flow
CN108228465A (en) A kind of Software function test method and device
CN111427771A (en) Code coverage rate analysis method, equipment, server and readable storage medium
CN108241560B (en) Memory test method and device and electronic equipment
CN114167132B (en) Power consumption detection method and device of wireless terminal, electronic equipment and storage medium
CN109543409B (en) Method, device and equipment for detecting malicious application and training detection model
CN113835689A (en) Decoding algorithm verification method and device, electronic equipment and storage medium
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN114879985B (en) Method, device, equipment and storage medium for installing certificate file
CN110532193A (en) A kind of method for analyzing performance, calculates equipment and storage medium at device
CN112527650B (en) Test case multiplexing method and multiplexing device
CN115269418A (en) Coverage rate acquisition method, device, equipment and storage medium
CN113010177B (en) Software-defined instrument, information acquisition method, computer, and storage medium
CN115827410A (en) Test method and device of performance evaluation tool, test equipment and storage medium
CN114416596A (en) Application testing method and device, computer equipment and storage medium
CN113806231A (en) Code coverage rate analysis method, device, equipment and medium
CN112527571B (en) CPU instruction set coverage rate calculation method and device
CN114077545A (en) Method, device and equipment for acquiring verification data and readable storage medium
CN110851344A (en) Big data testing method and device based on computational formula complexity and electronic equipment
CN110110523A (en) A method of it promoting rule code and scans accuracy rate
CN113268432B (en) Electric energy meter driver testing method and system based on evolutionary algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination