CommV24 is a simple interface to serial ports.
Attached you will find an example of its use.
It it uncommented, please let me know if some explanation is needed.
Greetings, René Dorta
Universidad de Carabobo
Valencia Venezuela.

/octe