EFeru / DbcParser

.NET CAN bus dbc file parser
MIT License
76 stars 28 forks source link

Problem to parse DBC files using DbcParser in ASP.NET project #56

Closed benazirsultana closed 12 months ago

benazirsultana commented 1 year ago

Hello, I wanted to parse dbc messages from a .dbc file in ASP.NET project using your dbc parser. I have a line in my dbc file like bellow: BA "GenSigStartValue" SG 2364604659 PDU_Act_VehicleSoH 637.5;

image

According to: reference on http://mcu.so/Microcontroller/Automotive/dbc-file-format-documentation_compress.pdf Meaning of that line: 'BA_' attributename 'SG' message_id signal_name attribute_value ';' ;

According to documentation, attribute_value could be float. attribute_value = unsigned_integer | signed_integer | double | char_string; (http://mcu.so/Microcontroller/Automotive/dbc-file-format-documentation_compress.pdf)

but I was unable to get the value of GenSigStartValue as 637.5. Using release 1.3.3, I got an exception ("Input string was not in a correct format"). Using latest release 1.4.2, I got the value of GenSigStartValue as 0(which is not desirable). image

Could you please suggest me how to overcome this problem? Advance thank you.

Whitehouse112 commented 1 year ago

Hi @benazirsultana, have you check the definition of the GenSigStartValue property? From the image I see that is defined as Integer property and 637.5 is not a valid number (we recently added parsing failures management to retrieve errors like this one).

Regards

Adhara3 commented 12 months ago

Without any feedback, I do close this issue