Hi Xu Caili,
1.
There is no direct way to import AUTOSAR arxml files into APP4MC. One of our (Vector Informatik) tools, the
TA Tool Suite, can be used to import an AUTOSAR model and export it as APP4MC model. There might be other tools offering similar functionality, that I’m not aware of…
2.
Yes, AUTOSAR and APP4MC models are different, here is how I would map AUTOSAR to APP4MC:
AUTOSAR model
|
Amalthea model
|
TimeTrigged
|
PeriodicStimulus
|
DataReceivedTriggered
|
EventTriggered (label event – if the received data is written into a label)
|
OperationInvokedTriggered
|
This one is difficult. Use whatever knowledge you have about the activation patterns and try to model them in Stimuli, see
https://www.eclipse.org/app4mc/help/latest/index.html#section3.12 for an overview.
|
InitEvent
|
SingleStimulus
|
DataReceivedErrorTriggered
|
EventTriggered (label event – if the received error is somehow written into a label)
|
As you know, the mapping table is by no means complete. The AUTOSAR standard is open, but many AUTOSAR implementations are closed (including importers and exporters). For this reason, the transformation from
AUTOSAR and APP4MC (and the underlying mapping) is closed and not openly documented.
Ultimately, you have these options:
1.
Buy a tool to do the conversion for you
2.
Do it manually
3.
Or implement it yourself.
Best regards
-Raphael
Dear Developers of APP4MC,
Thank you for your continuous work on APP4MC.
We are trying to use APP4MC to do the Runnable to tasks’ mapping and task to cores’ mapping, at least for a start version.
1.
Since we design the SWCs and Runnables following AUTOSAR standard, the output is arxml files. So how to transfer the arxml files to Amalthea model? Or are there any other
way that could help us model the SWCs and Runnables in APP4MC more quickly(e.g. import csv)?
2.
It seems the two models are not identical. I am trying to model the activations of Runnables in APP4MC, but it’s hard to find the corresponding activation. Could you help
check the mappings in following table?
AUTOSAR model
|
Amalthea model
|
TimeTrigged
|
Periodic Activation
|
DataReceivedTriggered
|
EventTriggered(label event)??
|
OperationInvokedTriggered
|
SporadicActivation
|
InitEvent
|
SingleActivation
|
DataReceivedErrorTriggered
|
??
|
Best Regards,
Xu Caili
-----------------------------------------------------
Senior Research Engineer
PES1.4.4
Vector Informatik GmbH
Visitor address: Franz-Mayer-Straße 1 | 93053 Regensburg | Germany
Tel.: +49 941-20865-288
raphael.weber@xxxxxxxxxx
www.vector.com
Registered Office: Ingersheimer Str. 24 | 70499 Stuttgart
Commercial Register: Amtsgericht Stuttgart | HRB 17317
Managing Directors:
Dr. Thomas Beck, Dr. Stefan Krauß, Thomas Riegraf
-----------------------------------------------------