gps feed manual

4
Download gpsfeed+ THE REASON THE APPLICATION gpsfeed+ is a utility that feeds the PC with continuous GPS data as if a GPS were moving in a car or airplane. NMEA 0183 GPS sentences are sent to the application through a socket (TCP/IP) connection or a UDP multicast message. It also outputs the same NMEA data to a serial port of the PC. Polling applications can query the embedded lightweight http server to obtain gps data either in text form or as an XML data snippet. The IP connection offers significant advantages over a serial port connection: DISCLAIMER Coordinates, altitude and other GPS data output by gpsfeed+ are fake and might well be inconsistent. Similarly, although satellite signal reception data are shown in the output, these are not based on any GPS satellite orbit calculations or anything like that. LICENSE FEATURES gpsfeed+ offers the following functionality: AUTOZOOM Testing GPS applications requires a gps receiver and an antenna in a position to receive the satellite signals. This, however, is rarely the case when doing software testing at a computer's keyboard. This is where gpsfeed+ can be of help. many applications can connect to one single gps simultaneously remote gps' can be monitored Serial ports can be freed for other uses. In most cases, the only readily available and simple I/O interface is the RS232 connector. and, of course, testing can be done indoors, without any GPS hardware or cabling gpsfeed+ is in development. Please submit bug reports through the SourceForge bug tracking facilities. The GPS data provided by gpsfeed+ are calculated by very simple mathematical formulas and the results are just presented in the NMEA 0183 sentence format, so use the program on your own risk. If by examining the code you feel that you can add a feature you like or you can make it function better, then you are free to do so. Contributing your code will help improve gpsfeed+. gpsfeed+ is free software, written in tcl. It is provided in source code, under the GPL license. Linux and Windows binaries are also provided for the x86 architecture. IP output (TCP and UDP) Lightweight http server for web queries Serial port output Serial -to-IP forwarding $GPGGA, $GPRMC, $GPGSV and user defined NMEA 0183 sentences User defined XML replies to web queries Playback of captured NMEA sentence file. Output monitor "No signal" output, when paused Three different simulation track shapes Variable output period "Skip" mode for controlling speed Experimental autozoom mode for detailed viewing of slow movements Configurable onscreen data display Configurable colors Compact mode Many gpsfeed+ instances can run on different ports, simulating a fleet of GPSs gpsfeed+ http://gpsfeed.sourceforge.net/ 1 of 4 01/31/2012 11:43 AM

Upload: shyam-yadav

Post on 08-Apr-2016

178 views

Category:

Documents


5 download

DESCRIPTION

gps feed

TRANSCRIPT

Page 1: Gps Feed Manual

Download gpsfeed+

THE REASON

THE APPLICATION

gpsfeed+ is a utility that feeds the PC with continuous GPS data as if a GPS were moving in a caror airplane. NMEA 0183 GPS sentences are sent to the application through a socket (TCP/IP)connection or a UDP multicast message. It also outputs the same NMEA data to a serial port of thePC. Polling applications can query the embedded lightweight http server to obtain gps data either intext form or as an XML data snippet.

The IP connection offers significant advantages over a serial port connection:

DISCLAIMER

Coordinates, altitude and other GPS data output by gpsfeed+ are fakeand might well be inconsistent.

Similarly, although satellite signal reception data are shown in theoutput, these are not based on any GPS satellite orbit calculations oranything like that.

LICENSE

FEATURES

gpsfeed+ offers the following functionality:

AUTOZOOM

Testing GPS applications requires a gps receiver and an antenna in a position to receive thesatellite signals. This, however, is rarely the case when doing software testing at a computer'skeyboard. This is where gpsfeed+ can be of help.

many applications can connect to one single gps simultaneouslyremote gps' can be monitoredSerial ports can be freed for other uses. In most cases, the only readily available andsimple I/O interface is the RS232 connector.and, of course, testing can be done indoors, without any GPS hardware or cabling

gpsfeed+ is in development. Please submit bug reports through the SourceForge bug trackingfacilities.

The GPS data provided by gpsfeed+ are calculated by very simplemathematical formulas and the results are just presented in the NMEA0183 sentence format, so use the program on your own risk.

If by examining the code you feel that you can add a feature you likeor you can make it function better, then you are free to do so.Contributing your code will help improve gpsfeed+.

gpsfeed+ is free software, written in tcl. It is provided in source code,under the GPL license. Linux and Windows binaries are also providedfor the x86 architecture.

IP output (TCP and UDP)Lightweight http server for web queriesSerial port outputSerial -to-IP forwarding$GPGGA, $GPRMC, $GPGSV and user defined NMEA 0183 sentencesUser defined XML replies to web queriesPlayback of captured NMEA sentence file.Output monitor"No signal" output, when pausedThree different simulation track shapesVariable output period"Skip" mode for controlling speedExperimental autozoom mode for detailed viewing of slow movementsConfigurable onscreen data displayConfigurable colorsCompact modeMany gpsfeed+ instances can run on different ports, simulating a fleet of GPSs

gpsfeed+ http://gpsfeed.sourceforge.net/

1 of 4 01/31/2012 11:43 AM

Page 2: Gps Feed Manual

The toolbar

OPERATION

HTTP SERVER

gpsfeed+ features two zoom modes: a fixed zoom all mode, and an experimental autozoom. In

autozoom mode (icon ), the zoom level changes automatically, in inverse proportion to thespeed of the vehicle; the slower the vehicle moves, the higher the zoom level; the area zoomedbecomes smaller and more track detail can be seen. If the vehicle moves faster, the area zoomedbecomes larger and less track detail is seen.

The reasoning behind the autozoom mode is simple:

the screen surface is limited. At high speed and high zoom, one cannot see what iscoming up the next second.at high zoom – high speed, details that are displayed, go by fast; the eye struggles, as ittries to capture them.in gpsfeed+, especially in the spiral shape, the fix may seem stopped (although actuallymoving) for quite some time

In autozoom, the map is centered on the current fix.

Simulated gps tracks are calculated around user defined center coordinates and range. gpsfeed+offers, at the moment, the following track shapes:

circle : provides fixes with (relatively) stable velocity while the direction changescontinuously.square : provides fixes in 4 constant directions while velocity changes continuously.spiral : provides fixes with velocity and direction changing continuously

The velocity in circle is not absolutely constant because the circle is drawn in Cartesian and notspherical coordinates and is therefore not a circle if drawn on the surface of the earth.

For recorded GPS track operation, files containing captured NMEA 0183 sentences can be playedback by gpsfeed+ (configuration panel, Mode pane).

Pressing play a second time (icon ) causes gpsfeed+ to stop outputting valid fixes; NMEAsentences are still sent to the output, however data fields are empty and the "fix" field is set to "V"

(i.e. fix data invalid). When in pause mode, the play button momentarily flashes red (icon )

and the fix mark (icon on the map) turns to , indicating the "no signal" condition.

If screen space is precious but gpsfeed+ controls should be present, the compact mode (icon )minimizes gpsfeed+ so that only the toolbar icons are displayed.

The Monitor panel in the configuration window shows exactly what is being sent to theoutput. You can use monitor even if you have no connection to an output port of any king.Monitoring output this way may be useful when editing your own NMEA sentences, or if you wantto see what is coming in from the serial port in Serial-to-IP forwarding.

The NMEA panel has an option Prevent no signal . gpsfeed+ has been written so thatsatellite visibility is variable. Although this might never happen in real life, there is a need whentesting the GPGSV NMEA sentences to have satellites rising and setting. gpsfeed+ allows acondition where all 32 satellites are visible and also where none of them is visible. ThePrevent no signal option simply makes all satellites visible by inverting their elevation

if it becomes negative.

The NMEA panel includes the option User defined , together with a text box. If this optionis selected, whatever is entered in the textbox, gets output to the ports. Prefixing a word with a ’$’makes it a variable. If the system knows the variable entered, it will substitute it before it sendsthe sentence to the output. Otherwise it will consider the sentence in error and will not outputanything from that sentence. The available gps variables are evident in the code. Some examplesof existing and test sentences are by default present in the NMEA textbox. Relativedocumentation about the system variables will be made available in the future.

gpsfeed+ implements a lightweight http server for applications that use GET or POST funtionalityto get gps coordinates. Examples of this functionality are the getURL and postURL functions thatsome SVG implementations offer or the XMLHttpRequest object in various browsers.

To use the http server in gpsfeed+, a free IP port will have to be set. By default this port is set to80. If port 80 is occupied by another web server, any other free port (e.g. port 81) will do. If youplan to serve also documents (e.g. SVG documents using the getURL or postURL functions to getgps coordinates from the same server), then a root directory, where these documents reside, willalso have to be set.

gpsfeed+ http queries have the following syntax:

gpsfeed+ http://gpsfeed.sourceforge.net/

2 of 4 01/31/2012 11:43 AM

Page 3: Gps Feed Manual

Default syntax. Using

Any of the available system variable names, found also in the user defined NMEA sentences, canbe used in the query.

XML query:

This will cause a reply using the XML (or, as a matter of fact, anything) that is typed in the XML replytextbox. The system variables used should be denoted by prefixing a ’$’, as in the user definedNMEA sentences.

If you use a non standard port (e.g. port 81):

The default content of the XML reply textbox is an example of an XML snippet. A GPX compliantreply can be easily implemented in a similar manner.

TESTING

http://localhost/gpsfeed

will cause a reply in the form

lon=dd.ddd;lat=dd.ddd;alt=dd.ddd;bear=dd.ddd;speed=dd.ddd;

Specific data query:

http://localhost/gpsfeed?time=;msec=;

http://localhost/gpsfeed?type=xml

http://localhost:81/gpsfeed?type=xml

Testing the http server is simple: Start gpsfeed+ and press the play button. Cut and paste a queryof the ones shown above to the address bar of a browser and hit enter. The server should replywith the gps data requested.

You can easily test the TCP NMEA output of gpsfeed+ by connecting to it with a web browser(Firefox and IE work. Mozilla doesn’t: it waits forever for the socket to be closed).

Enter the following address to the address bar (assuming TCP/IP port 2222has been configured):

http://localhost:2222

You will see a welcome connection message and then NMEA sentences will start printing on thepage as they come in. The welcome message is only output when using the http protocol to get aconnection, i.e. when connecting to gpsfeed+ with a browser.

Minimal (emergency) remote control of gpsfeed+ is provided through the TCP http interface.

gpsfeed+ http://gpsfeed.sourceforge.net/

3 of 4 01/31/2012 11:43 AM

Page 4: Gps Feed Manual

© 2005, D. Zachariadis

© WebRing Inc.

GPS Enthusiasts WebRing<< Prev | Ring Hub | Join | Rate| Next >>

Search

http://localhost:2222/exit

http://your.remote.address:port/exit

TO DO

KNOWN ISSUES

SOMETHING OF AN ISSUE

Typing:

or

in a browser’s address bar, will close gpsfeed+.

A side effect of opening a serial port as a stream is that, if you enter a serial port that does notexist, or any other name in place of a serial port, all output of gpsfeed+ will be dumped to a filewith that name. This may be useful in some situations, where the output of gpsfeed+ needs to beinspected afterwards.

Random shape.

Shapes around the poles jump to the other hemisphere. This is normal for this type ofmap projection.

Most GPS receivers come with a serial interface of some sort. None of the popular ones comesready with an IP interface, so, how is one supposed to connect a gps with a serial interface withan application that has been written to use IP sockets?

To overcome this issue, small software utilities called serial-to-ip port forwarders can be used.One of these utilities, which has been around for many years, is gpsd, written by EmmanuelMogenet as a part of his gps3d project. You can use gpsd to relay anything that comes intothe serial port to a local IP port.

If you are a Windows user, put your gps in NMEA mode, then run the following in a commandwindow, or create a shortcut to gpsd.exe and put the following as target string in its properties:

gpsd.exe -serial COM1 -speed 4800 -port 2222

You can test gpsd’s functionality the same way you test gpsfeed+ with a browser.

gpsfeed+ includes a serial-to-IP forwarder to facilitate monitoring and sharing of serial gps data.However, in production environments, the use of gpsd is recommended, since it is smaller in sizeand requires less resources for its operation.

There is another very interesting gpsd project, here, which also discusses a number oftechnical GPS issues and ideas. There is also a proposal for a new GPSTVP sentence that willinclude all basic GPS location and motion parameters. gpsfeed+ can simulate this proposal veryeasily and it includes it as a user defined sentence from version 0.53 on. This gpsd code runsonly on Unix (Linux) machines.

gpsfeed+ http://gpsfeed.sourceforge.net/

4 of 4 01/31/2012 11:43 AM