MegaTune & Bluetooth Problems
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.
-
Fastest95PGT
- Helpful Squirter
- Posts: 61
- Joined: Sat Jun 12, 2004 5:27 pm
- Location: Worcester, MA
- Contact:
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.
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:
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
Code: Select all
timeout.ReadTotalTimeoutConstant = 200;
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:
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.
275whp/242wtq @ 5.5psi ---- 317whp/287wtq @ 8.5psi
^^^ (thanks to MSnS-E and dyno tuning by me!)
2003 GSX1300R (Hayabusa)