rusefillc 2024-02-13 09:13:25 -05:00
parent 82d24ccd22
commit 7dc778b2c7
4 changed files with 10932 additions and 6 deletions

View File

@ -15,22 +15,28 @@ import java.util.Objects;
public class SenderSandbox {
public static void main(String[] args) throws Exception {
String fileName = args.length > 0 ? args[0] : getFullResourceFileName("resources/atlas.trc");
// String fileName = args.length > 0 ? args[0] : getFullResourceFileName("resources/atlas.trc");
String fileName = args.length > 0 ? args[0] : getFullResourceFileName("passat-idling.trc");
List<CANPacket> packets = CANLineReader.getReader().readFile(fileName);
System.out.println("Got " + packets.size() + " packet(s)");
CanSender sender = create();
while (true) {
CanPacketSender.sendMessagesOut(packets, sender);
}
}
@NotNull
public static CanSender create() {
if (isWindows()) {
HackLoadLibraryFlag.LOAD_LIBRARY = false;
//System.load(getFullResourceFileName("PCANBasic_JNI.dll"));
System.load(new File("ext/peak-can-basic/src/main/resources/PCANBasic_JNI.dll").getAbsolutePath());
}
CanSender sender = isWindows() ? PCanHelper.create() : SocketCANHelper.create();
while (true) {
CanPacketSender.sendMessagesOut(packets, sender);
}
return isWindows() ? PCanHelper.create() : SocketCANHelper.create();
}
@NotNull

View File

@ -0,0 +1,16 @@
package com.rusefi.io.can;
public class StormSenderSandbox {
public static void main(String[] args) throws InterruptedException {
CanSender sender = SenderSandbox.create();
int[] ids = {640, 896};
while (true) {
for (int id : ids) {
sender.send(id, new byte[8]);
Thread.sleep(1);
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,34 @@
***BUSMASTER Ver 3.2.2***
***PROTOCOL CAN***
***NOTE: PLEASE DO NOT EDIT THIS DOCUMENT***
***[START LOGGING SESSION]***
***START DATE AND TIME 26:12:2021 21:27:52:288***
***HEX***
***SYSTEM MODE***
***START CHANNEL BAUD RATE***
***CHANNEL 1 - PCAN-USB Driver Id 16 - 500000 bps***
***END CHANNEL BAUD RATE***
***START DATABASE FILES***
***C:\Users\Lenovo\Documents\RA_EVOX.DBF***
***END DATABASE FILES***
***<Time><Tx/Rx><Channel><CAN ID><Type><DLC><DataBytes>***
21:27:52:3380 Rx 1 0x316 s 7 3F FF 3F FF 00 00 00
21:27:52:3382 Rx 1 0x338 s 8 00 00 00 06 D5 02 00 00
21:27:52:3385 Rx 1 0x365 s 8 FF 00 00 00 FF 00 00 FF
21:27:52:3388 Rx 1 0x359 s 4 02 00 00 02
21:27:52:3396 Rx 1 0x300 s 8 00 9B 1F FF 1F FF 7F 72
21:27:52:3399 Rx 1 0x328 s 8 00 00 7D 00 D8 80 FF FF
21:27:52:3402 Rx 1 0x330 s 8 FC FC FC FF FF FF 3F 81
21:27:52:3404 Rx 1 0x412 s 6 18 00 77 00 C0 46
21:27:52:3446 Rx 1 0x210 s 8 00 00 00 00 00 20 00 00
21:27:52:3448 Rx 1 0x255 s 8 3F FF 3F FF 1F 40 FF FF
21:27:52:3451 Rx 1 0x308 s 8 40 02 B5 40 01 47 A9 20
21:27:52:3454 Rx 1 0x248 s 8 80 08 00 00 00 00 40 00
21:27:52:3456 Rx 1 0x309 s 7 47 D8 7F D4 A8 00 05
21:27:52:3458 Rx 1 0x312 s 8 47 CC 07 CD 09 C7 07 57
21:27:52:3460 Rx 1 0x380 s 2 00 01
21:27:52:3463 Rx 1 0x6FE s 8 FF EF E7 E7 00 00 00 00
21:27:52:3470 Rx 1 0x316 s 7 3F FF 3F FF 00 00 00
21:27:52:3472 Rx 1 0x218 s 8 1F FF 00 40 00 80 00 00
21:27:52:3474 Rx 1 0x236 s 8 0F FA 10 00 C0 00 00 52
21:27:52:3477 Rx 1 0x230 s 8 08 00 00 00 00 00 D3 E7