Measurement data filter implementation method, storage medium, and electronic device

By designing measurement data filters, using hierarchical connection and step-by-step filtering technology, the problems of high CPU load and repetitive configuration in traditional hardware in ring simulation scenarios are solved, efficient data processing and testing are achieved, and CPU consumption and configuration time are reduced.

WO2025103224A1PCT designated stage expired Publication Date: 2025-05-22SHANGHAI TOSUN TECH LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/130800
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-21
Filing Date
2024-11-08
Publication Date
2025-05-22

AI Technical Summary

Technical Problem

In the loop simulation scenario, in order to test the ABS algorithm of a specific ECU, it is necessary to activate the multiple CAN bus at the same time, resulting in a high CPU load on the measurement window of the automotive bus tool software, and repeated configuration of data filtering conditions is time-consuming and labor-intensive, making errors prone.

Method used

Design a measurement data filter, which can achieve step by step filtering by setting up the upstream data stream input port, downstream data stream output port and filtering functions for each measurement window, and forming a hierarchical connection.

Benefits of technology

Through hierarchical connection and step-by-step filtering, the CPU consumption of the automotive bus tool software is reduced, the configuration efficiency of the filter and the modification efficiency of the filter result are improved, and the time and error rate of repeated configuration work are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024130800_22052025_PF_FP_ABST
    Figure CN2024130800_22052025_PF_FP_ABST
Patent Text Reader

Abstract

A measurement data filter implementation method, which is characterized by comprising: setting an upstream data stream input port, a downstream data stream output port and a filtering function for each measurement window; connecting the upstream data stream input port of each measurement window to the downstream data stream output port of a measurement window other than the current measurement window or to a data source, so as to form a hierarchical connection; and each layer measurement window receiving data from an upper-layer measurement window by means of the upstream data stream input port thereof, filtering the received data, and then flowing the filtered data out to a lower-layer measurement window by means of the downstream data stream output port thereof.
Need to check novelty before this filing date? Find Prior Art

Description

Implementation method of measurement data filter, storage medium and electronic device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based upon and claims priority to 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 incorporated herein by reference. Technical Field

[0003] The present invention belongs to the technical field of data filtering, and in particular relates to an implementation method, system, storage medium and electronic equipment of a measurement data filter. Background Art

[0004] In traditional hardware-in-the-loop simulation scenarios, testing a specific ECU, such as an ABS algorithm, often requires simultaneously activating multiple CAN buses connected to the ABS module. These buses are highly loaded, leading to high CPU loads in each measurement window of the automotive bus tool software, as each window must process all messages received on the CAN bus.

[0005] Summary of the Invention

[0006] The present invention relates to a method for implementing a measurement data filter, comprising:

[0007] Set the upstream data flow input port, downstream data flow output port and filtering function for each measurement window; each measurement window upstream data flow input port is connected to a measurement window downstream data flow output port or data source outside its own measurement window to form a hierarchical connection;

[0008] Each layer of measurement window receives data from the upper layer measurement window through its upstream data flow input port, filters the received data, and then flows it out to the lower layer measurement window through its downstream data flow output port.

[0009] This summary is intended to provide a brief overview of some of the subject matter described in this document. It should therefore be understood that the above features are merely examples and should not be interpreted as narrowing the scope or nature of the subject matter described herein in any way.

[0010] Other features, aspects, and advantages of the subject matter described herein will become apparent from the following detailed description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0012] FIG1 shows a step diagram of a method for implementing a measurement data filter according to some embodiments;

[0013] FIG2 is a schematic diagram showing a case where measurement windows form dynamic hierarchical connections according to some embodiments;

[0014] FIG3 is a schematic diagram showing a case where measurement windows form dynamic hierarchical connections according to some embodiments;

[0015] FIG4 is a schematic diagram showing a case where measurement windows form dynamic hierarchical connections according to some embodiments;

[0016] FIG5 is a schematic diagram of a “CAN / CAN FD Send” window according to some embodiments;

[0017] FIG6 is a schematic diagram showing an application case of forming dynamic hierarchical connections among measurement windows involved in some embodiments;

[0018] FIG7 is a schematic diagram showing an application case of forming dynamic hierarchical connections among measurement windows involved in some embodiments;

[0019] FIG8 is a schematic diagram showing an application case of forming dynamic hierarchical connections among measurement windows involved in some embodiments;

[0020] FIG9 is a schematic diagram showing a case of deleting a measurement window according to some embodiments;

[0021] FIG10 is a schematic diagram showing a case of deleting a measurement window according to some embodiments;

[0022] FIG11 is a schematic diagram showing a measurement data filter reset case according to some embodiments;

[0023] FIG12 is a schematic diagram showing a measurement data filter reset case according to some embodiments;

[0024] FIG13 is a schematic diagram showing an example of configuration content of a display measurement window according to some embodiments;

[0025] FIG14 is a schematic diagram showing an example of configuration content of a display measurement window according to some embodiments;

[0026] FIG15 shows a principle block diagram of a measurement data filtering system according to some embodiments;

[0027] FIG16 shows a principle block diagram of a measurement data filtering system according to some embodiments;

[0028] FIG17 shows a principle block diagram of an electronic device involved in some embodiments;

[0029] FIG18 shows a principle block diagram of a measurement data filtering system involved in some embodiments. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In traditional hardware-in-the-loop simulation scenarios, in order to test a specific ECU such as the ABS algorithm, it is often necessary to simultaneously activate multiple CAN buses connected to the ABS module, and the load rates of these buses are relatively high, which leads to the challenge of high CPU load in each measurement window of the automotive bus tool software, because each window needs to process all messages received on the CAN bus.

[0031] After adding a traditional filter to Graphics Window A and configuring the filter conditions for the signals to be observed by the ABS module, if the user needs to observe a portion of the signals already observed in Graphics Window A (for example, four wheel speed signals) in another measurement window, such as Graphics Window B, a numerical window, a panel window, or a signal value window, the user needs to add a traditional filter and configure the relevant data filter conditions before each measurement window to be observed. Because these data filter conditions are different from those in Graphics Window A, repeated configuration is time-consuming and error-prone, affecting the test process.

[0032] Therefore, at least one embodiment provides a method for implementing a measurement data filter, comprising: setting an upstream data stream input port, a downstream data stream output port, and a filtering function for each measurement window;

[0033] Each measurement window upstream data flow input port is connected to a measurement window downstream data flow output port or data source outside its own measurement window, forming a hierarchical connection;

[0034] Each layer of measurement window receives data from the upper layer measurement window through its upstream data flow input port, filters the received data, and then flows it out to the lower layer measurement window through its downstream data flow output port.

[0035] Compared with traditional filters that can only perform a single filtering function, each measurement window in the filter designed in the embodiment of the present disclosure is equivalent to a filter unit. A hierarchical connection is formed between the measurement windows, and each measurement window can be connected to multiple lower-level measurement windows. The hierarchical connection can pass the filtering results of the current measurement window to the lower layer, so that multiple measurement windows requiring the same filtering results do not need to repeatedly set the filtering function before each measurement window like traditional filters. There is no need to set up special filters between the measurement windows of each layer to achieve step-by-step filtering, thereby enabling complex data processing and data testing with minimal configuration, reducing the CPU consumption of the automotive bus tool software.

[0036] Various non-limiting implementations of the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0037] As shown in FIG1 , some embodiments provide a method for implementing a measurement data filter, including:

[0038] Step S101, setting the upstream data flow input port, downstream data flow output port and filtering function for each measurement window;

[0039] Step S102 , each measurement window upstream data flow input port is connected to a measurement window downstream data flow output port or data source outside its own measurement window, forming a hierarchical connection;

[0040] In step S103, each measurement window receives data from the upper-layer measurement window via its upstream data stream input port, filters the received data, and then outputs it to the lower-layer measurement window via its downstream data stream output port. Specifically, a measurement window refers to a window that measures bus data. Measurement bus data can be displayed in various forms, such as graphical and textual displays. Graphical displays include, but are not limited to, graph windows and monitorable signal curves; and textual displays include, but are not limited to, message information windows and monitorable signal value changes.

[0041] In some embodiments, each measurement window is dynamically hierarchically connected to other measurement windows. Each measurement window can adjust its connection relationship with other measurement windows or data sources, so as to filter out the required data according to different usage requirements. In addition, the dynamic connection can quickly switch the upper-level connection of a measurement window, which allows the filtering results of the measurement window to be quickly switched, thereby improving the configuration efficiency of the filter and the modification efficiency of the filtering results.

[0042] The following, combined with the accompanying case drawings, explains in detail how each measurement window forms a dynamic hierarchical connection:

[0043] As shown in Figure 2, in the measurement settings window for the measurement data filter, the data source is the source of data for all filters at each layer. The C code editor is connected to the data source and is located at the first level; the graphics window is connected to the C code editor and is located at the second level.

[0044] As shown in Figure 3, the graphics window in Figure 2 can be dynamically dragged and connected to the data source, so that the graphics window and the C code editor are at the same level.

[0045] As shown in Figure 4, the graphics window in Figure 2 can also be dynamically dragged and connected to the CAN / CAN FD message information window, so that the graphics window remains at the second level but receives the filtered signal from the CAN / CAN FD message information window.

[0046] The following, combined with the accompanying application case, explains in detail how each measurement window forms a dynamic hierarchical connection:

[0047] As shown in Figure 5, during the vehicle test, engine-related messages are automatically sent through the "CAN / CAN FD Send" window. There are three frames in total, and their identifiers are: 0x064, 0x110, and 0x111.

[0048] As shown in Figure 6, a user may wish to display message information in the Trace window and only view the three frames of messages sent by the user, while filtering out other messages, such as those from the vehicle's ECU. To do this, simply create a new Trace window and, in the Measurement Data Filter's Measurement Settings window, drag this Trace window to the right of the "CAN / CAN FD Transmit" window, making it the lower measurement window for "CAN / CAN FD Transmit." The three frames of message information in the "CAN / CAN FD Transmit" window automatically become the filter criteria for the Trace window. This method eliminates the need to configure filters specifically for the Trace window, significantly improving filter configuration efficiency.

[0049] As shown in Figure 7, if the user wishes to view the message information corresponding to the gateway signal while filtering out other irrelevant information, the software system already has a gateway signal graph window "Gateway Signals". In this case, in the measurement settings window of the measurement data filter, simply drag the Trace window to the right of the "Gateway Signals" graph window to achieve the user's need, without having to design any filters for the Trace window.

[0050] As shown in FIG8 , during use, if the user still wants to view all message information and does not want to filter out any bus messages, the user only needs to drag the Trace window to the right of the "Data Source" in the measurement settings window of the measurement data filter, that is, to a position parallel to the "CAN / CAN FD Transmit" window and the "Gateway Signals" window to meet the user's needs without clearing any filters for the Trace window. In some embodiments, the method of setting the upstream data stream input port for each measurement window includes:

[0051] Set the data receiving callback function for each measurement window;

[0052] When the data receiving callback function is called, the measurement window reads the data flowing out of the upper measurement window from the parameters of the callback function.

[0053] An example is used to illustrate how to set the upstream data stream input port for the measurement window:

[0054] For example, in the window base class of the automotive CAN bus tool software written in C language, the data receiving callback function is set as follows:

[0055] void on_rx_frame(const ACAN:PCAN);

[0056] The data receive callback function has a parameter, ACAN, which is a pointer to a PCAN-type CAN message. When the data receive callback function is called by the vehicle bus tool system, the system assigns the pointer to the most recently received CAN message to the function parameter ACAN, thereby enabling the measurement window to read the CAN message content from the data receive callback function parameter.

[0057] Since the data receive callback function exists as the base class for all window types, it means that every measurement window supports calling this data receive callback function. Therefore, when data flows from the upper measurement window to the lower measurement window, the data receive callback function of the lower measurement window will be called, and the lower measurement window will be able to obtain the CAN message content flowing from the upper measurement window.

[0058] In some embodiments, the method of setting a downstream data flow output port for each measurement window includes:

[0059] Set the data distribution callback function list and data distribution program for each measurement window;

[0060] The data distribution callback function list includes: a data receiving callback function connected to all lower-level measurement windows of the current measurement window;

[0061] When data flows out of the current measurement window, the data distribution program calls the data receiving callback functions in the data distribution callback function list one by one.

[0062] An example is used to illustrate how to set the downstream data flow output port for the measurement window:

[0063] For example, in the window base class of the automotive CAN bus tool software written in C language, the data receiving callback function is set as follows:

[0064] bool rx_frame(const ACAN:PCAN);

[0065] Set the data distribution callback function list "dispatch_list", which is an array whose elements include the data receiving callback function pointers of all lower-level measurement windows connected to the current measurement window.

[0066] Set the data distribution callback function as follows:

[0067] void dispatch_frame(const ACAN:PCAN);

[0068] The data reception callback function and the data distribution callback function each have a parameter, ACAN, which is a pointer to a PCAN-type CAN message. When the data reception callback function and the data distribution callback function are called by the vehicle bus tool system, the system assigns the pointer to the most recently received CAN message to the parameters of the data reception callback function and the data distribution 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 distribution callback function.

[0069] The data receiving callback function is a function with a return value. The return value indicates whether the parameter data has passed the filtering of its own measurement window filter.

[0070] In the data distribution callback function code, the current measurement window first directly calls the data reception callback function of its own measurement window to trigger the current measurement window to filter the data. During the filtering process, if the data passes the filter of the current measurement window, the data reception callback function returns true, otherwise it returns false. If 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 the lower-level measurement windows. The data distribution program code is as follows:

[0071] Since the data receive callback function and the data distribution callback function exist as base classes for all window types, each measurement window supports calling these functions. Therefore, when data flows from the current measurement window to a lower-level measurement window, the current measurement window will distribute the data to all lower-level measurement windows connected to it. During this distribution process, the data distribution callback function will be called. The current measurement window will first call its own data receive callback function within the function to distribute the data flowing out of the current measurement window to each lower-level measurement window defined in the data distribution callback function list. In other words, each related lower-level measurement window can obtain the CAN message data flowing out of the current measurement window.

[0072] In some embodiments, a method for setting a filter function for each measurement window includes:

[0073] Extract the configuration content of the measurement window to form a filter entry;

[0074] Set up the comparison procedure;

[0075] When data flows into the measurement window, the comparison program first compares the incoming data with the filter items one by one, and the data that matches the comparison is allowed to flow out of the measurement window.

[0076] Taking the example of filtering the measurement window below the graphics window in the automotive CAN bus tool software, the following method is used to set the filter function for the measurement window:

[0077] First, extract all the signals in the graphic window and their corresponding channel numbers and message IDs to form a corresponding table as follows:

[0078] Then, based on the above correspondence table, identical message ID information is removed from the table to form a channel-ID correspondence table as follows. The entries in the channel-ID correspondence table are the filtering entries:

[0079] When the graphical window receives a CAN message from the upper-level measurement window, the comparison program first extracts the CAN message's channel number and message ID and compares them with the entries in the channel-ID correspondence table. Only when both the channel number and message ID match will the message pass through the graphical window filter and be passed to the lower-level measurement window. For example, a 0x33 message from channel 3 cannot find a corresponding entry in the correspondence table and therefore cannot pass the graphical window filter. However, a 0x300 message from channel 1 can pass the graphical window filter because it finds a corresponding entry in the second row of the correspondence table. In some embodiments, when a measurement window in any layer is deleted, the measurement window connected to it in the lower layer is moved to the same level as the deleted measurement window.

[0080] As shown in Figure 9, when the "CAN / CAN FD Transmit" measurement window is deleted, the lower-level measurement windows "Engine Speed" and "Engine Force" connected to this measurement window will be moved to the level of this measurement window, as shown in Figure 10.

[0081] In some embodiments, when the measurement data filter settings are reset, each measurement window will be reset to be directly connected to the data source.

[0082] Specifically, a case study is used to illustrate the changes before and after the measurement data filter settings are reset. As shown in Figure 11, before the measurement data filter settings are reset, each measurement window is set to be hierarchical connection. Click the reset icon in Figure 11 The measurement data filter settings can be reset. After reset, as shown in Figure 12, each measurement window is reset to connect to the data source.

[0083] Some embodiments further provide a data filtering method, comprising:

[0084] As shown in FIG13 , at least one data source window and at least one measurement window connected to the data source window are displayed through the measurement setting display interface. The upstream data flow input port of each measurement window is connected to a downstream data flow output port of a measurement window other than its own measurement window or a data source, forming a hierarchical connection. Each layer of measurement window receives data from the upper layer measurement window through its upstream data flow input port, filters the received data, and then flows it out to the lower layer measurement window through its downstream data flow output port.

[0085] The data filtering method further includes:

[0086] The configuration content of the corresponding measurement window is displayed after the command trigger area in each measurement window is triggered;

[0087] Specifically, as shown in FIG13 , after right-clicking the measurement window to trigger the instruction trigger area, click “Open Selected” to display the configuration content of the measurement window, as shown in FIG14 .

[0088] When any measurement window moves, it automatically forms connections with the corresponding upstream data stream input ports and downstream data stream output ports of other measurement windows;

[0089] By triggering the delete icon in the toolbar of the measurement data filter display interface Then, the selected measurement window is deleted and the lower measurement window of the deleted measurement window is moved to the level where the deleted measurement window is located;

[0090] By triggering the reset indicator in the toolbar of the measurement data filter display interface After that, reset each measurement window to be directly connected to the data source;

[0091] By triggering the expansion icon in the toolbar of the measurement data filter display interface Then, expand and display all measurement windows;

[0092] By triggering the measurement data filter display interface toolbar collapse indicator Then, collapse and hide all measurement windows; and

[0093] By triggering the connection mark between the upper and lower measurement windows Then, expand to show or collapse to hide the lower measurement window.

[0094] As shown in FIG15 , some embodiments further provide a measurement data filtering system, including:

[0095] at least one bus adapter configured to obtain a data source from the ECU;

[0096] At least one computer device, the computer device comprising: at least one processor, at least one display communicating with the processor to present a graphical interface, at least one readable storage medium, at least one communication bus, and at least one communication interface; wherein

[0097] The processor, the readable storage medium and the communication interface communicate with the bus adapter via the communication bus;

[0098] The readable storage medium is configured to store at least one instruction program;

[0099] The processor is configured to, after obtaining a data source, execute the instructions so that the processor performs the following operations: setting an upstream data flow input port, a downstream data flow output port, and a filtering function for each measurement window; connecting the upstream data flow input port of each measurement window to a downstream data flow output port of a measurement window other than its own measurement window or a data source to form a hierarchical connection; each layer of measurement window receives data from an upper layer measurement window through its upstream data flow input port, filters the received data, and then flows the data out to a lower layer measurement window through its downstream data flow output port;

[0100] The display displays at least one data source window and at least one measurement window connected to the data source window through a graphic interface.

[0101] Some embodiments further provide a data filtering method for a measurement system, comprising:

[0102] Obtain data source from ECU via bus adapter;

[0103] After obtaining the data source, an upstream data stream input port, a downstream data stream output port, and a filtering function are set for each measurement window; the upstream data stream input port of each measurement window is connected to a downstream data stream output port of a measurement window other than its own measurement window or a data source, forming a hierarchical connection; each layer of measurement window receives data from the upper layer measurement window through its upstream data stream input port, filters the received data, and then flows it out to the lower layer measurement window through its downstream data stream output port; at least one data source window and at least one measurement window connected to the data source window are displayed through a graphical interface.

[0104] The implementation method of the measurement data filter involved in the measurement data filtering system and the measurement system filtering method is described in detail above and will not be repeated here.

[0105] As shown in FIG16 , some embodiments further provide a measurement data filtering system, including a setting module, a measurement window connection module, and a data processing module, wherein

[0106] a setting module configured to set an upstream data flow input port, a downstream data flow output port, and a filtering function for each measurement window;

[0107] a measurement window connection module configured to connect each measurement window upstream data flow input port to a measurement window downstream data flow output port or data source outside the measurement window itself to form a hierarchical connection;

[0108] The data processing module is configured so that each layer of measurement window receives data from the upper layer measurement window through its upstream data flow input port, filters the received data and then flows it out to the lower layer measurement window through its downstream data flow output port.

[0109] Among them, computer instructions corresponding to the specific implementation functions of the setting module, measurement window connection module and data processing module are stored in a computer-readable storage medium and implemented in a computer device. For details, please refer to the content of the implementation method of the aforementioned measurement data filter, which will not be repeated here.

[0110] The electronic device in the embodiment of the present disclosure is described below from the perspective of hardware processing:

[0111] The specific implementation methods of some embodiments do not limit the specific implementation of the electronic device.

[0112] As shown in Figure 17, the electronic device includes: at least one processor, at least one readable storage medium (also referred to as a memory), at least one communication bus, and at least one communication interface; wherein the processor, the readable storage medium, and the communication interface communicate with each other via the communication bus; the readable storage medium is used to store at least one program for executing the implementation method of the measurement data filter, and the program causes the processor to execute operations corresponding to the implementation method of the measurement data filter. The implementation method of the measurement data filter includes: setting an upstream data stream input port, a downstream data stream output port, and a filtering 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 to form a hierarchical connection; each layer of measurement window receives data from the upper layer measurement window through its upstream data stream input port, filters the received data, and then flows it out to the lower layer measurement window through its downstream data stream output port.

[0113] For details, please refer to the detailed description of the implementation method of the measurement data filter, which will not be repeated here.

[0114] In other embodiments, a computer device or an industrial computer can also be used as a type of electronic equipment.

[0115] The structure shown in FIG17 does not limit the electronic device and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0116] In some embodiments, the communication interface may be an RS232, RS485, USB port, or TYPE port, which may be connected to an external bus adapter. It may also include a wired or wireless network interface. The network interface may optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is typically used to establish a communication connection between the computer device and other electronic devices.

[0117] Wherein, the readable storage medium or computer-readable storage medium includes at least one type of memory, and the memory includes a flash memory, a hard disk, a multimedia card, a card-type memory (such as SD memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, it can be an internal storage unit of a computer device, such as a hard disk of the computer device. In other embodiments, the memory can also be an external storage device of the computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Furthermore, the memory can also include both an internal storage unit of the computer device and an external storage device. The memory can not only be used to store application software and various types of data installed in the computer device, such as computer program code, but can also be used to temporarily store data that has been output or is to be output.

[0118] In some embodiments, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip, used to run program codes stored in a memory or process data, such as executing a computer program.

[0119] In some embodiments, the communication bus may also 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.

[0120] Optionally, the computer device may further include a user interface, which may include a display and an input unit such as a keyboard. 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, or an OLED (Organic Light-Emitting Diode) touchscreen. The display may also be appropriately referred to as a display screen or display unit, and is used to display information processed by the computer device and to display a visual user interface.

[0121] When the processor executes the program, it implements the steps of the embodiment of the method for implementing the measurement data filter shown in FIG1 , such as steps S101 to S103 shown in FIG1 . Alternatively, when the processor executes the computer program, it implements the functions of each module or unit in each of the above-mentioned device embodiments.

[0122] Some embodiments further provide a computer-readable storage medium configured to store at least one program for executing any of the above-described possible methods for implementing the measurement data filter.

[0123] Some embodiments further provide a computer-readable storage medium storing at least one computer-readable instruction that, when executed by at least one processor, causes the aforementioned method for implementing a measurement data filter to be executed. Specifically, the method includes setting an upstream data stream input port, a downstream data stream output port, and a filtering function for each measurement window; connecting each measurement window's upstream data stream input port to a measurement window's downstream data stream output port or data source other than its own measurement window, forming a hierarchical connection; and each measurement window receives data from an upper-layer measurement window via its upstream data stream input port, filters the received data, and then outputs the data to a lower-layer measurement window via its downstream data stream output port. For a detailed description of the method for implementing a measurement data filter, please refer to the detailed description of the method for implementing a measurement data filter; this description will not be repeated here.

[0124] Some embodiments further provide a computer program product, comprising at least one computer program or instruction, wherein when the computer program or instruction is executed on a computer, the computer is enabled to perform any of the above-mentioned possible methods for implementing the measurement data filter.

[0125] Some embodiments further provide a computer program product, comprising at least one computer-readable storage medium having computer-readable program code stored thereon, the computer-readable program code comprising at least one instruction, the instructions causing at least one processor or one or more computer devices to perform the following operations:

[0126] An upstream data stream input port, downstream data stream output port, and filtering function are set for each measurement window. The upstream data stream input port of each measurement window is connected to a downstream data stream output port or data source of a measurement window other than its own measurement window, forming a hierarchical connection. Each layer of measurement window receives data from the upper layer measurement window through its upstream data stream input port, filters the received data, and then flows it out to the lower layer measurement window through its downstream data stream output port.

[0127] For details, please refer to the detailed description of the implementation method of the measurement data filter, which will not be repeated here.

[0128] As shown in FIG18 , some embodiments further provide a measurement data filtering system, comprising: at least one computer device and at least one bus adapter;

[0129] The computer device includes: at least one processor, at least one readable storage medium, at least one communication bus and at least one communication interface; wherein

[0130] The readable storage medium is configured to store at least one program for executing the implementation method of the measurement data filter, and the processor is configured to execute the program of the implementation method of the measurement data filter as described above; the processor, the readable storage medium and the communication interface communicate with each other through the communication bus to obtain the data source obtained from the ECU.

[0131] In some embodiments, the bus adapter can be a CAN (Controller Area Network) bus adapter, a CANFD (Controller Area Network Flexible Data Rate) bus adapter, a FastLIN (Fast Local Interconnect Network) bus adapter, a LIN (Local Interconnect Network) bus adapter, an Ethernet bus adapter, a FlexRay bus adapter, or a one-way to multiple-way bus adapter, or a multiple-way to multiple-way 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 through the UDS (Unified Diagnostic Services) or XCP (Universal Measurement and Calibration Protocol) or CCP (CAN Calibration Protocol) protocol. In some embodiments, the data source is obtained from the (Electronic Control Unit) ECU by communicating with the debugging device (ECU and its related systems) through the UDS (Unified Diagnostic Services) or XCP (Universal Measurement and Calibration Protocol) or (CAN Calibration Protocol) CCP protocol.

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

[0133] In some embodiments, the implementation method of the measurement data filter, the measurement data filtering system, the filtering method of the measurement system, and the data filtering method can be used for data sources obtained from the ECU collected by automobile bus tool software.

[0134] In the several embodiments provided, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or part of a code, which contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, as well as the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.

[0135] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0136] If the functions are implemented in the form of software modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or the portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention.

[0137] With the above-described preferred embodiments of the present invention as a guide, and with reference to the above description, relevant personnel are fully capable of making various changes and modifications without departing from the technical scope of this invention. The technical scope of this invention is not limited to the contents of the specification and must be determined according to the scope of the claims.

Claims

1. A method for implementing a measurement data filter, characterized in that: include: Set the upstream data stream input port, downstream data stream output port and filtering function for each measurement window; Each measurement window upstream data flow input port is connected to a measurement window downstream data flow output port or data source outside its own measurement window to form a hierarchical connection; Each layer of measurement window receives data from the upper layer measurement window through its upstream data flow input port, and filters the received data before flowing out to the lower layer measurement window through its downstream data flow output port.

2. The implementation method according to claim 1, characterized in that: Each measurement window is dynamically hierarchically connected to other measurement windows, and each measurement window can adjust its connection relationship with other measurement windows or data sources.

3. The implementation method according to claim 2, characterized in that: The method of setting the upstream data stream input port for each measurement window includes: Set the data receiving callback function for each measurement window; When the data receiving callback function is called, the measurement window reads the data flowing out of the upper measurement window from the parameters of the callback function.

4. The implementation method according to claim 2, characterized in that: The method of setting the downstream data flow output port for each measurement window includes: Set the data distribution callback function list and data distribution procedure for each measurement window; The data distribution callback function list includes: a data receiving callback function connecting all lower-level measurement windows of the current measurement window; When data flows out of the current measurement window, the data distribution program calls the data receiving callback functions in the data distribution callback function list one by one.

5. The implementation method according to claim 2, characterized in that: Methods for setting filtering functions for each measurement window include: Extract the configuration content of the measurement window to form a filter entry; Set up the comparison procedure; When data flows into the measurement window, the comparison program first compares the incoming data with the filter items one by one, and the data that matches the comparison is allowed to flow out of the measurement window.

6. The implementation method according to claim 2, characterized in that: When any layer of measurement windows is deleted, the measurement windows of the lower layers connected to it will be moved to the level where the deleted measurement windows are located.

7. The implementation method according to claim 2, characterized in that: When the measurement data filter settings are reset, each measurement window will be reset to be directly connected to the data source.

8. A computer-readable storage medium, characterized in that: The computer-readable instructions are stored, which, when executed by at least one processor, cause the program of the method according to any one of claims 1 to 7 to be executed.

9. An electronic device, comprising: at least one memory storing instructions, the memory storing at least one instruction; At least one processor executes the instructions so that the processor performs a program according to any one of claims 1 to 7.

10. A measurement data filtering system, characterized in that: include at least one bus adapter configured to obtain a data source from the ECU; At least one computer device, the computer device comprising: at least one processor, at least one display communicating with the processor to present a graphical interface, at least one readable storage medium, at least one communication bus and at least one communication interface; wherein The processor, the readable storage medium and the communication interface communicate with the bus adapter via the communication bus; The readable storage medium is configured to store at least one instruction program; The processor is configured to, after obtaining the data source, execute the instructions so that the processor executes the program of the method according to any one of claims 1 to 7; The display displays at least one data source window and / or at least one measurement window connected to the data source window through a graphical interface.

11. The system according to claim 10, characterized in that The bus adapter is a CAN bus adapter, a CAN FD bus adapter, a FastLIN bus adapter, a LIN bus adapter, an Ethernet bus adapter, or a FlexRay bus adapter; Communicate with the ECU via UDS or XCP or CCP protocols to obtain data sources from the debug device; and The debugging equipment includes electronic power steering system, anti-lock braking system, electronic stability system, Vehicle engine management system, battery management system equipment.

12. A data filtering method for a measurement system, characterized in that: include: At least one computer device obtains data source from the ECU via a bus adapter; The computer device is configured to: after obtaining a data source, execute at least one program of the method according to any one of claims 1 to 7; At least one data source window and at least one measurement window connected to the data source window are displayed through a graphical interface.

13. A data filtering method, characterized in that: include: At least one data source window and at least one measurement window connected to the data source window are displayed through a measurement setting display interface, and each measurement window upstream data flow input port is connected to a measurement window downstream data flow output port or data source other than its own measurement window to form a hierarchical connection; as well as Each layer of measurement window receives data from the upper layer measurement window through its upstream data flow input port, and filters the received data before flowing out to the lower layer measurement window through its downstream data flow output port.

14. The data filtering method according to claim 13, characterized in that: Also includes: The configuration content of the corresponding measurement window is displayed after the command trigger area in each measurement window is triggered; 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 other measurement windows; After triggering the delete icon in the toolbar of the measurement data filter display interface, the selected measurement window is deleted and the lower measurement window of the deleted measurement window is moved to the level where the deleted measurement window is located; in Reset each measurement window to be directly connected to the data source by triggering the reset indicator in the toolbar of the filter window measurement data filter display interface; and / or Expand all measurement windows by triggering the expand icon in the toolbar of the filter window measurement data filter display interface; and / or By triggering the folding icon in the toolbar of the filter window measurement data filter display interface, folding and hiding all measurement windows; and / or After triggering the connection mark between the upper and lower measurement windows, the lower measurement window is expanded to display or folded to hide.

15. A computer program product, comprising at least one computer program or instruction, wherein when the computer program or instruction is executed on a computer, the computer is enabled to perform the operation of any one of the methods of claims 1 to 7.

Citation Information

Patent Citations

  • Test method and device for CAN (Controller Area Network) bus

    CN108809741A

  • Browser window state control method and system

    CN114238825A

  • Measurement data filter implementation method, storage medium and electronic equipment

    CN117834464A

  • Measurement data filtering system, filtering method thereof and computer program product

    CN118075157A

  • Computer code quality assurance through a scene attribute filter system

    US20170300321A1