Bug 29988 - Patch to add tcp/ip source to use with simulator
Summary: Patch to add tcp/ip source to use with simulator
Status: NEW
Alias: None
Product: Gypsy
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Ross Burton
QA Contact:
Depends on:
Reported: 2010-09-03 00:41 UTC by Jooncheol Park
Modified: 2014-07-13 08:41 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

Support to TCP source (2.21 KB, application/octet-stream)
2010-09-03 00:41 UTC, Jooncheol Park

Description Jooncheol Park 2010-09-03 00:41:31 UTC
Created attachment 38395 [details]
Support to TCP source

I patched Gypsy to test without GPS unit in PC.
I tested with GPSFeed+. (http://gpsfeed.sourceforge.net/). GPSFeed+ is a GPS Simulator. It supports to COM/TCP/HTTP output and replay from NMEA log.

I tested patched gypsy to using below way.

1. Run GPSFeed+ then start to GPS with TCP output setting
$ tclsh gpsfeed+.tcl (then, set the tcp port and start to GPS)

2. Run gypsy example with GPSFeed+'s output tcp address instead of device path
$ ./simple-gps-gypsy tcp://  (port number is 2222)

I decided to use tcp:// scheme to avoid conflict with blutooth address. As you know, BT address is also start with number. And my patch contains that if device path has a dot, replace to underscore to avoid conflict with D-Bus object path.
Comment 1 Ross Burton 2010-09-03 02:17:28 UTC
#28667 is an alternative way of replaying a NMEA log for simulating, I'd appreciate it if you could have a look at that and give us your feedback.

I'm cautious of feature creep because once we add networking support other requests will follow.  I think that a way of replaying a NMEA log through a pipe should be sufficient for simulating.
Comment 2 Jooncheol Park 2010-09-03 02:39:05 UTC
Thank you for your fast reply. :-)

I agree that using pipe is a best way to replay or simulating NMEA log.
But I think that supporting TCP source is also very useful feature for specific situation or platform that cannot use pipe like Windows. And Many GPS simulator support TCP output. 

And Supporting TCP source could be used by special purpose like IDE. Imagine that MeeGo Simulator for Window or MeeGo SDK for Windows. For this, Native Development tool like Android's DDMS can send location data into Gypsy in the emulator like qemu.
Comment 3 bartsimpson 2014-07-13 08:41:29 UTC
Are there any news about an simulate feature for software develop on gypsy?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.