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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b321573c2e5269d2,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail From: Kim Rostgaard Christensen Newsgroups: comp.lang.ada Subject: Asynchronous I/O on a serial device Date: Sat, 11 Jun 2011 23:46:47 +0200 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: NNTP-Posting-Host: 2506ds1-so.0.fullrate.dk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: munin.nbi.dk 1307828810 12739 90.184.227.68 (11 Jun 2011 21:46:50 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 11 Jun 2011 21:46:50 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110402 Icedove/3.1.9 Xref: g2news1.google.com comp.lang.ada:19760 Date: 2011-06-11T23:46:47+02:00 List-Id: Hi there I am desperately trying to implement a protocol on top of a serial transport. I am running Debian, and for the moment using /dev/ttyACM0 for reading. This works fine using standard the Text_IO package and In_File. Only, when I need to write to the device It fails because It is in In_File mode - Obviously. Reset on the file handle gives me a USE_ERROR exception, probably due to it being a special file - please correct me if I am wrong. Do I need to implement this more system-near/specific, or is there some way I can do bi-directional communication like, for instance two file handles. (I tried Form => "shared=yes", and it also failed). It is a usb device that emulates UART, and it seems to be contempt with just about any Baud setting. /Kim