What kind of serial analyzer did you use ? -Fred
Curtis L. Olson wrote : > Hi Fred, > > I don't fully understand either. When I specified "text\r\n", the > serial port analyzer showed I was actually sending "text\r\r\n" from > unix. When I changed this to "text\n" then the output was "text\r\n". > So someplace, the \n is getting expanded to \r\n under unix at least ... > strange ... > > Curt. > > > Frederic Bouvier wrote: > >> I managed to make it work under Windows with my Garmin GPS III Pilot. >> For that, I had to restore the \r you removed from each sub messages. >> >> I don't understand why you removed them because the CVS comment implies >> they are needed, or the stream is opened in text mode under Linux, >> adding an undesired one. >> >> Under Windows the stream is opened in binary mode so \r is needed in the >> code. I won't commit my change before knowing your thought about that. >> >> When the line ending issue is cleared, transmission has to be done at >> 9600 bauds, 8 data bits, no parity. The channel parameters only set the >> baud rate, so one has to enter the following command at the window >> command prompt before starting fg : >> >> c:\> mode com1 data=8 parity=n >> >> that should display the new parameters. This command doesn't work when >> the port is already opened. >> >> Then the GPS Unit has to be put in simulation mode ( menu in the >> satellite page ), and the 'Aviation In' protocol must be activated in >> the Interface page of the system setup. >> >> Finally start fgfs with the option >> >> --AV400=serial,out,5,com1,9600 >> >> >> There is a handy freeware under windows to monitor serial ports : >> http://www.sysinternals.com/Utilities/Portmon.html >> >> -Fred >> >> >> > > > -- Frédéric Bouvier http://frfoto.free.fr Photo gallery - album photo http://www.fotolia.fr/p/2278 Other photo gallery http://fgsd.sourceforge.net/ FlightGear Scenery Designer ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

