GPS and serial problems

Posted by: DomoKun

GPS and serial problems - 08/06/2003 14:39

I have a Delorme Earthmate GPS receiver and I'm having trouble getting it to work on my empeg with gpsapp. I've added the protocol=earthmate line under [gpsapp] to the config.ini file. It just sits at the "waiting for signal" screen forever. I bought a male to male straight thru cable from radio shack along with a null modem adapter (which i believe makes it crossover?) I am also unable to get my laptop connected by serial in car with hyperterminal (after forcing AC mode with hijack)

On AC power I can connect my laptop via hyperterminal without any problems. I tried getting the gps receiver working on AC power by forcing DC Mode with hijack but it doesn't work that way either. The gps receiver works fine with my laptop just doesn't seem to want to work with the empeg. Does anyone know what I could be doing wrong or have any suggestions?
Posted by: tfabris

Re: GPS and serial problems - 08/06/2003 17:45

1. Have you tried it both with and without that null modem adapter?

2. Are you plugging the earthmate directly into the player's serial port, or are you using a docking sled? Remember that those two methods are opposite in terms of crossover. depending on the earthmate's wiring, you'd need the straight-through cable for one of them, and the null adapter for the other.

3. If you're using a docking sled, have you ensured that you're using only pins 2, 3, and 5 on the serial connector, and that the other pins are disconnected?

4. How is the earthmate getting its power?
Posted by: DomoKun

Re: GPS and serial problems - 08/06/2003 19:24

1. Have you tried it both with and without that null modem adapter?
Yes, I tried both combinations.
2. Are you plugging the earthmate directly into the player's serial port, or are you using a docking sled? Remember that those two methods are opposite in terms of crossover. depending on the earthmate's wiring, you'd need the straight-through cable for one of them, and the null adapter for the other.
I'm using the serial port on the docking sled.
3. If you're using a docking sled, have you ensured that you're using only pins 2, 3, and 5 on the serial connector, and that the other pins are disconnected?
No, all pins are connected, should I rip out the other pins from my serial cable?
4. How is the earthmate getting its power?
Currently on 4 AAA batteries, I'll get a more permanent source of power once everything is working.
Posted by: tfabris

Re: GPS and serial problems - 08/06/2003 21:49

No, all pins are connected,
That's likely to be the problem. Click here.

should I rip out the other pins from my serial cable?
You could do that, yes. But if you want your docking connector to remain "pristine" for a resale in the future, then you should make a custom cable and/or connector that uses only pins 2, 3, and 5. This will also allow you to experiment with the TX and RX lines so you can get the connection right without an extra null-modem adapter.
Posted by: tfabris

Re: GPS and serial problems - 08/06/2003 21:52

It just sits at the "waiting for signal" screen forever.
Hang on a second.

What is the EXACT TEXT of that screen?

If it's something like "Waiting for data from satellite receiver", then it's a problem with the serial cable like we've been working on. But if gets past that screen up to the "Searching for satellites" screen (without you pressing any buttons), then it's communicating with the earthmate just fine and the problem lies elsewhere. So which is it?
Posted by: DomoKun

Re: GPS and serial problems - 08/06/2003 22:34

Sorry, the text is indeed "Waiting for data from satellite receiver" I was just writing from memory before. I'll try modifying my serial cable (not on the docking sled, just an extension cable) by removing those pins and I'll see what happens. Thanks for the help and I'll let you know tommorow if it worked.
Posted by: DomoKun

Re: GPS and serial problems - 09/06/2003 11:55

Ok, I removed all unnecessary pins from my serial cable. The player is now able to communicate with my laptop while in car (with force AC), so thats a step forward. But it still won't work with my earthmate gps receiver. It just sits there at that screen. I have tried it with and without the null modem adapter. Any other suggestions?
Posted by: tfabris

Re: GPS and serial problems - 09/06/2003 12:00

Let's see your config.ini?
Posted by: DomoKun

Re: GPS and serial problems - 09/06/2003 12:08

[Options]
Name=empegcar
[User Info]
Email=*
Phone=*
Name=Robert Medeksza
[Network]
Gateway=192.168.1.1
Netmask=255.255.255.0
IPAddress=192.168.1.99
DHCP=0
[sense]
muteaction=0
mute=-1
[power]
off_timeout=60000
[display]
visual_names=1
caching=0
[synchronise]
seq_num=92
[wendy]
flag_amount=0
[custom]
wendy=
[searches]
amount=0
[VisualFavourites_AM]
count=0
[VisualFavourites_AUX]
count=0
[VisualFavourites_DSP]
count=0
[VisualFavourites_FM]
count=0
[hush]
hushpercent=40
[volumecap]
enabled=1
[kenwood]
disabled=0
[ramp]
disabled=0
[menu]
quit=1
sort_playlist=1
[controls]
stalk_side=none
[tuner]
region=us
[aux]
source=
title=
artist=
[serial]
car_rate=115200
[gpsapp]
protocol=earthmate
visual=sats
metric=false
gpscoords=true
coord_format=DMS
track=true
scale=true
popups=true
time=true
coldstart=true
[hijack]
disable_bassboost_FM=1
volume_boost_FM=-2
volume_boost_AM=-6
volume_boost_AUX=4
;@EXEC_ONCE /drive0/var/ttsclock -t-5
;@DC ;@EXEC_ONCE /drive0/var/gpsapp/gpsapp
;@EXEC_ONCE /drive0/var/empacman
;@EXEC_ONCE /drive0/var/emptriv/emptriv
Posted by: DomoKun

Re: GPS and serial problems - 09/06/2003 12:10

I was playing with the

[serial]
car_rate=115200

setting today. I didn't have it at all before, I tried setting it to 9600, and 115200 as it is now. No combination of that did anything.
Posted by: tfabris

Re: GPS and serial problems - 09/06/2003 12:20

Well, it's supposed to be 4800 in the car (which is the default), and most GPS units work at 4800. Perhaps try that.

Another thing to try is to remove everything under [GPSapp] in config.ini and see if it works at the default settings.
Posted by: tfabris

Re: GPS and serial problems - 09/06/2003 12:22

Oh, and if the time hasn't expired, you might want to edit your post and remove the personal information contained in the config.ini.
Posted by: DomoKun

Re: GPS and serial problems - 09/06/2003 12:45

Tried it, still nothing. I believe Earthmate runs at 9600 as I connected to it with my laptop in hyperterminal at 9600-8-n-1 and it kept repeating the text "EARTHA" over and over.
Posted by: oliver

Re: GPS and serial problems - 09/06/2003 13:14

This may be of some help to you. It wasn't to me, but i think my earthmate is busted
Posted by: tfabris

Re: GPS and serial problems - 09/06/2003 13:25

Try this:

- Set car_rate to 9600
- remove all lines under [GPSapp] except protocol=earthmate
- Add a line under [GPSapp] to point to your routes directory such as routedir=/programs0/routes and make sure that directory exists.

Then try deliberately swapping pins 2 and 3 on the serial connector to see if you get any luck that way. (I never trust 3rd party adapters )
Posted by: tfabris

Re: GPS and serial problems - 09/06/2003 13:30

Oh... DUH... I forgot the most important thing!!!!

Are you running the latest hijack? If you are, there's a setting you need to select in its main menu. The setting is only visible when the player is in car mode. He added it in a recent version. I forget its exact name, but it controls whether or not to launch the player app with -s- so that the player doesn't grab the serial port.

If that's what it turns out to be, I will point Mark to this thread as proof that he should have had that option default to the no-serial behavior.
Posted by: DomoKun

Re: GPS and serial problems - 09/06/2003 13:37

I'll try all your suggestions in a little bit and then get back to you.

The page Oliver links to mentions that the earthmate uses pins 4 and 9 for something, which I have removed. What does "PC DTR" (pin 4) or "RING" (pin 9) mean and are they needed for this to work?

I am currently running hijack 334, which looking through its history didn't change the serial port options yet. I'll upgrade to the latest version and set the menu entry just in case though.
Posted by: tfabris

Re: GPS and serial problems - 09/06/2003 13:47

What does "PC DTR" (pin 4) or "RING" (pin 9) mean and are they needed for this to work?
RS232 Pin Assignments (DB9 PC signal set)

Pin 1 Received Line Signal Detector (Data Carrier Detect)
Pin 2 Received Data
Pin 3 Transmit Data
Pin 4 Data Terminal Ready
Pin 5 Signal Ground
Pin 6 Data Set Ready
Pin 7 Request To Send
Pin 8 Clear To Send
Pin 9 Ring Indicator

Of these, the empeg only makes proper use of 2, 3, and 5. Connecting the others will confuse whatever device you're connected to.
Posted by: DomoKun

Re: GPS and serial problems - 10/06/2003 11:59

I tried everything you suggested and it didn't work. However, I came up with a test of my own and I know why it doesn't work. I created a serial cable of my own that only used pins 2, 3, and 5 and used that cable to connect my laptop to the Earthmate GPS receiver. It did not work. But when I added pins 4 and 9 to the serial cable, the GPS worked with my laptop.

But since the empeg uses those pins for something else, how can I rig something up to send whatever signal the gps needs on those pins?

I am currently running the GPS receiver off of batteries. The page oliver linked to mentions that these pins can somehow be used to power the unit instead of the batteries. Maybe if I power these pins instead of using the battery it will work the empeg? But I am not sure of how to hook it up that way. I assume it wants 6 volts since it uses 4 AAA batteries. But what pin do I connect the negative lead to and what pin the positive? I have a universal car power adapter that is no longer in use, and it can make a 6 volt charge. Does the ignition sense wire that is connected to the empeg carry 12 volts? Can I splice into that with the car adapter so that it only powers the adapter when the car is on?
Posted by: wfaulk

Re: GPS and serial problems - 10/06/2003 12:08

9 is effectively unused these days (ring indicator), so it must be pin 4 (DTR) that did it, which could make sense. Of course, it might just be the computer that needed pin 4 and not the GPS. Regardless, try connecting pins 1 and 4 on the GPS together and see if that works.
Posted by: DomoKun

Re: GPS and serial problems - 10/06/2003 12:22

It is pin 4. Disconnecting pin 9 made no difference, but after disconnecting pin 4 it did not work. Pin 1 made no difference. I am also pretty sure that is not the laptop that needs pin 4 as I can connect my laptop to the empeg using just pins 2, 3, and 5 with no problems.
Posted by: DomoKun

Re: GPS and serial problems - 10/06/2003 12:27

From http://www.qsl.net/ka9mva/earthmate.htm
When DTR is not asserted, RING goes to 6V. When the unit is powered up (DTR high), RING goes to near 0. This is a powerup indicator.
[Lumpy from digitalcartography.com told me you can power the Earthmate from pin9. Yahoo!]

The GPS TX line is true RS232C, in the sense that it swings between -5V and 5V.

The Earthmate is powered by four AAA batteries, nominally 6VDC. My unit only pulls 85 mA at 6.0VDC. This is extremely low, and can be supplied from a 78L06 regulator easily.

When my unit is powered down (DTR=0), it pulls around 125 uA (yes, that's microamperes).

I think this means that I can send 6 volts to pin 9 (negative I assume) instead of using the battery? But which pin to I connect the positive wire to, pin 4?
Posted by: tfabris

Re: GPS and serial problems - 10/06/2003 13:02

Pin 1 made no difference.
You may not have understood what he was saying. He wasn't saying "hook up pin 1, and also hook up pin 4", he was saying "hook pins 1 and 4 together to each other". He said this in hopes of faking out the DTR line (pulling it high, I think). Try that.
Posted by: DomoKun

Re: GPS and serial problems - 10/06/2003 13:13

Oh I see, I misunderstood. However, I tried that right now and it didn't work. According to that page the GPS only uses pins 2,3,4,5, and 9 so pin 1 is probably not sending anything.
Posted by: wfaulk

Re: GPS and serial problems - 10/06/2003 13:25

Nuts.

Okay, quick RS232 lesson. Data Terminal Ready is a signal that the terminal (in this case, the computer or the empeg) sends to the Set (in this case, the GPS) that it's ready to receive data. Your GPS isn't seeing it turned on, so it's not sending anything. Surprising, really, that it would do that. Most such things send regardless.

Tying it to Carrier Detect is a common cheat, as it's basically always on. Except in your case. And you have no other signals always on. You'll probably have to cheat it in there somehow.

When you attach it to your computer, you use a straight-through, right? If so, you should be able to use the same cable with the empeg. (Someone correct me if I'm thinking backwards, but since we use a null-modem to connect the computer and the empeg, then the empeg is a Terminal just like the computer, right?) And the empeg ought to set DTR.

Weird. I'm confused.
Posted by: DomoKun

Re: GPS and serial problems - 10/06/2003 14:04

Yes, it is straight-thru. So the empeg doesn't have anything like DTR on any of its pins?

I'm guessing that the reason it does this is because it is battery powered and it uses this DTR thing as an on/off switch to conserve battery when not in use.
Posted by: wfaulk

Re: GPS and serial problems - 10/06/2003 14:07

So the empeg doesn't have anything like DTR on any of its pins?
It ought to, but I don't know for sure. Can someone help out here? I don't have a breakout box handy.
Posted by: tfabris

Re: GPS and serial problems - 10/06/2003 14:55

Silly question, DomoKum... With all the things we've been trying (such as tying DTR to pin 1), in each instance, did you try it with pins 2/3 both straight and swapped? Or did you assume that you had the correct crossover for each experiment, and tried it only with the pins straight?

Everything you've tried, should have been tried twice, once with each of the two possible configurations of pins 2 and 3.
Posted by: DomoKun

Re: GPS and serial problems - 10/06/2003 15:29

Well, these last few DTR experiments I've been doing with my laptop and the GPS, not with the empeg. I have only been doing straight through since I know the GPS works with the laptop with pins 2,3,4, and 5 but does not work with the laptop when 4 is detached. I just assume that if I can get the laptop working with the GPS with only pins 2,3,5 only then can I try it with the empeg.

But just in case, I just tried the pin 1 and 4 experiment with the empeg with both crossover and straight-thru with no luck.
Posted by: oliver

Re: GPS and serial problems - 10/06/2003 17:03

This is the exact reason why i gave up on my earthmate. Plus the guy that gave it to me had 4 batteries that had leaked acid on the board. I cleaned up the board as good as i could, but i think the unit is completely dead. I tried it with my computer once, but i didn't have any software, so i couldn't really test it. Plus by that time, i had already sourced another gps unit that worked perfectly. I still have the earthmate, its in my glovebox i think. If you can get to the bottom of these issues, I would love to give my earthmate another try, or if maybe someone has a link to some free gps software I could test it with on my pc, that would also get great
Posted by: DomoKun

Re: GPS and serial problems - 10/06/2003 17:29

You could try communicating with it in hyper terminal just to see if it works. Set hyper terminal to 9600 baud, 8 bits, no parity, 1 stop bit, no flow control. It should say "EARTHA" over and over. If you type "EARTHA" and press enter it will start spewing binary data.
Posted by: oliver

Re: GPS and serial problems - 10/06/2003 17:33

I guess, sometimes i don't think that much, because connecting with hyperterm never crossed my mind
Posted by: wfaulk

Re: GPS and serial problems - 10/06/2003 19:07

9600 baud
If that's the case, I'd imagine that you'd need to set the empeg to run at that speed, too. (It's possible it could negotiate to a different speed, but you know it works, at least to some extent, at 9600.)
Posted by: DomoKun

Re: GPS and serial problems - 10/06/2003 19:31

In the config.ini I have car_rate set to 9600 and I browsed through the gpsapp source code and see that it opens the serial port at 9600 baud when protocol=earthmate is in the config.ini which I also have set.

I'm not too much of an electronics person, but can I simply apply a 6v voltage from a 3rd source to pin 4 and add another wire to pin 5 for ground? Is that dangerours to the gps receiver or the empeg in any way if i try that?

According to http://www.qsl.net/ka9mva/earthmate.htm it says I can power the unit from pin 9 with 6 volts. Is it safe to try to send 6 volts there? The page doesn't say where I should ground it, should that be grounded to pin 5 as well if I do that? Maybe if the unit is power from pin 9 instead of batteries it won't require the DTR signal.
Posted by: DomoKun

Re: GPS and serial problems - 11/06/2003 11:29

Ok, I rigged up my serial cable as illustrated in the attached picture. I no longer need batteries to power the gps unit and this setup works perfectly with my laptop. But it still won't work with gpsapp. And I tried switching pins 2 and 3 just in case, but I think I don't need to because of how I connect my laptop to the empeg.

So I think I got the hardware part of this problem solved and now it is some software problem. I'll try going through all the software suggestions in this thread again to see if it makes a difference.
Posted by: tfabris

Re: GPS and serial problems - 11/06/2003 11:44

Silly question, did you try just connecting pin 9 straight-through to the GPS and seeing if it would power the unit without the batteries (i.e., foregoing the transformer)? Based on the quote you posted about pin 9 earlier in this thread.

I know that's not useful for the empeg connection (since empeg doesn't use pin 9), but I was wondering if it worked for the laptop connection.
Posted by: DomoKun

Re: GPS and serial problems - 11/06/2003 11:59

I'm not sure if I totally understand your question. But I just tried the following tests between my laptop and the gps:
Pins 2,3,5,9 straight-thru, no batteries: doesn't work
Pins 2,3,4,5,9 straight-thru, no batteries: doesn't work
Pins 2,3,5,9 straight-thru, with batteries: doesn't work
Pins 2,3,4,5,9 straight-thru, with batteries: works
Pins 2,3,4,5 straight-thru, with batteries: works
Pins 2,3,5 straight-thru, 6v to pin 4 with batteries: works
Pins 2,3,5 straight-thru, 6v to pin 4 no batteries: doesn't work
Pins 2,3,5 straight-thru, 6v to pin 9 with no batteries: doesn't work
Pins 2,3,5 straight-thru, 6v to pin 4 and 6v to pin 9 with no batteries: works



Posted by: tfabris

Re: GPS and serial problems - 11/06/2003 12:46

Wow, that's a useful chart.

It's telling us that yes, for sure, the earthmate needs DTR high to work.

But you're saying that the 6v adapter setup that works for your laptop doesn't work with the empeg. Interesting. Assuming the connection to the empeg is a good connection, then you're right, it's down to software issues.

And you're sure you can communicate with the empeg at all? For instance, laptop connected to empeg via Hyperterminal at 9600bps works? (i.e., are we sure the serial port on the empeg sled is working and at the correct speed?)
Posted by: DomoKun

Re: GPS and serial problems - 11/06/2003 12:48

I've tried doing a lot of config changes and I still can't get it to work. I tried to do a little test though. When the earthmate has power and DTR is on, it starts sending "EARTHA" and a linefeed over and over. It expects the computer or empeg to respond with "EARTHA" and a return after which it will start giving binary data. Browsing through the gpsapp source code it should be doing exactly that.

So I thought I would do a little test and connect hyper terminal to gpsapp and just type "EARTHA" and see if it would respond with "EARTHA", but nothing happens. It sits there at the "waiting for data from gps receiver" screen and responds nothing to hyper terminal. What could this mean?
Posted by: tfabris

Re: GPS and serial problems - 11/06/2003 12:52

So I thought I would do a little test and connect hyper terminal to gpsapp and just type "EARTHA" and see if it would respond with "EARTHA", but nothing happens.
Great test! Good idea.

Are you sure that the serial connection to the player is working? Can you "Q" to a shell prompt, for example?

What could this mean?
It means that either GPSapp isn't seeing the EARTHA (i.e., serial problems either software or hardware or cabling), or that there's a bug in GPSapp that's preventing it from responding. You sure the GPSapp binary is the most recent one?
Posted by: DomoKun

Re: GPS and serial problems - 11/06/2003 12:56

Are you sure that the serial connection to the player is working? Can you "Q" to a shell prompt, for example?
I've been always forcing AC mode to connect my laptop to the empeg, and that works fine. In car mode, I can't Q to a shell prompt, but I think that is by design since the player is started with -s- in car.
Posted by: DomoKun

Re: GPS and serial problems - 11/06/2003 12:57

I have gpsapp-0.17, is that the newest one?
Posted by: tfabris

Re: GPS and serial problems - 11/06/2003 12:58

In car mode, I can't Q to a shell prompt, but I think that is by design since the player is started with -s- in car.
Since that's optional in the latest hijack, try turning that off and seeing if you can get a 9600bps shell. Remember you have to reboot the player after changing that hijack setting.
Posted by: tfabris

Re: GPS and serial problems - 11/06/2003 13:00

I have gpsapp-0.17, is that the newest one?
Yeah. I'm assuming you have a way to check the binary on the player to be sure... I don't remember an "about" screen in GPSapp (my apologies if I'm wrong about that).
Posted by: jaharkes

Re: GPS and serial problems - 11/06/2003 13:20

Wow, long thread. I just skimmed through it, so I probably missed half of it.
A couple of notes. gpsapp sets the baudrate on the serial port when it opens it during startup (nmea & earthmate use 4800, trimble tsip uses 9600 etc.)

I've had trouble myself with having the [gpsapp] section in config.ini. Just try to pass the protocol on the command line, i.e. start it as 'gpsapp earthmate'.

Finally, the serial connector on my sled turned out to be not entirely swapped, things worked with a null-modem adapter when the cable only passed RX,TX and ground, but didn't work right with a full cable. In fact it looks like only RX and TX are swapped, but the rest (RTS/CTS/DTR/DCD) are in a straight through configuration. So the best thing to try would be a straight through cable with only RX and TX swapped.

You can derive power from one of the serial pins, I forgot which but it is in the faq somewhere. But you can't just plug a 12v->6v transformer in the middle because it is a DC current, and the transformer needs alternating current to work. I used a PT-5101A, which is a switching regulator that turns 9-38V into a stabilized 5V without turning half of the drained energy into heat. However this part is pretty expensive and the 6V one even more so ($15), so you'd probably want to go for a simple 7806 regulator.

Also your picture was strange, why was (+) connected to the GND, and the (-) to the DTR pin on the gps?
Posted by: wfaulk

Re: GPS and serial problems - 11/06/2003 13:32

Which serial connector are you attaching the Earthmate to, DomoKun? The one on the sled or the one on the back of the empeg itself? The sled one is wired funny, as I remember.
Posted by: DomoKun

Re: GPS and serial problems - 11/06/2003 13:54

Since that's optional in the latest hijack, try turning that off and seeing if you can get a 9600bps shell. Remember you have to reboot the player after changing that hijack setting.
In the config.ini I have car_rate=9600 set, I set hijack to give the player control of the serial. This is in car thru the sled, no mode forced hijack. I have my laptop connected and hyper terminal set to 9600 baud. I press q and exits the player as expected. Hijack says it removed some menu entries and then i get a bunch of gibberish and it no longer accepts keyboard input. This gibberish is probably the empeg switching to 115200 baud, because if I reconnect at 115200 baud I am in the shell. Is this the expected behavior?

I've had trouble myself with having the [gpsapp] section in config.ini. Just try to pass the protocol on the command line, i.e. start it as 'gpsapp earthmate'.
I tried that, still doesn't work.

You can derive power from one of the serial pins, I forgot which but it is in the faq somewhere. But you can't just plug a 12v->6v transformer in the middle because it is a DC current, and the transformer needs alternating current to work.
I'm probably just using the wrong terminology. I think maybe I should call it a "voltage converter" not a "transformer" that I'm using. Its basically an old cigarrete lighter adapter for a cd player that I took apart and connected to the ignition and to pin 9 of the gps. Whatever it is, it converts the cars 12v DC to 6v DC 500mA.

Also your picture was strange, why was (+) connected to the GND, and the (-) to the DTR pin on the gps?
Probably me just not knowing how to properly label things. I always thought that power was labeled as a negative - and flowed to the ground which was positive +, like on a battery? But the way I have the power connected works well with my laptop, so I think everything is right.

Which serial connector are you attaching the Earthmate to, DomoKun? The one on the sled or the one on the back of the empeg itself? The sled one is wired funny, as I remember
I'm using the car's sled. I only have pins 2,3,5 connected to the sled, and it works with my laptop, so I'm pretty sure it should work with the gps.
Posted by: jaharkes

Re: GPS and serial problems - 11/06/2003 14:05

n the config.ini I have car_rate=9600 set, I set hijack to give the player control of the serial. This is in car thru the sled, no mode forced hijack. I have my laptop connected and hyper terminal set to 9600 baud. I press q and exits the player as expected. Hijack says it removed some menu entries and then i get a bunch of gibberish and it no longer accepts keyboard input. This gibberish is probably the empeg switching to 115200 baud, because if I reconnect at 115200 baud I am in the shell. Is this the expected behavior?

No that it not the expected behaviour, in fact it seems to be behaving as if it is in AC mode. How does it behave when you force the player to DC mode with hijack?
Posted by: tfabris

Re: GPS and serial problems - 11/06/2003 14:20

gpsapp sets the baudrate on the serial port when it opens it during startup (nmea & earthmate use 4800, trimble tsip uses 9600 etc.)
Aha, that's it then. His earthmate needs 9600, not 4800.

Right?

Maybe just break out the serial port speed for GPSapp into a separate config.ini entry?
Posted by: tfabris

Re: GPS and serial problems - 11/06/2003 14:21

Its basically an old cigarrete lighter adapter for a cd player that I took apart and connected to the ignition and to pin 9 of the gps.
And if I recall correctly, those cig adapters just use a bunch of diodes in series to drop the voltage. Cheesy way to do it, but works.:)
Posted by: jaharkes

Re: GPS and serial problems - 11/06/2003 14:33

My memory is failing, the source actually has,

REGISTER_PROTOCOL("EARTHMATE", 9600, 'N', NULL, NULL, em_update);

So gpsapp is setting the right baudrate for earthmate.
Posted by: DomoKun

Re: GPS and serial problems - 11/06/2003 15:15

No that it not the expected behaviour, in fact it seems to be behaving as if it is in AC mode. How does it behave when you force the player to DC mode with hijack?
Same behavior. The empeg boots and gives it bootup messages at 115200, once the player starts it goes down to 9600, once i hit q and press enter it goes back to 115200 at the shell.