GPS and TunerStudio with a Pi Dash

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

GPS and TunerStudio with a Pi Dash

Postby VLC-05L » Tue Jun 20, 2017 12:19 am

I have made a Raspberry Pi dash and am trying to use a GPS module for speed. I bought the Adafruit Ultimate GPS module and a cheap USB to serial converter.

I basically plugged them all together and hoped for the best. I set up the GPS configuration in Tunerstudio with the port being ttyUSB0 and a baud rate of 9600. Apparently this is what the module uses as standard. When I go to the mini-terminal in tuner studio, when I can open the port it shows the GPS data being received, even when I was inside and not getting a fix. With the module installed under my dash, while I drive around the speed doesn't show up on the dash.

My thoughts are that even if it is not getting a fix due to being under the dash, it should still show changes in speed, even if they are not all that accurate. Or is this not correct? Should I be buying a GPS antenna?

Or if this is not required, is there something else that needs to be done on tunerstudio or the Pi to help them interpret the signal. I thought I read that there are a couple of different messaging types and that I might need to tell the Pi what sort of signal I am receiving, but I haven't done anything like that.

Any help would be most appreciated.

Glen

PS. (Another problem I am having) When I accelerate the car hard, the Pi turns off... I am still testing to try and find why this happens but if anyone has any theories, happy to hear them.
CB70 12V 3cyl 993cc Daihatsu | MS2X Sequential Fuel and Spark | Flex Fuel Launch Control | Raspberry Pi Dash
User avatar
VLC-05L
Experienced MS/Extra'er
 
Posts: 192
Joined: Wed Jan 21, 2015 3:11 am
Location: Australia

Re: GPS and TunerStudio with a Pi Dash

Postby LT401Vette » Tue Jun 20, 2017 7:31 am

My thoughts are that even if it is not getting a fix due to being under the dash, it should still show changes in speed, even if they are not all that accurate. Or is this not correct? Should I be buying a GPS antenna?


Nope, no speed until there is a fix.

The GPS needs to put out $GPGGA and $GPRMC NEMA messages
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: 10388
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC

Re: GPS and TunerStudio with a Pi Dash

Postby VLC-05L » Tue Jun 20, 2017 3:18 pm

LT401Vette wrote:
My thoughts are that even if it is not getting a fix due to being under the dash, it should still show changes in speed, even if they are not all that accurate. Or is this not correct? Should I be buying a GPS antenna?


Nope, no speed until there is a fix.



The GPS needs to put out $GPGGA and $GPRMC NEMA messages


Thanks for your help!

Ok, no speed until a fix. So I need an antenna then.

Is there a way to check what message format it uses? Is it just a case of looking at the terminal and seeing if the format of the data is the same as what's required? Is the messaging format usually something that can be changed, or is it fixed for each GPS module? *edit - just found that it uses NMEA 0183, 9600 baud by default.*
CB70 12V 3cyl 993cc Daihatsu | MS2X Sequential Fuel and Spark | Flex Fuel Launch Control | Raspberry Pi Dash
User avatar
VLC-05L
Experienced MS/Extra'er
 
Posts: 192
Joined: Wed Jan 21, 2015 3:11 am
Location: Australia

Re: GPS and TunerStudio with a Pi Dash

Postby LT401Vette » Wed Jun 21, 2017 8:24 am

Open a terminal to it. The messages start off with what they are.
So you should see rows starting with $GPGGA and $GPRMC

Some GPS's can be configured for specific messages, but most have the above by default.
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: 10388
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC

Re: GPS and TunerStudio with a Pi Dash

Postby VLC-05L » Sun Jul 23, 2017 12:00 am

LT401Vette wrote:Open a terminal to it. The messages start off with what they are.
So you should see rows starting with $GPGGA and $GPRMC

Some GPS's can be configured for specific messages, but most have the above by default.


Thanks for that!

I ended up buying an antenna that suited the GPS module. It has a magnetic base so it can be put on the roof of the car to maximise the chance of getting a fix.

After driving the car today, it would not get a fix for any time longer than a few seconds. The GPS Active box would light up for a few seconds then turn off. It wouldn't get another fix for a few minutes and again it would only be for a couple of seconds. Not long enough to update the speed on the dash.

I looked at the default messaging format for the GPS module and it is NMEA 0183. I read that there are different forms of NMEA. Will the one I mentioned work fine?

Why else might this be? I'm unsure what I can do to test things to get this working. I kind of need this to work as I have put the fuel gauge as an input to the ECU and that doesn't work as it should, so I was going to try and rely on the fuel used calculation combined with the odometer calculation. I assume that the odometer calculation uses the speed input.
CB70 12V 3cyl 993cc Daihatsu | MS2X Sequential Fuel and Spark | Flex Fuel Launch Control | Raspberry Pi Dash
User avatar
VLC-05L
Experienced MS/Extra'er
 
Posts: 192
Joined: Wed Jan 21, 2015 3:11 am
Location: Australia

Re: GPS and TunerStudio with a Pi Dash

Postby VLC-05L » Sun Jul 23, 2017 4:06 pm

Here is a link to a video I took of the mini-terminal.

https://youtu.be/wi32vC0V3HQ
CB70 12V 3cyl 993cc Daihatsu | MS2X Sequential Fuel and Spark | Flex Fuel Launch Control | Raspberry Pi Dash
User avatar
VLC-05L
Experienced MS/Extra'er
 
Posts: 192
Joined: Wed Jan 21, 2015 3:11 am
Location: Australia

Re: GPS and TunerStudio with a Pi Dash

Postby LT401Vette » Mon Jul 24, 2017 6:39 am

It looks like it is putting out the messages needed.
Is it dropping fix?
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: 10388
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC

Re: GPS and TunerStudio with a Pi Dash

Postby VLC-05L » Mon Jul 24, 2017 3:11 pm

LT401Vette wrote:It looks like it is putting out the messages needed.
Is it dropping fix?


Is "dropping fix" a technical term? If you just mean is it losing the fix then yes that's what it's doing. I can only tell by looking at the TS button that lights up. It lights up to say active for a few seconds only.

The GPS module has a Fix LED, I can check that to see if that is also doing the same thing. I guess that will point towards if it's the module or not.
CB70 12V 3cyl 993cc Daihatsu | MS2X Sequential Fuel and Spark | Flex Fuel Launch Control | Raspberry Pi Dash
User avatar
VLC-05L
Experienced MS/Extra'er
 
Posts: 192
Joined: Wed Jan 21, 2015 3:11 am
Location: Australia

Re: GPS and TunerStudio with a Pi Dash

Postby VLC-05L » Mon Jul 24, 2017 4:49 pm

So I started the car this morning and pulled the dash out to check the Fix LED on the module. It isn't staying on either. So I'm guessing it is not a tuner studio problem then?
CB70 12V 3cyl 993cc Daihatsu | MS2X Sequential Fuel and Spark | Flex Fuel Launch Control | Raspberry Pi Dash
User avatar
VLC-05L
Experienced MS/Extra'er
 
Posts: 192
Joined: Wed Jan 21, 2015 3:11 am
Location: Australia

Re: GPS and TunerStudio with a Pi Dash

Postby LT401Vette » Mon Jul 24, 2017 4:59 pm

Probably not, perhaps the antenna is not quite pulling it off?
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: 10388
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC

Re: GPS and TunerStudio with a Pi Dash

Postby VLC-05L » Tue Jul 25, 2017 4:21 pm

LT401Vette wrote:Probably not, perhaps the antenna is not quite pulling it off?


It is the antenna for the module and it is mounted on the roof of the car so if it's not working right then I'm not sure why.

I think I will try another brand module and see how that goes.
CB70 12V 3cyl 993cc Daihatsu | MS2X Sequential Fuel and Spark | Flex Fuel Launch Control | Raspberry Pi Dash
User avatar
VLC-05L
Experienced MS/Extra'er
 
Posts: 192
Joined: Wed Jan 21, 2015 3:11 am
Location: Australia

Re: GPS and TunerStudio with a Pi Dash

Postby VLC-05L » Thu Jul 27, 2017 4:11 pm

VLC-05L wrote:
LT401Vette wrote:Probably not, perhaps the antenna is not quite pulling it off?


It is the antenna for the module and it is mounted on the roof of the car so if it's not working right then I'm not sure why.

I think I will try another brand module and see how that goes.


Thanks for your help so far.

I just checked the module instructions and the way the light is blinking actually indicates it has a fix!

So I'm again unsure what to check... Is there a log file I can take or find to post that might help?
CB70 12V 3cyl 993cc Daihatsu | MS2X Sequential Fuel and Spark | Flex Fuel Launch Control | Raspberry Pi Dash
User avatar
VLC-05L
Experienced MS/Extra'er
 
Posts: 192
Joined: Wed Jan 21, 2015 3:11 am
Location: Australia

Re: GPS and TunerStudio with a Pi Dash

Postby VLC-05L » Sun Jul 30, 2017 9:36 pm

I don't know a whole lot about Linux, part of the reason I got the Pi, was to learn a bit. I know that permissions are something to keep in mind. Could it be that I have not given permission for Tuner Studio to access the port that the GPS is connected to? Do I need to be running TS as an administrator or something like that?
CB70 12V 3cyl 993cc Daihatsu | MS2X Sequential Fuel and Spark | Flex Fuel Launch Control | Raspberry Pi Dash
User avatar
VLC-05L
Experienced MS/Extra'er
 
Posts: 192
Joined: Wed Jan 21, 2015 3:11 am
Location: Australia

Re: GPS and TunerStudio with a Pi Dash

Postby LT401Vette » Mon Aug 07, 2017 6:19 am

Doesn't seem like it if it is working sometimes, then you must have permissions for the serial port.
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: 10388
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC


Return to Tuner Studio

Who is online

Users browsing this forum: No registered users and 3 guests