* Re: [Bluez-users] Emulating a gps receiver [not found] <Pine.LNX.4.64.0804071115190.866@arimo.local> @ 2008-04-07 13:56 ` Andrew Kohlsmith (lists) 2008-04-07 14:35 ` Brad Midgley 0 siblings, 1 reply; 3+ messages in thread From: Andrew Kohlsmith (lists) @ 2008-04-07 13:56 UTC (permalink / raw) To: bluez-users On April 7, 2008 04:34:54 am arimo@iki.fi wrote: > I could connect an ordinary receiver to Linux box and read it's > output but as a Bluetooth newbie i do not have any clue how to make a > computer looks like a receiver. You're looking for the local device class definition in /etc/bluetooth/hcid.conf. It's a bitfield. Googleing for hcid.conf gives me one of my favourite documentation sites, die.net: http://linux.die.net/man/5/hcid.conf About halfway down you can see what the device class is composed of and what each bit means. > I can search the bt devices with the phone and computer is listed there > but apparently i had to run some daemon to link the bluetooth and rfcomm > devices together. According my experiences so far this application is not > rfcomm:-( I imagine you want to use rfcomm; it has a 'listen' command that would allow you to attach your own utility (which spits NMEA sentences out to stdout) to an rfcomm channel. You may also have to configure an SDP record to "advertise" the rfcomm port to the phone you're testing with. "sdptool add" would probably be what you want here. I'm not an expert either, but us newbies have to stick together and pull ourselves out of this muck. :-) -A. ------------------------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-users] Emulating a gps receiver 2008-04-07 13:56 ` [Bluez-users] Emulating a gps receiver Andrew Kohlsmith (lists) @ 2008-04-07 14:35 ` Brad Midgley 2008-04-07 19:00 ` Ari Moisio 0 siblings, 1 reply; 3+ messages in thread From: Brad Midgley @ 2008-04-07 14:35 UTC (permalink / raw) To: arimo, BlueZ users 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-users] Emulating a gps receiver 2008-04-07 14:35 ` Brad Midgley @ 2008-04-07 19:00 ` Ari Moisio 0 siblings, 0 replies; 3+ messages in thread From: Ari Moisio @ 2008-04-07 19:00 UTC (permalink / raw) To: BlueZ users Hello Thanks. Fixed class definition and added SP to service. Rfcomm appears to be little old in Debian (3.7), it did not recognize the watch command and i had to split the given command for two separate commands but this is not a problem. Sending a nmea log one line in second with simple script worked perfectly:-) -- mr. M01510 On Mon, 7 Apr 2008, Brad Midgley wrote: > 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-07 19:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.4.64.0804071115190.866@arimo.local>
2008-04-07 13:56 ` [Bluez-users] Emulating a gps receiver Andrew Kohlsmith (lists)
2008-04-07 14:35 ` Brad Midgley
2008-04-07 19:00 ` Ari Moisio
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox