Merge remote-tracking branch 'origin/master' into master
This commit is contained in:
commit
476921dfbf
|
@ -25,11 +25,11 @@ static uint32_t getMcuRevision() {
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool getByte(uint8_t *b) {
|
static bool getByte(uint8_t *b) {
|
||||||
return sr5ReadDataTimeout(&blTsChannel, b, 1, sr5Timeout) == 1;
|
return blTsChannel.readTimeout(b, 1, sr5Timeout) == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sendByte(uint8_t b) {
|
static void sendByte(uint8_t b) {
|
||||||
sr5WriteData(&blTsChannel, &b, 1);
|
blTsChannel.write(&b, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint8_t dfuCalcChecksum(const uint8_t *buf, uint8_t size) {
|
static uint8_t dfuCalcChecksum(const uint8_t *buf, uint8_t size) {
|
||||||
|
@ -54,7 +54,7 @@ static bool isInVirtualPageBuffer(uint32_t addr) {
|
||||||
// Returns true if all 5 bytes are received and checksum is correct, and false otherwise.
|
// Returns true if all 5 bytes are received and checksum is correct, and false otherwise.
|
||||||
static bool readAddress(uint32_t *addr) {
|
static bool readAddress(uint32_t *addr) {
|
||||||
uint8_t buf[5]; // 4 bytes+checksum
|
uint8_t buf[5]; // 4 bytes+checksum
|
||||||
if (sr5ReadDataTimeout(&blTsChannel, buf, 5, sr5Timeout) != 5)
|
if (blTsChannel.readTimeout(buf, 5, sr5Timeout) != 5)
|
||||||
return false;
|
return false;
|
||||||
if (dfuCalcChecksum(buf, 4) != buf[4])
|
if (dfuCalcChecksum(buf, 4) != buf[4])
|
||||||
return false;
|
return false;
|
||||||
|
@ -171,7 +171,7 @@ static void dfuHandleRead(void) {
|
||||||
intFlashRead(addr, (char *)buffer, numBytes);
|
intFlashRead(addr, (char *)buffer, numBytes);
|
||||||
|
|
||||||
// transmit data
|
// transmit data
|
||||||
sr5WriteData(&blTsChannel, (uint8_t *)buffer, numBytes);
|
blTsChannel.write(buffer, numBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dfuHandleWrite(void) {
|
static void dfuHandleWrite(void) {
|
||||||
|
@ -188,7 +188,7 @@ static void dfuHandleWrite(void) {
|
||||||
int numBytes = buffer[0] + 1;
|
int numBytes = buffer[0] + 1;
|
||||||
int numBytesAndChecksum = numBytes + 1; // +1 byte of checkSum
|
int numBytesAndChecksum = numBytes + 1; // +1 byte of checkSum
|
||||||
// receive data
|
// receive data
|
||||||
if (sr5ReadDataTimeout(&blTsChannel, buffer + 1, numBytesAndChecksum, sr5Timeout) != numBytesAndChecksum)
|
if (blTsChannel.readTimeout(buffer + 1, numBytesAndChecksum, sr5Timeout) != numBytesAndChecksum)
|
||||||
return;
|
return;
|
||||||
// don't write corrupted data!
|
// don't write corrupted data!
|
||||||
if (dfuCalcChecksum(buffer, numBytesAndChecksum) != buffer[numBytesAndChecksum]) {
|
if (dfuCalcChecksum(buffer, numBytesAndChecksum) != buffer[numBytesAndChecksum]) {
|
||||||
|
@ -220,7 +220,7 @@ static void dfuHandleErase(void) {
|
||||||
numSectorData = (numSectors + 1) * 2 + 1;
|
numSectorData = (numSectors + 1) * 2 + 1;
|
||||||
uint8_t *sectorList = buffer + 2;
|
uint8_t *sectorList = buffer + 2;
|
||||||
// read sector data & checksum
|
// read sector data & checksum
|
||||||
if (sr5ReadDataTimeout(&blTsChannel, sectorList, numSectorData, sr5Timeout) != numSectorData)
|
if (blTsChannel.readTimeout(sectorList, numSectorData, sr5Timeout) != numSectorData)
|
||||||
return;
|
return;
|
||||||
// verify checksum
|
// verify checksum
|
||||||
if (dfuCalcChecksum(buffer, 2 + numSectorData - 1) != buffer[2 + numSectorData - 1]) {
|
if (dfuCalcChecksum(buffer, 2 + numSectorData - 1) != buffer[2 + numSectorData - 1]) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on hellen_cypress_gen_config.bat integration/rusefi_config.txt Thu Feb 18 23:19:48 UTC 2021
|
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on hellen_cypress_gen_config.bat integration/rusefi_config.txt Fri Feb 19 13:00:17 UTC 2021
|
||||||
// by class com.rusefi.output.CHeaderConsumer
|
// by class com.rusefi.output.CHeaderConsumer
|
||||||
// begin
|
// begin
|
||||||
#pragma once
|
#pragma once
|
||||||
|
@ -3864,4 +3864,4 @@ struct persistent_config_s {
|
||||||
typedef struct persistent_config_s persistent_config_s;
|
typedef struct persistent_config_s persistent_config_s;
|
||||||
|
|
||||||
// end
|
// end
|
||||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on hellen_cypress_gen_config.bat integration/rusefi_config.txt Thu Feb 18 23:19:48 UTC 2021
|
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on hellen_cypress_gen_config.bat integration/rusefi_config.txt Fri Feb 19 13:00:17 UTC 2021
|
||||||
|
|
|
@ -1242,7 +1242,7 @@
|
||||||
#define showHumanReadableWarning_offset 976
|
#define showHumanReadableWarning_offset 976
|
||||||
#define showSdCardWarning_offset 76
|
#define showSdCardWarning_offset 76
|
||||||
#define SIGNATURE_BOARD hellen_cypress
|
#define SIGNATURE_BOARD hellen_cypress
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 929793293
|
#define SIGNATURE_HASH 929793293
|
||||||
#define silentTriggerError_offset 1464
|
#define silentTriggerError_offset 1464
|
||||||
#define slowAdcAlpha_offset 2088
|
#define slowAdcAlpha_offset 2088
|
||||||
|
@ -1577,7 +1577,7 @@
|
||||||
#define ts_show_spi true
|
#define ts_show_spi true
|
||||||
#define ts_show_trigger_comparator false
|
#define ts_show_trigger_comparator false
|
||||||
#define ts_show_tunerstudio_port true
|
#define ts_show_tunerstudio_port true
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.hellen_cypress.929793293"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.hellen_cypress.929793293"
|
||||||
#define TS_SINGLE_WRITE_COMMAND 'W'
|
#define TS_SINGLE_WRITE_COMMAND 'W'
|
||||||
#define TS_SINGLE_WRITE_COMMAND_char W
|
#define TS_SINGLE_WRITE_COMMAND_char W
|
||||||
#define TS_TEST_COMMAND 't' // 0x74
|
#define TS_TEST_COMMAND 't' // 0x74
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kinetis_gen_config.bat integration/rusefi_config.txt Thu Feb 18 23:19:43 UTC 2021
|
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kinetis_gen_config.bat integration/rusefi_config.txt Fri Feb 19 13:00:14 UTC 2021
|
||||||
// by class com.rusefi.output.CHeaderConsumer
|
// by class com.rusefi.output.CHeaderConsumer
|
||||||
// begin
|
// begin
|
||||||
#pragma once
|
#pragma once
|
||||||
|
@ -3859,4 +3859,4 @@ struct persistent_config_s {
|
||||||
typedef struct persistent_config_s persistent_config_s;
|
typedef struct persistent_config_s persistent_config_s;
|
||||||
|
|
||||||
// end
|
// end
|
||||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kinetis_gen_config.bat integration/rusefi_config.txt Thu Feb 18 23:19:43 UTC 2021
|
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kinetis_gen_config.bat integration/rusefi_config.txt Fri Feb 19 13:00:14 UTC 2021
|
||||||
|
|
|
@ -1226,7 +1226,7 @@
|
||||||
#define showHumanReadableWarning_offset 976
|
#define showHumanReadableWarning_offset 976
|
||||||
#define showSdCardWarning_offset 76
|
#define showSdCardWarning_offset 76
|
||||||
#define SIGNATURE_BOARD kin
|
#define SIGNATURE_BOARD kin
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 3368962545
|
#define SIGNATURE_HASH 3368962545
|
||||||
#define silentTriggerError_offset 1464
|
#define silentTriggerError_offset 1464
|
||||||
#define slowAdcAlpha_offset 2088
|
#define slowAdcAlpha_offset 2088
|
||||||
|
@ -1561,7 +1561,7 @@
|
||||||
#define ts_show_spi true
|
#define ts_show_spi true
|
||||||
#define ts_show_trigger_comparator true
|
#define ts_show_trigger_comparator true
|
||||||
#define ts_show_tunerstudio_port true
|
#define ts_show_tunerstudio_port true
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.kin.3368962545"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.kin.3368962545"
|
||||||
#define TS_SINGLE_WRITE_COMMAND 'W'
|
#define TS_SINGLE_WRITE_COMMAND 'W'
|
||||||
#define TS_SINGLE_WRITE_COMMAND_char W
|
#define TS_SINGLE_WRITE_COMMAND_char W
|
||||||
#define TS_TEST_COMMAND 't' // 0x74
|
#define TS_TEST_COMMAND 't' // 0x74
|
||||||
|
|
|
@ -12,6 +12,11 @@ pins:
|
||||||
ts_name: Battery Sense
|
ts_name: Battery Sense
|
||||||
type: 12V
|
type: 12V
|
||||||
|
|
||||||
|
- pin: 2
|
||||||
|
function: Power GND
|
||||||
|
type: pgnd
|
||||||
|
color: white
|
||||||
|
|
||||||
# default Idle Air Control TLE8888 high current low side: VVT2 TLE8888_OUT5
|
# default Idle Air Control TLE8888 high current low side: VVT2 TLE8888_OUT5
|
||||||
- pin: 3
|
- pin: 3
|
||||||
id: TLE8888_PIN_5
|
id: TLE8888_PIN_5
|
||||||
|
@ -21,6 +26,21 @@ pins:
|
||||||
ts_name: 3 - Lowside 2
|
ts_name: 3 - Lowside 2
|
||||||
type: ls
|
type: ls
|
||||||
|
|
||||||
|
- pin: 4
|
||||||
|
function: ETB+
|
||||||
|
type: etb
|
||||||
|
color: white
|
||||||
|
|
||||||
|
- pin: 5
|
||||||
|
function: 12V supply from Key (turn on/off power)
|
||||||
|
type: 12V
|
||||||
|
color: black
|
||||||
|
|
||||||
|
- pin: 6
|
||||||
|
function: Power GND
|
||||||
|
type: pgnd
|
||||||
|
color: black
|
||||||
|
|
||||||
# default VVT TLE8888 high current low side: VVT1 TLE8888_OUT6
|
# default VVT TLE8888 high current low side: VVT1 TLE8888_OUT6
|
||||||
- pin: 7
|
- pin: 7
|
||||||
id: TLE8888_PIN_6
|
id: TLE8888_PIN_6
|
||||||
|
@ -30,6 +50,11 @@ pins:
|
||||||
ts_name: 7 - Lowside 1
|
ts_name: 7 - Lowside 1
|
||||||
type: ls
|
type: ls
|
||||||
|
|
||||||
|
- pin: 8
|
||||||
|
function: ETB-
|
||||||
|
type: etb
|
||||||
|
color: black
|
||||||
|
|
||||||
# TC4427 ignition outputs (5v)
|
# TC4427 ignition outputs (5v)
|
||||||
- pin: 9
|
- pin: 9
|
||||||
id: GPIOD_4
|
id: GPIOD_4
|
||||||
|
@ -80,6 +105,21 @@ pins:
|
||||||
ts_name: 14 - GP Out 5
|
ts_name: 14 - GP Out 5
|
||||||
type: gp_high
|
type: gp_high
|
||||||
|
|
||||||
|
- pin: 15
|
||||||
|
function: USB white wire https://youtu.be/4v2VnP-YdlQ
|
||||||
|
type: usb
|
||||||
|
color: yellow
|
||||||
|
|
||||||
|
- pin: 16
|
||||||
|
function: USB green wire https://youtu.be/4v2VnP-YdlQ
|
||||||
|
type: usb
|
||||||
|
color: yellow
|
||||||
|
|
||||||
|
- pin: 17
|
||||||
|
function: Signal GND
|
||||||
|
type: sgnd
|
||||||
|
color: red right
|
||||||
|
|
||||||
- pin: 18
|
- pin: 18
|
||||||
id: [GPIOA_0, EFI_ADC_0]
|
id: [GPIOA_0, EFI_ADC_0]
|
||||||
class: [switch_inputs, analog_inputs]
|
class: [switch_inputs, analog_inputs]
|
||||||
|
@ -104,6 +144,11 @@ pins:
|
||||||
ts_name: 20 - AN volt 5
|
ts_name: 20 - AN volt 5
|
||||||
type: av
|
type: av
|
||||||
|
|
||||||
|
- pin: 21
|
||||||
|
function: Signal GND
|
||||||
|
type: sgnd
|
||||||
|
color: dark green
|
||||||
|
|
||||||
- pin: 22
|
- pin: 22
|
||||||
id: [GPIOA_3, EFI_ADC_3]
|
id: [GPIOA_3, EFI_ADC_3]
|
||||||
class: [switch_inputs, analog_inputs]
|
class: [switch_inputs, analog_inputs]
|
||||||
|
@ -160,6 +205,11 @@ pins:
|
||||||
class: outputs
|
class: outputs
|
||||||
ts_name: AUX AV10 reuse
|
ts_name: AUX AV10 reuse
|
||||||
|
|
||||||
|
- pin: 29
|
||||||
|
function: Main relay control signal (low side)
|
||||||
|
type: mr
|
||||||
|
color: pink right
|
||||||
|
|
||||||
- pin: 30
|
- pin: 30
|
||||||
id: [GPIOC_5, EFI_ADC_15]
|
id: [GPIOC_5, EFI_ADC_15]
|
||||||
class: [switch_inputs, analog_inputs]
|
class: [switch_inputs, analog_inputs]
|
||||||
|
@ -242,6 +292,11 @@ pins:
|
||||||
ts_name: 38 - Injector 2
|
ts_name: 38 - Injector 2
|
||||||
type: inj
|
type: inj
|
||||||
|
|
||||||
|
- pin: 39
|
||||||
|
function: MAP sensor supply
|
||||||
|
type: 5v
|
||||||
|
color: grey
|
||||||
|
|
||||||
- pin: 40
|
- pin: 40
|
||||||
id: [GPIOB_1, EFI_ADC_9]
|
id: [GPIOB_1, EFI_ADC_9]
|
||||||
class: [switch_inputs, analog_inputs]
|
class: [switch_inputs, analog_inputs]
|
||||||
|
@ -278,6 +333,11 @@ pins:
|
||||||
ts_name: 43 - GP Out 4
|
ts_name: 43 - GP Out 4
|
||||||
type: [gp_low, gp_pp]
|
type: [gp_low, gp_pp]
|
||||||
|
|
||||||
|
- pin: 44
|
||||||
|
function: TPS sensor supply
|
||||||
|
type: 5v
|
||||||
|
color: brown left
|
||||||
|
|
||||||
- pin: 45
|
- pin: 45
|
||||||
id: GPIOC_6
|
id: GPIOC_6
|
||||||
class: event_inputs
|
class: event_inputs
|
||||||
|
@ -286,6 +346,21 @@ pins:
|
||||||
ts_name: 45 - VR/Hall Crank
|
ts_name: 45 - VR/Hall Crank
|
||||||
type: vr hall
|
type: vr hall
|
||||||
|
|
||||||
|
- pin: 46
|
||||||
|
function: Crank VR- (do not connect if hall)
|
||||||
|
type: vr
|
||||||
|
color: light green
|
||||||
|
|
||||||
|
- pin: 47
|
||||||
|
function: CAN bus
|
||||||
|
type: can
|
||||||
|
color: light green
|
||||||
|
|
||||||
|
- pin: 48
|
||||||
|
function: CAN bus
|
||||||
|
type: can
|
||||||
|
color: light green
|
||||||
|
|
||||||
info:
|
info:
|
||||||
image:
|
image:
|
||||||
file: main.jpg
|
file: main.jpg
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on config/boards/subaru_eg33/config/gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:50 UTC 2021
|
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on config/boards/subaru_eg33/config/gen_config.sh integration/rusefi_config.txt Fri Feb 19 13:00:20 UTC 2021
|
||||||
// by class com.rusefi.output.CHeaderConsumer
|
// by class com.rusefi.output.CHeaderConsumer
|
||||||
// begin
|
// begin
|
||||||
#pragma once
|
#pragma once
|
||||||
|
@ -3864,4 +3864,4 @@ struct persistent_config_s {
|
||||||
typedef struct persistent_config_s persistent_config_s;
|
typedef struct persistent_config_s persistent_config_s;
|
||||||
|
|
||||||
// end
|
// end
|
||||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on config/boards/subaru_eg33/config/gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:50 UTC 2021
|
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on config/boards/subaru_eg33/config/gen_config.sh integration/rusefi_config.txt Fri Feb 19 13:00:20 UTC 2021
|
||||||
|
|
|
@ -1242,7 +1242,7 @@
|
||||||
#define showHumanReadableWarning_offset 976
|
#define showHumanReadableWarning_offset 976
|
||||||
#define showSdCardWarning_offset 76
|
#define showSdCardWarning_offset 76
|
||||||
#define SIGNATURE_BOARD subaru_eg33_f7
|
#define SIGNATURE_BOARD subaru_eg33_f7
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 3083086059
|
#define SIGNATURE_HASH 3083086059
|
||||||
#define silentTriggerError_offset 1464
|
#define silentTriggerError_offset 1464
|
||||||
#define slowAdcAlpha_offset 2088
|
#define slowAdcAlpha_offset 2088
|
||||||
|
@ -1577,7 +1577,7 @@
|
||||||
#define ts_show_spi true
|
#define ts_show_spi true
|
||||||
#define ts_show_trigger_comparator false
|
#define ts_show_trigger_comparator false
|
||||||
#define ts_show_tunerstudio_port false
|
#define ts_show_tunerstudio_port false
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.subaru_eg33_f7.3083086059"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.subaru_eg33_f7.3083086059"
|
||||||
#define TS_SINGLE_WRITE_COMMAND 'W'
|
#define TS_SINGLE_WRITE_COMMAND 'W'
|
||||||
#define TS_SINGLE_WRITE_COMMAND_char W
|
#define TS_SINGLE_WRITE_COMMAND_char W
|
||||||
#define TS_TEST_COMMAND 't' // 0x74
|
#define TS_TEST_COMMAND 't' // 0x74
|
||||||
|
|
|
@ -124,18 +124,18 @@ static void runCommands() {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// send current command
|
// send current command
|
||||||
sr5WriteData(tsChannel, (uint8_t *)commands[cmdIdx], strlen(commands[cmdIdx]));
|
tsChannel->write((uint8_t*)commands[cmdIdx], strlen(commands[cmdIdx]));
|
||||||
|
|
||||||
// waiting for an answer
|
// waiting for an answer
|
||||||
bool wasAnswer = false;
|
bool wasAnswer = false;
|
||||||
if (sr5ReadDataTimeout(tsChannel, buffer, 2, btModuleTimeout) == 2) {
|
if (tsChannel->readTimeout(buffer, 2, btModuleTimeout) == 2) {
|
||||||
wasAnswer = (buffer[0] == 'O' && buffer[1] == 'K') ||
|
wasAnswer = (buffer[0] == 'O' && buffer[1] == 'K') ||
|
||||||
(buffer[0] == '+' && (buffer[1] >= 'A' && buffer[1] <= 'Z'));
|
(buffer[0] == '+' && (buffer[1] >= 'A' && buffer[1] <= 'Z'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait 1 second and skip all remaining response bytes from the bluetooth module
|
// wait 1 second and skip all remaining response bytes from the bluetooth module
|
||||||
while (true) {
|
while (true) {
|
||||||
if (sr5ReadDataTimeout(tsChannel, buffer, 1, btModuleTimeout) < 1)
|
if (tsChannel->readTimeout(buffer, 1, btModuleTimeout) < 1)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -484,7 +484,7 @@ static void tsProcessOne(ts_channel_s* tsChannel) {
|
||||||
tsState.totalCounter++;
|
tsState.totalCounter++;
|
||||||
|
|
||||||
uint8_t firstByte;
|
uint8_t firstByte;
|
||||||
int received = sr5ReadData(tsChannel, &firstByte, 1);
|
int received = tsChannel->read(&firstByte, 1);
|
||||||
#if EFI_SIMULATOR
|
#if EFI_SIMULATOR
|
||||||
logMsg("received %d\r\n", received);
|
logMsg("received %d\r\n", received);
|
||||||
#endif
|
#endif
|
||||||
|
@ -504,7 +504,7 @@ static void tsProcessOne(ts_channel_s* tsChannel) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint8_t secondByte;
|
uint8_t secondByte;
|
||||||
received = sr5ReadData(tsChannel, &secondByte, 1);
|
received = tsChannel->read(&secondByte, 1);
|
||||||
if (received != 1) {
|
if (received != 1) {
|
||||||
tunerStudioError("TS: ERROR: no second byte");
|
tunerStudioError("TS: ERROR: no second byte");
|
||||||
return;
|
return;
|
||||||
|
@ -520,7 +520,7 @@ static void tsProcessOne(ts_channel_s* tsChannel) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
received = sr5ReadData(tsChannel, (uint8_t* )tsChannel->scratchBuffer, 1);
|
received = tsChannel->read((uint8_t* )tsChannel->scratchBuffer, 1);
|
||||||
if (received != 1) {
|
if (received != 1) {
|
||||||
tunerStudioError("ERROR: did not receive command");
|
tunerStudioError("ERROR: did not receive command");
|
||||||
sendErrorCode(tsChannel, TS_RESPONSE_UNDERRUN);
|
sendErrorCode(tsChannel, TS_RESPONSE_UNDERRUN);
|
||||||
|
@ -538,7 +538,7 @@ static void tsProcessOne(ts_channel_s* tsChannel) {
|
||||||
logMsg("command %c\r\n", command);
|
logMsg("command %c\r\n", command);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
received = sr5ReadData(tsChannel, (uint8_t * ) (tsChannel->scratchBuffer + 1),
|
received = tsChannel->read((uint8_t*)(tsChannel->scratchBuffer + 1),
|
||||||
incomingPacketSize + CRC_VALUE_SIZE - 1);
|
incomingPacketSize + CRC_VALUE_SIZE - 1);
|
||||||
int expectedSize = incomingPacketSize + CRC_VALUE_SIZE - 1;
|
int expectedSize = incomingPacketSize + CRC_VALUE_SIZE - 1;
|
||||||
if (received != expectedSize) {
|
if (received != expectedSize) {
|
||||||
|
@ -631,16 +631,16 @@ static void handleTestCommand(ts_channel_s *tsChannel) {
|
||||||
* extension of the protocol to simplify troubleshooting
|
* extension of the protocol to simplify troubleshooting
|
||||||
*/
|
*/
|
||||||
tunerStudioDebug("got T (Test)");
|
tunerStudioDebug("got T (Test)");
|
||||||
sr5WriteData(tsChannel, (const uint8_t *) VCS_VERSION, sizeof(VCS_VERSION));
|
tsChannel->write((const uint8_t*)VCS_VERSION, sizeof(VCS_VERSION));
|
||||||
|
|
||||||
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " %d %d", engine->engineState.warnings.lastErrorCode, tsState.testCommandCounter);
|
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " %d %d", engine->engineState.warnings.lastErrorCode, tsState.testCommandCounter);
|
||||||
sr5WriteData(tsChannel, (const uint8_t *) testOutputBuffer, strlen(testOutputBuffer));
|
tsChannel->write((const uint8_t*)testOutputBuffer, strlen(testOutputBuffer));
|
||||||
|
|
||||||
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " uptime=%ds", getTimeNowSeconds());
|
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " uptime=%ds", getTimeNowSeconds());
|
||||||
sr5WriteData(tsChannel, (const uint8_t *) testOutputBuffer, strlen(testOutputBuffer));
|
tsChannel->write((const uint8_t*)testOutputBuffer, strlen(testOutputBuffer));
|
||||||
|
|
||||||
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " %s\r\n", PROTOCOL_TEST_RESPONSE_TAG);
|
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " %s\r\n", PROTOCOL_TEST_RESPONSE_TAG);
|
||||||
sr5WriteData(tsChannel, (const uint8_t *) testOutputBuffer, strlen(testOutputBuffer));
|
tsChannel->write((const uint8_t*)testOutputBuffer, strlen(testOutputBuffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
extern CommandHandler console_line_callback;
|
extern CommandHandler console_line_callback;
|
||||||
|
@ -705,7 +705,7 @@ bool handlePlainCommand(ts_channel_s *tsChannel, uint8_t command) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
tunerStudioDebug("not ignoring F");
|
tunerStudioDebug("not ignoring F");
|
||||||
sr5WriteData(tsChannel, (const uint8_t *) TS_PROTOCOL, strlen(TS_PROTOCOL));
|
tsChannel->write((const uint8_t *)TS_PROTOCOL, strlen(TS_PROTOCOL));
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
// This wasn't a valid command
|
// This wasn't a valid command
|
||||||
|
|
|
@ -160,46 +160,43 @@ bool stopTsPort(ts_channel_s *tsChannel) {
|
||||||
int sr5TestWriteDataIndex = 0;
|
int sr5TestWriteDataIndex = 0;
|
||||||
uint8_t st5TestBuffer[16000];
|
uint8_t st5TestBuffer[16000];
|
||||||
|
|
||||||
void sr5WriteData(ts_channel_s *tsChannel, const uint8_t * buffer, int size) {
|
void ts_channel_s::write(const uint8_t* buffer, size_t size) {
|
||||||
memcpy(&st5TestBuffer[sr5TestWriteDataIndex], buffer, size);
|
memcpy(&st5TestBuffer[sr5TestWriteDataIndex], buffer, size);
|
||||||
sr5TestWriteDataIndex += size;
|
sr5TestWriteDataIndex += size;
|
||||||
}
|
}
|
||||||
#endif // EFI_UNIT_TEST
|
#endif // EFI_UNIT_TEST
|
||||||
|
|
||||||
#if EFI_PROD_CODE || EFI_SIMULATOR
|
#if EFI_PROD_CODE || EFI_SIMULATOR
|
||||||
void sr5WriteData(ts_channel_s *tsChannel, const uint8_t * buffer, int size) {
|
void ts_channel_s::write(const uint8_t* buffer, size_t size) {
|
||||||
efiAssertVoid(CUSTOM_ERR_6570, getCurrentRemainingStack() > 64, "tunerStudioWriteData");
|
efiAssertVoid(CUSTOM_ERR_6570, getCurrentRemainingStack() > 64, "tunerStudioWriteData");
|
||||||
#if EFI_SIMULATOR
|
#if EFI_SIMULATOR
|
||||||
logMsg("chSequentialStreamWrite [%d]\r\n", size);
|
logMsg("chSequentialStreamWrite [%d]\r\n", size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (PRIMARY_UART_DMA_MODE || TS_UART_DMA_MODE || TS_UART_MODE) && EFI_PROD_CODE
|
#if (PRIMARY_UART_DMA_MODE || TS_UART_DMA_MODE || TS_UART_MODE) && EFI_PROD_CODE
|
||||||
if (tsChannel->uartp != nullptr) {
|
if (uartp) {
|
||||||
int transferred = size;
|
uartSendTimeout(uartp, &size, buffer, BINARY_IO_TIMEOUT);
|
||||||
uartSendTimeout(tsChannel->uartp, (size_t *)&transferred, buffer, BINARY_IO_TIMEOUT);
|
return;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
#elif defined(TS_CAN_DEVICE)
|
#elif defined(TS_CAN_DEVICE)
|
||||||
UNUSED(tsChannel);
|
canAddToTxStreamTimeout(&TS_CAN_DEVICE, &size, buffer, BINARY_IO_TIMEOUT);
|
||||||
int transferred = size;
|
|
||||||
canAddToTxStreamTimeout(&TS_CAN_DEVICE, (size_t *)&transferred, buffer, BINARY_IO_TIMEOUT);
|
|
||||||
#endif
|
#endif
|
||||||
if (tsChannel->channel == nullptr)
|
if (!channel) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// int transferred = chnWriteTimeout(tsChannel->channel, buffer, size, BINARY_IO_TIMEOUT);
|
// int transferred = chnWriteTimeout(tsChannel->channel, buffer, size, BINARY_IO_TIMEOUT);
|
||||||
// temporary attempt to work around #553
|
// temporary attempt to work around #553
|
||||||
// instead of one huge packet let's try sending a few smaller packets
|
// instead of one huge packet let's try sending a few smaller packets
|
||||||
int transferred = 0;
|
size_t transferred = 0;
|
||||||
int stillToTransfer = size;
|
size_t stillToTransfer = size;
|
||||||
while (stillToTransfer > 0) {
|
while (stillToTransfer > 0) {
|
||||||
int thisTransferSize = minI(stillToTransfer, 768);
|
int thisTransferSize = minI(stillToTransfer, 768);
|
||||||
transferred += chnWriteTimeout(tsChannel->channel, buffer, thisTransferSize, BINARY_IO_TIMEOUT);
|
transferred += chnWriteTimeout(channel, buffer, thisTransferSize, BINARY_IO_TIMEOUT);
|
||||||
buffer += thisTransferSize;
|
buffer += thisTransferSize;
|
||||||
stillToTransfer -= thisTransferSize;
|
stillToTransfer -= thisTransferSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if EFI_SIMULATOR
|
#if EFI_SIMULATOR
|
||||||
logMsg("transferred [%d]\r\n", transferred);
|
logMsg("transferred [%d]\r\n", transferred);
|
||||||
#endif
|
#endif
|
||||||
|
@ -211,36 +208,32 @@ void sr5WriteData(ts_channel_s *tsChannel, const uint8_t * buffer, int size) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int sr5ReadDataTimeout(ts_channel_s *tsChannel, uint8_t * buffer, int size, int timeout) {
|
size_t ts_channel_s::readTimeout(uint8_t* buffer, size_t size, int timeout) {
|
||||||
#if TS_UART_DMA_MODE || PRIMARY_UART_DMA_MODE
|
#if TS_UART_DMA_MODE || PRIMARY_UART_DMA_MODE
|
||||||
if (tsChannel->uartp!= NULL) {
|
if (uartp) {
|
||||||
extern uart_dma_s tsUartDma;
|
extern uart_dma_s tsUartDma;
|
||||||
return (int)iqReadTimeout(&tsUartDma.fifoRxQueue, (uint8_t * )buffer, (size_t)size, timeout);
|
return iqReadTimeout(&tsUartDma.fifoRxQueue, buffer, size, timeout);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TS_UART_DMA_MODE
|
#if TS_UART_DMA_MODE
|
||||||
#elif TS_UART_MODE
|
#elif TS_UART_MODE
|
||||||
UNUSED(tsChannel);
|
uartReceiveTimeout(TS_UART_DEVICE, &size, buffer, timeout);
|
||||||
size_t received = (size_t)size;
|
return size;
|
||||||
uartReceiveTimeout(TS_UART_DEVICE, &received, buffer, timeout);
|
|
||||||
return (int)received;
|
|
||||||
#elif defined(TS_CAN_DEVICE)
|
#elif defined(TS_CAN_DEVICE)
|
||||||
UNUSED(tsChannel);
|
canStreamReceiveTimeout(&TS_CAN_DEVICE, &size, buffer, timeout);
|
||||||
size_t received = (size_t)size;
|
return size;
|
||||||
canStreamReceiveTimeout(&TS_CAN_DEVICE, &received, buffer, timeout);
|
|
||||||
return (int)received;
|
|
||||||
#else /* TS_UART_DMA_MODE */
|
#else /* TS_UART_DMA_MODE */
|
||||||
if (tsChannel->channel == nullptr)
|
if (channel == nullptr)
|
||||||
return 0;
|
return 0;
|
||||||
return chnReadTimeout(tsChannel->channel, (uint8_t * )buffer, size, timeout);
|
return chnReadTimeout(channel, buffer, size, timeout);
|
||||||
#endif /* TS_UART_DMA_MODE */
|
#endif /* TS_UART_DMA_MODE */
|
||||||
firmwareError(CUSTOM_ERR_6126, "Unexpected channel situation");
|
firmwareError(CUSTOM_ERR_6126, "Unexpected channel situation");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sr5ReadData(ts_channel_s *tsChannel, uint8_t * buffer, int size) {
|
size_t ts_channel_s::read(uint8_t* buffer, size_t size) {
|
||||||
return sr5ReadDataTimeout(tsChannel, buffer, size, SR5_READ_TIMEOUT);
|
return readTimeout(buffer, size, SR5_READ_TIMEOUT);
|
||||||
}
|
}
|
||||||
#endif // EFI_PROD_CODE || EFI_SIMULATOR
|
#endif // EFI_PROD_CODE || EFI_SIMULATOR
|
||||||
|
|
||||||
|
@ -270,7 +263,7 @@ void sr5WriteCrcPacketSmall(ts_channel_s* tsChannel, uint8_t responseCode, const
|
||||||
*reinterpret_cast<uint32_t*>(&scratchBuffer[size + 3]) = SWAP_UINT32(crc);
|
*reinterpret_cast<uint32_t*>(&scratchBuffer[size + 3]) = SWAP_UINT32(crc);
|
||||||
|
|
||||||
// Write to the underlying stream
|
// Write to the underlying stream
|
||||||
sr5WriteData(tsChannel, reinterpret_cast<uint8_t*>(scratchBuffer), size + 7);
|
tsChannel->write(reinterpret_cast<uint8_t*>(scratchBuffer), size + 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sr5WriteCrcPacketLarge(ts_channel_s* tsChannel, uint8_t responseCode, const uint8_t* buf, size_t size) {
|
void sr5WriteCrcPacketLarge(ts_channel_s* tsChannel, uint8_t responseCode, const uint8_t* buf, size_t size) {
|
||||||
|
@ -287,15 +280,15 @@ void sr5WriteCrcPacketLarge(ts_channel_s* tsChannel, uint8_t responseCode, const
|
||||||
*(uint32_t*)crcBuffer = SWAP_UINT32(crc);
|
*(uint32_t*)crcBuffer = SWAP_UINT32(crc);
|
||||||
|
|
||||||
// Write header
|
// Write header
|
||||||
sr5WriteData(tsChannel, headerBuffer, sizeof(headerBuffer));
|
tsChannel->write(headerBuffer, sizeof(headerBuffer));
|
||||||
|
|
||||||
// If data, write that
|
// If data, write that
|
||||||
if (size) {
|
if (size) {
|
||||||
sr5WriteData(tsChannel, buf, size);
|
tsChannel->write(buf, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lastly the CRC footer
|
// Lastly the CRC footer
|
||||||
sr5WriteData(tsChannel, crcBuffer, sizeof(crcBuffer));
|
tsChannel->write(crcBuffer, sizeof(crcBuffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -311,9 +304,9 @@ void sr5WriteCrcPacket(ts_channel_s *tsChannel, uint8_t responseCode, const uint
|
||||||
// a special case for short packets: we can sent them in 1 frame, without CRC & size,
|
// a special case for short packets: we can sent them in 1 frame, without CRC & size,
|
||||||
// because the CAN protocol is already protected by its own checksum.
|
// because the CAN protocol is already protected by its own checksum.
|
||||||
if ((size + 1) <= 7) {
|
if ((size + 1) <= 7) {
|
||||||
sr5WriteData(tsChannel, &responseCode, 1); // header without size
|
tsChannel->write(&responseCode, 1); // header without size
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
sr5WriteData(tsChannel, (const uint8_t*)buf, size); // body
|
tsChannel->write(buf, size); // body
|
||||||
}
|
}
|
||||||
sr5FlushData(tsChannel);
|
sr5FlushData(tsChannel);
|
||||||
return;
|
return;
|
||||||
|
@ -334,7 +327,7 @@ void sr5SendResponse(ts_channel_s *tsChannel, ts_response_format_e mode, const u
|
||||||
sr5WriteCrcPacket(tsChannel, TS_RESPONSE_OK, buffer, size);
|
sr5WriteCrcPacket(tsChannel, TS_RESPONSE_OK, buffer, size);
|
||||||
} else {
|
} else {
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
sr5WriteData(tsChannel, buffer, size);
|
tsChannel->write(buffer, size);
|
||||||
sr5FlushData(tsChannel);
|
sr5FlushData(tsChannel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,10 @@ typedef enum {
|
||||||
} ts_response_format_e;
|
} ts_response_format_e;
|
||||||
|
|
||||||
struct ts_channel_s {
|
struct ts_channel_s {
|
||||||
|
void write(const uint8_t* buffer, size_t size);
|
||||||
|
size_t readTimeout(uint8_t* buffer, size_t size, int timeout);
|
||||||
|
size_t read(uint8_t* buffer, size_t size);
|
||||||
|
|
||||||
#if ! EFI_UNIT_TEST
|
#if ! EFI_UNIT_TEST
|
||||||
BaseChannel * channel = nullptr;
|
BaseChannel * channel = nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
@ -51,14 +55,11 @@ bool stopTsPort(ts_channel_s *tsChannel);
|
||||||
// that's 1 second
|
// that's 1 second
|
||||||
#define SR5_READ_TIMEOUT TIME_MS2I(1000)
|
#define SR5_READ_TIMEOUT TIME_MS2I(1000)
|
||||||
|
|
||||||
void sr5WriteData(ts_channel_s *tsChannel, const uint8_t * buffer, int size);
|
|
||||||
void sr5WriteCrcPacketSmall(ts_channel_s* tsChannel, uint8_t responseCode, const uint8_t* buf, size_t size);
|
void sr5WriteCrcPacketSmall(ts_channel_s* tsChannel, uint8_t responseCode, const uint8_t* buf, size_t size);
|
||||||
void sr5WriteCrcPacketLarge(ts_channel_s* tsChannel, uint8_t responseCode, const uint8_t* buf, size_t size);
|
void sr5WriteCrcPacketLarge(ts_channel_s* tsChannel, uint8_t responseCode, const uint8_t* buf, size_t size);
|
||||||
void sr5WriteCrcPacket(ts_channel_s *tsChannel, uint8_t responseCode, const uint8_t* buf, size_t size);
|
void sr5WriteCrcPacket(ts_channel_s *tsChannel, uint8_t responseCode, const uint8_t* buf, size_t size);
|
||||||
void sr5SendResponse(ts_channel_s *tsChannel, ts_response_format_e mode, const uint8_t * buffer, int size);
|
void sr5SendResponse(ts_channel_s *tsChannel, ts_response_format_e mode, const uint8_t * buffer, int size);
|
||||||
void sendOkResponse(ts_channel_s *tsChannel, ts_response_format_e mode);
|
void sendOkResponse(ts_channel_s *tsChannel, ts_response_format_e mode);
|
||||||
int sr5ReadData(ts_channel_s *tsChannel, uint8_t * buffer, int size);
|
|
||||||
int sr5ReadDataTimeout(ts_channel_s *tsChannel, uint8_t * buffer, int size, int timeout);
|
|
||||||
bool sr5IsReady(ts_channel_s *tsChannel);
|
bool sr5IsReady(ts_channel_s *tsChannel);
|
||||||
void sr5FlushData(ts_channel_s *tsChannel);
|
void sr5FlushData(ts_channel_s *tsChannel);
|
||||||
|
|
||||||
|
|
|
@ -73,86 +73,6 @@ void onDataArrived(void) {
|
||||||
consoleByteArrived = true;
|
consoleByteArrived = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Reads a whole line from the input channel.
|
|
||||||
*
|
|
||||||
* @param[in] chp pointer to a @p BaseChannel object
|
|
||||||
* @param[in] line pointer to the line buffer
|
|
||||||
* @param[in] size buffer maximum length
|
|
||||||
* @return The operation status.
|
|
||||||
* @retval TRUE the channel was reset or CTRL-D pressed.
|
|
||||||
* @retval FALSE operation successful.
|
|
||||||
*/
|
|
||||||
/* let's keep this dead code for a bit
|
|
||||||
static bool getConsoleLine(BaseSequentialStream *chp, char *line, unsigned size) {
|
|
||||||
char *p = line;
|
|
||||||
|
|
||||||
while (true) {
|
|
||||||
if (!isCommandLineConsoleReady()) {
|
|
||||||
// we better do not read from serial before it is ready
|
|
||||||
chThdSleepMilliseconds(10);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
short c = (short) streamGet(chp);
|
|
||||||
onDataArrived();
|
|
||||||
|
|
||||||
#if defined(EFI_CONSOLE_SERIAL_DEVICE)
|
|
||||||
|
|
||||||
uint32_t flags;
|
|
||||||
chSysLock()
|
|
||||||
;
|
|
||||||
|
|
||||||
flags = chEvtGetAndClearFlagsI(&consoleEventListener);
|
|
||||||
chSysUnlock()
|
|
||||||
;
|
|
||||||
if (flags & SD_OVERRUN_ERROR) {
|
|
||||||
// firmwareError(OBD_PCM_Processor_Fault, "serial overrun");
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EFI_UART_ECHO_TEST_MODE
|
|
||||||
// That's test code - let's test connectivity
|
|
||||||
consolePutChar((uint8_t) c);
|
|
||||||
continue;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (c < 0 || c == 4) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (c == 8) {
|
|
||||||
if (p != line) {
|
|
||||||
// backspace
|
|
||||||
consolePutChar((uint8_t) c);
|
|
||||||
consolePutChar(0x20);
|
|
||||||
consolePutChar((uint8_t) c);
|
|
||||||
p--;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (c == '\r') {
|
|
||||||
consolePutChar('\r');
|
|
||||||
consolePutChar('\n');
|
|
||||||
*p = 0;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (c == '\n') {
|
|
||||||
consolePutChar('\n');
|
|
||||||
*p = 0;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (c < 0x20) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (p < line + size - 1) {
|
|
||||||
consolePutChar((uint8_t) c);
|
|
||||||
*p++ = (char) c;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
CommandHandler console_line_callback;
|
CommandHandler console_line_callback;
|
||||||
|
|
||||||
#if (defined(EFI_CONSOLE_SERIAL_DEVICE) && ! EFI_SIMULATOR )
|
#if (defined(EFI_CONSOLE_SERIAL_DEVICE) && ! EFI_SIMULATOR )
|
||||||
|
@ -304,13 +224,6 @@ static THD_FUNCTION(consoleThreadEntryPoint, arg) {
|
||||||
|
|
||||||
#endif /* EFI_CONSOLE_NO_THREAD */
|
#endif /* EFI_CONSOLE_NO_THREAD */
|
||||||
|
|
||||||
void consolePutChar(int x) {
|
|
||||||
BaseChannel * channel = getConsoleChannel();
|
|
||||||
if (channel != nullptr) {
|
|
||||||
chnWriteTimeout(channel, (const uint8_t *)&x, 1, CONSOLE_WRITE_TIMEOUT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void consoleOutputBuffer(const uint8_t *buf, int size) {
|
void consoleOutputBuffer(const uint8_t *buf, int size) {
|
||||||
#if !EFI_UART_ECHO_TEST_MODE
|
#if !EFI_UART_ECHO_TEST_MODE
|
||||||
BaseChannel * channel = getConsoleChannel();
|
BaseChannel * channel = getConsoleChannel();
|
||||||
|
|
|
@ -21,7 +21,6 @@ typedef void (*CommandHandler)(char *);
|
||||||
#include "datalogging.h"
|
#include "datalogging.h"
|
||||||
|
|
||||||
|
|
||||||
void consolePutChar(int x);
|
|
||||||
void consoleOutputBuffer(const uint8_t *buf, int size);
|
void consoleOutputBuffer(const uint8_t *buf, int size);
|
||||||
void startConsole(Logging *sharedLogger, CommandHandler console_line_callback_p);
|
void startConsole(Logging *sharedLogger, CommandHandler console_line_callback_p);
|
||||||
void onDataArrived(void);
|
void onDataArrived(void);
|
||||||
|
|
|
@ -37,14 +37,6 @@ static void myerror(void) {
|
||||||
firmwareError(CUSTOM_ERR_TEST_ERROR, "firmwareError: %d", getRusEfiVersion());
|
firmwareError(CUSTOM_ERR_TEST_ERROR, "firmwareError: %d", getRusEfiVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sayNothing(void) {
|
|
||||||
/**
|
|
||||||
* @see EngineState#TS_PROTOCOL_TAG
|
|
||||||
* this empty response is part of protocol check
|
|
||||||
* todo: make this logic smarter?
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
static void sayHello(void) {
|
static void sayHello(void) {
|
||||||
scheduleMsg(&logger, PROTOCOL_HELLO_PREFIX " rusEFI LLC (c) 2012-2021. All rights reserved.");
|
scheduleMsg(&logger, PROTOCOL_HELLO_PREFIX " rusEFI LLC (c) 2012-2021. All rights reserved.");
|
||||||
scheduleMsg(&logger, PROTOCOL_HELLO_PREFIX " rusEFI v%d@%s", getRusEfiVersion(), VCS_VERSION);
|
scheduleMsg(&logger, PROTOCOL_HELLO_PREFIX " rusEFI v%d@%s", getRusEfiVersion(), VCS_VERSION);
|
||||||
|
@ -205,7 +197,7 @@ void initializeConsole(Logging *sharedLogger) {
|
||||||
startConsole(sharedLogger, &handleConsoleLine);
|
startConsole(sharedLogger, &handleConsoleLine);
|
||||||
|
|
||||||
sayHello();
|
sayHello();
|
||||||
addConsoleAction("test", sayNothing);
|
addConsoleAction("test", [](){ /* do nothing */});
|
||||||
addConsoleAction("hello", sayHello);
|
addConsoleAction("hello", sayHello);
|
||||||
#if EFI_HAS_RESET
|
#if EFI_HAS_RESET
|
||||||
addConsoleAction("reset", scheduleReset);
|
addConsoleAction("reset", scheduleReset);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:20 UTC 2021
|
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 12:59:55 UTC 2021
|
||||||
// by class com.rusefi.output.CHeaderConsumer
|
// by class com.rusefi.output.CHeaderConsumer
|
||||||
// begin
|
// begin
|
||||||
#pragma once
|
#pragma once
|
||||||
|
@ -3864,4 +3864,4 @@ struct persistent_config_s {
|
||||||
typedef struct persistent_config_s persistent_config_s;
|
typedef struct persistent_config_s persistent_config_s;
|
||||||
|
|
||||||
// end
|
// end
|
||||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:20 UTC 2021
|
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 12:59:55 UTC 2021
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:20 UTC 2021
|
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 12:59:55 UTC 2021
|
||||||
|
|
||||||
// by class com.rusefi.output.FileFsioSettingsConsumer
|
// by class com.rusefi.output.FileFsioSettingsConsumer
|
||||||
FSIO_SETTING_FANONTEMPERATURE = 1000,
|
FSIO_SETTING_FANONTEMPERATURE = 1000,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:20 UTC 2021
|
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 12:59:55 UTC 2021
|
||||||
|
|
||||||
// by class com.rusefi.output.FileFsioSettingsConsumer
|
// by class com.rusefi.output.FileFsioSettingsConsumer
|
||||||
case FSIO_SETTING_FANONTEMPERATURE:
|
case FSIO_SETTING_FANONTEMPERATURE:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:20 UTC 2021
|
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 12:59:55 UTC 2021
|
||||||
|
|
||||||
// by class com.rusefi.output.FileFsioSettingsConsumer
|
// by class com.rusefi.output.FileFsioSettingsConsumer
|
||||||
static LENameOrdinalPair lefanOnTemperature(FSIO_SETTING_FANONTEMPERATURE, "cfg_fanOnTemperature");
|
static LENameOrdinalPair lefanOnTemperature(FSIO_SETTING_FANONTEMPERATURE, "cfg_fanOnTemperature");
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:20 UTC 2021
|
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 12:59:55 UTC 2021
|
||||||
|
|
||||||
// by class com.rusefi.output.FileFsioSettingsConsumer
|
// by class com.rusefi.output.FileFsioSettingsConsumer
|
||||||
case FSIO_SETTING_FANONTEMPERATURE:
|
case FSIO_SETTING_FANONTEMPERATURE:
|
||||||
|
|
|
@ -1239,7 +1239,7 @@
|
||||||
#define showHumanReadableWarning_offset 976
|
#define showHumanReadableWarning_offset 976
|
||||||
#define showSdCardWarning_offset 76
|
#define showSdCardWarning_offset 76
|
||||||
#define SIGNATURE_BOARD all
|
#define SIGNATURE_BOARD all
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 1964465885
|
#define SIGNATURE_HASH 1964465885
|
||||||
#define silentTriggerError_offset 1464
|
#define silentTriggerError_offset 1464
|
||||||
#define slowAdcAlpha_offset 2088
|
#define slowAdcAlpha_offset 2088
|
||||||
|
@ -1574,7 +1574,7 @@
|
||||||
#define ts_show_spi true
|
#define ts_show_spi true
|
||||||
#define ts_show_trigger_comparator false
|
#define ts_show_trigger_comparator false
|
||||||
#define ts_show_tunerstudio_port true
|
#define ts_show_tunerstudio_port true
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.all.1964465885"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.all.1964465885"
|
||||||
#define TS_SINGLE_WRITE_COMMAND 'W'
|
#define TS_SINGLE_WRITE_COMMAND 'W'
|
||||||
#define TS_SINGLE_WRITE_COMMAND_char W
|
#define TS_SINGLE_WRITE_COMMAND_char W
|
||||||
#define TS_TEST_COMMAND 't' // 0x74
|
#define TS_TEST_COMMAND 't' // 0x74
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD all
|
#define SIGNATURE_BOARD all
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 1964465885
|
#define SIGNATURE_HASH 1964465885
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.all.1964465885"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.all.1964465885"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD frankenso_na6
|
#define SIGNATURE_BOARD frankenso_na6
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 4050481998
|
#define SIGNATURE_HASH 4050481998
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.frankenso_na6.4050481998"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.frankenso_na6.4050481998"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD hellen72
|
#define SIGNATURE_BOARD hellen72
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 256101980
|
#define SIGNATURE_HASH 256101980
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.hellen72.256101980"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.hellen72.256101980"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD hellen_cypress
|
#define SIGNATURE_BOARD hellen_cypress
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 929793293
|
#define SIGNATURE_HASH 929793293
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.hellen_cypress.929793293"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.hellen_cypress.929793293"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD kin
|
#define SIGNATURE_BOARD kin
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 3368962545
|
#define SIGNATURE_HASH 3368962545
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.kin.3368962545"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.kin.3368962545"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD mre_f4
|
#define SIGNATURE_BOARD mre_f4
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 1540434999
|
#define SIGNATURE_HASH 1540434999
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.mre_f4.1540434999"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.mre_f4.1540434999"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD mre_f7
|
#define SIGNATURE_BOARD mre_f7
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 1540434999
|
#define SIGNATURE_HASH 1540434999
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.mre_f7.1540434999"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.mre_f7.1540434999"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD prometheus_405
|
#define SIGNATURE_BOARD prometheus_405
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 1736531179
|
#define SIGNATURE_HASH 1736531179
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.prometheus_405.1736531179"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.prometheus_405.1736531179"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD prometheus_469
|
#define SIGNATURE_BOARD prometheus_469
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 1736531179
|
#define SIGNATURE_HASH 1736531179
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.prometheus_469.1736531179"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.prometheus_469.1736531179"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD proteus_f4
|
#define SIGNATURE_BOARD proteus_f4
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 304518898
|
#define SIGNATURE_HASH 304518898
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.proteus_f4.304518898"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.proteus_f4.304518898"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD proteus_f7
|
#define SIGNATURE_BOARD proteus_f7
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 304518898
|
#define SIGNATURE_HASH 304518898
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.proteus_f7.304518898"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.proteus_f7.304518898"
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define SIGNATURE_BOARD subaru_eg33_f7
|
#define SIGNATURE_BOARD subaru_eg33_f7
|
||||||
#define SIGNATURE_DATE 2021.02.18
|
#define SIGNATURE_DATE 2021.02.19
|
||||||
#define SIGNATURE_HASH 3083086059
|
#define SIGNATURE_HASH 3083086059
|
||||||
#define TS_SIGNATURE "rusEFI 2021.02.18.subaru_eg33_f7.3083086059"
|
#define TS_SIGNATURE "rusEFI 2021.02.19.subaru_eg33_f7.3083086059"
|
||||||
|
|
Binary file not shown.
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.all.1964465885"
|
signature = "rusEFI 2021.02.19.all.1964465885"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.all.1964465885" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.all.1964465885" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:20 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 12:59:55 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.frankenso_na6.4050481998"
|
signature = "rusEFI 2021.02.19.frankenso_na6.4050481998"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.frankenso_na6.4050481998" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.frankenso_na6.4050481998" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:28 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 13:00:03 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.hellen72.256101980"
|
signature = "rusEFI 2021.02.19.hellen72.256101980"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.hellen72.256101980" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.hellen72.256101980" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:22 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 12:59:57 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.hellen_cypress.929793293"
|
signature = "rusEFI 2021.02.19.hellen_cypress.929793293"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.hellen_cypress.929793293" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.hellen_cypress.929793293" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on hellen_cypress_gen_config.bat integration/rusefi_config.txt Thu Feb 18 23:19:48 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on hellen_cypress_gen_config.bat integration/rusefi_config.txt Fri Feb 19 13:00:17 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.kin.3368962545"
|
signature = "rusEFI 2021.02.19.kin.3368962545"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.kin.3368962545" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.kin.3368962545" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kinetis_gen_config.bat integration/rusefi_config.txt Thu Feb 18 23:19:43 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kinetis_gen_config.bat integration/rusefi_config.txt Fri Feb 19 13:00:14 UTC 2021
|
||||||
|
|
||||||
pageSize = 19972
|
pageSize = 19972
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.mre_f4.1540434999"
|
signature = "rusEFI 2021.02.19.mre_f4.1540434999"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.mre_f4.1540434999" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.mre_f4.1540434999" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:26 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 13:00:01 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.mre_f7.1540434999"
|
signature = "rusEFI 2021.02.19.mre_f7.1540434999"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.mre_f7.1540434999" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.mre_f7.1540434999" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:24 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 12:59:59 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.prometheus_405.1736531179"
|
signature = "rusEFI 2021.02.19.prometheus_405.1736531179"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.prometheus_405.1736531179" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.prometheus_405.1736531179" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:32 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 13:00:07 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.prometheus_469.1736531179"
|
signature = "rusEFI 2021.02.19.prometheus_469.1736531179"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.prometheus_469.1736531179" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.prometheus_469.1736531179" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:30 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 13:00:05 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.proteus_f4.304518898"
|
signature = "rusEFI 2021.02.19.proteus_f4.304518898"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.proteus_f4.304518898" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.proteus_f4.304518898" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:37 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 13:00:11 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.proteus_f7.304518898"
|
signature = "rusEFI 2021.02.19.proteus_f7.304518898"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.proteus_f7.304518898" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.proteus_f7.304518898" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:34 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 13:00:09 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -33,12 +33,12 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
[MegaTune]
|
[MegaTune]
|
||||||
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
|
||||||
signature = "rusEFI 2021.02.18.subaru_eg33_f7.3083086059"
|
signature = "rusEFI 2021.02.19.subaru_eg33_f7.3083086059"
|
||||||
|
|
||||||
[TunerStudio]
|
[TunerStudio]
|
||||||
queryCommand = "S"
|
queryCommand = "S"
|
||||||
versionInfo = "V" ; firmwave version for title bar.
|
versionInfo = "V" ; firmwave version for title bar.
|
||||||
signature = "rusEFI 2021.02.18.subaru_eg33_f7.3083086059" ; signature is expected to be 7 or more characters.
|
signature = "rusEFI 2021.02.19.subaru_eg33_f7.3083086059" ; signature is expected to be 7 or more characters.
|
||||||
|
|
||||||
[Constants]
|
[Constants]
|
||||||
; new packet serial format with CRC
|
; new packet serial format with CRC
|
||||||
|
@ -77,7 +77,7 @@ enable2ndByteCanID = false
|
||||||
|
|
||||||
; see PAGE_0_SIZE in C source code
|
; see PAGE_0_SIZE in C source code
|
||||||
; CONFIG_DEFINITION_START
|
; CONFIG_DEFINITION_START
|
||||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on config/boards/subaru_eg33/config/gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:50 UTC 2021
|
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on config/boards/subaru_eg33/config/gen_config.sh integration/rusefi_config.txt Fri Feb 19 13:00:20 UTC 2021
|
||||||
|
|
||||||
pageSize = 20000
|
pageSize = 20000
|
||||||
page = 1
|
page = 1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package com.rusefi.config.generated;
|
package com.rusefi.config.generated;
|
||||||
|
|
||||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Thu Feb 18 23:19:20 UTC 2021
|
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Fri Feb 19 12:59:55 UTC 2021
|
||||||
|
|
||||||
// by class com.rusefi.output.FileJavaFieldsConsumer
|
// by class com.rusefi.output.FileJavaFieldsConsumer
|
||||||
import com.rusefi.config.*;
|
import com.rusefi.config.*;
|
||||||
|
@ -1478,7 +1478,7 @@ public class Fields {
|
||||||
public static final char TS_SD_R_COMMAND = 'r';
|
public static final char TS_SD_R_COMMAND = 'r';
|
||||||
public static final char TS_SD_W_COMMAND = 'w';
|
public static final char TS_SD_W_COMMAND = 'w';
|
||||||
public static final char TS_SET_LOGGER_SWITCH = 'l';
|
public static final char TS_SET_LOGGER_SWITCH = 'l';
|
||||||
public static final String TS_SIGNATURE = "rusEFI 2021.02.18.all.1964465885";
|
public static final String TS_SIGNATURE = "rusEFI 2021.02.19.all.1964465885";
|
||||||
public static final char TS_SINGLE_WRITE_COMMAND = 'W';
|
public static final char TS_SINGLE_WRITE_COMMAND = 'W';
|
||||||
public static final int TT_TT_1_16 = 50;
|
public static final int TT_TT_1_16 = 50;
|
||||||
public static final int TT_TT_2JZ_1_12 = 29;
|
public static final int TT_TT_2JZ_1_12 = 29;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<roms>
|
<roms>
|
||||||
|
|
||||||
<!-- was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh Thu Feb 18 23:19:21 UTC 2021 -->
|
<!-- was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.sh Fri Feb 19 12:59:57 UTC 2021 -->
|
||||||
|
|
||||||
<rom>
|
<rom>
|
||||||
<romid>
|
<romid>
|
||||||
|
|
|
@ -29,7 +29,7 @@ function clickPin(table, pin, pdiv) {
|
||||||
return pin.id.indexOf(value) === index;
|
return pin.id.indexOf(value) === index;
|
||||||
});
|
});
|
||||||
for (var i = 0; i < pinIds.length; i++) {
|
for (var i = 0; i < pinIds.length; i++) {
|
||||||
addRow(table, {pin: pin.pin, id: pinIds[i], function: pin.function}, pdiv);
|
addRow(table, {pin: pin.pin, id: pinIds[i], function: pin.function, type: pin.type}, pdiv);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
addRow(table, pin, pdiv);
|
addRow(table, pin, pdiv);
|
||||||
|
|
|
@ -80,10 +80,22 @@
|
||||||
border-color: lightgreen;
|
border-color: lightgreen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-type*="mr"] {
|
||||||
|
border-color: firebrick;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-type*="pgnd"] {
|
||||||
|
border-color: coral;
|
||||||
|
}
|
||||||
|
|
||||||
[data-type*="sgnd"] {
|
[data-type*="sgnd"] {
|
||||||
border-color: olive;
|
border-color: olive;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-type*="usb"] {
|
||||||
|
border-color: lightseagreen;
|
||||||
|
}
|
||||||
|
|
||||||
[data-type*="vr"] {
|
[data-type*="vr"] {
|
||||||
border-color: sienna;
|
border-color: sienna;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue