Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-09-07 (14:00)
From: Antoine Schweitzer-Chaput <Antoine.Schweitzer-Chaput@s...>
Subject: [Caml-list] Ocaml and serial communication

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 Archives:
Bug reports: FAQ:
Beginner's list: