doc_logo.png

CAN FD Substream Decoder

This chapter will break down the usage of the CAN FD Substream Decoder.

After reading this article, you should have the knowledge:

General usage

The CAN (FD) Substream Decoder is used to decode CAN FD Messages, which can then be requested dynamically, at runtime from other ADTF filters. For decoding a working CAN FD Service is necessary!

The advantages of the CAN FD Substream Decoder

So what's the reason we developed the CAN FD Substream decoder? The answer is pretty simple. You have various advantages over the old decoding with the help of the SCFE:

Prepare CAN FD Service and CAN FD Substream Decoder for live decoding

At first you should know which database you have to use for decoding. At this moment the CAN FD Service supports ARXML- and DBC-files. If you add the CAN FD Service two additional parser services are added.

context_scfe.jpg

If you click on the CAN FD Support Service you will see a window on the right side in the Configuration Editor , where you can configure the service.

scfe.jpg

You can configure one database per channel 1 and one cluster name per channel 2 , if necessary.

Configure the CAN FD Support Service

The configuration depends on the database you want to use for decoding your data.

Configuring a DBC-file as database

If you want to use a DBC-file as a database you have to include the path and the DBC-file in the desired channel. You don't have to include a cluster name, because DBC-files don't describe more than one CAN FD-cluster.

scfe.jpg

Configuring an ARXML-file as database

If you want to use an ARXML-file as a database you have to include the path and the ARXML-file in the desired channel exactly like if you would include a DBC-file. But you have to remember, that it is possible, that there are more than one CAN FD-cluster. If you have more than one CAN FD-cluster the session won't start, but give you an error message instead where you can see the names of the possible, decodable CAN FD-clusters.

scfe.jpg

So a completly configured CAN FD Service for CAN FD channel 2, for an ARXML-file with more than one CAN FD-cluster, where you want to decode the Cluster CANFD02 could look like this:

scfe.jpg

Configure CAN FD Substream Decoder

If you click on the CAN FD Substream Decoder in the configuration editor, you only have to write in the desired CAN FD-channel. Here for example CAN FD-channel 2 is set.

scfe.jpg

The CAN FD Substream Decoder has one input-pin input_canfd and one output-pin output-messages.

scfe.jpg