AirNav Systems Forum

AirNav RadarBox and RadarBox24.com => AirNav RadarBox and RadarBox24.com Discussion => Topic started by: NickJackson on October 11, 2009, 09:33:16 PM

Title: Data from ports 7879 and 30003
Post by: NickJackson on October 11, 2009, 09:33:16 PM
I've been reading the various threads that relate to picking up data from ports 7879 and 30003.   However, I can't see where it's explained how to access these ports.  What is the process or software to use?  Can you do it in Windows XP or do you need other software?
 
Thanks
Nick


Title: Re: Data from ports 7879 and 30003
Post by: itestoo on October 11, 2009, 09:37:29 PM
Hi Nick

Here is my project using this port www.radarvirtuel.com/googlemaps
5 minutes delay out from 7879 and 30003
Regard's
Laurent
Title: Re: Data from ports 7879 and 30003
Post by: DaveReid on October 11, 2009, 10:18:27 PM
Can you do it in Windows XP or do you need other software?

On any Windows PC running Radarbox you can open up a DOS box and type

Telnet localhost 7879

or

Telnet locahost 30003

to see what's being output on the ports (don't forget it's 5-minutes delayed)
Title: Re: Data from ports 7879 and 30003
Post by: AirNav Support on October 11, 2009, 10:21:57 PM
This will help as well:

http://www.airnavsystems.com/forum/index.php?topic=9.0
Title: Re: Data from ports 7879 and 30003
Post by: NickJackson on October 12, 2009, 06:57:12 AM
Brilliant.   I'm really motoring now - good forum, database working, SQLite running and now the data ports coming.   Now I can REALLY use the product!

Thanks to all
Nick
   
Title: Re: Data from ports 7879 and 30003
Post by: NickJackson on October 12, 2009, 10:41:37 PM
If I run 'telnet localhost 7879' I get a blank telnet screen.

If I type 'telnet' to open it first then 'o hostname 7879' (following the help info) I get a failed connection.  Maybe I need to turn on the logging first?

Title: Re: Data from ports 7879 and 30003
Post by: AirNav Support on October 12, 2009, 10:42:40 PM
It take 5 minutes then data starts. As there is a 5 min delay.
Title: Re: Data from ports 7879 and 30003
Post by: NickJackson on October 13, 2009, 05:28:56 AM
Good point!

Title: Re: Data from ports 7879 and 30003
Post by: gleff on October 16, 2009, 11:50:30 AM
Is there somewhere that explains the output like what's in the forums of the SBS-1.  I see just about all the messages from the RB are MSG,3's which will probably suit me fine as I can see what some of the fields mean, but is there somewhere that explains what all the MSG's are, and all the fields?

Title: Re: Data from ports 7879 and 30003
Post by: NickJackson on October 16, 2009, 12:01:26 PM
Better still could some kind soul give newbie's an 10-minute crash course in how to use these ports and what information it's possible to derive from them.

If you're new to the game it's very difficult to piece these things together from the information available.   The AirNav system seems to have so much potential with these sort of tools available, but people who are only partially technical have a hard time achieving that potential. 

Nick
Title: Re: Data from ports 7879 and 30003
Post by: tarbat on October 16, 2009, 12:27:01 PM
Pages 83-84 of the manual has some detail on the port 7879 output.  Probably the easiest to use, since it's in XML format.  Here's the example from page 84 of the manual:

<MODESMESSAGE>
<DATETIME>20070622141943</DATETIME>
<MODES>400F2B</MODES>
<CALLSIGN>BAW134</CALLSIGN>
<ALTITUDE>120300</ALTITUDE>
<GROUNDSPEED>451</GROUNDSPEED>
<TRACK>234</TRACK>
<VRATE>0</VRATE>
<AIRSPEED></AIRSPEED>
<LATITUDE>-14.1102</LATITUDE>
<LONGITUDE>-31.5789</LONGITUDE>
</MODESMESSAGE>

Use any standard XML parsing addins for your favourite coding language - eg the System.Xml namespace in vb.net.
Title: Re: Data from ports 7879 and 30003
Post by: gleff on October 16, 2009, 12:31:56 PM
Even though XML data is easier to parse, I prefer the port 30003 output because i'm more used to it with the SBS-1 and will save me totally re-writing what i've already done.   

Having said that, I think i'll be able to figure out all the fields of interest easily enough.  I was just hoping for a thread or something that explains all the fields and MSG types but for the RB on port 30003 like there is on the SBS-1 forums.

If there's no such beast, that's cool.  like I said, should be easily enough figured out.
Title: Re: Data from ports 7879 and 30003
Post by: tarbat on October 16, 2009, 12:33:24 PM
Well, in theory the port 30003 output is identical to the SBS-1 port 30003 output.  Same message types, etc.  That's the whole point of the port 30003 output!!
Title: Re: Data from ports 7879 and 30003
Post by: gleff on October 16, 2009, 12:37:58 PM
Well, in theory the port 30003 output is identical to the SBS-1 port 30003 output.  Same message types, etc.  That's the whole point of the port 30003 output!!

In theory????  What about in practice? 

The SBS-1 has loads of MSG types and Fields, but from what I can gather in the short period of time i've looked at the data, the RB contains mainly MSG 3 which contains a bit from different MSG types of that of the SBS-1.  I'd have to look a bit closer though as I haven't compared the two directly.. but I notice the RB only seems to spit out MSG 3.
Title: Re: Data from ports 7879 and 30003
Post by: tarbat on October 16, 2009, 12:52:07 PM
The SBS-1 has loads of MSG types and Fields, but from what I can gather in the short period of time i've looked at the data, the RB contains mainly MSG 3 which contains a bit from different MSG types of that of the SBS-1.  I'd have to look a bit closer though as I haven't compared the two directly.. but I notice the RB only seems to spit out MSG 3.

Are you running v2.0 or the v3.07 beta?  I see MSG types 1, 3, 4, 5, 6, as well as SEL, ID, and AIR messages in v3.07.
Title: Re: Data from ports 7879 and 30003
Post by: gleff on October 16, 2009, 12:54:17 PM
Ahhh.. that must be why.. I am running both, but for the programming purposes I was using V2 for the live data. 
Title: Re: Data from ports 7879 and 30003
Post by: landyman on October 16, 2009, 10:48:32 PM
Pages 83-84 of the manual has some detail on the port 7879 output.  Probably the easiest to use, since it's in XML format.  Here's the example from page 84 of the manual:

<MODESMESSAGE>
<DATETIME>20070622141943</DATETIME>
<MODES>400F2B</MODES>
 ....
<LONGITUDE>-31.5789</LONGITUDE>
</MODESMESSAGE>

Use any standard XML parsing addins for your favourite coding language - eg the System.Xml namespace in vb.net.

If you want to play with this bloated format and convert to say .CSV or many others, there is a freeware program called GPSBabel.

http://www.gpsbabel.org/htmldoc-development/fmt_gpx.html (http://www.gpsbabel.org/htmldoc-development/fmt_gpx.html)

Might be worth looking at.  It's aimed at GPSr users and can also convert to .KML for those interested.  Also has a list.

Quote
To subscribe or unsubscribe via the World Wide Web, visit
       https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
or, via email, send a message with subject or body 'help' to
       [email protected]

Reg.
Title: Re: Data from ports 7879 and 30003
Post by: NickJackson on October 18, 2009, 01:43:51 PM
Could someone clarify or restate what the difference is between port 7879 and port 30003 data?   Is it necessary to monitor both?

Thanks
Nick
Title: Re: Data from ports 7879 and 30003
Post by: OKC-Steve on October 18, 2009, 01:59:53 PM
Could someone clarify or restate what the difference is between port 7879 and port 30003 data?   Is it necessary to monitor both?

One port is ASCII comma separated, the other is XML.  Pick one, you don't need both.
Title: Re: Data from ports 7879 and 30003
Post by: NickJackson on October 19, 2009, 08:51:18 PM
Thanks.  I'll check both and see which suits me best.

Nick