From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA01376; Sun, 7 Sep 2003 16:00:34 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA09010 for ; Sun, 7 Sep 2003 16:00:33 +0200 (MET DST) Received: from esemetz.metz.supelec.fr (esemetz.metz.supelec.fr [193.48.224.212]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h87E0WT00278 for ; Sun, 7 Sep 2003 16:00:32 +0200 (MET DST) Received: from TuX.rez-metz.ese-metz.fr (TuX.rez-metz.supelec.fr [193.48.225.53]) by esemetz.metz.supelec.fr (8.11.6/8.9.3) with ESMTP id h87E0Tf22441 for ; Sun, 7 Sep 2003 10:00:29 -0400 Received: from antoine by TuX.rez-metz.ese-metz.fr with local (Exim 3.36 #1 (Debian)) id 19w05d-0001G1-00 for ; Sun, 07 Sep 2003 16:00:29 +0200 Date: Sun, 7 Sep 2003 16:00:29 +0200 From: Antoine Schweitzer-Chaput To: caml-list@inria.fr Subject: [Caml-list] Ocaml and serial communication Message-ID: <20030907140029.GA4761@ese-metz.ese> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; antoine:01 antoine:01 howto:01 tcgetattr:01 tcsetattr:01 ocaml:01 ocaml:01 unix:02 unix:02 anybody:03 somewhere:04 dev:04 equivalent:05 programming:07 language:10 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I intend to write software which should communicate over a serial line, and I would like to use OCaml for this. I have read the Serial Programming HOWTO, which deals with the C language, but I have not found any equivalent doc for OCaml. I have basic ideas about how to open the block device (/dev/ttyS0) and set attributes using Unix.tcgetattr and Unix.tcsetattr. However, as it is the first time I deal with serial communication, I would like to know if anybody here has already done this successfully, or if some sample code is available somewhere. Thanks for your help. ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners