MegaTune & Bluetooth Problems

Forum for discussing Tuner StudioMS tuning & datalogging software.
Forum rules
Read the manual to see if your question is answered there before posting. If you have questions about MS1/Extra or MS2/Extra or other non-B&G code configuration or tuning, please post them at http://www.msextra.com The full forum rules are here: Forum Rules, be sure to read them all regularly.
shaodome
MegaSquirt Newbie
Posts: 20
Joined: Thu Aug 26, 2004 12:58 pm

Post by shaodome »

coolio
Fastest95PGT
Helpful Squirter
Posts: 61
Joined: Sat Jun 12, 2004 5:27 pm
Location: Worcester, MA
Contact:

Post by Fastest95PGT »

Little status update.

Good news and bad news. The code change I had Mad Prof make seems to work well for him as mentioned already. However, when I got home I tried it with an older BT/USB adaptor I have (the original one I tried and never got to work) and the fix does not work.

I haven't had time to debug it with some com logging yet, but I hope to soon. Once I get my older adaptor to work (assuming I can), I'll have Mad Prof test the final code change on his.

Mad Prof has confirmed that his current code changes still work with the standard serial port cabled method as well.
1995 Ford Probe GT ~ Megasquirted & Boosted
275whp/242wtq @ 5.5psi ---- 317whp/287wtq @ 8.5psi
^^^ (thanks to MSnS-E and dyno tuning by me!)
2003 GSX1300R (Hayabusa)
Mad Professor
MegaSquirt Newbie
Posts: 26
Joined: Mon Jun 06, 2005 6:52 am
Location: UK
Contact:

Post by Mad Professor »

As: Fastest95PGT has said we have been playing about with the source code, and for my bluetooth link it now seems that the RTS & DTR are not the problem or well looks like it is not.

We have found in the msComm.cpp around line 242 if we change a line,

From:

Code: Select all

timeout.ReadTotalTimeoutConstant    = _totalReadTimeout; // 25 for MS-I, 250 for MS-II
To:

Code: Select all

timeout.ReadTotalTimeoutConstant    = 200;
That MegaTune stops jumping about, and I not longer get any resets, ect, like I was getting in my MegaSquirt & Bluetooth Post.

I my self don't know C++, I am more QB & VB Based, So I don't know if this is the best way of getting around my program or not.

Thanks for your time.
Fastest95PGT
Helpful Squirter
Posts: 61
Joined: Sat Jun 12, 2004 5:27 pm
Location: Worcester, MA
Contact:

Post by Fastest95PGT »

The way I see it. As long as the change I had you make works for you, then that's what matters. Posting it here allows Eric/anyone the oportunity to review/comment accordingly on how it will affect other communications.

This change does not seem to affect normal RS232 serial comms at least with a straight through serial cable.

MT appears to write and read on a "per character" basis whereas MTX does it in chunks. This could be the reason why MTX did not have the same issues MT did.

As for my older adaptor, I'm in the process of upgrading it's drivers (the ones I had were from '03) in hopes that will work with this modified code. If so, the fix will be proved as more than just a "fluke" that it worked for Mad Prof above. I will also then test the code with a straight through serial cable, USB/Serial, and on board USB.
1995 Ford Probe GT ~ Megasquirted & Boosted
275whp/242wtq @ 5.5psi ---- 317whp/287wtq @ 8.5psi
^^^ (thanks to MSnS-E and dyno tuning by me!)
2003 GSX1300R (Hayabusa)
Post Reply