canmatrix icon indicating copy to clipboard operation
canmatrix copied to clipboard

Usecases: Please Add here

Open ebroecker opened this issue 6 years ago • 25 comments

Hi everybody, you are welcome to add your use case of canmatrix here. I just want to have some idea what people are using canmatrix for.

So feel free to tell something you use it for or "vote" some comment.

Thanks, I'll take the answers here into account for further prioritization of issues.

ebroecker avatar Dec 06 '19 11:12 ebroecker

Hello, I would like to use canconvert to convert an .arxml AUTOSAR V 4.2.2 to a dbc (in fact multiple as there are multiple network defined). Is support for AUTOSAR version other than only 3.2.3 and 4.1.0 planned?

EDIT: Ok just saw the information in the canconvert help is relevant for output files. Is there a restriction for input files to? I get a "ERROR - init - This file format is not supported for reading" message.

ForestRupicolous avatar Jan 07 '20 14:01 ForestRupicolous

Hi @ForestRupicolous Maybe you did not install the required packages. How did you install? Did you read https://canmatrix.readthedocs.io/en/latest/installation.html?

ebroecker avatar Jan 10 '20 13:01 ebroecker

Hi @ebroecker, thank you for your fast response. You are correct I totally missed these packages. I installed via pip and was expecting that all required modules where added as some where automatically installed. Installed them now. I have to check if the conversion is working next week as I haven't the file available on this PC.

ForestRupicolous avatar Jan 10 '20 16:01 ForestRupicolous

Hi , @ebroecker ,

Currently the cancompare outputs the difference in the console, can it output in excel with value of old and new , it would helpful to know what exactly the current output is helpful it would more helpful if we were to view the output in spread sheet with the differences atleast for the signals(new and old value) / messages( whether periodicity or receiver/transmitter attributes got modified) .

krishomprasad avatar Feb 01 '20 15:02 krishomprasad

Hi @ebroecker

Thanks for writing this library. I am using canmatrix for handling Symbol files which my company generates for our products and for converting to other formats which our users need. I am also finding it useful for manipulating Symbol files to add duplicate frames (with incrementing IDs etc.) and things where being able to manipulate things in python is far easier than editing them either by hand or in the Symbol Editor from PEAK. So having .sym support is very useful.

I have noticed that there are some features missing from the Symbol format parsing/writing. (particularly around signal types and enumerations). I've been able to modify the code to do what i need, are you looking for more contributions?

Thanks Seneda

Seneda avatar Apr 07 '20 14:04 Seneda

@Seneda

You are very welcome to add your contributions here.

Just create a pullrequest...

ebroecker avatar Apr 08 '20 06:04 ebroecker

Another use case i have is to use the .json format for interfacing with tools I write in other languages (as json parsing libraries already exist and it is much simpler to not have to write a .sym parser in C# for example). There are some things missing the .json files generated compared with the .sym file, enumeration value tables for example. I can easily make changes to add these, but is the .json structure used here based on a standard CAN db format or is it unique to this library? I wouldn't want to try and make any changes that would break a dependency of some other library or standard etc.

Seneda avatar Apr 08 '20 09:04 Seneda

@Seneda

You are free to do so. If you look at #136 (very old issue) - I wanted to add data to json.

Just add these things to the "export all" section of the json formater. Maybe - importing these new items would be great also :-)

ebroecker avatar Apr 08 '20 10:04 ebroecker

hello @ebroecker

I noticed that the comment in arxml.py says "currently support for AUTOSAR 3.2 and 4.0-4.3 is planned". Can I use this tool to convert arxml(AUOTSAR 4.2) file to DBC file now? When I converted the arxml file, I found that the transmitter of the frame was not generated into the DBC file. May I ask you for some advice?

yangx1990 avatar Mar 02 '21 10:03 yangx1990

Hi @yangx1990 ,

yes you can. should work out of the box. please let me know if problems occure

ebroecker avatar Mar 02 '21 15:03 ebroecker

@ebroecker Thank you for your response.

There are 2 arxml files in my hand. In the element "ASSOCIATED-COM-I-PDU-GROUP-REFS" of one arxml file, customer used "CONTAINED-I-SIGNAL-I-PDU-GROUP-REFS" while I found "CONTAINED-I-PDU-GROUPS-REFS" is used in arxml.py. And then "I-PDU-REFS" in arxml.py is instead of "I-SIGNAL-I-PDUS" in my arxml file. In the other arxml file, no "ASSOCIATED-COM-I-PDU-GROUP-REFS" or "ASSOCIATED-I-PDU-GROUP-REFS" could be found. I think that may be the reason why frame transmitter can not be generated when I used canmatrix to convert arxml file to dbc file.

yangx1990 avatar Mar 03 '21 08:03 yangx1990

In our project, we have to maintain CAN databases in IBM DOORS. This tool is able to import/export with Microsoft Excel. To generate DBC-files I thought of canmatrix's DBC<->Excel conversion features as an intermediate tool from DOORS over EXCEL to DBC.

To evaluate the conversion, I tried to "cancovert.exe" an ordinary DBC file to XLS and back to DBC. The XLS looks fantastic and I was very happy with the result. But the back conversion failed, min/max and scaling information for the signals are ignored. I think, this is not a bug, it is just a missing feature according to the Supported File Fomats list. What does the "p" in the table stand for? Planned? I would really appreciate that.

Joshua-Calvert avatar Apr 29 '21 09:04 Joshua-Calvert

hI @Joshua-Calvert xls(x) is a "lossy" format. "p" means "partly".

What you need is a xlsx-format which does not loose information. It can be done. Which attributes you need?

maybe you could try during export and import: --additionalSignalAttributes is_signed,factor,offset

ebroecker avatar Apr 30 '21 13:04 ebroecker

I'm looking to convert the SAE digital annex excel file into a dbc format. Unfortunately I can't find a tool to do this.

Morgan-Swanson avatar May 21 '21 08:05 Morgan-Swanson

We support reading and writing DBC files, but not ARXML. I need to read ARXML too. This tool is very helpful because I can easily edit DBC files and see what happens in an conversion to an ARXML file.

markmenge avatar Aug 27 '21 04:08 markmenge

Hi @ebroecker is it available to use the library to get ethernet cluster information?

AhmedKotb10 avatar Apr 17 '23 18:04 AhmedKotb10

Hi @ebroecker I have Ethernet .arxml files. I want to extract information from these .arxml files. Is it possible to do so with canmatrix?

If yes, could you please hint me on this, how can I do this?

kruti2107 avatar Jul 04 '23 08:07 kruti2107

Hi @kruti2107

yes, a little bit. Try this command line option: --arxmlEthernet

maybe: convert.py --arxmlEthernet some_arxml_file.arxml some_excel_file.xlsx

ebroecker avatar Jul 04 '23 09:07 ebroecker

@ebroecker. Thanks for the quick reply.

Is this the only way with command line? Is there any function or something like that which could I include in my code?

kruti2107 avatar Jul 04 '23 09:07 kruti2107

Hi @kruti2107 ,

for sure, you can. I don't know your code, but if you do something like:

cluster = canmatrix.formats.arxml.load(arxml, decode_ethernet=True)

the information which is extracted is very limited: https://github.com/ebroecker/canmatrix/blob/development/src/canmatrix/formats/arxml.py#L1745

ebroecker avatar Jul 04 '23 10:07 ebroecker

Hi @ebroecker ,

After the arxml load oepration, I am getting empty object. No information related to my ethernet ARXML.

Do you have any idea, what could be the possible reason?

kruti2107 avatar Jul 06 '23 11:07 kruti2107

Hi @ebroecker , It was a fault from my side. I made some wrong configuration. It's done now.

Thanks for the suggestion

kruti2107 avatar Jul 06 '23 13:07 kruti2107

Hi @kruti2107

perfect. Does this little extracted information help you?

ebroecker avatar Jul 06 '23 13:07 ebroecker

@ebroecker Not sure right now, how much will it help. I was looking for way to extract info from the db.

kruti2107 avatar Jul 07 '23 06:07 kruti2107

In our project, we have to maintain CAN databases in IBM DOORS. This tool is able to import/export with Microsoft Excel. To generate DBC-files I thought of canmatrix's DBC<->Excel conversion features as an intermediate tool from DOORS over EXCEL to DBC.

To evaluate the conversion, I tried to "cancovert.exe" an ordinary DBC file to XLS and back to DBC. The XLS looks fantastic and I was very happy with the result. But the back conversion failed, min/max and scaling information for the signals are ignored. I think, this is not a bug, it is just a missing feature according to the Supported File Fomats list. What does the "p" in the table stand for? Planned? I would really appreciate that.

I have done the similar: "cancovert.exe" an ordinary DBC file to XLS and back to DBC, but

"cancovert.exe" an ordinary DBC file to XLS works without problem. xls(x) back to DBC does not work, and it says: format not supported.

May I ask how you did the back to DBC part? @Joshua-Calvert

wxie1 avatar Aug 25 '23 07:08 wxie1