Data screening method and apparatus
By providing a data screening method and device in base station board testing, the target signal data extracted by ILA is automatically screened, which solves the problem of low screening efficiency caused by a large number of data files and achieves fast and efficient signal data acquisition.
Patent Information
- Application Number
- CN202110179891.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-07
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2041-02-07
AI Technical Summary
In base station board testing, the integrated logic analyzer (ILA) is used to extract a large amount of signal data, resulting in a large number of generated data files. Manual screening of the required signal data takes a long time and has low screening efficiency.
Provided are a data screening method and device, which automatically screen target signal data by receiving a setting input display parameter setting interface, obtaining preset screening parameters input by the user, and screening based on the position in the data file extracted by ILA.
The screening efficiency of target signal data is improved, the time cost of manual screening is reduced, and the screening rate is increased.
Smart Images

Figure CN114912385B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a data screening method and device. Background Art
[0002] With the development of Field Programmable Gate Arrays (FPGAs), how to perform tests on FPGA-based base station board designs, such as FPGA board-level debugging and unit module problem location, has become a hot topic.
[0003] Currently, when testing base station boards, the integrated logic analyzer (ILA) in the simulator is used to monitor, track, and extract signal data from each node in the base station board. This generates multiple data files, each containing multiple signal data points. Testers manually filter the required signal data from the multiple signal data points in these files and analyze the required signal data to determine the test results.
[0004] Usually, a large amount of signal data is extracted using ILA, and thus a large number of data files are generated. Therefore, manually screening the required signal data in the data files is time-consuming and has low screening efficiency. Summary of the Invention
[0005] The embodiments of the present invention provide a data screening method and apparatus, which can, to a certain extent, enable users who use ILA to extract data files to improve the efficiency of screening required target signal data.
[0006] An embodiment of the present invention provides a data screening method, applied to an electronic device, comprising:
[0007] receiving a setting input for a data filtering flag;
[0008] In response to the setting input, displaying a parameter setting interface;
[0009] Acquiring a preset screening parameter input by a user in the parameter setting interface, wherein the preset screening parameter is used to specify a position of target signal data in at least one data file extracted based on an integrated logic analyzer (ILA);
[0010] Based on the preset screening parameters, the signal data included in each of the data files is screened to obtain the target signal data.
[0011] An embodiment of the present invention provides a data screening device, applied to an electronic device, comprising:
[0012] A receiving module, configured to receive a setting input for a data screening identifier;
[0013] A display module, configured to display a parameter setting interface in response to the setting input;
[0014] an acquisition module, configured to acquire preset screening parameters input by a user in the parameter setting interface, wherein the preset screening parameters are used to specify a position of target signal data in at least one data file extracted based on an integrated logic analyzer ILA;
[0015] The screening module is used to screen the signal data included in each of the data files based on the preset screening parameters to obtain the target signal data.
[0016] An embodiment of the present invention provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, one or more data screening methods provided in the embodiment of the present invention are implemented.
[0017] An embodiment of the present invention provides a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute one or more data screening methods provided by the embodiment of the present invention.
[0018] The embodiments of the present invention include the following advantages:
[0019] The data screening method provided by the embodiment of the present invention receives a setting input for a data screening identifier. In response to the setting input, a parameter setting interface is displayed. This allows the preset screening parameters input by the user in the parameter setting interface to be obtained, so that the signal data included in each data file extracted based on the ILA can be screened based on the preset screening parameters, thereby obtaining target signal data. In this technical solution, the electronic device can automatically screen the target signal data according to the preset screening parameters input by the user. Compared with the screening method of the target signal data required for manual screening, the time required for screening is reduced, the screening rate is increased, and the screening efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A schematic diagram of a UMTS radio frame slice is shown;
[0022] Figure 2 A schematic diagram showing the principle of ILA to extract signal data;
[0023] Figure 3 shows a partial simulation waveform of an FPGA module output signal;
[0024] Figure 4 A flow chart of a data screening method provided by an embodiment of the present invention is shown;
[0025] Figure 5 A partial data schematic diagram of a data file provided by an embodiment of the present invention is shown;
[0026] Figure 6 A schematic diagram of a parameter setting interface provided by an embodiment of the present invention is shown;
[0027] Figure 7 A flow chart showing another data screening method provided by an embodiment of the present invention is shown;
[0028] Figure 8 A schematic diagram of another parameter setting interface provided by an embodiment of the present invention is shown;
[0029] Figure 9 A schematic diagram of another parameter setting interface provided by an embodiment of the present invention is shown;
[0030] Figure 10 A schematic structural diagram of a data screening device provided by an embodiment of the present invention is shown;
[0031] Figure 11 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0032] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0033] In the current test of the base station board card, the ILA in the simulator can be used to monitor and track the signal data of each node in the base station board card to generate a plurality of data files, and each data file includes a plurality of signal data. The tester manually filters the required signal data from the plurality of signal data included in the plurality of data files, and determines the test result by analyzing the required signal data. For example, the clock frequency of a node (i.e., a module) is 491.52 megahertz (MHz), and if the ILA needs to extract 1ms of data, 480 data files need to be ensured for the ILA with a depth of 1024 to store the 1ms of data.
[0034] Therefore, when the signal data extracted by the ILA is large, the number of generated data files is large, which leads to a long time-consuming and low screening efficiency of manually screening the required signal data in the data file.
[0035] In order to facilitate the understanding of the subsequent scheme, the embodiments of the present application explain the related matters of the signal data extracted by the ILA.
[0036] The data screening method provided by the embodiments of the present application is based on the automatic triggering of the extraction amount by the corresponding script of the ILA to screen the data file including a plurality of signal data extracted by the ILA. For example, the double data rate synchronous dynamic random access memory (DDR SDRAM, abbreviated as DDR) externally connected to the active antenna unit (AAU) and the indoor baseband processing unit (BBU) is generally used to store service data, so the service data of each node can be extracted by the ILA to save the data file, and adding the ILA in the FPGA project will not occupy too much FPGA resource. Specifically, the ILA can be used to extract the signal of each node of the uplink and downlink FPGA after the AAU is driven.
[0037] Taking the extraction of 1ms of node data in a universal mobile telecommunications system (UMTS) radio frame by the ILA as an example, the principle of extracting the signal data of each node by the ILA is explained.
[0038] Suppose the depth of the ILA is 1024, the clock frequency is 491.52MHz, and a 10ms cycle counter is added in the ILA. A UMTS radio frame is divided into a plurality of slices according to the depth of the ILA, and the counter value in the ILA corresponding to each switch can be an integer multiple of the depth. Figure 1 The counter value in ILA corresponding to a slice is shown. Figure 1 As shown, the counter value corresponding to a UMTS radio frame slice is 0-4915199. A slice may include multiple segments, and the number of counter values corresponding to each segment is 1024.
[0039] like Figure 2 As shown in the figure, suppose you need to extract 1ms of waveform data within a specific time period. A UMTS radio frame slice contains 10ms of waveform data. For a UMTS radio frame, the ILA triggers a data extraction at a specified interval to obtain waveform data for 1024 clock cycles after the trigger, until a total of 1ms of waveform data is extracted. The continuous waveform data extracted by the ILA at different times can then be spliced together according to the data extraction order (i.e., the data acquisition sequence) to form the waveform data for the specific time period that the tester needs to observe, thereby obtaining the simulation results.
[0040] In the embodiment of the present invention, the meaning of valid signal data is exemplified by taking the simulated waveform of a cell output signal of a 3D multiple-in multiple-out (MIMO) single-fiber (one type of fiber) uplink cell_process_up module (an FPGA module) as an example.
[0041] Some signals of the uplink cell_process_up module include: a first signal (o_cel0_aur_vld), a second signal (o_cel0_aur_sof), a third signal (o_cel0_aur_eof), a fourth signal (o_cel0_aur_addr), a fifth signal (o_cel0_aur_data0), a sixth signal (o_cel0_aur_info0), a seventh signal (o_cel0_aur_data1), and an eighth signal (o_cel0_aur_info1). Figure 3 The simulation waveforms of the first to eighth signals are shown. The first, second, and third signals are output signals. The first signal is the valid signal of the module. At a certain moment, when the signal data (i.e., the value) of the valid signal is 1, it indicates that the signal data of the signal of the module is valid at that moment; when the signal data of the valid signal is 0, it indicates that the signal data of the signal of the module is invalid at that moment.
[0042] Method Example
[0043] Please refer to Figure 4, which shows a flow chart of a data screening method provided by an embodiment of the present invention. The data screening method can solve the above technical problems and is applied to electronic devices. Optionally, the electronic device can be a device with a display device. For example, a personal computer, etc. Figure 4 As shown, data screening methods may include:
[0044] Step 401: Receive setting input for data screening identifier.
[0045] The data screening identifier may be an identifier for initiating a computer product that implements the data screening method provided in an embodiment of the present invention. Optionally, the data screening identifier may be an icon, a button, a tab, or a text command. The computer product that implements the data screening method provided in an embodiment of the present invention may be developed using Matrix Laboratory (MATLAB). MATLAB is a commercial mathematical software. Of course, development may also be performed using JAVA (a computer language).
[0046] Optionally, the setting input for the data filter identifier may include input in the form of click, long press, or sliding, etc. For example, the user may click the data filter identifier displayed by the electronic device so that the electronic device can receive the click input for the data filter identifier.
[0047] Step 402: In response to the setting input, a parameter setting interface is displayed.
[0048] In response to the setting input, the electronic device may display a parameter setting interface on a display device. The parameter setting interface, also known as a graphical user interface (GUI), may be used by a user to input preset screening parameters. The preset screening parameters are used to specify the location of target signal data in at least one data file extracted based on ILA.
[0049] Optionally, specific reference content that may be included in the preset screening parameters may be determined based on the data format of the data file extracted by the ILA.
[0050] For example, each data file may include: a specified number of signal data corresponding to at least one data column identifier, and valid signal data corresponding to each signal data. The data validity signal is used to indicate whether the corresponding signal data is valid. The data column identifiers corresponding to the signal data included in each data file are identical. The preset screening parameters may include target data column identifiers, and the number of target data column identifiers may be one or more.
[0051] In another example, each data file is a table file. The table file may include at least one column of signal data corresponding to at least one data column identifier. The at least one data column identifier includes a valid data column identifier. Within the column of valid signal data corresponding to the valid data column identifier, the valid signal data in the target row indicates whether the signal data in the target row in the table file is valid. Furthermore, the data column identifiers corresponding to the signal data in each data file are identical.
[0052] For example Figure 5 , which shows a partial schematic diagram of a table file provided by an embodiment of the present invention. Figure 5 As shown, the signal data of the table file can be recorded in hexadecimal. A column of signal data in the table file is the data output by the same signal at different times, and a row of signal data is the data output by different signals at the same time. In a column of signal data for valid signal output, each row of valid signal data indicates whether the signal data in that row is valid. The first column of signal data is the signal data output by the ninth signal (sample ir1). The fourth column of signal data is the signal data output by the valid signal (o_cel0_aur_vld). Among them, in the fourth column of signal data, if the first row of valid signal data is 1, then all signal data in the first row are valid. That is, the first row of signal data in the signal data of all signal outputs is valid. Similarly, if it is assumed that in a column of signal data for valid signal output, the twentieth row of valid signal data is 0, then all signal data in the twentieth row are invalid.
[0053] Based on another example data file, the preset screening parameters may include: valid data column identifiers and target data column identifiers. The number of target data column identifiers may be one or more. Optionally, the target data column identifier has a valid state or an invalid state. When the target data column identifier is in the valid state, it indicates that the target data column identifier is valid; when the target data column identifier is in the invalid state, it indicates that the target data column identifier is invalid.
[0054] Optionally, the data valid column identifier can be the column number of the column where the valid signal data is located. Similarly, the target data column identifier is also the column number of the column where the target signal data is located. Among them, when the value of the target data column identifier is 0, it can be indicated that the target data column identifier is in an invalid state. When the value of the target data column identifier is non-0, it can be indicated that the target data column identifier is in a valid state. For example, Figure 5 In the data file shown, the valid data column is identified as 4. For example, Figure 5 In the data file shown, assuming that the target signal data is the signal data of the ninth signal output, the target data column identifier corresponding to the target signal data is 1.
[0055] In an embodiment of the present invention, the preset screening parameters may also include one or more of: the depth of the ILA, the storage path of at least one data file, and the file name of the first data file in the at least one data file. The depth of the ILA indicates the number of signal data corresponding to each signal in the data file. For example, in a table file, the depth of the ILA indicates the total number of rows in the table file. Multiple data files extracted based on a single ILA have the same storage path.
[0056] For examples, please refer to Figure 6 , which shows a schematic diagram of a parameter setting interface provided by an embodiment of the present invention. Figure 6 As shown, the parameter setting interface includes 28 input fields. The 28 input fields include: a file path input field, an ILA depth input field, a data valid column input field, a data column 1 input field to a data column 24 input field, and a first table name input field. The file path input field can be used to enter the data file storage path. The ILA depth input field can be used to enter the ILA depth. The data valid column input field can be used to enter the data valid column. The data column 1 input field to the data column 24 input field can be used to enter the target data column identifier. The first table name input field can be used to enter the file name of the first data file in at least one data file.
[0057] and, Figure 6 The parameter setting interface shown may also include an execution button and an indicator light. Upon receiving input to the execution button, the electronic device may, in response to the input, execute a subsequent process of obtaining preset filtering parameters and, based on the preset filtering parameters, filtering the signal data included in each data file to obtain target signal data. The indicator light may have different lighting states to indicate different steps in the electronic device's execution of the data filtering method.
[0058] It should be noted that Figure 6 The number of target input fields set in the parameter setting interface shown for the user to enter target data column identifiers does not limit the number of target input fields that can be set for this function in the parameter setting interface. Furthermore, if the number of target data column identifiers required by the user is less than the number of target input fields set in the parameter setting interface, the user can enter the target data column identifier into any target input field and write 0 to the remaining target input fields. In this embodiment of the present invention, the default value of the target input field can be set to 0. In this way, when writing the target data column identifier, only the data in the required target input field needs to be modified, without modifying the data in the remaining target input fields, thus reducing the number of operation steps.
[0059] Step 403: Obtain the preset screening parameters input by the user in the parameter setting interface.
[0060] The electronic device can obtain the preset screening parameters input by the user in the parameter setting interface.
[0061] Step 404: Based on preset screening parameters, filter the signal data included in each data file to obtain target signal data.
[0062] Optionally, for each data format of the at least one data file extracted based on the ILA, the electronic device may filter the signal data included in each data file based on the obtained preset filtering parameters to obtain the target signal data required by the user. This embodiment of the present invention uses the implementation method of the electronic device obtaining the target signal data when the data files are the two data files in step 402 as an example to illustrate the implementation process of filtering the signal data included in each data file based on the preset filtering parameters to obtain the target signal data.
[0063] The first case: the data file is the data file of the first example in step 402 above. That is, each data file includes: a specified number of signal data corresponding to at least one data column identifier, and valid signal data corresponding to each signal data. The preset screening parameters include: target data column identifier
[0064] The electronic device filters the signal data included in each data file based on preset filtering parameters, and the process of obtaining target signal data includes the following steps A1.
[0065] In step A1, at least one data file is traversed, and signal data corresponding to a data valid signal indicating that the signal data is valid among signal data corresponding to a target data column identifier included in each data file is determined as target signal data.
[0066] For example, assume that the number of data files is 1, and the data file includes five signal data corresponding to the first data column identifier O1: 100, 200, 0, 400, and 500. The valid signal data corresponding to these five signal data are 1, 1, 1, 0, and 1, respectively. Furthermore, assume that the target data column identifier included in the preset screening parameters is O1.
[0067] The electronic device obtains all signal data corresponding to O1 from the data file: 100, 200, 0, 400, and 500. The electronic device compares the valid signal data corresponding to each signal data with 1 and determines the signal data with a valid signal data value of 1 as the target signal data. That is, the target signal data are 100, 200, 0, and 500.
[0068] The second scenario: The data file is another example data file in step 402 above. That is, each data file (table file) includes at least one column of signal data corresponding to at least one data column identifier, wherein the at least one data column identifier includes a valid data column identifier, and within the column of valid signal data corresponding to the valid data column identifier, the valid signal data located in the target row indicates whether the signal data located in the target row in the table file is valid. The preset screening parameters include the valid data column identifier and the target data column identifier. This embodiment of the present invention is described using the example of each data file including multiple columns of signal data and multiple rows of signal data.
[0069] The electronic device filters the signal data included in each data file based on preset filtering parameters, and the process of obtaining target signal data includes the following steps B1.
[0070] In step B1, at least one data file is traversed, and a first screening process is performed on each data file.
[0071] The at least one data file includes one data file or multiple data files. The embodiment of the present invention is described by taking the case where the number of data files is multiple as an example.
[0072] Optionally, at least one data file may include multiple data files arranged in the order of signal data acquisition. The file names of the non-first data files in the multiple data files are associated with the file name of the first data file. Optionally, the file names of the non-first data files may be determined based on the file name of the first data file. For example, the file names of the data files are all numbers. In the non-first data file, the file name Mx of any data file satisfies the following: Mx = M0 + (k-1) × A. Here, M0 is the file name of the first data file, k is the sequence number of the data file in the multiple data files, and A is a constant. For example, assuming there are 5 data files, the file name of the first data file is 100, and A = 1. The file name of the second data file is 100 + 1 × 1 = 101; the file name of the third data file is 100 + 2 × 1 = 102; the file name of the fourth data file is 100 + 3 × 1 = 103; and the file name of the fifth data file is 100 + 4 × 1 = 104.
[0073] In the case where the preset screening parameters include: the storage paths of the multiple data files, and the file name of the first data file among the multiple data files.
[0074] The electronic device traverses at least one data file, and a process of performing a first screening process on each data file may include steps B11 to B13.
[0075] In step B11, the target data file with the target file name is obtained in the storage space corresponding to the storage path, and the target file name is determined based on the file name of the first data file.
[0076] The electronic device can sequentially obtain the plurality of data files in the order of signal data collection, i.e., the target file names are sequentially the file name of the first data file, the file name of the second data file, and the file name of the last data file, wherein the order of the data files is the order of signal data collection.
[0077] Optionally, the process of obtaining the target data file with the target file name by the electronic device can include steps B111 to B115.
[0078] In step B111, the text function scans the data in the target data file with the target file name.
[0079] In step B112, the signal data in the first column of the scanned target data file is obtained.
[0080] In step B113, it is determined whether the signal data in the column is the signal data in the last column of the target data file. If not, step B114 is performed; if yes, step B115 is performed.
[0081] Optionally, the electronic device can compare whether the data column identifier of the signal data in the column is equal to the data column identifier of the signal data in the last column. If the data column identifier of the signal data in the column is equal to the data column identifier of the signal data in the last column, it indicates that the signal data in the column is the signal data in the last column of the target data file. If the data column identifier of the signal data in the column is not equal to the data column identifier of the signal data in the last column, it indicates that the signal data in the column is not the signal data in the last column of the target data file.
[0082] In step B114, the signal data in the next column of the signal data in the column of the scanned target data file is obtained, and step B113 is returned.
[0083] If the signal data in the column is the signal data in the last column of the target data file, the signal data in the next column of the signal data in the column of the scanned target data file is obtained.
[0084] For example, if the signal data in the column is the signal data in the pth column, the signal data in the next column of the signal data in the column of the scanned target data file is the signal data in the (p+1)th column. Wherein, p is a positive integer.
[0085] In step B115, the complete target data file is saved.
[0086] In step B12, a first screening process is performed on the target data file.
[0087] The electronic device can perform the first screening process on each target data file obtained to obtain target signal data in each target data file, and then obtain all target signal data after completing the first screening process on all data files.
[0088] In step B13, it is determined whether the number of data files that have completed the first screening process is equal to the number of data files included in the storage space. If not, the target file name is updated so that the updated target file name is different from the target file name before the update. The process of obtaining a target data file with a name equal to the target file name and updating the target file name is repeated until the number of data files that have completed the first screening process is equal to the number of data files included in the storage space.
[0089] The process of step B13 may include: determining whether the number of data files that have completed the first screening process is equal to the number of data files included in the storage space. If not, step B131, step B11, step B12 to step B13 are executed in sequence. If so, the process ends.
[0090] In step B131, the electronic device may update the target file name so that the updated target file name is different from the target file name before the update.
[0091] Optionally, the process of the electronic device updating the target file name may include: the electronic device updating the target file name based on the file name of the first data file.
[0092] Among them, after obtaining any non-last data file and completing subsequent steps B12 and B13 on the data file, the electronic device can determine the file name of the next data file arranged in the signal data acquisition order based on the first data file, and update the file name to the target file name, so that the target data file with the target file name is obtained when step B1 is repeatedly executed.
[0093] For example, assume that the multiple data files include data file 1, data file 2, data file 3, and data file 4 arranged in the order of signal data acquisition. The electronic device can first obtain the file name N1 of the first data file (i.e., data file 1) in the preset screening parameters entered by the user in the parameter setting interface. After completing subsequent steps B12 and B13 for data file 1, the file name N2 of data file 2 can be determined based on file name N1. File name N2 is updated to the target file name. The target data file (i.e., data file 2) with file name N2 is obtained.
[0094] Optionally, the signal data in each data file is based on the data extracted at each interval set duration of the ILA. The electronic device can then update the target file name based on the file name of the first data file and the set duration. For example, a 10ms loop counter can be added to the ILA. As mentioned above, the set duration can be associated with 10ms. For example, the set duration can be an integer multiple of 10, etc. Then, assuming that the file name of the first data file can be 3495936, the file name of the second data file arranged in the order of signal data acquisition can be 3495946, and 3495946 is updated as the target file name.
[0095] In the embodiment of the present invention, the first screening process includes the following steps C1.
[0096] In step C1 , at least one line of signal data included in the data file is traversed, and a second screening process is performed on each line of signal data.
[0097] Each data file may include at least one line of signal data. The embodiment of the present invention is described by taking an example where a data file includes multiple lines of signal data.
[0098] Optionally, when the preset screening parameter includes the depth of the ILA, the electronic device traverses at least one line of signal data included in the data file, and a process of performing the second screening process on each line of signal data may include steps C11 to C12.
[0099] In step C11 , a row data set is obtained from the data file, and a second screening process is performed on the row data set, where the row data set includes the nth row of signal data, where n is a positive integer.
[0100] The electronic device can sequentially obtain the row data set including the nth row of signal data from the data file (table file) according to the row order in the data file. That is, the electronic device can sequentially obtain the row data set including the first row of signal data, the row data set including the second row of signal data, and so on to the row data set including the last row of signal data.
[0101] In step C12, determine whether the number of row data sets that have completed the second filtering process is equal to the depth of the ILA. If not, update the row data set so that the updated row data set includes the n+1th row of signal data in the data file, and repeat the process of obtaining the row data set from the data file to updating the row data set until the number of row data sets that have completed the second filtering process is equal to the depth of the ILA.
[0102] The process of step C12 may include: determining whether the number of row data sets that have completed the second screening process is equal to the depth of the ILA. If not, executing step C121, step C11 to step C12 in sequence. If not, executing step B13.
[0103] In step C121 , the row data set is updated so that the updated row data set includes the (n+1)th row of signal data in the data file.
[0104] For example, if the row data set executed in step C11 and step C121 includes the signal data of the first row in a data file, the row data set is updated so that the updated row data set includes the signal data of the second row in the data file.
[0105] In an embodiment of the present invention, where the target data column identifier can be in either a valid or invalid state, the electronic device, before executing step C1, needs to first determine whether the preset screening parameters include a target data column identifier in a valid state. When the preset screening parameters include a target data column identifier in a valid state, step C1 is executed to traverse at least one row of signal data included in the data file and perform a second screening process on each row of signal data. When the preset screening parameters do not include a target data column identifier in a valid state, that is, when all target data column identifiers are in an invalid state, the data screening method ends.
[0106] In the embodiment of the present invention, the second screening process includes the following steps D1 and D2.
[0107] In step D1, first signal data corresponding to a target data column identifier in a row of signal data is obtained.
[0108] The number of target data column identifiers included in the preset screening parameters can be one or more. It is easy to understand that when the number of target data column identifiers can be multiple, the number of first signal data corresponding to the target data column identifiers in the acquired signal data of the row is also multiple.
[0109] Optionally, the electronic device may sequentially obtain the first signal data corresponding to each target data column identifier in the plurality of target data column identifiers according to the column order in the data file (table file).
[0110] For example, assuming that the data column identifier is a column number of a table file, and assuming that the target data column identifiers include 4, 8, and 13, the electronic device obtains signal data corresponding to the 4th column, the 8th column, and the 13th column in a row of signal data.
[0111] In step D2, it is determined whether the valid signal data corresponding to the valid data column identifier in a row of signal data indicates that the corresponding signal data is valid. If so, the first signal data is determined as the target signal data. If not, step C12 is executed.
[0112] Optionally, when the valid signal data is 1, it indicates that the signal data in the row containing the valid signal data is valid; when the valid signal data is 0, it indicates that the signal data in the row containing the valid signal data is invalid. The electronic device can then determine whether the valid signal data corresponding to the data valid column identifier included in a row of signal data is 1. If so, indicating that the signal data in the row is valid, the first signal data in the signal data in the row is determined as the target signal data. If not, indicating that the signal data in the row is invalid, it is determined whether the number of row data sets that have completed the second screening process is equal to the depth of the ILA.
[0113] In an embodiment of the present invention, in the case where the target data column identifier can have a valid state or an invalid state, corresponding to the above, the process of obtaining the first signal data corresponding to the target data column identifier in a row of signal data includes: obtaining the first signal data corresponding to the target data column identifier in a valid state in a row of signal data. Optionally, the process of obtaining the first signal data corresponding to the target data column identifier in a valid state included in a row of signal data may include: filtering out the target data column identifier in a valid state from the preset filtering parameters, and obtaining the first signal data corresponding to the target data column identifier in a valid state in the signal data of the row. For example, in the case where the data column identifier is the column number of a table file. The process of obtaining the first signal data corresponding to the target data column identifier in a valid state included in a row of signal data may include: filtering out the target data column identifier with a value other than 0 from the preset filtering parameters, and obtaining the first signal data corresponding to the target data column identifier with a value other than 0 in the signal data of the row.
[0114] Optionally, after step 404 , the method further includes: when the target signal data corresponds to different data column identifiers, the electronic device may save the target signal data to different target files based on the data column identifiers.
[0115] In an embodiment of the present invention, when target signal data corresponds to multiple different data column identifiers, the process of an electronic device saving the target signal data to different target files based on the data column identifiers may include: the electronic device dividing the target signal data corresponding to the same data column identifier in the target signal data into a data group, and saving the signal data of different data groups into different target files. Outputting the different target files. Since the signal data corresponding to a data column identifier is the data output by the same signal, saving the target signal data corresponding to the same data column identifier into a target file facilitates test personnel to view the signal data output for a certain signal.
[0116] In the embodiment of the present invention, the parameter setting interface is Figure 6 In the case of the parameter setting interface shown, the electronic device can obtain up to 24 target data column identifiers input by the user. Based on the preset screening parameters, after filtering the signal data included in each data file, the target signal data corresponding to the 24 target data column identifiers can be obtained at most, that is, 24 target signal data outputs. Moreover, since the electronic device can obtain the depth of ILA of any value input by the user, that is, it supports the setting of the depth of ILA, it can support various versions of Xilinx Vivado (a software). And since the user can directly input the preset screening parameters for determining the target signal data through the parameter setting interface, the data screening method provided by the embodiment of the present invention is convenient, fast, and simple to operate.
[0117] To facilitate a further understanding of the implementation of step 404 in the second scenario, the present embodiment further describes the process in which the electronic device filters the signal data included in each data file based on preset filtering parameters to obtain target signal data in the second scenario. This example assumes that at least one data file includes multiple data files arranged in the order of signal acquisition. Furthermore, it is assumed that the data column identifiers are column numbers in a table file.
[0118] like Figure 7 As shown, based on the preset screening parameters, the signal data included in each data file is screened, and the process of obtaining target signal data may include:
[0119] Step 701: Execute a text function to scan data in a first data file among a plurality of data files included in a storage space.
[0120] The explanation and implementation of step 701 may refer to the explanation and implementation of step B111 above, which will not be elaborated in detail in this embodiment of the present invention.
[0121] Step 702: Obtain signal data of the first column in the scanned data file.
[0122] The explanation and implementation method of step 702 can refer to the explanation and implementation method of the above step B112, and will not be described in detail in this embodiment of the present invention.
[0123] Step 703: Determine whether the signal data in the column is the signal data in the last column in the data file. If not, execute step 704; if so, execute step 705.
[0124] The explanation and implementation method of step 703 can refer to the explanation and implementation method of the above step B113, and will not be described in detail in this embodiment of the present invention.
[0125] Step 704: Acquire the next column of signal data located in the column of signal data in the scanned data file. Return to step 703.
[0126] The explanation and implementation method of step 704 can refer to the explanation and implementation method of the above step B114, and will not be described in detail in this embodiment of the present invention.
[0127] Step 705: Save the complete data file.
[0128] Step 706: Check whether the values of the target data column identifiers input by the user in the parameter setting interface are all 0. If so, the data screening process ends. If not, execute step 707.
[0129] Step 707: Obtain the signal data of the first row in the saved data file.
[0130] Step 708: Obtain the first signal data corresponding to the target data column identifier whose value is non-zero and included in the row of signal data.
[0131] The explanation and implementation of step 708 may refer to the explanation and implementation of step D1 above, and will not be elaborated in detail in this embodiment of the present invention.
[0132] Step 709: Determine whether the row signal data is valid. If so, go to step 710; if not, go to step 711.
[0133] The explanation and implementation of step 709 may refer to the explanation and implementation of step D2 above, and will not be elaborated in detail in this embodiment of the present invention.
[0134] Step 710: Determine that all first signal data included in the row of signal data is target signal data, and save the target signal data. Execute step 711.
[0135] Step 711: Determine whether all rows of signal data in the data file have been traversed. If not, execute step 712; if so, execute step 713.
[0136] Optionally, the process of the electronic device determining whether to traverse all rows of signal data in the data file may include determining whether the number of row data sets including a row of signal data after executing steps 707 to 711 is equal to the depth of the ILA. The explanation and implementation of step 711 may refer to the explanation and implementation of step C12 above, and will not be further described in this embodiment of the present invention.
[0137] Step 712: Obtain the signal data in the next row in the data file and execute step 708.
[0138] Optionally, the signal data located in the next row in the data file may refer to signal data located in the next row of the signal data executed in steps 708 to 710 according to the row sequence of the data file (table file).
[0139] Step 713: Determine whether all data files in the plurality of data files have been traversed. If not, execute step 714. If yes, execute step 715.
[0140] Optionally, the process of the electronic device determining whether all data files among the multiple data files have been traversed may include determining whether the number of data files that have completed steps 702 to 713 is equal to the number of data files included in the storage space. The explanation and implementation of step 713 may refer to the explanation and implementation of step B13 above, and will not be further described in this embodiment of the present invention.
[0141] Step 714: Execute the text function to scan the data in the next data file among the multiple data files. Execute step 702.
[0142] Optionally, the next data file among the multiple data files refers to: a data file next to the data file executed in steps 702 to 712 among the multiple data files arranged in the order of signal acquisition.
[0143] Step 715: Save and output all target signal data.
[0144] It should be noted that the explanation and implementation of the above steps 701 to 715 can be referenced with the explanation and implementation of the relevant content involved in step B1 in the second case of the above step 404, and the embodiment of the present invention will not elaborate on this.
[0145] The embodiment of the present invention provides an exemplary description of extracting different target information data based on different ILAs in practical applications.
[0146] For example, if the base station does not receive message 3, the tester can use ILA to pile from the AAU to extract the required physical uplink control channel (PUCCH) data / supplemental channel (SCH) data of subframe 2 and subframe 7 of the three BBU DPLP uplink cells, as well as info information (a type of system information), a total of 24 signals, to check whether the downlink physical layer processor (DPLP) sends the data to the downlink physical layer processor (UPLP).
[0147] If the depth of ILA is 2048, 240 data files can be obtained and saved by using the uplink 1ms pucch data / sch data extracted by ILA. These data files are all table files. Figure 6 The table file shown represents a portion of a table file. For each of the 240 data files, the signal data in the fourth column is valid signal data, and the data in columns 8, 9, 10, 11, 12, 13, 14, 15, 26, 27, 28, 29, 30, 31, 32, 33, 38, 39, 40, 41, 42, 43, 44, and 45 is target signal data. These 240 data files are stored in E:\DTmobile\20200629matlabGUI\2020063002\20200623\. The first data file is named 3495936. For example, if the data column identifier is the column number, the valid data column identifier is 4. Target data column identifiers in a valid state include 8, 9, 10, 11, 12, 13, 14, 15, 26, 27, 28, 29, 30, 31, 32, 33, 38, 39, 40, 41, 42, 43, 44, and 45.
[0148] Please refer to Figure 8 , which shows a schematic diagram of a parameter setting interface provided by an embodiment of the present invention. Figure 8 As shown, the parameter setting interface includes 28 input fields, execution buttons and indicator lights, and the function of each input field is the same as Figure 6 The functions of the various input fields shown are the same. The user can Figure 8 In the parameter setting interface shown, the corresponding input fields are respectively written with the depth of ILA, the storage path of at least one data file, the data valid column identifier, the 24 target data column identifiers and the file name of the first data file in the at least one data file.
[0149] After the user enters the preset filtering parameters in each input field, they can click the execute button. The electronic device receives the click input on the execute button and, in response to the click input, retrieves the preset filtering parameters entered by the user on the parameter setting interface. Subsequently, multiple target signal data are determined based on the budget filtering reference. During the process of determining the multiple target signal data based on the budget filtering reference, the indicator light of the electronic device may illuminate yellow.
[0150] The electronic device may save the target signal data corresponding to the same data column identifier among the determined multiple target signal data to the same target file. The target file may include: col1.txt, col2.txt, col3.txt, col4.txt, col5.txt, col6.txt, col7.txt, col8.txt, col9.txt, col10.txt, col11.txt, col12.txt, col13.txt, col14.txt, col15.txt, col16.txt, col17.txt, col18.txt, col19.txt, col20.txt, col21.txt, col22.txt, col23.txt, and col24.txt. They can correspond to target data column identifiers 8, 9, 10, 11, 12, 13, 14, 15, 26, 27, 28, 29, 30, 31, 32, 33, 38, 39, 40, 41, 42, 43, 44 and 45 in valid states respectively.
[0151] Because the formats of data files extracted and saved based on different ILAs can vary, the target data column identifiers corresponding to the target signal data to be screened may also vary. For example, when the data file is a table file, the target signal data to be screened may be located in different columns, and the corresponding target data column identifiers, and thus the corresponding column numbers, may also vary.
[0152] Figure 6 and Figure 8 The 24 input fields for entering target data column identifiers in the parameter setting interface shown are designed based on three cells, with each cell filtering eight channels of target signal data (eight channels of target signal data refers to target signal data corresponding to eight different target data column identifiers), for a total of 24 channels of target signal data. However, in actual applications, the embodiments of the present invention may only require filtering one or two channels of signal data from a data file. Therefore, the following example uses two channels of target signal data that the user needs to filter as an example.
[0153] As another example, assume the ILA depth is 2048. All data files are tabular files. In each data file, the signal data in column 4 is valid signal data, and columns 8 and 9 are target signal data. These data files are stored at E:\DTmobile\20200629matlabGUI\2020070101\20200623\. The first data file is named 3495936. For example, if the data column identifier is a column number, the valid data column identifier is 4. Valid target data column identifiers include 8 and 9.
[0154] Please refer to Figure 9 , which shows a schematic diagram of a parameter setting interface provided by an embodiment of the present invention. Figure 9 As shown, the parameter setting interface includes 28 input fields, execution buttons and indicator lights, and the function of each input field is the same as Figure 6 The functions of the various input fields shown are the same. The user can Figure 9 In the parameter setting interface shown, the corresponding input fields are entered with the ILA depth, the storage path of at least one data file, the valid data column identifier, and the file name of the first data file in at least one data file. In addition, in any two of the 24 input fields for entering target data column identifiers, enter 8 and 9 to enter the valid target data column identifier. For example, the user can enter 8 in the Data Column 1 input field and 9 in the Data Column 2 input field.
[0155] After the user enters the preset filtering parameters in each input field, they can click the execute button. The electronic device receives the click input on the execute button and, in response to the click input, retrieves the preset filtering parameters entered by the user on the parameter setting interface. Subsequently, multiple target signal data are determined based on the budget filtering reference. During the process of determining the multiple target signal data based on the budget filtering reference, the indicator light of the electronic device may illuminate yellow.
[0156] The electronic device saves the target signal data corresponding to the same data column identifier among the determined multiple target signal data into the same target file. The target file may include: col1.txt and col2.txt, which may correspond to the target data column identifiers 8 and 9 in the valid state respectively.
[0157] In summary, the data screening method provided by the embodiment of the present invention receives a setting input for a data screening identifier. In response to the setting input, a parameter setting interface is displayed. This allows the preset screening parameters entered by the user in the parameter setting interface to be obtained, so that the signal data included in each data file extracted based on the ILA can be screened based on the preset screening parameters, thereby obtaining target signal data. In this technical solution, the electronic device can automatically screen the target signal data based on the preset screening parameters entered by the user. Compared with the screening method of manually screening the target signal data required, the screening time is shortened, the screening rate is increased, and the screening efficiency is improved.
[0158] Moreover, with this technical solution, for any data file generated by an ILA, the user only needs to enter the preset screening parameters in the parameter setting interface, and then can trigger the electronic device to automatically screen the signal data included in the data file with one click, thereby obtaining the target signal data required by the user. Compared to the method of extracting data files for different ILAs, the user continuously modifies the script file so that the electronic device can screen the data files extracted by different ILAs after running the script file. The user does not need to understand the meaning of each part of the script file, and can achieve accurate modification of the script file. It is only necessary to enter the preset screening parameters in the parameter setting interface according to the format of the data file to obtain the target signal data. This simplifies the screening operation, reduces the difficulty of the screening operation, and improves the versatility and efficiency of the screening method.
[0159] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0160] Device embodiment
[0161] Please refer to Figure 10 , which shows a schematic diagram of the structure of a data screening device provided by an embodiment of the present invention. The data screening device can be applied to electronic devices, and the device includes:
[0162] The receiving module 1001 is configured to receive a setting input for a data screening identifier.
[0163] Display module 1002, for displaying a parameter setting interface in response to a setting input.
[0164] The acquisition module 1003 is configured to acquire preset screening parameters input by the user in the parameter setting interface, where the preset screening parameters are used to specify the position of target signal data in at least one data file extracted based on ILA.
[0165] The screening module 1004 is configured to screen the signal data included in each data file based on preset screening parameters to obtain target signal data.
[0166] The data screening device provided by an embodiment of the present invention receives a setting input for a data screening identifier through a receiving module. The display module displays a parameter setting interface in response to the setting input. The acquisition module can obtain the preset screening parameters input by the user in the parameter setting interface. The screening module filters the signal data included in each data file extracted based on the ILA based on the preset screening parameters, thereby obtaining target signal data. In this technical solution, the electronic device can automatically filter the target signal data according to the preset screening parameters input by the user. Compared with the screening method of manually screening the target signal data required, the time required for screening is shortened, the screening rate is increased, and the screening efficiency is improved.
[0167] Optionally, each data file includes: a specified number of signal data corresponding to at least one data column identifier, and a data valid signal corresponding to each signal data, the data valid signal being used to indicate whether the corresponding signal data is valid. The preset screening parameters include: a target data column identifier. The screening module 1004 is further configured to:
[0168] At least one data file is traversed, and signal data corresponding to a data valid signal indicating that the signal data is valid among signal data corresponding to a target data column identifier included in each data file is determined as target signal data.
[0169] Optionally, each data file includes a table file, the table file including: at least one column of signal data corresponding to at least one data column identifier, the at least one data column identifier including a valid data column identifier, the valid signal data located in a target row of the column of valid signal data corresponding to the valid data column identifier indicating whether the signal data located in the target row in the table file is valid, the preset screening parameters including: the valid data column identifier and the target data column identifier, the screening module 1004 further configured to:
[0170] Traversing at least one data file, performing a first screening process on each data file, the first screening process comprising:
[0171] Traversing at least one line of signal data included in the data file, performing a second screening process on each line of signal data, the second screening process including:
[0172] Get the first signal data corresponding to the target data column identifier in a row of signal data,
[0173] It is determined whether the valid signal data corresponding to the data valid column identifier in a row of signal data indicates that the corresponding signal data is valid; if so, the first signal data is determined as the target signal data.
[0174] Optionally, the preset screening parameters include: the depth of ILA. The screening module 1004 is further configured to:
[0175] Obtaining a row data set from a data file, and performing a second screening process on the row data set, wherein the row data set includes an nth row of signal data, where n is a positive integer;
[0176] Determine whether the number of row data sets that have completed the second filtering process is equal to the depth of the ILA. If not, update the row data set so that the updated row data set includes the signal data of the (n+1)th row in the data file. Repeat the process from obtaining the row data set from the data file to updating the row data set until the number of row data sets that have completed the second filtering process is equal to the depth of the ILA.
[0177] Optionally, the at least one data file includes multiple data files arranged in a signal data acquisition order, the file names of the data files other than the first data file in the multiple data files are associated with the file name of the first data file, and the preset screening parameters further include: a storage path of the at least one data file and the file name of the first data file. The screening module 1004 is further configured to:
[0178] Obtaining a target data file with a target file name in the storage space corresponding to the storage path, where the target file name is determined based on the file name of the first data file;
[0179] Performing a first screening process on the target data file;
[0180] Determine whether the number of data files that have completed the first screening process is equal to the number of data files included in the storage space. If not, update the target file name so that the updated target file name is different from the target file name before the update, and repeat the process of obtaining the target data file whose file name is the target file name to updating the target file name until the number of data files that have completed the first screening process is equal to the number of data files included in the storage space.
[0181] Optionally, the target data column identifier is in a valid state or an invalid state, and the screening module 1004 is further configured to:
[0182] When the preset screening parameter includes a target data column identifier in a valid state, traversing at least one row of signal data included in the data file, and performing a second screening process on each row of signal data;
[0183] Acquiring first signal data corresponding to a target data column identifier in a row of signal data includes: acquiring first signal data corresponding to a target data column identifier in a valid state in a row of signal data.
[0184] Optionally, when the target data corresponds to different data column identifiers, the apparatus further includes: a saving module, configured to save the target signal data to different target files based on the data column identifiers.
[0185] In summary, the data screening device provided by the embodiment of the present invention receives the setting input for the data screening identifier through the receiving module. The display module displays the parameter setting interface in response to the setting input. The acquisition module can obtain the preset screening parameters input by the user in the parameter setting interface, and the screening module filters the signal data included in each data file extracted based on the ILA based on the preset screening parameters, thereby obtaining the target signal data. In this technical solution, the electronic device can automatically filter the target signal data according to the preset screening parameters input by the user. Compared with the screening method of manually screening the target signal data required, the time required for screening is reduced, the screening rate is increased, and the screening efficiency is improved.
[0186] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0187] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0188] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0189] An embodiment of the present invention further provides an electronic device. Figure 11 , including: a processor 1101, a memory 1102, and a computer program 11021 stored in the memory 1102 and executable on the processor 1101, wherein the processor 1101 implements the data screening method of the aforementioned embodiment when executing the program.
[0190] An embodiment of the present disclosure further provides a readable storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the data screening method of the aforementioned embodiment.
[0191] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems may also be used together with the teachings herein. Based on the above description, it is apparent that the structure required for constructing such systems is suitable. In addition, the embodiments of the present disclosure are not directed to any specific programming language. It should be understood that various programming languages may be utilized to implement the contents of the embodiments of the present disclosure described herein, and the above description of specific languages is intended to disclose the best mode of implementation of the embodiments of the present disclosure.
[0192] In the description provided herein, numerous specific details are described. However, it is understood that the embodiments of the present disclosure can be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.
[0193] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present disclosure, various features of the embodiments of the present disclosure are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed approach should not be interpreted as reflecting an intention that the claimed embodiments of the present disclosure require more features than are expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in less than all of the features of the individual embodiments disclosed above. Accordingly, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present disclosure.
[0194] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition may be divided into multiple submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed herein may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0195] The various component embodiments of the embodiments of the present disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the sorting device according to the embodiments of the present disclosure. The embodiments of the present disclosure may also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program implementing the embodiments of the present disclosure may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0196] It should be noted that the above embodiments illustrate rather than limit the embodiments of the present disclosure, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbols placed between brackets should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The embodiments of the present disclosure may be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0197] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0198] The above description is merely a preferred embodiment of the embodiments of the present disclosure and is not intended to limit the embodiments of the present disclosure. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the embodiments of the present disclosure shall be included in the protection scope of the embodiments of the present disclosure.
[0199] The above description is merely a specific implementation of the embodiments of the present disclosure, but the scope of protection of the embodiments of the present disclosure is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the embodiments of the present disclosure should be included in the scope of protection of the embodiments of the present disclosure. Therefore, the scope of protection of the embodiments of the present disclosure should be based on the scope of protection of the claims.
Claims
1. A data screening method, characterized in that: Applied to electronic equipment, the method includes: receiving a setting input for a data filtering flag; In response to the setting input, displaying a parameter setting interface; Acquiring preset screening parameters input by a user on the parameter setting interface, the preset screening parameters being used to specify a position of target signal data in at least one data file extracted based on an integrated logic analyzer (ILA); each of the data files comprising a table file, the table file comprising: at least one column of signal data corresponding to at least one data column identifier, the at least one data column identifier comprising a data valid column identifier, the valid signal data located in a target row of a column of valid signal data corresponding to the data valid column identifier indicating whether the signal data located in the target row in the table file is valid, the preset screening parameters comprising: the data valid column identifier and the target data column identifier; Based on the preset screening parameters, the signal data included in each of the data files is screened to obtain the target signal data, including: Traversing the at least one data file, and performing a first screening process on each of the data files, the first screening process comprising: Traversing at least one line of the signal data included in the data file, and performing a second screening process on each line of the signal data, the second screening process comprising: Obtaining first signal data corresponding to the target data column identifier in a row of the signal data, It is determined whether the valid signal data corresponding to the data valid column identifier in a row of the signal data indicates that the corresponding signal data is valid; if so, the first signal data is determined as the target signal data.
2. The method according to claim 1, characterized in that Each of the data files includes: a specified number of signal data corresponding to at least one data column identifier, and a data valid signal corresponding to each of the signal data, wherein the data valid signal is used to indicate whether the corresponding signal data is valid. The preset screening parameters include: a target data column identifier, The step of filtering the signal data included in each of the data files based on the preset filtering parameters to obtain the target signal data includes: The at least one data file is traversed, and signal data corresponding to the target data column identifier included in each data file and corresponding to a data valid signal indicating that the signal data is valid is determined as the target signal data.
3. The method according to claim 1, characterized in that The preset screening parameters include: the depth of the ILA, traversing at least one line of the signal data included in the data file, and performing a second screening process on each line of the signal data, including: Acquire a row data set from the data file, and perform the second screening process on the row data set, wherein the row data set includes the signal data in the nth row, where n is a positive integer; Determine whether the number of row data sets that have completed the second filtering process is equal to the depth of the ILA; if not, update the row data set so that the updated row data set includes the signal data in the n+1th row in the data file, and repeat the process of obtaining the row data set from the data file to updating the row data set until the number of row data sets that have completed the second filtering process is equal to the depth of the ILA.
4. The method according to claim 1, wherein The at least one data file includes multiple data files arranged in the order of signal data acquisition, the file names of the non-first data files in the multiple data files are associated with the file name of the first data file, and the preset screening parameters also include: the storage path of the at least one data file, and the file name of the first data file, The traversing the at least one data file and performing a first screening process on each of the data files includes: Obtaining, in the storage space corresponding to the storage path, a target data file whose file name is a target file name, wherein the target file name is determined based on the file name of the first data file; performing the first screening process on the target data file; Determine whether the number of data files that have completed the first screening process is equal to the number of data files included in the storage space; if not, update the target file name so that the updated target file name is different from the target file name before the update, and repeat the process of obtaining the target data file whose file name is the target file name to updating the target file name until the number of data files that have completed the first screening process is equal to the number of data files included in the storage space.
5. The method according to claim 1, wherein The target data column identifier has a valid state or an invalid state, and traversing at least one row of signal data included in the data file and performing a second screening process on each row of signal data includes: When the preset screening parameter includes a target data column identifier in a valid state, traversing at least one row of the signal data included in the data file, and performing a second screening process on each row of the signal data; The acquiring of the first signal data corresponding to the target data column identifier in a row of the signal data includes: acquiring the first signal data corresponding to the target data column identifier in a valid state in a row of the signal data.
6. The method according to any one of claims 2 to 5, characterized in that: In a case where the target signal data corresponds to different data column identifiers, the method further includes: Based on the data column identifier, the target signal data is saved to different target files.
7. A data screening device, characterized in that: Applied to electronic equipment, the device comprises: A receiving module, configured to receive a setting input for a data screening identifier; A display module, configured to display a parameter setting interface in response to the setting input; an acquisition module, configured to acquire preset screening parameters input by a user on the parameter setting interface, the preset screening parameters being used to specify a position of target signal data in at least one data file extracted based on an integrated logic analyzer (ILA); each of the data files comprising a table file, the table file comprising: at least one column of signal data corresponding to at least one data column identifier, the at least one data column identifier comprising a data valid column identifier, the valid signal data located in a target row of a column of valid signal data corresponding to the data valid column identifier indicating whether the signal data located in the target row in the table file is valid, the preset screening parameters comprising: the data valid column identifier and the target data column identifier; A screening module is used to screen the signal data included in each of the data files based on the preset screening parameters to obtain the target signal data; the screening module is also used to: traverse the at least one data file, and perform a first screening process on each of the data files, the first screening process including: traversing at least one row of the signal data included in the data file, and performing a second screening process on each row of the signal data, the second screening process including: obtaining the first signal data corresponding to the target data column identifier in a row of the signal data, judging whether the valid signal data corresponding to the data valid column identifier in a row of the signal data indicates that the corresponding signal data is valid, and if so, determining the first signal data as the target signal data.
8. The device according to claim 7, characterized in that Each of the data files includes: a specified number of signal data corresponding to at least one data column identifier, and a data valid signal corresponding to each of the signal data, wherein the data valid signal is used to indicate whether the corresponding signal data is valid. The preset screening parameters include: a target data column identifier. The screening module is further used to: The at least one data file is traversed, and signal data corresponding to the target data column identifier included in each data file and corresponding to a data valid signal indicating that the signal data is valid is determined as the target signal data.
9. The device according to claim 7, characterized in that The preset screening parameters include: the depth of the ILA, and the screening module is further used to: Acquire a row data set from the data file, and perform the second screening process on the row data set, wherein the row data set includes the signal data in the nth row, where n is a positive integer; Determine whether the number of row data sets that have completed the second filtering process is equal to the depth of the ILA; if not, update the row data set so that the updated row data set includes the signal data in the n+1th row in the data file, and repeat the process of obtaining the row data set from the data file to updating the row data set until the number of row data sets that have completed the second filtering process is equal to the depth of the ILA.
10. The device according to claim 7, characterized in that The at least one data file includes a plurality of data files arranged in a signal data acquisition order, wherein the file names of the non-first data files in the plurality of data files are associated with the file name of the first data file, the preset screening parameters further include: a storage path of the at least one data file and the file name of the first data file, and the screening module is further configured to: Obtaining, in the storage space corresponding to the storage path, a target data file whose file name is a target file name, wherein the target file name is determined based on the file name of the first data file; performing the first screening process on the target data file; Determine whether the number of data files that have completed the first screening process is equal to the number of data files included in the storage space; if not, update the target file name so that the updated target file name is different from the target file name before the update, and repeat the process of obtaining the target data file whose file name is the target file name to updating the target file name until the number of data files that have completed the first screening process is equal to the number of data files included in the storage space.
11. The device according to claim 7, characterized in that The target data column identifier has a valid state or an invalid state, and the screening module is further used to: When the preset screening parameter includes a target data column identifier in a valid state, traversing at least one row of the signal data included in the data file, and performing a second screening process on each row of the signal data; The acquiring of the first signal data corresponding to the target data column identifier in a row of the signal data includes: acquiring the first signal data corresponding to the target data column identifier in a valid state in a row of the signal data.
12. The device according to any one of claims 7 to 11, characterized in that: In a case where the target signal data corresponds to different data column identifiers, the apparatus further includes: A saving module is used to save the target signal data to different target files based on the data column identifier.
13. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the data screening method according to one or more of claims 1 to 6 is implemented.
14. A readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the data screening method as described in one or more of method claims 1-6.
Citation Information
Patent Citations
Interlocking data automatic processing method and apparatus
CN108170727A