[Xastir] First Time CVS source

Curt Mills, WE7U hacker at tc.fluke.com
Thu Jul 10 15:18:17 EDT 2003


On Thu, 10 Jul 2003, Stephen West-Fisher wrote:

> Yep, it's getting valid strings and positions. However, it's never
> switching back. Now I understand why you didn't understand me about the
> timing. The previous code was not switching back to TNC mode when it
> received a valid position, it would wait until the timer setting time.
> For instance, if the Timing was set for 60 seconds, it would listen to
> the GPS for 60 seconds with DTR low, then DTR would go high for 60
> seconds, then back to the GPS for 60 seconds, etc. Note that even though
> DTR would go high, and I would see the recieve light on the TNC, and the
> light on the tester would flicker, Xastir never showed the red arrow, or
>   displayed any knoledge of the reception. Now, with DTR on a continious
> low, the red reception arrow is constantly lit.

Here's what I see:  With an HSP interface configured, and a GPS
plugged straight in, I get no visible indication that the DTR line
is switching, but it is.  It's just rather fast.  I have an LED
breakout box on the line.

I suspect that if I plug in an HSP adapter as well, the switching
will be slower, as it'll only be actually receiving from the GPS
when the DTR line is low.  With my test setup, it's receiving from
the GPS all the time, so the parsing of the GPS data is nearly
instantaneous and it brings the line back up high right away.

If I unplug the GPS, at the GPS check interval, the LED changes from
green to red:  It's waiting for GPS data.  If I then plug the GPS
back in, the LED goes back to green at the next GPS check interval.

If you configure an HSP port, it will get stuck with DTR low trying
to read the GPS if a GPS is not present or if the serial parameters
are wrong and Xastir can't parse any GPS strings.  We should
probably tweak that so that Xastir pops back to TNC mode if it
hasn't parsed GPS strings within two seconds or so.

The rest of the time the DTR line will be active, unless Xastir is
writing waypoints to the GPS.

I made some minor tweaks to the code.  May have helped, might not
have.  Check it out in about 24 hours when the changes show up on
the anon CVS server.

In the meantime I'll try to make it pop out to TNC mode if it's not
parsing GPS strings.  Better partial operation than none at all.

-- 
Curt Mills, WE7U                    hacker_NO_SPAM_ at tc.fluke.com
Senior Methods Engineer/SysAdmin
"Lotto:    A tax on people who are bad at math!"
"Windows:  Microsoft's tax on computer illiterates!" -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir mailing list