IP/UDP Sockets in REV

Ewan Richardson ewan at supremis.co.uk
Sun Jul 25 15:12:11 CDT 2010


Hi Andre

Not a problem, I can do that.

Im basically using rev to translate data from our simulator to a wider group
of asterix native clients.
At the moment im implementing CAT62, which is basically used for Sending
SDPS track messages. 
The Asterix protocol is all publicly published by eurocontrol.

The actual asterix protocol is quite diverse, allowing for multiple systems
to track targets and supply the data to radar screens. (im oversimplifying
here but it is the gereral principle.

Another tool im using, which may or may not  be of interest is albatross.
This is an open source air traffic radar screen, for linux. Although there
are a few bugs in there, is a good tool for testing against asterix and
"seeing" targets painting on screen.

Some of the code "could" be release for flight sim heads, taking data from a
flight simulator and drawing it on a "real" atc display.

So far the project is developing pretty quickly (compared to other
languages), and looks like it might be quite a rapid development.

The biggest head-ache so far has been translating latitude and longitude to
binary using two's compliment in a 32bit block.  I think that using
binaryEncode("f*",thedata) is giving the correct results, although I have
yet to test this part. The whole thing is a bit of a learning curve on the
binary front with revolution!.

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Andre Garzia
Sent: 25 July 2010 20:12
To: How to use Revolution
Subject: Re: IP/UDP Sockets in REV

Ewan,

If you could keep us posted or consider writing a post document about your
experience interfacing with ATC stuff. It is always good to hear about those
developments.

If you need any network help, send us a note.

Cheers
andre

On Sun, Jul 25, 2010 at 3:40 PM, Ewan Richardson <ewan at supremis.co.uk>wrote:

> Im in the process of writing some tools for ASTERIX radar data (air 
> traffic control stuff).
>
> The most basic form of this can be UDP over a network. So I can safely 
> assume that there will be a header of around 28 bytes on the beginning 
> of the message generated by rev.
>
> That's fairly good news for me, as I have enough to do without checksums!
> Have also run the output through wireshark, which answered my own
question!
>
> Already had limited success today with the protocol, so ill keep 
> working though it.
>
> Thanks for your time.
>
> Ewan
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Andre 
> Garzia
> Sent: 25 July 2010 16:12
> To: How to use Revolution
> Subject: Re: IP/UDP Sockets in REV
>
> I think the inquire was related to UDP which is unreliable by default, 
> so while the checksums and headers guarantee the integrity of a single 
> datagram, the nature of UDP itself is unreliable by design, still, I 
> like unreliable things, it adds to the adventurous fellings, you 
> should see my own personal tools...
>
> On Sun, Jul 25, 2010 at 12:05 PM, Mark Schonewille < 
> m.schonewille at economy-x-talk.com> wrote:
>
> > Ewan,
> >
> > TCP creates the headers for you.
> >
> > If you mean HTML headers, yes you have to create those yourself when 
> > using sockets, but not when using the put/get URL commands.
> >
> > If you want to connect to a server that requires special headers, 
> > then you have to do this yourself and you will need to get a copy of 
> > the protocol documentation for that server.
> >
> > Why do you ask? Are you having a problem with datagram sockets?
> >
> > --
> > Best regards,
> >
> > Mark Schonewille
> >
> > Economy-x-Talk Consulting and Software Engineering
> > Homepage: http://economy-x-talk.com
> > Twitter: http://twitter.com/xtalkprogrammer
> > KvK: 50277553
> >
> > Download the Installer Maker plugin for Runtime Revolution at 
> > http://qurl.tk/ce
> >
> >
> > On 25 jul 2010, at 16:17, Ewan Richardson wrote:
> >
> >  Hi there, wondering if someone could help clarify something for me.
> >>
> >>
> >>
> >> When creating socket connections using the socket datagram 
> >> connection, do you have to create the IP header and UDP header (and 
> >> related checksums) within revolution, or does revolution take care 
> >> of
> this for you?
> >>
> >>
> >> Thanks for your time.
> >>
> >
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
>
>
> --
> http://www.andregarzia.com All We Do Is Code.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



--
http://www.andregarzia.com All We Do Is Code.
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list