太阳集团6138(CHINA)澳门企业-环球百科 /en/how-to-filter-common-bus-message-signals-in-tsmaster/ /en/how-to-filter-common-bus-message-signals-in-tsmaster/#respond Wed, 19 Jun 2024 08:00:03 +0000 /?p=5774 The TSMaster software platform supports the filtering of messages and signals for different buses (CAN, LIN, FlexRay), including global receive filtering, number [...]

The post 干货分享 | TSMaster 中不同总线报文消息过滤的操作方式 first appeared on 上海太阳集团6138科技有限公司.

]]>
TSMaster software platform supports different bus (CAN, LIN, FlexRay) message and signal filtering, including global receive filtering, data stream filtering, window filtering, string filtering, programmable filtering, the use of different bus signal filters are basically the same. Today, we continue to bring you [TSMaster Bus Analysis 3] - the operation of different bus message filtering.

Keywords:CAN, LIN, FlexRay, Telegram Message Filtering


The following filtering operations are used in CAN message information: global receive filtering, data stream filtering, window filtering, string filtering, and programmable filtering; these filtering operations are explained in detail below.

1. Global receive filtering

Global reception filtering refers to configuring filtering settings on the hardware controller. This method is limited to hardware and TOSUN virtual channels and is not supported by devices from other vendors. Before proceeding, you must select hardware channels from TOSUN equipment. Here, we use the TC1016 as an example.

technical articles 20250924 1 1 TSMaster

Then open Bus Hardware - CAN Hardware Configuration - Filter ID Settings as shown in Figure II. Here you can choose to filter standard and extended frames, the default is a pass filter, which cannot be modified to a block filter. The filtering condition is to identify each binary bit of the message ID, each bit corresponds to three setup characters "0, 1, x", x means that the bit can be either 0 or 1. If you only need to filter one ID, you can also directly specify the identifier, and after completing the setup, a list of identifiers that can be passed will be displayed at the bottom, and the sitting party can verify whether the desired identifier can be passed or not. If you want to filter only one ID, you can also specify the identifier directly.

CAN telegram message filtering - global receive filtering

2. Data stream filtering (measurement filters)

TSMaster software has a measurement setting window, in which you can combine the data flow direction to realize the effect of filtering, and also supports adding a filter window in front of the window.

The basic idea is that the data flow through a window, the data contained in this window is allowed to pass, other data is not allowed to pass. As shown in the figure below, in the measurement setup window, the message information #2, measurement filters, graphic three windows for topology connection, from the message information window can see that there is a EngineData message under the EngSpeed signal, but in the graphic window is n.a., indicating that it is invalid. This is because a filter has been added to the measurement settings to block the EngineData on channel one.

technical articles 20250924 1 3 TSMaster

Measurement of the window filter is in the window click on any window selected box right-click and select Insert Filter, you can also directly in the margins of the choice to add and then dragged to the back of another window. Double-click to open the inserted filter, where you can select the channel to be filtered, the filter conditions here to support any message, a single ID, ID range, node filtering, as well as error frame filtering, and finally need to pay attention to is the type of filter you can choose to pass through the type or block type.

3. Message ID Filter

This filter directly click the funnel icon in the message information window to pop up the configuration window, applicable to real-time listening to bus data or message playback when the operation, where theSupports message ID filtering and channel filtering, you need to pay attention to the bottom left corner to select whether it is pass-through or block-through.

technical articles 20250924 1 4 TSMaster

4. String filtering

String filtering is the same as window filtering and supports fuzzy query. The scope of filtering includes the message identifier, the parsed message name, and the physical value (enumerated value) in the message information, and the parsing of the message needs to load the database and bind the corresponding channel in advance. Here it is recommended to load the DBC database.

technical articles 20250924 1 5 TSMaster

5. Programmable filtration

Programming filter is the most complete filtering conditions, it filters the conditions including all the member attributes of the message structure, specifically from the TSMaster header file to view, including the message frame type, send and receive direction, DLC and so on.

To use this filter you need to first click on the funnel icon in the upper right corner of the message information window, select Activate Filter, and then select Install Default Filter Library; after the installation is complete, the C applet of the default library will pop up, and the applet can be seen, respectively, for CAN, LIN, FlexRay, and Ethernet to create custom functions to differentiate between the structural definitions of the structural definition of the structural definition of the structural definition of all in the TSMaster.h header file can be found.

The key point is this:A return of 0 indicates that the eligible message is blocked, while a return of non-zero indicates that the message is windowed to go through..

technical articles 20250924 1 6 TSMaster
technical articles 20250924 1 7 TSMaster

The following is the operation of pass-through filtering for channel one messages. After writing the code, you need to compile the applet, and finally, you can select the corresponding API function in the programmable filter.

technical articles 20250924 1 8 TSMaster
technical articles 20250924 1 9 TSMaster
technical articles 20250924 1 10 TSMaster

The filtering of LIN telegram messages is done by the following filtering operations.

1. Data stream filtering

Configure the topology of the three windows of the measurement filter, LIN message information #2, and graphics in the measurement setup, and as a result, you can see that after the filter only the frame 0x15 of this message passes through to arrive at the message information window, and at the same time, the value of the SteeringLampState signal in the graphics window is n.a. invalid value. From the message information window, you can see that the original data stream has this signal data.

LIN telegram message filtering - data stream filtering

2. Message ID window filtering

Window filtering is different from the previous one in that the channel filtering settings are moved to the lower right corner of the filter setting window, and will take effect immediately after activating the enabling filter by selecting only channel 1 or other; in addition, the channel of the added identifier corresponds to the channel configured in the lower right corner, which is different from the window filtering of the CAN as mentioned earlier.

technical articles 20250924 1 12 TSMaster

3. String filtering

The scope of string filtering is also the message identifier, the message name after parsing the message information name, and the physical value (enumeration value) in the message information. It is recommended to load the DBC database.

technical articles 20250924 1 13 TSMaster

4. Programmable filtration

As shown in the figure below, messages that pass through channel one and have a first message data byte of 0x00 are filtered by programmable.

technical articles 20250924 1 14 TSMaster
technical articles 20250924 1 15 TSMaster

The only FlexRay message filters for telegrams are window filtering, string filtering, and programmable filtering.

1. Window filtering

FlexRay window filtering supports adding channel filters and adding corresponding messages from the database.

FlexRay Telegram Message Filtering-Window Filtering

2. String filtering

String filtering is used in the same way as CAN and LIN for signal keyword search.

technical articles 20250924 1 17 TSMaster

3. Programmable filtration

Programmable filtering is also accomplished by making conditional judgments on FR structure members, and the following range filtering of Slot id can be achieved using Slot Id as an example

FlexRay Telegram Message Filtering-Programmable Filtering
technical articles 20250924 1 19 TSMaster

Which feature of TSMaster are you most interested in? Or what problems have you encountered in practical applications?

Welcome to share your experience or questions in the comment section, any ideas or suggestions can also be comment section message interaction, will have the opportunity to win the TOSUN mystery gift bag Oh ~!

Tip:
1. Software download:
Click on the software download link below to download and install directly, beta version is recommended:

2. Software upgrades:
You can check for upgrades to the latest version within the software, provided that your computer has an Internet connection.

Note: TOSUN Technical Support Email:support@tosunai.cnWe welcome inquiries! (Company and contact information must be indicated)

The post 干货分享 | TSMaster 中不同总线报文消息过滤的操作方式 first appeared on 上海太阳集团6138科技有限公司.

]]>
/en/how-to-filter-common-bus-message-signals-in-tsmaster/feed/ 0