This chapter will break down the usage of the CAN FD Substream Decoder.
After reading this article, you should have the knowledge:
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!
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:
At first you should know if 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.
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.
You can configure one database per channel 1 and one cluster name per channel 2 , if necessary.
The configuration depends on the database you want to use for decoding your data.
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.
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.
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:
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.
The CAN FD Substream Decoder has one input-pin input_canfd and one output-pin output-messages.