08-25-2022 03:07 AM - edited 08-25-2022 03:24 AM
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!
08-25-2022 07:46 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-25-2022 07:53 AM
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!