LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView and Vector vFlash Projects

Hello everybody, can you help me with my problem: I need to know how can i flash the ECU with Labview with the vFlash (*.vFlashpack file). I know Vector has a vFlash Automation Api but how to combine that with Labview? Is that possible? I'm not good in C/C# language. I have found something on this web page: ( DMCINFO ) but i really don't know how to start.

 

 

Thank You

0 Kudos
Message 1 of 5
(2,769 Views)

Hi

 

This question is best to be posted at Automotive and Embedded Network forum.

 

To answer your question, see Call a Dynamic Link Library (DLL) from LabVIEW. This KB provides detailed steps to import C/C++ DLL using Call Library Function Node or C# .NET Assembly Functions using Constructor Node. The example from dmcinfo is doing the latter.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 5
(2,739 Views)

So I've done this in the past, but I did it without using vFlash.  Instead I took the vFlashpack file and unzipped it.  In there you'll find an S Rec file, or a HEX file.  This is a text file that defines addresses and the data that needs to go to those addresses.  Then I performed a normal flash with vFlash, but put another device on the bus to log the communication.

 

Looking at the communication it was pretty obvious if it was a UDS flash, or a CCP/XCP flash.  In my case it was UDS, and luckily the Automotive Diagnostic Command set, allows for UDS communication.  But you can also use my ISO 15765 posted on Part 8 of my CAN blog.  You'll also likely want to know about Part 7 which talks about parsing the hex files.

 

With this information you should be able to replicate the functions vFlash did, and perform the same ones for setting the address and setting data.  If you do need to unlock with a Seed/Key then you'll also want to know about Part 13 here.  If you do need to know how to call a DLL for the Seed/Key then I suggest you run vFlash again, but this time probe the DLL and see how it is called, and again replicate those steps in your LabVIEW program.

 

Since ECU flashing can be a bit specific to your application, these instructions might need to be adjusted a bit.  If you have vFlash licenses, and Vector hardware then it probably is easier to just call their application.  But I was dealing with many setups, with a variety of hardware.

0 Kudos
Message 3 of 5
(2,722 Views)

I have tried this with Call a Dynamic Link Library (DLL) from LabVIEW

but it doesn't work.

I attached the dll and header files there (password 1234). Can you checked what is wrong?

 

Thank You

0 Kudos
Message 4 of 5
(2,715 Views)

Hi, i have Vector Hardware and their Licenses, i want to use vflash because i have a lot of different vflashpacks with different seed&key dlls. For me the best option is to call vflash from LabVIEW but how to do that?

 

Thank You

0 Kudos
Message 5 of 5
(2,711 Views)