• RICHARD ERIKSSON
  • FLICKR
  • TWITTER
  • APP.NET

Just a Gwai Lo - fun within prescribed limits

  • home
  • about
  • blog
  • notes
  • photos
  • cherished
  • contact
  • recent
Home

GPS Logger Tomfoolery: Getting the GlobalSat DG-100 Working On a Mac (Successfully!)

January 3, 2008

One of my intentions this year is to track more of my movements and document them in photographic form. One of the downsides of the GlobalSat DG-100 GPS logger is that there is no support, at least not officially, for Mac users to retrieve tracking information, necessitating a trip to Windows and then back to get the photos matched up with the coordinates at which they were taken. Many have tried, and failed, to hack it in, and after spending a couple of hours today, I can now declare myself as part of those who have failed. But I came oh so close.

GlobalSat DG-100 GPS On WestJet

Spurred by Richard Akerman's writeup and screenshots of HoudahGeo for the Mac, and especially his sidebar comment about support for the GPS logger we both own, mixing metaphors like few have mixed before me, I dove into the swamp of programs and yak shaved until the cows came home. Or, rather, until an error message that I couldn't debug appeared on my Terminal screen. Cough. Here are the steps I took to get where I got to before giving up.

First, I downloaded the GPSBabel command line program and graphical interface, but not before spending a few minutes looking at the gpsbabel.org documentation. It's not clear from their downloads page, but you have to click through another link to get through to the SourceForge project page. SourceForge, despite improvements in their interface, is still not easy enough to use, and not easy enough to get a direct download link for a package (which I often need when at the command line using wget). That's another story. After downloading the Mac OS X package, and hopelessly futzing around with the command line supplied for the DG-100, I searched around a bit and found someone who had also tried GPSBabel with the DG-100 and found out that indeed DG-100 support wasn't built into the 1.3.4 release. They suggested checking out the HEAD version from the SourceForge CVS repository. If none of that previous sentence made any sense to you, consider yourself part of the blissful majority.

That of course meant compiling software. And what do you need when you compile software? A compiler! The compiler I needed was gcc, and seemingly the only way to get gcc is to install it from the DVD that comes with your Mac. People like me lose stuff like that. Not yet, in my case, as my DVDs are in a cabinet at my apartment, but having done most of the work at the office, they needed to be at the office. Good thing I work with Mac users.

After a couple of tries at installing gcc (I needed the SDK for Mac OS 10.4), I was able to compile a developmental version of GPSBabel. Somewhere along the line, it occurred to me that I didn't know how to access the USB port via the command line, that is, which argument to use. The command line suggested at gpsbabel.org recommended /dev/ttyUSB0, but there was no such 'device' on my Mac. I came across a forum post about DG-100 support for the Mac, which tipped me off to an open source driver, which has something to do with a Prolific PL-2303X USB-serial adapter on the DG-100. That got me closer.

(We break into regular programming to note that a "Jaako" posting in the forum was able to get the DG-100 working with his PowerBook, but that all the dates of the readings were from the fist day of 1970. Is that the same Jaako that went driving around Taiwan and reported it on Good Fishies, the blog of his and his incomparable girlfriend Cathy Wang's trip to Japan and China? If so, he got closer than I did. Now back to the thrilling conclusion.)

After installing that, and restarting my MacBook (along with the customary baby feline sacrifice), satisfied that my yak had been sufficiently shaved, I modified the command line slightly to look like the following: gpsbabel -t -i dg-100 -o gpx /dev/cu.PL2303-0000103D outputfile.gpx I get the following response: dg100_recv_byte(): read timeout

And that's where I'm left. Looking at the C code that does the work for the DG-100 with PHP-coder eyes, it's not clear what could be changed to make it work. Searching for the error message or the function name only gets me the C code or forum posts I've already looked at. Any ideas?

Time passes and Jaako reports in the comments on how he got the GlobalSat DG-100 working on a Mac. You'll need gcc to compile the C file, in which I've changed 3B1 to 0000103D. The software is GPL, so I distribute it under the same terms. Thanks Jaako for the pointer, and thanks to Mirko Parthey for the original work.

tags: DG-100, GPS, GPSBabel, GlobalSat, HoudahGeo, SourceForge, gcc, geocoding, geolocation, geotagging
Richard's picture

Jaako! Thanks for pointing

Richard — Sun, 2008-01-06 11:45

Jaako! Thanks for pointing that out! The dg100.c file you have to works like a charm (except the annoying part where I had to again manually edit the times to get the right points). The results are at the Flickr set of snowshoeing photos from yesterday. Still a little hacky, since I had to hard code in 0000103D (where you had 3B1), but otherwise this is good. No more trips to Windows to get points from my DG-100!

Jaako's picture

Hey Richard. Yes, it's the

Jaako — Sat, 2008-01-05 09:22

Hey Richard.

Yes, it's the same Jaako!
And I've managed to hack together a pretty reasonable solution for the DG-100 / Mac issue!

I made some tweaks to Mirko Parthey's dg100.c script and got a fully functional command line tool for reading/writing to the DG-100.

I've put it up at Blog-Shmog.com along with instructions, please- let me know if you have any luck.

Cheers,

Jaako

Richard Akerman's picture

Sorry to hear you weren't

Richard Akerman — Fri, 2008-01-04 09:00

Sorry to hear you weren't successful.

You should check with the gpsbabel mailing lists, last I heard from Robert Lipe there is a bug in the Prolific driver. Here's what he said in a November 2007 comment on my Mac-compatibility posting: "the DG-100 support in GPSBabel has exposed a driver defect in the Prolific drivers on Mac. It loses data. A test case has been sent to Globalsat in the hopes they can work with their vendor (Prolific) to get the driver 1.2.1r2 fixed."

Syndicate content

Related photos

  • Spadina Station Streetcar Approaches a TTC employee
  • Elevator Closed For Repairs
  • Be Safe and Considerate
  • 4B3S
  • 4B1S
  • A little farther back, Please!
  • Red Queen
  • Empty Toronto Subway Car
  • Beverley St.
  • Next Train: Finch
  • TTC Subway Door Checker
  • Emergency Alarm - Press for Assistance
  • Thank You for moving back
  • Toronto Streetcar at Trinity College Gate
  • QUEEN QUEEN
  • Queen Station's Green Dot
  • Northbound Southbound
  • 19
  • Canadian Flag at the Toronto Transit Commission Headquarters
  • Mockup of the New TTC Subway Train
  • Textured Floor Section Mockup on the New TTC Subway Train
  • Faded "Ride the Rocket" Sign at TTC Headquarters
  • Davisville Car Yard
  • Davisville Carhouse
  • Davisville Subway Yards
  • TTC Subway Maintenance Vehicle at Davisville Car Yard
  • TTC Headquarters at 1900 Yonge St.
  • East Side of Davisville Station
  • Inner Use Other Door Danger Do Not Touch
  • Spadina
  • TTC Streetcar at Spadina Station
  • Beverley St. / Beverly St.
  • Old Streetcar
  • Old Streetcar
  • Old Streetcar Followed By A Contemporary One
  • Old Streetcar Near College St.
  • Missing Dot at Dundas Subway Station
  • TTC Streetcar and CN Tower From Spadina
  • Mind the Gap in a Toronto Subway Station
  • 510 Street Car Enters Queen's Quay-Ferry Docks Station
  • 510 Streetcar Parked at Union Station in Toronto
  • TTC Cleanup Crew At Union Station
  • Green Dot at Union Subway Station
  • Karen and Me In a Two-Way Mirror on the Toronto Subway
  • West Side of Davisville Station
  • Streetcar Terminus on Queen St.
  • Red Dot at Christie Subway Station in Toronto
  • Fold-up Accessible Chairs in the New TTC Subway Train
  • Fake Davisville Station Sign in the New TTC Subway Train
  • Blinking Lights in the New TTC Subway Train
  • Passageway Between Cars in the New TTC Subway Train
  • TTC Hybrid Bus Near Queen's Park
  • TTC Hybrid Bus Near Queen's Park
  • Stop
  • King Streetcar at Spadina Station
  • Two Go Transit Buses seen from the 192 Rocket
  • Streetcar on Dundas
  • No Entry - Exit Only
  • Sad Red Dot
  • TTC Wheel-Trans
  • Go Transit and TTC Signs at Union Station
  • Trail Near Davisville Station

License

Except for quoted text, Just a Gwai Lo is licensed under a Creative Commons Attribution 2.5 Canada License. A clearly-indicated direct link back to the original article is sufficient attribution. Just a Gwai Lo is powered by Drupal.

  • home
  • about
  • blog
  • notes
  • photos
  • cherished
  • contact
  • recent