📄 javagps.htm
字号:
<html>
<head>
<title>JavaGPS Readme</title>
<body link=blue vlink=purple>
<h1>JavaGPS Readme</h1>
<p >Copyright (C) 2001 Ulrich Walther <<a
href="mailto:ulrich.walther@codearts.com">ulrich.walther@codearts.com</a>> </p>
<br>
<h2>Introduction</h2>
<p >
The JavaGPS package enables Java applications to talk to
attached GPS devices that conform to the NMEA0183 protocol.</p>
<p >JavaGPS has the following features:</p>
<ul type=disc>
<li >Auto-detection
of attached GPS device</li>
<li >Recording
and playback of GPS data<br>
Supports raw GPS logs and has an optimised log file format. JavaGPS converts
between the two formats on the fly.</li>
<li >VRMI
(WhereAmI) API<br>
Supports trigger callbacks based on time (i.e. every 5 seconds, user does
not move for 60 seconds) or location (i.e. if user enters or leaves a
given region).</li>
<li >Management
GUI<br>
Displays current location in a map, GPS can be set up, log records can be
started or logs can be played back and traced graphically.</li>
</ul>
<p > </p>
<h2>System Requirements </h2>
<ul type=disc>
<li >Operating
System: any that supports Java</li>
<li >Java:
JDK or JRE Version >= 1.2 (<a href="http://java.sun.com/">http://java.sun.com</a>)</li>
<li >Java
Communications API (<a href="http://java.sun.com/products/javacomm/">http://java.sun.com/products/javacomm/</a>)</li>
</ul>
<p >Note: In order to be able to communicate with an attached
GPS over a serial port, the Java Communications API is required. Otherwise, you
can only use the simulation features (or replay logfiles), and you will get the
following warning on stdout:</p>
<p><font face="Courier New"><b>Warning! *** Cannot access GPS</b></font></p>
<p> </p>
<h2>Distribution</h2>
<p >The JavaGPS distribution file contains the following files and
directories:</p>
<table border="0">
<tr>
<td width="33%" bgcolor="#C0C0C0">
<p ><b>File: run.bat (Win32), run.sh (Unix shell script)</b></p>
</td>
<td width="66%" bgcolor="#FFFF00">This file is used to start up the GPS driver and management GUI.
Starts org.iu.gps.MapView</td>
</tr>
<tr>
<td width="33%" bgcolor="#C0C0C0"><b>Folder: gpsdata</b></td>
<td width="66%" bgcolor="#FFFF00">The gps user data files (GPS logs, GPS positions, GPS
configuration files, map images) are stored within this subdirectory. The root
directory must be visible in the CLASSPATH.</td>
</tr>
<tr>
<td width="33%" bgcolor="#C0C0C0"><b>File: javagps.jar</b></td>
<td width="66%" bgcolor="#FFFF00">This Java Archive contains all Java class files necessary to
run JavaGPS.</td>
</tr>
<tr>
<td width="33%" bgcolor="#C0C0C0"><b>Folder: org/iu/gps</b></td>
<td width="66%" bgcolor="#FFFF00">Contains all JavaGPS source files. For detailed information,
look at the JavaDoc documentation available in the javadoc folder.</td>
</tr>
<tr>
<td width="33%" bgcolor="#C0C0C0"><b>Folder: javadoc</b></td>
<td width="66%" bgcolor="#FFFF00">Contains JavaDOC documentation of the
JavaGPS org.iu.gps classes.</td>
</tr>
</table>
<p > </p>
<h2>Running the WhereAmI agent</h2>
<p >Use the run.bat (Win32) or run.sh script to start the JavaGPS
GUI. The GPS driver reads its configuration from the file gps.cfg (in folder
gpsdata), if gps.cfg does not exist, it enumerates all serial devices and tries
to find a GPS device on one of these serial lines. If no GPS device can be
detected, a default gps.cfg will be created and used in subsequent startups. </p>
<p >Then the GUI comes up (note that the initial location is
read from file gpsdata/default.gpspos):</p>
<p > </p>
<p ><img border=0 width=535 height=560
src="./JavaGPS_files/image002.jpg"></p>
<p ></p>
<h3>The GUI has the
following components:</h3>
<p
>- map display area: A bitmap of the current location (if
available) will be displayed, otherwise the map for the current location is
retrieved from the <a href="http://www.shellgeostar.com/">www.shellgeostar.com</a>
site (therefore, it only works with WWW access; otherwise, an error message
will be shown in stdout after timeout of 60 seconds).<br>
If you click within the map area, the user抯 location will be set to the
location you clicked on (Follow GPS must be disabled).<br>
If you want to simulate a movement, do a right-click on the destination location.
The following message box comes up:<br>
<br>
<img border=0 width=370 height=143
src="./JavaGPS_files/image004.jpg"><br>
<br>
To use the currently selected speed (3.0 meters/second in the example), just
click 揝imulate
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -