GPS set up, M142

Discussion and Support for MoTeC's M1 series ECUs

GPS set up, M142

Postby plohl on Sun Mar 19, 2017 9:13 pm

Hi,
I tried to hook up the 10hz GPS today. Couldn't get it working, Drove around for 10 min and it never got past a Timeout error - moved the fault delay to 2000ms... Unit was on top of the A-pillar. Can see the flashing red light on the GPS unit so I assume everything is wired correctly.

So just want to double check some things.

Baud Rate is 38400?

I have pin 1, 2 and 4 hooked up to the following M142 pins:

DTM Pin 1 > A25 - BAT_NEG4 Battery Negative
DTM Pin 2 > A22 - RS232_TX RS232 Transmit
DTM Pin 3 > Nothing
DTM Pin 4 > A18 SEN_5V0_C2 Sensor 5.0V C

Am I missing something, or do I just need to take the car for a long drive or something?
Any help would be greatly appreciated.
cheers
plohl
plohl
 
Posts: 37
Joined: Wed Jul 14, 2010 4:28 pm

Re: GPS set up, M142

Postby MalcolmG on Mon Mar 20, 2017 7:28 am

The convention with serial communications is that the pins are labelled by the action the device in question takes on that pin - in other words, the RS232 transmit pin is what the M142 uses to transmit data, and would be connected to the receive pin on whatever device you were trying to communicate with. In the example of the GPS module, you need to connect the device's transmit line to the M142's receive pin.
MalcolmG
Pro User
 
Posts: 76
Joined: Fri Dec 18, 2015 1:34 pm
Location: Auckland, NZ

Re: GPS set up, M142

Postby plohl on Mon Mar 20, 2017 7:52 am

Yeah, I had pin 3 hooked up to pin A21 RS232_RX RS232 Receive, but the user manual said not to hook it up?

motecgpswiring.PNG
from GPS-L5L10 Manual
motecgpswiring.PNG (89.46 KiB) Viewed 19306 times
cheers
plohl
plohl
 
Posts: 37
Joined: Wed Jul 14, 2010 4:28 pm

Re: GPS set up, M142

Postby David Ferguson on Mon Mar 20, 2017 7:57 am

To be clear -- connect the GPS DTM pin 2 (GPS TX) to the ECU pin A21 (ECU RS_232 RX).
David Ferguson
Veracity Racing Data
David Ferguson
Pro User
 
Posts: 1362
Joined: Fri Nov 07, 2008 2:45 am
Location: Paso Robles, California

Re: GPS set up, M142

Postby Stephen Dean on Mon Mar 20, 2017 8:53 am

As David said, you need to have Pin A-21 RS232_RX connected to pin 2 on the GPS DTM connector.
Stephen Dean
MoTeC Research Centre Melbourne, Australia
User avatar
Stephen Dean
Site Admin
 
Posts: 1688
Joined: Tue Dec 02, 2014 10:29 am
Location: Melbourne

Re: GPS set up, M142

Postby plohl on Mon Mar 20, 2017 9:38 am

Thanks everyone, now I see I completely stuffed up.

It should be wired as followed:

DTM Pin 1 > A25 - BAT_NEG4 Battery Negative

DTM Pin 2 > A21 - RS232_RX (as this is the receive side of the ECU - it receives the transmit side from the GPS unit)

DTM Pin 3 > Nothing (as the ecu is not transmitting anything for the GPS unit for it to receive?)

DTM Pin 4 > A18 SEN_5V0_C2 Sensor 5.0V C

well... I hope that will work.
cheers
plohl
plohl
 
Posts: 37
Joined: Wed Jul 14, 2010 4:28 pm

Re: GPS set up, M142

Postby plohl on Mon Mar 20, 2017 8:01 pm

so i swapped the wires so A21 is now connected to pin2 on the gps.... still a timeout error. Sat the car in the driveway for 10min to see if it sync up.
Will the GPS try reconnecting after the first timeout? I was expecting/hoping to see Wait for GPS fix...
cheers
plohl
plohl
 
Posts: 37
Joined: Wed Jul 14, 2010 4:28 pm

Re: GPS set up, M142

Postby David Ferguson on Tue Mar 21, 2017 2:40 am

Have you set the GPS baud rate correctly? For the GPSL10, it's 38400 -- note that this is set under the RS232 group.

Any chance you really have a GPS L5? You might try setting the baud rate to 19200 just to check.

If you have the flashing LED on the GPS receiver, then it usually has obtained lock and has coordinates. When you are searching for GPS lock, the GPS date & time will be the first fields to populate with reasonable values. That's what I usually look for when connecting to a dash.
David Ferguson
Veracity Racing Data
David Ferguson
Pro User
 
Posts: 1362
Joined: Fri Nov 07, 2008 2:45 am
Location: Paso Robles, California

Re: GPS set up, M142

Postby plohl on Tue Mar 21, 2017 9:44 am

Thanks David.
I checked everything again this morning.
4.97V
GPS rate is 38400
Check the gps and it's serial number, PN 41304, SN 164212685 - model GPS-L10.
None of the GPS values (date, time, etc) populate.
Still getting the LED flash on the GPS.
I didn't have the CAN rate set, so changed that to 0x04. Wasn't it sure if it would make a difference, but it didn't appear too.

I have also posted the question in a tuning group on facebook. Someone there mentioned that a batch of the GPS modules didn't work with the M1's. Can anyone confirm this?
cheers
plohl
plohl
 
Posts: 37
Joined: Wed Jul 14, 2010 4:28 pm

Re: GPS set up, M142

Postby adrian on Tue Mar 21, 2017 1:36 pm

On the bottom of the GPS it will have Locosys and then under that will be a model number. It will be either LS23036 or LS23036-G. Which one do you have?
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

Next

Return to M1 ECUs

Who is online

Users browsing this forum: No registered users and 30 guests