Dynamic hierarchical access method, method for implementing measurement data filter, storage medium and electronic device

The hierarchical data stream connections between measurement windows in the method address the high CPU load issue in hardware-in-the-loop simulations by optimizing filter configurations and reducing CPU consumption.

JP2026010689APending Publication Date: 2026-01-22SHANGHAI TOSUN TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025155657
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-21
Filing Date
2025-09-19
Publication Date
2026-01-22

AI Technical Summary

Technical Problem

In traditional hardware-in-the-loop simulation scenarios, testing specific ECUs like ABS algorithms requires multiple CAN buses to be activated simultaneously, leading to high CPU load due to processing all messages, which is inefficient and prone to errors with conventional filtering methods.

Method used

A method involving hierarchical data stream connections between measurement windows, where each window filters data from an upper layer before passing it to a lower layer, reducing the need for repetitive filter configurations and minimizing CPU consumption.

Benefits of technology

This approach enables efficient data processing and testing with minimal configuration, improving filter placement efficiency and reducing CPU load in automotive bus tool software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026010689000001_ABST
    Figure 2026010689000001_ABST
Patent Text Reader

Abstract

To provide a dynamic hierarchical connection method formed in each measurement window of automobile bus tool software.SOLUTION: Setting an upstream data stream input port and a downstream data stream output port for each measurement window, the upstream data stream input port of each measurement window being connected to a downstream data stream output port or a data source of a measurement window other than the measurement window to which the upstream data stream input port belongs to form a hierarchical connection, and each measurement window and other measurement windows being dynamic hierarchical connections.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority from Chinese Patent Application No. 2023117751844, filed on December 21, 2023, and U.S. Patent Application No. 18 / 512,162, filed on November 17, 2023, the entire contents of which are hereby incorporated by reference.

[0002] The present invention relates to the field of data processing, and more particularly to a method, system, storage medium and electronic device for implementing a measurement data filter. [Background technology]

[0003] In traditional hardware-in-the-loop simulation scenarios, to test a specific ECU, such as an ABS (Anti-lock Brake System) algorithm, multiple CAN (Controller Area Network) buses connected to the ABS module must be simultaneously activated. These buses are highly loaded, and each window must process all messages received on the CAN bus, which poses a high CPU load challenge for each measurement window in the automotive bus tool software. Summary of the Invention

[0004] The present invention relates to a method for implementing a measurement data filter, the method including: An upstream data stream input port, a downstream data stream output port, and a filter function are set for each measurement window. The upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of one measurement window other than the own measurement window, forming a hierarchical connection. Each layer measurement window receives data from an upper layer measurement window through its upstream data stream input port, and filters the received data before outputting it to a lower layer measurement window through its downstream data stream output port.

[0005] Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and obtained by the structure particularly pointed out in the description and drawings. In order to make the above objects, features and advantages of the present invention more comprehensible, the following preferred embodiments will be described in detail in conjunction with the accompanying drawings. [Brief explanation of the drawings]

[0006] In order to more clearly describe the specific embodiments of the present invention or the technical solutions of the prior art, the following will briefly describe the drawings that need to be used to describe the specific embodiments or the prior art. The drawings described in the following description are some embodiments of the present invention, and it is obvious that those skilled in the art can obtain other drawings from these drawings without any creative efforts. [Figure 1] 1 is a flowchart of a method for implementing a measurement data filter according to some embodiments. [Figure 2] FIG. 10 is a schematic diagram of an example in which measurement windows form dynamic hierarchical connections according to some embodiments. [Figure 3] FIG. 10 is a schematic diagram of an example in which measurement windows form dynamic hierarchical connections according to some embodiments. [Figure 4] FIG. 10 is a schematic diagram of an example in which measurement windows form dynamic hierarchical connections according to some embodiments. [Figure 5] FIG. 1 is a schematic diagram of a “CAN / CAN FD Transmit” window according to some embodiments. [Figure 6] 1 is a schematic diagram of an application in which each measurement window forms a dynamic hierarchical connection according to some embodiments; [Figure 7] 1 is a schematic diagram of an application in which each measurement window forms a dynamic hierarchical connection according to some embodiments; [Figure 8] 1 is a schematic diagram of an application in which each measurement window forms a dynamic hierarchical connection according to some embodiments; [Figure 9] FIG. 10 is a schematic diagram of an example of removing a measurement window according to some embodiments. [Figure 10] FIG. 10 is a schematic diagram of an example of removing a measurement window according to some embodiments. [Figure 11] FIG. 10 is a schematic diagram of an example reset of a measurement data filter according to some embodiments. [Figure 12] FIG. 10 is a schematic diagram of an example reset of a measurement data filter according to some embodiments. [Figure 13] 10A-10C are schematic diagrams of example display of measurement window layouts according to some embodiments. [Figure 14] 10A-10C are schematic diagrams of example display of measurement window layouts according to some embodiments. [Figure 15] 1 is a principle block diagram of a measurement data filtering system according to some embodiments; [Figure 16] 1 is a principle block diagram of a measurement data filtering system according to some embodiments; [Figure 17] FIG. 1 is a principle block diagram of an electronic device according to some embodiments. [Figure 18] 1 is a principle block diagram of a measurement data filtering system according to some embodiments; DETAILED DESCRIPTION OF THE INVENTION

[0007] In order to clarify the objectives, technical aspects and advantages of the embodiments of the present invention, the technical aspects of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. However, it is clear that the described embodiments are only some of the embodiments of the present invention and do not represent all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without performing creative work fall within the scope of protection of the invention.

[0008] In the conventional hardware-in-the-loop simulation scenario, to test a specific ECU, such as an ABS algorithm, multiple CAN buses connected to the ABS module must be activated simultaneously. The load on these buses is high, and each window must process all messages received on the CAN bus, which poses a high CPU load challenge for each measurement window in the automotive bus tool software.

[0009] After a user adds a conventional filter to graphic window A and sets the filtering conditions for the signals that the ABS module needs to observe, if the ABS module needs to further observe some of the signals observed in graphic window A (for example, four wheel speed signals) in other measurement windows such as graphic window B, numeric window, panel window, or signal value window, a conventional filter must be added in front of the measurement window that needs to be observed and related data filtering conditions must be set. Because these data filtering conditions are different from the data filtering conditions of graphic window A, the repeated configuration work is time-consuming and prone to errors, which will affect the test process.

[0010] Therefore, at least one embodiment provides a method for implementing a measurement data filter, which includes: setting an upstream data stream input port, a downstream data stream output port and a filter function for each measurement window. The upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of one measurement window other than the own measurement window, forming a hierarchical connection. Each layer measurement window receives data from an upper layer measurement window through its upstream data stream input port, and filters the received data before outputting it to a lower layer measurement window through its downstream data stream output port.

[0011] In contrast to conventional filters that can only perform a single filter function, each measurement window in the filter designed in the embodiment of the present disclosure corresponds to a single filter unit, and hierarchical connections are formed between the measurement windows, and each measurement window can be connected to multiple lower-level measurement windows. The hierarchical connections allow the filtering results of the current measurement window to be transmitted to lower levels. Multiple measurement windows that require the same filtering results do not need to repeatedly set a filter function before each measurement window as in conventional filters, and they can achieve hierarchical filtering without the need to install a separate filter between each layer of measurement windows. This allows complex data processing and data testing to be achieved with minimal configuration, reducing the CPU consumption of automotive bus tool software.

[0012] Various non-limiting embodiments of examples of the present disclosure are described in detail below with reference to the accompanying drawings. As shown in Figure 1, some embodiments provide a method for implementing a measurement data filter. The method includes: In step S101, an upstream data stream input port, a downstream data stream output port, and a filter function are set for each measurement window. In step S102, the upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of one measurement window other than the self measurement window to form a hierarchical connection. In step S103, each measurement window of each layer receives data from the upper layer measurement window through its upstream data stream input port, and after filtering the received data, outputs it to the lower layer measurement window through its downstream data stream output port.

[0013] Specifically, the measurement window is a window for measurement bus data, and the measurement bus data includes multiple display formats, such as graphic display and text display. The graphic display includes, but is not limited to, a graphic window, a monitorable signal curve, etc. The text display includes, but is not limited to, a message information window, a monitorable signal value change process, etc.

[0014] In some embodiments, the measurement windows are connected to other measurement windows through dynamic hierarchical connections, and the measurement windows can adjust the connection relationships with other measurement windows or data sources to filter corresponding required data according to different usage requirements. The dynamic connections also enable the upper-layer connections of a measurement window to be quickly switched, thereby quickly switching the filtering results of the measurement window, thereby improving the efficiency of filter placement and filtering result correction.

[0015] How each measurement window forms a dynamic hierarchical connection will be described in detail below with reference to the drawings. As shown in Figure 2, in the measurement setting window of the measurement data filter, the data sources are the data sources of all filters in each layer, the C code editor is connected to the data sources and is located on the first layer, and the graphic window is connected to the C code editor and is located on the second layer.

[0016] As shown in Figure 3, the graphic window in Figure 2 can be dynamically dragged and connected to a data source, which allows the graphic window and the C code editor to be in the same hierarchy.

[0017] As shown in Figure 4, the graphic window in Figure 2 can be dynamically dragged and connected to the CAN / CAN FD message information window, so that the graphic window is still in the second hierarchical level, but receives the filtered signal from the CAN / CAN FD message information window.

[0018] How each measurement window forms a dynamic hierarchical connection will be described in detail below with reference to the application example drawings. In the automotive test, the engine-related messages are automatically transmitted through the “CAN / CAN FD Transmit” window, as shown in Figure 5. There are three frames in total, and their identifiers are 0x064, 0x110, and 0x111, respectively.

[0019] As shown in Figure 6, during use, a user may want to open a Trace window to display message information, but only want to view the message information for the three frames they sent themselves, filtering out other messages, such as messages sent by an automobile ECU. To do this, a user simply creates a new Trace window and drags it to the right of the "CAN / CAN FD Transmission" window in the measurement settings window of the measurement data filter, making it a lower-level measurement window for "CAN / CAN FD Transmission." The message information for the three frames in the "CAN / CAN FD Transmission" window then automatically becomes the filtering condition for the Trace window. This method eliminates the need to specifically place a filter in the Trace window, thereby significantly improving filter placement efficiency.

[0020] During use, if the user wants to view the message information corresponding to the gateway signal and filter out other unrelated information, as shown in Figure 7, the software system already has a gateway signal graph window "Gateway Signals", and at this time, in the measurement setting window of the measurement data filter, the user can simply drag the Trace window to the right of the "Gateway Signals" graph window to achieve the user's needs, without having to design any filters for the Trace window.

[0021] As shown in Figure 8, if the user wants to view the entire message information during use, but does not want to filter any bus messages, in the measurement settings window of the measurement data filter, the user can simply drag the Trace window to the right of "Data Source," i.e., to a position parallel to the "CAN / CAN FD Transmit" window and the "Gateway Signals" window, without clearing any filtering for the Trace window.

[0022] In some embodiments, the step of configuring an upstream data stream input port for each measurement window includes: Set a data reception callback function for each measurement window. When the receive data callback function is called, the measurement window reads the data flowing from the upper measurement window from the parameters of the callback function.

[0023] As an example, the step of setting the upstream data stream input port in the measurement window will be described in detail. For example, in a window-based version of automotive CAN bus tool software written in C, the data reception callback function is set as follows: void on_rx_frame(const ACAN:PCAN) The data reception callback function has one parameter, ACAN, which is a CAN message pointer of PCAN type. When the data reception callback function is called by the automotive bus tool system, the system assigns the most recently received CAN message pointer to the parameter ACAN of the function, thereby enabling the measurement window to read the CAN message content from the parameter of the data reception callback function.

[0024] The data reception callback function exists as a base for all window types, which means that each measurement window supports calling the data reception callback function. Therefore, when data flows from an upper-layer measurement window to a lower-layer measurement window, the data reception callback function of the lower-layer measurement window is called, and the lower-layer measurement window can obtain the CAN message content flowing from the upper-layer measurement window.

[0025] In some embodiments, the step of configuring a downstream data stream output port for each measurement window includes: A data distribution callback function list and a data distribution program are set for each measurement window. The data delivery callback function list includes the data reception callback functions of all lower layer measurement windows currently connected to the measurement window. As data flows out of the current measurement window, the data delivery program calls each of the data reception callback functions in the data delivery callback function list.

[0026] An example will now be given to explain in detail the steps of setting the downstream data stream output port to a measurement window. For example, in a window-based version of automotive CAN bus tool software written in C, the data reception callback function is set as follows: bool rx_frame(const ACAN:PCAN) The data delivery callback function list is set to "dispatch_list", which is an array whose elements contain the data reception callback function pointers of all lower layer measurement windows currently connected to the measurement window.

[0027] Set the data delivery callback function as follows: void dispatch_frame(const ACAN:PCAN) The data reception callback function and the data delivery callback function each have one parameter, ACAN, which is a CAN message pointer of PCAN type. When the data reception callback function and the data delivery callback function are called by the automotive bus tool system, the system assigns the most recently received CAN message pointer to the parameters of the data reception callback function and the data delivery callback function, thereby enabling the measurement window to read the CAN message content from the parameters of the data reception callback function and the data delivery callback function.

[0028] The data reception callback function is a function with a return value that indicates whether the parameter data has passed filtering by the self-measurement window filter.

[0029] In the data distribution callback function code, the current measurement window first directly calls the data reception callback function of its own measurement window, and the current measurement window triggers a data filtering process. During the filtering process, if the data passes through the current measurement window filter, the data reception callback function returns true; otherwise, it returns false. After the data reception callback function returns true, the current measurement window then traverses the data distribution callback function list, calls each data reception callback function in the data distribution callback function list, and distributes the read CAN message content to each lower measurement window. The data distribution program code is as follows: void dispatch_frame(const ACAN: PCAN) { int i; if (rx_frame(ACAN)){ for (i=0; i< dispatch_list_count; i++){ dispatch_list[i](ACAN); } } }

[0030] The data reception callback function and data distribution callback function exist as base functions for all window types, meaning that each measurement window supports the calling of the data reception callback function and data distribution callback function. Therefore, when data flows from the current measurement window to a lower-level measurement window, the current measurement window distributes the data to all lower-level measurement windows connected to the current measurement window. During the distribution process, the data distribution callback function is called. The current measurement window first calls its own data reception callback function in a function to distribute the data flowing from the current measurement window one by one according to each lower-level measurement window defined in the data distribution callback function list. Each associated lower-level measurement window can then obtain the CAN message data flowing from the current measurement window.

[0031] In some embodiments, the step of setting a filtering function for each measurement window includes: The layout contents of the measurement window are extracted to form a filter entry. Set up a matching program. When data flows into the measurement window, the matching program first matches the incoming data with the filter entries one by one, and allows data that matches the match to flow out of the measurement window.

[0032] Taking the graphic window of the automotive CAN bus tool software as an example, the step of setting the filtering function for the measurement window will be described in detail. First, all signals in the graphic window, the channel numbers corresponding to the signals, and message IDs are extracted, and a correspondence table is formed as follows: [Table 1] Next, based on the above correspondence table, the same message ID information in the table is removed to form a channel-ID correspondence table as follows: The entry contents in the channel-ID correspondence table are filter entries. [Table 2] When the graphic window receives a CAN message from the upper-layer measurement window, the matching program first extracts the channel number and message ID of the CAN message and matches them with the entries in the channel-ID correspondence table. Only if the channel number and message ID are the same can the CAN message be transmitted to the lower-layer measurement window through the graphic window filter. For example, the 0x33 message from channel 3 cannot pass through the graphic window filter because it cannot find a corresponding entry in the correspondence table. The 0x300 message from channel 1 can pass through the graphic window filter because it finds a corresponding entry in the second row of the correspondence table.

[0033] In some embodiments, when a measurement window in any layer is deleted, the lower layer measurement windows connected to it are moved to the layer in which the deleted measurement window is located. When the measurement window "CAN / CAN FD Transmission" is deleted as shown in Figure 9, the lower-level measurement windows "Engine Speed" and "Engine Force" connected to the measurement window are moved to the layer where the measurement window is located as shown in Figure 10.

[0034] In some embodiments, when the measurement data filter settings are reset, each measurement window is reset to be directly connected to a data source. Specifically, the following illustrates an example of the change before and after resetting the measurement data filter settings. As shown in Fig. 11, before resetting the measurement data filter settings, each measurement window is set to be hierarchically connected, and the reset indicator in Fig. 11

number

[0035] Some embodiments further provide a data filtering method, the method including: As shown in Figure 13, the measurement setting display interface displays a data source window and at least one measurement window connected to the data source window. The upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of one measurement window other than the self-measurement window, forming a hierarchical connection. Each layer measurement window receives data from an upper layer measurement window through its upstream data stream input port, and after filtering the received data, outputs it to a lower layer measurement window through its downstream data stream output port.

[0036] The above data filtering method further includes: After triggering the command trigger area in each measurement window, the layout contents of the corresponding measurement window are displayed. Specifically, as shown in Figure 13, right-click the measurement window to trigger the command trigger area, and then click "Open Selected" to display the layout contents of the measurement window, as shown in Figure 14.

[0037] When any measurement window moves, it forms an automatic connection with the corresponding upstream data stream input port and downstream data stream output port of the other measurement window. Delete indicator in the Measurement Data Filter display interface toolbar

number

number

number

number

number

[0038] Some embodiments further provide a measurement data filtering system, as shown in Figure 15. The system includes: At least one bus adapter configured to obtain a data source from the ECU. At least one computing device, said computing device including a processor, a display in communication with the processor for displaying a graphical interface, a computer-readable storage medium, a communication bus, and a communication interface. The processor, the computer-readable storage medium, and the communication interface realize communication with a bus adapter via the communication bus. The computer-readable storage medium is configured to store a command program. After obtaining the data source, the processor is configured to execute the command to cause the processor to perform the following operations: set an upstream data stream input port, a downstream data stream output port, and a filter function for each measurement window; the upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of one measurement window other than its own measurement window, forming a hierarchical connection; each measurement window of each layer receives data from an upper layer measurement window through its upstream data stream input port, and filters the received data before outputting it to a lower layer measurement window through its downstream data stream output port; The display displays a data source window and at least one measurement window connected to the data source window via a graphical interface.

[0039] Some embodiments further provide a method for filtering data in a measurement system, the method including: The data source is obtained from the ECU via a bus adapter. After acquiring the data source, an upstream data stream input port, a downstream data stream output port, and a filter function are set for each measurement window. The upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of a measurement window other than its own measurement window, forming a hierarchical connection. Each measurement window in each layer receives data from the upper layer measurement window through its upstream data stream input port, and after filtering the received data, outputs it to the lower layer measurement window through its downstream data stream output port. A data source window and at least one measurement window connected to the data source window are displayed via a graphic interface. The details of the measurement data filtering system and the measurement data filter implementation method relating to the measurement system filtering method have been described in detail up to this point, so a detailed description thereof will be omitted here.

[0040] As shown in FIG. 16, some embodiments further provide a measurement data filtering system, which includes a setting module, a measurement window connection module, and a data processing module. The setting module is configured to set an upstream data stream input port, a downstream data stream output port, and a filtering function for each measurement window. The measurement window connection module is configured such that the upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of one measurement window other than the own measurement window to form a hierarchical connection. The data processing module is configured so that each measurement window of each layer receives data from an upper layer measurement window through its upstream data stream input port, and filters the received data before outputting it to a lower layer measurement window through its downstream data stream output port. The computer commands corresponding to the specific implementation functions of the setting module, the measurement window connection module and the data processing module are stored in a computer-readable storage medium and implemented in a computer device. For specific details, please refer to the content of the above-mentioned method for implementing the measurement data filter, and the description will be omitted here.

[0041] Hereinafter, an electronic device according to an embodiment of the present disclosure will be described from the viewpoint of hardware processing. The specific embodiments of some examples do not limit the specific implementation of electronic devices. As shown in Figure 16, the electronic device includes a processor, a computer-readable storage medium (also referred to as memory), a communication bus, and a communication interface. The processor, the computer-readable storage medium, and the communication interface communicate with each other via the communication bus. The computer-readable storage medium stores a program for implementing the measurement data filter. The program causes the processor to perform operations corresponding to the measurement data filter. The measurement data filter implementation method includes the following: setting an upstream data stream input port, a downstream data stream output port, and a filter function for each measurement window; the upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of a measurement window other than its own measurement window, forming a hierarchical connection; each measurement window in each layer receives data from an upper layer measurement window through its upstream data stream input port, and filters the received data before outputting it to a lower layer measurement window through its downstream data stream output port. For specific details, please refer to the detailed explanation of how to implement the measurement data filter, and the explanation will be omitted here.

[0042] In other embodiments, computer devices and industrial computers may also be considered types of electronic equipment. It should be noted that the configuration shown in FIG. 17 is not intended to limit the electronic device, which may include fewer or more components than those shown, may combine some components, or may have different component arrangements.

[0043] In some embodiments, the communication interface may be a communication interface connectable to an external bus adapter, such as RS232, RS485, a USB port, a TYPE port, etc. A wired or wireless network interface may also be included, and the network interface may optionally include a wired and / or wireless interface (e.g., a WI-FI interface, a Bluetooth interface, etc.) typically used to establish a communication connection between the computing device and other electronic devices.

[0044] The readable storage medium or computer-readable storage medium includes at least one type of memory. Memory includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, it may be an internal storage unit of a computer device, such as a hard disk of the computer device. In other embodiments, the memory may be an external storage device of a computer device, such as a plug-in hard disk installed in the computer device, a SmartMedia Card (SMC)®, a Secure Digital Card (SD), a Flash Card, etc. Furthermore, the memory may include both an internal storage unit of a computer device and an external storage device. The memory is used to store various data, such as application software and computer program code installed in the computer device, as well as to temporarily store output data or data to be output.

[0045] In some embodiments, the processor may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip that executes program code stored in memory or processes data, for example, to execute a computer program.

[0046] In some embodiments, the communication bus may be an input / output bus, which may be a Peripheral Component Interconnect (PCI) bus or an Enhanced Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.

[0047] Optionally, the computer device may further include a user interface. The user interface may include input units such as a display and a keyboard, and optionally, the user interface may also include a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. In this case, the display is also called a display screen or a display unit, since it displays information processed in the computer device and a visualized user interface.

[0048] When the processor executes the program, it implements the steps in the embodiment of the method for implementing a measurement data filter shown in Fig. 1. For example, steps S101 to S103 shown in Fig. 1. Alternatively, when the processor executes the computer program, it implements the functions of each module or unit in each of the embodiments of the device.

[0049] Some embodiments further provide a computer-readable storage medium configured to store any of the above possible measurement data filter implementations.

[0050] Some embodiments also provide a computer-readable storage medium storing computer-readable instructions for, when executed by at least one processor, performing the aforementioned method for implementing a measurement data filter. Specifically, each measurement window is configured with an upstream data stream input port, a downstream data stream output port, and a filter function. The upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of a measurement window other than its own measurement window, forming a hierarchical connection. Each measurement window in each layer receives data from a measurement window in a higher layer through its upstream data stream input port, and after filtering, outputs the received data to a measurement window in a lower layer through its downstream data stream output port. Please refer to the detailed description of the method for implementing the measurement data filter, and a detailed description will be omitted here.

[0051] Some embodiments further provide a computer program product, comprising computer programs or commands that, when executed on a computer, cause the computer to perform any of the possible measurement data filter implementation methods described above.

[0052] Some embodiments further provide a computer program product, including a computer-readable storage medium having computer-readable program code stored thereon, the computer-readable program code including instructions to cause at least one processor or one or more computing devices to perform the following operations: Each measurement window is configured with an upstream data stream input port, a downstream data stream output port, and a filter function. The upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of a measurement window other than its own measurement window, forming a hierarchical connection. Each measurement window in each layer receives data from an upper layer measurement window through its upstream data stream input port, and filters the received data before outputting it to a lower layer measurement window through its downstream data stream output port. For specific details, please refer to the detailed explanation of how to implement the measurement data filter, and the explanation will be omitted here.

[0053] Some embodiments further provide a system for filtering measurement data, as shown in Figure 18. The system includes a computer device and a bus adapter. The computer device includes a processor, a computer-readable storage medium, a communication bus, and a communication interface. The computer-readable storage medium is configured to store a program for executing the method for implementing the measurement data filter, and the processor is configured to execute the program for executing the method for implementing the measurement data filter. The processor, the computer-readable storage medium, and the communication interface realize communication with the bus adapter via the communication bus, and acquire data sources acquired from the ECU.

[0054] In some embodiments, the bus adapter may be a Controller Area Network (CAN) bus adapter, a Controller Area Network Flexible Data Rate (CANFD) bus adapter, a Fast Local Interconnect Network (FastLIN) bus adapter, a Local Interconnect Network (LIN) bus adapter, an Ethernet bus adapter, or a FlexRay bus adapter, and may be a one-to-many or many-to-many bus adapter. In other embodiments, the specific implementation of the bus adapter is not limited. In some embodiments, the corresponding data source can be obtained by communicating with the debugging device via Unified Diagnostic Services (UDS), Universal Calibration Protocol (XCP), or CAN Calibration Protocol (CCP). In some embodiments, the data source can be obtained from the debugging device, for example, a vehicle ECU (Electronic Control Unit) and its related systems, via Unified Diagnostic Services (UDS), Universal Calibration Protocol (XCP), or CAN Calibration Protocol (CCP).

[0055] In some embodiments, the debugging device in the automotive field may specifically be a vehicle ECU (Electronic Control Unit) and its related systems, such as, but not limited to, an electronic power steering system EPS, an anti-lock braking system ABS, an electronic stability system ESC, an automobile engine management system, a battery management system BMS, etc., which can be connected to a computer device via a bus to receive data from a data source.

[0056] In some embodiments, the measurement data filter implementation method, measurement data filtering system, measurement system filtering method, and data filtering method can be used with data sources obtained from ECUs collected by automotive bus tool software.

[0057] In some embodiments of the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely examples. For example, the flowcharts and block diagrams in the drawings illustrate possible architectures, functions, and operations of apparatuses, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, a program segment, or a portion of code. The module, program segment, or portion of code includes executable instructions for implementing one or more predetermined logical functions. Note that in some alternative implementations, the functions depicted in the blocks may occur in a different order than depicted in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or may sometimes be executed in the reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented in a dedicated hardware-based system that performs the predetermined functions or operations, or in a combination of dedicated hardware and computer instructions.

[0058] Furthermore, each functional module in each embodiment of the present invention may be integrated together to form a single independent part, each module may exist independently, or two or more modules may be integrated to form a single independent part.

[0059] The above functions can be realized in the form of software functional modules and stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention essentially or a part that contributes to the prior art or a part of the technical solution can be expressed in the form of a software product. The computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention.

[0060] The above-described preferred embodiments of the present invention have been enlightened, and those skilled in the art can make various changes and modifications based on the above description without departing from the technical spirit of the present invention. The technical scope of the present invention is not limited to the content of the specification, but should be determined based on the claims.

Claims

1. A dynamic hierarchical connection method formed in each measurement window executed by a computer device, comprising: Obtaining a data source from an ECU via a bus adapter; setting an upstream data stream input port and a downstream data stream output port for each measurement window; an upstream data stream input port of each measurement window is connected to a downstream data stream output port or data source of one measurement window other than the own measurement window to form a hierarchical connection; A dynamic hierarchical connection method for forming each measurement window executed by a computer device, characterized in that each measurement window and another measurement window are connected by a dynamic hierarchical connection.

2. The connection between each measurement window and another measurement window is a dynamic hierarchical connection.

2. The dynamic hierarchical connection method according to claim 1, wherein each measurement window can adjust the connection relationship with other measurement windows or data sources, thereby filtering corresponding required data according to different usage requirements.

3. The connection between each measurement window and another measurement window is a dynamic hierarchical connection.

2. The dynamic hierarchical connection method according to claim 1, further comprising: switching upper layer connections of one measurement window, thereby switching filtering results of the measurement window.

4. The connection between each measurement window and another measurement window is a dynamic hierarchical connection. The dynamic hierarchical connection method according to claim 1, characterized in that in the measurement setting window of the measurement data filter, the data source is the data source of all filters of each layer, the C code editor is connected to the data source and is located in the first layer, and the graphic window is connected to the C code editor and is located in the second layer.

5. 5. The dynamic hierarchical connection method according to claim 4, wherein the graphic window is dynamically dragged to connect to the data source, thereby realizing that the graphic window and the C code editor are in the same hierarchical level.

6. 5. The dynamic hierarchical connection method according to claim 4, wherein the graphic window is dynamically dragged and connected to the CAN / CAN FD message information window, so that the graphic window is still in the second hierarchical level, but receives a filtered signal from the CAN / CAN FD message information window.

7. Setting the upstream data stream input port for each measurement window is Setting a data reception callback function for each measurement window; 2. The dynamic hierarchical connection method according to claim 1, wherein when the data receiving callback function is called, the measurement window reads the data flowing out from the upper layer measurement window from the parameters of the callback function.

8. Setting the downstream data stream output port for each measurement window is Setting a data distribution callback function list and a data distribution program for each measurement window; The data delivery callback function list includes data reception callback functions of all lower layer measurement windows currently connected to the measurement window; 2. The dynamic hierarchical connection method according to claim 1, further comprising: when data flows out from a current measurement window, the data distribution program calls the data reception callback functions in the data distribution callback function list one by one.

9. The dynamic hierarchical connection method according to claim 1, characterized in that when a measurement window of any layer is deleted, the lower layer measurement window connected thereto is moved to the layer in which the deleted measurement window is located.

10. A method for implementing a measurement data filter executed by a computer device, the method comprising executing the dynamic hierarchical connection method according to any one of claims 1 to 9.

11. Acquiring data sources from the ECU via a bus adapter and setting a filtering function for each measurement window; The method for realizing the present invention as claimed in claim 10, characterized in that each layer measurement window further includes receiving data from an upper layer measurement window through its upstream data stream input port, filtering the received data, and then outputting it to a lower layer measurement window through its downstream data stream output port.

12. Setting a filtering function for each measurement window includes: Extracting the measurement window layout and forming a filter entry; setting up a matching program; The method for realizing the present invention as described in claim 11, characterized in that when data flows into the measurement window, the matching program first matches the flowed-in data with the filter entries one by one, and allows data that matches the match to flow out of the measurement window.

13. 12. The method of claim 11, wherein when the measurement data filter settings are reset, each measurement window is reset to be directly connected to a data source.

14. A computer-readable storage medium, comprising: computer-readable commands are stored; A computer-readable storage medium which, when executed by at least one processor, causes the processor to perform operations corresponding to the dynamic hierarchical connection method of any one of claims 1 to 9.

15. An electronic device, at least one memory and at least one processor; The memory stores commands; 10. An electronic device, wherein the processor executes the command to perform an operation corresponding to the dynamic hierarchical connection method according to any one of claims 1 to 9.

16. 1. A measurement data filtering system, comprising: at least one bus adapter and at least one computer device; The bus adapter is configured to obtain a data source from an ECU; the computing device includes a processor, a computer-readable storage medium, a communication bus, and a communication interface; the processor and the computer-readable storage medium realize communication with the bus adapter via the communication interface and the communication bus; the computer-readable storage medium is configured to store a command program; The measurement data filtering system is characterized in that the processor is configured to, after obtaining a data source, execute the command to cause the processor to perform an operation corresponding to the dynamic hierarchical connection method described in any one of claims 1 to 9.

17. A dynamic hierarchical connection method, comprising: Acquires data source from ECU via bus adapter, After obtaining the data source, an upstream data stream input port and a downstream data stream output port are set for each measurement window, and the upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of a measurement window other than the measurement window itself, thereby forming a hierarchical connection; each measurement window has a dynamic hierarchical connection with other measurement windows; A dynamic hierarchical connection method executed by a computer device, comprising displaying a data source window and at least one measurement window connected to the data source window via a graphic interface.

18. Setting the upstream data stream input port for each measurement window is Setting a data reception callback function for each measurement window; 18. The dynamic hierarchical connection method according to claim 17, wherein when the data receiving callback function is called, the measurement window reads the data flowing out from the upper layer measurement window from the parameter of the callback function.

19. Setting the downstream data stream output port for each measurement window is Setting a data distribution callback function list and a data distribution program for each measurement window; The data delivery callback function list includes data reception callback functions of all lower layer measurement windows currently connected to the measurement window; 18. The dynamic hierarchical connection method of claim 17, further comprising: when data flows out of a current measurement window, the data distribution program calls the data reception callback functions in the data distribution callback function list one by one.

20. The dynamic hierarchical connection method according to claim 17, characterized in that when a measurement window of any layer is deleted, the lower layer measurement window connected thereto is moved to the layer in which the deleted measurement window is located.

21. A dynamic hierarchical connection method, comprising: Acquires data source from ECU via bus adapter, Displaying a data source window and at least one measurement window connected to the data source window through a measurement setting display interface, the upstream data stream input port of each measurement window is connected to the downstream data stream output port or data source of one measurement window other than the self measurement window, forming a hierarchical connection; A dynamic hierarchical connection method executed by a computer device, characterized in that each measurement window and another measurement window are connected by a dynamic hierarchical connection.

22. After triggering the command trigger area in each measurement window, display the layout content of the corresponding measurement window; When any measurement window moves, it automatically forms connections with the corresponding upstream data stream input port and downstream data stream output port of the other measurement window; After triggering a delete indicator in the display interface toolbar of the measurement data filter, delete the selected measurement window and move the measurement windows below the deleted measurement window to the hierarchy where the deleted measurement window is located; After triggering the reset indicator in the measurement data filter display interface toolbar, reset each measurement window until it is directly connected to a data source; Expand and display all measurement windows after triggering the Expand indicator in the Measurement Data Filter display interface toolbar; Collapse and hide all measurement windows after triggering the collapse indicator in the measurement data filter display interface toolbar, The dynamic hierarchical connection method according to claim 19, wherein after triggering the connection indicator between the upper and lower layer measurement windows, the lower layer measurement window is expanded and displayed or collapsed and hidden.

23. A program for causing a computer having a processor to execute the dynamic hierarchical connection method according to any one of claims 1 to 9 and 17 to 22.

24. A program causing a computer having a processor to execute the method according to claim 10.