Importing CAN message issue

D153, D175, C125, C127, C185 and C187 forum

Importing CAN message issue

Postby benmtech on Fri Dec 24, 2021 12:30 am

I am using a C125 in a non motorsport application and have an issue importing the attached .dbc file. When the import process is complete, there are some exclamation marks by some channels which indicate “DBC file cannot be converted. Only integer value types supported”. It would appear that these channels are all 32bit length channels. I had another .dbc file with 2 channels of 48bit and this crashed the Dash Manager but I thought 32 bit was OK. Any suggestions greatfully received! And Happy Christmas everyone!
Attachments
Target 1.DBC
(1.79 KiB) Downloaded 405 times
benmtech
 
Posts: 14
Joined: Tue Sep 22, 2020 5:12 am

Re: Importing CAN message issue

Postby NathanB on Tue Jan 04, 2022 9:17 am

Hi Ben,

Dash manager only accept messages with a byte length of up to 4 (so 32 bit), so the 48 bit messages will not be possible to be imported.

The non integer channels you have in that DBC are IEEE floating point arithmetic. what this means is that the 32 bits comprise of a maths equation, not an integer (a number)

There are several types of IEEE floating point arithmetic that can be used, which interpret these values differently, and as a result have a different output number.

The most suitable person to answer this question will be back in the office tomorrow, so I will query him as to whether or not it is possible at all to bring in IEEE equations (to my knowledge we don't support it)
Attachments
IEEE format.PNG
IEEE 32bit example format for message
IEEE format.PNG (10.44 KiB) Viewed 6712 times
NathanB
MoTeC
 
Posts: 211
Joined: Thu Oct 15, 2020 1:50 pm

Re: Importing CAN message issue

Postby benmtech on Tue Jan 04, 2022 6:53 pm

Thanks Nathan. I was aware of the 48 bit issue and removed these messages from the .dbc file. I will wait with interest for an answer fro your collegue. Thanks
benmtech
 
Posts: 14
Joined: Tue Sep 22, 2020 5:12 am

Re: Importing CAN message issue

Postby benmtech on Tue Jan 04, 2022 7:00 pm

Thanks Nathan. I was aware of the 48 bit issue and removed these messages from the .dbc file. I will wait with interest for an answer from your collegue. Thanks
benmtech
 
Posts: 14
Joined: Tue Sep 22, 2020 5:12 am

Re: Importing CAN message issue

Postby adrian on Wed Jan 05, 2022 11:38 am

I did a couple of tests with 48bit channels and couldn't get Dash Manager to crash. Are you able to send me the original dbc file that made DM crash? Although 48bits is not supported DM should handle it correctly and give you a warning the channel hasn't been added.

Unfortunately our Dashes don't support receiving IEEE Floating Point numbers over CAN. If you were only logging the data I think it would be possible to log the channel and then convert it to the correct value in i2 but the Dash wouldn't be able to Display the actual channel value.
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

Re: Importing CAN message issue

Postby benmtech on Wed Jan 05, 2022 9:43 pm

The DBC file is attached. FYI I am using DM 6.40.30. I have just tried it again with the same crashed result. I am not worried about the 48 bit messages as they are repeats of latitude and longditude.

Is there any appitite at MoTeC to alter your firmware to accept IEEE floating point messages as it is live data display that I am interested in. All the data is logged elsewhere. Thanks for your support.
Attachments
VBOX3i_ADAS_VCI.DBC
(16.64 KiB) Downloaded 401 times
benmtech
 
Posts: 14
Joined: Tue Sep 22, 2020 5:12 am

Re: Importing CAN message issue

Postby adrian on Fri Jan 07, 2022 9:03 am

The reason it is crashing is because "Position_Longitude" has a negative factor. I'll put a bug report in for that. The 48 bit channels aren't assigned to a message so they aren't causing any issues.

I'll put in a feature request to read floats directly off CAN, however I don't think it will be likely that it will be added anytime soon, if at all. It isn't a very common way to transmit channels on CAN.
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

Re: Importing CAN message issue

Postby benmtech on Fri Jan 07, 2022 6:52 pm

Thank you for helping get to the bottom of the problem. I would have liked to have sold this product alongside my VBOX sales as a very configurable display. The Racelogic product is not yet developed sufficiently well in this area and I am pretty sure that they will not feel the need to get to the level that you have with Display Creator. Its been an interesting experiment and thanks again for your input.
benmtech
 
Posts: 14
Joined: Tue Sep 22, 2020 5:12 am


Return to Colour displays

Who is online

Users browsing this forum: No registered users and 11 guests