$7 bluetooth WORKING on MS1!

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Re: $7 bluetooth WORKING on MS1!

Postby MegasquirtBug » Mon Sep 01, 2014 4:53 am

Erniejones,

I cut a USB cable and soldered the red to 5v pin and black to ground. The other end I plugged to the computer. Instant 5v's :D .
1970 VW Beetle with 1776cc turbo with MS-II v3.0, wasted spark with MSD coilpack, dual table, launch control and 3.88 tranny. Anyway, runs great can't be more reliable than this. All done by me...:) t03 running 48lb. Injectors, Intercooler, at 13psi for now.
MegasquirtBug
Helpful MS/Extra'er
 
Posts: 83
Joined: Tue Dec 03, 2013 5:06 am
Location: Toa Alta,PR

Re: $7 bluetooth WORKING on MS1!

Postby ErnieJones » Mon Sep 01, 2014 11:50 am

I meant on the board itself but it's OK - I just learned about voltage regulators :yeah!:

So now I can create my own power circuits as/where needed. I'm new to electronics so all of these things are wonderful 'discoveries' for me :lol: Thanks for the reply though! :mrgreen:
Thanks you;
Ernie
ErnieJones
Master MS/Extra'er
 
Posts: 382
Joined: Thu Jul 17, 2014 4:44 pm

Re: $7 bluetooth WORKING on MS1!

Postby Bean Bandit » Mon Sep 01, 2014 3:32 pm

You got a 5V break out on the Microsquirt module, on the breakout for the DB9. I used that one. It's labeled (4pin one top right http://www.diyautotune.com/catalog/imag ... 2.2_lg.jpg).
User avatar
Bean Bandit
MS/Extra Newbie
 
Posts: 30
Joined: Sat Jan 16, 2010 1:31 pm
Location: Earth, currently middle east and europe

Re: $7 bluetooth WORKING on MS1!

Postby ErnieJones » Tue Sep 02, 2014 11:49 am

Bean Bandit wrote:You got a 5V break out on the Microsquirt module, on the breakout for the DB9. I used that one. It's labeled (4pin one top right http://www.diyautotune.com/catalog/imag ... 2.2_lg.jpg).


Thanks Bean Bandit :D
Thanks you;
Ernie
ErnieJones
Master MS/Extra'er
 
Posts: 382
Joined: Thu Jul 17, 2014 4:44 pm

Re: $7 bluetooth WORKING on MS1!

Postby matthunter1448 » Sun Sep 07, 2014 10:37 pm

Any body else have a issue with this board disconnecting and reconnecting when plugged into the megasquirt. It will stay connected on msdroid on my phone haven't tried shadowdash yet, and also when I connect to my comp. It just connects disconnects and reconnects till tunerstudio gives a error?
matthunter1448
Helpful MS/Extra'er
 
Posts: 140
Joined: Fri Jun 06, 2008 11:15 pm
Location: Spanaway, Wa

Re: $7 bluetooth WORKING on MS1!

Postby HidRo » Sun Sep 07, 2014 11:44 pm

Try to lower the Data Rate under Communications in Tunerstudio to 15/s, and check again.
HidRo
Super MS/Extra'er
 
Posts: 1158
Joined: Mon Dec 28, 2009 4:56 pm
Location: Portugal

Re: $7 bluetooth WORKING on MS1!

Postby LT401Vette » Mon Sep 08, 2014 6:08 am

It sounds like it is reading the runtime data fine, but on the larger reads, the reading of the tune data it is failing. In the TunerStudioAppDebug.txt it will tell you how many bytes are getting returned before it times out. See if there is any way to turning up the block sizes on the BT Adapter, or you could add a blockingFactor=256 (or any number less than the timeout number) to your ini. That will force TunerStudio to read the tune data in smaller blocks instead of entire 1024 byte pages.
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
User avatar
LT401Vette
Super MS/Extra'er
 
Posts: 10260
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC

Re: $7 bluetooth WORKING on MS1!

Postby travm » Tue Oct 07, 2014 6:17 pm

Hi folks,

Read through the thread and think I understand how this is supposed to work.
I have a JY-MCU module which is configured and working (PC->USB->BT->PC with a terminal at each end reflects everything typed on either end both ways, at 115200).

I have the module connected directly to the MS2 (through the same pins I had my USB FTDI module which has been working fine for 3 months now). I have confirmed and re-confirmed the tx and rx are the right way around a couple of times :-)

I can get ShadowDash to connect, and MiniTerm in Tunerstudio to connect but I'm not getting anything useful back from the MS.

Attached is a screenshot of what I get when I send an 'S' in Miniterm. I understand this is the initial request that asks the module versions, code, etc.
BT_MS2_output.PNG

Any ideas on why I'm getting garbage?

Cheers,
Trav.
--
Trav
ms2extra, v3, Rover 4.6l
travm
Helpful MS/Extra'er
 
Posts: 65
Joined: Sun Jun 01, 2014 8:33 am

Re: $7 bluetooth WORKING on MS1!

Postby kjones6039 » Tue Oct 07, 2014 6:21 pm

Actually, it's not garbage.

Set the Output Format to ASCII instead of Hex and it should make more sense!

Ken
1979 Corvette - 383 CID SBC w/ Holley Pro-Jection 900 CFM TBI, 4-85 lb lo-z injectors & Walbro 255 pump
MS2 v3 w/extra 3.4.2 Release
36-1, Delphi LS2/7 coils in wasted spark, driven by v2.0 logic board from JBPerformance
Spartan Lambda Sensor from 14point7
User avatar
kjones6039
Super MS/Extra'er
 
Posts: 1803
Joined: Sat Jul 22, 2006 8:02 pm
Location: Eureka, NV USA

Re: $7 bluetooth WORKING on MS1!

Postby travm » Tue Oct 07, 2014 7:23 pm

Thanks Ken but the reason I had it in HEX was that at least Miniterm could display what was coming back.

Ascii output was just this:

BT_MS2_output_ASCII.PNG
--
Trav
ms2extra, v3, Rover 4.6l
travm
Helpful MS/Extra'er
 
Posts: 65
Joined: Sun Jun 01, 2014 8:33 am

Re: $7 bluetooth WORKING on MS1!

Postby kjones6039 » Wed Oct 08, 2014 1:54 am

Ah ha.... Got it!

Ken
1979 Corvette - 383 CID SBC w/ Holley Pro-Jection 900 CFM TBI, 4-85 lb lo-z injectors & Walbro 255 pump
MS2 v3 w/extra 3.4.2 Release
36-1, Delphi LS2/7 coils in wasted spark, driven by v2.0 logic board from JBPerformance
Spartan Lambda Sensor from 14point7
User avatar
kjones6039
Super MS/Extra'er
 
Posts: 1803
Joined: Sat Jul 22, 2006 8:02 pm
Location: Eureka, NV USA

Re: $7 bluetooth WORKING on MS1!

Postby Rick Finsta » Wed Oct 08, 2014 8:55 am

Check your COM settings - some BT stacks open a couple of ports with these adapters and only one is correct so play around a bit. I found I had to re-pair each time on my phone to get it to work, and I have to disable and then enable the BT service for the COM port on my laptop.

Before I figured that out I was getting similar results, IIRC.
Rick Finsta
Master MS/Extra'er
 
Posts: 543
Joined: Fri Dec 10, 2010 4:41 pm

Re: $7 bluetooth WORKING on MS1!

Postby kjones6039 » Wed Oct 08, 2014 12:13 pm

Rick Finsta wrote:Check your COM settings - some BT stacks open a couple of ports with these adapters and only one is correct so play around a bit.

Same experience here........

Ken
1979 Corvette - 383 CID SBC w/ Holley Pro-Jection 900 CFM TBI, 4-85 lb lo-z injectors & Walbro 255 pump
MS2 v3 w/extra 3.4.2 Release
36-1, Delphi LS2/7 coils in wasted spark, driven by v2.0 logic board from JBPerformance
Spartan Lambda Sensor from 14point7
User avatar
kjones6039
Super MS/Extra'er
 
Posts: 1803
Joined: Sat Jul 22, 2006 8:02 pm
Location: Eureka, NV USA

Re: $7 bluetooth WORKING on MS1!

Postby travm » Wed Oct 08, 2014 9:19 pm

Only one port. It works fine running a "loopback" where I connect the BT to a USB FTDI to the PC and run one terminal up on the USB COM port and one on the BT COM port. Connecting it to an Arduino and I can push data through to an SD card no problem using the same BT module. It's only the MS that is giving me grief!
--
Trav
ms2extra, v3, Rover 4.6l
travm
Helpful MS/Extra'er
 
Posts: 65
Joined: Sun Jun 01, 2014 8:33 am

Re: $7 bluetooth WORKING on MS1!

Postby Rick Finsta » Thu Oct 09, 2014 6:21 am

And it connects fine over a cable? Did you try unpairing and repairing, or making sure you've got "serial connection over BT" (or whatever yours shows) enabled in the device settings (under the BT settings)?
Rick Finsta
Master MS/Extra'er
 
Posts: 543
Joined: Fri Dec 10, 2010 4:41 pm

Re: $7 bluetooth WORKING on MS1!

Postby elaw » Thu Dec 18, 2014 7:37 am

Hey this is pretty much OT but there seems to be a lot of knowledge here so I'll give it a shot...

Has anyone ever paired a PC with more than one of those cheap ebay Bluetooth-to-serial thingys? This is probably silly, but I'm curious how the computer knows one from the other?

I've already got one set up and working on my Megasquirt, but I'd like to use another one for a different project, talking to the same laptop...
Eric Law
1990 Audi 80 quattro with AAN turbo engine: happily running on MS3+MS3X
2012 Audi A4 quattro, desperately in need of tweaking

Be alert! America needs more lerts.
User avatar
elaw
Super MS/Extra'er
 
Posts: 2849
Joined: Fri Oct 16, 2009 6:20 am
Location: Wilmington, MA

Re: $7 bluetooth WORKING on MS1!

Postby old guy » Thu Dec 18, 2014 10:55 pm

elaw wrote:Hey this is pretty much OT but there seems to be a lot of knowledge here so I'll give it a shot...

Has anyone ever paired a PC with more than one of those cheap ebay Bluetooth-to-serial thingys? This is probably silly, but I'm curious how the computer knows one from the other?

I've already got one set up and working on my Megasquirt, but I'd like to use another one for a different project, talking to the same laptop...


Yes you can pair two of theses devices. The only way I know how to tell the difference is to change the name on the device from HC-06 to something of your choosing.
It has been a long time since I changed the name on mine to MEGA,so I can't recall exactly how I did it. If you google HC-06 you can find out how to do it.
Edit
Found this PDF for the bluetooth module.
EGBT-045MS-046S Bluetooth Module Manual rev 1r0.pdf

Hope this helps.
old guy
Experienced MS/Extra'er
 
Posts: 333
Joined: Thu Jan 24, 2008 9:20 am
Location: North Carolina

Re: $7 bluetooth WORKING on MS1!

Postby transaxel » Sun Feb 08, 2015 4:00 am

That´s the way i have built my BT-Adaptor. Works great and solid.

Greetings Gerald
Alfa Romeo 164 2.0 V6 Turbo running on MS2 Extra
transaxel
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Apr 22, 2008 10:41 am
Location: Austria

Re: $7 bluetooth WORKING on MS1!

Postby landmer » Tue Feb 10, 2015 12:09 am

I have followed OMGPHAM's guide to configure and solder my bt unit (Linvor).

I use a megasquirt 1 with hires 11d code. Cable Communication works fine between the same computer and my megasqurit. But when i connect the BT module to my megasquirt it seems like it won't get the correct firmware information from the megasqurit. If using auto-detect I get this:
Image

Any ideas? I have set the baud rate of the BT module to 9600 using AT+BAUD4 in hypertherm Three times and every time I get the response OK9600 in hypertherm. So i can't understand why this autodetect in tunerstudio Thinks it is set to 115200?

Also tried with msdroid and shadowdash both of them connect but can't find a .ini file matching my firmware (i have put the same .ini as I use and it works with Cable and tunerstudio in the msdroid ini folder)
landmer
MS/Extra Newbie
 
Posts: 7
Joined: Sun Mar 30, 2014 11:30 am

Re: $7 bluetooth WORKING on MS1!

Postby Trev16v » Tue Feb 10, 2015 1:49 pm

Looks suspiciously like the Linvor module has local echo enabled.

To be exact, it looks like the Megasquirt unit is trying to spit out its signature in response to the 'S' query command. The signature it returns begins with "MS". Because of local echo, the 'S' character of its own is being interpreted as a fresh query command. So it sits there continuously streaming out "MSMSMSMSMSMSMS..." I think someone in another thread (or maybe a previous page on this thread) had the same issue.
Golf MK2 G60 Syncro with 16VG60 on MSNS-E

MSDroid :: MegaSquirt tuning on Android

Image
Trev16v
Master MS/Extra'er
 
Posts: 397
Joined: Tue Apr 08, 2008 1:30 pm
Location: Oxfordshire, UK

PreviousNext

Return to Tuner Studio

Who is online

Users browsing this forum: No registered users and 3 guests