Monitoring source data processing method for digital oscilloscope and digital oscilloscope

By digitally processing and decoding the monitoring signals of the digital oscilloscope, the monitoring accuracy and reliability issues of the digital oscilloscope when its data processing capability is limited are resolved, efficient analysis of communication signals and compatibility with third-party protocol analysis software are achieved, and the protocol analysis capabilities of the digital oscilloscope are expanded.

CN120499281BActive Publication Date: 2025-10-17SHENZHEN CITY SIGLENT TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510976299.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-16
Publication Date
2025-10-17
Estimated Expiration
2045-07-16

AI Technical Summary

Technical Problem

Existing digital oscilloscopes have limited data processing and analysis capabilities, making it difficult to effectively monitor and analyze unknown communication signals. This is especially true in scenarios where higher-performance digital oscilloscopes may not be available, resulting in poor monitoring accuracy and reliability.

Method used

By digitizing the waveform signal monitored by the digital oscilloscope, obtaining digital waveform data, and performing physical layer decoding and link layer decoding, converting it into bit stream and frame data, and finally encapsulating it into packaged data according to the preset storage type, including protocol parameter information, a comprehensive analysis of the communication signal is achieved.

Benefits of technology

It realizes efficient monitoring and analysis of communication signals, can convert signals into a format readable by third-party protocol analysis software, expands the protocol analysis function of the digital oscilloscope, and solves the problems of insufficient monitoring accuracy and reliability in existing technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120499281B_ABST
    Figure CN120499281B_ABST
Patent Text Reader

Abstract

The application discloses a kind of processing method and digital oscilloscope for monitoring source data of digital oscilloscope, first, the waveform signal of digital oscilloscope monitoring acquisition is carried out digitization processing;Then the digital waveform data obtained after digitization processing is decoded in physical layer, to obtain bit stream data;Again, the link layer decoding is carried out to bit stream data, to obtain frame data;Finally, the frame data obtained is encapsulated according to storage type, and the encapsulated data obtained after encapsulation is saved or forwarded.Due to the unknown signal monitoring function of digital oscilloscope, the communication signal transmitted in communication transmission line is converted into encapsulated data of preset storage format, which can be directly read by third-party protocol analysis software and analyzed in communication protocol level above link layer, to realize the verification of data transmission signal transmitted in communication network, and further solve the technical problem that third-party protocol analysis software cannot monitor communication signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of oscilloscopes, and in particular to a monitoring source data processing method for a digital oscilloscope and a digital oscilloscope. Background Art

[0002] Monitoring and analyzing unknown signals are core functions of digital oscilloscopes, especially when signal characteristics (such as frequency, amplitude, shape, and occurrence time) are uncertain. Applying these core functions and strategies enables the capture, visualization, and analysis of unknown signals. Digital oscilloscopes offer comprehensive solutions for monitoring, capturing, visualizing, and analyzing unknown signals through features such as high sampling rates (increasing sampling frequency), deep memory (extending the capture window), flexible trigger mechanisms (edge, pulse width, runt, slope, window, and logic triggering), automatic parameter settings (automatically adjusting vertical sensitivity, horizontal timebase, and trigger settings), peak detection, resolution / averaging modes (digital averaging of adjacent sampling points), math operations, and FFT processing. However, in some applications, the data processing and analysis capabilities of digital oscilloscopes at the monitoring site limit the accuracy and reliability of parameter assessment of unknown signals. To improve this, a higher-performance digital oscilloscope is required. Summary of the Invention

[0003] The main technical problem solved by the present invention is how to improve the monitoring and analysis capabilities of unknown communication signals under the condition that the data processing and analysis capabilities of current digital oscilloscopes are limited.

[0004] According to a first aspect, the present application provides a method for processing monitoring source data of a digital oscilloscope, comprising:

[0005] Digitally processing the waveform signal acquired by monitoring and collecting with a digital oscilloscope to obtain digital waveform data; in the digital waveform data, a sampling point sequence is represented by a code word value sequence;

[0006] Performing physical layer decoding on the digital waveform data to obtain bit stream data; the physical layer decoding is to convert the code word value sequence into a bit-divided logic level sequence;

[0007] Performing link layer decoding on the bit stream data to obtain frame data; the link layer decoding is decoding the frame data of each frame signal from the bit stream data according to a preset communication protocol specification;

[0008] Encapsulating the acquired frame data according to a preset storage type to obtain encapsulated data;

[0009] The encapsulated data is saved and / or forwarded, where the encapsulated data includes protocol parameter information.

[0010] In one embodiment, the protocol parameter information includes a destination MAC address, a source MAC address and / or a protocol type of a link layer corresponding to the communication protocol specification;

[0011] In one embodiment, the protocol parameter information further includes a protocol version, a service type, a length, a symbol and / or an IP address of a network layer corresponding to the communication protocol specification;

[0012] In one embodiment, the protocol parameter information further includes a port number, a sequence number and / or a data offset of a transport layer corresponding to the communication protocol specification;

[0013] In one embodiment, the protocol parameter information further includes ASCII encoded request text information of an application layer corresponding to the communication protocol specification.

[0014] In one embodiment, the digital oscilloscope performs digital processing on the waveform signal collected by the digital oscilloscope, including:

[0015] The digital oscilloscope displays the waveform of the analog signal collected by the probe;

[0016] An analog-digital converter converts the collected analog signal waveform into the digital waveform data; wherein the sampling rate of the analog-digital converter is not less than the baud rate of the analog signal to ensure that physical layer decoding can obtain each bit level information; the digital waveform data is a code word value sequence matching the analog-digital converter.

[0017] In one embodiment, the digital oscilloscope performs physical layer decoding on the digital waveform data, including:

[0018] According to a preset decoding threshold, the code word values in the code word value sequence are compared with the decoding threshold one by one, and the code word value sequence is converted into a logical level sequence divided by a start point sequence number and an end point sequence number; the logical level sequence obtained after division is the bit stream data;

[0019] The bit stream data contains logical level value information, start point position information and / or end point position information.

[0020] In one embodiment, the comparison of the code word values in the code word value sequence with the decoding threshold one by one includes:

[0021] Only when the code word value of the sampling point crosses the preset time interval of the decoding threshold plus-minus hysteresis does the level jump;

[0022] And / or, synchronizing the clock with a fixed baud rate or clock signal sampling position for dividing the logical level information of each bit;

[0023] When the clock is synchronized with the sampling position of the clock signal, then the bit is divided according to the data signal sampling point position corresponding to the rising edge or falling edge of the clock signal; when the clock is synchronized with the fixed baud rate, the first rising edge or falling edge of the data signal is found as the starting position, and the quotient of the sampling rate and the baud rate is taken as the bit width to calculate the signal clock of each bit sampling point to recover the data.

[0024] In an embodiment, the link layer decoding of the bit stream data comprises:

[0025] The starting position of the frame data of any frame in the bit stream data is defined;

[0026] According to the frame structure of the communication protocol specification, the subsequent characters of the frame data or the last bit of the bit stream data are sequentially decoded to obtain the frame data of a frame signal;

[0027] According to the communication protocol specification and the obtained frame data, other frame data is decoded from the bit stream data.

[0028] According to a second aspect, the application provides a digital oscilloscope for applying the monitoring source data processing method as described in the first aspect, the digital oscilloscope comprising a communication signal acquisition module for monitoring the communication signal transmitted in the communication transmission line;

[0029] The communication signal acquisition module comprises:

[0030] A signal acquisition unit is configured to acquire the analog signal transmitted in the communication transmission line through a monitoring probe and to stably display the waveform of the analog signal;

[0031] An analog-to-digital conversion unit is configured to convert the waveform of the acquired analog signal into the digital waveform data using an analog-to-digital converter;

[0032] A stream data acquisition unit is configured to perform physical layer decoding on the digital waveform data to obtain bit stream data;

[0033] A frame data acquisition unit is configured to perform link layer decoding on the bit stream data to obtain frame data;

[0034] A data packaging unit is configured to package the obtained frame data according to a preset storage type to obtain packaged data;

[0035] A data output unit is configured to save and / or forward the packaged data; wherein the packaged data contains protocol parameter information.

[0036] In an embodiment, the digital oscilloscope further comprises a display module configured to display a human-computer interaction interface;

[0037] The human-computer interaction interface comprises a decoding function setting area; a protocol type setting window, a decoding information configuration window and a decoding protocol configuration window are arranged in the decoding function setting area; the protocol type setting window is used for presetting the protocol type of the communication signal transmitted in the communication transmission line; the decoding information configuration window is used for setting the channel parameters of the analog signal accessed to the digital oscilloscope and setting the decoding parameters of the physical layer decoding; and the decoding protocol configuration window is used for setting the frame structure parameters in the link layer decoding.

[0038] In an embodiment, the human-computer interaction interface further comprises a protocol data saving setting area, and the protocol data saving setting area is provided with a file format setting window and a data storage parameter setting window; the file format setting window is used for setting the storage format of the encapsulated frame data; the data storage parameter setting window is used for setting the storage position of the encapsulated data, and / or sending the encapsulated data to third-party protocol analysis software through a preset communication interface; and the third-party protocol analysis software is used for performing frame data post-processing on the encapsulated data to analyze the frame data of any frame signal in the communication signal.

[0039] According to a third aspect, the present application provides a computer readable storage medium, and the medium stores a program which can be executed by a processor to implement the monitoring source data processing method according to the first aspect.

[0040] The digital oscilloscope provided in the embodiments of the present application can convert the communication signal transmitted in the communication transmission line into encapsulated data in a preset storage format by using the unknown signal monitoring function of the digital oscilloscope, and the encapsulated data can be directly read by third-party protocol analysis software and used for protocol analysis of the communication protocol level above the link layer, so that the data transmission signal transmitted in the communication network can be checked, and the technical problem that the third-party protocol analysis software cannot perform communication signal monitoring is solved. BRIEF DESCRIPTION OF DRAWINGS

[0041] Figure 1 It is a flowchart of the monitoring source data processing method in an embodiment;

[0042] Figure 2 It is a schematic diagram of the digital oscilloscope probe connection in an embodiment;

[0043] Figure 3 It is a schematic diagram of the analog signal digital sampling in an embodiment;

[0044] Figure 4 It is a schematic diagram of dividing the logic level by the decoding threshold value in an embodiment;

[0045] Figure 5 It is an example diagram of dividing the bit stream sequence into different field types in an embodiment;

[0046] Figure 6 FIG. 1 is a structural block diagram of a communication signal acquisition module according to an embodiment of the present application;

[0047] Figure 7 FIG. 2 is a schematic diagram of a decoding function setting area according to an embodiment of the present application;

[0048] Figure 8 FIG. 3 is a display example diagram of a third-party protocol analysis software opening a frame encapsulated data of a CAN-XL protocol according to an embodiment of the present application. DETAILED DESCRIPTION

[0049] The application will be further described in details through specific embodiments and with reference to the drawings. In different embodiments, similar elements are designated by similar reference numerals. In the following embodiments, many details are described in order to make the application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different cases, or can be replaced by other elements, materials or methods. In some cases, some operations related to the application are not shown or described in the specification in order to avoid the core part of the application being overwhelmed by too many descriptions, and it is not necessary to describe these related operations in detail for those skilled in the art according to the description in the specification and general technical knowledge in the art.

[0050] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various embodiments. Meanwhile, the steps or actions in the method description can also be sequentially adjusted or changed in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment, and do not mean that the sequence is necessary, unless otherwise stated that a certain sequence must be followed.

[0051] In this paper, the serial numbers of components, such as "first", "second", etc., are only used to distinguish the described objects, and do not have any sequence or technical meaning. Unless otherwise specified, the "connection" and "coupling" in this application include direct and indirect connections (couplings).

[0052] The process of monitoring communication signals by a digital oscilloscope generally includes preliminary analysis (rapid evaluation of unknown signal characteristics and joint observation of time and frequency domains), feature extraction (preprocessing of monitoring data, parallel calculation of multiple algorithms, cross-validation, and performance evaluation), advanced analysis (signal decomposition, nonlinear feature extraction, and application of deep learning models), and monitoring result verification (consistency check, reference signal verification, and signal rule library comparison). In the process of feature extraction, advanced analysis, and monitoring result verification, certain requirements are needed for the hardware performance of the digital oscilloscope (for data processing and analysis). At the present stage, in most application scenarios, it is difficult for a general digital oscilloscope to achieve or complete the above processes.

[0053] For example, monitoring the communication data of CAN protocol signals, in order to verify whether the data signals transmitted in the communication network are correct, the signals transmitted by the signal line need to be monitored in real time, so as to check the data obtained by monitoring with the data received by the receiving end, and realize the verification of the transmission performance of the CAN network. CAN protocol has been widely used in many industrial fields, and three generations of protocols (CAN-2.0, CAN-FD and CAN-XL) have been evolved. Unlike CAN2.0 and CAN-FD, CAN-XL protocol adds PWM encoding / decoding in PCS and PMA sublayers, switches the bus driving mode of PMA sublayer between explicit / implicit and level_0 / level_1, realizes data segment rate improvement, and is compatible with traditional CAN NRZ encoding. CAN frame is composed of three main stages, including arbitration phase, data phase and arbitration phase. Each stage contains different fields, which are used to realize bus arbitration, data transmission and error checking functions. CAN controller (controller) is used to convert the message into CAN frame conforming to CAN specification and send it in binary code stream, realize CAN bus protocol bottom layer and data link layer, define communication rules and rate upper limit. CAN transceiver (transceiver) is used to convert logic level into differential level, which is applied to the physical layer of CAN bus, and is matched with different transceivers to determine the actual transmission capacity of physical signal. Specifically, in the controller mode, the CAN signal data speed of the arbitration phase can reach 500kbit / s, while in the CAN FD protocol signal, the data segment rate can be as high as 8Mbit / s, and in the CAN-XL protocol signal, the transceiver matched with CAN-SIC-XL fast mode realizes the data rate of 20Mbit / s. The working mode of CAN and CAN-FD signal transceiver is normal, and the driving level is explicit level and implicit level. The standard working mode of CAN-XL signal is SIC mode, and the driving level is also explicit level and implicit level, which is used in arbitration phase and data phase. SIC-XL controller can switch the transceiver to Fast mode in data phase, at this time, Level_0 / Level_1 is used as driving level, and the output will be an alternating differential signal, which effectively reduces reflection and signal distortion. The main components of CAN-XL frame are introduced below. In the arbitration phase, it includes Priority ID, XL, ADS. Priority ID has 11 bits, which is bus arbitration priority identifier, used for processing priority; XL contains multiple bits, which is implicit level identifier CAN-XL frame, which distinguishes CAN-2.0 / CAN-FD; ADS contains 4 fixed bits from arbitration phase to data phase, and ADH bit enters fast phase.The data stage includes a control field, a data field and a cyclic redundancy check field. The SDT is an 8-bit protocol type identifier, indicating the data segment encapsulation type; the SEC is 1 bit, indicating whether the data is encrypted; the DLC is 11 bits, defining the data segment length; the SBC is 3 bits, which are dynamic padding bits; the PCRC is 13 bits, used for checking the data integrity of the arbitration segment and the control segment; the VCID is 8 bits, a virtual CAN channel identifier, similar to the VLAN in Ethernet; the AF is 32 bits, used for addressing; the Data bytes are 1-2048 bytes, with a transmission rate of 10M or higher; and the FCRC is 32 bits, used for data checking. The arbitration stage includes a response field and an end field. The DAS is converted from the data segment to the arbitration segment, including 4 fixed bits; the ACK is 6 bits, indicating confirmation of receiving the data frame; and the EOF is 7 bits, indicating the end of the frame. The CAN-XL is a new generation of CAN technology, and its SIC / FAST dual-mode separation technology realizes high-speed and stable transmission in the data stage, meeting the needs of modern automotive electronics and industrial automation for high-speed and high-capacity data transmission. At the same time, for testing of the CAN-XL signal, in addition to the need for high sampling rate, the digital oscilloscope also needs to have data processing and decoding functions, etc., to realize clear display of the signal frame, and thus help engineers accurately locate problems and debug the system to optimize network performance, which is the key to CAN-XL network development and maintenance.

[0054] In addition, even if a digital oscilloscope supporting decoding of multiple protocols is used, only physical layer and link layer decoding can be performed. In order to realize analysis and monitoring of higher layer protocols, third-party protocol analysis software (with very rich and friendly user interaction operation) is generally used to complete the analysis and monitoring. However, the digital oscilloscope on the market only supports export of the original sampling file of the waveform, and the original sampling file cannot be directly used on the third-party software, greatly limiting the expansibility and flexibility of the protocol analysis function of the digital oscilloscope. The third-party software is run on a general computer or a smart terminal, and can only use the general interface (wireless and wired) of the PC to obtain data. In the application environment of long-term continuous monitoring, how to use the digital oscilloscope as a medium to forward the communication data signals obtained by real-time monitoring from the communication entity (signal line) to the third-party software for real-time monitoring and analysis is a technical problem to be solved by an embodiment of the present application.

[0055] Embodiment one:

[0056] Please refer to Figure 1, for a flowchart of a monitoring source data processing method in an embodiment, the monitoring source data processing method is used to monitor the communication signals transmitted in the communication line and convert the monitored communication signals (analog signals) into digital signal data, which is used as the data source of the third-party protocol analysis software, so as to combine the unknown signal monitoring capability of the digital oscilloscope and the data analysis capability of the third-party protocol analysis software, and realize the detection function of the communication signals transmitted in the communication line. The monitoring source data processing method comprises:

[0057] Step 101, obtaining digital waveform data.

[0058] The waveform signal collected and obtained by the digital oscilloscope monitoring is digitally processed to obtain digital waveform data, wherein the sampling point sequence is represented by a code word value sequence in the digital waveform data.

[0059] Please refer to Figure 2 , for a digital oscilloscope probe connection diagram in an embodiment, the digital oscilloscope connects the communication signal line through a suitable probe, one end of the probe contacts the to-be-measured point in the communication line, and the other end is connected to the input channel of the digital oscilloscope, which is used to collect the communication signals in the measured communication line, and display the monitored waveform signal on the display screen of the digital oscilloscope to observe the waveform of the to-be-measured communication signal in real time.

[0060] In an embodiment, the waveform signal collected and obtained by the digital oscilloscope monitoring is digitally processed, specifically, the parameters of the digital oscilloscope are adjusted first to stabilize the display of the waveform of the analog signal collected through the monitoring probe. Then the analog-to-digital converter (ADC) is applied to convert the collected analog signal waveform into digital waveform data. In an embodiment, the digital oscilloscope quantizes the real-time monitored analog signal into a digital signal through a front-end analog-to-digital converter and temporarily stores it in the memory of the digital oscilloscope, waiting for further processing and display.

[0061] Please refer to Figure 3 , for an analog signal digital sampling diagram in an embodiment, the sampling rate of the analog-to-digital converter is not less than the baud rate of the analog signal, and the level information of each bit is obtained. The digital waveform data is a code word value sequence matching the analog-to-digital converter.

[0062] Step 102, obtaining bit stream data.

[0063] The digital waveform data is subjected to physical layer decoding to obtain bit stream data. The physical layer decoding is a process of converting the codeword value sequence into a logic level sequence divided by bit, i.e. comparing the codeword value in the codeword value sequence with the decoding threshold one by one according to a preset decoding threshold, and converting the codeword value sequence into a logic level sequence divided by start point sequence number and end point sequence number. The logic level sequence obtained after the division is the bit stream data, which contains logic level value information, start point position information and / or end point position information.

[0064] Reference is made to Figure 4 For a schematic diagram of dividing logic levels by decoding threshold in an embodiment, only when the codeword value of the sampling point crosses the preset time interval of the decoding threshold plus or minus hysteresis is the level transition made during the process of comparing the codeword value in the codeword value sequence with the decoding threshold one by one. In an embodiment, the fixed baud rate or the sampling position of the clock signal is used to synchronize the clock for dividing the logic level information of each bit. When the sampling position of the clock signal is used to synchronize the clock, the bit is divided according to the data signal sampling point position corresponding to the rising edge or falling edge of the clock signal. When the fixed baud rate is used to synchronize the clock, the signal clock of the recovered data of each bit sampling point is calculated by taking the quotient of the sampling rate and the baud rate after finding the first rising edge or falling edge of the data signal as the start position.

[0065] During the process of physical layer decoding, the first step is the processing of the level segment. After the analog signal is subjected to digital processing, it becomes a sampling point sequence stored in the memory. The processor compares the codeword value of the sampling point with the decoding threshold one by one according to the decoding threshold set by the user, and converts the sampling point data into a logic level sequence divided by start point sequence number and end point sequence number. In the processing process of this step, in order to reduce the problem of logic level judgment error caused by signal quality, the hysteresis processing can be introduced. In the judgment of the logic level, only when the codeword value of the sampling point crosses the range of the decoding threshold plus or minus hysteresis is the level transition made. Under this method, if the clock sampling position happens to have an abnormal waveform crossing the threshold and being less than the hysteresis range, it will not be detected as an abnormal level logic. After the judgment of the decoding threshold, the codeword value sequence is converted into the logic level sequence, but the position information of each bit is not available at this time. In addition, the physical layer can use a specific encoding scheme (such as NRZ, Manchester, etc.) to improve the anti-interference ability and transmission efficiency of the signal. The decoding is a reverse process of restoring the encoded signal to the original data.

[0066] After the physical layer decoding, the sampling point sequence originally represented by the codeword value is converted into a logic level sequence divided by bit. The data is stored in the memory in the form of a structure containing logic level value, start point position and end point position information, for subsequent link layer decoding.

[0067] Step 103, obtaining frame data.

[0068] The bit stream data is link layer decoded to obtain the frame data. The link layer decoding is decoding the frame data of each frame signal from the bit stream data according to a preset communication protocol specification, specifically including:

[0069] First, the starting position of any frame data in the bit stream data is defined; then, the subsequent characters of the frame data or the last bit of the bit stream data is decoded in sequence according to the frame structure of the communication protocol specification to obtain the frame data of a frame signal; and then other frame data is decoded from the bit stream data according to the communication protocol specification and the obtained frame data.

[0070] Please refer to Figure 5 , an example diagram of dividing the bit stream sequence into different field types in an embodiment. The bit stream decoded by the physical layer is a structure data of a string of 01 sequences, which does not have actual communication meaning at this time. The link layer decoding is giving the stored bit stream data a specific meaning according to the protocol specification, including preamble, frame start delimiter, frame type, synchronization field, data field, check field, frame end position delimiter, etc. Generally, when parsing a frame data, the starting position of the frame needs to be found first. According to different protocols, it may be to find a fixed starting segment code type, or to set the first bit offset as the starting position. After locating the starting position of the frame, the subsequent characters are decoded in sequence according to the frame structure of the protocol until the end of the frame or the last bit of the bit stream. If data that does not match the frame structure is detected during decoding, this error is recorded, and the decoding of the frame can be ended according to the protocol specification. After completing the decoding of the frame data, the starting position of the next frame is found, and each frame data is decoded in sequence.

[0071] Step 104, obtaining encapsulated data.

[0072] The obtained frame data is encapsulated according to a preset storage type to obtain encapsulated data. After completing the link layer decoding, the decoding result of the link layer can be seen on the digital oscilloscope interface. At this time, the file type supported by the third-party software (protocol analysis software) can be set to save the decoding data.

[0073] Step 105, outputting the encapsulated data.

[0074] The encapsulation data file is imported into third-party software for upper-layer analysis. In an embodiment, according to a file format set by a user, header information and corresponding actual data of the data packet need to be written. Taking a.pcap file format as an example, a global header, a header of each packet, and packet data need to be packaged. By constructing a structure, identification byte sequence of the header, format version number, accuracy, maximum length, link layer type, packet capture length, packet actual length, and the like are written, specific data content is written after the header information is completed, and finally, a.pcap format file is exported. Similarly, other format files are written according to file format specifications and third-party software reading information modes.

[0075] The encapsulation data file is imported into third-party software for upper-layer analysis. In an embodiment, according to a file format set by a user, header information and corresponding actual data of the data packet need to be written. Taking a.pcap file format as an example, a global header, a header of each packet, and packet data need to be packaged. By constructing a structure, identification byte sequence of the header, format version number, accuracy, maximum length, link layer type, packet capture length, packet actual length, and the like are written, specific data content is written after the header information is completed, and finally, a.pcap format file is exported. Similarly, other format files are written according to file format specifications and third-party software reading information modes.

[0076] In the monitoring source data processing method disclosed in the embodiment, the waveform signal collected by the digital oscilloscope is first digitally processed; then the digital waveform data obtained after the digital processing is physically decoded to obtain bit stream data; the bit stream data is then link layer decoded to obtain frame data; finally, the obtained frame data is encapsulated according to a storage type, and the encapsulated data is saved or forwarded. By applying the unknown signal monitoring function of the digital oscilloscope, the communication signal transmitted in the communication transmission line is converted into encapsulation data in a preset storage format, which can be directly read by third-party protocol analysis software and used for protocol analysis of a communication protocol layer above the link layer, so as to realize verification of the data transmission signal transmitted in the communication network, and solve the technical problem that the third-party protocol analysis software cannot monitor the communication signal.

[0077] Embodiment Two

[0078] In an embodiment of the present application, a digital oscilloscope is also disclosed, which is used to apply the monitoring source data processing method as described in Embodiment One. The digital oscilloscope comprises a communication signal acquisition module configured to monitor a communication signal transmitted in a communication transmission line.

[0079] Reference is made to Figure 6Fig. 1 is a structural block diagram of a communication signal acquisition module in an embodiment. The communication signal acquisition module includes a signal acquisition unit 10, an analog-to-digital conversion unit 20, a stream data acquisition unit 30, a frame data acquisition unit 40, a data packaging unit 50, and a data output unit 60. The signal acquisition unit 10 is configured to acquire an analog signal transmitted in a communication transmission line through a monitoring probe and to stabilize a waveform of the analog signal. The analog-to-digital conversion unit 20 is configured to convert the waveform of the acquired analog signal into digital waveform data using an analog-to-digital converter. The stream data acquisition unit 30 is configured to decode the digital waveform data at a physical layer to acquire bit stream data. The frame data acquisition unit 40 is configured to decode the bit stream data at a link layer to acquire frame data. The data packaging unit 50 is configured to package the acquired frame data according to a preset storage type to acquire packaged data. The data output unit 60 is configured to save and / or forward the packaged data, wherein the packaged data contains protocol parameter information.

[0080] In an embodiment, the digital oscilloscope further includes a display module configured to display a human-computer interaction interface. The human-computer interaction interface includes a decoding function setting area in which a protocol type setting window, a decoding information configuration window, and a decoding protocol configuration window are provided. The protocol type setting window is configured to preset a protocol type of a communication signal transmitted in a communication transmission line. The decoding information configuration window is configured to set channel parameters of an analog signal accessed to the digital oscilloscope and to set decoding parameters of physical layer decoding. The decoding protocol configuration window is configured to set frame structure parameters in link layer decoding. In an embodiment, a setting saving window is further provided in the decoding function setting area and is configured to perform a saving operation on modified parameter data of the protocol type setting window, the decoding information configuration window, and the decoding protocol configuration window or to export parameter information into a file.

[0081] Reference is made to Figure 7 Fig. 2 is a schematic diagram of a decoding function setting area in an embodiment. The decoding function page (decoding function setting area) is a decoding data saving function setting page supported by the digital oscilloscope for direct import of decoding data by third-party protocol analysis software and is a sub-function under the decoding module. In an embodiment, the decoding function page includes selection of a protocol type, a signal source configuration menu, a protocol configuration menu, and a saving menu. The signal source configuration menu includes channel setting of a signal accessed to the oscilloscope and threshold hysteresis setting of physical layer decoding. The protocol configuration menu includes frame structure information setting related to a specific protocol. After the saving menu is clicked, a protocol data saving page is entered, which includes setting of a file format and calling of a file manager. A user can customize a name and a path in the file manager to save a decoding data file in a current format.

[0082] In an embodiment, the human-computer interaction interface further comprises a protocol data storage setting area, the protocol data storage setting area is provided with a file format setting window and a data storage parameter setting window, the file format setting window is used for setting a storage format of the encapsulated frame data, the data storage parameter setting window is used for setting a storage location of the encapsulated data, and / or sending the encapsulated data to third-party protocol analysis software through a preset communication interface, the third-party protocol analysis software is used for performing frame data post-processing on the encapsulated data to analyze frame data of any frame signal in the communication signal.

[0083] Please refer to Figure 8 FIG. 1 is a display example diagram of opening a frame encapsulated data of CAN-XL protocol by third-party protocol analysis software in an embodiment, the digital oscilloscope disclosed in the embodiment can be directly connected to a communication link to acquire communication signals, and the acquired communication signals can be directly converted into a file format supported by third-party protocol analysis software, thereby greatly expanding the protocol analysis function of the oscilloscope. Since the protocol decoding function and decoding result display form supported by the digital oscilloscope are not limited, the upper-layer protocol analysis can be performed on the third-party software in the form of a file, thereby further expanding the communication signal analysis capability of the digital oscilloscope. The digital oscilloscope does not need to add additional tools, and the acquisition and raw data conversion can be directly performed, which has low operation complexity and can solve the technical problem that the third-party software cannot directly acquire raw data of the communication signal.

[0084] Those skilled in the art can understand that all or part of the functions of the various methods in the above embodiments can be realized by hardware or by a computer program. When all or part of the functions in the above embodiments are realized by a computer program, the program can be stored in a computer readable storage medium, and the storage medium can include a read-only memory, a random access memory, a magnetic disk, an optical disk, a hard disk, etc. The above functions are realized by executing the program by a computer. For example, the program is stored in a memory of a device, and when the program in the memory is executed by a processor, the above functions are realized. In addition, when all or part of the functions in the above embodiments are realized by a computer program, the program can also be stored in a server, another computer, a disk, an optical disk, a flash disk or a mobile hard disk, etc. The program is downloaded or copied into the memory of a local device, or the system of the local device is updated, and when the program in the memory is executed by a processor, the above functions are realized.

[0085] The above application of specific examples to illustrate the present invention, is only used to help understand the present invention, and does not limit the present invention. For the skilled in the art to which the present invention belongs, according to the idea of the present invention, several simple deductions, deformation or replacement can be made.

Claims

1. A monitoring source data processing method for a digital oscilloscope, characterized in that: include: Digitally process the waveform signal acquired by monitoring and collecting with a digital oscilloscope to obtain digital waveform data; Representing a sampling point sequence in the digital waveform data by a codeword value sequence; Performing physical layer decoding on the digital waveform data to obtain bit stream data; The physical layer decoding is to convert the code word value sequence into a bit-divided logic level sequence; Performing link layer decoding on the bit stream data to obtain frame data; The link layer decoding is to decode the frame data of each frame signal from the bit stream data according to a preset communication protocol specification; Encapsulating the acquired frame data according to a preset storage type to obtain encapsulated data; saving and / or forwarding the encapsulated data, where the encapsulated data includes protocol parameter information; The performing physical layer decoding on the digital waveform data comprises: According to a preset decoding threshold, codeword values ​​in the codeword value sequence are compared with the decoding threshold one by one, and the codeword value sequence is converted into a logic level sequence divided by a starting point sequence number and an ending point sequence number; the logic level sequence obtained after the division is the bit stream data; The bit stream data includes logic level value information, starting point position information and / or ending point position information; The comparing the codeword values ​​in the codeword value sequence with the decoding threshold value one by one includes: The level jump is performed only when the codeword value of the sampling point crosses the preset time interval after the decoding threshold plus or minus the hysteresis; Synchronize the clock at a fixed baud rate or clock signal sampling position to divide the logic level information of each bit; When the clock is synchronized using the sampling position of the clock signal, the bits are divided according to the data signal sampling point position corresponding to the rising edge or falling edge of the clock signal; when the clock is synchronized using a fixed baud rate, the first rising edge or falling edge of the data signal is first found as the starting position, and the quotient of the sampling rate and the baud rate is used as the bit width to calculate the signal clock for each bit sampling point to recover the data; The link layer decoding of the bit stream data comprises: Defining a starting position of the frame data of any frame in the bit stream data; Decoding subsequent characters of the frame data or the last bit of the bit stream data in sequence according to the frame structure specified by the communication protocol to obtain the frame data of a frame signal; The other frame data are decoded from the bit stream data according to the communication protocol specification and the acquired frame data.

2. The monitoring source data processing method according to claim 1, characterized in that: The protocol parameter information includes a destination MAC address, a source MAC address and / or a protocol type of a link layer corresponding to the communication protocol specification; And / or, the protocol parameter information further includes a protocol version, service type, length, identifier and / or IP address of a network layer corresponding to the communication protocol specification; And / or, the protocol parameter information further includes a port number, a sequence number and / or a data offset of a transport layer corresponding to the communication protocol specification; And / or, the protocol parameter information further includes ASCII-encoded request text information of the application layer corresponding to the communication protocol specification.

3. The monitoring source data processing method according to claim 1, characterized in that: The digital processing of the waveform signal acquired by monitoring and collecting by the digital oscilloscope includes: The digital oscilloscope stably displays the waveform of the analog signal collected by the monitoring probe; An analog-to-digital converter is used to convert the waveform of the collected analog signal into the digital waveform data; wherein the sampling rate of the analog-to-digital converter is not less than the baud rate of the analog signal to ensure that the physical layer decoding obtains the level information of each bit; the digital waveform data is a code word value sequence that matches the analog-to-digital converter.

4. A digital oscilloscope, characterized in that: For applying the monitoring source data processing method according to any one of claims 1 to 3, the digital oscilloscope comprises a communication signal acquisition module for monitoring the communication signal transmitted in the communication transmission line; The communication signal acquisition module includes: A signal acquisition unit, configured to acquire an analog signal transmitted in a communication transmission line through a monitoring probe and stably display the waveform of the analog signal; an analog-to-digital conversion unit, configured to convert the waveform of the collected analog signal into the digital waveform data using an analog-to-digital converter; a stream data acquisition unit, configured to perform physical layer decoding on the digital waveform data to acquire bit stream data; a frame data acquisition unit, configured to perform link layer decoding on the bit stream data to acquire frame data; a data encapsulation unit, configured to encapsulate the acquired frame data according to a preset storage type to obtain encapsulated data; A data output unit is used to store and / or forward the encapsulated data; wherein the encapsulated data includes protocol parameter information.

5. The digital oscilloscope according to claim 4, wherein: It also includes a display module, which is used to display a human-computer interaction interface; The human-computer interaction interface includes a decoding function setting area; A protocol type setting window, a decoding information configuration window and a decoding protocol configuration window are provided in the decoding function setting area; the protocol type setting window is used to preset the protocol type of the communication signal transmitted in the communication transmission line, the decoding information configuration window is used to set the channel parameters of the analog signal connected to the digital oscilloscope and set the decoding parameters of the physical layer decoding, and the decoding protocol configuration window is used to set the frame structure parameters during link layer decoding.

6. The digital oscilloscope according to claim 5, wherein: The human-computer interaction interface also includes a protocol data storage setting area; The protocol data saving setting area is provided with a file format setting window and a data storage parameter setting window; the file format setting window is used to set the storage format of the frame data after encapsulation, and the data storage parameter setting window is used to set the storage location of the encapsulated data, and / or send the encapsulated data to a third-party protocol analysis software through a preset communication interface; the third-party protocol analysis software is used to perform frame data post-processing on the encapsulated data, and parse the frame data of any frame signal in the communication signal at a communication protocol level above the link layer.

7. A computer-readable storage medium, characterized in that The medium stores a program, which can be executed by a processor to implement the monitoring source data processing method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Oscilloscope with decoding function

    CN103884890A

  • Bus signal protocol decoding method

    CN106850339A