ebroecker / canmatrix

Converting Can (Controller Area Network) Database Formats .arxml .dbc .dbf .kcd ...
BSD 2-Clause "Simplified" License
907 stars 400 forks source link

ARXML to XLS issue #94

Closed mahanteshdh closed 6 years ago

mahanteshdh commented 7 years ago

Hi I am using tool to convert arxml to xls, got this error, I am using following arxml version:

http://autosar.org/schema/r4.0 AUTOSAR_4-1-1.xsd" xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

Attached error screen:

Is there size limitation?

error_2 error_1

ebroecker commented 7 years ago

You are using version 0.5? Your ARXML contains canFD-Frames right? Please try dev-0.6-Branch. It's a known issue of 0.5, that canfd is not supported (frames with more than 8 bytes are buggy in 0.5)

mahanteshdh commented 7 years ago

Yes my arxml contains CAN FD frames. I installed dev-0.6 branch and i see below issue : image

ebroecker commented 7 years ago

OK, I fixed the error, but I guess it still doesn't do what it should do?

mahanteshdh commented 7 years ago

I adopted your changes. Thank you! Now i am able to generate .dbc and .xls from my arxml. but Min and Max value for signals seems to be incorrect and also message periodicity/cycle time is not extracted. Attached screen shot for reference Min and Max value for a signal in arxml is -4096 and 4095 respectively but dbc and xls show 0 to 8191.

image

ebroecker commented 7 years ago

the warning above "no datatype found" leads to missing min/max values.

I'm not sure how to fix this. The problem is, that the datatype for the signal is not found. Probably the datatype is references at another place in the arxml. But I have no idea where this could be. Currently I search for the datatype in SYSTEM-SIGNAL which is reverenced by SIGNAL or I-SIGNAL.

You are not able so send me a sample (maybe email - not here)?

Best Regards

mahanteshdh commented 7 years ago

If i open signal information in Autosar explorer tool from Vector, I can see datatype info and other info highlighted in red in attached screenshot. only cylce time/ periodicity found in PDU in other screen below : I do not have sample arxml, but I will try to strip out information from original and create sample.

image

image

Thank you!

ebroecker commented 7 years ago

Maybe you could look in the arxml and search for a xml-tag "DATA-TYPE-REF" and what's the parent tag named.

mahanteshdh commented 7 years ago

I don't have DATA-TYPE-REF xml-tag in my arxml.

ebroecker commented 7 years ago

OK, You are right. In AR4 there is no data-type-ref -- there are "BASE-TYPE-REF", a "COMPU-METHOD-REF" and a "DATA-CONSTR-REF". Currently canmatrix does not read these infos from AR4-Files.

give me some Time to get this working. How important is this for your needs? Do you have a timelimit?

mahanteshdh commented 7 years ago

I can wait, Appreciate your help!

ebroecker commented 7 years ago

@mahanteshdh : maybe you could test again? could be better now...

mahanteshdh commented 6 years ago

I tested the new update, and found same issue with Min,Max, resolution and offset. Time period is also not extracted to XLS.

mahanteshdh commented 6 years ago

Sorry for responding late.

mahanteshdh commented 6 years ago

I see Min and Max value issue for signed values not for unsigned value.

ebroecker commented 6 years ago

OK, thanx for the info. I'm quite busy these days. May take some time since I'll have a closer look...

ebroecker commented 6 years ago

sign extraction is currently not supported. in ARXML I have to determin the base datatype and map them to "signed" or "unsigned".

ebroecker commented 6 years ago

@mahanteshdh Do you have issues with the current implementation. Should I have another look on the code or can I close this issue?

ebroecker commented 6 years ago

please reopen, if still a problem