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
IO on serial port with Caml Light
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Georg_Bauer@m...
Subject: IO on serial port with Caml Light


JCF>I would like to read and write on the serial port of a PC (under
JCF>with Caml Light. Is it possible ? (I can interface C code to
JCF>it, but there may be an easier solution).

Since the PC serial programming interface has nothing like handshaking
or controlling, you have to call C-code to get good results, I fear.
Actually the easiest way is to install a "fossil" driver - that
corrects most of the defizits in the PC serial architecture, and then
use some little user primitives to access the serial interface through
this driver (it uses the same int as the bios).

bye, Georg