Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Ocaml and serial communication
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Antoine Schweitzer-Chaput <Antoine.Schweitzer-Chaput@s...>
Subject: [Caml-list] Ocaml and serial communication
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