
                                 GT_DLut Ver1.10

                               Oct. 2014 (C)4river
                         http://homepage2.nifty.com/k8/gps/

Summary.
  Log data is downloaded from GPS of GlobalTop and GNS and NaviSys Technology.
  Support model: PA6C, PA6H, Gms-b6, Gms-g6, Gms-g6a, Gms-g9, GNS 2000, GR-5013

  Operating condition.
    Operational OS: Windows 8(Desktop), Windows 7, Window Vista, Windows XP.


Feature.

  1) Download data is outputted by CSV and a NMEA file.
  2) Download of Log data and upload of EPO data are performed at 115200 bps (Except GNS 2000).
  3) Calling NMEA2KMZ.exe, it can convert to KML and KMZ etc.
  4) It is possible to download it automatically by a command line option.
  5) Because the installation is unnecessary, it is possible to execute it on USB memory.


Install.

  In installation just copies executable file "GT_DLut.exe" in the suitable folder.
  Because registry is not used, it can Un-install with only the deletion of "GT_DLut.exe" 
  and "GT_DLut.ini".


Usage.

 1. Serial Port connection
   In appointing "Com Port" and "Baud Rate" in "Serial Port" screen, it clicks "Open" button.
   When the "Close" button is clicked, the serial port is Close.
   When the port number is an unknown, an effective port is scanned when the "Scan" button
   is clicked, and the port is opened when GPS logger is found.

   Please right-click in the execution file or the short cut and set an "Compatibility mode" 
   to "Windows XP (Service Pack2)" when the port is not found since Windows Vista.


   Display option setting.
     NMEA:     The received NMEA sentence is displayed.
     MTK:      The received MTK sentence is displayed.
     Log data: The received log data are displayed.
     Send Cmd: The command transmitted to GPS is displayed.

   GPS Command
    It returns to a factory setup by the click of the "Factory" button.
    The cold start command is transmitted to GPS when the "Cold" button is clicked, and
    Fix time is displayed.
    The warm start command is transmitted to GPS when the "Warm" button is clicked, and
    Fix time is displayed.
    The hot start command is transmitted to GPS when the "Hot" button is clicked, and
    Fix time is displayed.


 2. Download of GPS log

   The download screen is opened clicking "Log Download".
   The download of the GPS log begins when the "Download" button is clicked.

   The type of the output file is selected beforehand in "CSV" and the "NMEA" check box.
   Because the Save dialog opens when download is completed, the file name is input and the
   "OK" button is clicked (It is possible to preserve it with the "Save Log" button again).
   The extension name is unnecessary in the file name of the Save dialog (It is disregarded 
   even if it specifies it). 

   A check of the "Debug" check box will save a "Debug.txt" and "Debug.bin" file at the same folder 
   as "GT_DLut.exe" (overwritten at every download).

   NMEA2KMZ.exe is called when the "KML/KMZ" button is clicked and the file translation is done.
   The Open dialog opens only first time and specify the folder of NMEA2KMZ.exe, please when
   is in the folder that NMEA2KMZ.exe is different from GT_DLut.exe.
     NMEA2KM: http://homepage2.nifty.com/k8/gps/#003

   When the "Erase Log" button is clicked, all logs of GPS are deleted.

   Option setting
     The output item can be specified in the "CSV option" group box.

     Index:      The data number is output.
     Date+Time:  The date and time are output to "TIME".
     N/S,E/W:    N/S and E/W in the latitude longitude are output by the individual item
                 (Logger Tool compatible).
                 When the check is removed, it becomes easy to process by Excel etc.
                 because it outputs it by the addition of the sign of the positive and
                 negative numerical value.

     Valid by value: The measurement is output by the numerical value.
                      0 : Invalid      1 : SPS fix
                      2 : DGPS fix

     Note) The CSV and NMEA file can be output again by changing the option setting.
           Initial setting is Logger Tool compatible.


 3. Mode setting

   Standby mode
     On : GPS is stopped and it stands by in the low power consumption mode.
          The NMEA transfer rate of GPS is initialized by 9600bps.
     Off: It returns to the normal mode.

   Always locate
     On : The AlwaysLocate mode is turned on. 
          The operation cycle is adjusted by the balance of the position-fix accuracy 
          and power consumption.
          The NMEA transfer rate of GPS is initialized by 9600bps.
     Off: The AlwaysLocate mode is turned off.

   AIC
     Enable : AIC(Active Interference Cancellation) is made effective.
     Disable: AIC is invalidated.

   EASY
     Enable : EASY(Embedded Assist System) is made effective, and TTFF is improved.
     Disable: EASY is invalidated.

   Log interval
     The interval of the log can be specified at the second when the "Set" button is 
     clicked after the numerical value is input.

   Content, Recording method, Auto Log
     Only monitor display.


 4. NMEA output setting

    The NMEA output setting screen is opened clicking "NMEA setting".

    NMEA setting
      When the frequency of the sentence that wants to output is set and the "SET" button is
      clicked, the setting of GPS is updated.
      When a "Default" button is clicked, setting of default is indicated, 
      so when a "SET" button is clicked, setting of a GPS is set as default.

    DGPS source
      No DGPS : DGPS is not used.
      RTCM    : DGPS by RTCM-SC104 is used.
      SBAS    : SBAS(Satellite-Based AugmentationSystem) is used.

    DGPS mode
      Disable : DGPS mode is disable.
      Enable  : DGPS mode is enable.

    Baud change (Invalid at GNS2000)
      The baud rate of a NMEA port can be changed.
      Click a right side drops down button, and it chooses a baud rate.

    The setting of present GPS is read when the "Refresh" button is clicked and the display
    is updated.

    Though the cycle of the sentence can be set by the unit of millisecond in the "Period"
    column, It is assumed 1000mS usually.

    Note) Operation cannot be guaranteed although an output cycle can be set up to 100mS.
          The setting is disregarded according to GPS or there is a possibility of hang-up.


 5. AGPS setting function (Invalid at GNS2000)
    Click a "AGPS setting" button and it opens a setting screen.
    You can get the AGPS data file from an FTP server or a local PC file.
    Get AGPS data when click an "Update" button and transmit a message to GPS receiver.
    Display current AGPS expiration date when click a "Query" button.
    Clear the AGPS information of the GPS receiver when click a "Reset" button.
    When "Save" is checked, the EPO data is saved as a file (The same folder saving ahead 
    as "File name" of "Local File").
    When MTK14.EPO including the data the 14th is preserved, AGPS is made effective for 
    about 14 days with PC of off-line. 
    When the EPO file is dragged, the file name is set in "File name" of "AGPS File".
     Note1) Even if "Auto setting" of Proxy server is checked, correct information might
            not be obtained. 
            In this case, please turn off the check and set the manual operation.


 6. Termination

    "Exit" is clicked.


 7. The command line option.

    /A /D /G /Q in addition to the configuration file can be used.

     /A The log is automatically downloaded.
        The log file name is made at the start time of data.
        The format can be specified in the [FileName] section of the configuration file.
        The save folder can be specified with "SaveFolder" of the [Option] section of the 
        configuration file.
     /D After the log is saved, the log data of GPS is deleted (non-recommendation).
          CAUTION) The log data might be lost by the accident.
     /G The AGPS data is downloaded and updated (Invalid at GNS2000).
     /Q It ends automatically.

     Ex) GT_DLut.exe /A /Q
         GT_DLut.exe Test.ini /A /Q

     Hint) A command line option can also be applied to a shortcut of an executable file.
           A shortcut is right-clicked and a "Property" is chosen, and a command line option
           is added to tail end of the "Target".
           It is convenient to make two or more short cuts according to the purpose.


Configuration file "GT_DLut.ini"

    The options setting when ending is preserved in "GT_DLut.ini" of the same to execution
    file folder.
    Two or more configuration files are preserved and it is possible to select it with
    the command line or the drug & drop.
    When the folder with the configuration file is read-only, it copies onto folder
    %APPDATA%\GT_DLut\ and it uses it.
    %APPDATA% is a folder displayed to input by the DOS prompt as "echo %APPDATA%" <Enter>.
    The drag during serial port opening is prohibited.

  1. [Font] Section
     The font name and the size can be specified.
     Please note excess to the display area according to the font and the size.

  2. [Option] Section
     NMEA2KMZop : The option parameter passed to NMEA2KMZ.exe can be set.
                  The specification of the configuration file can be added.
     MaxSNR :     The maximum scale in the SNR bar chart is specified.
     MemoMaxLine: The maximum number of lines of the NMAE sentence display are specified.
     SearchWait:  Waiting time of port scan ( 0.1 to 3.0 Second ).

  3. [FileName] section.
     The save file name of download is specified.
     To insert an arbitrary character string, it encloses it with "<" and ">".

     UTC_Time:     UTC by 1, Local time by 0.
     Time_fortmat: The format at time of the date is specified.
                   The following, special character is effective.
                   y: Year, m: Month, d: Day, h: Hour, n: miNute, s: Second
                     Ex) yyyy-mm-dd_hh-nn-ss
                         mm-dd-yyyy_hh-nn-ss
                         yyyymmdd_hhnnss
                         <GT_>yyyymmdd_hhnnss
                         <FixdName>

  4. [GPS_Data] Section
     The correspondences of Release Note and the GPS name, etc. can be specified.

     Format
       GPS_ID = GPS_Name, GPS_type, EPO_rec, LogBytes

     GPS_ID
       The third parameter of Release Note ($PMTK705).
       In the case of a null, the first parameter of Release Note is used.

     GPS_Name
       GPS name for display.

     GPS_type
       1 : GNS 2000

     EPO_rec
       Record capacity of AGPS information (4Rec/Day).
       Default is 56 (14 days).

     LogBytes
       Log capacity (number of bytes).


Troubleshooting

  1. The serial port cannot be connected.
     Please connect at 9600 bps or 115200 bps.

  2. When the trouble occurs.
     It may be able to solve, if the following file is sent to the author.
     1) "Degug.txt" that checks "Debug" check box and downloads it.
     2) Data downloaded by utility of GPS attachment.
        Ex) "LOCUS_DataLogger.bin" and "LOCUS_DataLogger.xml" downloaded by "3339Tool".


In compiler used
    CodeGear Delphi 2007 Professional(Delphi for Win32)   Borland Software Corp.

    In addition free component used
      CommX Ver1.06 X(KYY06770) person work. RS232C communication component COMMX106.LZH
      In the writer who the very useful component was offered we appreciate.


Release note.
  * This application is the free software.
  * This application is redistributable, but please distribute it including an execute file and a document.
  * The author takes no responsibility to any losses and obstacles which were produced by use or distribution of this application.


Version history.

 Ver1.10
   1. SaveDialog was changed into the old type in order to prevent a hang-up.

 Ver1.09
   1. The Galileo sentence was supported.

 Ver1.08
   1. When "NMEA setting" panel was selected, the content of the display was updated.

 Ver1.07
   1. GR-5013 of the NaviSys Technology Co. was registered.

 Ver1.06
   1. A new firmware of PA6C was registered.

 Ver1.05
   1. Gms-g6 and Gms-b6 were supported.

 Ver1.04 Dec. 2013
   1. PA6H was supported.
   2. All LOCUS modes were supported (Basic, Racing, Search, Saving, All).

 Ver1.03 Dec. 2013
   1. GNS 2000 was supported.
      The log interval, the NMEA cycle, and the NMEA sentence can be selected with GNS 2000.
      Address of thanks:
        This update was made by the provision of information of Alexander Shishkin.

 Ver1.02 Jul. 2013
   1. When DPI on the display was changed, the layout was maintained (The adjustment of the fontsize is necessary).

 Ver1.01 Jun. 2013
   1. When the bit of Mode was not set, "Time, Distance, and Speed" of "Logger Status" were displayed by zero.
   2. The Erase dialog was closed automatically.

 Ver1.00 Feb. 2013
   1. The name is changed from PA6C_DLut to GT_DLut.
   2. Gms-g6a and Gms-g9 was supported.
   3. It allowed you to change an interval of the log.
   4. The SNR bar graph has been enhanced up to 32 satellites for the GNSS mode.
   5. Searched for the baud rate by the port scan.

 Ver0.13b  Feb. 2012
   1. The false detection of the GPS model when it starts first time has been improved.

 Ver0.12b  Feb. 2012
   1. The status display of AlwaysLocate has been improved.

 Ver0.11b  Feb. 2012
   1. The mistake of the AlwaysLocate command was corrected.

 Ver0.10b  Feb. 2012
