cogu / autosar

A set of python modules for working with AUTOSAR XML files
MIT License
358 stars 162 forks source link

NV_Data_Interface #41

Closed Tofeni closed 4 years ago

Tofeni commented 4 years ago

Hello,

i have to generate an arxml file, which will be imported in a davinci workspace.

I can not find a function to create an NV_DATA_INTERFACE element. Can someone tell me if this can be done or not, and if it will be implemented in a future version?

Here is a model how it is look like: Capture

Thank you, Marius

cogu commented 4 years ago

Hi Marius, I'm mostly using the AUTOSAR compendium for reference (https://www.ar-compendium.com) What you are talking about is chapter 7.7 "Nonvolatile Data Port" This means you trying to create a special kind of software component called "NVBlock Software Component". This Python module does not support anything from chapter 7.7 yet and I have no current plants to implement it. Progress on this module is slow since I'm doing the work in my spare time.

Anyone is welcome to fork this repo and implement it on your own using pull request. However, I will only accept pull requests that have working unit tests cases for the new feature.

Tofeni commented 4 years ago

@kallemooo , Thank you for your pull request!

I have one more question:

How can i crate a nvdata with type: "VARIABLE-DATA-PROTOTYPE"?

cogu commented 4 years ago

Check the file ar4_portinterface_test.py for reference. There should be two test methods that you can use as examples: test_create_nv_data_interface_single_element, test_create_nv_data_interface_multiple_elements

Tofeni commented 4 years ago

@cogu Thank you!

cogu commented 4 years ago

@kallemooo Thanks for adding the test cases