On Monday 06 June 2005 17:59, Andy Ross wrote:
> paul cooke wrote:
> > no, that doesn't work. if I create a named pipe called dummygps and
> > pointed the nmea output there instead of /dev/ttyS0, it barfs and
> > bombs out.  If I point the nmea output in file form rather than serial
> > and tell it to use dummygps as the "file" it just hangs.
>
> It sounds like gpsdrive is trying to treat its input as a serial
> device and isn't capable of handling input from arbitrary file
> descriptors.  This is basically a bug with gpsdrive.

no, it's fgfs that's complaining

> Have you tried 
> reporting this to the author?  Try pointing out that you want to use
> it with FlightGear, which can provide NMEA data on a socket.
>
> Alternatively, you can probably solve the issue with a hardware hack
> by writting a little program to copy FlightGear's data stream out a
> RS-232 serial port, which is then looped back in to another serial
> port using a null modem cable for gpsdrive to read from.  There are a
> few motherboards left which have two external serial ports; if you
> don't have one, you can buy a USB serial adaptor for about $30US or
> so.
>

don't need an extra program, all you have to do is point fgfs to output nmea 
to say, /dev/ttyS0, loop it back with a null modem cable in to /dev/ttyS1 and 
read it in gpsdrive on /dev/ttyS1...

I'm lucky in that my brand new mobo actually has two serial ports on it... but 
then again, my other solution is to use a spare box in headless X over ssh 
mode to run gpsdrive on while running fgfs on the main box.

hmm long time since I last hacked up a null modem cable...

What's annoying me is that googling for "virtual serial port" comes up with 
loads of proprietary windows programs and one Linux one, which again is 
proprietary payware... and I'm damn sure there is something which should be 
able to provide two virtual serial ports to hook together... but I'm having 
no luck so far.

ah ha... found it

http://sourceforge.net/projects/ttypatch/

|ttypatch is a Linux application that permits two or more "serial port user
|programs" to reliably connect to each other without the use of actual serial
|ports. Also acts as a virtual patch panel among any number of real and
|virtual serial ports.   

bum. it's alpha... last release in 2003

well here goes,

it compiles... there's agood sign ;)

it had to be launched sudo to create the "devices"

it tests OK using its test harness

arghhh

goes off to scratch head

I can get fgfs to talk to /dev/ptyp0
after having given normal users permission to write to it

but gpsdrive just times out waiting for data...

_______________________________________________
Flightgear-users mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-users
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to