Cruisers Forum

Join CruisersForum Today

Thread Tools Rate Thread Display Modes
Old 13-03-2014, 17:43   #1
Registered User

Join Date: Feb 2014
Location: Deland, Fl
Boat: Tartan, 4100, 41'
Posts: 4
Garmin GPS on OSX serial route uploads fail on 3.3.1419.

I have a new MacBook Pro running 3.3.1419 that I built using Xcode and wxWidgets 2.9.5. I have 3 Garmins, a 12XL, a GPSmap 76 and a GPSmap 76C. Serial input and output to all three devices fails on this laptop. The read for ACK after writing a command packet gets a NAK packet instead of the ACK. The Garmin spec. mentions that this might happen if the host is slow retrieving the ACK packet, it doesn't mention what happens if the read occurs too quickly. The spec. says that the operation should be retried with the appropriate retry and timeout logic. The GARMINHOST code doesn't check or handle NAKs as far as I can tell. It treats all link level problems as framing errors and gives up.

A quick fix is to insert a 5 millisec delay "usleep(5000)" at the end of GPS_Serial_Write_Packet just before the normal return. This quick hack results in correct position updates and route writes to the Garmin on a serial line. The proper fix is probably handling the NAK packet correctly, something I'll continue to look at.

There's also an issue with the 12XL. It's very old and is one of those Garmins that must be checked for route and waypoint overwrite. The logic is there to read the routes from the GPS checking for duplicates and then writing the new route back. The GARMINHOST logic works for the first 9 routes and then fails. I haven't investigated this further but did notice that the code assumes the unit has 10 routes when in fact the 12XL has 20.
rjlanza is offline   Reply With Quote

garmin, gps, loa, route, serial

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Beta Version 3.3.1419 Released bdbcat OpenCPN 156 30-04-2014 16:10
Garmin Chartplotter uploads from OpenCPN yachtiemaureen OpenCPN 3 03-03-2013 05:43
Garmin Serial Port to USB Cable and Driver bvimatelot Navigation 22 22-11-2010 15:53
Garmin 4208 serial port settings janders Marine Electronics 2 04-05-2010 05:25
EveryTrails and GPS Track Uploads gs41escapade Navigation 0 15-07-2009 07:38

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 15:08.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.