only:hellen-honda-k

wish me luck
This commit is contained in:
rusefillc 2023-05-01 15:51:18 -04:00
parent 1b07feca48
commit 4fb65cddd5
2 changed files with 18 additions and 1 deletions

View File

@ -29,6 +29,7 @@ static void handleHonda(uint8_t *bufferIn) {
// no headlights 0x40, with headlights 0x60
uint8_t statusByte1 = bufferIn[1];
// no cabin blower 0x06, with blower 0x86
uint8_t statusByte2 = bufferIn[2];
kAcRequestState = statusByte1 & 0x80;
if (engineConfiguration->verboseKLine) {
@ -108,6 +109,16 @@ void kLineThread(void*) {
// static_assert(sizeof(outB) == OUT_SIZE);
//const uint8_t *out = (sendCounter % 3 == 0) ? outB : out2;
// const uint8_t *out = out2;
if (sendCounter % 30 == 0) {
// no idea what this, maybe "i am running"?
kvalues[0] = 0x82;
kvalues[2] = 0x10;
} else {
kvalues[0] = 0x2;
kvalues[2] = 0;
}
if (engineConfiguration->verboseKLine) {
efiPrintf("kline doSend");
}
@ -184,6 +195,7 @@ void initKLine() {
if (engineConfiguration->kLinePeriodUs == 0) {
engineConfiguration->kLinePeriodUs = 300 /* us*/;
}
engineConfiguration->kLineDoHondaSend = true;
memset(kvalues, 0, sizeof(kvalues));
kvalues[0] = 0x2;

View File

@ -45,7 +45,7 @@ public class RandomToolHondaKPacketAnalyzer {
//name.contains("9-re") && name.endsWith(".csv")
// name.contains("less-cold") && name.endsWith(".csv")
// name.contains("12-w") && name.endsWith(".csv")
name.contains("23-re") && name.endsWith(".csv")
name.contains("25-") && name.endsWith(".csv")
// name.contains("-ac-") && name.endsWith(".csv")
// !name.startsWith("__") && name.endsWith(".csv")
@ -113,6 +113,11 @@ public class RandomToolHondaKPacketAnalyzer {
// System.out.println("Looking at " + payload + " " + header);
if (previousHeader != null) {
if (header == 130) {
System.out.println("rare thing 130 " + s);
System.out.println("with " + list.get(i + 1).trim());
System.out.println("with " + list.get(i + 2).trim());
}
if (previousHeader == 0 && header == 65)
System.out.println("??? interesting 65/2/" + s);
if (previousHeader == 65 && header == 2)