TS serial failure after 3 attempts
Moderator: LT401Vette
TS serial failure after 3 attempts
Hi
I'm using the LM048 serial BT dongle, I followed these instructions http://westfieldmx5.devocht.com/index.p ... 35&page=52
The connection is established and then the error message pops up, TS is working ok and responding though some of the gauges are a little jittery such as the MAP.
appreciate any ideas
Breastfed
I'm using the LM048 serial BT dongle, I followed these instructions http://westfieldmx5.devocht.com/index.p ... 35&page=52
The connection is established and then the error message pops up, TS is working ok and responding though some of the gauges are a little jittery such as the MAP.
appreciate any ideas
Breastfed
-
- Super MS/Extra'er
- Posts: 12697
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: TS serial failure after 3 attempts
That message comes when it fails interrogation. The most common cause is that you have the CAN I'd set to something different in the project than on the controller.
You would get this every time then.
Check your CAN ID in project properties.
You would get this every time then.
Check your CAN ID in project properties.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Re: TS serial failure after 3 attempts
Not sure I understand, CAN I have not used or messed with these settings .
I've always used a serial cable with the laptop and the controller , The BT LM049 is a new setup
What settings should be applied for the CAN ID ? The CAN ID is 0
Breastfed
I've always used a serial cable with the laptop and the controller , The BT LM049 is a new setup
What settings should be applied for the CAN ID ? The CAN ID is 0
Breastfed
-
- Super MS/Extra'er
- Posts: 12697
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: TS serial failure after 3 attempts
Is this happening every time?
You can get that message if the interrogation is interrupted 3 times in a row too, say by powercycling the controller while TS is trying to read. That is why it tries 3 times before complaining.. just in case you go to start while it is interrogating and the controller resets.
You can get that message if the interrogation is interrupted 3 times in a row too, say by powercycling the controller while TS is trying to read. That is why it tries 3 times before complaining.. just in case you go to start while it is interrogating and the controller resets.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Re: TS serial failure after 3 attempts
I think I got now ...with the serial cable connected
Advanced tab > CAN Parameters > this was the same as the project properties but I went ahead and Burn to the controller > reboot with the BT LM049 connected and it's all good.
Perhaps My BT Mouse is also causing some static with TS
appreciate the help
Breastfed
Advanced tab > CAN Parameters > this was the same as the project properties but I went ahead and Burn to the controller > reboot with the BT LM049 connected and it's all good.
Perhaps My BT Mouse is also causing some static with TS
appreciate the help
Breastfed
Re: TS serial failure after 3 attempts
Everything seems to work ok last night ... shut everything down for some sleep and this morning fire up the computer and its the same issue with the BT connection.
>Switch back to the serial cable.
Advanced tab > CAN Parameters (nothing changed as its all disabled) > Burn to the controller > reboot MS with the BT LM049 connected and it's all good again... any idea's
Breastfed
>Switch back to the serial cable.
Advanced tab > CAN Parameters (nothing changed as its all disabled) > Burn to the controller > reboot MS with the BT LM049 connected and it's all good again... any idea's
Breastfed
-
- Super MS/Extra'er
- Posts: 12697
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: TS serial failure after 3 attempts
The root to this message is that it is failing to read all the controller data back, it is either timing out or loosing data.
The wrong CAN id will cause that as it will get no data back. But if it is working fine with a cable, but under bluetooth breaking, it is likely either the slower Bluetooth connection or is loosing data.
Can you send me a TunerStudioLogFile.txt to p_tobin <at> yahoo.com? It is probably easier if I can see exactly what is going wrong.
The wrong CAN id will cause that as it will get no data back. But if it is working fine with a cable, but under bluetooth breaking, it is likely either the slower Bluetooth connection or is loosing data.
Can you send me a TunerStudioLogFile.txt to p_tobin <at> yahoo.com? It is probably easier if I can see exactly what is going wrong.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Re: TS serial failure after 3 attempts
Email sent ...
Sometimes my BT mouse is a little funky it tends to not respond for seconds after being away or it stops responding for 15-20 seconds and then starts working again. Possible that it's a windows / software thing I'm running windows 7 on a machine that was made for Vista apart from this BT issue its really the only problem.
A few of the dials are a little jumpy the Volts, MAP, TPS and Coolant T appear to be the worst, RPM is slow to respond generally all the gauges are kinda sluggish compared to the serial cable ...is this to be expected from a BT connection
Breastfed
Sometimes my BT mouse is a little funky it tends to not respond for seconds after being away or it stops responding for 15-20 seconds and then starts working again. Possible that it's a windows / software thing I'm running windows 7 on a machine that was made for Vista apart from this BT issue its really the only problem.
A few of the dials are a little jumpy the Volts, MAP, TPS and Coolant T appear to be the worst, RPM is slow to respond generally all the gauges are kinda sluggish compared to the serial cable ...is this to be expected from a BT connection
Breastfed
-
- Super MS/Extra'er
- Posts: 12697
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: TS serial failure after 3 attempts
It looks like just a timeout, but in some places it seems to be timing out on the runtime data reads too, that shouldn't be.
Try increasing the read timeout. In a text Editor open
[YourProjectFolder]\projectCfg\mainController.ini
At about line # 151 you will find a line:
blockReadTimeout = 100 ; Milliseconds total timeout for reading page.
Try increasing that to about 300, as such:
blockReadTimeout = 300 ; Milliseconds total timeout for reading page.
See if that does it.
interestingly, that 10-12 reads per second seems to be true for all firmwares even though there is significant differences in the data load, so it seems to be more of a ping/response time issue with the BT than the throughput capability of the BT.
Try increasing the read timeout. In a text Editor open
[YourProjectFolder]\projectCfg\mainController.ini
At about line # 151 you will find a line:
blockReadTimeout = 100 ; Milliseconds total timeout for reading page.
Try increasing that to about 300, as such:
blockReadTimeout = 300 ; Milliseconds total timeout for reading page.
See if that does it.
The data rate / Reads per second using a BT adapter will be slower. Typically while connected via BT you only get 9-12 records per second. So your gauge movements will not be quite as smooth. If you are over 10, it is usually acceptable anyway. There is some variation in read speed depending on what adapter you are using, but they are all for the most part 10-12 reads per second.A few of the dials are a little jumpy the Volts, MAP, TPS and Coolant T appear to be the worst, RPM is slow to respond generally all the gauges are kinda sluggish compared to the serial cable ...is this to be expected from a BT connection
interestingly, that 10-12 reads per second seems to be true for all firmwares even though there is significant differences in the data load, so it seems to be more of a ping/response time issue with the BT than the throughput capability of the BT.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Re: TS serial failure after 3 attempts
Hi Phil
it's still the same...
email #2 coming
Breastfed
it's still the same...
email #2 coming
Breastfed
-
- Super MS/Extra'er
- Posts: 12697
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: TS serial failure after 3 attempts
So are you getting online sometimes and getting the failure sometimes?
It looks that way in the log.
It might be worth trying a longer pageActivationDelay too, try doubling it to 100
Also cut interWriteDelay to 2:
pageActivationDelay = 100
blockReadTimeout = 300
writeBlocks = off
interWriteDelay = 2
It does seem odd that you need to tweak these settings though. With the Android work i have several BT Adapters in use here and on Windows they all work pretty well with everything as it is.
It looks that way in the log.
It might be worth trying a longer pageActivationDelay too, try doubling it to 100
Also cut interWriteDelay to 2:
pageActivationDelay = 100
blockReadTimeout = 300
writeBlocks = off
interWriteDelay = 2
It does seem odd that you need to tweak these settings though. With the Android work i have several BT Adapters in use here and on Windows they all work pretty well with everything as it is.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Re: TS serial failure after 3 attempts
>MS is powered on and BT link LED is flashing (waiting to be discovered)
>Open TS and during the initial stages of TS you can see as the gauges roll back to zero and the error message pop's up after a few attempts at connecting
> stimulate MS and I can see TS is responding also the BT is linked up and the data LED is on
> click OK on the popup message and TS goes offline.
then....
>Switch back to the serial cable.
In TS > Advanced tab > CAN Parameters (nothing changed as its all disabled) > Burn to the controller > reboot MS with the BT LM049 connected and it now works.
I tried slowing down the buffer in the com port settings but this also makes no difference
Breastfed
>Open TS and during the initial stages of TS you can see as the gauges roll back to zero and the error message pop's up after a few attempts at connecting
> stimulate MS and I can see TS is responding also the BT is linked up and the data LED is on
> click OK on the popup message and TS goes offline.
then....
>Switch back to the serial cable.
In TS > Advanced tab > CAN Parameters (nothing changed as its all disabled) > Burn to the controller > reboot MS with the BT LM049 connected and it now works.
I tried slowing down the buffer in the com port settings but this also makes no difference
Breastfed
Re: TS serial failure after 3 attempts
You can see the gauges are working ..
-
- Super MS/Extra'er
- Posts: 12697
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: TS serial failure after 3 attempts
Yes, the gauges will work... It is failing on the interrogation where it reads back the all the settings from the controller. It reads those 1024 page chunks all at once, that is where the failure seems to be happening for some reason. The run time data looks to be coming back in the log.
But if TunerStudio can't validate that the local store matches the controller, you stand risk of corrupting the settings in your controller, so TS goes offline on purpose.
If you Activated USE_CRC_DATA_CHECK in the settings, it is more likely that you would make it through interrogation, but that won't really fix the problem.
Another possibility is to make TunerStudio read it in smaller chunks by adding this line the ini:
blockingFactor = 256
put it with the other timings.
But if TunerStudio can't validate that the local store matches the controller, you stand risk of corrupting the settings in your controller, so TS goes offline on purpose.
If you Activated USE_CRC_DATA_CHECK in the settings, it is more likely that you would make it through interrogation, but that won't really fix the problem.
Another possibility is to make TunerStudio read it in smaller chunks by adding this line the ini:
blockingFactor = 256
put it with the other timings.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
-
- Site Admin
- Posts: 39585
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: TS serial failure after 3 attempts
I was finding this same problem while testing a Microsquirt module yesterday.
I changed the serial timings in the ini file as follows and then it worked - but I know these settings were ok with an earlier version of TS.
pageActivationDelay = 100
blockReadTimeout = 500
writeBlocks = off
interWriteDelay = 1
James
I changed the serial timings in the ini file as follows and then it worked - but I know these settings were ok with an earlier version of TS.
pageActivationDelay = 100
blockReadTimeout = 500
writeBlocks = off
interWriteDelay = 1
James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Re: TS serial failure after 3 attempts
James & Phil,
none of the tweaks in the maincontroller.ini would work, including activating the USE_CRC_DATA_CHECK in the settings.
If I change back to Com1 connect with the serial cable and go online with TS > Go offline > change from Com1 to Com10 BT port > Shutdown TS & MS > Change over to the BT dongle > Turn on MS and open TS it connects and stays online without errors .
Phil, I added the "blocking factor = 256" to the .ini , not knowing where is should be placed.
pageActivationDelay = 100 ; Milliseconds delay after burn command.
blockReadTimeout = 500 ; Milliseconds total timeout for reading page.
writeBlocks = off ; from Lance
interWriteDelay = 2 ; 5 from Lance
blockingFactor = 256
I tried it like this and got a project error that still resulted with TS going offline after 3 attempts... what the correct way for this ?
Breastfed
none of the tweaks in the maincontroller.ini would work, including activating the USE_CRC_DATA_CHECK in the settings.
If I change back to Com1 connect with the serial cable and go online with TS > Go offline > change from Com1 to Com10 BT port > Shutdown TS & MS > Change over to the BT dongle > Turn on MS and open TS it connects and stays online without errors .
Phil, I added the "blocking factor = 256" to the .ini , not knowing where is should be placed.
pageActivationDelay = 100 ; Milliseconds delay after burn command.
blockReadTimeout = 500 ; Milliseconds total timeout for reading page.
writeBlocks = off ; from Lance
interWriteDelay = 2 ; 5 from Lance
blockingFactor = 256
I tried it like this and got a project error that still resulted with TS going offline after 3 attempts... what the correct way for this ?
Breastfed
-
- Super MS/Extra'er
- Posts: 12697
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: TS serial failure after 3 attempts
My bad... I forgot that line needs to be after the nPages command.
So scroll down to just above "page = 1", so make it looks like:
I have hope for this because it seems to be reading runtime data fine, but can't handle the 1024 blocks for some reason. What this command makes TunerStudio do is break reads into 256 byte chunks.
So scroll down to just above "page = 1", so make it looks like:
Code: Select all
blockingFactor = 256
page = 1
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Re: TS serial failure after 3 attempts
its still the same ...
log file has been sent
Breastfed
log file has been sent
Breastfed
Last edited by Breastfed on Mon Sep 12, 2011 8:18 am, edited 1 time in total.
-
- Super MS/Extra'er
- Posts: 12697
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: TS serial failure after 3 attempts
Have you given 1.004 a shot. I doubt it will help, but other than that the only thing I know left to try is getting a different BT adapter.
I suppose you could try blockingFactor = 128
I suppose you could try blockingFactor = 128
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Re: TS serial failure after 3 attempts
no worries ...will give them all a whirl 128 64 32 16..... LOLLT401Vette wrote:Have you given 1.004 a shot. I doubt it will help, but other than that the only thing I know left to try is getting a different BT adapter.
I suppose you could try blockingFactor = 128
would a usb-bt dongle be any help ...got a couple lay stashed away somewhere
Breastfed