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,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!l30g2000vbn.googlegroups.com!not-for-mail From: tonyg Newsgroups: comp.lang.ada Subject: GNAT.Serial_Communications Date: Mon, 11 Apr 2011 03:26:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 82.46.232.121 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1302517598 6939 127.0.0.1 (11 Apr 2011 10:26:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 11 Apr 2011 10:26:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l30g2000vbn.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 i686; 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:18753 Date: 2011-04-11T03:26:38-07:00 List-Id: I have been using this package in code which receives and sends messages 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 At first I opened this port with GNAT.Serial_Communications.Open (Port => the_port, Name => "/dev/ ttyUSB0"); GNAT.Serial_Communications.Set (Port => the_port, Rate => GNAT.Serial_Communications.B115200, Bits => GNAT.Serial_Communications.CS8, Parity => GNAT.Serial_Communications.None); I have also tried a half second timeout by opening the port with this GNAT.Serial_Communications.Open (Port => the_port, Name => "/dev/ ttyUSB0"); GNAT.Serial_Communications.Set (Port => the_port, Rate => GNAT.Serial_Communications.B115200, Bits => GNAT.Serial_Communications.CS8, Parity => GNAT.Serial_Communications.None, Timeout => 0.5); Unfortunately the write call is still indefinetely locking and the timeout does not seem to apply to writes. Some over things of note are that I am beginning the write string with a '$' and the end of the string with a ASCII.cr, is anyone able to shed any light on this ?