[Flightgear-devel] Serial Connection is broken in Windows binary

2011-03-07 Thread Roberto Inzerillo
Hi everybody,
I'm getting results with Arduino and FGFS, at least in a Linux 
environment, that's good. But I will just shortly mention there's 
something broken in the Windows binaries.

I have a fully working hardware/software system that let's me feed FGFS 
with data coming from a serial connected Arduino board, it runs smoothly 
on Linux but doesn't on Windows. I'm running FGFS 2.0 on Windows7, with 
very similar command line options; FGFS correctly reads it's own new 
handmade protocol (doesn't complain and creates a new property in the 
tree that I use for checking things), but it does ignore what's coming 
in. Fact is the serial connection is correctly sending data, I can check 
it with Arduino's own serial monitor and with a Python script too. It's 
just FGFS not updateing its property tree :-(

I don't know what can be wrong in FGFS's code, I don't even know if 
there's something I do wrong (but I don't think so); at least I wanted 
to report that on this ML. Maybe someone cares and/or wants to know 
more, and maybe someone has a few hints on what I should look for (just 
in case it's only because of me).

Cheers :-)

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Serial Connection is broken in Windows binary

2011-03-07 Thread ThorstenB
On 07.03.2011 22:49, Roberto Inzerillo wrote:
 I'm getting results with Arduino and FGFS, at least in a Linux
 environment, that's good. But I will just shortly mention there's
 something broken in the Windows binaries.
You mentioned using \n as a line separator in an earlier email. One 
common source of trouble when moving between Windows and Linux (or Mac) 
are line feed issues. Maybe the fgfs parser is confused by the encoding 
it gets from your port/driver. Windows uses CR LF (\r\n) as a line 
feed, Linux/Mac uses LF only (\n). A serial port can be configured to 
convert the line feed encoding, i.e. Linux may convert CR LF to LF, 
a Windows driver may do the opposite. I remember configuring (disabling) 
this auto-conversion property for a serial port years ago - when I used 
python for an RS232 interface on Windows and Linux. fgfs probably 
expects \n only - even when running on Windows. Just an idea. Other 
than that: I have no idea... ;-)

cheers,
Thorsten

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Serial Connection is broken in Windows binary

2011-03-07 Thread Curtis Olson
There is an entirely different code path/implementation for serial IO under
windows versus Linux, so it's entirely possible that a problem has crept in
for Windows.  I don't have a good way to test it here though.

Curt.


On Mon, Mar 7, 2011 at 4:47 PM, ThorstenB wrote:

 On 07.03.2011 22:49, Roberto Inzerillo wrote:
  I'm getting results with Arduino and FGFS, at least in a Linux
  environment, that's good. But I will just shortly mention there's
  something broken in the Windows binaries.
 You mentioned using \n as a line separator in an earlier email. One
 common source of trouble when moving between Windows and Linux (or Mac)
 are line feed issues. Maybe the fgfs parser is confused by the encoding
 it gets from your port/driver. Windows uses CR LF (\r\n) as a line
 feed, Linux/Mac uses LF only (\n). A serial port can be configured to
 convert the line feed encoding, i.e. Linux may convert CR LF to LF,
 a Windows driver may do the opposite. I remember configuring (disabling)
 this auto-conversion property for a serial port years ago - when I used
 python for an RS232 interface on Windows and Linux. fgfs probably
 expects \n only - even when running on Windows. Just an idea. Other
 than that: I have no idea... ;-)

 cheers,
 Thorsten


 --
 What You Don't Know About Data Connectivity CAN Hurt You
 This paper provides an overview of data connectivity, details
 its effect on application quality, and explores various alternative
 solutions. http://p.sf.net/sfu/progress-d2d
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel




-- 
Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
http://www.flightgear.org -
http://www.flightgear.org/blogs/category/curt/http://www.flightgear.org/blogs/category/personal/curt/
--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel