Globalsat DG-100 works on a mac.

Globalsat DG-100 Data Logger

A few months ago, Cathy & I bought a Globalsat DG-100 Data Logger straight from the local distributor in Taiwan. I was pretty thrilled with it until I tried hooking it up to my powerbook and learned that Globalsat only wrote their lousy, buggy software for Windows.

An exhaustive web search turned up a few surprise results from friends Boris Mann and Richard Eriksson (neither of whom had luck with the device either) and unfortunately not much else. There was talk of coming support for the DG-100 in GPSBabel, but the "coming soon" tag had been up for months with no results. Update (09/03/08): GPS babel has recently released a new version with DG-100 support!! (skip this hack, and go download the new version!)

Recently I stumbled across a beautiful C script written by Mirko Parthey that had it pretty much figured out. I hacked together my own GPX output function and my DG-100 and my Mac are now very good friends!

GPS track: Takikawa - Tokyo

First, you will need to grab the PL2303 USB to serial driver from sourceforge. Then download (or install from CD) Xcode from Apple.

Once you're done, grab my revised copy of Mirko Parthey's dg100.c which includes several small bug fixes and GPX output mode and you're ready to go. Compile the program with gcc dg100.c -o dg100read and run it from terminal using ./dg100read > myGPSfile.gpx to redirect output to file. To change device functions (read/delete/etc), uncomment the desired lines from the script and recompile.

Its pretty unglamorous, but it's simple, reliable and it works on a mac.



A few things to note:

- Don't fall into the trap of only installing Xcode gcc! you need the header & library files. Install it all!

- The DG-100 mounts on my system as /dev/cu.PL2303-3B1. If this is different for you, cd to /dev/ and find the appropriate device name and stick it in the C script.

- The PL2303 drivers are a little strange. The USB port you have the DG-100 connected to will affect it's device name. "3B1" is the address of my powerbook's right-side USB port. You'll either have to keep using the same USB port, or recompile if you ever need to change ports.

- sometimes port_close() doesn't end the session with the DG-100 properly. If the program stops responding normally, just reboot the DG-100.

19 Comments

Works!

I had to change the 3B1 to 0000103D at the appropriate point in the C file. It kind of sucks that I have to hard code that, but hey, it works! Thanks Jaako!

Great app! Thank you so

Great app! Thank you so much, it worked on my MacBook Pro with a intel processor, the name of the device was now "cu.PL2303-0000101D" (had to be changed in the c file before compilation.) This was the right side USB port.

dg100

thanks !
i'm not used to terminal and driver queries but it worked for me too.
i tried the original dg100.c, wondering why it did not work.
you did a great job
bye

live tracking

I am currently searching for gps tracker/reciever to connect with my MacBook Pro so finding this entry was just what I needed. However, I have one question you might be able to answer. Can I get a real-time signal from this device, or is it only suitable for downloading stored 'tracks'. Reading the product web pages does not answer this question. Also, using the script you suggest, will this allow me to download the KML tracks for the unit?

Sorry to ask you all this, but until I get ahold of a unit I can't test these things out...and I don;t want to buy until I'm sure I can do what I want. Catch22 really.... So any thoughts on your experience would be great.

Thanks

Thanks

Thanks very much. I was working on some cleanups to that code, but never got as far as you. The one bug that's still bothering me is occasional absurd elevation readings -- in the neighborhood of 429490 meters. Seems reasonable to assume it's some kind of underflow, but that's all I have to go on at the moment.

GUI?

any luck you or someone to make a GUI for non-terminal-people? :-)
for now I like better to use it through parallels (I have it just for the DG-100...)

Thanks!

Well. I tell you after much searching around the net, I am so glad to have across your post. I cannot tell how frustrated I was getting.

Add new comment