Unpack ethernet data (TCP) using Simulink libraries

3 ビュー (過去 30 日間)
Abhishek
Abhishek 2024 年 4 月 22 日
回答済み: Shlok 2024 年 12 月 6 日
I'm using the Raptor-Dev's model-based toolbox to recieve ethernet data using TCP and wanted to unpack the data to readable signals within the simulink model. I have an .arxml database which descibes the PDU's and signals being recieved. The longest PDU to be read is about 4960 bytes.
How can I unpack the data recieved using simulink libraries. Is there any specific toolbox that needs to be installed?

回答 (1 件)

Shlok
Shlok 2024 年 12 月 6 日
Hi Abhishek,
I understand that you want to extract and interpret data described in an ARXML database as readable signals.
This can be achieved using the CAN Unpack block available in the Vehicle Network Toolbox. The CAN Unpack block extracts signal data from a CAN message based on specified output parameters at each time step, with the data being output as individual signals.
Tthe CAN Unpack block supports a broader range of ARXML file structures compared to DBC files, making it more suitable for handling generic ARXML files.
You can refer below for more information about ARXML file support for CAN blocks in the following documentation:

カテゴリ

Help Center および File ExchangeBlock Libraries についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by