From 6254c405ca91145dccffb01ddfa8e0df77764074 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Wed, 29 Jun 2016 22:08:04 +1000 Subject: [PATCH] Potential fix for TS3 disconnection issue --- comms.ino | 15 +++++++++++---- reference/speeduino.ini | 10 +++++----- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/comms.ino b/comms.ino index d3d0e368..c4ac7417 100644 --- a/comms.ino +++ b/comms.ino @@ -57,6 +57,10 @@ void command() sendValues(39); break; + case 'F': // send serial protocol version + Serial.print("001"); + break; + case 'S': // send code version //Serial.print(signature); //break; @@ -71,11 +75,13 @@ void command() //Serial.write(titleString,16); */ Serial.print("Speeduino 2016.06-pre"); + currentStatus.secl = 0; //This is required in TS3 due to its stricter timings break; case 'Q': // send code version - //Serial.print(signature); - Serial.write(signature); + //Serial.print("speeduino 2016.06"); + Serial.print(signature); + //Serial.write(signature); break; //The following requires TunerStudio 3 @@ -264,9 +270,10 @@ void sendValues(int length) response[33] = currentStatus.flex; //Flex sensor value (or 0 if not used) -cli(); +//cli(); Serial.write(response, (size_t)packetSize); -sei(); + //Serial.flush(); +//sei(); return; } diff --git a/reference/speeduino.ini b/reference/speeduino.ini index cd5cecd9..706b5a5a 100644 --- a/reference/speeduino.ini +++ b/reference/speeduino.ini @@ -5,12 +5,12 @@ queryCommand = "Q" signature = 20 - ;signature = "speeduino 2016.05" + ;signature = "speeduino 2016.06" versionInfo = "S" ; Put this in the title bar. -[TunerStudio] - iniSpecVersion = 3.24 +;[TunerStudio] +; iniSpecVersion = 3.24 ;------------------------------------------------------------------------------- @@ -90,10 +90,10 @@ tableBlockingFactor = 2048 delayAfterPortOpen=1000 ;validateArrayBounds = true - blockReadTimeout = 1000 + blockReadTimeout = 2000 ;tsWriteBlocks = on ; writeBlocks = on - interWriteDelay = 0 + interWriteDelay = 10 ;Page 1 is the fuel map and axis bins only page = 1