comp.lang.ada
 help / color / mirror / Atom feed
From: anon@att.net
Subject: Re: Ada Networking (General/Design)
Date: Mon, 13 Aug 2012 20:36:26 +0000 (UTC)
Date: 2012-08-13T20:36:26+00:00	[thread overview]
Message-ID: <k0bog8$f0o$1@speranza.aioe.org> (raw)
In-Reply-To: 25fb2cbf-be17-44dd-9d95-22e9866be5a9@googlegroups.com

In <25fb2cbf-be17-44dd-9d95-22e9866be5a9@googlegroups.com>, Patrick <patrick@spellingbeewinnars.org> writes:
>Hi Dmitry
>
>I want to write applications to communicate with scientific instruments. 
>Some use RS232, some GPIB and some TCP/IP. 
>
>Your feedback is helpful but a little scary too.
>
>Could you recommend a software project that gets socket programming 
>done right?

To see an Ada example you just need to look at the file "g-socket.ads" 
aka "GNAT.Sockects" and instead of coping and editing the listed program 
"pingpong.adb". You can just download the text file from:

http://www.rtems.info/ftp/pub/rtems/4.8.2/ada-examples-4.8.2/pingpong/pingpong.adb


Then edit the line
       Group : constant String := "239.255.128.128";
to
       Group : constant String := "127.0.0.1";

then compile and run, if the 127.0.0.1 is setup as a local loopback.
If you examine the code you will see a few logical errors in the 
listing.


As for UART there was and might still be a UART I/O ada package 
on net or it might listed under Serial. Or you could use the Ada/C 
Serial_Port_driver in MaRTE_1.9.

Then use the serial driver to build a GPIB interface packages.






  parent reply	other threads:[~2012-08-13 20:36 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-12 20:26 Ada Networking (General/Design) Shark8
2012-08-12 23:05 ` Shark8
2012-08-13  0:10 ` sbelmont700
2012-08-13  0:25   ` Shark8
2012-08-13  7:11 ` Dmitry A. Kazakov
2012-08-13 12:33   ` Patrick
2012-08-13 13:11     ` Dmitry A. Kazakov
2012-08-13 13:12     ` Marc C
2012-08-13 13:31       ` Dmitry A. Kazakov
2012-08-13 15:51         ` tmoran
2012-08-13 16:19           ` Dmitry A. Kazakov
2012-08-13 16:30             ` Patrick
2012-08-13 16:53               ` Patrick
2012-08-13 18:18               ` Dmitry A. Kazakov
2012-08-13 20:36               ` anon [this message]
2012-08-14  5:40                 ` Patrick
2012-08-13 19:11             ` tmoran
2012-08-13 20:03               ` Dmitry A. Kazakov
2012-08-13 20:28                 ` tmoran
2012-08-14 10:14                   ` Dmitry A. Kazakov
2012-08-14 17:57                     ` tmoran
2012-08-13 17:54         ` Marc C
2012-08-13 18:28           ` Dmitry A. Kazakov
2012-08-13 18:59             ` Marc C
2012-08-13 19:16               ` Dmitry A. Kazakov
2012-08-14  8:39         ` Maciej Sobczak
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox