How to implement error port for AUTOSAR receiver interface inport like suggested by Model Advisor check "mathworks.misra.AutosarReceiverInterface"
Show older comments
The Model Advisor check "mathworks.misra.AutosarReceiverInterface" throws following warning: "AUTOSAR receiver interface inport does not have a matching error port." with follwowing suggested action: "Add missing error port and map to the corresponding AUTOSAR receiver interface inport."
But how can an error port for a Receiver port be implemented in Simulink? I couldn't find anything in the documentation.
2 Comments
Mohammed Elhifnawy
on 17 Jul 2019
I have the same issue
Jagtendra Kumar
on 13 Feb 2020
I have same issue..
Answers (2)
Jerry George
on 13 Feb 2020
Edited: Jerry George
on 31 Jul 2020
0 votes
The following steps will remove the warning.
- Add the required error port to the model.
- Open the Code Mappings Editor (https://www.mathworks.com/help/autosar/ref/autosarcodemappingseditor.html)
- For the error ports, set 'DataAccessmode' to 'ErrorStatus' and the Port to the input port that it supports.
I have attached a sample model with this answer.
6 Comments
Hariprakash Maddela
on 6 Mar 2020
Hello Jerry,
Could you please give the details with simple example for an input port 'A' and error port adding for 'A'
Nagaraj Chincholli
on 31 Jul 2020
Hello Jerry,
Could you please share the example to configure this.
Thanks
Nagaraj Chincholli
on 31 Jul 2020
Thanks Jerry for quick response.
Could you please share the 2018b version of example model.
Nagaraj Chincholli
on 4 Aug 2020
Hi,
I am using MATLAB R2018b so unable to open the attached R2021a version 'm_autosar_error_port.slx' file.
Can someone export to R2018b and share me please.
Thank you
Jerry George
on 4 Aug 2020
I have attached an 18a model.
Nagaraj Chincholli
on 4 Aug 2020
Thanks Jerry.
I will look at it.
Federico Roselli
on 27 Mar 2020
0 votes
I followed what is in these 2 links:
https://it.mathworks.com/help/autosar/ug/autosar-communication.html#bsa24_3-6 chapter: Sender-Receiver Interface
and
https://it.mathworks.com/help/autosar/ug/configure-autosar-sender-receiver-communication.html chapter: Configure AUTOSAR Receiver Port for DataReceiveErrorEvent
The error port is simply another simulink input. After you define the input configure it on the Code Mappings Editor as said by Jerry George.
Categories
Find more on AUTOSAR Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!