From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: Date: Mon, 7 Apr 2008 08:35:29 -0600 From: "Brad Midgley" To: arimo@iki.fi, "BlueZ users" In-Reply-To: <200804070956.23449.aklists@mixdown.ca> MIME-Version: 1.0 References: <200804070956.23449.aklists@mixdown.ca> Subject: Re: [Bluez-users] Emulating a gps receiver Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net Guys If you set up gpsd, you can do this in a straightforward way, assuming rfcomm0 is available: sdptool add SP rfcomm -r watch 0 1 sh -c "gpspipe -r >/dev/rfcomm0" & the first command advertises a serial port on channel 1, the second sets up a listener that will repeat the nmea stream over channel 1 whenever someone connects on it. there may be ways to make gpsd put out a pre-recorded stream, or you could write your own app that runs in place of gpspipe and slowly sends out your nmea log in eg 1-second intervals. Andrew's device class suggestion may be required for some devices, but I didn't need it for a pocketpc or my n800. Brad ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users