[go: up one dir, main page]

WO2017113360A1 - Method, system and device for data analysis - Google Patents

Method, system and device for data analysis Download PDF

Info

Publication number
WO2017113360A1
WO2017113360A1 PCT/CN2015/100264 CN2015100264W WO2017113360A1 WO 2017113360 A1 WO2017113360 A1 WO 2017113360A1 CN 2015100264 W CN2015100264 W CN 2015100264W WO 2017113360 A1 WO2017113360 A1 WO 2017113360A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
command
parsing
transmission data
output
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.)
Ceased
Application number
PCT/CN2015/100264
Other languages
French (fr)
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.)
SZ DJI Technology Co Ltd
Original Assignee
SZ DJI Technology 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 SZ DJI Technology Co Ltd filed Critical SZ DJI Technology Co Ltd
Priority to PCT/CN2015/100264 priority Critical patent/WO2017113360A1/en
Priority to CN201580050609.2A priority patent/CN106716381B/en
Publication of WO2017113360A1 publication Critical patent/WO2017113360A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits
    • G06F11/2733Test interface between tester and unit under test
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits

Definitions

  • Embodiments of the present invention relate to data processing technologies, and in particular, to a data analysis method, system, and device.
  • the user in function debugging, for example, assuming that the product includes chip A and chip B, the user generally inputs some commands, such as inputting some commands to chip A, and chip A interacts with chip B to execute these commands. At this time, it is necessary to analyze the transmission data between the two chips, to judge the execution of the command by analyzing the data transmitted between the chips, that is, to determine the execution status of the corresponding chip function, and complete the function debugging.
  • the analysis of data transmitted between chips generally adopts a manual processing method: for example, an acquisition device such as an oscilloscope is used to collect transmission data of the chip, and then the transmission is performed.
  • an acquisition device such as an oscilloscope is used to collect transmission data of the chip, and then the transmission is performed.
  • manual analysis of bit-by-bit data is required to extract the required bit data, and then the bit data is manually converted into corresponding byte data.
  • Embodiments of the present invention provide a data analysis method, system, and device, which implement automatic data analysis processing and improve data analysis processing efficiency according to data collection conditions and command parsing formats configured by different users for different transmission modes.
  • a first aspect of the present invention provides a data analysis method, including:
  • the data collection condition includes a data collection start condition and a data collection end condition
  • Collecting the transmission data according to the data collection condition, and acquiring transmission data that meets the data collection condition including:
  • the bit stream starting from the start bit data is continuously extracted until the end bit data of the transmission data that satisfies the data acquisition end condition is extracted.
  • the performing, according to the command parsing format, performing a command on the transmission data that meets the data collection condition the method further includes:
  • Each output command includes:
  • the byte data corresponding to each command obtained by the parsing is encapsulated into a corresponding command, and each output command is obtained.
  • the method further includes:
  • the output data included in the output command to be displayed is displayed in a preset display manner.
  • the receiving the transmission data of the chip to be analyzed includes:
  • a second aspect of the present invention provides a data analysis system, including:
  • a first receiving module configured to receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed
  • a second receiving module configured to receive transmission data of the chip to be analyzed
  • a data acquiring module configured to collect the transmission data according to the data collection condition, and acquire transmission data that meets the data collection condition
  • a command processing module configured to perform command parsing processing on the transmission data that meets the data collection condition according to the command parsing format, to obtain each output command.
  • the data collection condition includes a data collection start condition and a data collection end condition
  • the data acquisition module includes:
  • Determining a submodule configured to determine start bit data in the transmission data that satisfies the data acquisition start condition
  • the method further includes:
  • a conversion module configured to convert a bit data stream between the start bit data and the end bit data into a byte data stream
  • the command processing module is specifically configured to perform command parsing processing on the byte data stream according to the command parsing format to obtain each output command.
  • the command processing module includes:
  • a parsing submodule configured to parse each command included in the byte data stream according to each command code included in the command parsing format
  • the encapsulation submodule is configured to encapsulate the byte data corresponding to each command obtained by the parsing into a corresponding command, and obtain each output command.
  • the first receiving module is further configured to:
  • the data analysis system further includes:
  • a command selection module configured to select, according to the command code corresponding to the output command to be displayed, the output command to be displayed from the output commands;
  • the data display module is configured to display the output data included in the output command to be displayed in a preset display manner.
  • the second receiving module is specifically configured to:
  • the data analysis system further includes:
  • a file parsing module configured to parse the storage file to obtain the transmission data.
  • a third aspect of the present invention provides a data analysis device, including:
  • a receiver configured to receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed, and receive the transmission data of the chip to be analyzed;
  • a processor configured to collect the transmission data according to the data collection condition, and acquire transmission data that meets the data collection condition
  • the processor is further configured to perform command parsing processing on the transmission data that meets the data collection condition according to the command parsing format, to obtain each output command.
  • the data collection condition includes a data collection start condition and a data collection end condition
  • the processor is further configured to:
  • the bit stream starting from the start bit data is continuously extracted until the end bit data of the transmission data that satisfies the data acquisition end condition is extracted.
  • the processor is further configured to:
  • the processor is further configured to:
  • the byte data corresponding to each command obtained by the parsing is encapsulated into a corresponding command, and each output command is obtained.
  • the receiver is further configured to: receive user input Display instruction, wherein the display instruction includes a command code corresponding to the output command to be displayed;
  • the processor is further configured to: according to the command code corresponding to the output command to be displayed, from the The output command to be displayed is selected from each of the output commands; and the output data included in the output command to be displayed is displayed in a preset display manner.
  • the receiver is specifically configured to:
  • the processor is further configured to: parse the storage file to obtain the transmission data.
  • the data analysis method, system and device After receiving the transmission data for the chip to be analyzed, the data analysis method, system and device provided by the invention automatically collect the transmission data according to the data collection condition of the received user for the chip to be analyzed, so as to accurately Acquiring the transmission data that meets the data collection condition; further, performing automatic command parsing processing on the acquired transmission data that satisfies the data collection condition according to the command parsing format configured by the user for the chip to be analyzed, and obtaining the chip to be analyzed The output of each output command.
  • the data collection conditions and command parsing format configured by the user for the chip to be analyzed the automatic collection of the data to be analyzed and the automatic command parsing analysis and processing are realized, and the analysis and processing efficiency of the transmission data is improved.
  • FIG. 1 is a flowchart of Embodiment 1 of a data analysis method according to an embodiment of the present invention
  • Embodiment 2 is a flowchart of Embodiment 2 of a data analysis method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a data collection process in the second embodiment shown in FIG. 2;
  • Embodiment 4 is a flowchart of Embodiment 3 of a data analysis method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of Embodiment 1 of a data analysis system according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of Embodiment 2 of a data analysis system according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of Embodiment 3 of a data analysis system according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of Embodiment 1 of a data analysis device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of Embodiment 1 of a data analysis method according to an embodiment of the present invention. As shown in FIG. 1 , an execution body of the solution is a data analysis device, and the data analysis method includes the following steps:
  • Step 101 Receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed.
  • Step 102 Receive transmission data of a chip to be analyzed.
  • the above steps 101 and 102 do not have a strict timing constraint relationship.
  • Step 103 Collect transmission data according to data collection conditions, and acquire transmission data that meets data collection conditions.
  • Step 104 Perform command analysis processing on the transmission data that satisfies the data collection condition according to the command parsing format, and obtain each output command.
  • the chip to be analyzed is a chip that provides a certain function in any device, or, more broadly, the chip to be analyzed may also be a device and device in a certain system.
  • each chip has a different data transmission method and a different command parsing format. Therefore, in this embodiment, for one chip, that is, for the chip to be analyzed, The corresponding data collection condition and command parsing format may be configured in advance for subsequent automatic analysis and processing of the transmission data of the chip to be analyzed.
  • the user configures the data collection condition and the command parsing format for the chip to be analyzed, and mainly refers to a communication protocol or a data transmission protocol used by the analysis chip. Therefore, for a plurality of chips included in a certain device, a communication protocol adopted by some of the chips may be identical. In this case, the user may configure only one time for the communication protocol, and need to perform for a certain chip using the communication protocol.
  • the configuration information corresponding to the communication protocol that is, the data collection condition and the command analysis format, may be used.
  • the user when the user needs to perform data analysis processing on a chip to be analyzed, according to the to-be-analyzed
  • the communication protocol of the chip the user sends the indication information carrying the corresponding data collection condition and the command analysis format to the data analysis device, so that the data analysis device analyzes and processes the transmission data of the analysis chip according to the indication information.
  • the transmission data received by the data analysis device may be received from the data collector, and the data collector may be integrated with the data analysis device or may be independently set.
  • the data collector is connected between the chip to be analyzed and another chip that performs data interaction with the chip to be analyzed, and is used to collect transmission data between the chip to be analyzed and the other chip.
  • the transmission data is input by a certain command to be analyzed by the chip, and the chip to be analyzed is output after the corresponding processing is started based on the input command.
  • the data analysis device After receiving the transmission data, the data analysis device first collects the transmission data according to the data collection condition, and acquires the transmission data that satisfies the data collection condition, that is, extracts data from the received transmission data according to the data collection condition, and extracts the satisfied data.
  • the transmission data of the acquisition condition Further, the extracted transmission data is encapsulated according to the command parsing format to obtain each output command.
  • each command can be understood as providing a specific function, such as a command to focus the camera, a command to adjust the aperture size, and the like.
  • the command parsing format in the embodiment is for the chip to be analyzed, that is, the various possible specific commands corresponding to the chip to be analyzed are included.
  • Package format Therefore, according to the encapsulation format of each specific command, each output command can be obtained, and each output command reflects the operation or execution of the input command by the chip to be analyzed.
  • the transmission data is automatically collected to accurately obtain the transmission satisfying the data collection condition.
  • Data further, according to the command parsing format configured by the user for the chip to be analyzed, automatically performing the command parsing process on the acquired transmission data that satisfies the data collection condition, and obtaining each output command reflecting the execution status of the chip to be analyzed.
  • Embodiment 2 is a flowchart of Embodiment 2 of a data analysis method according to an embodiment of the present invention. As shown in FIG. 2, the method specifically includes the following steps:
  • Step 201 Receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed, where the data collection condition includes a data collection start condition and a data collection end condition.
  • the data collection conditions specifically include a start condition and an end condition.
  • the configuration of the data collection condition and the command parsing format of the user may be performed on the operation interface, and the corresponding configuration is performed on each operation panel.
  • the user can send an instruction to the data analysis device by selecting a corresponding data collection condition and a command parsing format to inform the data analysis device which data collection condition and command parsing to use. format.
  • Step 202 Receive transmission data of a chip to be analyzed.
  • the data analysis device may receive the transmission data of the chip to be analyzed collected and sent by the data collector in real time; or receive the storage file containing the transmission data sent by the data collector, parse the storage file, and obtain the transmission data. . That is to say, the data collector can transmit the collected transmission data to the data analysis device in real time, or save the file as a file, and send the file to the data analysis device, so that the data analysis device parses the file to obtain the transmission data therein.
  • Step 203 Determine start bit data of the transmission data that satisfies the data acquisition start condition.
  • Step 204 Continuously extract the bit data stream starting from the start bit data until extracting the end bit data of the transmission data that satisfies the data acquisition end condition.
  • the data collection condition includes a start condition and an end condition
  • start bit data that satisfies the start condition is determined, and then bit data starting from the start bit data is continuously extracted.
  • the stream is extracted until the end bit data of the transmission data that satisfies the data acquisition end condition is extracted. Thereby, a bit stream that satisfies the data collection conditions is obtained.
  • the data acquisition process will be briefly described in conjunction with the schematic diagram shown in FIG. Assume that the output signals of the chip to be analyzed include LSCLK, LSB2L, LSL2B, and LSDIO.
  • the start condition of data acquisition is taken as an example. Assume that when LSB2L and LSL2B are simultaneously high, the rising or falling edge of the clock signal LSCLK is The data signal LSDIO is acquired to obtain starting bit data. Then, according to the data collection condition, the subsequent bit data is collected until the collection meets the end of the data collection. The end of the condition is the bit data.
  • Step 205 Convert the bit data stream between the start bit data and the end bit data into a byte data stream.
  • the collected bit stream is converted byte by byte in units of bytes to obtain a byte stream. Further, according to the command parsing format, the byte data stream is subjected to command parsing processing to obtain each output command.
  • Step 206 Parse each command included in the byte data stream according to each command code included in the command parsing format.
  • Step 207 Encapsulate the byte data corresponding to each command obtained by the parsing into a corresponding command, and obtain each output command.
  • each command is composed of a plurality of different parameter fields, for example, different parameter fields including command code, check word, data length, data, and the like.
  • the command code can uniquely identify a command. Therefore, each command code in the format of the command parsing corresponding to the chip to be analyzed can be used to traverse the obtained byte data stream to determine each command code included in the byte data stream, which is equivalent to The start and end identifiers of the respective commands are determined, and the byte data between the two different command codes belongs to the parameter components of the previous command code among the two command codes. Therefore, based on the parsed command code bytes, the byte data before the next command code byte can be encapsulated into one command after each command code byte, thereby obtaining each output command of the chip to be analyzed.
  • the automatic collection of the data to be analyzed, the automatic command parsing and the like are analyzed, and the analysis and processing efficiency of the transmission data is improved.
  • FIG. 4 is a flowchart of Embodiment 3 of the data analysis method according to the embodiment of the present invention. As shown in FIG. 4, after obtaining the output commands, the following steps may be further included on the basis of the foregoing embodiments:
  • Step 301 Receive a display instruction input by a user, where the display instruction includes a command code corresponding to the output command to be displayed.
  • Step 302 Select an output command to be displayed from each output command according to a command code corresponding to the output command to be displayed.
  • Step 303 The output data included in the output command to be displayed is displayed in a preset display manner.
  • the data display processing may also be performed for the command of interest to the user.
  • each output command may correspond to different specific functions, such as acceleration data, aperture size value, etc.
  • the user may send the carried and acceleration acquisition to the data analysis device.
  • the command code corresponding to the command so that the data analysis device selects a corresponding command from each output command, and then displays the acceleration data included in the selected command in a preset display manner.
  • the preset display manner includes a display manner such as a curve and a histogram.
  • the data in the command to be displayed may be graphically displayed according to the display requirement of the user, so that the user can more intuitively see the chip.
  • the result of the operation is convenient for the user to treat the analysis chip for subsequent maintenance and adjustment.
  • FIG. 5 is a schematic structural diagram of Embodiment 1 of a data analysis system according to an embodiment of the present invention.
  • the data analysis system includes: a first receiving module 11, a second receiving module 12, a data acquiring module 13, and command processing. Module 14.
  • the first receiving module 11 is configured to receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed.
  • the second receiving module 12 is configured to receive transmission data of the chip to be analyzed.
  • the data acquisition module 13 is configured to collect the transmission data according to the data collection condition, and acquire transmission data that meets the data collection condition.
  • the command processing module 14 is configured to perform command parsing processing on the transmission data that satisfies the data collection condition according to the command parsing format, to obtain each output command.
  • the data analysis system provided in this embodiment may be used to implement the technical solution in the embodiment shown in FIG. 1 , and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 6 is a schematic structural diagram of Embodiment 2 of a data analysis system according to an embodiment of the present invention. As shown in FIG. 6 , on the basis of the embodiment shown in FIG. 5 , the second receiving module 12 is specifically configured to:
  • the data analysis system further includes:
  • the file parsing module 21 is configured to parse the storage file to obtain the transmission data.
  • the data collection condition includes a data collection start condition and a data collection end condition.
  • the data obtaining module 13 includes: a determining submodule 131 and an extracting submodule 132.
  • the determining submodule 131 is configured to determine start bit data of the transmission data that satisfies the data collection start condition.
  • the extraction sub-module 132 is configured to continuously extract the bit data stream starting from the start bit data until the end bit data of the transmission data that satisfies the data collection end condition is extracted.
  • the data analysis system further includes: a conversion module 22.
  • the converting module 22 is configured to convert the bit data stream between the start bit data and the end bit data into a byte data stream.
  • the command processing module 14 is specifically configured to perform command parsing processing on the byte data stream according to the command parsing format to obtain each output command.
  • the command processing module 14 includes: a parsing submodule 141 and a encapsulating submodule 142.
  • the parsing sub-module 141 is configured to parse each command included in the byte data stream according to each command code included in the command parsing format.
  • the encapsulation sub-module 142 is configured to encapsulate the byte data corresponding to each command obtained by the parsing into a corresponding command, and obtain each output command.
  • the data analysis system provided in this embodiment may be used to implement the technical solution in the embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of Embodiment 3 of a data analysis system according to an embodiment of the present invention. As shown in FIG. 7, the first receiving module 11 is further used on the basis of the embodiment shown in FIG. 5 or FIG. And receiving a display instruction input by the user, where the display instruction includes a command code corresponding to the output command to be displayed.
  • the data analysis system further includes a command selection module 31 and a data display module 32.
  • the command selection module 31 is configured to select the output command to be displayed from the output commands according to the command code corresponding to the output command to be displayed.
  • the data display module 32 is configured to display the output data included in the output command to be displayed in a preset display manner.
  • the data analysis system provided by this embodiment can be used to implement the technical solution in the embodiment shown in FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of Embodiment 1 of a data analysis device according to an embodiment of the present invention. As shown in FIG. 8, the data analysis device includes: a receiver 41 and a processor 42.
  • the receiver 41 is configured to receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed, and receive the transmission data of the chip to be analyzed.
  • the processor 42 is configured to collect the transmission data according to the data collection condition, and acquire transmission data that meets the data collection condition.
  • the processor 42 is further configured to perform command parsing processing on the transmission data that satisfies the data collection condition according to the command parsing format, to obtain each output command.
  • the data collection condition includes a data collection start condition and a data collection end condition
  • the processor 42 is further configured to:
  • the bit stream starting from the start bit data is continuously extracted until the end bit data of the transmission data that satisfies the data acquisition end condition is extracted.
  • processor 42 is further configured to:
  • processor 42 is further configured to:
  • the byte data corresponding to each command obtained by the parsing is encapsulated into a corresponding command, and each output is obtained. make.
  • the receiver 41 is further configured to: receive a display instruction input by the user, where the display instruction includes a command code corresponding to the output command to be displayed.
  • the processor 42 is further configured to: select, according to the command code corresponding to the output command to be displayed, the output command to be displayed from the output commands; and output data included in the output command to be displayed Displayed in the preset display mode.
  • the receiver 41 is specifically configured to:
  • the processor 43 is further configured to: parse the storage file to obtain the transmission data.
  • the data analysis device provided in this embodiment may be used to implement the technical solutions in FIG. 1 , FIG. 2 and FIG. 4 , and the implementation principle and technical effects thereof are similar, and details are not described herein again.
  • the processor may be a central processing unit (English: Central Processing Unit, CPU for short), or other general-purpose processor, digital signal processor (English: Digital) Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the steps including the foregoing method embodiments are performed; and the foregoing storage medium includes: read-only memory (English: read-only memory, abbreviation: ROM), RAM, flash memory, hard disk, solid state hard disk, Magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a method, a system and a device for data analysis. The method comprises: receiving data collection conditions and command parse formats configured by a user for a chip to be analyzed; receiving transmission data of the chip to be analyzed; collecting, according to the data collection conditions, the transmission data to acquire the transmission data satisfying the data collection conditions; and performing, according to the command parse formats, command parse processing on the transmission data satisfying the data collection conditions, so as to obtain respective output commands. By means of the data collection conditions and the command parse formats configured by the user for the chip to be analyzed, the analysis processing such as automatic collection and automatic command parse of the transmission data of the chip to be analyzed is realized, improving the efficiency of the transmission data analysis process.

Description

数据分析方法、系统和设备Data analysis methods, systems and devices 技术领域Technical field

本发明实施例涉及数据处理技术,尤其涉及一种数据分析方法、系统和设备。Embodiments of the present invention relate to data processing technologies, and in particular, to a data analysis method, system, and device.

背景技术Background technique

目前的电子产品一般是由多种芯片组合而成。为保证产品的正常使用,产品一般都需要进行调试等处理。在调试时,可能需要对产品进行各种功能的测试,每种功能的测试可以会涉及到产品中多个芯片间的数据传输。Current electronic products are generally composed of a variety of chips. In order to ensure the normal use of the product, the product generally needs to be debugged and the like. When debugging, it may be necessary to test various functions of the product. The test of each function may involve data transmission between multiple chips in the product.

因此,在功能调试时,举例来说,假设产品包括芯片A和芯片B,用户一般会输入一些命令,比如对芯片A输入一些命令,芯片A与芯片B交互,以执行这些命令。此时,需要分析这两个芯片间的传输数据,以通过对芯片间传输数据的分析,判断命令的执行情况,亦即判定对应芯片功能的执行情况,完成功能调试。Therefore, in function debugging, for example, assuming that the product includes chip A and chip B, the user generally inputs some commands, such as inputting some commands to chip A, and chip A interacts with chip B to execute these commands. At this time, it is necessary to analyze the transmission data between the two chips, to judge the execution of the command by analyzing the data transmitted between the chips, that is, to determine the execution status of the corresponding chip function, and complete the function debugging.

由于不同芯片所采用的通信协议、命令格式往往各不相同,目前,对各芯片间传输数据的分析,一般采用人工处理的方式:比如利用示波器等采集设备采集芯片的传输数据,进而在对传输数据进行分析时,需要人工逐个比特数据的分析,以提取出所需的比特数据,进而将比特数据人工转换成对应的字节数据。再查命令格式表,将各个字节数据解析为对应的命令,从而知道输出了什么命令以及对输入命令的执行结果情况。由此可知,目前这种通过人工对芯片间传输数据进行分析处理的方式,其分析处理效率会很低。Since the communication protocols and command formats used by different chips are often different, at present, the analysis of data transmitted between chips generally adopts a manual processing method: for example, an acquisition device such as an oscilloscope is used to collect transmission data of the chip, and then the transmission is performed. When analyzing data, manual analysis of bit-by-bit data is required to extract the required bit data, and then the bit data is manually converted into corresponding byte data. Then check the command format table and parse each byte data into corresponding commands, so as to know what command is output and the execution result of the input command. It can be seen that the current analysis and processing efficiency of the data transmitted between chips by manual processing is very low.

发明内容Summary of the invention

本发明实施例提供一种数据分析方法、系统和设备,根据用户配置的针对不同传输方式的数据采集条件和命令解析格式,实现数据的自动分析处理,提高数据分析处理效率。Embodiments of the present invention provide a data analysis method, system, and device, which implement automatic data analysis processing and improve data analysis processing efficiency according to data collection conditions and command parsing formats configured by different users for different transmission modes.

本发明第一方面提供一种数据分析方法,包括:A first aspect of the present invention provides a data analysis method, including:

接收用户针对待分析芯片配置的数据采集条件和命令解析格式; Receiving data collection conditions and command parsing formats configured by the user for the chip to be analyzed;

接收所述待分析芯片的传输数据;Receiving transmission data of the chip to be analyzed;

根据所述数据采集条件对所述传输数据进行采集,获取满足所述数据采集条件的传输数据;Collecting the transmission data according to the data collection condition, and acquiring transmission data that meets the data collection condition;

根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令。And performing command parsing processing on the transmission data satisfying the data collection condition according to the command parsing format to obtain each output command.

结合第一方面,在第一方面的第一种可能的实施方式中,所述数据采集条件包括数据采集起始条件和数据采集结束条件;With reference to the first aspect, in a first possible implementation manner of the first aspect, the data collection condition includes a data collection start condition and a data collection end condition;

所述根据所述数据采集条件对所述传输数据进行采集,获取满足所述数据采集条件的传输数据,包括:Collecting the transmission data according to the data collection condition, and acquiring transmission data that meets the data collection condition, including:

确定所述传输数据中满足所述数据采集起始条件的起始比特数据;Determining, in the transmission data, start bit data that satisfies the data acquisition start condition;

连续提取自所述起始比特数据开始的比特数据流,直到提取到所述传输数据中满足所述数据采集结束条件的结束比特数据为止。The bit stream starting from the start bit data is continuously extracted until the end bit data of the transmission data that satisfies the data acquisition end condition is extracted.

结合第一方面的第一种可能的实施方式,在第一方面的第二种可能的实施方式中,所述根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令之前,所述方法还包括:With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the performing, according to the command parsing format, performing a command on the transmission data that meets the data collection condition The parsing process, before obtaining each output command, the method further includes:

将所述起始比特数据与所述结束比特数据之间的比特数据流转换为字节数据流;Converting a bit stream between the start bit data and the end bit data into a byte data stream;

所述根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令,包括:And performing command parsing processing on the transmission data that meets the data collection condition according to the command parsing format, and obtaining each output command, including:

根据所述命令解析格式,对所述字节数据流进行进行命令解析处理,获得各输出命令。And performing command parsing processing on the byte data stream according to the command parsing format to obtain each output command.

结合第一方面的第二种可能的实施方式,在第一方面的第三种可能的实施方式中,所述根据所述命令解析格式,对所述字节数据流进行进行命令解析处理,获得各输出命令,包括:With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the performing a command parsing process on the byte data stream according to the command parsing format, Each output command includes:

根据所述命令解析格式中包含的各命令码,解析所述字节数据流中包含的各命令;Parsing each command included in the byte data stream according to each command code included in the command parsing format;

将解析获得的各命令对应的字节数据封装为对应的命令,获得各输出命令。The byte data corresponding to each command obtained by the parsing is encapsulated into a corresponding command, and each output command is obtained.

结合第一方面、第一方面的第一种、第二种或第三种可能的实施方式,在第一方面的第四种可能的实施方式中,所述根据所述命令解析格式,对所述 满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令之后,所述方法还包括:With reference to the first aspect, the first, second or third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, Description After the command output processing is performed on the transmission data that meets the data collection condition, and after each output command is obtained, the method further includes:

接收用户输入的显示指令,所述显示指令中包括待显示输出命令所对应的命令码;Receiving a display instruction input by the user, where the display instruction includes a command code corresponding to the output command to be displayed;

根据所述待显示输出命令所对应的命令码,从所述各输出命令中选出所述待显示输出命令;And selecting, according to the command code corresponding to the output command to be displayed, the output command to be displayed from the output commands;

对所述待显示输出命令中包含的输出数据按预设显示方式进行显示。The output data included in the output command to be displayed is displayed in a preset display manner.

结合第一方面、第一方面的第一种、第二种或第三种可能的实施方式,在第一方面的第五种可能的实施方式中,所述接收所述待分析芯片的传输数据,包括:With reference to the first aspect, the first, second or third possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the receiving the transmission data of the chip to be analyzed ,include:

接收数据采集器实时采集并发送的所述传输数据;Receiving the transmission data collected and transmitted by the data collector in real time;

或者,or,

接收所述数据采集器发送的包含所述传输数据的存储文件;Receiving, by the data collector, a storage file including the transmission data;

解析所述存储文件,获得所述传输数据。Parsing the storage file to obtain the transmission data.

本发明第二方面提供一种数据分析系统,包括:A second aspect of the present invention provides a data analysis system, including:

第一接收模块,用于接收用户针对待分析芯片配置的数据采集条件和命令解析格式;a first receiving module, configured to receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed;

第二接收模块,用于接收所述待分析芯片的传输数据;a second receiving module, configured to receive transmission data of the chip to be analyzed;

数据获取模块,用于根据所述数据采集条件对所述传输数据进行采集,获取满足所述数据采集条件的传输数据;a data acquiring module, configured to collect the transmission data according to the data collection condition, and acquire transmission data that meets the data collection condition;

命令处理模块,用于根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令。And a command processing module, configured to perform command parsing processing on the transmission data that meets the data collection condition according to the command parsing format, to obtain each output command.

结合第二方面,在第二方面的第一种可能的实施方式中,所述数据采集条件包括数据采集起始条件和数据采集结束条件;With reference to the second aspect, in a first possible implementation manner of the second aspect, the data collection condition includes a data collection start condition and a data collection end condition;

所述数据获取模块,包括:The data acquisition module includes:

确定子模块,用于确定所述传输数据中满足所述数据采集起始条件的起始比特数据;Determining a submodule, configured to determine start bit data in the transmission data that satisfies the data acquisition start condition;

提取子模块,用于连续提取自所述起始比特数据开始的比特数据流,直到提取到所述传输数据中满足所述数据采集结束条件的结束比特数据 为止。Extracting a sub-module for continuously extracting a bit data stream starting from the start bit data until extracting end bit data of the transmission data that satisfies the data acquisition end condition until.

结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实施方式中,还包括:With reference to the first possible implementation of the second aspect, in a second possible implementation manner of the second aspect, the method further includes:

转换模块,用于将所述起始比特数据与所述结束比特数据之间的比特数据流转换为字节数据流;a conversion module, configured to convert a bit data stream between the start bit data and the end bit data into a byte data stream;

所述命令处理模块,具体用于:根据所述命令解析格式,对所述字节数据流进行进行命令解析处理,获得各输出命令。The command processing module is specifically configured to perform command parsing processing on the byte data stream according to the command parsing format to obtain each output command.

结合第二方面的第二种可能的实施方式,在第二方面的第三种可能的实施方式中,所述命令处理模块,包括:With reference to the second possible implementation of the second aspect, in a third possible implementation of the second aspect, the command processing module includes:

解析子模块,用于根据所述命令解析格式中包含的各命令码,解析所述字节数据流中包含的各命令;a parsing submodule, configured to parse each command included in the byte data stream according to each command code included in the command parsing format;

封装子模块,用于将解析获得的各命令对应的字节数据封装为对应的命令,获得各输出命令。The encapsulation submodule is configured to encapsulate the byte data corresponding to each command obtained by the parsing into a corresponding command, and obtain each output command.

结合第二方面、第二方面的第一种、第二种或第三种可能的实施方式,在第二方面的第四种可能的实施方式中,所述第一接收模块,还用于:With reference to the second aspect, the first, the second or the third possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect, the first receiving module is further configured to:

接收用户输入的显示指令,所述显示指令中包括待显示输出命令所对应的命令码;Receiving a display instruction input by the user, where the display instruction includes a command code corresponding to the output command to be displayed;

所述数据分析系统还包括:The data analysis system further includes:

命令选择模块,用于根据所述待显示输出命令所对应的命令码,从所述各输出命令中选出所述待显示输出命令;a command selection module, configured to select, according to the command code corresponding to the output command to be displayed, the output command to be displayed from the output commands;

数据显示模块,用于对所述待显示输出命令中包含的输出数据按预设显示方式进行显示。The data display module is configured to display the output data included in the output command to be displayed in a preset display manner.

结合第二方面、第二方面的第一种、第二种或第三种可能的实施方式,在第二方面的第五种可能的实施方式中,所述第二接收模块,具体用于:With reference to the second aspect, the first, the second or the third possible implementation manner of the second aspect, in the fifth possible implementation manner of the second aspect, the second receiving module is specifically configured to:

接收数据采集器实时采集并发送的所述传输数据;Receiving the transmission data collected and transmitted by the data collector in real time;

或者,or,

接收所述数据采集器发送的包含所述传输数据的存储文件;Receiving, by the data collector, a storage file including the transmission data;

所述数据分析系统还包括:The data analysis system further includes:

文件解析模块,用于解析所述存储文件,获得所述传输数据。 a file parsing module, configured to parse the storage file to obtain the transmission data.

本发明第三方面提供一种数据分析设备,包括:A third aspect of the present invention provides a data analysis device, including:

接收器,用于接收用户针对待分析芯片配置的数据采集条件和命令解析格式,以及接收所述待分析芯片的传输数据;a receiver, configured to receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed, and receive the transmission data of the chip to be analyzed;

处理器,用于根据所述数据采集条件对所述传输数据进行采集,获取满足所述数据采集条件的传输数据;a processor, configured to collect the transmission data according to the data collection condition, and acquire transmission data that meets the data collection condition;

所述处理器,还用于根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令。The processor is further configured to perform command parsing processing on the transmission data that meets the data collection condition according to the command parsing format, to obtain each output command.

结合第三方面,在第三方面的第一种可能的实施方式中,所述数据采集条件包括数据采集起始条件和数据采集结束条件;With reference to the third aspect, in a first possible implementation manner of the third aspect, the data collection condition includes a data collection start condition and a data collection end condition;

所述处理器还用于:The processor is further configured to:

确定所述传输数据中满足所述数据采集起始条件的起始比特数据;Determining, in the transmission data, start bit data that satisfies the data acquisition start condition;

连续提取自所述起始比特数据开始的比特数据流,直到提取到所述传输数据中满足所述数据采集结束条件的结束比特数据为止。The bit stream starting from the start bit data is continuously extracted until the end bit data of the transmission data that satisfies the data acquisition end condition is extracted.

结合第三方面的第一种可能的实施方式,在第三方面的第二种可能的实施方式中,所述处理器还用于:In conjunction with the first possible implementation of the third aspect, in a second possible implementation of the third aspect, the processor is further configured to:

将所述起始比特数据与所述结束比特数据之间的比特数据流转换为字节数据流;Converting a bit stream between the start bit data and the end bit data into a byte data stream;

根据所述命令解析格式,对所述字节数据流进行进行命令解析处理,获得各输出命令。And performing command parsing processing on the byte data stream according to the command parsing format to obtain each output command.

结合第三方面的第二种可能的实施方式,在第三方面的第三种可能的实施方式中,所述处理器还用于:In conjunction with the second possible implementation of the third aspect, in a third possible implementation of the third aspect, the processor is further configured to:

根据所述命令解析格式中包含的各命令码,解析所述字节数据流中包含的各命令;Parsing each command included in the byte data stream according to each command code included in the command parsing format;

将解析获得的各命令对应的字节数据封装为对应的命令,获得各输出命令。The byte data corresponding to each command obtained by the parsing is encapsulated into a corresponding command, and each output command is obtained.

结合第三方面、第三方面的第一种、第二种或第三种可能的实施方式,在第三方面的第四种可能的实施方式中,所述接收器还用于:接收用户输入的显示指令,所述显示指令中包括待显示输出命令所对应的命令码;With reference to the third aspect, the first, second or third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the receiver is further configured to: receive user input Display instruction, wherein the display instruction includes a command code corresponding to the output command to be displayed;

所述处理器还用于:根据所述待显示输出命令所对应的命令码,从所述 各输出命令中选出所述待显示输出命令;对所述待显示输出命令中包含的输出数据按预设显示方式进行显示。The processor is further configured to: according to the command code corresponding to the output command to be displayed, from the The output command to be displayed is selected from each of the output commands; and the output data included in the output command to be displayed is displayed in a preset display manner.

结合第三方面、第三方面的第一种、第二种或第三种可能的实施方式,在第三方面的第五种可能的实施方式中,所述接收器具体用于:With reference to the third aspect, the first, the second or the third possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, the receiver is specifically configured to:

接收数据采集器实时采集并发送的所述传输数据;Receiving the transmission data collected and transmitted by the data collector in real time;

或者,or,

接收所述数据采集器发送的包含所述传输数据的存储文件;Receiving, by the data collector, a storage file including the transmission data;

所述处理器还用于;解析所述存储文件,获得所述传输数据。The processor is further configured to: parse the storage file to obtain the transmission data.

本发明提供的数据分析方法、系统和设备,在接收到针对待分析芯片的传输数据后,根据接收到的用户针对该待分析芯片所配置的数据采集条件,对传输数据进行自动采集,以准确获取满足数据采集条件的传输数据;进而,在根据用户针对该待分析芯片所配置的命令解析格式,对获取到的满足数据采集条件的传输数据进行自动地命令解析处理,获得反映该待分析芯片的执行情况的各输出命令。通过采用用户针对待分析芯片所配置的数据采集条件和命令解析格式,实现了待分析芯片的传输数据的自动采集、自动命令解析等分析处理,提高了传输数据分析处理效率。After receiving the transmission data for the chip to be analyzed, the data analysis method, system and device provided by the invention automatically collect the transmission data according to the data collection condition of the received user for the chip to be analyzed, so as to accurately Acquiring the transmission data that meets the data collection condition; further, performing automatic command parsing processing on the acquired transmission data that satisfies the data collection condition according to the command parsing format configured by the user for the chip to be analyzed, and obtaining the chip to be analyzed The output of each output command. By adopting the data collection conditions and command parsing format configured by the user for the chip to be analyzed, the automatic collection of the data to be analyzed and the automatic command parsing analysis and processing are realized, and the analysis and processing efficiency of the transmission data is improved.

附图说明DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.

图1为本发明实施例提供的数据分析方法实施例一的流程图;FIG. 1 is a flowchart of Embodiment 1 of a data analysis method according to an embodiment of the present invention;

图2为本发明实施例提供的数据分析方法实施例二的流程图;2 is a flowchart of Embodiment 2 of a data analysis method according to an embodiment of the present invention;

图3为图2所示实施例二中的一种数据采集过程的示意图;3 is a schematic diagram of a data collection process in the second embodiment shown in FIG. 2;

图4为本发明实施例提供的数据分析方法实施例三的流程图;4 is a flowchart of Embodiment 3 of a data analysis method according to an embodiment of the present invention;

图5为本发明实施例提供的数据分析系统实施例一的结构示意图;FIG. 5 is a schematic structural diagram of Embodiment 1 of a data analysis system according to an embodiment of the present disclosure;

图6为本发明实施例提供的数据分析系统实施例二的结构示意图;FIG. 6 is a schematic structural diagram of Embodiment 2 of a data analysis system according to an embodiment of the present disclosure;

图7为本发明实施例提供的数据分析系统实施例三的结构示意图;FIG. 7 is a schematic structural diagram of Embodiment 3 of a data analysis system according to an embodiment of the present disclosure;

图8为本发明实施例提供的数据分析设备实施例一的结构示意图。 FIG. 8 is a schematic structural diagram of Embodiment 1 of a data analysis device according to an embodiment of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

图1为本发明实施例提供的数据分析方法实施例一的流程图,如图1所示,该方案的执行主体为数据分析设备,该数据分析方法包括如下步骤:FIG. 1 is a flowchart of Embodiment 1 of a data analysis method according to an embodiment of the present invention. As shown in FIG. 1 , an execution body of the solution is a data analysis device, and the data analysis method includes the following steps:

步骤101、接收用户针对待分析芯片配置的数据采集条件和命令解析格式。Step 101: Receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed.

步骤102、接收待分析芯片的传输数据。Step 102: Receive transmission data of a chip to be analyzed.

上述步骤101和步骤102没有严格的时序限定关系。The above steps 101 and 102 do not have a strict timing constraint relationship.

步骤103、根据数据采集条件对传输数据进行采集,获取满足数据采集条件的传输数据。Step 103: Collect transmission data according to data collection conditions, and acquire transmission data that meets data collection conditions.

步骤104、根据命令解析格式,对满足数据采集条件的传输数据进行命令解析处理,获得各输出命令。Step 104: Perform command analysis processing on the transmission data that satisfies the data collection condition according to the command parsing format, and obtain each output command.

本实施例中,待分析芯片是某设备中的任一种提供某种功能的芯片,或者,更广泛来说,该待分析芯片还可以是某一系统中的一个设备、装置。In this embodiment, the chip to be analyzed is a chip that provides a certain function in any device, or, more broadly, the chip to be analyzed may also be a device and device in a certain system.

针对一个设备中包括的多个芯片来说,每个芯片由于其所采用的数据传输方法不同、命令解析格式不同,因此,本实施例中,针对一个芯片即针对待分析芯片来说,用于预先可以配置相应的数据采集条件和命令解析格式,用于后续针对该待分析芯片的传输数据的自动分析处理。For a plurality of chips included in a device, each chip has a different data transmission method and a different command parsing format. Therefore, in this embodiment, for one chip, that is, for the chip to be analyzed, The corresponding data collection condition and command parsing format may be configured in advance for subsequent automatic analysis and processing of the transmission data of the chip to be analyzed.

具体地,用户针对待分析芯片配置数据采集条件和命令解析格式,主要是指针对待分析芯片所采用的通信协议或者说数据传输协议。从而,针对某设备中包含的多个芯片来说,可能有部分芯片所采用的通信协议一致,此时,用户可以仅针对该通信协议配置一次,在需要针对采用该通信协议的某个芯片进行数据分析时,能使该通信协议对应的配置信息即数据采集条件、命令解析格式即可。Specifically, the user configures the data collection condition and the command parsing format for the chip to be analyzed, and mainly refers to a communication protocol or a data transmission protocol used by the analysis chip. Therefore, for a plurality of chips included in a certain device, a communication protocol adopted by some of the chips may be identical. In this case, the user may configure only one time for the communication protocol, and need to perform for a certain chip using the communication protocol. In the data analysis, the configuration information corresponding to the communication protocol, that is, the data collection condition and the command analysis format, may be used.

因此,当用户需要对某待分析芯片进行数据分析处理时,根据该待分析 芯片的通信协议,用户向数据分析设备发送携带有对应数据采集条件和命令解析格式的指示信息,以使得数据分析设备根据该指示信息对待分析芯片的传输数据进行分析处理。Therefore, when the user needs to perform data analysis processing on a chip to be analyzed, according to the to-be-analyzed The communication protocol of the chip, the user sends the indication information carrying the corresponding data collection condition and the command analysis format to the data analysis device, so that the data analysis device analyzes and processes the transmission data of the analysis chip according to the indication information.

本实施例中,数据分析设备所接收的传输数据,可以是从数据采集器中接收到的,该数据采集器可以与数据分析设备集成在一起,也可以独立设置。数据采集器连接在待分析芯片和与待分析芯片进行数据交互的另一芯片之间,用于采集待分析芯片与该另一芯片间的传输数据。In this embodiment, the transmission data received by the data analysis device may be received from the data collector, and the data collector may be integrated with the data analysis device or may be independently set. The data collector is connected between the chip to be analyzed and another chip that performs data interaction with the chip to be analyzed, and is used to collect transmission data between the chip to be analyzed and the other chip.

其中,该传输数据是通过对待分析芯片输入一定的命令,待分析芯片基于输入命令启动相应的处理后输出的。The transmission data is input by a certain command to be analyzed by the chip, and the chip to be analyzed is output after the corresponding processing is started based on the input command.

数据分析设备接收到该传输数据之后,首先根据数据采集条件对传输数据进行采集,获取满足数据采集条件的传输数据,即根据数据采集条件从接收到的传输数据中进行数据提取,提取出满足数据采集条件的传输数据。进而,根据命令解析格式对提取出的传输数据进行封装,得到各输出命令。After receiving the transmission data, the data analysis device first collects the transmission data according to the data collection condition, and acquires the transmission data that satisfies the data collection condition, that is, extracts data from the received transmission data according to the data collection condition, and extracts the satisfied data. The transmission data of the acquisition condition. Further, the extracted transmission data is encapsulated according to the command parsing format to obtain each output command.

其中,每个命令,可以理解为提供了某个具体的功能,比如对相机进行调焦处理的命令、调整光圈大小的命令等等。Among them, each command can be understood as providing a specific function, such as a command to focus the camera, a command to adjust the aperture size, and the like.

由于提取出的传输数据中包含了构成多个命令的数据,且本实施例中的命令解析格式是针对待分析芯片来说的,即包含了该待分析芯片对应的各种可能的具体命令的封装格式。因此,按照每个具体命令的封装格式,可以得到各输出命令,该各输出命令反映了待分析芯片对输入命令的运行或执行情况。Since the extracted transmission data includes data constituting a plurality of commands, and the command parsing format in the embodiment is for the chip to be analyzed, that is, the various possible specific commands corresponding to the chip to be analyzed are included. Package format. Therefore, according to the encapsulation format of each specific command, each output command can be obtained, and each output command reflects the operation or execution of the input command by the chip to be analyzed.

本实施例中,在接收到针对待分析芯片的传输数据后,根据接收到的用户针对该待分析芯片所配置的数据采集条件,对传输数据进行自动采集,以准确获取满足数据采集条件的传输数据;进而,在根据用户针对该待分析芯片所配置的命令解析格式,对获取到的满足数据采集条件的传输数据进行自动地命令解析处理,获得反映该待分析芯片的执行情况的各输出命令。通过采用用户针对待分析芯片所配置的数据采集条件和命令解析格式,实现了待分析芯片的传输数据的自动采集、自动命令解析等分析处理,提高了传输数据分析处理效率。 In this embodiment, after receiving the transmission data for the chip to be analyzed, according to the received data collection condition configured by the user for the chip to be analyzed, the transmission data is automatically collected to accurately obtain the transmission satisfying the data collection condition. Data; further, according to the command parsing format configured by the user for the chip to be analyzed, automatically performing the command parsing process on the acquired transmission data that satisfies the data collection condition, and obtaining each output command reflecting the execution status of the chip to be analyzed. . By adopting the data collection conditions and command parsing format configured by the user for the chip to be analyzed, the automatic collection of the data to be analyzed and the automatic command parsing analysis and processing are realized, and the analysis and processing efficiency of the transmission data is improved.

图2为本发明实施例提供的数据分析方法实施例二的流程图,如图2所示,该方法具体包括如下步骤:2 is a flowchart of Embodiment 2 of a data analysis method according to an embodiment of the present invention. As shown in FIG. 2, the method specifically includes the following steps:

步骤201、接收用户针对待分析芯片配置的数据采集条件和命令解析格式,数据采集条件包括数据采集起始条件和数据采集结束条件。Step 201: Receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed, where the data collection condition includes a data collection start condition and a data collection end condition.

本实施例中,数据采集条件具体包括起始条件和结束条件。In this embodiment, the data collection conditions specifically include a start condition and an end condition.

其中,用户对上述数据采集条件和命令解析格式的配置可以是在操作界面上进行的,在操作界面上针对各个芯片进行相应的配置。在使用时,当需要对待分析芯片进行数据分析时,用户可以通过选择对应的数据采集条件和命令解析格式的方式,向数据分析设备发送指令,以告知数据分析设备采用哪个数据采集条件和命令解析格式。The configuration of the data collection condition and the command parsing format of the user may be performed on the operation interface, and the corresponding configuration is performed on each operation panel. In use, when data analysis is required for the chip to be analyzed, the user can send an instruction to the data analysis device by selecting a corresponding data collection condition and a command parsing format to inform the data analysis device which data collection condition and command parsing to use. format.

步骤202、接收待分析芯片的传输数据。Step 202: Receive transmission data of a chip to be analyzed.

具体来说,数据分析设备可以接收数据采集器实时采集并发送的待分析芯片的传输数据;或者,也可以接收数据采集器发送的包含传输数据的存储文件,解析所述存储文件,获得传输数据。也就是说,数据采集器可以将采集的传输数据实时发送给数据分析设备,也可以将其保存为文件形式,将文件发送至数据分析设备,使得数据分析设备解析文件获得其中的传输数据。Specifically, the data analysis device may receive the transmission data of the chip to be analyzed collected and sent by the data collector in real time; or receive the storage file containing the transmission data sent by the data collector, parse the storage file, and obtain the transmission data. . That is to say, the data collector can transmit the collected transmission data to the data analysis device in real time, or save the file as a file, and send the file to the data analysis device, so that the data analysis device parses the file to obtain the transmission data therein.

步骤203、确定传输数据中满足数据采集起始条件的起始比特数据。Step 203: Determine start bit data of the transmission data that satisfies the data acquisition start condition.

步骤204、连续提取自起始比特数据开始的比特数据流,直到提取到传输数据中满足数据采集结束条件的结束比特数据为止。Step 204: Continuously extract the bit data stream starting from the start bit data until extracting the end bit data of the transmission data that satisfies the data acquisition end condition.

本实施例中,由于数据采集条件包括起始条件和结束条件,因此,针对接收到的传输数据,首先确定满足起始条件的起始比特数据,之后连续提取自起始比特数据开始的比特数据流,直到提取到传输数据中满足数据采集结束条件的结束比特数据为止。从而,获得了满足数据采集条件的比特数据流。In this embodiment, since the data collection condition includes a start condition and an end condition, first, for the received transmission data, start bit data that satisfies the start condition is determined, and then bit data starting from the start bit data is continuously extracted. The stream is extracted until the end bit data of the transmission data that satisfies the data acquisition end condition is extracted. Thereby, a bit stream that satisfies the data collection conditions is obtained.

结合图3所示的示意图,对数据采集过程进行简单说明。假设待分析芯片的输出信号包括LSCLK、LSB2L、LSL2B和LSDIO,其中,以数据采集的起始条件为例,假设在LSB2L、LSL2B同时为高电平时,在时钟信号LSCLK的上升沿或下降沿对数据信号LSDIO进行采集,以获得起始比特数据。进而根据数据采集条件进行后续比特数据的采集,直到采集到满足数据采集结束 条件的结束比特数据为止。The data acquisition process will be briefly described in conjunction with the schematic diagram shown in FIG. Assume that the output signals of the chip to be analyzed include LSCLK, LSB2L, LSL2B, and LSDIO. The start condition of data acquisition is taken as an example. Assume that when LSB2L and LSL2B are simultaneously high, the rising or falling edge of the clock signal LSCLK is The data signal LSDIO is acquired to obtain starting bit data. Then, according to the data collection condition, the subsequent bit data is collected until the collection meets the end of the data collection. The end of the condition is the bit data.

步骤205、将起始比特数据与结束比特数据之间的比特数据流转换为字节数据流。Step 205: Convert the bit data stream between the start bit data and the end bit data into a byte data stream.

将采集到的比特数据流按照字节为单位,进行逐字节的转换,获得字节数据流。进而,根据命令解析格式,对字节数据流进行进行命令解析处理,获得各输出命令。The collected bit stream is converted byte by byte in units of bytes to obtain a byte stream. Further, according to the command parsing format, the byte data stream is subjected to command parsing processing to obtain each output command.

步骤206、根据命令解析格式中包含的各命令码,解析字节数据流中包含的各命令。Step 206: Parse each command included in the byte data stream according to each command code included in the command parsing format.

步骤207、将解析获得的各命令对应的字节数据封装为对应的命令,获得各输出命令。Step 207: Encapsulate the byte data corresponding to each command obtained by the parsing into a corresponding command, and obtain each output command.

在对字节数据流进行命令解析的过程中,首先要解析出字节数据流中包含的各命令,即解析出其中包含的命令码字节。由于每个命令是由多个不同的参数字段组成的,比如包括命令码、校验字、数据长度、数据等不同的参数字段。而命令码可以唯一标识一个命令,因此,可以根据待分析芯片对应的命令解析格式中的各个命令码,遍历获得的字节数据流,以确定字节数据流中包含的各命令码,相当于确定了各个命令的起止标识,在两个不同的命令码之间的字节数据属于这两个命令码中前一个命令码的参数组成部分。从而,基于解析到的各命令码字节,可以对每个命令码字节之后,下一个命令码字节之前的字节数据封装为一个命令,从而得到待分析芯片的各输出命令。In the process of command parsing of a byte data stream, the commands contained in the byte data stream are first parsed, that is, the command code bytes contained therein are parsed. Since each command is composed of a plurality of different parameter fields, for example, different parameter fields including command code, check word, data length, data, and the like. The command code can uniquely identify a command. Therefore, each command code in the format of the command parsing corresponding to the chip to be analyzed can be used to traverse the obtained byte data stream to determine each command code included in the byte data stream, which is equivalent to The start and end identifiers of the respective commands are determined, and the byte data between the two different command codes belongs to the parameter components of the previous command code among the two command codes. Therefore, based on the parsed command code bytes, the byte data before the next command code byte can be encapsulated into one command after each command code byte, thereby obtaining each output command of the chip to be analyzed.

本实施例中,通过采用用户针对待分析芯片所配置的数据采集条件和命令解析格式,实现了待分析芯片的传输数据的自动采集、自动命令解析等分析处理,提高了传输数据分析处理效率。In this embodiment, by using the data collection condition and the command parsing format configured by the user for the chip to be analyzed, the automatic collection of the data to be analyzed, the automatic command parsing and the like are analyzed, and the analysis and processing efficiency of the transmission data is improved.

图4为本发明实施例提供的数据分析方法实施例三的流程图,如图4所示,在前述各实施例的基础上,在获得各输出命令之后,还可以包括如下步骤:FIG. 4 is a flowchart of Embodiment 3 of the data analysis method according to the embodiment of the present invention. As shown in FIG. 4, after obtaining the output commands, the following steps may be further included on the basis of the foregoing embodiments:

步骤301、接收用户输入的显示指令,显示指令中包括待显示输出命令所对应的命令码。Step 301: Receive a display instruction input by a user, where the display instruction includes a command code corresponding to the output command to be displayed.

步骤302、根据待显示输出命令所对应的命令码,从各输出命令中选出待显示输出命令。 Step 302: Select an output command to be displayed from each output command according to a command code corresponding to the output command to be displayed.

步骤303、对待显示输出命令中包含的输出数据按预设显示方式进行显示。Step 303: The output data included in the output command to be displayed is displayed in a preset display manner.

本实施例中,在得到待分析芯片的各输出命令之后,还可以针对用户感兴趣的命令,进行数据显示处理。In this embodiment, after obtaining the output commands of the chip to be analyzed, the data display processing may also be performed for the command of interest to the user.

具体来说,由于各输出命令可能分别对应了不同的具体功能,比如包括加速度数据、光圈大小值等,假设用户当前想要显示加速度数据,则用户可以向数据分析设备发送携带有与加速度采集的命令相对应的命令码,从而,数据分析设备从各输出命令中选择出对应的命令,进而对该选择出的命令中包含的加速度数据按预设显示方式进行显示。其中,该预设显示方式比如包括曲线、柱状图等显示方式。Specifically, since each output command may correspond to different specific functions, such as acceleration data, aperture size value, etc., if the user currently wants to display acceleration data, the user may send the carried and acceleration acquisition to the data analysis device. The command code corresponding to the command, so that the data analysis device selects a corresponding command from each output command, and then displays the acceleration data included in the selected command in a preset display manner. The preset display manner includes a display manner such as a curve and a histogram.

本实施例中,在得到反映待分析芯片的命令执行情况的各输出命令后,可以根据用户的显示要求,对需要显示的命令中的数据进行图形显示,能够使得用户更加直观地看到芯片的运行结果情况,方便用户对待分析芯片进行后续维护、调整等处理。In this embodiment, after the output commands reflecting the command execution status of the chip to be analyzed are obtained, the data in the command to be displayed may be graphically displayed according to the display requirement of the user, so that the user can more intuitively see the chip. The result of the operation is convenient for the user to treat the analysis chip for subsequent maintenance and adjustment.

图5为本发明实施例提供的数据分析系统实施例一的结构示意图,如图5所示,该数据分析系统包括:第一接收模块11、第二接收模块12、数据获取模块13、命令处理模块14。FIG. 5 is a schematic structural diagram of Embodiment 1 of a data analysis system according to an embodiment of the present invention. As shown in FIG. 5, the data analysis system includes: a first receiving module 11, a second receiving module 12, a data acquiring module 13, and command processing. Module 14.

第一接收模块11,用于接收用户针对待分析芯片配置的数据采集条件和命令解析格式。The first receiving module 11 is configured to receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed.

第二接收模块12,用于接收所述待分析芯片的传输数据。The second receiving module 12 is configured to receive transmission data of the chip to be analyzed.

数据获取模块13,用于根据所述数据采集条件对所述传输数据进行采集,获取满足所述数据采集条件的传输数据。The data acquisition module 13 is configured to collect the transmission data according to the data collection condition, and acquire transmission data that meets the data collection condition.

命令处理模块14,用于根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令。The command processing module 14 is configured to perform command parsing processing on the transmission data that satisfies the data collection condition according to the command parsing format, to obtain each output command.

本实施例提供的数据分析系统可以用于执行图1所示实施例中的技术方案,其实现原理和技术效果类似,在此不再赘述。The data analysis system provided in this embodiment may be used to implement the technical solution in the embodiment shown in FIG. 1 , and the implementation principle and technical effects are similar, and details are not described herein again.

图6为本发明实施例提供的数据分析系统实施例二的结构示意图,如图6所示,在图5所示实施例的基础上,所述第二接收模块12,具体用于: FIG. 6 is a schematic structural diagram of Embodiment 2 of a data analysis system according to an embodiment of the present invention. As shown in FIG. 6 , on the basis of the embodiment shown in FIG. 5 , the second receiving module 12 is specifically configured to:

接收数据采集器实时采集并发送的所述传输数据;Receiving the transmission data collected and transmitted by the data collector in real time;

或者,or,

接收所述数据采集器发送的包含所述传输数据的存储文件。Receiving a storage file that is sent by the data collector and containing the transmission data.

所述数据分析系统还包括:The data analysis system further includes:

文件解析模块21,用于解析所述存储文件,获得所述传输数据。The file parsing module 21 is configured to parse the storage file to obtain the transmission data.

具体的,所述数据采集条件包括数据采集起始条件和数据采集结束条件。Specifically, the data collection condition includes a data collection start condition and a data collection end condition.

所述数据获取模块13,包括:确定子模块131、提取子模块132。The data obtaining module 13 includes: a determining submodule 131 and an extracting submodule 132.

确定子模块131,用于确定所述传输数据中满足所述数据采集起始条件的起始比特数据。The determining submodule 131 is configured to determine start bit data of the transmission data that satisfies the data collection start condition.

提取子模块132,用于连续提取自所述起始比特数据开始的比特数据流,直到提取到所述传输数据中满足所述数据采集结束条件的结束比特数据为止。The extraction sub-module 132 is configured to continuously extract the bit data stream starting from the start bit data until the end bit data of the transmission data that satisfies the data collection end condition is extracted.

进一步的,该数据分析系统还包括:转换模块22。Further, the data analysis system further includes: a conversion module 22.

转换模块22,用于将所述起始比特数据与所述结束比特数据之间的比特数据流转换为字节数据流。The converting module 22 is configured to convert the bit data stream between the start bit data and the end bit data into a byte data stream.

所述命令处理模块14,具体用于:根据所述命令解析格式,对所述字节数据流进行进行命令解析处理,获得各输出命令。The command processing module 14 is specifically configured to perform command parsing processing on the byte data stream according to the command parsing format to obtain each output command.

具体的,所述命令处理模块14,包括:解析子模块141、封装子模块142。Specifically, the command processing module 14 includes: a parsing submodule 141 and a encapsulating submodule 142.

解析子模块141,用于根据所述命令解析格式中包含的各命令码,解析所述字节数据流中包含的各命令。The parsing sub-module 141 is configured to parse each command included in the byte data stream according to each command code included in the command parsing format.

封装子模块142,用于将解析获得的各命令对应的字节数据封装为对应的命令,获得各输出命令。The encapsulation sub-module 142 is configured to encapsulate the byte data corresponding to each command obtained by the parsing into a corresponding command, and obtain each output command.

本实施例提供的数据分析系统可以用于执行图2所示实施例中的技术方案,其实现原理和技术效果类似,不再赘述。The data analysis system provided in this embodiment may be used to implement the technical solution in the embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.

图7为本发明实施例提供的数据分析系统实施例三的结构示意图,如图7所示,在图5或图6所示实施例的基础上,所述第一接收模块11,还用于:接收用户输入的显示指令,所述显示指令中包括待显示输出命令所对应的命令码。 FIG. 7 is a schematic structural diagram of Embodiment 3 of a data analysis system according to an embodiment of the present invention. As shown in FIG. 7, the first receiving module 11 is further used on the basis of the embodiment shown in FIG. 5 or FIG. And receiving a display instruction input by the user, where the display instruction includes a command code corresponding to the output command to be displayed.

所述数据分析系统还包括:命令选择模块31、数据显示模块32。The data analysis system further includes a command selection module 31 and a data display module 32.

命令选择模块31,用于根据所述待显示输出命令所对应的命令码,从所述各输出命令中选出所述待显示输出命令。The command selection module 31 is configured to select the output command to be displayed from the output commands according to the command code corresponding to the output command to be displayed.

数据显示模块32,用于对所述待显示输出命令中包含的输出数据按预设显示方式进行显示。The data display module 32 is configured to display the output data included in the output command to be displayed in a preset display manner.

本实施例提供的数据分析系统可以用于执行图4所示实施例中的技术方案,其实现原理和技术效果类似,不再赘述。The data analysis system provided by this embodiment can be used to implement the technical solution in the embodiment shown in FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.

图8为本发明实施例提供的数据分析设备实施例一的结构示意图,如图8所示,该数据分析设备包括:接收器41、处理器42。FIG. 8 is a schematic structural diagram of Embodiment 1 of a data analysis device according to an embodiment of the present invention. As shown in FIG. 8, the data analysis device includes: a receiver 41 and a processor 42.

接收器41,用于接收用户针对待分析芯片配置的数据采集条件和命令解析格式,以及接收所述待分析芯片的传输数据。The receiver 41 is configured to receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed, and receive the transmission data of the chip to be analyzed.

处理器42,用于根据所述数据采集条件对所述传输数据进行采集,获取满足所述数据采集条件的传输数据。The processor 42 is configured to collect the transmission data according to the data collection condition, and acquire transmission data that meets the data collection condition.

所述处理器42,还用于根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令。The processor 42 is further configured to perform command parsing processing on the transmission data that satisfies the data collection condition according to the command parsing format, to obtain each output command.

其中,所述数据采集条件包括数据采集起始条件和数据采集结束条件;The data collection condition includes a data collection start condition and a data collection end condition;

所述处理器42还用于:The processor 42 is further configured to:

确定所述传输数据中满足所述数据采集起始条件的起始比特数据;Determining, in the transmission data, start bit data that satisfies the data acquisition start condition;

连续提取自所述起始比特数据开始的比特数据流,直到提取到所述传输数据中满足所述数据采集结束条件的结束比特数据为止。The bit stream starting from the start bit data is continuously extracted until the end bit data of the transmission data that satisfies the data acquisition end condition is extracted.

进一步的,所述处理器42还用于:Further, the processor 42 is further configured to:

将所述起始比特数据与所述结束比特数据之间的比特数据流转换为字节数据流;Converting a bit stream between the start bit data and the end bit data into a byte data stream;

根据所述命令解析格式,对所述字节数据流进行进行命令解析处理,获得各输出命令。And performing command parsing processing on the byte data stream according to the command parsing format to obtain each output command.

进一步的,所述处理器42还用于:Further, the processor 42 is further configured to:

根据所述命令解析格式中包含的各命令码,解析所述字节数据流中包含的各命令;Parsing each command included in the byte data stream according to each command code included in the command parsing format;

将解析获得的各命令对应的字节数据封装为对应的命令,获得各输出命 令。The byte data corresponding to each command obtained by the parsing is encapsulated into a corresponding command, and each output is obtained. make.

进一步的,所述接收器41还用于:接收用户输入的显示指令,所述显示指令中包括待显示输出命令所对应的命令码。Further, the receiver 41 is further configured to: receive a display instruction input by the user, where the display instruction includes a command code corresponding to the output command to be displayed.

所述处理器42还用于:根据所述待显示输出命令所对应的命令码,从所述各输出命令中选出所述待显示输出命令;对所述待显示输出命令中包含的输出数据按预设显示方式进行显示。The processor 42 is further configured to: select, according to the command code corresponding to the output command to be displayed, the output command to be displayed from the output commands; and output data included in the output command to be displayed Displayed in the preset display mode.

具体的,所述接收器41具体用于:Specifically, the receiver 41 is specifically configured to:

接收数据采集器实时采集并发送的所述传输数据;Receiving the transmission data collected and transmitted by the data collector in real time;

或者,or,

接收所述数据采集器发送的包含所述传输数据的存储文件。Receiving a storage file that is sent by the data collector and containing the transmission data.

所述处理器43还用于;解析所述存储文件,获得所述传输数据。The processor 43 is further configured to: parse the storage file to obtain the transmission data.

本实施例提供的数据分析设备可以用于执行图1、图2、图4中的技术方案,其实现原理和技术效果类似,在此不再赘述。The data analysis device provided in this embodiment may be used to implement the technical solutions in FIG. 1 , FIG. 2 and FIG. 4 , and the implementation principle and technical effects thereof are similar, and details are not described herein again.

在上述数据分析设备的各实施例中,应理解,该处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In various embodiments of the data analysis device, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, CPU for short), or other general-purpose processor, digital signal processor (English: Digital) Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:只读存储器(英文:read-only memory,缩写:ROM)、RAM、快闪存储器、硬盘、固态硬盘、磁带(英文:magnetic tape)、软盘(英文:floppy disk)、光盘(英文:optical disc)及其任意组合。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps including the foregoing method embodiments are performed; and the foregoing storage medium includes: read-only memory (English: read-only memory, abbreviation: ROM), RAM, flash memory, hard disk, solid state hard disk, Magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (18)

一种数据分析方法,其特征在于,包括:A data analysis method, comprising: 接收用户针对待分析芯片配置的数据采集条件和命令解析格式;Receiving data collection conditions and command parsing formats configured by the user for the chip to be analyzed; 接收所述待分析芯片的传输数据;Receiving transmission data of the chip to be analyzed; 根据所述数据采集条件对所述传输数据进行采集,获取满足所述数据采集条件的传输数据;Collecting the transmission data according to the data collection condition, and acquiring transmission data that meets the data collection condition; 根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令。And performing command parsing processing on the transmission data satisfying the data collection condition according to the command parsing format to obtain each output command. 根据权利要求1所述的方法,其特征在于,所述数据采集条件包括数据采集起始条件和数据采集结束条件;The method according to claim 1, wherein the data collection condition comprises a data acquisition start condition and a data collection end condition; 所述根据所述数据采集条件对所述传输数据进行采集,获取满足所述数据采集条件的传输数据,包括:Collecting the transmission data according to the data collection condition, and acquiring transmission data that meets the data collection condition, including: 确定所述传输数据中满足所述数据采集起始条件的起始比特数据;Determining, in the transmission data, start bit data that satisfies the data acquisition start condition; 连续提取自所述起始比特数据开始的比特数据流,直到提取到所述传输数据中满足所述数据采集结束条件的结束比特数据为止。The bit stream starting from the start bit data is continuously extracted until the end bit data of the transmission data that satisfies the data acquisition end condition is extracted. 根据权利要求2所述的方法,其特征在于,所述根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令之前,所述方法还包括:The method according to claim 2, wherein the method further comprises: performing command parsing processing on the transmission data satisfying the data collection condition according to the command parsing format, and obtaining each output command, the method further comprising: : 将所述起始比特数据与所述结束比特数据之间的比特数据流转换为字节数据流;Converting a bit stream between the start bit data and the end bit data into a byte data stream; 所述根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令,包括:And performing command parsing processing on the transmission data that meets the data collection condition according to the command parsing format, and obtaining each output command, including: 根据所述命令解析格式,对所述字节数据流进行进行命令解析处理,获得各输出命令。And performing command parsing processing on the byte data stream according to the command parsing format to obtain each output command. 根据权利要求3所述的方法,其特征在于,所述根据所述命令解析格式,对所述字节数据流进行进行命令解析处理,获得各输出命令,包括:The method according to claim 3, wherein the command parsing process is performed on the byte data stream according to the command parsing format, and each output command is obtained, including: 根据所述命令解析格式中包含的各命令码,解析所述字节数据流中包含 的各命令;Parsing the byte data stream according to each command code included in the command parsing format Each order; 将解析获得的各命令对应的字节数据封装为对应的命令,获得各输出命令。The byte data corresponding to each command obtained by the parsing is encapsulated into a corresponding command, and each output command is obtained. 根据权利要求1至4中任一项所述的方法,其特征在于,所述根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein the command parsing process is performed on the transmission data satisfying the data collection condition according to the command parsing format, and after each output command is obtained The method further includes: 接收用户输入的显示指令,所述显示指令中包括待显示输出命令所对应的命令码;Receiving a display instruction input by the user, where the display instruction includes a command code corresponding to the output command to be displayed; 根据所述待显示输出命令所对应的命令码,从所述各输出命令中选出所述待显示输出命令;And selecting, according to the command code corresponding to the output command to be displayed, the output command to be displayed from the output commands; 对所述待显示输出命令中包含的输出数据按预设显示方式进行显示。The output data included in the output command to be displayed is displayed in a preset display manner. 根据权利要求1至4中任一项所述的方法,其特征在于,所述接收所述待分析芯片的传输数据,包括:The method according to any one of claims 1 to 4, wherein the receiving the transmission data of the chip to be analyzed comprises: 接收数据采集器实时采集并发送的所述传输数据;Receiving the transmission data collected and transmitted by the data collector in real time; 或者,or, 接收所述数据采集器发送的包含所述传输数据的存储文件;Receiving, by the data collector, a storage file including the transmission data; 解析所述存储文件,获得所述传输数据。Parsing the storage file to obtain the transmission data. 一种数据分析系统,其特征在于,包括:A data analysis system, comprising: 第一接收模块,用于接收用户针对待分析芯片配置的数据采集条件和命令解析格式;a first receiving module, configured to receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed; 第二接收模块,用于接收所述待分析芯片的传输数据;a second receiving module, configured to receive transmission data of the chip to be analyzed; 数据获取模块,用于根据所述数据采集条件对所述传输数据进行采集,获取满足所述数据采集条件的传输数据;a data acquiring module, configured to collect the transmission data according to the data collection condition, and acquire transmission data that meets the data collection condition; 命令处理模块,用于根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令。And a command processing module, configured to perform command parsing processing on the transmission data that meets the data collection condition according to the command parsing format, to obtain each output command. 根据权利要求7所述的数据分析系统,其特征在于,所述数据采集条 件包括数据采集起始条件和数据采集结束条件;The data analysis system of claim 7 wherein said data acquisition strip The data includes a data acquisition start condition and a data collection end condition; 所述数据获取模块,包括:The data acquisition module includes: 确定子模块,用于确定所述传输数据中满足所述数据采集起始条件的起始比特数据;Determining a submodule, configured to determine start bit data in the transmission data that satisfies the data acquisition start condition; 提取子模块,用于连续提取自所述起始比特数据开始的比特数据流,直到提取到所述传输数据中满足所述数据采集结束条件的结束比特数据为止。And an extraction submodule for continuously extracting the bit data stream starting from the start bit data until extracting end bit data of the transmission data that satisfies the data acquisition end condition. 根据权利要求8所述的数据分析系统,其特征在于,还包括:The data analysis system according to claim 8, further comprising: 转换模块,用于将所述起始比特数据与所述结束比特数据之间的比特数据流转换为字节数据流;a conversion module, configured to convert a bit data stream between the start bit data and the end bit data into a byte data stream; 所述命令处理模块,具体用于:根据所述命令解析格式,对所述字节数据流进行进行命令解析处理,获得各输出命令。The command processing module is specifically configured to perform command parsing processing on the byte data stream according to the command parsing format to obtain each output command. 根据权利要求9所述的数据分析系统,其特征在于,所述命令处理模块,包括:The data analysis system according to claim 9, wherein the command processing module comprises: 解析子模块,用于根据所述命令解析格式中包含的各命令码,解析所述字节数据流中包含的各命令;a parsing submodule, configured to parse each command included in the byte data stream according to each command code included in the command parsing format; 封装子模块,用于将解析获得的各命令对应的字节数据封装为对应的命令,获得各输出命令。The encapsulation submodule is configured to encapsulate the byte data corresponding to each command obtained by the parsing into a corresponding command, and obtain each output command. 根据权利要求7至10中任一项所述的数据分析系统,其特征在于,所述第一接收模块,还用于:The data analysis system according to any one of claims 7 to 10, wherein the first receiving module is further configured to: 接收用户输入的显示指令,所述显示指令中包括待显示输出命令所对应的命令码;Receiving a display instruction input by the user, where the display instruction includes a command code corresponding to the output command to be displayed; 所述数据分析系统还包括:The data analysis system further includes: 命令选择模块,用于根据所述待显示输出命令所对应的命令码,从所述各输出命令中选出所述待显示输出命令;a command selection module, configured to select, according to the command code corresponding to the output command to be displayed, the output command to be displayed from the output commands; 数据显示模块,用于对所述待显示输出命令中包含的输出数据按预设显示方式进行显示。 The data display module is configured to display the output data included in the output command to be displayed in a preset display manner. 根据权利要求7至10中任一项所述的数据分析系统,其特征在于,所述第二接收模块,具体用于:The data analysis system according to any one of claims 7 to 10, wherein the second receiving module is specifically configured to: 接收数据采集器实时采集并发送的所述传输数据;Receiving the transmission data collected and transmitted by the data collector in real time; 或者,or, 接收所述数据采集器发送的包含所述传输数据的存储文件;Receiving, by the data collector, a storage file including the transmission data; 所述数据分析设备还包括:The data analysis device further includes: 文件解析模块,用于解析所述存储文件,获得所述传输数据。a file parsing module, configured to parse the storage file to obtain the transmission data. 一种数据分析设备,其特征在于,包括:A data analysis device, comprising: 接收器,用于接收用户针对待分析芯片配置的数据采集条件和命令解析格式,以及接收所述待分析芯片的传输数据;a receiver, configured to receive a data collection condition and a command parsing format configured by the user for the chip to be analyzed, and receive the transmission data of the chip to be analyzed; 处理器,用于根据所述数据采集条件对所述传输数据进行采集,获取满足所述数据采集条件的传输数据;a processor, configured to collect the transmission data according to the data collection condition, and acquire transmission data that meets the data collection condition; 所述处理器,还用于根据所述命令解析格式,对所述满足所述数据采集条件的传输数据进行命令解析处理,获得各输出命令。The processor is further configured to perform command parsing processing on the transmission data that meets the data collection condition according to the command parsing format, to obtain each output command. 根据权利要求13所述的数据分析设备,其特征在于,所述数据采集条件包括数据采集起始条件和数据采集结束条件;The data analysis device according to claim 13, wherein the data collection condition comprises a data collection start condition and a data collection end condition; 所述处理器还用于:The processor is further configured to: 确定所述传输数据中满足所述数据采集起始条件的起始比特数据;Determining, in the transmission data, start bit data that satisfies the data acquisition start condition; 连续提取自所述起始比特数据开始的比特数据流,直到提取到所述传输数据中满足所述数据采集结束条件的结束比特数据为止。The bit stream starting from the start bit data is continuously extracted until the end bit data of the transmission data that satisfies the data acquisition end condition is extracted. 根据权利要求14所述的数据分析设备,其特征在于,所述处理器还用于:The data analysis device according to claim 14, wherein the processor is further configured to: 将所述起始比特数据与所述结束比特数据之间的比特数据流转换为字节数据流;Converting a bit stream between the start bit data and the end bit data into a byte data stream; 根据所述命令解析格式,对所述字节数据流进行进行命令解析处理,获得各输出命令。 And performing command parsing processing on the byte data stream according to the command parsing format to obtain each output command. 根据权利要求15所述的数据分析设备,其特征在于,所述处理器还用于:The data analysis device according to claim 15, wherein the processor is further configured to: 根据所述命令解析格式中包含的各命令码,解析所述字节数据流中包含的各命令;Parsing each command included in the byte data stream according to each command code included in the command parsing format; 将解析获得的各命令对应的字节数据封装为对应的命令,获得各输出命令。The byte data corresponding to each command obtained by the parsing is encapsulated into a corresponding command, and each output command is obtained. 根据权利要求13至16中任一项所述的数据分析设备,其特征在于,所述接收器还用于:接收用户输入的显示指令,所述显示指令中包括待显示输出命令所对应的命令码;The data analysis device according to any one of claims 13 to 16, wherein the receiver is further configured to: receive a display instruction input by the user, where the display instruction includes a command corresponding to the output command to be displayed code; 所述处理器还用于:根据所述待显示输出命令所对应的命令码,从所述各输出命令中选出所述待显示输出命令;对所述待显示输出命令中包含的输出数据按预设显示方式进行显示。The processor is further configured to: select, according to the command code corresponding to the output command to be displayed, the output command to be displayed from the output commands; and press the output data included in the output command to be displayed The preset display mode is displayed. 根据权利要求13至16中任一项所述的数据分析设备,其特征在于,所述接收器具体用于:The data analysis device according to any one of claims 13 to 16, wherein the receiver is specifically configured to: 接收数据采集器实时采集并发送的所述传输数据;Receiving the transmission data collected and transmitted by the data collector in real time; 或者,or, 接收所述数据采集器发送的包含所述传输数据的存储文件;Receiving, by the data collector, a storage file including the transmission data; 所述处理器还用于;解析所述存储文件,获得所述传输数据。 The processor is further configured to: parse the storage file to obtain the transmission data.
PCT/CN2015/100264 2015-12-31 2015-12-31 Method, system and device for data analysis Ceased WO2017113360A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/100264 WO2017113360A1 (en) 2015-12-31 2015-12-31 Method, system and device for data analysis
CN201580050609.2A CN106716381B (en) 2015-12-31 2015-12-31 Data analysing method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/100264 WO2017113360A1 (en) 2015-12-31 2015-12-31 Method, system and device for data analysis

Publications (1)

Publication Number Publication Date
WO2017113360A1 true WO2017113360A1 (en) 2017-07-06

Family

ID=58933711

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/100264 Ceased WO2017113360A1 (en) 2015-12-31 2015-12-31 Method, system and device for data analysis

Country Status (2)

Country Link
CN (1) CN106716381B (en)
WO (1) WO2017113360A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722855B (en) * 2020-06-23 2024-09-06 湖南国科微电子股份有限公司 Firmware burning system and method based on eMMC and integrated chip

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008143646A2 (en) * 2006-11-29 2008-11-27 Canon U.S. Life Sciences, Inc. Device and method for digital multiplex pcr assays
CN101846726A (en) * 2010-04-27 2010-09-29 广州市广晟微电子有限公司 Method, device and system for testing digital interface radio frequency chips
CN103033705A (en) * 2012-12-12 2013-04-10 深圳市凌启电子有限公司 Test method and test system of electronic equipment
CN104572383A (en) * 2014-11-28 2015-04-29 深圳市芯海科技有限公司 ATE (automatic test equipment)-based MCU (microprogrammed control unit)/SOC (system on chip) test method
CN105093094A (en) * 2015-09-16 2015-11-25 中国人民解放军国防科学技术大学 Automatic chip power-on reliability detection device and detection method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6934900B1 (en) * 2001-06-25 2005-08-23 Global Unichip Corporation Test pattern generator for SRAM and DRAM
CN1261857C (en) * 2003-07-29 2006-06-28 英业达股份有限公司 Waveform display method of data signal
CN101620241B (en) * 2008-07-01 2011-05-04 鸿富锦精密工业(深圳)有限公司 Signal decoding system and decoding method therefor
CN103049361A (en) * 2013-01-11 2013-04-17 加弘科技咨询(上海)有限公司 FPGA (Field Programmable Gata Array) with embedded logical analysis function and logical analysis system
CN103116554B (en) * 2013-03-05 2015-07-22 中国人民解放军国防科学技术大学 Signal sampling caching device used for field programmable gata array (FPGA) chip debugging
CN104021055B (en) * 2014-06-16 2015-06-03 珠海安联锐视科技股份有限公司 Automatic testing system and method for multimedia device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008143646A2 (en) * 2006-11-29 2008-11-27 Canon U.S. Life Sciences, Inc. Device and method for digital multiplex pcr assays
CN101846726A (en) * 2010-04-27 2010-09-29 广州市广晟微电子有限公司 Method, device and system for testing digital interface radio frequency chips
CN103033705A (en) * 2012-12-12 2013-04-10 深圳市凌启电子有限公司 Test method and test system of electronic equipment
CN104572383A (en) * 2014-11-28 2015-04-29 深圳市芯海科技有限公司 ATE (automatic test equipment)-based MCU (microprogrammed control unit)/SOC (system on chip) test method
CN105093094A (en) * 2015-09-16 2015-11-25 中国人民解放军国防科学技术大学 Automatic chip power-on reliability detection device and detection method

Also Published As

Publication number Publication date
CN106716381A (en) 2017-05-24
CN106716381B (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN112804121B (en) TTE network transmission delay test system and method
CN102831894B (en) Command processing method, command processing device and command processing system
CN109918306B (en) Audio processing device, system, method, apparatus and storage medium
CN107040430B (en) Selective extraction of network link training information
CN110489324A (en) Method, apparatus that test page jumps, storage medium, electronic device
CN104506376A (en) Multichannel redundant CAN (Controller Area Network) bus test system with frame start sensitive synchronous trigger function
CN104102124A (en) FPGA-based IRIG-B code decoder and decoding method thereof
CN111092767A (en) Method and device for debugging equipment
CN104093038A (en) Testing and monitoring method and device for real-time streaming media identification service
WO2017193795A1 (en) Data transmission method and device for mobile terminal
CN104915277A (en) Active receiving type communication debugging system based on LabVIEW, and communication debugging method thereof
CN103257606B (en) A kind of USB interface high-speed real-time sampling logic analyser
WO2017113360A1 (en) Method, system and device for data analysis
CN102148825B (en) Method and device for configuring and analysing dynamic protocol
CN114374745B (en) Protocol format processing method and system
CN205283749U (en) Intelligent test system of STB
CN107872352B (en) Performance test method, device and system of network management system
TW201743069A (en) Logic analyzer, method of retrieving data of the same, and method of performance testing
CN111049684B (en) Data analysis method, device, equipment and storage medium
CN113419932A (en) Equipment performance analysis method and device
CN109633702B (en) Satellite signal receiving and processing system and processing method
CN108021394B (en) PCM signal acquisition method and device
CN103269289B (en) Air traffic control radar information test method and equipment
CN110543439B (en) Signal processing system
CN113645052B (en) A firmware debugging method and related equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15911985

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15911985

Country of ref document: EP

Kind code of ref document: A1