Monitoring source data processing method for digital oscilloscope and digital oscilloscope

By performing digital processing and protocol layer decoding on the digital oscilloscope, encapsulated data that can be read directly by third-party software is solved, and the data processing limitations of digital oscilloscopes are solved when monitoring unknown signals, and efficient analysis and verification of communication signals are achieved.

CN120499281AActive Publication Date: 2025-08-15SHENZHEN CITY SIGLENT TECH
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing digital oscilloscopes are difficult to effectively monitor and analyze unknown communication signals when data processing and analysis capabilities are limited, especially when higher performance equipment is required, and cannot meet the decoding and analysis needs of more complex protocols.

Method used

By digitizing the waveform signal monitored by the digital oscilloscope, decoding the physical layer and link layer, obtaining bitstream and frame data, and packaging according to the preset storage type, the encapsulated data can be directly read by the third-party protocol analysis software.

Benefits of technology

It realizes verification of data transmission signals in the communication network, expands the protocol analysis function of the digital oscilloscope, and can directly generate files supported by third-party software, improving the flexibility and accuracy of monitoring and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120499281A_ABST
    Figure CN120499281A_ABST
Patent Text Reader

Abstract

The invention discloses a monitoring source data processing method for a digital oscilloscope and the digital oscilloscope. The monitoring source data processing method comprises the following steps: firstly, performing digital processing on a waveform signal monitored and acquired by the digital oscilloscope; carrying out physical layer decoding on the digital waveform data obtained after digital processing to obtain bit stream data; performing link layer decoding on the bit stream data to obtain frame data; and finally, packaging the obtained frame data according to the storage type, and storing or forwarding the packaged data obtained after packaging. Due to the fact that the unknown signal monitoring function of the digital oscilloscope is applied, communication signals transmitted in the communication transmission line are converted into packaging data in a preset storage format, and the packaging data can be directly read by third-party protocol analysis software and used for protocol analysis of communication protocol levels above a link layer. According to the invention, verification of data transmission signals transmitted in a communication network is realized, and the technical problem that third-party protocol analysis software cannot monitor communication signals is solved.
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 used in the field can limit the accuracy and reliability of unknown signal parameter assessment. 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: 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; 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 decoding 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; The encapsulated data is saved and / or forwarded, where the encapsulated data includes protocol parameter information.

[0005] 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; 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.

[0006] In one embodiment, 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 can obtain each bit level information; the digital waveform data is a code word value sequence that matches the analog-to-digital converter.

[0007] In one embodiment, performing physical layer decoding on the digital waveform data includes: 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, start point position information and / or end point position information.

[0008] In one embodiment, comparing the codeword values in the codeword value sequence with the decoding threshold 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; and / or synchronizing a clock at a fixed baud rate or clock signal sampling position for dividing 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 sampling point to recover the data.

[0009] In one embodiment, performing link layer decoding on the bit stream data includes: 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.

[0010] According to a second aspect, the present 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 a communication signal transmitted in a 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.

[0011] In one embodiment, the digital oscilloscope further includes a display module, wherein the display module 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 set 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.

[0012] In one embodiment, the human-computer interaction interface also includes 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 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 to parse the frame data of any frame signal in the communication signal.

[0013] According to a third aspect, the present application provides a computer-readable storage medium having a program stored thereon, wherein the program can be executed by a processor to implement the monitoring source data processing method as described in the first aspect.

[0014] The digital oscilloscope provided in the embodiment of the present application, by utilizing the unknown signal monitoring function of the digital oscilloscope, converts the communication signal transmitted in the communication transmission line into encapsulated data in a preset storage format, which can be directly read by third-party protocol analysis software and perform protocol analysis on the communication protocol level above the link layer, so as to realize the verification of the data transmission signal transmitted in the communication network, thereby solving the technical problem that the third-party protocol analysis software cannot monitor the communication signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A schematic diagram of a flow chart of a monitoring source data processing method in an embodiment; Figure 2 A schematic diagram of connecting a digital oscilloscope probe in an embodiment; Figure 3 A schematic diagram of digital sampling of analog signals in an embodiment; Figure 4 A schematic diagram of dividing logic levels by decoding thresholds in one embodiment; Figure 5 An example diagram showing the division of a bit stream sequence into different field types in one embodiment; Figure 6 This is a structural block diagram of a communication signal acquisition module in an embodiment; Figure 7 A schematic diagram of a decoding function setting area in an embodiment; Figure 8 This is an example diagram of a display of a frame of encapsulated data of the CAN-XL protocol opened by third-party protocol analysis software in one embodiment. DETAILED DESCRIPTION

[0016] The present invention will be further described in detail below by means of specific embodiments in conjunction with the accompanying drawings. Similar elements in different embodiments are numbered with associated similar elements. In the following embodiments, many detailed descriptions are provided to enable the present application to be better understood. However, those skilled in the art will readily appreciate that some of the features may be omitted in different circumstances, or may be replaced by other elements, materials, or methods. In some cases, some operations related to the present application are not shown or described in the specification. This is to avoid the core portion of the present application being overwhelmed by excessive descriptions, and for those skilled in the art, it is not necessary to describe these related operations in detail. They will fully understand the related operations based on the description in the specification and the general technical knowledge in the art.

[0017] In addition, the features, operations, or characteristics described in the specification may be combined in any appropriate manner to form various embodiments. Furthermore, the steps or actions in the method description may be reordered or adjusted in a manner readily apparent to those skilled in the art. Therefore, the various sequences in the specification and drawings are provided solely for the purpose of clearly describing a particular embodiment and are not intended to be mandatory, unless otherwise specified.

[0018] Component numbers used herein, such as "first" and "second," are used solely to distinguish the components being described and do not convey any sequential or technical meaning. References to "connection" and "coupling" herein, unless otherwise specified, include both direct and indirect connections (couplings).

[0019] The process of monitoring communications signals with a digital oscilloscope generally includes preliminary analysis (rapidly evaluating the characteristics of unknown signals and conducting joint observations in the time and frequency domains), feature extraction (preprocessing monitoring data, parallel computing 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 checks, reference signal verification, and comparison with signal rule libraries). These processes, including feature extraction, advanced analysis, and monitoring result verification, all place high demands on the digital oscilloscope's hardware performance (for data processing and analysis). Currently, these requirements are difficult to achieve or implement with standard digital oscilloscopes in most application scenarios.

[0020] For example, monitoring CAN protocol signal communication data requires real-time monitoring of signal lines to verify the correctness of data signals transmitted within a communication network. This allows for verification of CAN network transmission performance by comparing the acquired transmission signal data with the data received by the receiver. The CAN protocol has been widely adopted across multiple industrial sectors and has evolved into three generations: CAN-2.0, CAN-FD, and CAN-XL. Unlike CAN-2.0 and CAN-FD, the CAN-XL protocol adds PWM encoding / decoding to the PCS and PMA sublayers, switching the PMA bus drive mode from explicit / implicit and level_0 / level_1, increasing the data segment rate while maintaining compatibility with the NRZ encoding used in traditional CAN. A CAN frame consists of three main phases: the arbitration phase, the data phase, and the arbitration phase. Each phase contains different fields for bus arbitration, data transmission, and error checking. At the protocol layer, the CAN controller converts messages into CAN frames that conform to the CAN specification and transmits them as a binary stream. This implements the CAN bus protocol's underlying and data link layers, defining communication rules and upper speed limits. The CAN transceiver converts logic levels into differential signals for use at the CAN bus's physical layer. The specific transceiver used determines the actual transmission capacity of the physical signal. Specifically, controller mode allows CAN signals to reach data rates of up to 500 kbit / s during the arbitration phase, while CAN FD protocol signals can achieve data rates up to 8 Mbit / s in the data segment. CAN-XL protocol signals can achieve data rates of 20 Mbit / s using a CAN-SIC-XL fast-mode transceiver. CAN and CAN-FD transceivers operate in normal mode, with dominant and recessive drive levels. The standard operating mode for CAN-XL signals is SIC mode, also with dominant and recessive drive levels, used during the arbitration and data phases. The SIC-XL controller can switch the transceiver to Fast Mode during the data phase. In this case, Level_0 / Level_1 drive levels are used, and the output is an alternating differential signal, effectively reducing reflections and signal distortion. The following describes the main components of a CAN-XL frame. The arbitration phase includes Priority ID, XL, and ADS. Priority ID is an 11-bit bus arbitration priority identifier used for processing priorities. XL contains multiple bits, and its invisible level identifies the CAN-XL frame, distinguishing between CAN-2.0 and CAN-FD. ADS transitions from the arbitration phase to the data phase and consists of four fixed bits. After the ADH bit, the frame enters the Fast Phase.The data phase consists of a control field, a data field, and a cyclic redundancy check (CRC) field. The SDT field is an 8-bit protocol type identifier, indicating the data segment encapsulation type; the SEC field is a 1-bit field indicating whether the data is encrypted; the DLC field is an 11-bit field defining the data segment length; the SBC field is a 3-bit field representing the dynamic padding bit count; the PCRC field is a 13-bit field used to verify the data integrity of the arbitration and control segments; the VCID field is an 8-bit field, a virtual CAN channel identifier similar to a VLAN in Ethernet; the AF field is a 32-bit field used for addressing; the data bytes field ranges from 1 to 2048 bytes, with a transmission rate of 10 Mbps or higher; and the FCRC field is a 32-bit field used for data verification. The arbitration phase includes the acknowledgment and end fields. The DAS field converts the data segment into the arbitration segment and consists of 4 fixed bits; the ACK field is a 6-bit field, with a dominant level indicating receipt of the data frame; and the EOF field is a 7-bit field indicating the end of the frame. CAN-XL, as a new generation of CAN technology, features SIC / FAST dual-mode separation technology, enabling high-speed and stable transmission in the data phase, meeting the high-speed, high-capacity data transmission requirements of modern automotive electronics and industrial automation. At the same time, for CAN-XL signal testing, in addition to requiring a high sampling rate, the digital oscilloscope must also have data processing and decoding functions to achieve clear display of signal frames, thereby helping engineers accurately locate problems, debug systems, and optimize network performance. This is the key to CAN-XL network development and maintenance.

[0021] Furthermore, even with a digital oscilloscope that supports multiple protocol decoding, it can only decode the physical and link layers. To analyze and monitor higher-layer protocols, this is typically accomplished through third-party protocol analysis software (featuring rich and user-friendly interactive operations). However, commercially available digital oscilloscopes only support exporting raw waveform sampling files, which cannot be directly used with third-party software. This significantly limits the scalability and flexibility of the digital oscilloscope's protocol analysis capabilities. The third-party software runs on a general-purpose computer or smart terminal and can only acquire data using a PC's universal interface (wireless and wired). In an application environment where long-term continuous monitoring is required, the technical problem to be addressed in one embodiment of the present application is how to use a digital oscilloscope as a medium to forward communication data signals acquired through real-time monitoring on a communication entity (signal line) to third-party software for real-time monitoring and analysis.

[0022] Example 1: Please refer to Figure 1, is a flow chart of a monitoring source data processing method in one embodiment. The monitoring source data processing method is used to monitor communication signals transmitted in a communication line and convert the acquired communication signals (analog signals) into digital signal data. The digital signal data is used as a data source for third-party protocol analysis software. By combining the unknown signal monitoring capability of a digital oscilloscope and the data analysis capability of the third-party protocol analysis software, the monitoring source data processing method can realize the detection function of the communication signals transmitted in the communication line. The monitoring source data processing method includes: Step 101: Acquire digital waveform data.

[0023] The waveform signal acquired by monitoring and collecting the digital oscilloscope is digitized to obtain digital waveform data, wherein the sampling point sequence is represented by a code word value sequence in the digital waveform data.

[0024] Please refer to Figure 2 , is a schematic diagram of connecting a digital oscilloscope probe in an embodiment. The digital oscilloscope is connected to the communication signal line through an appropriate probe. One end of the probe contacts the point to be tested in the communication line, and the other end is connected to the input channel of the digital oscilloscope. It is used to collect the communication signal in the communication line to be tested, and the waveform signal obtained by monitoring is displayed on the display screen of the digital oscilloscope to observe the waveform of the communication signal to be tested in real time.

[0025] In one embodiment, the waveform signal acquired through monitoring and acquisition by a digital oscilloscope is digitized. Specifically, the digital oscilloscope parameters are first adjusted to stabilize the display of the waveform of the analog signal acquired by the monitoring probe. An analog-to-digital converter (ADC) is then used to convert the acquired analog signal waveform into digital waveform data. In one embodiment, the digital oscilloscope quantizes the analog signal acquired through real-time monitoring into a digital signal using a front-end analog-to-digital converter. The digital signal is then temporarily stored in the digital oscilloscope's memory for further processing and display.

[0026] Please refer to Figure 3 , a schematic diagram of digital sampling of an analog signal in one embodiment. The sampling rate of the analog-to-digital converter is no less than the baud rate of the analog signal, and the level information of each bit is obtained. The digital waveform data is a sequence of codeword values that matches the analog-to-digital converter.

[0027] Step 102: Obtain bitstream data.

[0028] Physical layer decoding is performed on the digital waveform data to obtain bit stream data. Physical layer decoding converts the codeword value sequence into a bit-divided logic level sequence. Specifically, based on a preset decoding threshold, the codeword values in the codeword value sequence are compared one by one with the decoding threshold, and the codeword value sequence is converted into a logic level sequence divided by the start point sequence number and the end point sequence number. The logic level sequence obtained after division is the bit stream data, which includes logic level value information, start point position information, and / or end point position information.

[0029] Please refer to Figure 4 , is a schematic diagram of dividing logic levels by decoding thresholds in one embodiment. During the one-to-one comparison of the codeword values in the codeword value sequence with the decoding threshold, a level jump is performed only when the codeword value at the sampling point crosses the preset time interval after the decoding threshold plus or minus the hysteresis. In one embodiment, the clock is synchronized with a fixed baud rate or clock signal sampling position to divide the logic level information of each bit. When the clock is synchronized with the sampling position of the clock signal, the bits are divided according to the data signal sampling point position corresponding to the rising or falling edge of the clock signal. When the clock is synchronized with a fixed baud rate, the first rising or falling edge of the data signal is first found as the starting position, and then the quotient of the sampling rate and the baud rate is used as the bit width to calculate the signal clock for each sampling point to recover the data.

[0030] The physical layer decoding process begins with level segment processing. After digitization, the analog signal is converted into a sequence of sampling points and stored in memory. Based on the user-set decoding threshold, the processor compares the codeword value of each sampling point with the decoding threshold, converting the sampled data into a logic level sequence divided by a start and end point number. Hysteresis can be introduced during this process to mitigate logic level errors caused by signal quality. During the logic level determination, a level transition occurs only when the codeword value of the sampling point crosses the range of the decoding threshold plus or minus the hysteresis. With this method, if an abnormal waveform at the clock sampling position happens to cross the threshold but is within the hysteresis range, it will not be detected as an abnormal level logic. After judging the decoding threshold, the codeword value sequence is converted into a logic level sequence, but the position of each bit is not yet available. Furthermore, the physical layer may use a specific encoding scheme (such as NRZ or Manchester) to improve signal interference resistance and transmission efficiency. Decoding is the reverse process, restoring the encoded signal to the original data.

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

[0032] Step 103: Acquire frame data.

[0033] Perform link layer decoding on the bit stream data to obtain frame data. 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: First, define the starting position of any frame data in the bit stream data; then, according to the frame structure specified by the communication protocol, decode the subsequent characters of the frame data or the last bit of the bit stream data in sequence to obtain the frame data of a frame signal; then, decode other frame data from the bit stream data according to the communication protocol specification and the obtained frame data.

[0034] Please refer to Figure 5 , is an example diagram of an embodiment in which a bit stream sequence is divided into different field types. The bit stream of the signal after being decoded by the physical layer is a structured data of a string of 01 sequences, which does not have actual communication meaning at this time. Link layer decoding is to give specific meaning to the stored bit stream data according to the protocol specification, including preamble, frame start delimiter, frame type, synchronization field, data field, check field, frame end position delimiter, etc. Usually when parsing a frame of data, it is necessary to find the starting position of the frame first. Depending on the protocol, it may be to find a fixed starting segment code type, or to use the first bit offset set by the user as the starting position. After locating the starting position of the frame, according to the frame structure of the protocol, the subsequent characters are decoded in sequence 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 the decoding process, the error is recorded, and the decoding of this frame can be ended early according to the protocol specification. After completing the decoding of this frame of data, the starting position of the next frame is searched again, and each frame of data is decoded in sequence.

[0035] Step 104: Obtain packaging data.

[0036] Encapsulate the acquired frame data according to a preset storage type to obtain the encapsulated data. After link layer decoding is complete, the link layer decoding results can be viewed on the digital oscilloscope interface. At this point, you can save the decoded data by setting a file type supported by third-party software (protocol analysis software).

[0037] Step 105: Output the packaged data.

[0038] Save and / or forward encapsulated data, wherein the encapsulated data includes protocol parameter information. The protocol parameter information includes the destination MAC address, source MAC address, and / or protocol type of the link layer corresponding to the communication protocol specification. In one embodiment, the protocol parameter information also includes the protocol version, service type, length, identifier, and / or IP address of the network layer corresponding to the communication protocol specification. In one embodiment, the protocol parameter information also includes the port number, sequence number, and / or data offset of the transport layer corresponding to the communication protocol specification. In one embodiment, the protocol parameter information also includes ASCII-encoded request text information of the application layer corresponding to the communication protocol specification.

[0039] The encapsulated data file is imported into the third-party software for higher-level analysis. In one embodiment, according to the file format set by the user, the header information of the data packet and the corresponding actual data need to be written. Taking the .pcap format file format as an example, it is necessary to package the global header, the header of each packet, and the data packet data. By constructing a structure, the header identification byte order, format version number, accuracy, maximum length, link layer type, data packet capture length, actual length of the data packet and other contents are written. After completing the header information, the specific data content is written and finally exported as a .pcap format file. Similarly, the decoded data is written to the other format files according to the file format specifications and the information reading method of the third-party software.

[0040] The monitoring source data processing method disclosed in this embodiment first digitizes the waveform signal acquired by the digital oscilloscope monitoring and collection; then performs physical layer decoding on the digital waveform data acquired after the digitization process to obtain bit stream data; then performs link layer decoding on the bit stream data to obtain frame data; finally, the acquired frame data is encapsulated according to the storage type, and the encapsulated data acquired after encapsulation is saved or forwarded. Due to the unknown signal monitoring function of the digital oscilloscope, the communication signal transmitted in the communication transmission line is converted into encapsulated data in a preset storage format, which can be directly read by third-party protocol analysis software and perform protocol analysis on the communication protocol layer above the link layer, so as to realize the verification of the data transmission signal transmitted in the communication network, thereby solving the technical problem that the third-party protocol analysis software cannot perform communication signal monitoring.

[0041] Example 2 In one embodiment of the present application, a digital oscilloscope is further disclosed for applying the monitoring source data processing method described in the first embodiment. The digital oscilloscope includes a communication signal acquisition module for monitoring the communication signal transmitted in the communication transmission line.

[0042] Please refer to Figure 6, is a structural block diagram of a communication signal acquisition module in one 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 encapsulation unit 50, and a data output unit 60. The signal acquisition unit 10 is used to acquire analog signals transmitted in the communication transmission line through a monitoring probe and stably display the waveform of the analog signal. The analog-to-digital conversion unit 20 is used 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 used to perform physical layer decoding on the digital waveform data to obtain bit stream data. The frame data acquisition unit 40 is used to perform link layer decoding on the bit stream data to obtain frame data. The data encapsulation unit 50 is used to encapsulate the acquired frame data according to a preset storage type to obtain encapsulated data. The data output unit 60 is used to store and / or forward the encapsulated data, wherein the encapsulated data includes protocol parameter information.

[0043] In one embodiment, the digital oscilloscope further 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, 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 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. In one embodiment, a setting save window is also provided in the decoding function setting area, which is used to confirm and save the parameter data modified in the protocol type setting window, the decoding information configuration window, and the decoding protocol configuration window, or to save the setting operations after exporting the parameter information into a file.

[0044] Please refer to Figure 7 , is a schematic diagram of the decoding function setting area in an embodiment. The decoding function page (decoding function setting area) is a decoding data saving function setting that supports direct import of third-party protocol analysis software by the digital oscilloscope, and is a sub-function under the decoding module. In one embodiment, the decoding function page includes the selection of protocol type, the decoding source configuration menu, the decoding protocol configuration menu, and the save menu. The source configuration menu includes the channel settings for the signal access oscilloscope signal and the threshold hysteresis settings for physical layer decoding; the protocol configuration menu includes the frame structure information settings related to the current specific protocol; click the save menu to enter the protocol data saving page, which includes the file format settings and the call-up of the file manager. The user can customize the name and path in the file manager to save the decoding data file in the current format.

[0045] In one embodiment, the human-computer interaction interface also includes 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 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 to parse the frame data of any frame signal in the communication signal.

[0046] Please refer to Figure 8 , which is an example diagram of a display of a frame of encapsulated data of the CAN-XL protocol opened by a third-party protocol analysis software in an embodiment. The digital oscilloscope disclosed in the embodiment of the present application, through the communication signal acquisition module, after completing the decoding of the physical layer and the link layer, the exported file can be compatible with the third-party protocol analysis software to directly perform higher-level protocol analysis. The digital oscilloscope can directly collect the signal in the communication link and generate a file supported by the third-party protocol analysis software, which greatly expands the protocol analysis function of the oscilloscope. Since it is not limited to the protocol decoding function and the display form of the decoding result supported by the digital oscilloscope itself, it can also obtain higher-level protocol analysis in the form of a file in the third-party software, thereby expanding the communication signal analysis capability of the digital oscilloscope. The digital oscilloscope does not need to add additional tools, and directly performs acquisition and conversion of raw data. The operation complexity is low, and it can solve the technical problem that the third-party software cannot directly obtain the raw data of the communication signal.

[0047] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above embodiments can be implemented by hardware or by computer program. When all or part of the functions in the above embodiments are implemented by computer program, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above functions can be implemented. In addition, when all or part of the functions in the above embodiments are implemented by computer program, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and saved in the memory of the local device by downloading or copying, or the system of the local device is updated. When the program in the memory is executed by the processor, all or part of the functions in the above embodiments can be implemented.

[0048] The above examples are used to illustrate the present invention, which are only used to help understand the present invention and are not intended to limit the present invention. Those skilled in the art can make several simple deductions, modifications or substitutions based on the concept of the present invention.

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; The encapsulated data is saved and / or forwarded, where the encapsulated data includes protocol parameter information.

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. The monitoring source data processing method according to claim 3, characterized in that: 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, start point position information and / or end point position information.

5. The monitoring source data processing method according to claim 4, characterized in that: 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; and / or, synchronizing a clock at a fixed baud rate or clock signal sampling position for dividing 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 sampling point to recover the data.

6. The monitoring source data processing method according to claim 4, characterized in that: 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.

7. A digital oscilloscope, characterized in that: For applying the monitoring source data processing method according to any one of claims 1 to 6, 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.

8. The digital oscilloscope according to claim 7, 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.

9. The digital oscilloscope according to claim 8, 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.

10. 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 6.

Citation Information

Patent Citations

  • Oscilloscope with decoding function

    CN103884890A

  • Bus signal protocol decoding method

    CN106850339A

  • Protocol decoding and triggering method based on envelope detection, digital oscilloscope and medium

    CN119728815A

  • Bus signal protocol decoding method

    WO2018120853A1