- The python parser engine for EB Tresos Xdm file.
- To support EB Tresos data model with python.
- Run
python setup.py bdist_wheelto generate distribution - Run
twine check dist/*to check the validation of distribution - Run
twine upload dist/*to upload to pypi repository - Check the website https://pypi.org/project/armodel/ to find out it works or not
And more details can be found at https://packaging.python.org/
Extract the Os Task information from os.xdm and then report all to Excel file.
os-xdm-xlsx data/Os.xdm data/Os.xlsxResult:
- OsIsrs
- OsTasks
- OsScheduleTable
- OsCounter
Extract the Rte Configuration information from rte.xdm and then report all to Excel file.
- Export the Rte Configuration information to excel file
rte-xdm-xlsx data/Rte.xdm data/Rte.xlsx- Export the Runnable Entities information to excel file
rte-xdm-xlsx -r data/Rte.xdm data/Os.xdm data/Runnable.xlsxExtract the NvM Configuration information from nvm.xdm and then report all to Excel file.
- Export the Nvm Configuration information to excel file
nvm-xdm-xlsx data/NvM.xdm data/NvM.xlsxExtract the EcuC Configuration information from ecuc.xdm and then report all to Excel file.
- Export the EcuC Configuration information to excel file
ecuc-xdm-xlsx data/EcuC.xdm data/EcuC.xlsxRead the EB preference XDM and generate the ARXML file list into text file or create the AUTOSAR builder project file.
$ pref-system-importer.exe -h
usage: pref-system-importer [-h] [-v] [--file-list] [--ab-project] [--base-path BASE_PATH] [--TRESOS_OUTPUT_BASE_DIR TRESOS_OUTPUT_BASE_DIR] [--project PROJECT] INPUTS [INPUTS ...] OUTPUT
positional arguments:
INPUTS The path of perf_imp_xxx.xdm.
OUTPUT The path of output file.
optional arguments:
-h, --help show this help message and exit
-v, --verbose print debug information.
--file-list generate the file list (Default)
--ab-project generate the AUTOSAR builder project
--base-path BASE_PATH
base Path for EB tresos
--env ENV [ENV ...] specify the environment variable
--project PROJECT specify the project nameh, help
Show the usage information
-v, --verbose
Print the extra debug information during execution.
--file-list or --ab-project
Generate ARXML file list text file or AUTOSAR builder project.
--base-path
Base path for the EB tresos project. For example: c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rte
If the base path is specified, all input preference XDM configuration files will be based on this BasePath, which can solve the problem of the input preference configuration file name being too long.
--project
The project name will be generate in the AUTOSAR build project.
It is meaningless if you choose to generate ARXML file list text file.
--env
Replace the variable definition of ${env_var:xxx} which is defined in the EB preference XDM file.
To generate the ARXML file list:
- Base path: c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rte
- INPUT:
- c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rte/.prefs/pref_imp_exp_Imp_System.xdm
- OUTPUT: output.lst
PrefSystemImporter --base-path c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rte .prefs/pref_imp_exp_Imp_System.xdm output.lst To generate the AUTOSAR builder project:
All ARXML files in the .project file will use relative path names, so it is recommended to run PrefSystemImporter in the directory where the .project is located.
- Base Path: c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rte
- INPUTs:
- c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rte/.prefs/pref_imp_exp_Bswm_rte.xdm
- c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rte/.prefs/pref_imp_exp_Imp_System.xdm
- OUTPUT
- c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rte/ab_project/.project
- Project Name: SimpleDemoRte
cd c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rte/ab_project
PrefSystemImporter --base-path c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rte --ab-project --project SimpleDemoRte .prefs/pref_imp_exp_Bswm_rte.xdm .prefs/pref_imp_exp_Imp_System.xdm .project Version 0.8.0
- Create the basic model for EB xdm. (Issue #1)
- Support to extract the Os Tasks/Isrs from EB xdm and store them in the excel files. (Issue #1)
Version 1.0.1
- Change the attribute to start with lowercase
- read_ref_value and read_optional_ref_value method returns EcucRefType.
- Read the OsScheduleTable and export to excel
- Read the OsCounter and export to excel
Version 1.0.2
- Fix the setOsAlarmCallbackName bug
Version 1.0.3
- Generate the System import file list based on EB preference Xdm.
- Add the support to read OsTaskAutostart element.
- Add the support to read OsTaskType element.
Version 1.1.1
- Add the support to append SystemMod/EcuExtract.arxml into list automatically for PrefSystemImporter.
Version 1.1.2
- Read the OsAppTaskRef from OsApplication.
Version 1.1.3
- Support to read Isr Priority and Vector for R52+ core.
- Export the Isr Priority and Vector to Excel.
- Read the OsAppResourceRef, OsAppIsrRef from OsApplication.
Version 1.1.4
- Fix the incorrect attribute of osTaskAutostart.
- Add the isOsTaskAutostart method to get the enabled flag of osTaskAutostart.
- Add the flake8 change rules.
Version 1.1.5
- Add the new interfaces to support to get the instance by name.
- Rte::getRteBswModuleInstance
- Rte::getRteBswModuleInstance
Version 1.1.6
- Add the OsResource support in Os Module:
- Os::getOsResourceList
- Os::addOsResource
- Read the NvMBlockDescriptor List
Version 1.1.7
- Solve the case issue of read_optional_value enables attribute.
- Support to read IMPORT_INFO for OsResource.
- Add the test cases for OsXdmParser.
Version 1.1.8
- Support to read NvM configuration from EB tresos Xdm file
- Export the NvM Configuration to excel file.
Version 1.1.9
- Parse the OsAppAlarmRef List of OsApplication
- Parse the OsAppCounterRef List of OsApplication
- Parse the OsAppScheduleTableRef Lis of OsApplication
- Add the read_eb_origin_value method to read the optional EB extended configuration
- Fix the OsIsrPriority and OsIsrVector issue.
Version 1.2.0
- Fix the AbstractEbModelParser::_convert_value error.
- Add the structure for Ecuc.xdm and BswM.xdm.
Version 1.2.1
- Read the EcucPartition from EcuC.xdm
- Read the EcucPartitionSoftwareComponentInstanceRef from EcuC.xdm
Version 1.2.2
- Fix the TARGET of EcucPartitionSoftwareComponentInstanceRef is empty and skipped to added.
Version 1.2.3
- Implement the OsApplication parser.



