From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cc65ab136f46904d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!18g2000prd.googlegroups.com!not-for-mail From: tonyg Newsgroups: comp.lang.ada Subject: Re: GNAT.Serial_Communications Date: Wed, 13 Apr 2011 00:49:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 82.46.232.121 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1302680970 15184 127.0.0.1 (13 Apr 2011 07:49:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 13 Apr 2011 07:49:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 18g2000prd.googlegroups.com; posting-host=82.46.232.121; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18780 Date: 2011-04-13T00:49:30-07:00 List-Id: On Apr 11, 12:11=A0pm, Brian Drummond wrote: > On Mon, 11 Apr 2011 03:26:38 -0700, tonyg wrote: > > I have been using this package in code which receives and sends message= s > > across a serial interface to some electronics. > > > Unfortunately my task being locked on the > > GNAT_Serial_Communications.write call with no error or exception. I > > opened the port with these options > > Unfortunately the write call is still indefinetely locking and the > > timeout does not seem to apply to writes. > > Is there a way to set "control flow" to "none"? > It is possible the hardware is sitting waiting for a handshake signal. > > Also have you checked the serial link in any other way, e.g. with Minicom > (or Hyperterminal on Windows)? Or with another terminal (or PC running > Minicom) in the place of "some electronics". > > - Brian The serial link has been tested using hyperterminal and a windows application, I am now constructing a linux application using Ada rather than C sharp which was used for windows. The parity / 8 bit stuff is definitely ok. I was fishing to see if anyone had used the serial communications and could confirm it was all working etc or had a suggestion on why etc. Thanks for your help Brian