This is a description of the XML format used to save GPS device preferences. The format is an extension of early work done by George Wang on the desktop with additions to support needs by the AGTEK Android technology platform (AGTEK_Lib/Location Manager). Typically the items stored in these preferences are parameters used by applications to initialize GPS devices. These parameters are those values which seldom change and are specific to a device. This file also contains information about the last used device, allowing applications to automatically choose the correct device upon startup.
The structure needs to accommodate the following:
The following example illustrates a simple device preference file.
<?xml version = "1.0" ?> <CONFIG_INFO> <Application name="SmartDirt"> <Last_Device>00:10:C6:2F:07</Last_Device> </Application> <Application name="CoolApp7"> <Last_Device>00:03:7A:69:43:4C</Last_Device> </Application> <TOPCON id="00:10:C6:2F:07" name="Loaner263-0991"> <!-- 0. Static setting parameters --> <ELEVATION_MASK>13</ELEVATION_MASK> <!-- 1. PPP(Internet) connection parameters --> <GPRS> <DIAL>*99***1#</GPRS_DIAL> <USER>ISPDA@CINGULAR.COM</GPRS_USER> <PASSWORD>CINGULAR1</GPRS_PASSWORD> <MODEM>tps</GPRS_MODEM> <PIN>0000</GPRS_PIN> <APN>isp.cingular</GPRS_APN> </GPRS> <!-- 2. NTRIP caster (server) parameters --> <!-- Port: dev/ser/<x> or dev/tcp/<x>, <x>=a,b,c, or d --> <NTRIP> <DATA_PORT>dev/tcp/a</NTRIP_DATA_PORT> <ADDRESS>12.107.178.211</NTRIP_ADDRESS> <PORT>8008</NTRIP_PORT> <USER>EricI</NTRIP_USER> <PASSWORD>EricI</NTRIP_PASSWORD> <!-- 3. Mount Point or ref station, i.e. 8008_RTCM,.. --> <MOUNTPOINT>NETWORK_RTK_CMR+_GG</NTRIP_MOUNTPOINT> <!-- 4. Period to send NMEA in seconds --> <NMEA_PERIOD>10</NTRIP_NMEA_PERIOD> </NTRIP> <!-- 5. cmd|echo|rtcm|rtcm3|cmr|jps|omni|dtp|term|none --> <!-- NB: This parameter is also applied to base stations for sending. --> <correction> <mode>cmr<mode> </correction> </TOPCON> </CONFIG_INFO>
The following device types are recognized by this format. Device types match those values used in the GPX Extensions spec.
Valid provider names are:
Each entry for a device is tagged by the type of the device. In the example shown earlier, the only device is a TOPCON device. A device entry must contain the type tag and “id” attribute. The id is required, and must be unique within the file and associated with the device. For Bluetooth devices the id must be Bluetooth mac address. The name is optional, and may be supplied from a variety of sources, but is intended to be used for UI presentation to the user. The name, in most cases, comes from a human. If the name is not present, the application should compose a reasonable name dynamically.
An example of a device listing tag for the Topcon looks like:
<TOPCON id="00:10:C6:2F:07" name="Loaner263-0991">
Here the unique id and name are evident.
Device specific parameters are enclosed between <TYPE> and </TYPE> tags. In this example they are enclosed by <TOPCON> and </TOPCON>. Some devices may have no parameters at all and they would have an empty list between the tags (e.g. “Built-in”).
Each of the following exception lists the device parameters, if any.
Reference “GRIL Reference Manual”, December 2009, Topcon
The basic Topcon device has no additional parameters.
Reference “GRIL Reference Manual”, December 2009, Topcon
NB: (mja) I've not analyzed these parameters yet to bring them into compliance with Topcon
Reference NMEA 0183 standard.
This device type has no additional parameters.
There are no additional parameters for this device type.
This represents a GPX read which will provide location updates in lieu of an actual RTK device. See format for more information on the structure of the GPX files. The file parameter is a path to the file and is saved so the user can select this device without needed to specify a file again. A configuration file may contain more than one Playback device but it is common to see no more than one.
NB: Open question: Path is relative to a specific application directory. May be platform dependent, so it's reasonable to assume than an application may strip this entry from configuration when downloading, or at least be able to default to reasonable behavior when the path is not resolvable.
The application tag allows each application to save the last known device. The Application tag has one required attribuite, “name”, which is the applications unique name.
The only tag currently supported is:
Changes between the previous XML examples and this spec:
<GPRS> <USER>blagh</USER> </GPRS>
Other GPRS parameters are also in the GPRS block. Similar for NTRIP.