Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

XML to DBC conversion ECU issue

Hello,

 

I'm trying to convert XML CAN database to DBC programmatically. Everything works fine except the ECUs, which get random frames. If I do this with the NI-XNET Database Editor, the result is correct.

 

I iterate through the ECUs of the source database, read FrmsTx and FrmsRx with a XNET ECU Property Node and write them to the target ECU in memory using another Property Node.

 

I checked and the ECU reading is correct, both FrmsTX and FrmsRx match the database contents. But the writing tangles the frames somehow. Even frames from different ECUs get written. In the attached image, the Frames Received and Frames Transmitted indicators contain the wrong frames.

 

What's going on here? This tangling also occurs if I export to XML instead of DBC.

 

The general process is as follows (duplicate ECU properties contains the previous image):

 

I'm using LV2021 and XNET 21.8.

 

Thanks!

 

Best regards,
Néstor

LabVIEW 2017 + Windows 10
Download All
0 Kudos
Message 1 of 3
(2,178 Views)

I've never really the ECU section in a database so I've never tried exporting.  Your code looks fine and I'd say this is most likely a bug in the XNet drivers.  The likelihood of someone from NI seeing this, and responding is quite low.  If you are entitled to NI support I say give them a call, or open a support ticket here.

 

https://www.ni.com/en-us/support.html

 

Near the bottom is a button labeled Open A Service Request where you can describe your problem, and attach a set of code that demonstrates the issue.

0 Kudos
Message 2 of 3
(2,150 Views)

It looked like a bug, but I wanted to ask just in case I was missing something.

 

I will open a support ticket, I don't need a solution fast, I was mostly curious.

 

Thanks, Hoovahh!

Best regards,
Néstor

LabVIEW 2017 + Windows 10
0 Kudos
Message 3 of 3
(2,147 Views)