TS: implement getCommand that have no params and request all livedata (#7039)

But until ochBlockSize is bigger than blockingFactor TS will not use
this command and prefer ochGetCommand.
This commit is contained in:
Andrey G 2024-11-04 16:16:19 +03:00 committed by GitHub
parent ccbf45808a
commit 499801ceb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View File

@ -742,6 +742,11 @@ int TunerStudio::handleCrcCommand(TsChannelBase* tsChannel, char *data, int inco
}
cmdOutputChannels(tsChannel, offset, count);
break;
case TS_OUTPUT_ALL_COMMAND:
offset = 0;
count = TS_TOTAL_OUTPUT_SIZE;
cmdOutputChannels(tsChannel, offset, count);
break;
case TS_HELLO_COMMAND:
tunerStudioDebug(tsChannel, "got Query command");
handleQueryCommand(tsChannel, TS_CRC);

View File

@ -2,6 +2,8 @@
! These commands are used by TunerStudio and the rusEFI console
! 0x4F ochGetCommand
#define TS_OUTPUT_COMMAND 'O'
! getCommand
#define TS_OUTPUT_ALL_COMMAND 'A'
! 0x53 queryCommand - this one is about detailed signature
#define TS_HELLO_COMMAND 'S'
! todo: replace all usages of TS_HELLO_COMMAND with TS_QUERY_COMMAND

View File

@ -187,6 +187,9 @@ enable2ndByteCanID = false
;
; in order to add new TunerStudio data point you need to change one of *.txt files mentioned in LiveData.yaml
;
[BurstMode]
getCommand = "A"
[OutputChannels]
ochGetCommand = "O%2o%2c"