vag
This commit is contained in:
parent
0498b14e9e
commit
758f825655
|
@ -0,0 +1,24 @@
|
||||||
|
package com.rusefi.can;
|
||||||
|
|
||||||
|
import com.rusefi.can.reader.CANLineReader;
|
||||||
|
import com.rusefi.can.reader.dbc.DbcFile;
|
||||||
|
import com.rusefi.can.reader.impl.PcanTrcReader1_1;
|
||||||
|
import com.rusefi.can.reader.impl.ReadFullVagDbc;
|
||||||
|
import com.rusefi.mlv.LoggingStrategy;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class VagB6Sandbox {
|
||||||
|
public static void main(String[] args) throws IOException {
|
||||||
|
DbcFile dbc = DbcFile.readFromFile(ReadFullVagDbc.VAG_DBC_FILE);
|
||||||
|
|
||||||
|
CANLineReader reader = new PcanTrcReader1_1();
|
||||||
|
String file = "C:\\stuff\\rusefi_documentation\\OEM-Docs\\VAG\\2006-Passat-B6\\passat-back-and-forth-60-seconds.trc1";
|
||||||
|
|
||||||
|
List<CANPacket> packets = reader.readFile(file);
|
||||||
|
|
||||||
|
String outputFileName = "vag.mlg";
|
||||||
|
LoggingStrategy.writeLog(dbc, packets, outputFileName);
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,9 +5,9 @@ import com.rusefi.can.reader.dbc.DbcFile;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class ReadFullVagDbc {
|
public class ReadFullVagDbc {
|
||||||
public static void main(String[] args) throws IOException {
|
public static final String VAG_DBC_FILE = "opendbc/vw_golf_mk4.dbc";
|
||||||
String fileName = "opendbc/vw_golf_mk4.dbc";
|
|
||||||
|
|
||||||
DbcFile.readFromFile(fileName);
|
public static void main(String[] args) throws IOException {
|
||||||
|
DbcFile.readFromFile(VAG_DBC_FILE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue