Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2008-02-02 Thread Curtis Olson
On Feb 2, 2008 3:48 PM, dave perry wrote:

> My wife gave me a Garmin GPSmap 496 for Christmas.  Nice wife, huh!
> Anyway, I recalled this thread and want to confirm whether either of you
> have had success with the --AV400 beyond what was reported in this
> thread.  Did you get FlightGear to drive the Garmin GPS III Pilot from
> Linux?  I have ordered the serial interface cable from Garmin and will
> be trying to drive the 496 in simulation mode from FlightGear when it
> arrives in about 7 to 10 days.
>
> Besides the "fun", this would be a great way to become very comfortable
> with the 496 and all its features w/o the pressure of using it in a real
> flight plan.  I cannot pause the real pa24 to figure out what I did
> wrong with the GPS keypad.


I had the AV400 format working great with a Garmin ColorMap 295.  I seem to
recall having to put it into simulation mode and it would do it's own thing
until serial data started flowing from FlightGear at which point it locked
on and obeyed FlightGear ... something like that.

Regards,

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2008-02-02 Thread dave perry
Hi Curt and Frederic,

My wife gave me a Garmin GPSmap 496 for Christmas.  Nice wife, huh!  
Anyway, I recalled this thread and want to confirm whether either of you 
have had success with the --AV400 beyond what was reported in this 
thread.  Did you get FlightGear to drive the Garmin GPS III Pilot from 
Linux?  I have ordered the serial interface cable from Garmin and will 
be trying to drive the 496 in simulation mode from FlightGear when it 
arrives in about 7 to 10 days.

Besides the "fun", this would be a great way to become very comfortable 
with the 496 and all its features w/o the pressure of using it in a real 
flight plan.  I cannot pause the real pa24 to figure out what I did 
wrong with the GPS keypad.

-Dave

Frederic Bouvier wrote:
> Curt,
>
> Frederic Bouvier wrote :
>   
>> What option do you use to make it working ? I tried
>>
>> --AV400=serial,out,5,com1,9600
>>  and
>> --AV400=serial,out,5,com1,4800
>>
>> without luck. Assuming the GPS unit interface is set to "Aviation In",
>> and not "GARMIN"
>>   
>> 
>
> 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
>
>   


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2006-08-26 Thread Frederic Bouvier
Curtis L. Olson wrote :
> 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 ...
>   

With the patch below, LF are no longer expanded to CRLF :

[EMAIL PROTECTED]:~/fgfs/SimGear$ cvs diff -u simgear/serial/serial.cxx
Index: simgear/serial/serial.cxx
===
RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/serial/serial.cxx,v
retrieving revision 1.10
diff -u -r1.10 serial.cxx
--- simgear/serial/serial.cxx   8 Mar 2006 18:16:09 -   1.10
+++ simgear/serial/serial.cxx   26 Aug 2006 13:14:33 -
@@ -122,6 +122,9 @@

 // cout << "config.c_iflag = " << config.c_iflag << endl;

+// disable LF expanded to CR-LF
+config.c_oflag &= ~(ONLCR);
+
 // disable software flow control
 config.c_iflag &= ~(IXON | IXOFF | IXANY);



I suggest to apply it and add the required \r in the messages. That way,
Linux and Windows behavior are the same.

-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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2006-08-26 Thread Frederic Bouvier
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2006-08-26 Thread Curtis L. Olson
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
>
>   


-- 
Curtis Olsonhttp://baron.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d


-
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2006-08-26 Thread Frederic Bouvier
Curt,

Frederic Bouvier wrote :
> What option do you use to make it working ? I tried
>
> --AV400=serial,out,5,com1,9600
>  and
> --AV400=serial,out,5,com1,4800
>
> without luck. Assuming the GPS unit interface is set to "Aviation In",
> and not "GARMIN"
>   

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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2006-08-22 Thread Frederic Bouvier
Curtis L. Olson wrote :
> Frederic Bouvier wrote:
>   
>> Is it supposed to work with the Garmin GPS III Pilot ? this is a portable 
>> unit,
>> and it happens I own one.
>>
>> BTW, 295 and 296 are portable too.
>>   
>> 
>
> I think the answer is yes, it should work with the GPS III, But I don't 
> have one here to test with, so I can't say for sure.
>   


What option do you use to make it working ? I tried

--AV400=serial,out,5,com1,9600
 and
--AV400=serial,out,5,com1,4800

without luck. Assuming the GPS unit interface is set to "Aviation In",
and not "GARMIN"

Here is an HEX sample of the message transmitted :

Length 127: 02 7A 30 30 32 38 35 0D 0A 41 4E 20 34 38 20 34 33 36 32 0D
0A 42 45 20 30 30 32 20 32 34 31 38 0D 0A 43 30 39 30 0D 0A 44 30 30 30
0D 0A 45 2D 2D 2D 2D 2D 0D 0A 47 2D 2D 2D 2D 2D 0D 0A 49 2D 2D 2D 2D 0D
0A 4B 2D 2D 2D 2D 2D 0D 0A 4C 2D 2D 2D 2D 0D 0A 51 57 30 31 30 0D 0A 53
2D 2D 2D 2D 2D 0D 0A 54 2D 2D 2D 2D 2D 2D 2D 2D 2D 0D 0A 77 30 31 41 0D
0A 6C 2D 2D 2D 2D 2D 2D 0D 0A 03

and another in ascii :

Length 127: .z00285..AN 48 4362..BE 002
2418..C000..D000..E-..G-..I..K-..L..QW010..S-..T-..w01A..l--...
   

The dots represents non printable characters.

And I don't know if there is a special mode I am supposed to put the
unit into.

-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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2006-08-22 Thread Martin Spott
Frederic Bouvier wrote:
> Quoting Martin Spott :

>> This implements a pretty interesting idea - still I wonder who can
>> afford such a unit if they don't mount it into their aircraft ?  ;-)
> 
> Is it supposed to work with the Garmin GPS III Pilot ? this is a portable 
> unit,
> and it happens I own one.
> 
> BTW, 295 and 296 are portable too.

Ah, I see, the 296 appears to be a really nifty device,

Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

-
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2006-08-22 Thread Curtis L. Olson
Frederic Bouvier wrote:
> Is it supposed to work with the Garmin GPS III Pilot ? this is a portable 
> unit,
> and it happens I own one.
>
> BTW, 295 and 296 are portable too.
>   

I think the answer is yes, it should work with the GPS III, But I don't 
have one here to test with, so I can't say for sure.

Curt.

-- 
Curtis Olsonhttp://baron.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d


-
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2006-08-22 Thread Frederic Bouvier
Quoting Martin Spott :

> "Curtis L. Olson" wrote:
> > I've just committed a first stab at the Garmin series 400 "Aviation In"
> > data format.  I don't think it's quit producing the correct output, but
> > the code compiles cleanly so it shouldn't hurt anything to add.
> >
> > In theory, this should allow us to use FlightGear to drive a real Garmin
> > 295/296/430/530 gps unit from our simulator position.
>
> This implements a pretty interesting idea - still I wonder who can
> afford such a unit if they don't mount it into their aircraft ?  ;-)

Is it supposed to work with the Garmin GPS III Pilot ? this is a portable unit,
and it happens I own one.

BTW, 295 and 296 are portable too.

-Fred

--
Frédéric Bouvier
http://frfoto.free.fr  Photo gallery - album photo
http://www.fotolia.fr/p/2278/partner/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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Garmin Series 400 Aviation In data format

2006-08-21 Thread Martin Spott
"Curtis L. Olson" wrote:
> I've just committed a first stab at the Garmin series 400 "Aviation In" 
> data format.  I don't think it's quit producing the correct output, but 
> the code compiles cleanly so it shouldn't hurt anything to add.
> 
> In theory, this should allow us to use FlightGear to drive a real Garmin 
> 295/296/430/530 gps unit from our simulator position.

This implements a pretty interesting idea - still I wonder who can
afford such a unit if they don't mount it into their aircraft ?  ;-)

Cheers,
Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

-
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Garmin Series 400 Aviation In data format

2006-08-20 Thread Curtis L. Olson
I've just committed a first stab at the Garmin series 400 "Aviation In" 
data format.  I don't think it's quit producing the correct output, but 
the code compiles cleanly so it shouldn't hurt anything to add.

In theory, this should allow us to use FlightGear to drive a real Garmin 
295/296/430/530 gps unit from our simulator position.

I haven't been able to get the Garmin 295 I have here on loan for 
testing to respond at all, so there's a problem somewhere.  I connected 
up the FG output to hyperterminal and it's generating what I think is 
the right data at the right baud.  I connected up the gps to 
hyperterminal and can get data out of that, so the gps serial cable is 
good.  FG is outputting data, the gps serial cable is good, but the 295 
isn't responding.  That leaves a) the 295 doesn't actually speak this 
format (or speaks it's own different version of it) or b) I've made a 
stupid mistake in implementing the spec (which I've now read and re-read 
about 100x.)

If anyone out there is interested in this sort of thing and has some 
means to test the code, I'd certainly be happy for another set of eyes 
to take a look at what I've done.  I'm also pursuing the Garmin tech 
support route, but it's the weekend now so not much moving there.

Regards,

Curt.

-- 
Curtis Olsonhttp://baron.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d


-
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel