09-26-2016 02:01 PM
Has anybody successfully extracted the CAN network information from an AUTOSAR XML (.arxml) file and exported it to a format NI-XNET understands (i.e. .dbc, FIBEX)? If so, what tool(s) did you use?
09-27-2016 10:16 AM
Neither the NI-CAN driver nor the NI-XNET driver currently provides support for using .arxml
files.
.dbc
) for CAN, FIBEX (.xml
) for FlexRay, or LIN Description File (.ldf
) for LIN..dbc
) as well as NI-CAN database files (.ncd
).09-27-2016 10:21 AM
Thanks. I'm hoping somebody can point me to a tool they use to convert from ARXML to DBC (or FIBEX). So far, the options I've found are either extreamly expensive or are very basic and don't support some of the parameter values in the ARXML file I need to convert.
09-30-2016 10:03 AM - edited 09-30-2016 10:03 AM
I was able to use the canmatrix Python program to convert my ARXML file to a DBC. Out of the box, this program was able to convert about 80% of the information automatically. The rest was a combination of editing the ARXML to work-around features not supported by canmatrix and manually adjusting things in the output DBC file.
06-26-2017 12:35 PM
If you are still looking for support for importing .arxml using X-NET, this is now supported in X-NET 17.0.1 (readme)
11-06-2017 06:51 AM
Hello guys,
I used the NI-XNET database editor from XNET v 17.0.1 to convert from arxml to dbc file and worked. I selected the arxml file and to confirm from Options "use PDUs" to see all the data from arxml file. The arxml file need to respect some condition to be converted into dbc file:
For more details you can look at :
http://zone.ni.com/reference/en-XX/help/372841M-01/nixnet/nxpropclst_pdusreqd/
When converting from arxml to dbc you will lose all data connected to I-PDU, which is an AUROSAR method of sending group of signal to CAN. The communication will be at signal level. For reaching this it is necessary to delete the PDUs from arxml file which are not conected to any frame. After deleting all this pdus, save the file in FIBEX xml format.
With the this new format in memory of the editor select the CAN cluster you want to export as DBC file, and click write to " export to DBC.."
You have to double check if you do not lose some messages or signals from the original file.
Using this method I got a usable dbc file with all the signal and frames from autosar arxml file.
02-02-2018 10:55 AM - edited 02-02-2018 10:56 AM
For your information, the support for AUTOSAR XML Files 3.X and 4.X for CAN and LIN was added to NI-XNET 17.0 (for CAN) and 17.5 (for LIN). Check this out:
Regards,