Installation | Operating | Menus | Disclaimers | Getting Java

Norm's GPS Communicator

This downloadable zip file contains a java program that will communicate with a Garmin 12XL GPS (and models: 126, 128, 48, II Plus) and the ICOM GP-270ML GPS via your computer's serial port. It uses the same format files as my Waypoint applet . It's about 260Kb in size.
This program was written to the specifications in Garmin's GARMIN GPS Interface Specification which was downloaded from www.garmin.com/support/commProtocol.html.



Installation instructions

  1. Create the folder: C:\Work\GPSCommunicator\. This is where the programs parts will reside. It is started by a shortcut that is in the zip file.
  2. Unzip the downloaded zip file into C:\Work\GPSCommunicator\. There are 11 files:


  3. Copy win32com.dll to the C:\Windows\ folder. This file must be on your command search path. Please let me know if you already have this file.
     
  4. Modify the GPSDeviceCommunicator.ini file to suit your needs. It contains Name=value pairs that you can set by editting with Notepad or Wordpad. Set Owner= to your name. For example: Owner=George

    Following is a list of the .ini file 'Names' with their default values (comments follow the #):


     

  5. Copy the shortcuts (extension = .LNK) to your desk top. Or they can be clicked on/executed where they were unzipped. These shortcuts can be tailored by right clicking them and selecting Properties and choosing the Shortcut tab and changing the displayed fields: Target or Start In.



Operating instructions

Connect the GPS to its cable (for the Garmin the cable part no. is 010-10141-00) and connect that cable to a serial port on your computer. Be sure the SerialPort= value is set to the port you are using (usually 1 or 2). You can set the serial port with the 'Options|Set COMM port...' menu item. NB: Seems to work best with baud rate=9600.

Start the Garmin GPS. I set it to Simulator mode in the Setup|System menu. Go to the Setup|Interface menu to watch for messages from the GPS. The top line should say GRMN/GRMN and the seond line HOST. If the interaction with the computer gets hung and the GPS hasn't completed its transfer of packets, page up to the Setup menu and return to the Interface menu. Then select the second line down, press enter and change the display until it says HOST and press Enter.

On your computer, click on one of the shortcuts to start the program.

Select the GPS|Open GPS menu item to connect to the GPS. If you get an error message, check all your connections and the contents of the .ini file. Note for Micrologic GPS - Open tries to read WP0503.
If no luck contact me at radder@hotmail.com.

After a successful connection, read the waypoints from the GPS into the computer's memory by selecting the GPS|Read Waypoints from GPS menu item. You'll get a display that contains all the waypoints.

Read all the Routes from the GPS by selecting the GPS|Read Routes from GPS menu item. The routes will be read and saved in memory. You can look at individual routes by selecting the GPS|Display Route... menu item and selecting the route you want.

Edit window for Updating and saving waypoint files

To edit an existing waypoints file (they have extension of .wps) use the File|Open Waypoints file... menu item to open it. After opening, the waypoints will be displayed in an Edit window with a menubar, an input area for the description, a list of the waypoints, some buttons and display areas.
Each waypoint is displayed as a single line without formatting. To make changes, select a line and click the Edit button.
The waypoints can be written in NMEA format by using the File|Set Save As... menu item. The file extension will be set to .NMEA. NMEA format can be read by the CAPN program.

The Edit window buttons:


At the bottom are three more buttons used to compute the course and distance between two waypoints in the list.


The Edit window menu bar items:

To edit a waypoint, select it and press the Edit button. You'll get a new window that formats the waypoint and allows each field to be changed. After making your changes press the Save button to save the changes.

To create a new waypoints file use the GPS Communicator File|New Waypoints file... menu item. Be sure to use the extension wps. You'll be prompted for the filename and a description of the file before being placed in the Waypoints edit window described above. Add your waypoints and press the Save button to save them to disk.


Plotting Waypoints

Press the File|PlotWP menuitem to get the plot window. The scale is set so that all of the waypoints fit. The plot can be zoomed using the Scale menu. The displaying of labels etc is controlled by the View menu.
Course and distances can between waypoints can be measured by clicking on a waypoint and dragging the blue line to another waypoint.
Right clicking on a waypoint will display a menu:

 Menu items:


Writing Waypoints and Routes to your GPS

After reading all the Waypoints and Routes from your GPS, open a Waypoints file from your disk using File|Open Waypoints File....The waypoints will be displayed in an Edit window. If there is more than one Edit window open, be sure to use the File|Select Active window item to select the one to be written.
Select the GPS|Write Waypoints to GPS to write all the waypoints from the active window to the GPS
or select GPS|Write A Route to GPS... which will prompt you for the route number to use when writing the route.

For Garmin you can watch the screen of the GPS to see the progress of the write.

Verifying successful writing of Waypoints to the GPS

On some GPSs there is no feedback that the write of a waypoint was successful. To verify that the waypoints were successfully written, read all the waypoints from the GPS again and verify that the new one(s) are there. If there a several to be checked, an easy way to do the verification is to try to write the original waypoints again as a route. The program will check that all the waypoints are on the GPS and give an error message if any are not there. Before doing the write turn off the Allow Write flag to prevent the route actually being written.

 

Creating a Route to Import into CAPN

  1. Open a .wps file with the GPS Communicator program
  2. Set Save filename with an extension of .NMEA
    This will write out a file with correct format to be imported by CAPN with the exception of the last line's end of line, which must be deleted.
  3. Save - Writes the wps file as a nmea file
  4. Exit GPS Communicator program
  5. Rename the .nmea file with an extension of .txt. Or in CAPN you can set the file open dialog to look for files ending with .nmea by entering: *.nmea.
  6. Open CAPN program
  7. Select "Routes/Marks|Import>|Route from NMEA WPL File"
  8. Follow instructions to import the route from the txt file

In CAPN, to remove a route from the chart display, right click on the route leg and select "Stow Route" from the drop down menu.


Exporting waypoints from CAPN

Waypoints can be exported from the CAPN program to a file in NMEA 0183 format that can be read by the GPS Communicator program.


Menu Items

File:

GPS:

 

Options:

There can be a menu item for a particular GPS:

Micrologic:

GPSU (for GPS Utility files):


Command line options

You can tailor how the program works by adding any of the following options following the -debugXX word in the shortcut. See above. Any options ending with XX are ignored. Removing the XX from -debugXX will produce a lot of output useful for solving a problem.

Both the java and JVIEW commands have a black console in addition to the GPS Communicator window. I use that console to write informational messages that help in solving problems.



Disclaimers

Use this program at your own risk. I don't know of any way it can harm your GPS other than overwriting any existing Waypoints or Routes. The program does several tests before writing to the GPS to be sure that you are not going to overwrite anything. You should save all your waypoints to your computer before trying to write any. By setting the .ini file parameter: AllowUpload=NO the program won't try to write to the GPS.



Getting a Java interpreter

A Java interpreter is a free download from the Sun java site: java.sun.com/products/jdk/1.1/jre/download-jre-windows.html. Look for the Java Runtime Environment (JRE) download. It's over 3Mb of data. Be sure to print off and follow the installation instructions.

A better but larger (5M) version of Java is downloadable from java.sun.com/products/jdk/1.2/jre/.

Last updated 6 May 2004