Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm not exactly sure how to accomplish what you're asking, but I may be able to lend some insight as to how you might <em>begin</em> to get it done. So here goes:</p> <p>A GPS device shows up to most systems as nothing more than a serial device -- a.k.a. a COM port if you're dealing with Windows, /dev/ttySx if you're in *nix. By definition, a serial port's specific duty is to stream data across a bus, one block at a time. So, it would then follow logically that if you want to emulate the presence of a GPS device, you should gather the data you're consuming and put it into a stream that somehow acts like an active serial port.</p> <p>There are, however, some complications you might want to consider:</p> <ul> <li>Most GPS devices don't just send out location data; there's also information on satellite locations, fix quality, bearing, and so on. Then again, nobody's made any rules saying you <em>have</em> to make all that data available. There's probably more to this, but I'll admit that I need to do more research in this area myself.</li> <li>I'm not sure how fast you can receive data when dealing with Google Latitude, etc., but any delays in receiving would definitely result in visible pauses in your "serial port"'s data stream. Again, this may not be as big a complication as it seems, because GPS devices are known to "burst" data across the bus anyway, but I'd definitely keep an eye on that. You want to make sure there's always a surplus of data coming across, not a shortage.</li> </ul> <p>Along the way you'll also have to transform the coordinates you receive into valid GPS sentences, as well. You can find specifications for those, but I would definitely make friends with the NMEA standard -- even though it is a flawed standard, it's the one everyone seems to agree on anyway.</p> <p>Hope this helped you, at least a little bit. Are there anymore details specific to your problem that you think could be useful in answering this question?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload